- Timestamp:
- Jun 11, 1997, 9:58:10 AM (27 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 412b7cd9dea701ccb6e452448d4e87e4cecaf2b0
- Parents:
- 2343621f398e488cc5c19b3ef2a2b67a1030013c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
configure
r234362 r78364c 17 17 --enable-PACKAGE configure and build PACKAGE 18 18 --disable-PACKAGE do not configure and build PACKAGE 19 --with-PACKAGE use PACKAGE, provide dependent functionality20 --without-PACKAGE do not use PACKAGE, disable dependent functionality21 19 where PACKAGE can be: 22 gmp GNU multiple precision library"20 smallgmp minimal version of gmp written in C only" 23 21 ac_help="$ac_help 24 22 \ … … 32 30 ac_help="$ac_help 33 31 \ 34 Singular, CAS for commutative algebra" 32 Singular CAS for commutative algebra" 33 ac_help="$ac_help 34 \ 35 --with-PACKAGE use PACKAGE, provide dependent functionality 36 --without-PACKAGE do not use PACKAGE, disable dependent functionality 37 where PACKAGE can be: 38 MP Multi Protocol" 39 ac_help="$ac_help 40 \ 41 factory polynomial factorization library" 42 ac_help="$ac_help 43 \ 44 libfac char set and modp poly factorization library" 45 ac_help="$ac_help 46 \ 47 --with-apint=PACKAGE use PACKAGE for arbitary integer arithmetic 48 where PACKAGE can be gmp, smallgmp, or buildin" 35 49 36 50 # Initialize some variables set by options. … … 670 684 #endif 671 685 EOF 672 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6 73: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then686 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 673 687 ac_cv_prog_gcc=yes 674 688 else … … 722 736 # not just through cpp. 723 737 cat > conftest.$ac_ext <<EOF 724 #line 7 25"configure"738 #line 739 "configure" 725 739 #include "confdefs.h" 726 740 #include <assert.h> … … 728 742 EOF 729 743 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 730 { (eval echo configure:7 31: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }744 { (eval echo configure:745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 731 745 ac_err=`grep -v '^ *+' conftest.out` 732 746 if test -z "$ac_err"; then … … 737 751 CPP="${CC-cc} -E -traditional-cpp" 738 752 cat > conftest.$ac_ext <<EOF 739 #line 7 40"configure"753 #line 754 "configure" 740 754 #include "confdefs.h" 741 755 #include <assert.h> … … 743 757 EOF 744 758 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 745 { (eval echo configure:7 46: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }759 { (eval echo configure:760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 746 760 ac_err=`grep -v '^ *+' conftest.out` 747 761 if test -z "$ac_err"; then … … 765 779 echo $ac_n "checking for AIX""... $ac_c" 1>&6 766 780 cat > conftest.$ac_ext <<EOF 767 #line 7 68"configure"781 #line 782 "configure" 768 782 #include "confdefs.h" 769 783 #ifdef _AIX … … 820 834 else 821 835 cat > conftest.$ac_ext <<EOF 822 #line 8 23"configure"836 #line 837 "configure" 823 837 #include "confdefs.h" 824 838 #ifdef _AIX … … 854 868 LIBS="-lm $LIBS" 855 869 cat > conftest.$ac_ext <<EOF 856 #line 8 57"configure"870 #line 871 "configure" 857 871 #include "confdefs.h" 858 872 /* Override any gcc2 internal prototype to avoid an error. */ … … 864 878 ; return 0; } 865 879 EOF 866 if { (eval echo configure:8 67: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then880 if { (eval echo configure:881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 867 881 rm -rf conftest* 868 882 eval "ac_cv_lib_$ac_lib_var=yes" … … 889 903 890 904 echo $ac_n "checking for -lgmp""... $ac_c" 1>&6 891 ac_lib_var=`echo gmp_mp z_init | tr '.-/+' '___p'`905 ac_lib_var=`echo gmp_mpq_init | tr '.-/+' '___p'` 892 906 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 893 907 echo $ac_n "(cached) $ac_c" 1>&6 … … 896 910 LIBS="-lgmp $LIBS" 897 911 cat > conftest.$ac_ext <<EOF 898 #line 899"configure"912 #line 913 "configure" 899 913 #include "confdefs.h" 900 914 /* Override any gcc2 internal prototype to avoid an error. */ 901 char mp z_init();915 char mpq_init(); 902 916 903 917 int main() { return 0; } 904 918 int t() { 905 mp z_init()919 mpq_init() 906 920 ; return 0; } 907 921 EOF 908 if { (eval echo configure:9 09: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then922 if { (eval echo configure:923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 909 923 rm -rf conftest* 910 924 eval "ac_cv_lib_$ac_lib_var=yes" … … 930 944 fi 931 945 946 echo $ac_n "checking for -lsmallgmp""... $ac_c" 1>&6 947 ac_lib_var=`echo smallgmp_mpz_init | tr '.-/+' '___p'` 948 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 949 echo $ac_n "(cached) $ac_c" 1>&6 950 else 951 ac_save_LIBS="$LIBS" 952 LIBS="-lsmallgmp $LIBS" 953 cat > conftest.$ac_ext <<EOF 954 #line 955 "configure" 955 #include "confdefs.h" 956 /* Override any gcc2 internal prototype to avoid an error. */ 957 char mpz_init(); 958 959 int main() { return 0; } 960 int t() { 961 mpz_init() 962 ; return 0; } 963 EOF 964 if { (eval echo configure:965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 965 rm -rf conftest* 966 eval "ac_cv_lib_$ac_lib_var=yes" 967 else 968 rm -rf conftest* 969 eval "ac_cv_lib_$ac_lib_var=no" 970 fi 971 rm -f conftest* 972 LIBS="$ac_save_LIBS" 973 974 fi 975 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 976 echo "$ac_t""yes" 1>&6 977 ac_tr_lib=HAVE_LIB`echo smallgmp | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 978 cat >> confdefs.h <<EOF 979 #define $ac_tr_lib 1 980 EOF 981 982 LIBS="-lsmallgmp $LIBS" 983 984 else 985 echo "$ac_t""no" 1>&6 986 fi 987 932 988 echo $ac_n "checking for -lMP""... $ac_c" 1>&6 933 989 ac_lib_var=`echo MP_IMP_PutGmpInt | tr '.-/+' '___p'` … … 938 994 LIBS="-lMP $LIBS" 939 995 cat > conftest.$ac_ext <<EOF 940 #line 9 41"configure"996 #line 997 "configure" 941 997 #include "confdefs.h" 942 998 /* Override any gcc2 internal prototype to avoid an error. */ … … 948 1004 ; return 0; } 949 1005 EOF 950 if { (eval echo configure: 951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1006 if { (eval echo configure:1007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 951 1007 rm -rf conftest* 952 1008 eval "ac_cv_lib_$ac_lib_var=yes" … … 980 1036 LIBS="-lMPT $LIBS" 981 1037 cat > conftest.$ac_ext <<EOF 982 #line 983"configure"1038 #line 1039 "configure" 983 1039 #include "confdefs.h" 984 1040 /* Override any gcc2 internal prototype to avoid an error. */ … … 990 1046 ; return 0; } 991 1047 EOF 992 if { (eval echo configure: 993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1048 if { (eval echo configure:1049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 993 1049 rm -rf conftest* 994 1050 eval "ac_cv_lib_$ac_lib_var=yes" … … 1022 1078 LIBS="-lsingcf $LIBS" 1023 1079 cat > conftest.$ac_ext <<EOF 1024 #line 10 25"configure"1080 #line 1081 "configure" 1025 1081 #include "confdefs.h" 1026 1082 /* Override any gcc2 internal prototype to avoid an error. */ … … 1032 1088 ; return 0; } 1033 1089 EOF 1034 if { (eval echo configure:10 35: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1090 if { (eval echo configure:1091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1035 1091 rm -rf conftest* 1036 1092 eval "ac_cv_lib_$ac_lib_var=yes" … … 1064 1120 LIBS="-lsingfac $LIBS" 1065 1121 cat > conftest.$ac_ext <<EOF 1066 #line 1 067"configure"1122 #line 1123 "configure" 1067 1123 #include "confdefs.h" 1068 1124 /* Override any gcc2 internal prototype to avoid an error. */ … … 1074 1130 ; return 0; } 1075 1131 EOF 1076 if { (eval echo configure:1 077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1132 if { (eval echo configure:1133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1077 1133 rm -rf conftest* 1078 1134 eval "ac_cv_lib_$ac_lib_var=yes" … … 1099 1155 1100 1156 1101 for ac_hdr in gmp.h MP.h MPT.h factory.h factor.h1157 for ac_hdr in gmp.h smallgmp.h MP.h MPT.h factory.h factor.h 1102 1158 do 1103 1159 ac_safe=`echo "$ac_hdr" | tr './\055' '___'` … … 1107 1163 else 1108 1164 cat > conftest.$ac_ext <<EOF 1109 #line 11 10"configure"1165 #line 1166 "configure" 1110 1166 #include "confdefs.h" 1111 1167 #include <$ac_hdr> 1112 1168 EOF 1113 1169 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1114 { (eval echo configure:11 15: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1170 { (eval echo configure:1171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1115 1171 ac_err=`grep -v '^ *+' conftest.out` 1116 1172 if test -z "$ac_err"; then … … 1137 1193 1138 1194 1139 if test "$ac_cv_lib_gmp_mp z_init" = yes && \1195 if test "$ac_cv_lib_gmp_mpq_init" = yes && \ 1140 1196 test "$ac_cv_header_gmp_h" = yes; then 1141 1197 ac_gmp_ok=yes 1198 fi 1199 1200 if test "$ac_cv_lib_smallgmp_mpz_init" = yes && \ 1201 test "$ac_cv_header_smallgmp_h" = yes && \ 1202 test "$ac_cv_header_gmp_h" = yes; then 1203 ac_smallgmp_ok=yes 1142 1204 fi 1143 1205 … … 1161 1223 1162 1224 1163 # Check whether --enable- gmp or --disable-gmp was given.1164 if test "${enable_ gmp+set}" = set; then1165 enableval="$enable_ gmp"1225 # Check whether --enable-smallgmp or --disable-smallgmp was given. 1226 if test "${enable_smallgmp+set}" = set; then 1227 enableval="$enable_smallgmp" 1166 1228 : 1167 1229 fi … … 1192 1254 1193 1255 1194 echo $ac_n "checking whether to configure and build gmp lib""... $ac_c" 1>&6 1195 if test "$enable_gmp" != yes && test "$enable_gmp" != no; then 1196 if test "$with_gmp" != no && test "$ac_gmp_ok" != yes; then 1197 enable_gmp=yes 1256 # Check whether --with-MP or --without-MP was given. 1257 if test "${with_MP+set}" = set; then 1258 withval="$with_MP" 1259 : 1260 fi 1261 1262 # Check whether --with-factory or --without-factory was given. 1263 if test "${with_factory+set}" = set; then 1264 withval="$with_factory" 1265 : 1266 fi 1267 1268 # Check whether --with-libfac or --without-libfac was given. 1269 if test "${with_libfac+set}" = set; then 1270 withval="$with_libfac" 1271 : 1272 fi 1273 1274 # Check whether --with-gmp or --without-gmp was given. 1275 if test "${with_gmp+set}" = set; then 1276 withval="$with_gmp" 1277 : 1278 fi 1279 1280 1281 echo $ac_n "checking whether to configure and build smallgmp lib""... $ac_c" 1>&6 1282 if test "$enable_smallgmp" != yes && test "$enable_smallgmp" != no; then 1283 if test "$ac_smallgmp_ok" != yes && \ 1284 test "$ac_gmp_ok" != yes && \ 1285 (test "$with_apint" = smallgmp || test "${with_apint+set}" != set); then 1286 enable_smallgmp=yes 1198 1287 else 1199 enable_gmp=no 1200 fi 1201 fi 1202 if test "$enable_gmp" = yes && test -d gmp; then 1203 if test "$ac_cv_is_aix" = yes && test "$GCC" = yes; then 1204 echo "$ac_t""no" 1>&6 1205 echo "configure: warning: Building gmp v2 with gcc results in a gmp lib with bugs" 1>&2 1206 echo "configure: warning: Install gmp v2 with another compiler first or use gmp v1.3" 1>&2 1207 echo "configure: warning: For the time being gmp is neither configured/built nor used" 1>&2 1208 enable_gmp=no 1288 enable_smallgmp=no 1289 fi 1290 fi 1291 if test "$enable_smallgmp" = yes && test -d smallgmp; then 1292 echo "$ac_t""yes" 1>&6 1293 CONFIG_SUBDIRS="$CONFIG_SUBDIRS smallgmp" 1294 enable_smallgmp=yes 1295 ac_will_have_gmp=yes 1296 else 1297 echo "$ac_t""no" 1>&6 1298 if test "$enable_smallgmp" = yes && test ! -d smallgmp; then 1299 echo "configure: warning: Did not find smallgmp subdir" 1>&2 1300 fi 1301 enable_smallgmp=no 1302 fi 1303 if test "$ac_gmp_ok" != yes && \ 1304 test "$ac_smallgmp_ok" != yes && \ 1305 test "$enable_smallgmp" != yes; then 1306 echo "configure: warning: Would rather have gmp or smallgmp to build libs and Singular" 1>&2 1209 1307 ac_configure_args="$ac_configure_args --disable-gmp" 1210 else 1211 echo "$ac_t""yes" 1>&6 1212 CONFIG_SUBDIRS="gmp" 1213 ac_configure_args="$ac_configure_args --enable-gmp" 1214 fi 1215 else 1216 echo "$ac_t""no" 1>&6 1217 if test "$enable_gmp" = yes && test ! -d gmp; then 1218 echo "configure: warning: Did not find gmp subdirectory" 1>&2 1219 fi 1220 enable_gmp=no 1221 ac_configure_args="$ac_configure_args --disable-gmp" 1308 else 1309 ac_configure_args="$ac_configure_args --enable-gmp" 1222 1310 fi 1223 1311 … … 1231 1319 fi 1232 1320 if test "$enable_MP" = yes && test -d MP; then 1233 if test "$ac_ gmp_ok" = yes || test "$enable_gmp" = yes; then1321 if test "$ac_will_have_gmp" = yes || test "$ac_gmp_ok" = yes; then 1234 1322 echo "$ac_t""yes" 1>&6 1235 1323 CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP" … … 1237 1325 else 1238 1326 echo "$ac_t""no" 1>&6 1239 echo "configure: warning: Can not build MP for Singularwithout having gmp" 1>&21240 enabl e_MP=no1327 echo "configure: warning: Can not build MP without having gmp" 1>&2 1328 enabl_MP=no 1241 1329 ac_configure_args="$ac_configure_args --disable-MP" 1242 1330 fi … … 1248 1336 enable_MP=no 1249 1337 ac_configure_args="$ac_configure_args --disable-MP" 1250 fi1251 1252 if test "$with_builtingmp" = yes; then1253 enable_gmp=yes1254 ac_configure_args="$ac_configure_args --enable-gmp"1255 1338 fi 1256 1339 … … 1264 1347 fi 1265 1348 if test "$enable_factory" = yes && test -d factory; then 1266 if test "$ac_ gmp_ok" = yes || test "$enable_gmp" = yes; then1267 echo "$ac_t""yes" 1>&61268 CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory"1269 ac_configure_args="$ac_configure_args --enable-factory"1349 if test "$ac_will_have_gmp" = yes || test "$ac_gmp_ok" = yes; then 1350 echo "$ac_t""yes" 1>&6 1351 CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory" 1352 ac_configure_args="$ac_configure_args --enable-factory" 1270 1353 else 1271 1354 echo "$ac_t""no" 1>&6 … … 1333 1416 1334 1417 1335 echo $ac_n "checking w hether to use with gmp""... $ac_c" 1>&61336 if test "$with_ gmp" != no && test "$with_gmp" != yes; then1337 if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then1338 with_gmp=yes1339 else1340 with_gmp=no1341 fi1342 ac_configure_args="$ac_configure_args --with-gmp=$with_gmp"1343 fi 1344 if test "$with_gmp" = yes; then1345 echo "$ac_t""yes" 1>&61346 else 1347 echo "$ac_t""no" 1>&6 1348 fi 1418 echo $ac_n "checking wich apint package to use""... $ac_c" 1>&6 1419 if test "$with_apint" != gmp && \ 1420 test "$with_apint" != smallgmp && \ 1421 test "$with_apint" != buildin; then 1422 if test "$ac_gmp_ok" = yes; then 1423 with_apint=gmp 1424 elif test "$ac_enable_smallgmp" = yes; then 1425 with_apint=smallgmp 1426 else 1427 with_apint=buildin 1428 fi 1429 ac_configure_args="$ac_configure_args --with-apint=$with_apint" 1430 fi 1431 echo "$ac_t""${with_apint}" 1>&6 1349 1432 1350 1433 echo $ac_n "checking whether to use with MP""... $ac_c" 1>&6 … … 1363 1446 fi 1364 1447 1448 if test "$enable_MP" = yes; then 1449 if test "${with_apint}" = smallgmp; then 1450 ac_configure_args="$ac_configure_args --with-default_apreal=none" 1451 elif test "${with_apint}" = buildin; then 1452 ac_configure_args="$ac_configure_args --with-default_apreal=none --with-default-apint=none" 1453 fi 1454 fi 1455 1365 1456 echo $ac_n "checking whether to use with factory""... $ac_c" 1>&6 1366 1457 if test "$with_factory" != no && test "$with_factory" != yes; then … … 1409 1500 fi 1410 1501 1411 if test -d gmp; then1412 SUBDIRS=" gmp"1502 if test -d smallgmp; then 1503 SUBDIRS="smallgmp" 1413 1504 fi 1414 1505 if test -d MP; then
Note: See TracChangeset
for help on using the changeset viewer.