Changeset 3252 for ThirdParty/Glpk/branches
- Timestamp:
- Jun 29, 2014 10:11:29 PM (7 years ago)
- Location:
- ThirdParty/Glpk/branches/autotools-update
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
ThirdParty/Glpk/branches/autotools-update/config_glpk.h.in
r3248 r3252 1 1 /* config_glpk.h.in. Generated from configure.ac by autoheader. */ 2 3 /* Define to 1 if GMP is available */ 4 #undef COIN_HAS_GMP 2 5 3 6 /* SVN revision number of project */ … … 21 24 /* Define to 1 if you have the <dlfcn.h> header file. */ 22 25 #undef HAVE_DLFCN_H 26 27 /* Define to 1 if GMP is available */ 28 #undef HAVE_GMP 23 29 24 30 /* Define to 1 if you have the <inttypes.h> header file. */ -
ThirdParty/Glpk/branches/autotools-update/configure
r3250 r3252 781 781 with_sysroot 782 782 enable_libtool_lock 783 enable_gmp 783 784 enable_odbc 784 785 enable_mysql … … 1425 1426 speeds up one-time build 1426 1427 --disable-libtool-lock avoid locking (might break parallel builds) 1428 --disable-gmp do not compile with GNU multiple precision library 1427 1429 --enable-odbc enable MathProg ODBC support [[default=auto]] 1428 1430 --enable-mysql enable MathProg MySQL support [[default=auto]] … … 12384 12386 12385 12387 12386 #AC_COIN_CHECK_GMP(Glpk) 12387 #if test $coin_has_gmp = yes; then 12388 # AC_DEFINE([HAVE_GMP],[1],[Define to 1 if GMP is available]) 12389 #fi 12388 12389 12390 # Check whether --enable-gmp was given. 12391 if test "${enable_gmp+set}" = set; then : 12392 enableval=$enable_gmp; coin_enable_gmp=$enableval 12393 else 12394 coin_enable_gmp=yes 12395 fi 12396 12397 12398 coin_has_gmp=no 12399 if test $coin_enable_gmp = yes; then 12400 ac_ext=c 12401 ac_cpp='$CPP $CPPFLAGS' 12402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12404 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12405 12406 ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default" 12407 if test "x$ac_cv_header_gmp_h" = xyes; then : 12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5 12409 $as_echo_n "checking for __gmpz_init in -lgmp... " >&6; } 12410 if ${ac_cv_lib_gmp___gmpz_init+:} false; then : 12411 $as_echo_n "(cached) " >&6 12412 else 12413 ac_check_lib_save_LIBS=$LIBS 12414 LIBS="-lgmp $LIBS" 12415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12416 /* end confdefs.h. */ 12417 12418 /* Override any GCC internal prototype to avoid an error. 12419 Use char because int might match the return type of a GCC 12420 builtin and then its argument prototype would still apply. */ 12421 #ifdef __cplusplus 12422 extern "C" 12423 #endif 12424 char __gmpz_init (); 12425 int 12426 main () 12427 { 12428 return __gmpz_init (); 12429 ; 12430 return 0; 12431 } 12432 _ACEOF 12433 if ac_fn_c_try_link "$LINENO"; then : 12434 ac_cv_lib_gmp___gmpz_init=yes 12435 else 12436 ac_cv_lib_gmp___gmpz_init=no 12437 fi 12438 rm -f core conftest.err conftest.$ac_objext \ 12439 conftest$ac_exeext conftest.$ac_ext 12440 LIBS=$ac_check_lib_save_LIBS 12441 fi 12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init" >&5 12443 $as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; } 12444 if test "x$ac_cv_lib_gmp___gmpz_init" = xyes; then : 12445 coin_has_gmp=yes 12446 fi 12447 12448 fi 12449 12450 12451 12452 if test $coin_has_gmp = yes ; then 12453 GLPK_LIBS="-lgmp $GLPK_LIBS" 12454 12455 $as_echo "#define COIN_HAS_GMP 1" >>confdefs.h 12456 12457 fi 12458 ac_ext=c 12459 ac_cpp='$CPP $CPPFLAGS' 12460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12462 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12463 12464 fi 12465 12466 if test $coin_has_gmp = yes; then 12467 12468 $as_echo "#define HAVE_GMP 1" >>confdefs.h 12469 12470 fi 12390 12471 12391 12472 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf" … … 12402 12483 12403 12484 12404 # AC_COIN_CHECK_LIBM(Glpk)12485 #Does Glpk needs -lm? AC_COIN_CHECK_LIBM(Glpk) 12405 12486 12406 12487 ########################################################################### -
ThirdParty/Glpk/branches/autotools-update/configure.ac
r3250 r3252 51 51 AC_LANG_PUSH(C) 52 52 53 #AC_COIN_CHECK_GMP(Glpk)54 #if test $coin_has_gmp = yes; then55 #AC_DEFINE([HAVE_GMP],[1],[Define to 1 if GMP is available])56 #fi53 AC_COIN_CHECK_GMP(Glpk) 54 if test $coin_has_gmp = yes; then 55 AC_DEFINE([HAVE_GMP],[1],[Define to 1 if GMP is available]) 56 fi 57 57 58 58 AC_CHECK_FUNC([vsnprintf]) … … 60 60 AC_LANG_POP(C) 61 61 62 # AC_COIN_CHECK_LIBM(Glpk)62 #Does Glpk needs -lm? AC_COIN_CHECK_LIBM(Glpk) 63 63 64 64 ###########################################################################
Note: See TracChangeset
for help on using the changeset viewer.