Mercurial > hg > xemacs-beta
comparison configure.in @ 2009:1388c8b3e663
[xemacs-hg @ 2004-04-13 04:23:49 by james]
Kaarthik Sivakumar's change to check for libmp dependencies before checking
whether it contains the move function.
author | james |
---|---|
date | Tue, 13 Apr 2004 04:23:50 +0000 |
parents | 1ea9c87af805 |
children | 193e76abdf0f |
comparison
equal
deleted
inserted
replaced
2008:8364712266dd | 2009:1388c8b3e663 |
---|---|
4889 XE_DIE("Required GMP numeric support cannot be provided.") | 4889 XE_DIE("Required GMP numeric support cannot be provided.") |
4890 fi | 4890 fi |
4891 elif test "$use_number_lib" = "mp"; then | 4891 elif test "$use_number_lib" = "mp"; then |
4892 for library in "" "-lcrypto"; do | 4892 for library in "" "-lcrypto"; do |
4893 AC_CHECK_HEADER(mp.h, [ | 4893 AC_CHECK_HEADER(mp.h, [ |
4894 AC_CHECK_LIB(mp, mp_mfree, have_mp_mfree=yes break, [ | 4894 AC_CHECK_LIB(mp, mp_mfree, have_mp_mfree=yes; break, [ |
4895 AC_CHECK_LIB(mp, mfree, have_mfree=yes break, , $library)], | 4895 AC_CHECK_LIB(mp, mfree, have_mfree=yes; break, , $library)], |
4896 $library)]) | 4896 $library)]) |
4897 done | 4897 done |
4898 if test "$have_mp_mfree" = "yes"; then | 4898 if test "$have_mp_mfree" = "yes"; then |
4899 AC_DEFINE(MP_PREFIX) | 4899 AC_DEFINE(MP_PREFIX) |
4900 XE_APPEND(-lmp, LIBS) | 4900 XE_APPEND(-lmp, LIBS) |
4901 if test "$library" != ""; then | |
4902 XE_APPEND($library, LIBS) | |
4903 fi | |
4901 AC_CHECK_FUNC(mp_move, [AC_DEFINE(HAVE_MP_MOVE)]) | 4904 AC_CHECK_FUNC(mp_move, [AC_DEFINE(HAVE_MP_MOVE)]) |
4902 elif test "$have_mfree" = "yes"; then | 4905 elif test "$have_mfree" = "yes"; then |
4903 XE_APPEND(-lmp, LIBS) | 4906 XE_APPEND(-lmp, LIBS) |
4907 if test "$library" != ""; then | |
4908 XE_APPEND($library, LIBS) | |
4909 fi | |
4904 AC_CHECK_FUNC(move, [AC_DEFINE(HAVE_MP_MOVE)]) | 4910 AC_CHECK_FUNC(move, [AC_DEFINE(HAVE_MP_MOVE)]) |
4905 else | 4911 else |
4906 XE_DIE("Required MP numeric support cannot be provided.") | 4912 XE_DIE("Required MP numeric support cannot be provided.") |
4907 fi | |
4908 if test "$library" != ""; then | |
4909 XE_APPEND($library, LIBS) | |
4910 fi | 4913 fi |
4911 AC_DEFINE(WITH_NUMBER_TYPES) | 4914 AC_DEFINE(WITH_NUMBER_TYPES) |
4912 AC_DEFINE(WITH_MP) | 4915 AC_DEFINE(WITH_MP) |
4913 fi | 4916 fi |
4914 | 4917 |