diff options
author | enge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2011-07-21 16:51:03 +0000 |
---|---|---|
committer | enge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2011-07-21 16:51:03 +0000 |
commit | bf328ef176489ce913a7206ff64b18046d5230da (patch) | |
tree | 045c59892956a2d8be0cafdbe909704983a25062 /m4 | |
parent | db5f5b06ff7776c8e9d7089c82487894f4ef3c2b (diff) | |
download | mpc-bf328ef176489ce913a7206ff64b18046d5230da.tar.gz |
configure.ac, mpc.m4: under windows, check first for mpfr, then for dlls
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1016 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'm4')
-rw-r--r-- | m4/mpc.m4 | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -192,9 +192,9 @@ MPC_WINDOWS # It also disables the tests involving the linking with LIBGMP if DLL # AC_DEFUN([MPC_WINDOWS], [ - AC_MSG_CHECKING(for DLL/static GMP) if test "$enable_shared" = yes; then LDFLAGS="$LDFLAGS -Wl,-no-undefined" + AC_MSG_CHECKING(for DLL/static gmp) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include "gmp.h" #if !__GMP_LIBGMP_DLL @@ -204,6 +204,7 @@ error ]], [[]])],[AC_MSG_RESULT(DLL)],[ AC_MSG_RESULT(static) AC_MSG_ERROR([gmp is not available as a DLL: use --enable-static --disable-shared]) ]) + AC_MSG_CHECKING(for DLL/static mpfr) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include "mpfr.h" #if !__GMP_LIBGMP_DLL @@ -212,7 +213,7 @@ error #endif ]], [[]])],[AC_MSG_RESULT(DLL)],[ AC_MSG_RESULT(static) - AC_MSG_ERROR([gmp is not available as a DLL: use --enable-static --disable-shared]) ]) + AC_MSG_ERROR([mpfr is not available as a DLL: use --enable-static --disable-shared]) ]) else AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include "gmp.h" |