Changeset 8c4748 in git for configure


Ignore:
Timestamp:
Jun 3, 1998, 10:23:05 PM (26 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'c7af8613769b29c741d6c338945669719f1fc4f8')
Children:
7d52aeabd678579289e1729e9ad93a09597d321b
Parents:
a9004e76f306c06bee9af52324ef40eb797d9bbb
Message:
* fixed calls to AC_OUTPUT


git-svn-id: file:///usr/local/Singular/svn/trunk@2058 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    ra9004e r8c4748  
    561561
    562562
     563OUTPUT_MAKEFILES="Makefile doc/Makefile"
     564
    563565
    564566# make them to env variables
     
    579581
    580582
     583# construct name of installed Singular executable
     584SINGULAR=${bindir}/Singular-${SINGULAR_MAJOR_VERSION}.${SINGULAR_MINOR_VERSION}.${SINGULAR_SUB_VERSION}
     585export SINGULAR
     586
     587
     588
    581589# Extract the first word of "gcc", so it can be a program name with args.
    582590set dummy gcc; ac_word=$2
    583591echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    584 echo "configure:585: checking for $ac_word" >&5
     592echo "configure:593: checking for $ac_word" >&5
    585593if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    586594  echo $ac_n "(cached) $ac_c" 1>&6
     
    611619set dummy cc; ac_word=$2
    612620echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    613 echo "configure:614: checking for $ac_word" >&5
     621echo "configure:622: checking for $ac_word" >&5
    614622if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    615623  echo $ac_n "(cached) $ac_c" 1>&6
     
    659667
    660668echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    661 echo "configure:662: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     669echo "configure:670: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    662670
    663671ac_ext=c
     
    669677
    670678cat > conftest.$ac_ext <<EOF
    671 #line 672 "configure"
     679#line 680 "configure"
    672680#include "confdefs.h"
    673681main(){return(0);}
    674682EOF
    675 if { (eval echo configure:676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     683if { (eval echo configure:684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    676684  ac_cv_prog_cc_works=yes
    677685  # If we can't run a trivial program, we are probably using a cross compiler.
     
    693701fi
    694702echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    695 echo "configure:696: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     703echo "configure:704: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    696704echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    697705cross_compiling=$ac_cv_prog_cc_cross
    698706
    699707echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    700 echo "configure:701: checking whether we are using GNU C" >&5
     708echo "configure:709: checking whether we are using GNU C" >&5
    701709if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    702710  echo $ac_n "(cached) $ac_c" 1>&6
     
    707715#endif
    708716EOF
    709 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     717if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    710718  ac_cv_prog_gcc=yes
    711719else
     
    722730  CFLAGS=
    723731  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    724 echo "configure:725: checking whether ${CC-cc} accepts -g" >&5
     732echo "configure:733: checking whether ${CC-cc} accepts -g" >&5
    725733if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    726734  echo $ac_n "(cached) $ac_c" 1>&6
     
    750758
    751759echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
    752 echo "configure:753: checking how to run the C preprocessor" >&5
     760echo "configure:761: checking how to run the C preprocessor" >&5
    753761# On Suns, sometimes $CPP names a directory.
    754762if test -n "$CPP" && test -d "$CPP"; then
     
    765773  # not just through cpp.
    766774  cat > conftest.$ac_ext <<EOF
    767 #line 768 "configure"
     775#line 776 "configure"
    768776#include "confdefs.h"
    769777#include <assert.h>
     
    771779EOF
    772780ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    773 { (eval echo configure:774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     781{ (eval echo configure:782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    774782ac_err=`grep -v '^ *+' conftest.out`
    775783if test -z "$ac_err"; then
     
    782790  CPP="${CC-cc} -E -traditional-cpp"
    783791  cat > conftest.$ac_ext <<EOF
    784 #line 785 "configure"
     792#line 793 "configure"
    785793#include "confdefs.h"
    786794#include <assert.h>
     
    788796EOF
    789797ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    790 { (eval echo configure:791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     798{ (eval echo configure:799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    791799ac_err=`grep -v '^ *+' conftest.out`
    792800if test -z "$ac_err"; then
     
    811819
    812820echo $ac_n "checking for AIX""... $ac_c" 1>&6
    813 echo "configure:814: checking for AIX" >&5
     821echo "configure:822: checking for AIX" >&5
    814822cat > conftest.$ac_ext <<EOF
    815 #line 816 "configure"
     823#line 824 "configure"
    816824#include "confdefs.h"
    817825#ifdef _AIX
     
    857865
    858866# expand bindir
    859 test "x$bindir" = 'x${exec_prefix}/bin' && \
    860   bindir="${exec_prefix}/bin" ; \
    861    ac_configure_args="$ac_configure_args --bindir=${bindir}"
    862 
    863 # construct name of installed Singular executable
    864 SINGULAR=${bindir}/Singular-${SINGULAR_MAJOR_VERSION}.${SINGULAR_MINOR_VERSION}.${SINGULAR_SUB_VERSION}
    865 export SINGULAR
    866 
     867if test "x$bindir" = 'x${exec_prefix}/bin'; then
     868  bindir="${exec_prefix}/bin"
     869  ac_configure_args="$ac_configure_args --bindir=${bindir}"
     870fi
    867871
    868872# expand libdir
    869 test "x$libdir" = 'x${exec_prefix}/lib' && \
    870   libdir="${exec_prefix}/lib/${SINGULAR_VERSION}" ; \
    871    ac_configure_args="$ac_configure_args --libdir=${libdir}"
     873if test "x$libdir" = 'x${exec_prefix}/lib'; then
     874  libdir="${exec_prefix}/lib/${SINGULAR_VERSION}"
     875  ac_configure_args="$ac_configure_args --libdir=${libdir}"
     876fi
    872877
    873878# expand includedir
    874 test "x$includedir" = 'x${prefix}/include' &&  \
    875   includedir="${exec_prefix}/include/${SINGULAR_VERSION}" ; \
    876    ac_configure_args="$ac_configure_args --includedir=${includedir}"
    877 
    878 # add to -I to CPPFLAGS and and -L to LDFLAGS, just to be sure
     879if test "x$includedir" = 'x${prefix}/include'; then
     880  includedir="${exec_prefix}/include/${SINGULAR_VERSION}"
     881  ac_configure_args="$ac_configure_args --includedir=${includedir}"
     882fi
     883
     884
     885
     886# add -I to CPPFLAGS and -L to LDFLAGS, just to be sure
    879887LDFLAGS="-L${libdir} ${LDFLAGS}"
    880888CPPFLAGS="-I${includedir} ${CPPFLAGS}"
    881889
    882 
     890# check for AIX
    883891echo $ac_n "checking whether _AIX is defined""... $ac_c" 1>&6
    884 echo "configure:885: checking whether _AIX is defined" >&5
     892echo "configure:893: checking whether _AIX is defined" >&5
    885893if eval "test \"`echo '$''{'ac_cv_is_aix'+set}'`\" = set"; then
    886894  echo $ac_n "(cached) $ac_c" 1>&6
    887895else
    888896  cat > conftest.$ac_ext <<EOF
    889 #line 890 "configure"
     897#line 898 "configure"
    890898#include "confdefs.h"
    891899#ifdef _AIX
     
    912920fi
    913921
    914 
    915922echo $ac_n "checking for atof in -lm""... $ac_c" 1>&6
    916 echo "configure:917: checking for atof in -lm" >&5
     923echo "configure:924: checking for atof in -lm" >&5
    917924ac_lib_var=`echo m'_'atof | sed 'y%./+-%__p_%'`
    918925if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    922929LIBS="-lm  $LIBS"
    923930cat > conftest.$ac_ext <<EOF
    924 #line 925 "configure"
     931#line 932 "configure"
    925932#include "confdefs.h"
    926933/* Override any gcc2 internal prototype to avoid an error.  */
     
    933940; return 0; }
    934941EOF
    935 if { (eval echo configure:936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     942if { (eval echo configure:943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    936943  rm -rf conftest*
    937944  eval "ac_cv_lib_$ac_lib_var=yes"
     
    961968
    962969echo $ac_n "checking for socket in -lbsd""... $ac_c" 1>&6
    963 echo "configure:964: checking for socket in -lbsd" >&5
     970echo "configure:971: checking for socket in -lbsd" >&5
    964971ac_lib_var=`echo bsd'_'socket | sed 'y%./+-%__p_%'`
    965972if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    969976LIBS="-lbsd  $LIBS"
    970977cat > conftest.$ac_ext <<EOF
    971 #line 972 "configure"
     978#line 979 "configure"
    972979#include "confdefs.h"
    973980/* Override any gcc2 internal prototype to avoid an error.  */
     
    980987; return 0; }
    981988EOF
    982 if { (eval echo configure:983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     989if { (eval echo configure:990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    983990  rm -rf conftest*
    984991  eval "ac_cv_lib_$ac_lib_var=yes"
     
    10081015
    10091016echo $ac_n "checking for listen in -lsocket""... $ac_c" 1>&6
    1010 echo "configure:1011: checking for listen in -lsocket" >&5
     1017echo "configure:1018: checking for listen in -lsocket" >&5
    10111018ac_lib_var=`echo socket'_'listen | sed 'y%./+-%__p_%'`
    10121019if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    10161023LIBS="-lsocket  $LIBS"
    10171024cat > conftest.$ac_ext <<EOF
    1018 #line 1019 "configure"
     1025#line 1026 "configure"
    10191026#include "confdefs.h"
    10201027/* Override any gcc2 internal prototype to avoid an error.  */
     
    10271034; return 0; }
    10281035EOF
    1029 if { (eval echo configure:1030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1036if { (eval echo configure:1037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    10301037  rm -rf conftest*
    10311038  eval "ac_cv_lib_$ac_lib_var=yes"
     
    10551062
    10561063echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
    1057 echo "configure:1058: checking for gethostbyname in -lnsl" >&5
     1064echo "configure:1065: checking for gethostbyname in -lnsl" >&5
    10581065ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
    10591066if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    10631070LIBS="-lnsl  $LIBS"
    10641071cat > conftest.$ac_ext <<EOF
    1065 #line 1066 "configure"
     1072#line 1073 "configure"
    10661073#include "confdefs.h"
    10671074/* Override any gcc2 internal prototype to avoid an error.  */
     
    10741081; return 0; }
    10751082EOF
    1076 if { (eval echo configure:1077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1083if { (eval echo configure:1084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    10771084  rm -rf conftest*
    10781085  eval "ac_cv_lib_$ac_lib_var=yes"
     
    11021109
    11031110echo $ac_n "checking for mpq_init in -lgmp""... $ac_c" 1>&6
    1104 echo "configure:1105: checking for mpq_init in -lgmp" >&5
     1111echo "configure:1112: checking for mpq_init in -lgmp" >&5
    11051112ac_lib_var=`echo gmp'_'mpq_init | sed 'y%./+-%__p_%'`
    11061113if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    11101117LIBS="-lgmp  $LIBS"
    11111118cat > conftest.$ac_ext <<EOF
    1112 #line 1113 "configure"
     1119#line 1120 "configure"
    11131120#include "confdefs.h"
    11141121/* Override any gcc2 internal prototype to avoid an error.  */
     
    11211128; return 0; }
    11221129EOF
    1123 if { (eval echo configure:1124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1130if { (eval echo configure:1131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    11241131  rm -rf conftest*
    11251132  eval "ac_cv_lib_$ac_lib_var=yes"
     
    11491156
    11501157echo $ac_n "checking for mpz_init in -lsmallgmp""... $ac_c" 1>&6
    1151 echo "configure:1152: checking for mpz_init in -lsmallgmp" >&5
     1158echo "configure:1159: checking for mpz_init in -lsmallgmp" >&5
    11521159ac_lib_var=`echo smallgmp'_'mpz_init | sed 'y%./+-%__p_%'`
    11531160if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    11571164LIBS="-lsmallgmp  $LIBS"
    11581165cat > conftest.$ac_ext <<EOF
    1159 #line 1160 "configure"
     1166#line 1167 "configure"
    11601167#include "confdefs.h"
    11611168/* Override any gcc2 internal prototype to avoid an error.  */
     
    11681175; return 0; }
    11691176EOF
    1170 if { (eval echo configure:1171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1177if { (eval echo configure:1178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    11711178  rm -rf conftest*
    11721179  eval "ac_cv_lib_$ac_lib_var=yes"
     
    11961203
    11971204echo $ac_n "checking for IMP_PutGmpInt in -lMP""... $ac_c" 1>&6
    1198 echo "configure:1199: checking for IMP_PutGmpInt in -lMP" >&5
     1205echo "configure:1206: checking for IMP_PutGmpInt in -lMP" >&5
    11991206ac_lib_var=`echo MP'_'IMP_PutGmpInt | sed 'y%./+-%__p_%'`
    12001207if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    12041211LIBS="-lMP  $LIBS"
    12051212cat > conftest.$ac_ext <<EOF
    1206 #line 1207 "configure"
     1213#line 1214 "configure"
    12071214#include "confdefs.h"
    12081215/* Override any gcc2 internal prototype to avoid an error.  */
     
    12151222; return 0; }
    12161223EOF
    1217 if { (eval echo configure:1218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1224if { (eval echo configure:1225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    12181225  rm -rf conftest*
    12191226  eval "ac_cv_lib_$ac_lib_var=yes"
     
    12431250
    12441251echo $ac_n "checking for MPT_GetTree in -lMPT""... $ac_c" 1>&6
    1245 echo "configure:1246: checking for MPT_GetTree in -lMPT" >&5
     1252echo "configure:1253: checking for MPT_GetTree in -lMPT" >&5
    12461253ac_lib_var=`echo MPT'_'MPT_GetTree | sed 'y%./+-%__p_%'`
    12471254if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    12511258LIBS="-lMPT  $LIBS"
    12521259cat > conftest.$ac_ext <<EOF
    1253 #line 1254 "configure"
     1260#line 1261 "configure"
    12541261#include "confdefs.h"
    12551262/* Override any gcc2 internal prototype to avoid an error.  */
     
    12621269; return 0; }
    12631270EOF
    1264 if { (eval echo configure:1265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1271if { (eval echo configure:1272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    12651272  rm -rf conftest*
    12661273  eval "ac_cv_lib_$ac_lib_var=yes"
     
    12901297
    12911298echo $ac_n "checking for atof in -lsingcf""... $ac_c" 1>&6
    1292 echo "configure:1293: checking for atof in -lsingcf" >&5
     1299echo "configure:1300: checking for atof in -lsingcf" >&5
    12931300ac_lib_var=`echo singcf'_'atof | sed 'y%./+-%__p_%'`
    12941301if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    12981305LIBS="-lsingcf  $LIBS"
    12991306cat > conftest.$ac_ext <<EOF
    1300 #line 1301 "configure"
     1307#line 1308 "configure"
    13011308#include "confdefs.h"
    13021309/* Override any gcc2 internal prototype to avoid an error.  */
     
    13091316; return 0; }
    13101317EOF
    1311 if { (eval echo configure:1312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1318if { (eval echo configure:1319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    13121319  rm -rf conftest*
    13131320  eval "ac_cv_lib_$ac_lib_var=yes"
     
    13371344
    13381345echo $ac_n "checking for atof in -lsingfac""... $ac_c" 1>&6
    1339 echo "configure:1340: checking for atof in -lsingfac" >&5
     1346echo "configure:1347: checking for atof in -lsingfac" >&5
    13401347ac_lib_var=`echo singfac'_'atof | sed 'y%./+-%__p_%'`
    13411348if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    13451352LIBS="-lsingfac  $LIBS"
    13461353cat > conftest.$ac_ext <<EOF
    1347 #line 1348 "configure"
     1354#line 1355 "configure"
    13481355#include "confdefs.h"
    13491356/* Override any gcc2 internal prototype to avoid an error.  */
     
    13561363; return 0; }
    13571364EOF
    1358 if { (eval echo configure:1359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1365if { (eval echo configure:1366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    13591366  rm -rf conftest*
    13601367  eval "ac_cv_lib_$ac_lib_var=yes"
     
    13881395ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    13891396echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1390 echo "configure:1391: checking for $ac_hdr" >&5
     1397echo "configure:1398: checking for $ac_hdr" >&5
    13911398if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    13921399  echo $ac_n "(cached) $ac_c" 1>&6
    13931400else
    13941401  cat > conftest.$ac_ext <<EOF
    1395 #line 1396 "configure"
     1402#line 1403 "configure"
    13961403#include "confdefs.h"
    13971404#include <$ac_hdr>
    13981405EOF
    13991406ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1400 { (eval echo configure:1401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1407{ (eval echo configure:1408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    14011408ac_err=`grep -v '^ *+' conftest.out`
    14021409if test -z "$ac_err"; then
     
    14271434if test "$ac_cv_lib_gmp_mpq_init" = yes && \
    14281435 test "$ac_cv_header_gmp_h" = yes; then
    1429     ac_gmp_ok=yes
     1436  ac_gmp_ok=yes
    14301437fi
    14311438
     
    14331440 test "$ac_cv_header_smallgmp_h" = yes && \
    14341441 test "$ac_cv_header_gmp_h" = yes; then
    1435     ac_smallgmp_ok=yes
     1442  ac_smallgmp_ok=yes
    14361443fi
    14371444
     
    14531460fi
    14541461
    1455 
    14561462 
    14571463# Check whether --enable-smallgmp or --disable-smallgmp was given.
     
    15241530
    15251531echo $ac_n "checking whether to configure and build gmp lib""... $ac_c" 1>&6
    1526 echo "configure:1527: checking whether to configure and build gmp lib" >&5
     1532echo "configure:1533: checking whether to configure and build gmp lib" >&5
    15271533if test "$enable_gmp" != yes && test "$enable_gmp" != no; then
    15281534  if test "$ac_gmp_ok" != yes && test -d gmp; then
     
    15311537    CONFIG_SUBDIRS="$CONFIG_SUBDIRS gmp"
    15321538    ac_configure_args="$ac_configure_args --enable-gmp"
     1539    OUTPUT_MAKEFILES="$OUTPUT_MAKEFILES gmp/Makefile.in"
    15331540  else
    15341541    echo "$ac_t""no" 1>&6
     
    15421549    echo "$ac_t""yes" 1>&6
    15431550    CONFIG_SUBDIRS="$CONFIG_SUBDIRS gmp"
     1551    OUTPUT_MAKEFILES="$OUTPUT_MAKEFILES gmp/Makefile.in"
    15441552  fi
    15451553else
     
    15481556
    15491557echo $ac_n "checking whether to configure and build smallgmp lib""... $ac_c" 1>&6
    1550 echo "configure:1551: checking whether to configure and build smallgmp lib" >&5
     1558echo "configure:1559: checking whether to configure and build smallgmp lib" >&5
    15511559if test "$enable_smallgmp" != yes && test "$enable_smallgmp" != no; then
    15521560  if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && \
     
    15871595
    15881596echo $ac_n "checking whether to configure and build MP lib""... $ac_c" 1>&6
    1589 echo "configure:1590: checking whether to configure and build MP lib" >&5
     1597echo "configure:1598: checking whether to configure and build MP lib" >&5
    15901598if test "$enable_MP" != yes && test "$enable_MP" != no; then
    15911599  if test "$with_MP" != no && test "$ac_MP_ok" != yes && test -d MP && \
     
    16171625 
    16181626echo $ac_n "checking whether to configure and build factory lib""... $ac_c" 1>&6
    1619 echo "configure:1620: checking whether to configure and build factory lib" >&5
     1627echo "configure:1628: checking whether to configure and build factory lib" >&5
    16201628if test "$enable_factory" != yes && test "$enable_factory" != no; then
    16211629  if test "$with_factory" != no && test "$ac_factory_ok" != yes && \
     
    16421650
    16431651echo $ac_n "checking whether to configure and build libfac lib""... $ac_c" 1>&6
    1644 echo "configure:1645: checking whether to configure and build libfac lib" >&5
     1652echo "configure:1653: checking whether to configure and build libfac lib" >&5
    16451653if test "$enable_libfac" != yes && test "$enable_libfac" != no; then
    16461654  if test "$with_libfac" != no && test "$ac_libfac_ok" != yes && \
     
    16721680
    16731681echo $ac_n "checking whether to configure and build sgroup lib""... $ac_c" 1>&6
    1674 echo "configure:1675: checking whether to configure and build sgroup lib" >&5
     1682echo "configure:1683: checking whether to configure and build sgroup lib" >&5
    16751683if test "$enable_sgroup" != yes && test "$enable_sgroup" != no; then
    16761684  if test "$with_sgroup" != no && test "$ac_sgroup_ok" != yes && \
     
    17031711
    17041712echo $ac_n "checking whether to configure and build Singular""... $ac_c" 1>&6
    1705 echo "configure:1706: checking whether to configure and build Singular" >&5
     1713echo "configure:1714: checking whether to configure and build Singular" >&5
    17061714if test "$enable_Singular" != yes && test "$enable_Singular" != no; then
    17071715  if test "$with_Singular" != no && test -d Singular; then
     
    17281736
    17291737echo $ac_n "checking wich apint package to use""... $ac_c" 1>&6
    1730 echo "configure:1731: checking wich apint package to use" >&5
     1738echo "configure:1739: checking wich apint package to use" >&5
    17311739if test "$with_apint" = gmp; then
    17321740  if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then
     
    17521760
    17531761echo $ac_n "checking whether to use with MP""... $ac_c" 1>&6
    1754 echo "configure:1755: checking whether to use with MP" >&5
     1762echo "configure:1763: checking whether to use with MP" >&5
    17551763if test "$with_MP" = yes; then
    17561764  if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
     
    17711779
    17721780echo $ac_n "checking whether to use with factory""... $ac_c" 1>&6
    1773 echo "configure:1774: checking whether to use with factory" >&5
     1781echo "configure:1782: checking whether to use with factory" >&5
    17741782if test "$with_factory" = yes; then
    17751783  if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
     
    17901798 
    17911799echo $ac_n "checking whether to use with libfac""... $ac_c" 1>&6
    1792 echo "configure:1793: checking whether to use with libfac" >&5
     1800echo "configure:1801: checking whether to use with libfac" >&5
    17931801if test "$with_libfac" = yes; then
    17941802  if test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then
     
    18101818
    18111819echo $ac_n "checking whether to use with Singular""... $ac_c" 1>&6
    1812 echo "configure:1813: checking whether to use with Singular" >&5
     1820echo "configure:1821: checking whether to use with Singular" >&5
    18131821if test "$with_Singular" != no && test "$with_Singular" != yes; then
    18141822  if test "$enable_Singular" = yes; then
     
    18261834fi
    18271835
     1836SUBDIRS=""
    18281837if test -d smallgmp; then
    1829   SUBDIRS="smallgmp"
     1838  SUBDIRS="$SUBDIRS smallgmp"
    18301839fi
    18311840if test -d gmp; then
    1832   SUBDIRS="gmp"
     1841  SUBDIRS="$SUBDIRS gmp"
    18331842fi
    18341843if test -d MP; then
     
    18421851fi
    18431852if test -d sgroup; then
    1844   SUBDIRS="sgroup"
     1853  SUBDIRS="$SUBDIRS sgroup"
    18451854fi
    18461855if test -d Singular; then
     
    18501859
    18511860echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    1852 echo "configure:1853: checking whether ${MAKE-make} sets \${MAKE}" >&5
     1861echo "configure:1862: checking whether ${MAKE-make} sets \${MAKE}" >&5
    18531862set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    18541863if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     
    19001909 
    19011910
    1902 if test "$enable_gmp" = yes; then
    1903   trap '' 1 2 15
     1911trap '' 1 2 15
    19041912cat > confcache <<\EOF
    19051913# This file is a shell script that caches the results of configure
     
    20132021ac_given_srcdir=$srcdir
    20142022
    2015 trap 'rm -fr `echo "Makefile doc/Makefile gmp/Makefile.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
     2023trap 'rm -fr `echo "${OUTPUT_MAKEFILES}" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
    20162024EOF
    20172025cat >> $CONFIG_STATUS <<EOF
     
    20462054s%@SINGULAR_MINOR_VERSION@%$SINGULAR_MINOR_VERSION%g
    20472055s%@SINGULAR_SUB_VERSION@%$SINGULAR_SUB_VERSION%g
     2056s%@SINGULAR@%$SINGULAR%g
    20482057s%@CC@%$CC%g
    20492058s%@CPP@%$CPP%g
    2050 s%@SINGULAR@%$SINGULAR%g
    20512059s%@SET_MAKE@%$SET_MAKE%g
    20522060s%@SUBDIRS@%$SUBDIRS%g
     
    20942102cat >> $CONFIG_STATUS <<EOF
    20952103
    2096 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile gmp/Makefile.in"}
     2104CONFIG_FILES=\${CONFIG_FILES-"${OUTPUT_MAKEFILES}"}
    20972105EOF
    20982106cat >> $CONFIG_STATUS <<\EOF
     
    22532261fi
    22542262
    2255 else
    2256   trap '' 1 2 15
    2257 cat > confcache <<\EOF
    2258 # This file is a shell script that caches the results of configure
    2259 # tests run on this system so they can be shared between configure
    2260 # scripts and configure runs.  It is not useful on other systems.
    2261 # If it contains results you don't want to keep, you may remove or edit it.
    2262 #
    2263 # By default, configure uses ./config.cache as the cache file,
    2264 # creating it if it does not exist already.  You can give configure
    2265 # the --cache-file=FILE option to use a different cache file; that is
    2266 # what configure does when it calls configure scripts in
    2267 # subdirectories, so they share the cache.
    2268 # Giving --cache-file=/dev/null disables caching, for debugging configure.
    2269 # config.status only pays attention to the cache file if you give it the
    2270 # --recheck option to rerun configure.
    2271 #
    2272 EOF
    2273 # The following way of writing the cache mishandles newlines in values,
    2274 # but we know of no workaround that is simple, portable, and efficient.
    2275 # So, don't put newlines in cache variables' values.
    2276 # Ultrix sh set writes to stderr and can't be redirected directly,
    2277 # and sets the high bit in the cache file unless we assign to the vars.
    2278 (set) 2>&1 |
    2279   case `(ac_space=' '; set) 2>&1` in
    2280   *ac_space=\ *)
    2281     # `set' does not quote correctly, so add quotes (double-quote substitution
    2282     # turns \\\\ into \\, and sed turns \\ into \).
    2283     sed -n \
    2284       -e "s/'/'\\\\''/g" \
    2285       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    2286     ;;
    2287   *)
    2288     # `set' quotes correctly as required by POSIX, so do not add quotes.
    2289     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    2290     ;;
    2291   esac >> confcache
    2292 if cmp -s $cache_file confcache; then
    2293   :
    2294 else
    2295   if test -w $cache_file; then
    2296     echo "updating cache $cache_file"
    2297     cat confcache > $cache_file
    2298   else
    2299     echo "not updating unwritable cache $cache_file"
    2300   fi
    2301 fi
    2302 rm -f confcache
    2303 
    2304 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
    2305 
    2306 test "x$prefix" = xNONE && prefix=$ac_default_prefix
    2307 # Let make expand exec_prefix.
    2308 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
    2309 
    2310 # Any assignment to VPATH causes Sun make to only execute
    2311 # the first set of double-colon rules, so remove it if not needed.
    2312 # If there is a colon in the path, we need to keep it.
    2313 if test "x$srcdir" = x.; then
    2314   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
    2315 fi
    2316 
    2317 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
    2318 
    2319 # Transform confdefs.h into DEFS.
    2320 # Protect against shell expansion while executing Makefile rules.
    2321 # Protect against Makefile macro expansion.
    2322 cat > conftest.defs <<\EOF
    2323 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
    2324 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
    2325 s%\[%\\&%g
    2326 s%\]%\\&%g
    2327 s%\$%$$%g
    2328 EOF
    2329 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
    2330 rm -f conftest.defs
    2331 
    2332 
    2333 # Without the "./", some shells look in PATH for config.status.
    2334 : ${CONFIG_STATUS=./config.status}
    2335 
    2336 echo creating $CONFIG_STATUS
    2337 rm -f $CONFIG_STATUS
    2338 cat > $CONFIG_STATUS <<EOF
    2339 #! /bin/sh
    2340 # Generated automatically by configure.
    2341 # Run this file to recreate the current configuration.
    2342 # This directory was configured as follows,
    2343 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
    2344 #
    2345 # $0 $ac_configure_args
    2346 #
    2347 # Compiler output produced by configure, useful for debugging
    2348 # configure, is in ./config.log if it exists.
    2349 
    2350 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
    2351 for ac_option
    2352 do
    2353   case "\$ac_option" in
    2354   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    2355     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
    2356     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
    2357   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
    2358     echo "$CONFIG_STATUS generated by autoconf version 2.12"
    2359     exit 0 ;;
    2360   -help | --help | --hel | --he | --h)
    2361     echo "\$ac_cs_usage"; exit 0 ;;
    2362   *) echo "\$ac_cs_usage"; exit 1 ;;
    2363   esac
    2364 done
    2365 
    2366 ac_given_srcdir=$srcdir
    2367 
    2368 trap 'rm -fr `echo "Makefile doc/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
    2369 EOF
    2370 cat >> $CONFIG_STATUS <<EOF
    2371 
    2372 # Protect against being on the right side of a sed subst in config.status.
    2373 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
    2374  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
    2375 $ac_vpsub
    2376 $extrasub
    2377 
    2378 CEOF
    2379 EOF
    2380 
    2381 cat >> $CONFIG_STATUS <<\EOF
    2382 
    2383 # Split the substitutions into bite-sized pieces for seds with
    2384 # small command number limits, like on Digital OSF/1 and HP-UX.
    2385 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
    2386 ac_file=1 # Number of current file.
    2387 ac_beg=1 # First line for current file.
    2388 ac_end=$ac_max_sed_cmds # Line after last line for current file.
    2389 ac_more_lines=:
    2390 ac_sed_cmds=""
    2391 while $ac_more_lines; do
    2392   if test $ac_beg -gt 1; then
    2393     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
    2394   else
    2395     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
    2396   fi
    2397   if test ! -s conftest.s$ac_file; then
    2398     ac_more_lines=false
    2399     rm -f conftest.s$ac_file
    2400   else
    2401     if test -z "$ac_sed_cmds"; then
    2402       ac_sed_cmds="sed -f conftest.s$ac_file"
    2403     else
    2404       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
    2405     fi
    2406     ac_file=`expr $ac_file + 1`
    2407     ac_beg=$ac_end
    2408     ac_end=`expr $ac_end + $ac_max_sed_cmds`
    2409   fi
    2410 done
    2411 if test -z "$ac_sed_cmds"; then
    2412   ac_sed_cmds=cat
    2413 fi
    2414 EOF
    2415 
    2416 cat >> $CONFIG_STATUS <<EOF
    2417 
    2418 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile"}
    2419 EOF
    2420 cat >> $CONFIG_STATUS <<\EOF
    2421 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
    2422   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    2423   case "$ac_file" in
    2424   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
    2425        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
    2426   *) ac_file_in="${ac_file}.in" ;;
    2427   esac
    2428 
    2429   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
    2430 
    2431   # Remove last slash and all that follows it.  Not all systems have dirname.
    2432   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
    2433   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    2434     # The file is in a subdirectory.
    2435     test ! -d "$ac_dir" && mkdir "$ac_dir"
    2436     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
    2437     # A "../" for each directory in $ac_dir_suffix.
    2438     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
    2439   else
    2440     ac_dir_suffix= ac_dots=
    2441   fi
    2442 
    2443   case "$ac_given_srcdir" in
    2444   .)  srcdir=.
    2445       if test -z "$ac_dots"; then top_srcdir=.
    2446       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
    2447   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
    2448   *) # Relative path.
    2449     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
    2450     top_srcdir="$ac_dots$ac_given_srcdir" ;;
    2451   esac
    2452 
    2453 
    2454   echo creating "$ac_file"
    2455   rm -f "$ac_file"
    2456   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
    2457   case "$ac_file" in
    2458   *Makefile*) ac_comsub="1i\\
    2459 # $configure_input" ;;
    2460   *) ac_comsub= ;;
    2461   esac
    2462 
    2463   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
    2464   sed -e "$ac_comsub
    2465 s%@configure_input@%$configure_input%g
    2466 s%@srcdir@%$srcdir%g
    2467 s%@top_srcdir@%$top_srcdir%g
    2468 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
    2469 fi; done
    2470 rm -f conftest.s*
    2471 
    2472 EOF
    2473 cat >> $CONFIG_STATUS <<EOF
    2474 
    2475 EOF
    2476 cat >> $CONFIG_STATUS <<\EOF
    2477 
    2478 exit 0
    2479 EOF
    2480 chmod +x $CONFIG_STATUS
    2481 rm -fr confdefs* $ac_clean_files
    2482 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
    2483 
    2484 if test "$no_recursion" != yes; then
    2485 
    2486   # Remove --cache-file and --srcdir arguments so they do not pile up.
    2487   ac_sub_configure_args=
    2488   ac_prev=
    2489   for ac_arg in $ac_configure_args; do
    2490     if test -n "$ac_prev"; then
    2491       ac_prev=
    2492       continue
    2493     fi
    2494     case "$ac_arg" in
    2495     -cache-file | --cache-file | --cache-fil | --cache-fi \
    2496     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    2497       ac_prev=cache_file ;;
    2498     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    2499     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    2500       ;;
    2501     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    2502       ac_prev=srcdir ;;
    2503     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    2504       ;;
    2505     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
    2506     esac
    2507   done
    2508 
    2509   for ac_config_dir in $CONFIG_SUBDIRS; do
    2510 
    2511     # Do not complain, so a configure script can configure whichever
    2512     # parts of a large source tree are present.
    2513     if test ! -d $srcdir/$ac_config_dir; then
    2514       continue
    2515     fi
    2516 
    2517     echo configuring in $ac_config_dir
    2518 
    2519     case "$srcdir" in
    2520     .) ;;
    2521     *)
    2522       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
    2523       else
    2524         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
    2525       fi
    2526       ;;
    2527     esac
    2528 
    2529     ac_popdir=`pwd`
    2530     cd $ac_config_dir
    2531 
    2532       # A "../" for each directory in /$ac_config_dir.
    2533       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
    2534 
    2535     case "$srcdir" in
    2536     .) # No --srcdir option.  We are building in place.
    2537       ac_sub_srcdir=$srcdir ;;
    2538     /*) # Absolute path.
    2539       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
    2540     *) # Relative path.
    2541       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
    2542     esac
    2543 
    2544     # Check for guested configure; otherwise get Cygnus style configure.
    2545     if test -f $ac_sub_srcdir/configure; then
    2546       ac_sub_configure=$ac_sub_srcdir/configure
    2547     elif test -f $ac_sub_srcdir/configure.in; then
    2548       ac_sub_configure=$ac_configure
    2549     else
    2550       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
    2551       ac_sub_configure=
    2552     fi
    2553 
    2554     # The recursion is here.
    2555     if test -n "$ac_sub_configure"; then
    2556 
    2557       # Make the cache file name correct relative to the subdirectory.
    2558       case "$cache_file" in
    2559       /*) ac_sub_cache_file=$cache_file ;;
    2560       *) # Relative path.
    2561         ac_sub_cache_file="$ac_dots$cache_file" ;;
    2562       esac
    2563 
    2564       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
    2565       # The eval makes quoting arguments work.
    2566       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
    2567       then :
    2568       else
    2569         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
    2570       fi
    2571     fi
    2572 
    2573     cd $ac_popdir
    2574   done
    2575 fi
    2576 
    2577 fi
    2578 
     2263
Note: See TracChangeset for help on using the changeset viewer.