Changeset be1d41 in git for libfac/configure


Ignore:
Timestamp:
Aug 16, 2001, 3:13:25 PM (23 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
22e3fe8c4a103f035dea126cdb127a25a03aebce
Parents:
409dbae4d2b7922de2ec630a46a377606b2b6628
Message:
*hannes: conf opts: --with-Singularerror --with-NOSTREAMIO


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

Legend:

Unmodified
Added
Removed
  • libfac/configure

    r409dbae rbe1d41  
    1616ac_help="$ac_help
    1717  --with-Singular build for use with Singular"
     18ac_help="$ac_help
     19  --with-Singularerror use error reporting from Singular"
     20ac_help="$ac_help
     21  --with-NOSTREAMIO : do not require iostream include nor library"
    1822
    1923# Initialize some variables set by options.
     
    585589fi
    586590
     591# Check whether --with-Singularerror or --without-Singularerror was given.
     592if test "${with_Singularerror+set}" = set; then
     593  withval="$with_Singularerror"
     594  :
     595fi
     596
     597
     598if test "$with_Singularerror" = yes; then
     599  cat >> confdefs.h <<\EOF
     600#define SINGULAR_ERROR 1
     601EOF
     602
     603fi
     604
     605# Check whether --with-NOSTREAMIO or --without-NOSTREAMIO was given.
     606if test "${with_NOSTREAMIO+set}" = set; then
     607  withval="$with_NOSTREAMIO"
     608  :
     609fi
     610
     611
     612if test "$with_NOSTREAMIO" = yes; then
     613  cat >> confdefs.h <<\EOF
     614#define NOSTREAMIO 1
     615EOF
     616
     617fi
     618
    587619if (test "x${prefix} != xNONE && test "${prefix} != "/usr/local") || \
    588620  test "${ac_default_prefix}" != "/usr/local" || \
     
    624656set dummy $ac_prog; ac_word=$2
    625657echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    626 echo "configure:627: checking for $ac_word" >&5
     658echo "configure:659: checking for $ac_word" >&5
    627659if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
    628660  echo $ac_n "(cached) $ac_c" 1>&6
     
    656688
    657689echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    658 echo "configure:659: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
     690echo "configure:691: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
    659691
    660692ac_ext=C
     
    667699cat > conftest.$ac_ext << EOF
    668700
    669 #line 670 "configure"
     701#line 702 "configure"
    670702#include "confdefs.h"
    671703
    672704int main(){return(0);}
    673705EOF
    674 if { (eval echo configure:675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     706if { (eval echo configure:707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    675707  ac_cv_prog_cxx_works=yes
    676708  # If we can't run a trivial program, we are probably using a cross compiler.
     
    698730fi
    699731echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    700 echo "configure:701: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
     732echo "configure:733: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
    701733echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
    702734cross_compiling=$ac_cv_prog_cxx_cross
    703735
    704736echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
    705 echo "configure:706: checking whether we are using GNU C++" >&5
     737echo "configure:738: checking whether we are using GNU C++" >&5
    706738if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
    707739  echo $ac_n "(cached) $ac_c" 1>&6
     
    712744#endif
    713745EOF
    714 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     746if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    715747  ac_cv_prog_gxx=yes
    716748else
     
    731763CXXFLAGS=
    732764echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
    733 echo "configure:734: checking whether ${CXX-g++} accepts -g" >&5
     765echo "configure:766: checking whether ${CXX-g++} accepts -g" >&5
    734766if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
    735767  echo $ac_n "(cached) $ac_c" 1>&6
     
    763795
    764796echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
    765 echo "configure:766: checking how to run the C++ preprocessor" >&5
     797echo "configure:798: checking how to run the C++ preprocessor" >&5
    766798if test -z "$CXXCPP"; then
    767799if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
     
    776808  CXXCPP="${CXX-g++} -E"
    777809  cat > conftest.$ac_ext <<EOF
    778 #line 779 "configure"
     810#line 811 "configure"
    779811#include "confdefs.h"
    780812#include <stdlib.h>
    781813EOF
    782814ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    783 { (eval echo configure:784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     815{ (eval echo configure:816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    784816ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    785817if test -z "$ac_err"; then
     
    807839
    808840echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    809 echo "configure:810: checking whether ${MAKE-make} sets \${MAKE}" >&5
     841echo "configure:842: checking whether ${MAKE-make} sets \${MAKE}" >&5
    810842set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    811843if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     
    836868set dummy ranlib; ac_word=$2
    837869echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    838 echo "configure:839: checking for $ac_word" >&5
     870echo "configure:871: checking for $ac_word" >&5
    839871if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
    840872  echo $ac_n "(cached) $ac_c" 1>&6
     
    866898set dummy ar; ac_word=$2
    867899echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    868 echo "configure:869: checking for $ac_word" >&5
     900echo "configure:901: checking for $ac_word" >&5
    869901if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
    870902  echo $ac_n "(cached) $ac_c" 1>&6
     
    899931ac_safe=`echo "factory.h" | sed 'y%./+-%__p_%'`
    900932echo $ac_n "checking for factory.h""... $ac_c" 1>&6
    901 echo "configure:902: checking for factory.h" >&5
     933echo "configure:934: checking for factory.h" >&5
    902934if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    903935  echo $ac_n "(cached) $ac_c" 1>&6
    904936else
    905937  cat > conftest.$ac_ext <<EOF
    906 #line 907 "configure"
     938#line 939 "configure"
    907939#include "confdefs.h"
    908940#include <factory.h>
    909941EOF
    910942ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    911 { (eval echo configure:912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     943{ (eval echo configure:944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    912944ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    913945if test -z "$ac_err"; then
     
    935967
    936968echo $ac_n "checking for working const""... $ac_c" 1>&6
    937 echo "configure:938: checking for working const" >&5
     969echo "configure:970: checking for working const" >&5
    938970if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
    939971  echo $ac_n "(cached) $ac_c" 1>&6
    940972else
    941973  cat > conftest.$ac_ext <<EOF
    942 #line 943 "configure"
     974#line 975 "configure"
    943975#include "confdefs.h"
    944976
     
    9891021; return 0; }
    9901022EOF
    991 if { (eval echo configure:992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1023if { (eval echo configure:1024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    9921024  rm -rf conftest*
    9931025  ac_cv_c_const=yes
     
    10101042
    10111043echo $ac_n "checking for inline""... $ac_c" 1>&6
    1012 echo "configure:1013: checking for inline" >&5
     1044echo "configure:1045: checking for inline" >&5
    10131045if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
    10141046  echo $ac_n "(cached) $ac_c" 1>&6
     
    10171049for ac_kw in inline __inline__ __inline; do
    10181050  cat > conftest.$ac_ext <<EOF
    1019 #line 1020 "configure"
     1051#line 1052 "configure"
    10201052#include "confdefs.h"
    10211053
     
    10241056; return 0; }
    10251057EOF
    1026 if { (eval echo configure:1027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1058if { (eval echo configure:1059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    10271059  rm -rf conftest*
    10281060  ac_cv_c_inline=$ac_kw; break
     
    10681100
    10691101echo $ac_n "checking whether gcc accepts --no-rtti""... $ac_c" 1>&6
    1070 echo "configure:1071: checking whether gcc accepts --no-rtti" >&5
     1102echo "configure:1103: checking whether gcc accepts --no-rtti" >&5
    10711103tmp_flags=${CXXFLAGS}
    10721104CXXFLAGS="${CXXFLAGS} --no-rtti"
     
    10751107else
    10761108  cat > conftest.$ac_ext <<EOF
    1077 #line 1078 "configure"
     1109#line 1110 "configure"
    10781110#include "confdefs.h"
    10791111
     
    10821114; return 0; }
    10831115EOF
    1084 if { (eval echo configure:1085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1116if { (eval echo configure:1117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    10851117  rm -rf conftest*
    10861118  ac_cv_cxx_have_rtti=yes
     
    11021134
    11031135echo $ac_n "checking whether gcc accepts --no-exceptions""... $ac_c" 1>&6
    1104 echo "configure:1105: checking whether gcc accepts --no-exceptions" >&5
     1136echo "configure:1137: checking whether gcc accepts --no-exceptions" >&5
    11051137tmp_flags=${CXXFLAGS}
    11061138CXXFLAGS="${CXXFLAGS} --no-exceptions"
     
    11091141else
    11101142  cat > conftest.$ac_ext <<EOF
    1111 #line 1112 "configure"
     1143#line 1144 "configure"
    11121144#include "confdefs.h"
    11131145
     
    11161148; return 0; }
    11171149EOF
    1118 if { (eval echo configure:1119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1150if { (eval echo configure:1151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    11191151  rm -rf conftest*
    11201152  ac_cv_cxx_have_exceptions=yes
Note: See TracChangeset for help on using the changeset viewer.