Changeset a70441f in git
- Timestamp:
- Apr 27, 2000, 12:07:30 PM (24 years ago)
- Branches:
- (u'spielwiese', 'e7cc1ebecb61be8b9ca6c18016352af89940b21a')
- Children:
- e5f8ae07e0b41bb1b0e5aaaac2dad244e619d563
- Parents:
- eec9b2d2a332c04f20d743bdd4ccc107766fbc61
- Files:
-
- 46 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile.in
reec9b2 ra70441f 121 121 ${PERL} Tst/regress.cmd -r -s ${SINGULAR} Tst/Long/ok_l.lst 122 122 123 124 125 126 123 ############################################################## 127 124 # distribution targets -
Singular/LIB/general.lib
reec9b2 ra70441f 1 // $Id: general.lib,v 1.2 5 2000-01-13 12:15:54obachman Exp $1 // $Id: general.lib,v 1.26 2000-04-27 10:07:13 obachman Exp $ 2 2 //GMG, last modified 18.6.99 3 3 /////////////////////////////////////////////////////////////////////////////// 4 4 5 version="$Id: general.lib,v 1.2 5 2000-01-13 12:15:54obachman Exp $";5 version="$Id: general.lib,v 1.26 2000-04-27 10:07:13 obachman Exp $"; 6 6 info=" 7 7 LIBRARY: general.lib PROCEDURES OF GENERAL TYPE … … 980 980 int rs; 981 981 int i; 982 string fn = " /tmp/which_" + string(system("pid"));982 string fn = "which_" + string(system("pid")); 983 983 string pn; 984 string cmd; 984 985 if( typeof(command) != "string") 985 986 { 986 987 return (pn); 987 988 } 988 i = system("sh", "which " + command + " > " + fn); 989 if (system("uname") != "ix86-Win") 990 { 991 cmd = "which "; 992 } 993 else 994 { 995 // unfortunately, it does not take -path 996 cmd = "type "; 997 } 998 i = system("sh", cmd + command + " > " + fn); 989 999 pn = read(fn); 990 pn[size(pn)] = ""; 991 i = 1; 992 while ((pn[i] != " ") and (pn[i] != "")) 993 { 994 i = i+1; 995 } 996 if (pn[i] == " ") {pn[i] = "";} 997 rs = system("sh", "ls " + pn + " > " + fn + " 2>&1 "); 1000 if (system("uname") != "ix86-Win") 1001 { 1002 // TBC: Hmm... should parse output to get rid of 'command is ' 1003 pn[size(pn)] = ""; 1004 i = 1; 1005 while ((pn[i] != " ") and (pn[i] != "")) 1006 { 1007 i = i+1; 1008 } 1009 if (pn[i] == " ") {pn[i] = "";} 1010 rs = system("sh", "ls " + pn + " > " + fn + " 2>&1 "); 1011 } 1012 else 1013 { 1014 rs = 0; 1015 } 998 1016 i = system("sh", "rm " + fn); 999 1017 if (rs == 0) {return (pn);} … … 1006 1024 example 1007 1025 { "EXAMPLE:"; echo = 2; 1008 which(" Singular");1009 } 1010 /////////////////////////////////////////////////////////////////////////////// 1026 which("sh"); 1027 } 1028 /////////////////////////////////////////////////////////////////////////////// -
Singular/LIB/inout.lib
reec9b2 ra70441f 1 // $Id: inout.lib,v 1.1 3 1999-09-21 17:32:16 SingularExp $1 // $Id: inout.lib,v 1.14 2000-04-27 10:07:13 obachman Exp $ 2 2 // (GMG/BM, last modified 22.06.96) 3 3 /////////////////////////////////////////////////////////////////////////////// 4 4 5 version="$Id: inout.lib,v 1.1 3 1999-09-21 17:32:16 SingularExp $";5 version="$Id: inout.lib,v 1.14 2000-04-27 10:07:13 obachman Exp $"; 6 6 info=" 7 7 LIBRARY: inout.lib PROCEDURES FOR MANIPULATING IN- AND OUTPUT … … 307 307 return(s0); 308 308 } 309 /* This is broken under ix86-Win 309 310 example 310 311 { "EXAMPLE:"; echo = 2; … … 338 339 rMacaulay(s2); 339 340 } 341 */ 342 340 343 /////////////////////////////////////////////////////////////////////////////// 341 344 -
Singular/Makefile.in
reec9b2 ra70441f 13 13 SINGULAR = @SINGULAR@ 14 14 SINGUNAME = @SINGUNAME@ 15 15 EXEC_EXT = @EXEC_EXT@ 16 16 ## 17 17 ## various paths … … 36 36 CXX = @CXX@ 37 37 LEX = @LEX@ 38 PERL 5 = @PERL5@38 PERL = @PERL@ 39 39 BISON = bison 40 40 INSTALL = ./install-sh -c … … 107 107 ASO_SOURCES = structs.aso.cc ipid.aso.cc mmprivate.aso.cc silink.aso.cc \ 108 108 matpol.aso.cc longrat.aso.cc kbuckets.aso.cc mpsr_Get.aso.cc \ 109 attrib.aso.cc lists.aso.cc kutil.aso.cc\109 attrib.aso.cc lists.aso.cc\ 110 110 syz.aso.cc subexpr.aso.cc 111 111 … … 234 234 echo unsigned long feVersionId = `date '+%Y%m%d%H'`\; >version.h 235 235 236 libparse: libparse_main.o utils.o fegetopt.o 237 ${CXX} -DHAVE_ASO=0 -o libparselibparse_main.o utils.o fegetopt.o236 libparse: libparse_main.o utils.o fegetopt.o febase.cc 237 ${CXX} -DHAVE_ASO=0 -DSTANDALONE_PARSER -o libparse febase.cc libparse_main.o utils.o fegetopt.o 238 238 239 239 libparse_main.o: libparse.cc … … 270 270 271 271 prCopy.inc : prCopyMacros.h prCopyTemplate.cc prCopy.pl 272 $(PERL 5) prCopy.pl > prCopy.inc272 $(PERL) prCopy.pl > prCopy.inc 273 273 274 274 src: scanner.cc grammar.h grammar.cc libparse.cc … … 297 297 installbin: Singular libparse ESingular 298 298 ${MKINSTALLDIRS} ${bindir} 299 ${INSTALL_PROGRAM} Singular ${bindir}/Singular-${SINGULAR_VERSION} 300 ${INSTALL_PROGRAM} libparse ${bindir}/libparse 301 ${INSTALL_PROGRAM} ESingular ${bindir}/ESingular 302 chmod a+x ${bindir}/Singular-${SINGULAR_VERSION} 303 rm -f ${bindir}/Singular 304 cd ${bindir}; ${LN_S} Singular-${SINGULAR_VERSION} Singular;\ 305 if test ! -x ${SINGULAR}; then \ 306 ${LN_S} Singular-${SINGULAR_VERSION} ${SINGULAR};\ 307 fi 299 ${INSTALL_PROGRAM} Singular ${SINGULAR} 300 ${INSTALL_PROGRAM} libparse ${bindir} 301 ${INSTALL_PROGRAM} ESingular ${bindir} 302 chmod a+x ${SINGULAR} 303 rm -f ${bindir}/Singular${EXEC_EXT} 304 cd ${bindir}; ${LN_S} ${SINGULAR} Singular${EXEC_EXT};\ 308 305 309 306 installslib: LIB … … 314 311 315 312 uninstallbin: 316 rm -f ${bindir}/Singular rm -f ${bindir}/Singular-${SINGULAR_VERSION} 313 rm -f ${bindir}/Singular${EXEC_EXT} 314 rm -f ${SINGULAR} 317 315 -rmdir ${bindir} 318 316 … … 386 384 387 385 388 TAGS: ${SOURCES} ${HEADERS} ${INCS}386 TAGS: ${SOURCES} ${HEADERS} 389 387 etags ${SOURCES} ${HEADERS} 390 388 … … 577 575 ## 578 576 check_aso: 579 ${PERL 5} check_aso.pl $(SOURCES)577 ${PERL} check_aso.pl $(SOURCES) 580 578 ## 581 579 ## dependencies -
Singular/configure
reec9b2 ra70441f 2 2 3 3 # Guess values for system-dependent variables and create Makefiles. 4 # Generated automatically using autoconf version 2.1 24 # Generated automatically using autoconf version 2.13 5 5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 6 6 # … … 18 18 ac_help="$ac_help 19 19 --with-lex=[LEX,no] uses LEX as lex program, default is flex" 20 ac_help="$ac_help21 --with-perl5=[PERL5,no] uses PERL5 as perl5 program, default is perl5"22 20 ac_help="$ac_help 23 21 --with-readline do use static readline for fancy display" … … 84 82 subdirs= 85 83 MFLAGS= MAKEFLAGS= 84 SHELL=${CONFIG_SHELL-/bin/sh} 86 85 # Maximum number of lines to put in a shell here document. 87 86 ac_max_here_lines=12 … … 367 366 368 367 -version | --version | --versio | --versi | --vers) 369 echo "configure generated by autoconf version 2.1 2"368 echo "configure generated by autoconf version 2.13" 370 369 exit 0 ;; 371 370 … … 537 536 ac_cpp='$CPP $CPPFLAGS' 538 537 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 539 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'538 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 540 539 cross_compiling=$ac_cv_prog_cc_cross 541 540 541 ac_exeext= 542 ac_objext=o 542 543 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 543 544 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. … … 557 558 558 559 echo $ac_n "checking uname for singular""... $ac_c" 1>&6 559 echo "configure:56 0: checking uname for singular" >&5560 echo "configure:561: checking uname for singular" >&5 560 561 if eval "test \"`echo '$''{'ac_cv_singuname'+set}'`\" = set"; then 561 562 echo $ac_n "(cached) $ac_c" 1>&6 … … 587 588 588 589 590 if test "$ac_cv_singuname" = ix86-Win; then 591 EXEC_EXT=".exe" 592 fi 593 594 589 595 SING_UNAME=`echo $SINGUNAME | tr '-' '_' ` 590 596 … … 645 651 set dummy gcc; ac_word=$2 646 652 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 647 echo "configure:6 48: checking for $ac_word" >&5653 echo "configure:654: checking for $ac_word" >&5 648 654 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 649 655 echo $ac_n "(cached) $ac_c" 1>&6 … … 652 658 ac_cv_prog_CC="$CC" # Let the user override the test. 653 659 else 654 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 655 for ac_dir in $PATH; do 660 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 661 ac_dummy="$PATH" 662 for ac_dir in $ac_dummy; do 656 663 test -z "$ac_dir" && ac_dir=. 657 664 if test -f $ac_dir/$ac_word; then … … 674 681 set dummy cc; ac_word=$2 675 682 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 676 echo "configure:6 77: checking for $ac_word" >&5683 echo "configure:684: checking for $ac_word" >&5 677 684 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 678 685 echo $ac_n "(cached) $ac_c" 1>&6 … … 681 688 ac_cv_prog_CC="$CC" # Let the user override the test. 682 689 else 683 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=" ${IFS}:"690 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 684 691 ac_prog_rejected=no 685 for ac_dir in $PATH; do 692 ac_dummy="$PATH" 693 for ac_dir in $ac_dummy; do 686 694 test -z "$ac_dir" && ac_dir=. 687 695 if test -f $ac_dir/$ac_word; then … … 718 726 fi 719 727 728 if test -z "$CC"; then 729 case "`uname -s`" in 730 *win32* | *WIN32*) 731 # Extract the first word of "cl", so it can be a program name with args. 732 set dummy cl; ac_word=$2 733 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 734 echo "configure:735: checking for $ac_word" >&5 735 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 736 echo $ac_n "(cached) $ac_c" 1>&6 737 else 738 if test -n "$CC"; then 739 ac_cv_prog_CC="$CC" # Let the user override the test. 740 else 741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 742 ac_dummy="$PATH" 743 for ac_dir in $ac_dummy; do 744 test -z "$ac_dir" && ac_dir=. 745 if test -f $ac_dir/$ac_word; then 746 ac_cv_prog_CC="cl" 747 break 748 fi 749 done 750 IFS="$ac_save_ifs" 751 fi 752 fi 753 CC="$ac_cv_prog_CC" 754 if test -n "$CC"; then 755 echo "$ac_t""$CC" 1>&6 756 else 757 echo "$ac_t""no" 1>&6 758 fi 759 ;; 760 esac 761 fi 720 762 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 721 763 fi 722 764 723 765 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 724 echo "configure:7 25: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5766 echo "configure:767: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 725 767 726 768 ac_ext=c … … 728 770 ac_cpp='$CPP $CPPFLAGS' 729 771 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 730 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'772 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 731 773 cross_compiling=$ac_cv_prog_cc_cross 732 774 733 cat > conftest.$ac_ext <<EOF 734 #line 735 "configure" 735 #include "confdefs.h" 775 cat > conftest.$ac_ext << EOF 776 777 #line 778 "configure" 778 #include "confdefs.h" 779 736 780 main(){return(0);} 737 781 EOF 738 if { (eval echo configure:7 39: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then782 if { (eval echo configure:783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 739 783 ac_cv_prog_cc_works=yes 740 784 # If we can't run a trivial program, we are probably using a cross compiler. … … 750 794 fi 751 795 rm -fr conftest* 796 ac_ext=c 797 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 798 ac_cpp='$CPP $CPPFLAGS' 799 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 800 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 801 cross_compiling=$ac_cv_prog_cc_cross 752 802 753 803 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 … … 756 806 fi 757 807 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 758 echo "configure: 759: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5808 echo "configure:809: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 759 809 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 760 810 cross_compiling=$ac_cv_prog_cc_cross 761 811 762 812 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 763 echo "configure: 764: checking whether we are using GNU C" >&5813 echo "configure:814: checking whether we are using GNU C" >&5 764 814 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 765 815 echo $ac_n "(cached) $ac_c" 1>&6 … … 770 820 #endif 771 821 EOF 772 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure: 773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then822 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 773 823 ac_cv_prog_gcc=yes 774 824 else … … 781 831 if test $ac_cv_prog_gcc = yes; then 782 832 GCC=yes 783 ac_test_CFLAGS="${CFLAGS+set}" 784 ac_save_CFLAGS="$CFLAGS" 785 CFLAGS= 786 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 787 echo "configure:788: checking whether ${CC-cc} accepts -g" >&5 833 else 834 GCC= 835 fi 836 837 ac_test_CFLAGS="${CFLAGS+set}" 838 ac_save_CFLAGS="$CFLAGS" 839 CFLAGS= 840 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 841 echo "configure:842: checking whether ${CC-cc} accepts -g" >&5 788 842 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 789 843 echo $ac_n "(cached) $ac_c" 1>&6 … … 800 854 801 855 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 802 if test "$ac_test_CFLAGS" = set; then 803 CFLAGS="$ac_save_CFLAGS" 804 elif test $ac_cv_prog_cc_g = yes; then 856 if test "$ac_test_CFLAGS" = set; then 857 CFLAGS="$ac_save_CFLAGS" 858 elif test $ac_cv_prog_cc_g = yes; then 859 if test "$GCC" = yes; then 805 860 CFLAGS="-g -O2" 806 861 else 862 CFLAGS="-g" 863 fi 864 else 865 if test "$GCC" = yes; then 807 866 CFLAGS="-O2" 867 else 868 CFLAGS= 808 869 fi 809 else810 GCC=811 test "${CFLAGS+set}" = set || CFLAGS="-g"812 870 fi 813 871 814 872 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 815 echo "configure:8 16: checking how to run the C preprocessor" >&5873 echo "configure:874: checking how to run the C preprocessor" >&5 816 874 # On Suns, sometimes $CPP names a directory. 817 875 if test -n "$CPP" && test -d "$CPP"; then … … 828 886 # not just through cpp. 829 887 cat > conftest.$ac_ext <<EOF 830 #line 8 31"configure"888 #line 889 "configure" 831 889 #include "confdefs.h" 832 890 #include <assert.h> … … 834 892 EOF 835 893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 836 { (eval echo configure:8 37: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }837 ac_err=`grep -v '^ *+' conftest.out `894 { (eval echo configure:895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 895 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 838 896 if test -z "$ac_err"; then 839 897 : … … 845 903 CPP="${CC-cc} -E -traditional-cpp" 846 904 cat > conftest.$ac_ext <<EOF 847 #line 848"configure"905 #line 906 "configure" 848 906 #include "confdefs.h" 849 907 #include <assert.h> … … 851 909 EOF 852 910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 853 { (eval echo configure: 854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }854 ac_err=`grep -v '^ *+' conftest.out `911 { (eval echo configure:912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 855 913 if test -z "$ac_err"; then 856 914 : … … 860 918 cat conftest.$ac_ext >&5 861 919 rm -rf conftest* 920 CPP="${CC-cc} -nologo -E" 921 cat > conftest.$ac_ext <<EOF 922 #line 923 "configure" 923 #include "confdefs.h" 924 #include <assert.h> 925 Syntax Error 926 EOF 927 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 928 { (eval echo configure:929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 929 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 930 if test -z "$ac_err"; then 931 : 932 else 933 echo "$ac_err" >&5 934 echo "configure: failed program was:" >&5 935 cat conftest.$ac_ext >&5 936 rm -rf conftest* 862 937 CPP=/lib/cpp 863 938 fi … … 865 940 fi 866 941 rm -f conftest* 942 fi 943 rm -f conftest* 867 944 ac_cv_prog_CPP="$CPP" 868 945 fi … … 873 950 echo "$ac_t""$CPP" 1>&6 874 951 875 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ 952 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 876 953 do 877 954 # Extract the first word of "$ac_prog", so it can be a program name with args. 878 955 set dummy $ac_prog; ac_word=$2 879 956 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 880 echo "configure: 881: checking for $ac_word" >&5957 echo "configure:958: checking for $ac_word" >&5 881 958 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then 882 959 echo $ac_n "(cached) $ac_c" 1>&6 … … 885 962 ac_cv_prog_CXX="$CXX" # Let the user override the test. 886 963 else 887 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 888 for ac_dir in $PATH; do 964 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 965 ac_dummy="$PATH" 966 for ac_dir in $ac_dummy; do 889 967 test -z "$ac_dir" && ac_dir=. 890 968 if test -f $ac_dir/$ac_word; then … … 909 987 910 988 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 911 echo "configure:9 12: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5989 echo "configure:990: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 912 990 913 991 ac_ext=C … … 915 993 ac_cpp='$CXXCPP $CPPFLAGS' 916 994 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 917 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'995 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 918 996 cross_compiling=$ac_cv_prog_cxx_cross 919 997 920 cat > conftest.$ac_ext <<EOF 921 #line 922 "configure" 922 #include "confdefs.h" 923 main(){return(0);} 924 EOF 925 if { (eval echo configure:926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 998 cat > conftest.$ac_ext << EOF 999 1000 #line 1001 "configure" 1001 #include "confdefs.h" 1002 1003 int main(){return(0);} 1004 EOF 1005 if { (eval echo configure:1006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 926 1006 ac_cv_prog_cxx_works=yes 927 1007 # If we can't run a trivial program, we are probably using a cross compiler. … … 941 1021 ac_cpp='$CPP $CPPFLAGS' 942 1022 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 943 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'1023 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 944 1024 cross_compiling=$ac_cv_prog_cc_cross 945 1025 … … 949 1029 fi 950 1030 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 951 echo "configure: 952: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&51031 echo "configure:1032: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 952 1032 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 953 1033 cross_compiling=$ac_cv_prog_cxx_cross 954 1034 955 1035 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 956 echo "configure: 957: checking whether we are using GNU C++" >&51036 echo "configure:1037: checking whether we are using GNU C++" >&5 957 1037 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then 958 1038 echo $ac_n "(cached) $ac_c" 1>&6 … … 963 1043 #endif 964 1044 EOF 965 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure: 966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then1045 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 966 1046 ac_cv_prog_gxx=yes 967 1047 else … … 974 1054 if test $ac_cv_prog_gxx = yes; then 975 1055 GXX=yes 976 ac_test_CXXFLAGS="${CXXFLAGS+set}" 977 ac_save_CXXFLAGS="$CXXFLAGS" 978 CXXFLAGS= 979 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 980 echo "configure:981: checking whether ${CXX-g++} accepts -g" >&5 1056 else 1057 GXX= 1058 fi 1059 1060 ac_test_CXXFLAGS="${CXXFLAGS+set}" 1061 ac_save_CXXFLAGS="$CXXFLAGS" 1062 CXXFLAGS= 1063 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 1064 echo "configure:1065: checking whether ${CXX-g++} accepts -g" >&5 981 1065 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then 982 1066 echo $ac_n "(cached) $ac_c" 1>&6 … … 993 1077 994 1078 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 995 if test "$ac_test_CXXFLAGS" = set; then 996 CXXFLAGS="$ac_save_CXXFLAGS" 997 elif test $ac_cv_prog_cxx_g = yes; then 1079 if test "$ac_test_CXXFLAGS" = set; then 1080 CXXFLAGS="$ac_save_CXXFLAGS" 1081 elif test $ac_cv_prog_cxx_g = yes; then 1082 if test "$GXX" = yes; then 998 1083 CXXFLAGS="-g -O2" 999 1084 else 1085 CXXFLAGS="-g" 1086 fi 1087 else 1088 if test "$GXX" = yes; then 1000 1089 CXXFLAGS="-O2" 1090 else 1091 CXXFLAGS= 1001 1092 fi 1002 else1003 GXX=1004 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"1005 1093 fi 1006 1094 1007 1095 echo $ac_n "checking for AIX""... $ac_c" 1>&6 1008 echo "configure:10 09: checking for AIX" >&51096 echo "configure:1097: checking for AIX" >&5 1009 1097 cat > conftest.$ac_ext <<EOF 1010 #line 10 11"configure"1098 #line 1099 "configure" 1011 1099 #include "confdefs.h" 1012 1100 #ifdef _AIX … … 1038 1126 # check whether the compiler accepts -pipe 1039 1127 echo $ac_n "checking whether compiler accepts -pipe""... $ac_c" 1>&6 1040 echo "configure:1 041: checking whether compiler accepts -pipe" >&51128 echo "configure:1129: checking whether compiler accepts -pipe" >&5 1041 1129 temp_cflags=${CFLAGS} 1042 1130 CFLAGS="${CFLAGS} -pipe" … … 1045 1133 else 1046 1134 cat > conftest.$ac_ext <<EOF 1047 #line 1 048"configure"1135 #line 1136 "configure" 1048 1136 #include "confdefs.h" 1049 1137 … … 1052 1140 ; return 0; } 1053 1141 EOF 1054 if { (eval echo configure:1 055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1142 if { (eval echo configure:1143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1055 1143 rm -rf conftest* 1056 1144 ac_cv_cxx_have_pipe=yes … … 1076 1164 # Customize CFLAGS 1077 1165 echo $ac_n "checking whether _AIX is defined""... $ac_c" 1>&6 1078 echo "configure:1 079: checking whether _AIX is defined" >&51166 echo "configure:1167: checking whether _AIX is defined" >&5 1079 1167 if eval "test \"`echo '$''{'ac_cv_is_aix'+set}'`\" = set"; then 1080 1168 echo $ac_n "(cached) $ac_c" 1>&6 1081 1169 else 1082 1170 cat > conftest.$ac_ext <<EOF 1083 #line 1 084"configure"1171 #line 1172 "configure" 1084 1172 #include "confdefs.h" 1085 1173 #ifdef _AIX … … 1132 1220 1133 1221 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 1134 echo "configure:1 135: checking whether ${MAKE-make} sets \${MAKE}" >&51222 echo "configure:1223: checking whether ${MAKE-make} sets \${MAKE}" >&5 1135 1223 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 1136 1224 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then … … 1182 1270 1183 1271 # expand bindir 1184 test "x$bindir" = 'x${exec_prefix}/bin' && bindir="${exec_prefix} /bin"1185 SINGULAR=${SINGULAR:-$bindir/Singular-$SINGULAR_MAJOR_VERSION${VERSION_SEP}$SINGULAR_MINOR_VERSION${VERSION_SEP}$SINGULAR_SUB_VERSION} 1272 test "x$bindir" = 'x${exec_prefix}/bin' && bindir="${exec_prefix}" 1273 SINGULAR=${SINGULAR:-$bindir/Singular-$SINGULAR_MAJOR_VERSION${VERSION_SEP}$SINGULAR_MINOR_VERSION${VERSION_SEP}$SINGULAR_SUB_VERSION}${EXEC_EXT} 1186 1274 1187 1275 cat >> confdefs.h <<EOF … … 1191 1279 1192 1280 # expand libdir 1193 test "x$libdir" = 'x${exec_prefix}/lib'&& libdir="${exec_prefix}/lib /${SINGULAR_VERSION}"1281 test "x$libdir" = 'x${exec_prefix}/lib'&& libdir="${exec_prefix}/lib" 1194 1282 1195 1283 # expand includedir 1196 test "x$includedir" = 'x${prefix}/include' && includedir="${exec_prefix}/include /${SINGULAR_VERSION}"1284 test "x$includedir" = 'x${prefix}/include' && includedir="${exec_prefix}/include" 1197 1285 1198 1286 # add to -I to CPPFLAGS and and -L to LDFLAGS, just to be sure 1199 LDFLAGS="-L${libdir} ${LDFLAGS} "1200 CPPFLAGS="-I${includedir} ${CPPFLAGS} "1287 LDFLAGS="-L${libdir} ${LDFLAGS} -L/usr/local/lib" 1288 CPPFLAGS="-I${includedir} ${CPPFLAGS} -I/usr/local/include" 1201 1289 1202 1290 # this is a work-around to include the right term.h … … 1211 1299 if test "${with_lex+set}" != set; then 1212 1300 echo $ac_n "checking for flex""... $ac_c" 1>&6 1213 echo "configure:1 214: checking for flex" >&51301 echo "configure:1302: checking for flex" >&5 1214 1302 if eval "test \"`echo '$''{'ac_cv_prog_flex'+set}'`\" = set"; then 1215 1303 echo $ac_n "(cached) $ac_c" 1>&6 … … 1242 1330 set dummy $ac_prog; ac_word=$2 1243 1331 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1244 echo "configure:1 245: checking for $ac_word" >&51332 echo "configure:1333: checking for $ac_word" >&5 1245 1333 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then 1246 1334 echo $ac_n "(cached) $ac_c" 1>&6 … … 1249 1337 ac_cv_prog_LEX="$LEX" # Let the user override the test. 1250 1338 else 1251 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1252 for ac_dir in $PATH; do 1339 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1340 ac_dummy="$PATH" 1341 for ac_dir in $ac_dummy; do 1253 1342 test -z "$ac_dir" && ac_dir=. 1254 1343 if test -f $ac_dir/$ac_word; then … … 1281 1370 set dummy $ac_prog; ac_word=$2 1282 1371 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1283 echo "configure:1 284: checking for $ac_word" >&51372 echo "configure:1373: checking for $ac_word" >&5 1284 1373 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then 1285 1374 echo $ac_n "(cached) $ac_c" 1>&6 … … 1288 1377 ac_cv_prog_BISON="$BISON" # Let the user override the test. 1289 1378 else 1290 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1291 for ac_dir in $PATH; do 1379 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1380 ac_dummy="$PATH" 1381 for ac_dir in $ac_dummy; do 1292 1382 test -z "$ac_dir" && ac_dir=. 1293 1383 if test -f $ac_dir/$ac_word; then … … 1315 1405 # ln -s 1316 1406 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1317 echo "configure:1 318: checking whether ln -s works" >&51407 echo "configure:1408: checking whether ln -s works" >&5 1318 1408 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1319 1409 echo $ac_n "(cached) $ac_c" 1>&6 … … 1336 1426 1337 1427 1428 for ac_prog in perl5 perl 1429 do 1430 # Extract the first word of "$ac_prog", so it can be a program name with args. 1431 set dummy $ac_prog; ac_word=$2 1432 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1433 echo "configure:1434: checking for $ac_word" >&5 1434 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then 1435 echo $ac_n "(cached) $ac_c" 1>&6 1436 else 1437 if test -n "$PERL"; then 1438 ac_cv_prog_PERL="$PERL" # Let the user override the test. 1439 else 1440 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1441 ac_dummy="$PATH" 1442 for ac_dir in $ac_dummy; do 1443 test -z "$ac_dir" && ac_dir=. 1444 if test -f $ac_dir/$ac_word; then 1445 ac_cv_prog_PERL="$ac_prog" 1446 break 1447 fi 1448 done 1449 IFS="$ac_save_ifs" 1450 fi 1451 fi 1452 PERL="$ac_cv_prog_PERL" 1453 if test -n "$PERL"; then 1454 echo "$ac_t""$PERL" 1>&6 1455 else 1456 echo "$ac_t""no" 1>&6 1457 fi 1458 1459 test -n "$PERL" && break 1460 done 1461 1462 1338 1463 # lib checks 1339 1464 echo $ac_n "checking for atof in -lm""... $ac_c" 1>&6 1340 echo "configure:1 341: checking for atof in -lm" >&51465 echo "configure:1466: checking for atof in -lm" >&5 1341 1466 ac_lib_var=`echo m'_'atof | sed 'y%./+-%__p_%'` 1342 1467 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1346 1471 LIBS="-lm $LIBS" 1347 1472 cat > conftest.$ac_ext <<EOF 1348 #line 1 349"configure"1473 #line 1474 "configure" 1349 1474 #include "confdefs.h" 1350 1475 /* Override any gcc2 internal prototype to avoid an error. */ … … 1357 1482 ; return 0; } 1358 1483 EOF 1359 if { (eval echo configure:1 360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then1484 if { (eval echo configure:1485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1360 1485 rm -rf conftest* 1361 1486 eval "ac_cv_lib_$ac_lib_var=yes" … … 1385 1510 1386 1511 echo $ac_n "checking for socket in -lbsd""... $ac_c" 1>&6 1387 echo "configure:1 388: checking for socket in -lbsd" >&51512 echo "configure:1513: checking for socket in -lbsd" >&5 1388 1513 ac_lib_var=`echo bsd'_'socket | sed 'y%./+-%__p_%'` 1389 1514 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1393 1518 LIBS="-lbsd $LIBS" 1394 1519 cat > conftest.$ac_ext <<EOF 1395 #line 1 396"configure"1520 #line 1521 "configure" 1396 1521 #include "confdefs.h" 1397 1522 /* Override any gcc2 internal prototype to avoid an error. */ … … 1404 1529 ; return 0; } 1405 1530 EOF 1406 if { (eval echo configure:1 407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then1531 if { (eval echo configure:1532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1407 1532 rm -rf conftest* 1408 1533 eval "ac_cv_lib_$ac_lib_var=yes" … … 1432 1557 1433 1558 echo $ac_n "checking for listen in -lsocket""... $ac_c" 1>&6 1434 echo "configure:1 435: checking for listen in -lsocket" >&51559 echo "configure:1560: checking for listen in -lsocket" >&5 1435 1560 ac_lib_var=`echo socket'_'listen | sed 'y%./+-%__p_%'` 1436 1561 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1440 1565 LIBS="-lsocket $LIBS" 1441 1566 cat > conftest.$ac_ext <<EOF 1442 #line 1 443"configure"1567 #line 1568 "configure" 1443 1568 #include "confdefs.h" 1444 1569 /* Override any gcc2 internal prototype to avoid an error. */ … … 1451 1576 ; return 0; } 1452 1577 EOF 1453 if { (eval echo configure:1 454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then1578 if { (eval echo configure:1579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1454 1579 rm -rf conftest* 1455 1580 eval "ac_cv_lib_$ac_lib_var=yes" … … 1479 1604 1480 1605 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 1481 echo "configure:1 482: checking for gethostbyname in -lnsl" >&51606 echo "configure:1607: checking for gethostbyname in -lnsl" >&5 1482 1607 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 1483 1608 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1487 1612 LIBS="-lnsl $LIBS" 1488 1613 cat > conftest.$ac_ext <<EOF 1489 #line 1 490"configure"1614 #line 1615 "configure" 1490 1615 #include "confdefs.h" 1491 1616 /* Override any gcc2 internal prototype to avoid an error. */ … … 1498 1623 ; return 0; } 1499 1624 EOF 1500 if { (eval echo configure:1 501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then1625 if { (eval echo configure:1626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1501 1626 rm -rf conftest* 1502 1627 eval "ac_cv_lib_$ac_lib_var=yes" … … 1526 1651 1527 1652 echo $ac_n "checking for index in -lucb""... $ac_c" 1>&6 1528 echo "configure:1 529: checking for index in -lucb" >&51653 echo "configure:1654: checking for index in -lucb" >&5 1529 1654 ac_lib_var=`echo ucb'_'index | sed 'y%./+-%__p_%'` 1530 1655 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1534 1659 LIBS="-lucb $LIBS" 1535 1660 cat > conftest.$ac_ext <<EOF 1536 #line 1 537"configure"1661 #line 1662 "configure" 1537 1662 #include "confdefs.h" 1538 1663 /* Override any gcc2 internal prototype to avoid an error. */ … … 1545 1670 ; return 0; } 1546 1671 EOF 1547 if { (eval echo configure:1 548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then1672 if { (eval echo configure:1673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1548 1673 rm -rf conftest* 1549 1674 eval "ac_cv_lib_$ac_lib_var=yes" … … 1575 1700 # heder file checks 1576 1701 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1577 echo "configure:1 578: checking for ANSI C header files" >&51702 echo "configure:1703: checking for ANSI C header files" >&5 1578 1703 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1579 1704 echo $ac_n "(cached) $ac_c" 1>&6 1580 1705 else 1581 1706 cat > conftest.$ac_ext <<EOF 1582 #line 1 583"configure"1707 #line 1708 "configure" 1583 1708 #include "confdefs.h" 1584 1709 #include <stdlib.h> … … 1588 1713 EOF 1589 1714 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1590 { (eval echo configure:1 591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1591 ac_err=`grep -v '^ *+' conftest.out `1715 { (eval echo configure:1716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1716 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1592 1717 if test -z "$ac_err"; then 1593 1718 rm -rf conftest* … … 1605 1730 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1606 1731 cat > conftest.$ac_ext <<EOF 1607 #line 1 608"configure"1732 #line 1733 "configure" 1608 1733 #include "confdefs.h" 1609 1734 #include <string.h> … … 1623 1748 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1624 1749 cat > conftest.$ac_ext <<EOF 1625 #line 1 626"configure"1750 #line 1751 "configure" 1626 1751 #include "confdefs.h" 1627 1752 #include <stdlib.h> … … 1644 1769 else 1645 1770 cat > conftest.$ac_ext <<EOF 1646 #line 1 647"configure"1771 #line 1772 "configure" 1647 1772 #include "confdefs.h" 1648 1773 #include <ctype.h> … … 1655 1780 1656 1781 EOF 1657 if { (eval echo configure:1 658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest&& (./conftest; exit) 2>/dev/null1782 if { (eval echo configure:1783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1658 1783 then 1659 1784 : … … 1682 1807 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1683 1808 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1684 echo "configure:1 685: checking for $ac_hdr" >&51809 echo "configure:1810: checking for $ac_hdr" >&5 1685 1810 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1686 1811 echo $ac_n "(cached) $ac_c" 1>&6 1687 1812 else 1688 1813 cat > conftest.$ac_ext <<EOF 1689 #line 1 690"configure"1814 #line 1815 "configure" 1690 1815 #include "confdefs.h" 1691 1816 #include <$ac_hdr> 1692 1817 EOF 1693 1818 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1694 { (eval echo configure:1 695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1695 ac_err=`grep -v '^ *+' conftest.out `1819 { (eval echo configure:1820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1820 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1696 1821 if test -z "$ac_err"; then 1697 1822 rm -rf conftest* … … 1720 1845 1721 1846 1722 for ac_hdr in malloc.h sys/file.h sys/ioctl.h sys/time.h sys/times.h sys/types.h sys/stat.h fcntl.h sys/param.h pwd.h asm/sigcontext.h pwd.h termcap.h termios.h term.h 1847 for ac_hdr in malloc.h sys/file.h sys/ioctl.h sys/time.h sys/times.h sys/types.h sys/stat.h fcntl.h sys/param.h pwd.h asm/sigcontext.h pwd.h termcap.h termios.h term.h readline/readline.h 1723 1848 do 1724 1849 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1725 1850 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1726 echo "configure:1 727: checking for $ac_hdr" >&51851 echo "configure:1852: checking for $ac_hdr" >&5 1727 1852 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1728 1853 echo $ac_n "(cached) $ac_c" 1>&6 1729 1854 else 1730 1855 cat > conftest.$ac_ext <<EOF 1731 #line 1 732"configure"1856 #line 1857 "configure" 1732 1857 #include "confdefs.h" 1733 1858 #include <$ac_hdr> 1734 1859 EOF 1735 1860 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1736 { (eval echo configure:1 737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1737 ac_err=`grep -v '^ *+' conftest.out `1861 { (eval echo configure:1862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1862 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1738 1863 if test -z "$ac_err"; then 1739 1864 rm -rf conftest* … … 1763 1888 # typedefs, structures 1764 1889 echo $ac_n "checking for working const""... $ac_c" 1>&6 1765 echo "configure:1 766: checking for working const" >&51890 echo "configure:1891: checking for working const" >&5 1766 1891 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 1767 1892 echo $ac_n "(cached) $ac_c" 1>&6 1768 1893 else 1769 1894 cat > conftest.$ac_ext <<EOF 1770 #line 1 771"configure"1895 #line 1896 "configure" 1771 1896 #include "confdefs.h" 1772 1897 … … 1817 1942 ; return 0; } 1818 1943 EOF 1819 if { (eval echo configure:1 820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1944 if { (eval echo configure:1945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1820 1945 rm -rf conftest* 1821 1946 ac_cv_c_const=yes … … 1838 1963 1839 1964 echo $ac_n "checking for inline""... $ac_c" 1>&6 1840 echo "configure:1 841: checking for inline" >&51965 echo "configure:1966: checking for inline" >&5 1841 1966 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then 1842 1967 echo $ac_n "(cached) $ac_c" 1>&6 … … 1845 1970 for ac_kw in inline __inline__ __inline; do 1846 1971 cat > conftest.$ac_ext <<EOF 1847 #line 1 848"configure"1972 #line 1973 "configure" 1848 1973 #include "confdefs.h" 1849 1974 … … 1852 1977 ; return 0; } 1853 1978 EOF 1854 if { (eval echo configure:1 855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1979 if { (eval echo configure:1980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1855 1980 rm -rf conftest* 1856 1981 ac_cv_c_inline=$ac_kw; break … … 1878 2003 1879 2004 echo $ac_n "checking for size_t""... $ac_c" 1>&6 1880 echo "configure: 1881: checking for size_t" >&52005 echo "configure:2006: checking for size_t" >&5 1881 2006 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 1882 2007 echo $ac_n "(cached) $ac_c" 1>&6 1883 2008 else 1884 2009 cat > conftest.$ac_ext <<EOF 1885 #line 1886"configure"2010 #line 2011 "configure" 1886 2011 #include "confdefs.h" 1887 2012 #include <sys/types.h> … … 1892 2017 EOF 1893 2018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1894 egrep " size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then2019 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 1895 2020 rm -rf conftest* 1896 2021 ac_cv_type_size_t=yes … … 1911 2036 1912 2037 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 1913 echo "configure: 1914: checking whether time.h and sys/time.h may both be included" >&52038 echo "configure:2039: checking whether time.h and sys/time.h may both be included" >&5 1914 2039 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 1915 2040 echo $ac_n "(cached) $ac_c" 1>&6 1916 2041 else 1917 2042 cat > conftest.$ac_ext <<EOF 1918 #line 1919"configure"2043 #line 2044 "configure" 1919 2044 #include "confdefs.h" 1920 2045 #include <sys/types.h> … … 1925 2050 ; return 0; } 1926 2051 EOF 1927 if { (eval echo configure: 1928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2052 if { (eval echo configure:2053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1928 2053 rm -rf conftest* 1929 2054 ac_cv_header_time=yes … … 1946 2071 1947 2072 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 1948 echo "configure: 1949: checking whether struct tm is in sys/time.h or time.h" >&52073 echo "configure:2074: checking whether struct tm is in sys/time.h or time.h" >&5 1949 2074 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then 1950 2075 echo $ac_n "(cached) $ac_c" 1>&6 1951 2076 else 1952 2077 cat > conftest.$ac_ext <<EOF 1953 #line 1954"configure"2078 #line 2079 "configure" 1954 2079 #include "confdefs.h" 1955 2080 #include <sys/types.h> … … 1959 2084 ; return 0; } 1960 2085 EOF 1961 if { (eval echo configure: 1962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2086 if { (eval echo configure:2087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1962 2087 rm -rf conftest* 1963 2088 ac_cv_struct_tm=time.h … … 1984 2109 # for constant arguments. Useless! 1985 2110 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 1986 echo "configure: 1987: checking for working alloca.h" >&52111 echo "configure:2112: checking for working alloca.h" >&5 1987 2112 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 1988 2113 echo $ac_n "(cached) $ac_c" 1>&6 1989 2114 else 1990 2115 cat > conftest.$ac_ext <<EOF 1991 #line 1992"configure"2116 #line 2117 "configure" 1992 2117 #include "confdefs.h" 1993 2118 #include <alloca.h> … … 1996 2121 ; return 0; } 1997 2122 EOF 1998 if { (eval echo configure: 1999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then2123 if { (eval echo configure:2124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1999 2124 rm -rf conftest* 2000 2125 ac_cv_header_alloca_h=yes … … 2017 2142 2018 2143 echo $ac_n "checking for alloca""... $ac_c" 1>&6 2019 echo "configure:2 020: checking for alloca" >&52144 echo "configure:2145: checking for alloca" >&5 2020 2145 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 2021 2146 echo $ac_n "(cached) $ac_c" 1>&6 2022 2147 else 2023 2148 cat > conftest.$ac_ext <<EOF 2024 #line 2 025"configure"2149 #line 2150 "configure" 2025 2150 #include "confdefs.h" 2026 2151 … … 2028 2153 # define alloca __builtin_alloca 2029 2154 #else 2030 # if HAVE_ALLOCA_H 2031 # include <alloca.h> 2155 # ifdef _MSC_VER 2156 # include <malloc.h> 2157 # define alloca _alloca 2032 2158 # else 2033 # ifdef _AIX 2159 # if HAVE_ALLOCA_H 2160 # include <alloca.h> 2161 # else 2162 # ifdef _AIX 2034 2163 #pragma alloca 2035 # else2036 # ifndef alloca /* predefined by HP cc +Olibcalls */2164 # else 2165 # ifndef alloca /* predefined by HP cc +Olibcalls */ 2037 2166 char *alloca (); 2167 # endif 2038 2168 # endif 2039 2169 # endif … … 2045 2175 ; return 0; } 2046 2176 EOF 2047 if { (eval echo configure:2 048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then2177 if { (eval echo configure:2178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2048 2178 rm -rf conftest* 2049 2179 ac_cv_func_alloca_works=yes … … 2070 2200 # contain a buggy version. If you still want to use their alloca, 2071 2201 # use ar to extract alloca.o from them instead of compiling alloca.c. 2072 ALLOCA=alloca. o2202 ALLOCA=alloca.${ac_objext} 2073 2203 cat >> confdefs.h <<\EOF 2074 2204 #define C_ALLOCA 1 … … 2077 2207 2078 2208 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 2079 echo "configure:2 080: checking whether alloca needs Cray hooks" >&52209 echo "configure:2210: checking whether alloca needs Cray hooks" >&5 2080 2210 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 2081 2211 echo $ac_n "(cached) $ac_c" 1>&6 2082 2212 else 2083 2213 cat > conftest.$ac_ext <<EOF 2084 #line 2 085 "configure"2214 #line 2215 "configure" 2085 2215 #include "confdefs.h" 2086 2216 #if defined(CRAY) && ! defined(CRAY2) … … 2107 2237 for ac_func in _getb67 GETB67 getb67; do 2108 2238 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2109 echo "configure:2 110: checking for $ac_func" >&52239 echo "configure:2240: checking for $ac_func" >&5 2110 2240 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2111 2241 echo $ac_n "(cached) $ac_c" 1>&6 2112 2242 else 2113 2243 cat > conftest.$ac_ext <<EOF 2114 #line 2 115 "configure"2244 #line 2245 "configure" 2115 2245 #include "confdefs.h" 2116 2246 /* System header to define __stub macros and hopefully few prototypes, … … 2135 2265 ; return 0; } 2136 2266 EOF 2137 if { (eval echo configure:2 138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then2267 if { (eval echo configure:2268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2138 2268 rm -rf conftest* 2139 2269 eval "ac_cv_func_$ac_func=yes" … … 2162 2292 2163 2293 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 2164 echo "configure:2 165: checking stack direction for C alloca" >&52294 echo "configure:2295: checking stack direction for C alloca" >&5 2165 2295 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 2166 2296 echo $ac_n "(cached) $ac_c" 1>&6 … … 2170 2300 else 2171 2301 cat > conftest.$ac_ext <<EOF 2172 #line 2 173 "configure"2302 #line 2303 "configure" 2173 2303 #include "confdefs.h" 2174 2304 find_stack_direction () … … 2189 2319 } 2190 2320 EOF 2191 if { (eval echo configure:2 192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest&& (./conftest; exit) 2>/dev/null2321 if { (eval echo configure:2322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2192 2322 then 2193 2323 ac_cv_c_stack_direction=1 … … 2212 2342 if test $ac_cv_prog_gcc = yes; then 2213 2343 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 2214 echo "configure:2 215: checking whether ${CC-cc} needs -traditional" >&52344 echo "configure:2345: checking whether ${CC-cc} needs -traditional" >&5 2215 2345 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then 2216 2346 echo $ac_n "(cached) $ac_c" 1>&6 … … 2218 2348 ac_pattern="Autoconf.*'x'" 2219 2349 cat > conftest.$ac_ext <<EOF 2220 #line 2 221 "configure"2350 #line 2351 "configure" 2221 2351 #include "confdefs.h" 2222 2352 #include <sgtty.h> … … 2236 2366 if test $ac_cv_prog_gcc_traditional = no; then 2237 2367 cat > conftest.$ac_ext <<EOF 2238 #line 2 239 "configure"2368 #line 2369 "configure" 2239 2369 #include "confdefs.h" 2240 2370 #include <termio.h> … … 2261 2391 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2262 2392 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2263 echo "configure:2 264: checking for $ac_hdr" >&52393 echo "configure:2394: checking for $ac_hdr" >&5 2264 2394 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2265 2395 echo $ac_n "(cached) $ac_c" 1>&6 2266 2396 else 2267 2397 cat > conftest.$ac_ext <<EOF 2268 #line 2 269 "configure"2398 #line 2399 "configure" 2269 2399 #include "confdefs.h" 2270 2400 #include <$ac_hdr> 2271 2401 EOF 2272 2402 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2273 { (eval echo configure:2 274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2274 ac_err=`grep -v '^ *+' conftest.out `2403 { (eval echo configure:2404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2404 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2275 2405 if test -z "$ac_err"; then 2276 2406 rm -rf conftest* … … 2300 2430 do 2301 2431 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2302 echo "configure:2 303: checking for $ac_func" >&52432 echo "configure:2433: checking for $ac_func" >&5 2303 2433 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2304 2434 echo $ac_n "(cached) $ac_c" 1>&6 2305 2435 else 2306 2436 cat > conftest.$ac_ext <<EOF 2307 #line 2 308 "configure"2437 #line 2438 "configure" 2308 2438 #include "confdefs.h" 2309 2439 /* System header to define __stub macros and hopefully few prototypes, … … 2328 2458 ; return 0; } 2329 2459 EOF 2330 if { (eval echo configure:2 331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then2460 if { (eval echo configure:2461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2331 2461 rm -rf conftest* 2332 2462 eval "ac_cv_func_$ac_func=yes" … … 2353 2483 2354 2484 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 2355 echo "configure:2 356: checking for working mmap" >&52485 echo "configure:2486: checking for working mmap" >&5 2356 2486 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then 2357 2487 echo $ac_n "(cached) $ac_c" 1>&6 … … 2361 2491 else 2362 2492 cat > conftest.$ac_ext <<EOF 2363 #line 2 364 "configure"2493 #line 2494 "configure" 2364 2494 #include "confdefs.h" 2365 2495 … … 2501 2631 2502 2632 EOF 2503 if { (eval echo configure:2 504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest&& (./conftest; exit) 2>/dev/null2633 if { (eval echo configure:2634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2504 2634 then 2505 2635 ac_cv_func_mmap_fixed_mapped=yes … … 2524 2654 2525 2655 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 2526 echo "configure:2 527: checking return type of signal handlers" >&52656 echo "configure:2657: checking return type of signal handlers" >&5 2527 2657 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 2528 2658 echo $ac_n "(cached) $ac_c" 1>&6 2529 2659 else 2530 2660 cat > conftest.$ac_ext <<EOF 2531 #line 2 532 "configure"2661 #line 2662 "configure" 2532 2662 #include "confdefs.h" 2533 2663 #include <sys/types.h> … … 2546 2676 ; return 0; } 2547 2677 EOF 2548 if { (eval echo configure:2 549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2678 if { (eval echo configure:2679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2549 2679 rm -rf conftest* 2550 2680 ac_cv_type_signal=void … … 2565 2695 2566 2696 echo $ac_n "checking for vprintf""... $ac_c" 1>&6 2567 echo "configure:2 568: checking for vprintf" >&52697 echo "configure:2698: checking for vprintf" >&5 2568 2698 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then 2569 2699 echo $ac_n "(cached) $ac_c" 1>&6 2570 2700 else 2571 2701 cat > conftest.$ac_ext <<EOF 2572 #line 2 573 "configure"2702 #line 2703 "configure" 2573 2703 #include "confdefs.h" 2574 2704 /* System header to define __stub macros and hopefully few prototypes, … … 2593 2723 ; return 0; } 2594 2724 EOF 2595 if { (eval echo configure:2 596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then2725 if { (eval echo configure:2726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2596 2726 rm -rf conftest* 2597 2727 eval "ac_cv_func_vprintf=yes" … … 2617 2747 if test "$ac_cv_func_vprintf" != yes; then 2618 2748 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 2619 echo "configure:2 620: checking for _doprnt" >&52749 echo "configure:2750: checking for _doprnt" >&5 2620 2750 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then 2621 2751 echo $ac_n "(cached) $ac_c" 1>&6 2622 2752 else 2623 2753 cat > conftest.$ac_ext <<EOF 2624 #line 2 625 "configure"2754 #line 2755 "configure" 2625 2755 #include "confdefs.h" 2626 2756 /* System header to define __stub macros and hopefully few prototypes, … … 2645 2775 ; return 0; } 2646 2776 EOF 2647 if { (eval echo configure:2 648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then2777 if { (eval echo configure:2778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2648 2778 rm -rf conftest* 2649 2779 eval "ac_cv_func__doprnt=yes" … … 2672 2802 do 2673 2803 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2674 echo "configure:2 675: checking for $ac_func" >&52804 echo "configure:2805: checking for $ac_func" >&5 2675 2805 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2676 2806 echo $ac_n "(cached) $ac_c" 1>&6 2677 2807 else 2678 2808 cat > conftest.$ac_ext <<EOF 2679 #line 2 680 "configure"2809 #line 2810 "configure" 2680 2810 #include "confdefs.h" 2681 2811 /* System header to define __stub macros and hopefully few prototypes, … … 2700 2830 ; return 0; } 2701 2831 EOF 2702 if { (eval echo configure:2 703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then2832 if { (eval echo configure:2833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2703 2833 rm -rf conftest* 2704 2834 eval "ac_cv_func_$ac_func=yes" … … 2728 2858 # arithmetic shifts 2729 2859 echo $ac_n "checking whether your machine has correct arithmetic shifts""... $ac_c" 1>&6 2730 echo "configure:2 731: checking whether your machine has correct arithmetic shifts" >&52860 echo "configure:2861: checking whether your machine has correct arithmetic shifts" >&5 2731 2861 if eval "test \"`echo '$''{'ac_cv_shift'+set}'`\" = set"; then 2732 2862 echo $ac_n "(cached) $ac_c" 1>&6 … … 2741 2871 else 2742 2872 cat > conftest.$ac_ext <<EOF 2743 #line 2 744 "configure"2873 #line 2874 "configure" 2744 2874 #include "confdefs.h" 2745 2875 int main() { if (-2 >> 1 == -1) exit(0); else exit(1); } 2746 2876 EOF 2747 if { (eval echo configure:2 748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest&& (./conftest; exit) 2>/dev/null2877 if { (eval echo configure:2878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2748 2878 then 2749 2879 ac_cv_shift=yes … … 2770 2900 # check for a peculiar constructor initialization 2771 2901 echo $ac_n "checking whether explicit C++ constructor calls are allowed""... $ac_c" 1>&6 2772 echo "configure:2 773: checking whether explicit C++ constructor calls are allowed" >&52902 echo "configure:2903: checking whether explicit C++ constructor calls are allowed" >&5 2773 2903 2774 2904 ac_ext=C … … 2776 2906 ac_cpp='$CXXCPP $CPPFLAGS' 2777 2907 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2778 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'2908 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2779 2909 cross_compiling=$ac_cv_prog_cxx_cross 2780 2910 … … 2783 2913 else 2784 2914 cat > conftest.$ac_ext <<EOF 2785 #line 2 786 "configure"2915 #line 2916 "configure" 2786 2916 #include "confdefs.h" 2787 2917 … … 2801 2931 ; return 0; } 2802 2932 EOF 2803 if { (eval echo configure:2 804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2933 if { (eval echo configure:2934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2804 2934 rm -rf conftest* 2805 2935 ac_cv_explicit_const=yes … … 2817 2947 ac_cpp='$CPP $CPPFLAGS' 2818 2948 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2819 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'2949 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2820 2950 cross_compiling=$ac_cv_prog_cc_cross 2821 2951 … … 2830 2960 # sprintf returns number of printed chars 2831 2961 echo $ac_n "checking whether vsprintf returns number of printed chars""... $ac_c" 1>&6 2832 echo "configure:2 833: checking whether vsprintf returns number of printed chars" >&52962 echo "configure:2963: checking whether vsprintf returns number of printed chars" >&5 2833 2963 if eval "test \"`echo '$''{'ac_cv_returns_n_of_chars'+set}'`\" = set"; then 2834 2964 echo $ac_n "(cached) $ac_c" 1>&6 … … 2838 2968 else 2839 2969 cat > conftest.$ac_ext <<EOF 2840 #line 2 841 "configure"2970 #line 2971 "configure" 2841 2971 #include "confdefs.h" 2842 2972 #include <stdio.h> 2843 2973 main() { char *str=(char*)malloc(20); if (((int) sprintf(str,"123456789")) == 9) exit(0); else exit(1); } 2844 2974 EOF 2845 if { (eval echo configure:2 846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest&& (./conftest; exit) 2>/dev/null2975 if { (eval echo configure:2976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2846 2976 then 2847 2977 ac_cv_returns_n_of_chars=yes … … 2869 2999 # determine ALIGN_8 2870 3000 echo $ac_n "checking size of char""... $ac_c" 1>&6 2871 echo "configure: 2872: checking size of char" >&53001 echo "configure:3002: checking size of char" >&5 2872 3002 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then 2873 3003 echo $ac_n "(cached) $ac_c" 1>&6 … … 2877 3007 else 2878 3008 cat > conftest.$ac_ext <<EOF 2879 #line 2880 "configure"3009 #line 3010 "configure" 2880 3010 #include "confdefs.h" 2881 3011 #include <stdio.h> … … 2888 3018 } 2889 3019 EOF 2890 if { (eval echo configure: 2891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest&& (./conftest; exit) 2>/dev/null3020 if { (eval echo configure:3021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2891 3021 then 2892 3022 ac_cv_sizeof_char=`cat conftestval` … … 2908 3038 2909 3039 echo $ac_n "checking size of short""... $ac_c" 1>&6 2910 echo "configure: 2911: checking size of short" >&53040 echo "configure:3041: checking size of short" >&5 2911 3041 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then 2912 3042 echo $ac_n "(cached) $ac_c" 1>&6 … … 2916 3046 else 2917 3047 cat > conftest.$ac_ext <<EOF 2918 #line 2919 "configure"3048 #line 3049 "configure" 2919 3049 #include "confdefs.h" 2920 3050 #include <stdio.h> … … 2927 3057 } 2928 3058 EOF 2929 if { (eval echo configure: 2930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest&& (./conftest; exit) 2>/dev/null3059 if { (eval echo configure:3060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2930 3060 then 2931 3061 ac_cv_sizeof_short=`cat conftestval` … … 2947 3077 2948 3078 echo $ac_n "checking size of int""... $ac_c" 1>&6 2949 echo "configure: 2950: checking size of int" >&53079 echo "configure:3080: checking size of int" >&5 2950 3080 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then 2951 3081 echo $ac_n "(cached) $ac_c" 1>&6 … … 2955 3085 else 2956 3086 cat > conftest.$ac_ext <<EOF 2957 #line 2958 "configure"3087 #line 3088 "configure" 2958 3088 #include "confdefs.h" 2959 3089 #include <stdio.h> … … 2966 3096 } 2967 3097 EOF 2968 if { (eval echo configure: 2969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest&& (./conftest; exit) 2>/dev/null3098 if { (eval echo configure:3099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2969 3099 then 2970 3100 ac_cv_sizeof_int=`cat conftestval` … … 2986 3116 2987 3117 echo $ac_n "checking size of long""... $ac_c" 1>&6 2988 echo "configure: 2989: checking size of long" >&53118 echo "configure:3119: checking size of long" >&5 2989 3119 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then 2990 3120 echo $ac_n "(cached) $ac_c" 1>&6 … … 2994 3124 else 2995 3125 cat > conftest.$ac_ext <<EOF 2996 #line 2997 "configure"3126 #line 3127 "configure" 2997 3127 #include "confdefs.h" 2998 3128 #include <stdio.h> … … 3005 3135 } 3006 3136 EOF 3007 if { (eval echo configure:3 008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest&& (./conftest; exit) 2>/dev/null3137 if { (eval echo configure:3138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3008 3138 then 3009 3139 ac_cv_sizeof_long=`cat conftestval` … … 3025 3155 3026 3156 echo $ac_n "checking size of void*""... $ac_c" 1>&6 3027 echo "configure:3 028: checking size of void*" >&53157 echo "configure:3158: checking size of void*" >&5 3028 3158 if eval "test \"`echo '$''{'ac_cv_sizeof_voidp'+set}'`\" = set"; then 3029 3159 echo $ac_n "(cached) $ac_c" 1>&6 … … 3033 3163 else 3034 3164 cat > conftest.$ac_ext <<EOF 3035 #line 3 036 "configure"3165 #line 3166 "configure" 3036 3166 #include "confdefs.h" 3037 3167 #include <stdio.h> … … 3044 3174 } 3045 3175 EOF 3046 if { (eval echo configure:3 047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest&& (./conftest; exit) 2>/dev/null3176 if { (eval echo configure:3177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3047 3177 then 3048 3178 ac_cv_sizeof_voidp=`cat conftestval` … … 3064 3194 3065 3195 echo $ac_n "checking size of double""... $ac_c" 1>&6 3066 echo "configure:3 067: checking size of double" >&53196 echo "configure:3197: checking size of double" >&5 3067 3197 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then 3068 3198 echo $ac_n "(cached) $ac_c" 1>&6 … … 3072 3202 else 3073 3203 cat > conftest.$ac_ext <<EOF 3074 #line 3 075 "configure"3204 #line 3205 "configure" 3075 3205 #include "confdefs.h" 3076 3206 #include <stdio.h> … … 3083 3213 } 3084 3214 EOF 3085 if { (eval echo configure:3 086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest&& (./conftest; exit) 2>/dev/null3215 if { (eval echo configure:3216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3086 3216 then 3087 3217 ac_cv_sizeof_double=`cat conftestval` … … 3103 3233 3104 3234 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 3105 echo "configure:3 106: checking whether byte ordering is bigendian" >&53235 echo "configure:3236: checking whether byte ordering is bigendian" >&5 3106 3236 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then 3107 3237 echo $ac_n "(cached) $ac_c" 1>&6 … … 3110 3240 # See if sys/param.h defines the BYTE_ORDER macro. 3111 3241 cat > conftest.$ac_ext <<EOF 3112 #line 3 113 "configure"3242 #line 3243 "configure" 3113 3243 #include "confdefs.h" 3114 3244 #include <sys/types.h> … … 3121 3251 ; return 0; } 3122 3252 EOF 3123 if { (eval echo configure:3 124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then3253 if { (eval echo configure:3254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3124 3254 rm -rf conftest* 3125 3255 # It does; now see whether it defined to BIG_ENDIAN or not. 3126 3256 cat > conftest.$ac_ext <<EOF 3127 #line 3 128 "configure"3257 #line 3258 "configure" 3128 3258 #include "confdefs.h" 3129 3259 #include <sys/types.h> … … 3136 3266 ; return 0; } 3137 3267 EOF 3138 if { (eval echo configure:3 139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then3268 if { (eval echo configure:3269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3139 3269 rm -rf conftest* 3140 3270 ac_cv_c_bigendian=yes … … 3156 3286 else 3157 3287 cat > conftest.$ac_ext <<EOF 3158 #line 3 159 "configure"3288 #line 3289 "configure" 3159 3289 #include "confdefs.h" 3160 3290 main () { … … 3169 3299 } 3170 3300 EOF 3171 if { (eval echo configure:3 172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest&& (./conftest; exit) 2>/dev/null3301 if { (eval echo configure:3302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3172 3302 then 3173 3303 ac_cv_c_bigendian=no … … 3206 3336 3207 3337 echo $ac_n "checking size of system page""... $ac_c" 1>&6 3208 echo "configure:3 209: checking size of system page" >&53338 echo "configure:3339: checking size of system page" >&5 3209 3339 if eval "test \"`echo '$''{'ac_cv_pagesize'+set}'`\" = set"; then 3210 3340 echo $ac_n "(cached) $ac_c" 1>&6 … … 3214 3344 else 3215 3345 cat > conftest.$ac_ext <<EOF 3216 #line 3 217 "configure"3346 #line 3347 "configure" 3217 3347 #include "confdefs.h" 3218 3348 #include <stdio.h> … … 3228 3358 } 3229 3359 EOF 3230 if { (eval echo configure:3 231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest&& (./conftest; exit) 2>/dev/null3360 if { (eval echo configure:3361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3231 3361 then 3232 3362 ac_cv_pagesize=`cat conftestval` … … 3252 3382 3253 3383 echo $ac_n "checking for page aligned valloc""... $ac_c" 1>&6 3254 echo "configure:3 255: checking for page aligned valloc" >&53384 echo "configure:3385: checking for page aligned valloc" >&5 3255 3385 if eval "test \"`echo '$''{'ac_cv_have_page_alignment'+set}'`\" = set"; then 3256 3386 echo $ac_n "(cached) $ac_c" 1>&6 … … 3298 3428 else 3299 3429 cat > conftest.$ac_ext <<EOF 3300 #line 3 301 "configure"3430 #line 3431 "configure" 3301 3431 #include "confdefs.h" 3302 3432 … … 3305 3435 3306 3436 EOF 3307 if { (eval echo configure:3 308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest&& (./conftest; exit) 2>/dev/null3437 if { (eval echo configure:3438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3308 3438 then 3309 3439 ac_cv_have_page_alignment="ac_cv_usable_pagesize="`cat conftestval` … … 3322 3452 else 3323 3453 cat > conftest.$ac_ext <<EOF 3324 #line 3 325 "configure"3454 #line 3455 "configure" 3325 3455 #include "confdefs.h" 3326 3456 … … 3329 3459 3330 3460 EOF 3331 if { (eval echo configure:3 332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest&& (./conftest; exit) 2>/dev/null3461 if { (eval echo configure:3462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3332 3462 then 3333 3463 ac_cv_have_page_alignment="ac_cv_usable_pagesize="`cat conftestval` … … 3349 3479 else 3350 3480 cat > conftest.$ac_ext <<EOF 3351 #line 3 352 "configure"3481 #line 3482 "configure" 3352 3482 #include "confdefs.h" 3353 3483 … … 3358 3488 3359 3489 EOF 3360 if { (eval echo configure:3 361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest&& (./conftest; exit) 2>/dev/null3490 if { (eval echo configure:3491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3361 3491 then 3362 3492 ac_cv_have_page_alignment="ac_cv_have_gmalloc=yes; ac_cv_usable_pagesize="`cat conftestval` … … 3375 3505 else 3376 3506 cat > conftest.$ac_ext <<EOF 3377 #line 3 378 "configure"3507 #line 3508 "configure" 3378 3508 #include "confdefs.h" 3379 3509 … … 3384 3514 3385 3515 EOF 3386 if { (eval echo configure:3 387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest&& (./conftest; exit) 2>/dev/null3516 if { (eval echo configure:3517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3387 3517 then 3388 3518 ac_cv_have_page_alignment="ac_cv_have_gmalloc=yes; ac_cv_usable_pagesize="`cat conftestval` … … 3444 3574 fi 3445 3575 3446 # Check whether --with-perl5 or --without-perl5 was given.3447 if test "${with_perl5+set}" = set; then3448 withval="$with_perl5"3449 :3450 fi3451 3452 3576 # Check whether --with-readline or --without-readline was given. 3453 3577 if test "${with_readline+set}" = set; then … … 3516 3640 fi 3517 3641 3518 # perl version 53519 if test "${with_perl5+set}" != set; then3520 echo $ac_n "checking for perl5""... $ac_c" 1>&63521 echo "configure:3522: checking for perl5" >&53522 if eval "test \"`echo '$''{'ac_cv_prog_perl5'+set}'`\" = set"; then3523 echo $ac_n "(cached) $ac_c" 1>&63524 else3525 if (perl5 -v >/dev/null 2>&1)3526 then3527 if (perl5 -v | egrep "version 5\.[0-9]" >/dev/null 2>&1 )3528 then3529 ac_cv_prog_perl5=perl53530 fi3531 elif (perl -v >/dev/null 2>&1)3532 then3533 if (perl -v | egrep "version 5\.[0-9]" >/dev/null 2>&1 )3534 then3535 ac_cv_prog_perl5=perl3536 fi3537 fi3538 3539 fi3540 3541 if test "${ac_cv_prog_perl5+set}" = set; then3542 echo "$ac_t""${ac_cv_prog_perl5}" 1>&63543 PERL5=${ac_cv_prog_perl5}3544 3545 else3546 { echo "configure: error: can not find perl version 5" 1>&2; exit 1; }3547 fi3548 elif test "${with_perl5}" = no; then3549 echo "configure: warning: building without perl5 -- make might fail" 1>&23550 else3551 unset PERL53552 unset ac_cv_prog_PERL53553 for ac_prog in ${with_perl5}3554 do3555 # Extract the first word of "$ac_prog", so it can be a program name with args.3556 set dummy $ac_prog; ac_word=$23557 echo $ac_n "checking for $ac_word""... $ac_c" 1>&63558 echo "configure:3559: checking for $ac_word" >&53559 if eval "test \"`echo '$''{'ac_cv_prog_PERL5'+set}'`\" = set"; then3560 echo $ac_n "(cached) $ac_c" 1>&63561 else3562 if test -n "$PERL5"; then3563 ac_cv_prog_PERL5="$PERL5" # Let the user override the test.3564 else3565 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"3566 for ac_dir in $PATH; do3567 test -z "$ac_dir" && ac_dir=.3568 if test -f $ac_dir/$ac_word; then3569 ac_cv_prog_PERL5="$ac_prog"3570 break3571 fi3572 done3573 IFS="$ac_save_ifs"3574 fi3575 fi3576 PERL5="$ac_cv_prog_PERL5"3577 if test -n "$PERL5"; then3578 echo "$ac_t""$PERL5" 1>&63579 else3580 echo "$ac_t""no" 1>&63581 fi3582 3583 test -n "$PERL5" && break3584 done3585 3586 if test "x${PERL5}" = x; then3587 echo "configure: warning: building without perl5 -- make might fail" 1>&23588 fi3589 fi3590 3591 3642 3592 3643 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 3593 echo "configure:3 594: checking for tgetent in -lncurses" >&53644 echo "configure:3645: checking for tgetent in -lncurses" >&5 3594 3645 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 3595 3646 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 3599 3650 LIBS="-lncurses $LIBS" 3600 3651 cat > conftest.$ac_ext <<EOF 3601 #line 36 02"configure"3652 #line 3653 "configure" 3602 3653 #include "confdefs.h" 3603 3654 /* Override any gcc2 internal prototype to avoid an error. */ … … 3610 3661 ; return 0; } 3611 3662 EOF 3612 if { (eval echo configure:36 13: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then3663 if { (eval echo configure:3664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3613 3664 rm -rf conftest* 3614 3665 eval "ac_cv_lib_$ac_lib_var=yes" … … 3637 3688 \ 3638 3689 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 3639 echo "configure:36 40: checking for tgetent in -lcurses" >&53690 echo "configure:3691: checking for tgetent in -lcurses" >&5 3640 3691 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 3641 3692 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 3645 3696 LIBS="-lcurses $LIBS" 3646 3697 cat > conftest.$ac_ext <<EOF 3647 #line 36 48"configure"3698 #line 3699 "configure" 3648 3699 #include "confdefs.h" 3649 3700 /* Override any gcc2 internal prototype to avoid an error. */ … … 3656 3707 ; return 0; } 3657 3708 EOF 3658 if { (eval echo configure:3 659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then3709 if { (eval echo configure:3710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3659 3710 rm -rf conftest* 3660 3711 eval "ac_cv_lib_$ac_lib_var=yes" … … 3683 3734 \ 3684 3735 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 3685 echo "configure:3 686: checking for tgetent in -ltermcap" >&53736 echo "configure:3737: checking for tgetent in -ltermcap" >&5 3686 3737 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 3687 3738 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 3691 3742 LIBS="-ltermcap $LIBS" 3692 3743 cat > conftest.$ac_ext <<EOF 3693 #line 3 694"configure"3744 #line 3745 "configure" 3694 3745 #include "confdefs.h" 3695 3746 /* Override any gcc2 internal prototype to avoid an error. */ … … 3702 3753 ; return 0; } 3703 3754 EOF 3704 if { (eval echo configure:37 05: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then3755 if { (eval echo configure:3756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3705 3756 rm -rf conftest* 3706 3757 eval "ac_cv_lib_$ac_lib_var=yes" … … 3736 3787 # readline 3737 3788 if test "$with_readline" = yes; then 3789 3790 ac_ext=C 3791 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 3792 ac_cpp='$CXXCPP $CPPFLAGS' 3793 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 3794 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 3795 cross_compiling=$ac_cv_prog_cxx_cross 3796 3738 3797 echo $ac_n "checking for rl_abort in -lreadline""... $ac_c" 1>&6 3739 echo "configure:37 40: checking for rl_abort in -lreadline" >&53798 echo "configure:3799: checking for rl_abort in -lreadline" >&5 3740 3799 ac_lib_var=`echo readline'_'rl_abort | sed 'y%./+-%__p_%'` 3741 3800 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 3745 3804 LIBS="-lreadline $LIBS" 3746 3805 cat > conftest.$ac_ext <<EOF 3747 #line 3 748"configure"3806 #line 3807 "configure" 3748 3807 #include "confdefs.h" 3749 3808 /* Override any gcc2 internal prototype to avoid an error. */ 3809 #ifdef __cplusplus 3810 extern "C" 3811 #endif 3750 3812 /* We use char because int might match the return type of a gcc2 3751 3813 builtin and then its argument prototype would still apply. */ … … 3756 3818 ; return 0; } 3757 3819 EOF 3758 if { (eval echo configure:3 759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then3820 if { (eval echo configure:3821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3759 3821 rm -rf conftest* 3760 3822 eval "ac_cv_lib_$ac_lib_var=yes" … … 3783 3845 fi 3784 3846 3785 for ac_hdr in readline/readline.h readline/history.h 3847 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 3848 echo "configure:3849: checking how to run the C++ preprocessor" >&5 3849 if test -z "$CXXCPP"; then 3850 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then 3851 echo $ac_n "(cached) $ac_c" 1>&6 3852 else 3853 ac_ext=C 3854 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 3855 ac_cpp='$CXXCPP $CPPFLAGS' 3856 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 3857 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 3858 cross_compiling=$ac_cv_prog_cxx_cross 3859 CXXCPP="${CXX-g++} -E" 3860 cat > conftest.$ac_ext <<EOF 3861 #line 3862 "configure" 3862 #include "confdefs.h" 3863 #include <stdlib.h> 3864 EOF 3865 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3866 { (eval echo configure:3867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3867 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3868 if test -z "$ac_err"; then 3869 : 3870 else 3871 echo "$ac_err" >&5 3872 echo "configure: failed program was:" >&5 3873 cat conftest.$ac_ext >&5 3874 rm -rf conftest* 3875 CXXCPP=/lib/cpp 3876 fi 3877 rm -f conftest* 3878 ac_cv_prog_CXXCPP="$CXXCPP" 3879 ac_ext=C 3880 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 3881 ac_cpp='$CXXCPP $CPPFLAGS' 3882 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 3883 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 3884 cross_compiling=$ac_cv_prog_cxx_cross 3885 fi 3886 fi 3887 CXXCPP="$ac_cv_prog_CXXCPP" 3888 echo "$ac_t""$CXXCPP" 1>&6 3889 3890 for ac_hdr in readline/readline.h readline/history.h 3786 3891 do 3787 3892 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3788 3893 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3789 echo "configure:3 790: checking for $ac_hdr" >&53894 echo "configure:3895: checking for $ac_hdr" >&5 3790 3895 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3791 3896 echo $ac_n "(cached) $ac_c" 1>&6 3792 3897 else 3793 3898 cat > conftest.$ac_ext <<EOF 3794 #line 3 795"configure"3899 #line 3900 "configure" 3795 3900 #include "confdefs.h" 3796 3901 #include <$ac_hdr> 3797 3902 EOF 3798 3903 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3799 { (eval echo configure:3 800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }3800 ac_err=`grep -v '^ *+' conftest.out `3904 { (eval echo configure:3905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3905 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3801 3906 if test -z "$ac_err"; then 3802 3907 rm -rf conftest* … … 3826 3931 test "$ac_cv_header_readline_readline_h" = yes; then 3827 3932 echo $ac_n "checking whether readline.h is ok""... $ac_c" 1>&6 3828 echo "configure:3 829: checking whether readline.h is ok" >&53933 echo "configure:3934: checking whether readline.h is ok" >&5 3829 3934 if eval "test \"`echo '$''{'ac_cv_header_readline_readline_h_ok'+set}'`\" = set"; then 3830 3935 echo $ac_n "(cached) $ac_c" 1>&6 3831 3936 else 3832 3937 cat > conftest.$ac_ext <<EOF 3833 #line 3 834"configure"3938 #line 3939 "configure" 3834 3939 #include "confdefs.h" 3835 3940 #include<unistd.h> … … 3856 3961 ; return 0; } 3857 3962 EOF 3858 if { (eval echo configure:3 859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then3963 if { (eval echo configure:3964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3859 3964 rm -rf conftest* 3860 3965 ac_cv_header_readline_readline_h_ok="yes" … … 3872 3977 #not ok -- try once more with explicitly declaring everything 3873 3978 echo $ac_n "checking whether or not we nevertheless can use readline""... $ac_c" 1>&6 3874 echo "configure:3 875: checking whether or not we nevertheless can use readline" >&53979 echo "configure:3980: checking whether or not we nevertheless can use readline" >&5 3875 3980 if eval "test \"`echo '$''{'ac_cv_have_readline'+set}'`\" = set"; then 3876 3981 echo $ac_n "(cached) $ac_c" 1>&6 3877 3982 else 3878 3983 cat > conftest.$ac_ext <<EOF 3879 #line 3 880"configure"3984 #line 3985 "configure" 3880 3985 #include "confdefs.h" 3881 3986 #include <stdio.h> … … 3907 4012 ; return 0; } 3908 4013 EOF 3909 if { (eval echo configure: 3910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then4014 if { (eval echo configure:4015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3910 4015 rm -rf conftest* 3911 4016 ac_cv_have_readline="yes" … … 3938 4043 echo "configure: warning: building without readline: disabling fancy display" 1>&2 3939 4044 fi 4045 ac_ext=c 4046 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 4047 ac_cpp='$CPP $CPPFLAGS' 4048 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 4049 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 4050 cross_compiling=$ac_cv_prog_cc_cross 4051 3940 4052 fi 3941 4053 … … 3943 4055 3944 4056 # gmp, smallgmp, MP, MPT, factory, libfac 3945 echo $ac_n "checking for m pq_initin -lgmp""... $ac_c" 1>&63946 echo "configure: 3947: checking for mpq_initin -lgmp" >&53947 ac_lib_var=`echo gmp'_'m pq_init| sed 'y%./+-%__p_%'`4057 echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6 4058 echo "configure:4059: checking for main in -lgmp" >&5 4059 ac_lib_var=`echo gmp'_'main | sed 'y%./+-%__p_%'` 3948 4060 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3949 4061 echo $ac_n "(cached) $ac_c" 1>&6 … … 3952 4064 LIBS="-lgmp $LIBS" 3953 4065 cat > conftest.$ac_ext <<EOF 3954 #line 3955 "configure" 3955 #include "confdefs.h" 3956 /* Override any gcc2 internal prototype to avoid an error. */ 3957 /* We use char because int might match the return type of a gcc2 3958 builtin and then its argument prototype would still apply. */ 3959 char mpq_init(); 4066 #line 4067 "configure" 4067 #include "confdefs.h" 3960 4068 3961 4069 int main() { 3962 m pq_init()4070 main() 3963 4071 ; return 0; } 3964 4072 EOF 3965 if { (eval echo configure: 3966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then4073 if { (eval echo configure:4074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3966 4074 rm -rf conftest* 3967 4075 eval "ac_cv_lib_$ac_lib_var=yes" … … 3990 4098 fi 3991 4099 3992 if test "ac_cv_lib_gmp_m pq_init" = yes && test "$with-apint" = smallgmp; then4100 if test "ac_cv_lib_gmp_main" = yes && test "$with-apint" = smallgmp; then 3993 4101 LIBS=NEED_LIBS 3994 4102 fi 3995 echo $ac_n "checking for m pz_initin -lsmallgmp""... $ac_c" 1>&63996 echo "configure: 3997: checking for mpz_initin -lsmallgmp" >&53997 ac_lib_var=`echo smallgmp'_'m pz_init| sed 'y%./+-%__p_%'`4103 echo $ac_n "checking for main in -lsmallgmp""... $ac_c" 1>&6 4104 echo "configure:4105: checking for main in -lsmallgmp" >&5 4105 ac_lib_var=`echo smallgmp'_'main | sed 'y%./+-%__p_%'` 3998 4106 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3999 4107 echo $ac_n "(cached) $ac_c" 1>&6 … … 4002 4110 LIBS="-lsmallgmp $LIBS" 4003 4111 cat > conftest.$ac_ext <<EOF 4004 #line 4005 "configure" 4005 #include "confdefs.h" 4006 /* Override any gcc2 internal prototype to avoid an error. */ 4007 /* We use char because int might match the return type of a gcc2 4008 builtin and then its argument prototype would still apply. */ 4009 char mpz_init(); 4112 #line 4113 "configure" 4113 #include "confdefs.h" 4010 4114 4011 4115 int main() { 4012 m pz_init()4116 main() 4013 4117 ; return 0; } 4014 4118 EOF 4015 if { (eval echo configure:4 016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then4119 if { (eval echo configure:4120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4016 4120 rm -rf conftest* 4017 4121 eval "ac_cv_lib_$ac_lib_var=yes" … … 4041 4145 4042 4146 echo $ac_n "checking for IMP_PutGmpInt in -lMP""... $ac_c" 1>&6 4043 echo "configure:4 044: checking for IMP_PutGmpInt in -lMP" >&54147 echo "configure:4148: checking for IMP_PutGmpInt in -lMP" >&5 4044 4148 ac_lib_var=`echo MP'_'IMP_PutGmpInt | sed 'y%./+-%__p_%'` 4045 4149 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4049 4153 LIBS="-lMP $LIBS" 4050 4154 cat > conftest.$ac_ext <<EOF 4051 #line 4 052"configure"4155 #line 4156 "configure" 4052 4156 #include "confdefs.h" 4053 4157 /* Override any gcc2 internal prototype to avoid an error. */ … … 4060 4164 ; return 0; } 4061 4165 EOF 4062 if { (eval echo configure:4 063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then4166 if { (eval echo configure:4167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4063 4167 rm -rf conftest* 4064 4168 eval "ac_cv_lib_$ac_lib_var=yes" … … 4088 4192 4089 4193 echo $ac_n "checking for MPT_GetTree in -lMPT""... $ac_c" 1>&6 4090 echo "configure:4 091: checking for MPT_GetTree in -lMPT" >&54194 echo "configure:4195: checking for MPT_GetTree in -lMPT" >&5 4091 4195 ac_lib_var=`echo MPT'_'MPT_GetTree | sed 'y%./+-%__p_%'` 4092 4196 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4096 4200 LIBS="-lMPT $LIBS" 4097 4201 cat > conftest.$ac_ext <<EOF 4098 #line 4 099"configure"4202 #line 4203 "configure" 4099 4203 #include "confdefs.h" 4100 4204 /* Override any gcc2 internal prototype to avoid an error. */ … … 4107 4211 ; return 0; } 4108 4212 EOF 4109 if { (eval echo configure:4 110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then4213 if { (eval echo configure:4214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4110 4214 rm -rf conftest* 4111 4215 eval "ac_cv_lib_$ac_lib_var=yes" … … 4135 4239 4136 4240 echo $ac_n "checking for atof in -lsingcf""... $ac_c" 1>&6 4137 echo "configure:4 138: checking for atof in -lsingcf" >&54241 echo "configure:4242: checking for atof in -lsingcf" >&5 4138 4242 ac_lib_var=`echo singcf'_'atof | sed 'y%./+-%__p_%'` 4139 4243 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4143 4247 LIBS="-lsingcf $LIBS" 4144 4248 cat > conftest.$ac_ext <<EOF 4145 #line 4 146"configure"4249 #line 4250 "configure" 4146 4250 #include "confdefs.h" 4147 4251 /* Override any gcc2 internal prototype to avoid an error. */ … … 4154 4258 ; return 0; } 4155 4259 EOF 4156 if { (eval echo configure:4 157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then4260 if { (eval echo configure:4261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4157 4261 rm -rf conftest* 4158 4262 eval "ac_cv_lib_$ac_lib_var=yes" … … 4182 4286 4183 4287 echo $ac_n "checking for atof in -lsingfac""... $ac_c" 1>&6 4184 echo "configure:4 185: checking for atof in -lsingfac" >&54288 echo "configure:4289: checking for atof in -lsingfac" >&5 4185 4289 ac_lib_var=`echo singfac'_'atof | sed 'y%./+-%__p_%'` 4186 4290 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4190 4294 LIBS="-lsingfac $LIBS" 4191 4295 cat > conftest.$ac_ext <<EOF 4192 #line 4 193"configure"4296 #line 4297 "configure" 4193 4297 #include "confdefs.h" 4194 4298 /* Override any gcc2 internal prototype to avoid an error. */ … … 4201 4305 ; return 0; } 4202 4306 EOF 4203 if { (eval echo configure:4 204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then4307 if { (eval echo configure:4308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4204 4308 rm -rf conftest* 4205 4309 eval "ac_cv_lib_$ac_lib_var=yes" … … 4233 4337 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4234 4338 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4235 echo "configure:4 236: checking for $ac_hdr" >&54339 echo "configure:4340: checking for $ac_hdr" >&5 4236 4340 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4237 4341 echo $ac_n "(cached) $ac_c" 1>&6 4238 4342 else 4239 4343 cat > conftest.$ac_ext <<EOF 4240 #line 4 241"configure"4344 #line 4345 "configure" 4241 4345 #include "confdefs.h" 4242 4346 #include <$ac_hdr> 4243 4347 EOF 4244 4348 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4245 { (eval echo configure:4 246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }4246 ac_err=`grep -v '^ *+' conftest.out `4349 { (eval echo configure:4350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4350 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4247 4351 if test -z "$ac_err"; then 4248 4352 rm -rf conftest* … … 4270 4374 4271 4375 4272 if test "$ac_cv_lib_gmp_m pq_init" = yes && \4376 if test "$ac_cv_lib_gmp_main" = yes && \ 4273 4377 test "$ac_cv_header_gmp_h" = yes; then 4274 4378 ac_gmp_ok=yes 4275 4379 fi 4276 4380 4277 if test "$ac_cv_lib_smallgmp_m pz_init" = yes && \4381 if test "$ac_cv_lib_smallgmp_main" = yes && \ 4278 4382 test "$ac_cv_header_smallgmp_h" = yes && \ 4279 4383 test "$ac_cv_header_gmp_h" = yes; then … … 4300 4404 # evaluate results 4301 4405 echo $ac_n "checking which apint package to use""... $ac_c" 1>&6 4302 echo "configure:4 303: checking which apint package to use" >&54406 echo "configure:4407: checking which apint package to use" >&5 4303 4407 if test "${with_apint}" != gmp && test "${with_apint}" != smallgmp; then 4304 4408 if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then … … 4344 4448 if test "$with_dl" != no; then 4345 4449 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 4346 echo "configure:4 347: checking for dlopen in -ldl" >&54450 echo "configure:4451: checking for dlopen in -ldl" >&5 4347 4451 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 4348 4452 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4352 4456 LIBS="-ldl $LIBS" 4353 4457 cat > conftest.$ac_ext <<EOF 4354 #line 4 355"configure"4458 #line 4459 "configure" 4355 4459 #include "confdefs.h" 4356 4460 /* Override any gcc2 internal prototype to avoid an error. */ … … 4363 4467 ; return 0; } 4364 4468 EOF 4365 if { (eval echo configure:4 366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then4469 if { (eval echo configure:4470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4366 4470 rm -rf conftest* 4367 4471 eval "ac_cv_lib_$ac_lib_var=yes" … … 4403 4507 fi 4404 4508 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 4405 echo "configure:4 406: checking for shl_load in -ldld" >&54509 echo "configure:4510: checking for shl_load in -ldld" >&5 4406 4510 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 4407 4511 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4411 4515 LIBS="-ldld $LIBS" 4412 4516 cat > conftest.$ac_ext <<EOF 4413 #line 4 414"configure"4517 #line 4518 "configure" 4414 4518 #include "confdefs.h" 4415 4519 /* Override any gcc2 internal prototype to avoid an error. */ … … 4422 4526 ; return 0; } 4423 4527 EOF 4424 if { (eval echo configure:4 425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then4528 if { (eval echo configure:4529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4425 4529 rm -rf conftest* 4426 4530 eval "ac_cv_lib_$ac_lib_var=yes" … … 4462 4566 4463 4567 echo $ac_n "checking whether to have MP""... $ac_c" 1>&6 4464 echo "configure:4 465: checking whether to have MP" >&54568 echo "configure:4569: checking whether to have MP" >&5 4465 4569 if test "${with_MP}" != yes && test "${with_MP}" != no; then 4466 4570 if (test "${will_have_gmp}" = yes) && \ … … 4493 4597 4494 4598 echo $ac_n "checking whether to have factory""... $ac_c" 1>&6 4495 echo "configure:4 496: checking whether to have factory" >&54599 echo "configure:4600: checking whether to have factory" >&5 4496 4600 if test "${with_factory}" != yes && test "${with_factory}" != no; then 4497 4601 if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then … … 4524 4628 4525 4629 echo $ac_n "checking whether to have libfac""... $ac_c" 1>&6 4526 echo "configure:4 527: checking whether to have libfac" >&54630 echo "configure:4631: checking whether to have libfac" >&5 4527 4631 if test "${with_libfac}" != yes && test "${with_libfac}" != no; then 4528 4632 if (test "${will_have_factory}" = yes) && \ … … 4556 4660 4557 4661 echo $ac_n "checking whether to have dbm links""... $ac_c" 1>&6 4558 echo "configure:4 559: checking whether to have dbm links" >&54662 echo "configure:4663: checking whether to have dbm links" >&5 4559 4663 if test "$with_dbm" != no; then 4560 4664 cat >> confdefs.h <<\EOF … … 4568 4672 4569 4673 echo $ac_n "checking whether to have namespaces""... $ac_c" 1>&6 4570 echo "configure:4 571: checking whether to have namespaces" >&54674 echo "configure:4675: checking whether to have namespaces" >&5 4571 4675 if test "$with_namespaces" != yes; then 4572 4676 echo "$ac_t""no" 1>&6 … … 4580 4684 4581 4685 echo $ac_n "checking whether to have dynamic loading""... $ac_c" 1>&6 4582 echo "configure:4 583: checking whether to have dynamic loading" >&54686 echo "configure:4687: checking whether to have dynamic loading" >&5 4583 4687 if test "$with_dl" != yes; then 4584 4688 echo "$ac_t""no" 1>&6 … … 4593 4697 HPUX-9) 4594 4698 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 4595 echo "configure:4 596: checking for shl_load in -ldld" >&54699 echo "configure:4700: checking for shl_load in -ldld" >&5 4596 4700 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 4597 4701 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4601 4705 LIBS="-ldld $LIBS" 4602 4706 cat > conftest.$ac_ext <<EOF 4603 #line 4 604"configure"4707 #line 4708 "configure" 4604 4708 #include "confdefs.h" 4605 4709 /* Override any gcc2 internal prototype to avoid an error. */ … … 4612 4716 ; return 0; } 4613 4717 EOF 4614 if { (eval echo configure:4 615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then4718 if { (eval echo configure:4719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4615 4719 rm -rf conftest* 4616 4720 eval "ac_cv_lib_$ac_lib_var=yes" … … 4644 4748 HPUX-10) 4645 4749 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 4646 echo "configure:4 647: checking for shl_load in -ldld" >&54750 echo "configure:4751: checking for shl_load in -ldld" >&5 4647 4751 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 4648 4752 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4652 4756 LIBS="-ldld $LIBS" 4653 4757 cat > conftest.$ac_ext <<EOF 4654 #line 4 655"configure"4758 #line 4759 "configure" 4655 4759 #include "confdefs.h" 4656 4760 /* Override any gcc2 internal prototype to avoid an error. */ … … 4663 4767 ; return 0; } 4664 4768 EOF 4665 if { (eval echo configure:4 666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then4769 if { (eval echo configure:4770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4666 4770 rm -rf conftest* 4667 4771 eval "ac_cv_lib_$ac_lib_var=yes" … … 4702 4806 4703 4807 echo $ac_n "checking whether to use mtrack""... $ac_c" 1>&6 4704 echo "configure:4 705: checking whether to use mtrack" >&54808 echo "configure:4809: checking whether to use mtrack" >&5 4705 4809 if test "$with_mtrack" = yes && test "$ac_cv_singuname" = ix86-Linux; then 4706 4810 echo "$ac_t""yes" 1>&6 … … 4716 4820 4717 4821 echo $ac_n "checking which exponent type to use""... $ac_c" 1>&6 4718 echo "configure:4 719: checking which exponent type to use" >&54822 echo "configure:4823: checking which exponent type to use" >&5 4719 4823 if test "$with_exp_type" = "char"; then 4720 4824 echo "$ac_t""char" 1>&6 … … 4772 4876 # and sets the high bit in the cache file unless we assign to the vars. 4773 4877 (set) 2>&1 | 4774 case `(ac_space=' '; set ) 2>&1` in4878 case `(ac_space=' '; set | grep ac_space) 2>&1` in 4775 4879 *ac_space=\ *) 4776 4880 # `set' does not quote correctly, so add quotes (double-quote substitution … … 4839 4943 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 4840 4944 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 4841 echo "$CONFIG_STATUS generated by autoconf version 2.1 2"4945 echo "$CONFIG_STATUS generated by autoconf version 2.13" 4842 4946 exit 0 ;; 4843 4947 -help | --help | --hel | --he | --h) … … 4858 4962 $ac_vpsub 4859 4963 $extrasub 4964 s%@SHELL@%$SHELL%g 4860 4965 s%@CFLAGS@%$CFLAGS%g 4861 4966 s%@CPPFLAGS@%$CPPFLAGS%g 4862 4967 s%@CXXFLAGS@%$CXXFLAGS%g 4968 s%@FFLAGS@%$FFLAGS%g 4863 4969 s%@DEFS@%$DEFS%g 4864 4970 s%@LDFLAGS@%$LDFLAGS%g … … 4880 4986 s%@mandir@%$mandir%g 4881 4987 s%@SINGUNAME@%$SINGUNAME%g 4988 s%@EXEC_EXT@%$EXEC_EXT%g 4882 4989 s%@SING_UNAME@%$SING_UNAME%g 4883 4990 s%@SINGULAR_VERSION@%$SINGULAR_VERSION%g … … 4894 5001 s%@BISON@%$BISON%g 4895 5002 s%@LN_S@%$LN_S%g 5003 s%@PERL@%$PERL%g 4896 5004 s%@ALLOCA@%$ALLOCA%g 4897 s%@ PERL5@%$PERL5%g5005 s%@CXXCPP@%$CXXCPP%g 4898 5006 s%@LD_LIBC@%$LD_LIBC%g 4899 5007 s%@NEED_LIBS@%$NEED_LIBS%g -
Singular/configure.in
reec9b2 ra70441f 29 29 SINGUNAME=$ac_cv_singuname 30 30 AC_SUBST(SINGUNAME) 31 32 if test "$ac_cv_singuname" = ix86-Win; then 33 EXEC_EXT=".exe" 34 fi 35 AC_SUBST(EXEC_EXT) 31 36 32 37 SING_UNAME=`echo $SINGUNAME | tr '-' '_' ` … … 167 172 168 173 # expand bindir 169 test "x$bindir" = 'x${exec_prefix}/bin' && bindir="${exec_prefix} /bin"170 SINGULAR=${SINGULAR:-$bindir/Singular-$SINGULAR_MAJOR_VERSION${VERSION_SEP}$SINGULAR_MINOR_VERSION${VERSION_SEP}$SINGULAR_SUB_VERSION} 174 test "x$bindir" = 'x${exec_prefix}/bin' && bindir="${exec_prefix}" 175 SINGULAR=${SINGULAR:-$bindir/Singular-$SINGULAR_MAJOR_VERSION${VERSION_SEP}$SINGULAR_MINOR_VERSION${VERSION_SEP}$SINGULAR_SUB_VERSION}${EXEC_EXT} 171 176 AC_SUBST(SINGULAR) 172 177 AC_DEFINE_UNQUOTED(S_BIN_DIR, "${bindir}") 173 178 174 179 # expand libdir 175 test "x$libdir" = 'x${exec_prefix}/lib'&& libdir="${exec_prefix}/lib /${SINGULAR_VERSION}"180 test "x$libdir" = 'x${exec_prefix}/lib'&& libdir="${exec_prefix}/lib" 176 181 177 182 # expand includedir 178 test "x$includedir" = 'x${prefix}/include' && includedir="${exec_prefix}/include /${SINGULAR_VERSION}"183 test "x$includedir" = 'x${prefix}/include' && includedir="${exec_prefix}/include" 179 184 180 185 # add to -I to CPPFLAGS and and -L to LDFLAGS, just to be sure 181 LDFLAGS="-L${libdir} ${LDFLAGS} "182 CPPFLAGS="-I${includedir} ${CPPFLAGS} "186 LDFLAGS="-L${libdir} ${LDFLAGS} -L/usr/local/lib" 187 CPPFLAGS="-I${includedir} ${CPPFLAGS} -I/usr/local/include" 183 188 184 189 # this is a work-around to include the right term.h … … 234 239 AC_PROG_LN_S 235 240 241 AC_CHECK_PROGS(PERL, perl5 perl) 242 236 243 dnl llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll 237 244 dnl check for general libraries, header files, typedefs, etc … … 249 256 AC_MSG_ERROR(Can not compile without limits.h unistd.h)) 250 257 251 AC_CHECK_HEADERS(malloc.h sys/file.h sys/ioctl.h sys/time.h sys/times.h sys/types.h sys/stat.h fcntl.h sys/param.h pwd.h asm/sigcontext.h pwd.h termcap.h termios.h term.h )258 AC_CHECK_HEADERS(malloc.h sys/file.h sys/ioctl.h sys/time.h sys/times.h sys/types.h sys/stat.h fcntl.h sys/param.h pwd.h asm/sigcontext.h pwd.h termcap.h termios.h term.h readline/readline.h) 252 259 253 260 # typedefs, structures … … 481 488 [ --with-lex=[LEX,no] uses LEX as lex program, default is flex]) 482 489 AC_ARG_WITH( 483 perl5,484 [ --with-perl5=[PERL5,no] uses PERL5 as perl5 program, default is perl5])485 AC_ARG_WITH(486 490 readline, 487 491 [ --with-readline do use static readline for fancy display]) … … 519 523 [ --with-mtrack use mpr routines for extended memory tracking 520 524 -- works only under ix86-Linux]) 521 dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll522 dnl Check for perl 5523 dnl524 # perl version 5525 if test "${with_perl5+set}" != set; then526 AC_MSG_CHECKING(for perl5)527 changequote(<<,>>)dnl528 AC_CACHE_VAL(ac_cv_prog_perl5,529 if (perl5 -v >/dev/null 2>&1)530 then531 if (perl5 -v | egrep "version 5\.[0-9]" >/dev/null 2>&1 )532 then533 ac_cv_prog_perl5=perl5534 fi535 elif (perl -v >/dev/null 2>&1)536 then537 if (perl -v | egrep "version 5\.[0-9]" >/dev/null 2>&1 )538 then539 ac_cv_prog_perl5=perl540 fi541 fi542 )543 changequote([,])dnl544 if test "${ac_cv_prog_perl5+set}" = set; then545 AC_MSG_RESULT(${ac_cv_prog_perl5})546 PERL5=${ac_cv_prog_perl5}547 AC_SUBST(PERL5)548 else549 AC_MSG_ERROR(can not find perl version 5)550 fi551 elif test "${with_perl5}" = no; then552 AC_MSG_WARN(building without perl5 -- make might fail)553 else554 unset PERL5555 unset ac_cv_prog_PERL5556 AC_CHECK_PROGS(PERL5, ${with_perl5})557 if test "x${PERL5}" = x; then558 AC_MSG_WARN(building without perl5 -- make might fail)559 fi560 fi561 562 525 dnl llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll 563 526 dnl check for packages we need … … 573 536 # readline 574 537 if test "$with_readline" = yes; then 538 AC_LANG_SAVE 539 AC_LANG_CPLUSPLUS 575 540 AC_CHECK_LIB(readline, rl_abort) 576 541 AC_CHECK_HEADERS(readline/readline.h readline/history.h) … … 649 614 AC_MSG_WARN(building without readline: disabling fancy display) 650 615 fi 616 AC_LANG_RESTORE 651 617 fi 652 618 … … 654 620 655 621 # gmp, smallgmp, MP, MPT, factory, libfac 656 AC_CHECK_LIB(gmp, m pq_init)657 if test "ac_cv_lib_gmp_m pq_init" = yes && test "$with-apint" = smallgmp; then622 AC_CHECK_LIB(gmp, main) 623 if test "ac_cv_lib_gmp_main" = yes && test "$with-apint" = smallgmp; then 658 624 LIBS=NEED_LIBS 659 625 fi 660 AC_CHECK_LIB(smallgmp, m pz_init)626 AC_CHECK_LIB(smallgmp, main) 661 627 AC_CHECK_LIB(MP, IMP_PutGmpInt) 662 628 AC_CHECK_LIB(MPT, MPT_GetTree) … … 666 632 AC_CHECK_HEADERS(gmp.h smallgmp.h MP.h MPT.h factory.h factor.h) 667 633 668 if test "$ac_cv_lib_gmp_m pq_init" = yes && \634 if test "$ac_cv_lib_gmp_main" = yes && \ 669 635 test "$ac_cv_header_gmp_h" = yes; then 670 636 ac_gmp_ok=yes 671 637 fi 672 638 673 if test "$ac_cv_lib_smallgmp_m pz_init" = yes && \639 if test "$ac_cv_lib_smallgmp_main" = yes && \ 674 640 test "$ac_cv_header_smallgmp_h" = yes && \ 675 641 test "$ac_cv_header_gmp_h" = yes; then -
Singular/emacs.cc
reec9b2 ra70441f 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: emacs.cc,v 1.1 1 1999-12-16 13:41:30obachman Exp $ */4 /* $Id: emacs.cc,v 1.12 2000-04-27 10:07:05 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: Esingular main file … … 145 145 // make sure emacs, singular, emacs_dir, emacs_load are set 146 146 if (emacs == NULL) emacs = feResource("emacs", 0); 147 if (emacs == NULL) emacs = feResource("xemacs", 0); 147 148 if (emacs == NULL) 148 149 { … … 215 216 prefix = "-"; 216 217 getcwd(cwd, MAXPATHLEN); 217 218 // append / at the end of cwd 219 if (cwd[strlen(cwd)-1] != '/') strcat(cwd, "/"); 220 218 221 // Note: option -no-init-file should be equivalent to -q. Anyhow, 219 222 // xemacs-20.4 sometimes crashed on startup when using -q. DonŽt know why. -
Singular/extra.cc
reec9b2 ra70441f 2 2 * Computer Algebra System SINGULAR * 3 3 *****************************************/ 4 /* $Id: extra.cc,v 1.13 2 2000-01-22 12:04:06 SingularExp $ */4 /* $Id: extra.cc,v 1.133 2000-04-27 10:07:05 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: general interface to internals of Singular ("system" command) … … 167 167 } 168 168 else 169 /*==================== gc ==================================*/170 if(strcmp(sys_cmd,"gc")==0)171 {172 mmGarbageCollectHeaps(3);173 PrintLn();174 return FALSE;175 }176 else177 169 /*==================== sh ==================================*/ 178 170 if(strcmp(sys_cmd,"sh")==0) … … 188 180 res->data=(void *)0; 189 181 #endif 182 return FALSE; 183 } 184 else 185 /*==================== uname ==================================*/ 186 if(strcmp(sys_cmd,"uname")==0) 187 { 188 res->rtyp=STRING_CMD; 189 res->data = mstrdup(S_UNAME); 190 190 return FALSE; 191 191 } -
Singular/feOpt.cc
reec9b2 ra70441f 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: feOpt.cc,v 1. 9 2000-02-04 13:15:25obachman Exp $ */4 /* $Id: feOpt.cc,v 1.10 2000-04-27 10:07:06 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: Implementation of option buisness … … 131 131 132 132 {"min-time", required_argument, LONG_OPTION_RETURN, 133 "SECS", "Do not display times smaller than SECS (in seconds)", feOptString, "0.5", 0},133 "SECS", "Do not display times smaller than SECS (in seconds)", feOptString, (void*) "0.5", 0}, 134 134 135 135 #ifdef HAVE_MPSR -
Singular/feResource.cc
reec9b2 ra70441f 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: feResource.cc,v 1.2 2 2000-02-04 13:15:26 obachman Exp $ */4 /* $Id: feResource.cc,v 1.23 2000-04-27 10:07:06 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: management of resources … … 57 57 // 1.) '/' characters are replaced by respective directory - separators 58 58 // 2.) ';' characters are replaced by respective path separators 59 static feResourceConfig_s feResourceConfigs[2 0] =59 static feResourceConfig_s feResourceConfigs[25] = 60 60 { 61 61 {"SearchPath", 's', feResPath, NULL, … … 86 86 #ifdef ESINGULAR 87 87 {"emacs", 'E', feResBinary, "ESINGULAR_EMACS", "%b/emacs", ""}, 88 {"xemacs", 'A', feResBinary, "ESINGULAR_EMACS", "%b/xemacs", ""}, 88 89 {"SingularEmacs",'M',feResBinary, "ESINGULAR_SINGULAR", "%b/Singular", ""}, 89 90 {"EmacsLoad",'l', feResFile, "ESINGULAR_EMACS_LOAD", "%e/.emacs-singular", ""}, -
Singular/febase.cc
reec9b2 ra70441f 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: febase.cc,v 1.8 5 2000-04-11 15:18:06 SingularExp $ */4 /* $Id: febase.cc,v 1.86 2000-04-27 10:07:06 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: i/o system 7 7 */ 8 8 9 /* I need myfread in standalone_parser */ 10 #ifndef STANDALONE_PARSER 9 11 #include "mod2.h" 10 12 … … 631 633 return s; 632 634 } 635 #else /* ! STANDALONE_PARSER */ 636 #include <stdio.h> 637 638 #endif 633 639 634 640 #ifndef unix … … 638 644 char mmode[4]; 639 645 int i; 640 BOOLEAN done = FALSE;646 int done = 0; 641 647 642 648 for (i=0;;i++) … … 644 650 mmode[i] = mode[i]; 645 651 if (mode[i] == '\0') break; 646 if (mode[i] == 'b') done = TRUE;652 if (mode[i] == 'b') done = 1; 647 653 } 648 654 … … 655 661 } 656 662 #endif 657 658 663 // replace "\r\n" by " \n" and "\r" by "\n" 659 664 -
Singular/febase.h
reec9b2 ra70441f 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: febase.h,v 1.4 5 2000-03-08 15:08:09 SingularExp $ */6 /* $Id: febase.h,v 1.46 2000-04-27 10:07:07 obachman Exp $ */ 7 7 /* 8 8 * ABSTRACT: basic i/o … … 39 39 #undef HAVE_READLINE 40 40 #define HAVE_FEREAD 1 41 #elif ! defined(HAVE_READLINE) 42 #define HAVE_FEREAD 41 43 #endif 42 44 -
Singular/febase.inc
reec9b2 ra70441f 1 /* -*-c++-*- */ 1 2 /**************************************** 2 3 * Computer Algebra System SINGULAR * 3 4 ****************************************/ 4 /* $Id: febase.inc,v 1. 29 2000-02-14 17:00:10 SingularExp $ */5 /* $Id: febase.inc,v 1.30 2000-04-27 10:07:07 obachman Exp $ */ 5 6 /* 6 7 * ABSTRACT: handling of 'voices' … … 440 441 { 441 442 char *s=NULL; 442 int offset ; /* will not be used if s==NULL*/443 int offset = 0; /* will not be used if s==NULL*/ 443 444 // try to read from the buffer into b, max l chars 444 445 if (currentVoice!=NULL) -
Singular/feread.cc
reec9b2 ra70441f 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: feread.cc,v 1.3 4 1999-12-16 16:12:45 SingularExp $ */4 /* $Id: feread.cc,v 1.35 2000-04-27 10:07:08 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: input from ttys, simulating fgets … … 76 76 #include <sys/stat.h> 77 77 #include <sys/errno.h> 78 79 // #undef READLINE_READLINE_H_OK 78 80 79 81 extern "C" { … … 91 93 extern CPPFunction * rl_attempted_completion_function; 92 94 extern FILE * rl_outstream; 93 char * readline (); 94 void add_history (); 95 int write_history (); 95 extern char * readline (); 96 extern void add_history (); 97 extern int write_history (); 98 extern void using_history(); 99 extern int read_history(); 100 extern int history_total_bytes(); 96 101 #endif /* READLINE_READLINE_H_OK */ 97 102 } -
Singular/kutil.h
reec9b2 ra70441f 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: kutil.h,v 1.2 4 2000-02-01 15:30:24 SingularExp $ */6 /* $Id: kutil.h,v 1.25 2000-04-27 10:07:08 obachman Exp $ */ 7 7 /* 8 8 * ABSTRACT: kernel: utils for kStd … … 12 12 #include "mmemory.h" 13 13 #include "ring.h" 14 #if HAVE_ASO == 115 #include "kutil.aso"16 #endif17 14 18 15 #define setmax 16 -
Singular/libparse.h
reec9b2 ra70441f 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: libparse.h,v 1.1 1 1999-11-15 17:20:17obachman Exp $ */6 /* $Id: libparse.h,v 1.12 2000-04-27 10:07:08 obachman Exp $ */ 7 7 /* 8 8 * ABSTRACT: lib parsing … … 44 44 45 45 # ifdef STANDALONE_PARSER 46 # define myfread fread 47 # define myfopen fopen 46 #ifndef unix 47 extern FILE* myfopen(char *path, char *mode); 48 extern size_t myfread(void *ptr, size_t size, size_t nmemb, FILE *stream); 49 #else 50 #define myfopen fopen 51 #define myfread fread 52 #endif 48 53 # endif 49 54 -
Singular/libparse.l
reec9b2 ra70441f 3 3 * Computer Algebra System SINGULAR * 4 4 ****************************************/ 5 /* $Id: libparse.l,v 1.3 8 1999-12-08 20:36:20obachman Exp $ */5 /* $Id: libparse.l,v 1.39 2000-04-27 10:07:08 obachman Exp $ */ 6 6 #include <stdio.h> 7 7 #include <string.h> … … 104 104 #ifdef STANDALONE_PARSER 105 105 procinfov pi; 106 printpi(procinfov pi);107 pi_clear(procinfov pi);106 void printpi(procinfov pi); 107 void pi_clear(procinfov pi); 108 108 extern "C" { 109 109 int yylpwrap(); -
Singular/mod2.h.in
reec9b2 ra70441f 1 /* -*-c++-*- */ 1 2 /******************************************************************* 2 3 * Computer Algebra System SINGULAR … … 5 6 * DO NOT EDIT! 6 7 * 7 * Version: $Id: mod2.h.in,v 1.8 1 2000-02-01 15:29:26 SingularExp $8 * Version: $Id: mod2.h.in,v 1.82 2000-04-27 10:07:09 obachman Exp $ 8 9 *******************************************************************/ 9 10 #ifndef MOD2_H -
Singular/mpr_complex.cc
reec9b2 ra70441f 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: mpr_complex.cc,v 1.1 8 1999-11-14 21:35:09 wenkExp $ */4 /* $Id: mpr_complex.cc,v 1.19 2000-04-27 10:07:09 obachman Exp $ */ 5 5 6 6 /* … … 169 169 { 170 170 gmp_float tmp; 171 mpf_neg( *(tmp. mpfp()), *(a.mpfp()) );171 mpf_neg( *(tmp._mpfp()), *(a.mpfp()) ); 172 172 return tmp; 173 173 } … … 176 176 { 177 177 gmp_float *tmp= new gmp_float(); 178 mpf_abs( *tmp-> mpfp(), *a.mpfp() );178 mpf_abs( *tmp->_mpfp(), *a.mpfp() ); 179 179 return *tmp; 180 180 } … … 182 182 { 183 183 gmp_float *tmp= new gmp_float(); 184 mpf_sqrt( *tmp-> mpfp(), *a.mpfp() );184 mpf_sqrt( *tmp->_mpfp(), *a.mpfp() ); 185 185 return *tmp; 186 186 } -
Singular/mpr_complex.h
reec9b2 ra70441f 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: mpr_complex.h,v 1.1 0 1999-11-14 21:35:09 wenkExp $ */6 /* $Id: mpr_complex.h,v 1.11 2000-04-27 10:07:10 obachman Exp $ */ 7 7 8 8 /* … … 114 114 // access 115 115 inline const mpf_t *mpfp() const; 116 116 inline mpf_t *_mpfp(); 117 117 118 inline operator double(); 118 119 inline operator double() const; … … 250 251 } 251 252 253 inline mpf_t *gmp_float::_mpfp() 254 { 255 return &t; 256 } 257 252 258 // built-in functions of GMP 253 259 gmp_float abs( const gmp_float & ); -
Singular/polys-impl.cc
reec9b2 ra70441f 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: polys-impl.cc,v 1.4 1 2000-03-31 13:21:25 SingularExp $ */4 /* $Id: polys-impl.cc,v 1.42 2000-04-27 10:07:10 obachman Exp $ */ 5 5 6 6 /*************************************************************** … … 137 137 d_p->next = (poly) mmDBAllocHeap(d_h, f, l); 138 138 #else 139 mmAllocHeap (d_p->next, d_h);139 mmAllocHeapType(d_p->next, d_h, poly); 140 140 #endif 141 141 d_p = d_p->next; … … 188 188 d_p->next = (poly) mmDBAllocHeap(d_h, f, l); 189 189 #else 190 mmAllocHeap (d_p->next, d_h);190 mmAllocHeapType(d_p->next, d_h, poly); 191 191 #endif 192 192 d_p = d_p->next; … … 211 211 d_p->next = (poly) mmDBAllocHeap(d_h, f, l); 212 212 #else 213 mmAllocHeap (d_p->next, d_h);213 mmAllocHeapType(d_p->next, d_h, poly); 214 214 #endif 215 215 d_p = d_p->next; … … 239 239 d_p->next = (poly) mmDBAllocHeap(d_h, f, l); 240 240 #else 241 mmAllocHeap (d_p->next, d_h);241 mmAllocHeapType(d_p->next, d_h, poly); 242 242 #endif 243 243 d_p = d_p->next; … … 263 263 d_p->next = (poly) mmDBAllocHeap(d_h, f, l); 264 264 #else 265 mmAllocHeap (d_p->next, d_h);265 mmAllocHeapType(d_p->next, d_h,poly); 266 266 #endif 267 267 d_p = d_p->next; … … 328 328 w = (poly) mmDBAllocHeap(heap, f, l); 329 329 #else 330 mmAllocHeap (w, heap);330 mmAllocHeapType(w, heap, poly); 331 331 #endif 332 332 memcpyW(&(w->exp.l[0]), &(p->exp.l[0]), currRing->ExpLSize); … … 354 354 w = (poly) mmDBAllocHeap(d_h, f, l); 355 355 #else 356 mmAllocHeap (w, d_h);356 mmAllocHeapType(w, d_h, poly); 357 357 #endif 358 358 memcpyW(&(w->exp.l[0]), &(p->exp.l[0]), currRing->ExpLSize); -
Singular/prProcs.cc
reec9b2 ra70441f 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: prProcs.cc,v 1. 1 1999-11-15 17:20:44obachman Exp $ */4 /* $Id: prProcs.cc,v 1.2 2000-04-27 10:07:10 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT - Routines for primitive poly arithmetic … … 180 180 while (p != NULL) 181 181 { 182 pNext(q) = AllocHeap (ri->mm_specHeap);182 pNext(q) = AllocHeapType(ri->mm_specHeap, poly); 183 183 q = pNext(q); 184 184 pSetCoeff0(q, nMult(ln, pGetCoeff(p))); … … 192 192 while (p != NULL) 193 193 { 194 r = AllocHeap (ri->mm_specHeap);194 r = AllocHeapType(ri->mm_specHeap, poly); 195 195 prMonAdd(r, p, m, ri); 196 196 … … 262 262 if (p == NULL) goto Finish; // we are done if p is 0 263 263 264 qm = AllocHeap (r->mm_specHeap);264 qm = AllocHeapType(r->mm_specHeap,poly); 265 265 assume(pGetComp(q) == 0 || pGetComp(m) == 0); 266 266 prMonAdd(qm, q, m, r); … … 309 309 } 310 310 // construct new qm 311 qm = AllocHeap (r->mm_specHeap);311 qm = AllocHeapType(r->mm_specHeap,poly); 312 312 assume(pGetComp(q) == 0 || pGetComp(m) == 0); 313 313 prMonAdd(qm, q, m, r); -
Singular/silink.cc
reec9b2 ra70441f 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: silink.cc,v 1.3 3 1999-11-15 17:20:47obachman Exp $ */4 /* $Id: silink.cc,v 1.34 2000-04-27 10:07:11 obachman Exp $ */ 5 5 6 6 /* … … 439 439 memset(&tmp,0,sizeof(sleftv)); 440 440 tmp.rtyp=STRING_CMD; 441 tmp.data= "? ";441 tmp.data=(void*) "? "; 442 442 return slReadAscii2(l,&tmp); 443 443 } -
Singular/subexpr.cc
reec9b2 ra70441f 5 5 * ABSTRACT: handling of leftv 6 6 */ 7 /* $Id: subexpr.cc,v 1.5 5 1999-11-15 17:20:51 obachman Exp $ */7 /* $Id: subexpr.cc,v 1.56 2000-04-27 10:07:11 obachman Exp $ */ 8 8 9 9 #include <stdlib.h> … … 713 713 714 714 case NUMBER_CMD: 715 StringSetS(( typed ? "number(" : ""));715 StringSetS((char*) (typed ? "number(" : "")); 716 716 if ((rtyp==IDHDL)&&(IDTYP((idhdl)data)==NUMBER_CMD)) 717 717 { … … 734 734 nDelete(&n); 735 735 } 736 s = StringAppendS(( typed ? ")" : ""));736 s = StringAppendS((char*) (typed ? ")" : "")); 737 737 return mstrdup(s); 738 738 -
Singular/tesths.cc
reec9b2 ra70441f 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: tesths.cc,v 1. 79 2000-04-11 15:18:08 SingularExp $ */4 /* $Id: tesths.cc,v 1.80 2000-04-27 10:07:12 obachman Exp $ */ 5 5 6 6 /* … … 50 50 extern void ttGen2(); 51 51 #ifndef __MWERKS__ 52 extern mpsr_ttGen(); // For initialization of (CMD, MP_COP) tables52 extern void mpsr_ttGen(); // For initialization of (CMD, MP_COP) tables 53 53 mpsr_ttGen(); 54 54 #endif -
Singular/timer.cc
reec9b2 ra70441f 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: timer.cc,v 1.1 3 1999-11-15 17:20:55obachman Exp $ */4 /* $Id: timer.cc,v 1.14 2000-04-27 10:07:12 obachman Exp $ */ 5 5 6 6 /* … … 122 122 * if this time is > mintime sec 123 123 */ 124 void writeTime( void* v)124 void writeTime(char* v) 125 125 { 126 126 clock_t curr; … … 177 177 * if this time is > mintime 178 178 */ 179 void writeRTime( void* v)179 void writeRTime(char* v) 180 180 { 181 181 struct timeval now; -
Singular/timer.h
reec9b2 ra70441f 7 7 * ABSTRACT - get the computing time 8 8 */ 9 /* $Id: timer.h,v 1. 5 1999-11-15 17:20:55obachman Exp $ */9 /* $Id: timer.h,v 1.6 2000-04-27 10:07:12 obachman Exp $ */ 10 10 11 11 extern int timerv; 12 12 void startTimer(void); 13 void writeTime( void* s);13 void writeTime(char* s); 14 14 15 15 int initTimer(); … … 19 19 extern int rtimerv; 20 20 void startRTimer(void); 21 void writeRTime( void* s);21 void writeRTime(char* s); 22 22 23 23 void initRTimer(); -
Singular/utils.cc
reec9b2 ra70441f 18 18 int warning_info = 0, warning_version = 0; 19 19 20 static usage(char *progname)20 static void usage(char *progname) 21 21 { 22 22 printf("libparse: a syntax-checker for Singular Libraries.\n"); … … 32 32 33 33 static char* lib_file = NULL; 34 extern "C" { int fe_getopt (); } 34 35 35 36 /*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/ … … 133 134 134 135 /*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/ 135 pi_clear(procinfov pi)136 void pi_clear(procinfov pi) 136 137 { 137 138 free(pi->libname); … … 168 169 169 170 170 printpi(procinfov pi)171 void printpi(procinfov pi) 171 172 { 172 173 char *buf, name[256]; … … 178 179 { 179 180 printf("Can not open %s\n", lib_file); 180 return 0;181 return; 181 182 } 182 183 -
configure
reec9b2 ra70441f 16 16 \ 17 17 --with-tmpdir=DIR use DIR as temporary directory" 18 ac_help="$ac_help19 --with-perl5=[PERL5,no] uses PERL5 as perl5 program, default is perl5"20 18 ac_help="$ac_help 21 19 \ … … 614 612 615 613 echo $ac_n "checking uname for singular""... $ac_c" 1>&6 616 echo "configure:61 7: checking uname for singular" >&5614 echo "configure:615: checking uname for singular" >&5 617 615 if eval "test \"`echo '$''{'ac_cv_singuname'+set}'`\" = set"; then 618 616 echo $ac_n "(cached) $ac_c" 1>&6 … … 633 631 SINGUNAME=$ac_cv_singuname 634 632 633 fi 634 635 if test "$ac_cv_singuname" = ix86-Win; then 636 EXEC_EXT=".exe" 635 637 fi 636 638 … … 662 664 set dummy gcc; ac_word=$2 663 665 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 664 echo "configure:66 5: checking for $ac_word" >&5666 echo "configure:667: checking for $ac_word" >&5 665 667 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 666 668 echo $ac_n "(cached) $ac_c" 1>&6 … … 692 694 set dummy cc; ac_word=$2 693 695 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 694 echo "configure:69 5: checking for $ac_word" >&5696 echo "configure:697: checking for $ac_word" >&5 695 697 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 696 698 echo $ac_n "(cached) $ac_c" 1>&6 … … 743 745 set dummy cl; ac_word=$2 744 746 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 745 echo "configure:74 6: checking for $ac_word" >&5747 echo "configure:748: checking for $ac_word" >&5 746 748 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 747 749 echo $ac_n "(cached) $ac_c" 1>&6 … … 775 777 776 778 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 777 echo "configure:7 78: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5779 echo "configure:780: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 778 780 779 781 ac_ext=c … … 786 788 cat > conftest.$ac_ext << EOF 787 789 788 #line 7 89"configure"790 #line 791 "configure" 789 791 #include "confdefs.h" 790 792 791 793 main(){return(0);} 792 794 EOF 793 if { (eval echo configure:79 4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then795 if { (eval echo configure:796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 794 796 ac_cv_prog_cc_works=yes 795 797 # If we can't run a trivial program, we are probably using a cross compiler. … … 817 819 fi 818 820 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 819 echo "configure:82 0: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5821 echo "configure:822: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 820 822 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 821 823 cross_compiling=$ac_cv_prog_cc_cross 822 824 823 825 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 824 echo "configure:82 5: checking whether we are using GNU C" >&5826 echo "configure:827: checking whether we are using GNU C" >&5 825 827 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 826 828 echo $ac_n "(cached) $ac_c" 1>&6 … … 831 833 #endif 832 834 EOF 833 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:83 4: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then835 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 834 836 ac_cv_prog_gcc=yes 835 837 else … … 850 852 CFLAGS= 851 853 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 852 echo "configure:85 3: checking whether ${CC-cc} accepts -g" >&5854 echo "configure:855: checking whether ${CC-cc} accepts -g" >&5 853 855 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 854 856 echo $ac_n "(cached) $ac_c" 1>&6 … … 882 884 883 885 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 884 echo "configure:88 5: checking how to run the C preprocessor" >&5886 echo "configure:887: checking how to run the C preprocessor" >&5 885 887 # On Suns, sometimes $CPP names a directory. 886 888 if test -n "$CPP" && test -d "$CPP"; then … … 897 899 # not just through cpp. 898 900 cat > conftest.$ac_ext <<EOF 899 #line 90 0"configure"901 #line 902 "configure" 900 902 #include "confdefs.h" 901 903 #include <assert.h> … … 903 905 EOF 904 906 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 905 { (eval echo configure:90 6: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }907 { (eval echo configure:908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 906 908 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 907 909 if test -z "$ac_err"; then … … 914 916 CPP="${CC-cc} -E -traditional-cpp" 915 917 cat > conftest.$ac_ext <<EOF 916 #line 91 7"configure"918 #line 919 "configure" 917 919 #include "confdefs.h" 918 920 #include <assert.h> … … 920 922 EOF 921 923 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 922 { (eval echo configure:92 3: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }924 { (eval echo configure:925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 923 925 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 924 926 if test -z "$ac_err"; then … … 931 933 CPP="${CC-cc} -nologo -E" 932 934 cat > conftest.$ac_ext <<EOF 933 #line 93 4"configure"935 #line 936 "configure" 934 936 #include "confdefs.h" 935 937 #include <assert.h> … … 937 939 EOF 938 940 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 939 { (eval echo configure:94 0: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }941 { (eval echo configure:942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 940 942 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 941 943 if test -z "$ac_err"; then … … 992 994 # ./install, which can be erroneously created by make from ./install.sh. 993 995 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 994 echo "configure:99 5: checking for a BSD compatible install" >&5996 echo "configure:997: checking for a BSD compatible install" >&5 995 997 if test -z "$INSTALL"; then 996 998 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then … … 1045 1047 1046 1048 echo $ac_n "checking for AIX""... $ac_c" 1>&6 1047 echo "configure:10 48: checking for AIX" >&51049 echo "configure:1050: checking for AIX" >&5 1048 1050 cat > conftest.$ac_ext <<EOF 1049 #line 105 0"configure"1051 #line 1052 "configure" 1050 1052 #include "confdefs.h" 1051 1053 #ifdef _AIX … … 1074 1076 set dummy $ac_prog; ac_word=$2 1075 1077 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1076 echo "configure:107 7: checking for $ac_word" >&51078 echo "configure:1079: checking for $ac_word" >&5 1077 1079 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then 1078 1080 echo $ac_n "(cached) $ac_c" 1>&6 … … 1103 1105 done 1104 1106 1107 for ac_prog in uudecode "uudeview -i" 1108 do 1109 # Extract the first word of "$ac_prog", so it can be a program name with args. 1110 set dummy $ac_prog; ac_word=$2 1111 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1112 echo "configure:1113: checking for $ac_word" >&5 1113 if eval "test \"`echo '$''{'ac_cv_prog_UUDECODE'+set}'`\" = set"; then 1114 echo $ac_n "(cached) $ac_c" 1>&6 1115 else 1116 if test -n "$UUDECODE"; then 1117 ac_cv_prog_UUDECODE="$UUDECODE" # Let the user override the test. 1118 else 1119 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1120 ac_dummy="$PATH" 1121 for ac_dir in $ac_dummy; do 1122 test -z "$ac_dir" && ac_dir=. 1123 if test -f $ac_dir/$ac_word; then 1124 ac_cv_prog_UUDECODE="$ac_prog" 1125 break 1126 fi 1127 done 1128 IFS="$ac_save_ifs" 1129 fi 1130 fi 1131 UUDECODE="$ac_cv_prog_UUDECODE" 1132 if test -n "$UUDECODE"; then 1133 echo "$ac_t""$UUDECODE" 1>&6 1134 else 1135 echo "$ac_t""no" 1>&6 1136 fi 1137 1138 test -n "$UUDECODE" && break 1139 done 1140 1105 1141 for ac_prog in gunzip 1106 1142 do … … 1108 1144 set dummy $ac_prog; ac_word=$2 1109 1145 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1110 echo "configure:11 11: checking for $ac_word" >&51146 echo "configure:1147: checking for $ac_word" >&5 1111 1147 if eval "test \"`echo '$''{'ac_cv_prog_GUNZIP'+set}'`\" = set"; then 1112 1148 echo $ac_n "(cached) $ac_c" 1>&6 … … 1144 1180 set dummy $ac_prog; ac_word=$2 1145 1181 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1146 echo "configure:11 47: checking for $ac_word" >&51182 echo "configure:1183: checking for $ac_word" >&5 1147 1183 if eval "test \"`echo '$''{'ac_cv_prog_MYGZIP'+set}'`\" = set"; then 1148 1184 echo $ac_n "(cached) $ac_c" 1>&6 … … 1177 1213 set dummy latex2html; ac_word=$2 1178 1214 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1179 echo "configure:1 180: checking for $ac_word" >&51215 echo "configure:1216: checking for $ac_word" >&5 1180 1216 if eval "test \"`echo '$''{'ac_cv_prog_LATEX2HTML'+set}'`\" = set"; then 1181 1217 echo $ac_n "(cached) $ac_c" 1>&6 … … 1204 1240 1205 1241 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1206 echo "configure:12 07: checking whether ln -s works" >&51242 echo "configure:1243: checking whether ln -s works" >&5 1207 1243 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1208 1244 echo $ac_n "(cached) $ac_c" 1>&6 … … 1256 1292 1257 1293 # construct name of installed Singular executable 1258 SINGULAR=${bindir}/Singular-${SINGULAR_MAJOR_VERSION}${VERSION_SEP}${SINGULAR_MINOR_VERSION}${VERSION_SEP}${SINGULAR_SUB_VERSION} 1294 SINGULAR=${bindir}/Singular-${SINGULAR_MAJOR_VERSION}${VERSION_SEP}${SINGULAR_MINOR_VERSION}${VERSION_SEP}${SINGULAR_SUB_VERSION}${EXEC_EXT} 1259 1295 export SINGULAR 1260 1296 … … 1267 1303 # check for AIX 1268 1304 echo $ac_n "checking whether _AIX is defined""... $ac_c" 1>&6 1269 echo "configure:1 270: checking whether _AIX is defined" >&51305 echo "configure:1306: checking whether _AIX is defined" >&5 1270 1306 if eval "test \"`echo '$''{'ac_cv_is_aix'+set}'`\" = set"; then 1271 1307 echo $ac_n "(cached) $ac_c" 1>&6 1272 1308 else 1273 1309 cat > conftest.$ac_ext <<EOF 1274 #line 1 275"configure"1310 #line 1311 "configure" 1275 1311 #include "confdefs.h" 1276 1312 #ifdef _AIX … … 1298 1334 1299 1335 echo $ac_n "checking for atof in -lm""... $ac_c" 1>&6 1300 echo "configure:13 01: checking for atof in -lm" >&51336 echo "configure:1337: checking for atof in -lm" >&5 1301 1337 ac_lib_var=`echo m'_'atof | sed 'y%./+-%__p_%'` 1302 1338 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1306 1342 LIBS="-lm $LIBS" 1307 1343 cat > conftest.$ac_ext <<EOF 1308 #line 13 09"configure"1344 #line 1345 "configure" 1309 1345 #include "confdefs.h" 1310 1346 /* Override any gcc2 internal prototype to avoid an error. */ … … 1317 1353 ; return 0; } 1318 1354 EOF 1319 if { (eval echo configure:13 20: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1355 if { (eval echo configure:1356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1320 1356 rm -rf conftest* 1321 1357 eval "ac_cv_lib_$ac_lib_var=yes" … … 1345 1381 1346 1382 echo $ac_n "checking for socket in -lbsd""... $ac_c" 1>&6 1347 echo "configure:13 48: checking for socket in -lbsd" >&51383 echo "configure:1384: checking for socket in -lbsd" >&5 1348 1384 ac_lib_var=`echo bsd'_'socket | sed 'y%./+-%__p_%'` 1349 1385 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1353 1389 LIBS="-lbsd $LIBS" 1354 1390 cat > conftest.$ac_ext <<EOF 1355 #line 13 56"configure"1391 #line 1392 "configure" 1356 1392 #include "confdefs.h" 1357 1393 /* Override any gcc2 internal prototype to avoid an error. */ … … 1364 1400 ; return 0; } 1365 1401 EOF 1366 if { (eval echo configure:1 367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1402 if { (eval echo configure:1403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1367 1403 rm -rf conftest* 1368 1404 eval "ac_cv_lib_$ac_lib_var=yes" … … 1392 1428 1393 1429 echo $ac_n "checking for listen in -lsocket""... $ac_c" 1>&6 1394 echo "configure:1 395: checking for listen in -lsocket" >&51430 echo "configure:1431: checking for listen in -lsocket" >&5 1395 1431 ac_lib_var=`echo socket'_'listen | sed 'y%./+-%__p_%'` 1396 1432 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1400 1436 LIBS="-lsocket $LIBS" 1401 1437 cat > conftest.$ac_ext <<EOF 1402 #line 14 03"configure"1438 #line 1439 "configure" 1403 1439 #include "confdefs.h" 1404 1440 /* Override any gcc2 internal prototype to avoid an error. */ … … 1411 1447 ; return 0; } 1412 1448 EOF 1413 if { (eval echo configure:14 14: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1449 if { (eval echo configure:1450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1414 1450 rm -rf conftest* 1415 1451 eval "ac_cv_lib_$ac_lib_var=yes" … … 1439 1475 1440 1476 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 1441 echo "configure:14 42: checking for gethostbyname in -lnsl" >&51477 echo "configure:1478: checking for gethostbyname in -lnsl" >&5 1442 1478 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 1443 1479 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1447 1483 LIBS="-lnsl $LIBS" 1448 1484 cat > conftest.$ac_ext <<EOF 1449 #line 14 50"configure"1485 #line 1486 "configure" 1450 1486 #include "confdefs.h" 1451 1487 /* Override any gcc2 internal prototype to avoid an error. */ … … 1458 1494 ; return 0; } 1459 1495 EOF 1460 if { (eval echo configure:14 61: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1496 if { (eval echo configure:1497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1461 1497 rm -rf conftest* 1462 1498 eval "ac_cv_lib_$ac_lib_var=yes" … … 1485 1521 fi 1486 1522 1487 echo $ac_n "checking for m pq_initin -lgmp""... $ac_c" 1>&61488 echo "configure:1 489: checking for mpq_initin -lgmp" >&51489 ac_lib_var=`echo gmp'_'m pq_init| sed 'y%./+-%__p_%'`1523 echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6 1524 echo "configure:1525: checking for main in -lgmp" >&5 1525 ac_lib_var=`echo gmp'_'main | sed 'y%./+-%__p_%'` 1490 1526 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1491 1527 echo $ac_n "(cached) $ac_c" 1>&6 … … 1494 1530 LIBS="-lgmp $LIBS" 1495 1531 cat > conftest.$ac_ext <<EOF 1496 #line 1 497"configure"1532 #line 1533 "configure" 1497 1533 #include "confdefs.h" 1498 /* Override any gcc2 internal prototype to avoid an error. */1499 /* We use char because int might match the return type of a gcc21500 builtin and then its argument prototype would still apply. */1501 char mpq_init();1502 1534 1503 1535 int main() { 1504 m pq_init()1536 main() 1505 1537 ; return 0; } 1506 1538 EOF 1507 if { (eval echo configure:15 08: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1539 if { (eval echo configure:1540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1508 1540 rm -rf conftest* 1509 1541 eval "ac_cv_lib_$ac_lib_var=yes" … … 1533 1565 1534 1566 echo $ac_n "checking for mpz_init in -lsmallgmp""... $ac_c" 1>&6 1535 echo "configure:15 36: checking for mpz_init in -lsmallgmp" >&51567 echo "configure:1568: checking for mpz_init in -lsmallgmp" >&5 1536 1568 ac_lib_var=`echo smallgmp'_'mpz_init | sed 'y%./+-%__p_%'` 1537 1569 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1541 1573 LIBS="-lsmallgmp $LIBS" 1542 1574 cat > conftest.$ac_ext <<EOF 1543 #line 15 44"configure"1575 #line 1576 "configure" 1544 1576 #include "confdefs.h" 1545 1577 /* Override any gcc2 internal prototype to avoid an error. */ … … 1552 1584 ; return 0; } 1553 1585 EOF 1554 if { (eval echo configure:15 55: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1586 if { (eval echo configure:1587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1555 1587 rm -rf conftest* 1556 1588 eval "ac_cv_lib_$ac_lib_var=yes" … … 1580 1612 1581 1613 echo $ac_n "checking for IMP_PutGmpInt in -lMP""... $ac_c" 1>&6 1582 echo "configure:1 583: checking for IMP_PutGmpInt in -lMP" >&51614 echo "configure:1615: checking for IMP_PutGmpInt in -lMP" >&5 1583 1615 ac_lib_var=`echo MP'_'IMP_PutGmpInt | sed 'y%./+-%__p_%'` 1584 1616 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1588 1620 LIBS="-lMP $LIBS" 1589 1621 cat > conftest.$ac_ext <<EOF 1590 #line 1 591"configure"1622 #line 1623 "configure" 1591 1623 #include "confdefs.h" 1592 1624 /* Override any gcc2 internal prototype to avoid an error. */ … … 1599 1631 ; return 0; } 1600 1632 EOF 1601 if { (eval echo configure:16 02: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1633 if { (eval echo configure:1634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1602 1634 rm -rf conftest* 1603 1635 eval "ac_cv_lib_$ac_lib_var=yes" … … 1627 1659 1628 1660 echo $ac_n "checking for MPT_GetTree in -lMPT""... $ac_c" 1>&6 1629 echo "configure:16 30: checking for MPT_GetTree in -lMPT" >&51661 echo "configure:1662: checking for MPT_GetTree in -lMPT" >&5 1630 1662 ac_lib_var=`echo MPT'_'MPT_GetTree | sed 'y%./+-%__p_%'` 1631 1663 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1635 1667 LIBS="-lMPT $LIBS" 1636 1668 cat > conftest.$ac_ext <<EOF 1637 #line 16 38"configure"1669 #line 1670 "configure" 1638 1670 #include "confdefs.h" 1639 1671 /* Override any gcc2 internal prototype to avoid an error. */ … … 1646 1678 ; return 0; } 1647 1679 EOF 1648 if { (eval echo configure:16 49: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1680 if { (eval echo configure:1681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1649 1681 rm -rf conftest* 1650 1682 eval "ac_cv_lib_$ac_lib_var=yes" … … 1674 1706 1675 1707 echo $ac_n "checking for atof in -lsingcf""... $ac_c" 1>&6 1676 echo "configure:1 677: checking for atof in -lsingcf" >&51708 echo "configure:1709: checking for atof in -lsingcf" >&5 1677 1709 ac_lib_var=`echo singcf'_'atof | sed 'y%./+-%__p_%'` 1678 1710 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1682 1714 LIBS="-lsingcf $LIBS" 1683 1715 cat > conftest.$ac_ext <<EOF 1684 #line 1 685"configure"1716 #line 1717 "configure" 1685 1717 #include "confdefs.h" 1686 1718 /* Override any gcc2 internal prototype to avoid an error. */ … … 1693 1725 ; return 0; } 1694 1726 EOF 1695 if { (eval echo configure:1 696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1727 if { (eval echo configure:1728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1696 1728 rm -rf conftest* 1697 1729 eval "ac_cv_lib_$ac_lib_var=yes" … … 1721 1753 1722 1754 echo $ac_n "checking for atof in -lsingfac""... $ac_c" 1>&6 1723 echo "configure:17 24: checking for atof in -lsingfac" >&51755 echo "configure:1756: checking for atof in -lsingfac" >&5 1724 1756 ac_lib_var=`echo singfac'_'atof | sed 'y%./+-%__p_%'` 1725 1757 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1729 1761 LIBS="-lsingfac $LIBS" 1730 1762 cat > conftest.$ac_ext <<EOF 1731 #line 17 32"configure"1763 #line 1764 "configure" 1732 1764 #include "confdefs.h" 1733 1765 /* Override any gcc2 internal prototype to avoid an error. */ … … 1740 1772 ; return 0; } 1741 1773 EOF 1742 if { (eval echo configure:17 43: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1774 if { (eval echo configure:1775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1743 1775 rm -rf conftest* 1744 1776 eval "ac_cv_lib_$ac_lib_var=yes" … … 1772 1804 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1773 1805 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1774 echo "configure:1 775: checking for $ac_hdr" >&51806 echo "configure:1807: checking for $ac_hdr" >&5 1775 1807 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1776 1808 echo $ac_n "(cached) $ac_c" 1>&6 1777 1809 else 1778 1810 cat > conftest.$ac_ext <<EOF 1779 #line 1 780"configure"1811 #line 1812 "configure" 1780 1812 #include "confdefs.h" 1781 1813 #include <$ac_hdr> 1782 1814 EOF 1783 1815 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1784 { (eval echo configure:1 785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1816 { (eval echo configure:1817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1785 1817 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1786 1818 if test -z "$ac_err"; then … … 1809 1841 1810 1842 1811 if test "$ac_cv_lib_gmp_m pq_init" = yes && \1843 if test "$ac_cv_lib_gmp_main" = yes && \ 1812 1844 test "$ac_cv_header_gmp_h" = yes; then 1813 1845 ac_gmp_ok=yes … … 1844 1876 fi 1845 1877 1846 # Check whether --with-perl5 or --without-perl5 was given.1847 if test "${with_perl5+set}" = set; then1848 withval="$with_perl5"1849 :1850 fi1851 1852 1878 # Check whether --enable-smallgmp or --disable-smallgmp was given. 1853 1879 if test "${enable_smallgmp+set}" = set; then … … 1954 1980 1955 1981 echo $ac_n "checking which tmp dir to use""... $ac_c" 1>&6 1956 echo "configure:19 57: checking which tmp dir to use" >&51982 echo "configure:1983: checking which tmp dir to use" >&5 1957 1983 if test "${with_tmpdir+set}" = set && test -d ${with_tmpdir}; then 1958 1984 if (echo "${with_tmpdir}" | egrep "\." >/dev/null 2>&1) … … 1968 1994 1969 1995 1970 # perl version 51971 if test "${with_perl5+set}" != set; then1972 echo $ac_n "checking for perl5""... $ac_c" 1>&61973 echo "configure:1974: checking for perl5" >&51974 if eval "test \"`echo '$''{'ac_cv_prog_perl5'+set}'`\" = set"; then1975 echo $ac_n "(cached) $ac_c" 1>&61976 else1977 if (perl5 -v >/dev/null 2>&1)1978 then1979 if (perl5 -v | egrep "version 5\.[0-9]" >/dev/null 2>&1 )1980 then1981 ac_cv_prog_perl5=perl51982 fi1983 elif (perl -v >/dev/null 2>&1)1984 then1985 if (perl -v | egrep "version 5\.[0-9]" >/dev/null 2>&1 )1986 then1987 ac_cv_prog_perl5=perl1988 fi1989 fi1990 1991 fi1992 1993 if test "${ac_cv_prog_perl5+set}" = set; then1994 echo "$ac_t""${ac_cv_prog_perl5}" 1>&61995 PERL5=${ac_cv_prog_perl5}1996 1997 else1998 { echo "configure: error: can not find perl version 5" 1>&2; exit 1; }1999 fi2000 elif test "${with_perl5}" = no; then2001 echo "configure: warning: building without perl5 -- make might fail" 1>&22002 else2003 unset PERL52004 unset ac_cv_prog_PERL52005 for ac_prog in ${with_perl5}2006 do2007 # Extract the first word of "$ac_prog", so it can be a program name with args.2008 set dummy $ac_prog; ac_word=$22009 echo $ac_n "checking for $ac_word""... $ac_c" 1>&62010 echo "configure:2011: checking for $ac_word" >&52011 if eval "test \"`echo '$''{'ac_cv_prog_PERL5'+set}'`\" = set"; then2012 echo $ac_n "(cached) $ac_c" 1>&62013 else2014 if test -n "$PERL5"; then2015 ac_cv_prog_PERL5="$PERL5" # Let the user override the test.2016 else2017 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"2018 ac_dummy="$PATH"2019 for ac_dir in $ac_dummy; do2020 test -z "$ac_dir" && ac_dir=.2021 if test -f $ac_dir/$ac_word; then2022 ac_cv_prog_PERL5="$ac_prog"2023 break2024 fi2025 done2026 IFS="$ac_save_ifs"2027 fi2028 fi2029 PERL5="$ac_cv_prog_PERL5"2030 if test -n "$PERL5"; then2031 echo "$ac_t""$PERL5" 1>&62032 else2033 echo "$ac_t""no" 1>&62034 fi2035 2036 test -n "$PERL5" && break2037 done2038 2039 if test "x${PERL5}" = x; then2040 echo "configure: warning: building without perl5 -- make might fail" 1>&22041 fi2042 fi2043 2044 2045 1996 2046 1997 echo $ac_n "checking whether to configure and build gmp lib""... $ac_c" 1>&6 2047 echo "configure: 2048: checking whether to configure and build gmp lib" >&51998 echo "configure:1999: checking whether to configure and build gmp lib" >&5 2048 1999 if test "$enable_gmp" != yes && test "$enable_gmp" != no; then 2049 2000 if test "$ac_gmp_ok" != yes && test -d gmp; then … … 2071 2022 2072 2023 echo $ac_n "checking whether to configure and build smallgmp lib""... $ac_c" 1>&6 2073 echo "configure:20 74: checking whether to configure and build smallgmp lib" >&52024 echo "configure:2025: checking whether to configure and build smallgmp lib" >&5 2074 2025 if test "$enable_smallgmp" != yes && test "$enable_smallgmp" != no; then 2075 2026 if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && \ … … 2110 2061 2111 2062 echo $ac_n "checking whether to configure and build MP lib""... $ac_c" 1>&6 2112 echo "configure:2 113: checking whether to configure and build MP lib" >&52063 echo "configure:2064: checking whether to configure and build MP lib" >&5 2113 2064 if test "$enable_MP" != yes && test "$enable_MP" != no; then 2114 2065 if test "$with_MP" != no && test "$ac_MP_ok" != yes && test -d MP && \ … … 2139 2090 2140 2091 echo $ac_n "checking whether to configure and build factory lib""... $ac_c" 1>&6 2141 echo "configure:2 142: checking whether to configure and build factory lib" >&52092 echo "configure:2093: checking whether to configure and build factory lib" >&5 2142 2093 if test "$enable_factory" != yes && test "$enable_factory" != no; then 2143 2094 if test "$with_factory" != no && test "$ac_factory_ok" != yes && \ … … 2164 2115 2165 2116 echo $ac_n "checking whether to configure and build libfac lib""... $ac_c" 1>&6 2166 echo "configure:21 67: checking whether to configure and build libfac lib" >&52117 echo "configure:2118: checking whether to configure and build libfac lib" >&5 2167 2118 if test "$enable_libfac" != yes && test "$enable_libfac" != no; then 2168 2119 if test "$with_libfac" != no && test "$ac_libfac_ok" != yes && \ … … 2194 2145 2195 2146 echo $ac_n "checking whether to configure and build sgroup lib""... $ac_c" 1>&6 2196 echo "configure:21 97: checking whether to configure and build sgroup lib" >&52147 echo "configure:2148: checking whether to configure and build sgroup lib" >&5 2197 2148 if test "$enable_sgroup" = yes; then 2198 2149 if test ! -d sgroup; then … … 2214 2165 2215 2166 echo $ac_n "checking whether to build mpr and use mtrack""... $ac_c" 1>&6 2216 echo "configure:2 217: checking whether to build mpr and use mtrack" >&52167 echo "configure:2168: checking whether to build mpr and use mtrack" >&5 2217 2168 if test -d mpr && test "$ac_cv_singuname" = ix86-Linux && test "$enable_mtrack" != no; then 2218 2169 echo "$ac_t""yes" 1>&6 … … 2229 2180 2230 2181 echo $ac_n "checking whether to configure and build Singular""... $ac_c" 1>&6 2231 echo "configure:2 232: checking whether to configure and build Singular" >&52182 echo "configure:2183: checking whether to configure and build Singular" >&5 2232 2183 if test "$enable_Singular" != yes && test "$enable_Singular" != no; then 2233 2184 if test "$with_Singular" != no && test -d Singular; then … … 2255 2206 2256 2207 echo $ac_n "checking whether to configure and build Texinfo""... $ac_c" 1>&6 2257 echo "configure:22 58: checking whether to configure and build Texinfo" >&52208 echo "configure:2209: checking whether to configure and build Texinfo" >&5 2258 2209 if test "$enable_Texinfo" != no && test -d Texinfo; then 2259 2210 echo "$ac_t""yes" 1>&6 … … 2277 2228 set dummy makeinfo; ac_word=$2 2278 2229 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2279 echo "configure:22 80: checking for $ac_word" >&52230 echo "configure:2231: checking for $ac_word" >&5 2280 2231 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then 2281 2232 echo $ac_n "(cached) $ac_c" 1>&6 … … 2307 2258 set dummy texi2dvi; ac_word=$2 2308 2259 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2309 echo "configure:2 310: checking for $ac_word" >&52260 echo "configure:2261: checking for $ac_word" >&5 2310 2261 if eval "test \"`echo '$''{'ac_cv_prog_TEXI2DVI'+set}'`\" = set"; then 2311 2262 echo $ac_n "(cached) $ac_c" 1>&6 … … 2337 2288 set dummy texindex; ac_word=$2 2338 2289 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2339 echo "configure:2 340: checking for $ac_word" >&52290 echo "configure:2291: checking for $ac_word" >&5 2340 2291 if eval "test \"`echo '$''{'ac_cv_prog_TEXINDEX'+set}'`\" = set"; then 2341 2292 echo $ac_n "(cached) $ac_c" 1>&6 … … 2368 2319 2369 2320 echo $ac_n "checking whether to configure and build Texi2html""... $ac_c" 1>&6 2370 echo "configure:23 71: checking whether to configure and build Texi2html" >&52321 echo "configure:2322: checking whether to configure and build Texi2html" >&5 2371 2322 if test "$enable_Texi2html" != no && test -d Texi2html; then 2372 2323 echo "$ac_t""yes" 1>&6 … … 2383 2334 set dummy texi2html; ac_word=$2 2384 2335 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2385 echo "configure:23 86: checking for $ac_word" >&52336 echo "configure:2337: checking for $ac_word" >&5 2386 2337 if eval "test \"`echo '$''{'ac_cv_prog_TEXI2HTML'+set}'`\" = set"; then 2387 2338 echo $ac_n "(cached) $ac_c" 1>&6 … … 2421 2372 2422 2373 echo $ac_n "checking whether to build doc""... $ac_c" 1>&6 2423 echo "configure:2 424: checking whether to build doc" >&52374 echo "configure:2375: checking whether to build doc" >&5 2424 2375 if test "$enable_doc" != no && test -d doc; then 2425 2376 echo "$ac_t""yes" 1>&6 … … 2435 2386 2436 2387 echo $ac_n "checking whether to build emacs""... $ac_c" 1>&6 2437 echo "configure:2 438: checking whether to build emacs" >&52388 echo "configure:2389: checking whether to build emacs" >&5 2438 2389 if test "$enable_doc" = yes && test "$enable_emacs" != no && test -d emacs; then 2439 2390 echo "$ac_t""yes" 1>&6 … … 2447 2398 2448 2399 echo $ac_n "checking which apint package to use""... $ac_c" 1>&6 2449 echo "configure:24 50: checking which apint package to use" >&52400 echo "configure:2401: checking which apint package to use" >&5 2450 2401 if test "$with_apint" = gmp; then 2451 2402 if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then … … 2471 2422 2472 2423 echo $ac_n "checking whether to use with MP""... $ac_c" 1>&6 2473 echo "configure:24 74: checking whether to use with MP" >&52424 echo "configure:2425: checking whether to use with MP" >&5 2474 2425 if test "$with_MP" = yes; then 2475 2426 if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then … … 2490 2441 2491 2442 echo $ac_n "checking whether to use with factory""... $ac_c" 1>&6 2492 echo "configure:24 93: checking whether to use with factory" >&52443 echo "configure:2444: checking whether to use with factory" >&5 2493 2444 if test "$with_factory" = yes; then 2494 2445 if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then … … 2509 2460 2510 2461 echo $ac_n "checking whether to use with libfac""... $ac_c" 1>&6 2511 echo "configure:2 512: checking whether to use with libfac" >&52462 echo "configure:2463: checking whether to use with libfac" >&5 2512 2463 if test "$with_libfac" = yes; then 2513 2464 if test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then … … 2529 2480 2530 2481 echo $ac_n "checking whether to use with mtrack""... $ac_c" 1>&6 2531 echo "configure:2 532: checking whether to use with mtrack" >&52482 echo "configure:2483: checking whether to use with mtrack" >&5 2532 2483 if test "$with_mtrack" != no && test "$with_mtrack" != yes; then 2533 2484 if test "$enable_mtrack" = yes; then … … 2549 2500 2550 2501 echo $ac_n "checking whether to use with Singular""... $ac_c" 1>&6 2551 echo "configure:25 52: checking whether to use with Singular" >&52502 echo "configure:2503: checking whether to use with Singular" >&5 2552 2503 if test "$with_Singular" != no && test "$with_Singular" != yes; then 2553 2504 if test "$enable_Singular" = yes; then … … 2609 2560 2610 2561 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 2611 echo "configure:2 612: checking whether ${MAKE-make} sets \${MAKE}" >&52562 echo "configure:2563: checking whether ${MAKE-make} sets \${MAKE}" >&5 2612 2563 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 2613 2564 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then … … 2797 2748 s%@INSTALL_DATA@%$INSTALL_DATA%g 2798 2749 s%@PERL@%$PERL%g 2750 s%@UUDECODE@%$UUDECODE%g 2799 2751 s%@GUNZIP@%$GUNZIP%g 2800 2752 s%@MYGZIP@%$MYGZIP%g … … 2803 2755 s%@SINGULAR@%$SINGULAR%g 2804 2756 s%@TMP_DIR@%$TMP_DIR%g 2805 s%@PERL5@%$PERL5%g2806 2757 s%@TEXI2DVI@%$TEXI2DVI%g 2807 2758 s%@MAKEINFO@%$MAKEINFO%g -
configure.in
reec9b2 ra70441f 43 43 SINGUNAME=$ac_cv_singuname 44 44 AC_SUBST(SINGUNAME) 45 fi 46 47 if test "$ac_cv_singuname" = ix86-Win; then 48 EXEC_EXT=".exe" 45 49 fi 46 50 … … 82 86 83 87 AC_CHECK_PROGS(PERL, perl5 perl) 88 AC_CHECK_PROGS(UUDECODE, uudecode "uudeview -i") 84 89 AC_CHECK_PROGS(GUNZIP, gunzip, ${pwd}/warn_not_found.sh gunzip) 85 90 # don't use GZIP this breaks configure … … 122 127 123 128 # construct name of installed Singular executable 124 SINGULAR=${bindir}/Singular-${SINGULAR_MAJOR_VERSION}${VERSION_SEP}${SINGULAR_MINOR_VERSION}${VERSION_SEP}${SINGULAR_SUB_VERSION} 129 SINGULAR=${bindir}/Singular-${SINGULAR_MAJOR_VERSION}${VERSION_SEP}${SINGULAR_MINOR_VERSION}${VERSION_SEP}${SINGULAR_SUB_VERSION}${EXEC_EXT} 125 130 export SINGULAR 126 131 AC_SUBST(SINGULAR) … … 156 161 AC_CHECK_LIB(socket, listen) 157 162 AC_CHECK_LIB(nsl, gethostbyname) 158 AC_CHECK_LIB(gmp, m pq_init)163 AC_CHECK_LIB(gmp, main) 159 164 AC_CHECK_LIB(smallgmp, mpz_init) 160 165 AC_CHECK_LIB(MP, IMP_PutGmpInt) … … 165 170 AC_CHECK_HEADERS(gmp.h smallgmp.h MP.h MPT.h factory.h factor.h) 166 171 167 if test "$ac_cv_lib_gmp_m pq_init" = yes && \172 if test "$ac_cv_lib_gmp_main" = yes && \ 168 173 test "$ac_cv_header_gmp_h" = yes; then 169 174 ac_gmp_ok=yes … … 199 204 AC_ARG_WITH(tmpdir, \ 200 205 [ --with-tmpdir=DIR use DIR as temporary directory]) 201 AC_ARG_WITH(202 perl5,203 [ --with-perl5=[PERL5,no] uses PERL5 as perl5 program, default is perl5])204 206 AC_ARG_ENABLE(smallgmp, \ 205 207 [ --enable-PACKAGE configure and/or build PACKAGE … … 265 267 266 268 dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll 267 dnl Check for perl 5268 dnl269 # perl version 5270 if test "${with_perl5+set}" != set; then271 AC_MSG_CHECKING(for perl5)272 changequote(<<,>>)dnl273 AC_CACHE_VAL(ac_cv_prog_perl5,274 if (perl5 -v >/dev/null 2>&1)275 then276 if (perl5 -v | egrep "version 5\.[0-9]" >/dev/null 2>&1 )277 then278 ac_cv_prog_perl5=perl5279 fi280 elif (perl -v >/dev/null 2>&1)281 then282 if (perl -v | egrep "version 5\.[0-9]" >/dev/null 2>&1 )283 then284 ac_cv_prog_perl5=perl285 fi286 fi287 )288 changequote([,])dnl289 if test "${ac_cv_prog_perl5+set}" = set; then290 AC_MSG_RESULT(${ac_cv_prog_perl5})291 PERL5=${ac_cv_prog_perl5}292 AC_SUBST(PERL5)293 else294 AC_MSG_ERROR(can not find perl version 5)295 fi296 elif test "${with_perl5}" = no; then297 AC_MSG_WARN(building without perl5 -- make might fail)298 else299 unset PERL5300 unset ac_cv_prog_PERL5301 AC_CHECK_PROGS(PERL5, ${with_perl5})302 if test "x${PERL5}" = x; then303 AC_MSG_WARN(building without perl5 -- make might fail)304 fi305 fi306 307 308 dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll309 269 dnl Check whether or not to configure and build various packages 310 270 dnl -
doc/Makefile.in
reec9b2 ra70441f 2 2 ### 3 3 ### Makefile for Singular documentation 4 ### $Id: Makefile.in,v 1.6 2 2000-03-13 15:51:27obachman Exp $4 ### $Id: Makefile.in,v 1.63 2000-04-27 10:07:18 obachman Exp $ 5 5 ##################################################################### 6 6 SHELL=/bin/sh … … 36 36 MKINSTALLDIRS = ../mkinstalldirs 37 37 GZIP = @GZIP@ 38 39 PERL5 = @PERL5@ 38 UUDECODE = @UUDECODE@ 39 40 PERL = @PERL@ 40 41 TEX = tex 41 MAKEINFO = @MAKEINFO@ 42 MAKEINFO = @MAKEINFO@ --force 42 43 TEXI2DVI = @TEXI2DVI@ 43 44 TEXINDEX = @TEXINDEX@ … … 54 55 EX_SUBDIR = ./examples 55 56 CHKSUM_DB = ${DOC_SUBDIR}/chksum 56 DOC2TEX = ${PERL 5} ./doc2tex.pl -docdir ${DOC_SUBDIR} \57 DOC2TEX = ${PERL} ./doc2tex.pl -docdir ${DOC_SUBDIR} \ 57 58 -Singular ${SINGULAR} -verbose ${VERBOSE} -make ${MAKE} \ 58 59 -exdir ${EX_SUBDIR} 59 PL2DOC = ${PERL 5} ./pl2doc.pl -db ${CHKSUM_DB}60 PL2DOC = ${PERL} ./pl2doc.pl -db ${CHKSUM_DB} 60 61 61 62 # t2h stuff … … 173 174 # index file for help 174 175 singular.idx: singular.hlp ${HTML_SUBDIR}/${HTML_MANUAL_PREFIX}_cp.idx doc2idx.pl 175 ${PERL 5} doc2idx.pl singular.hlp ${HTML_SUBDIR}/${HTML_MANUAL_PREFIX}_cp.idx ${CHKSUM_DB} > singular.idx176 ${PERL} doc2idx.pl singular.hlp ${HTML_SUBDIR}/${HTML_MANUAL_PREFIX}_cp.idx ${CHKSUM_DB} > singular.idx 176 177 177 178 ########################################################### … … 195 196 196 197 %.${SINGUNAME}.html : %.texi 197 ${PERL 5} ${TEXI2HTML} $(UNAME_OPT) -init_file t2h_standalone.init -verbose -split none -o $@ $<198 ${PERL} ${TEXI2HTML} $(UNAME_OPT) -init_file t2h_standalone.init -verbose -split none -o $@ $< 198 199 199 200 %.html : %.texi 200 ${PERL 5} ${TEXI2HTML} -init_file t2h_standalone.init -verbose -split none -o $@ $<201 ${PERL} ${TEXI2HTML} -init_file t2h_standalone.init -verbose -split none -o $@ $< 201 202 202 203 % : %.txt … … 228 229 html: ${TMP_DIR} ${HTML_SUBDIR}/${HTML_MANUAL_TOP} ${IMAGES_HTML} $(STANDALONE_TEXI_FILES) 229 230 ${HTML_SUBDIR}/${HTML_MANUAL_TOP}: ${TEXI2HTML_INIT} ${TEXI2HTML} singular.tex 230 ${PERL 5} ${TEXI2HTML} ${TEXI2HTML_OPTS} -prefix ${HTML_MANUAL_PREFIX} \231 ${PERL} ${TEXI2HTML} ${TEXI2HTML_OPTS} -prefix ${HTML_MANUAL_PREFIX} \ 231 232 -top_file ${HTML_MANUAL_TOP} singular.tex 232 233 … … 234 235 html_tutor: ${TMP_DIR} ${HTML_SUBDIR}/${HTML_TUTOR_TOP} ${IMAGES_HTML} 235 236 ${HTML_SUBDIR}/${HTML_TUTOR_TOP}: ${TEXI2HTML_INIT} ${TEXI2HTML} tutor.tex 236 ${PERL 5} ${TEXI2HTML} ${TEXI2HTML_OPTS} -prefix ${HTML_TUTOR_PREFIX} \237 ${PERL} ${TEXI2HTML} ${TEXI2HTML_OPTS} -prefix ${HTML_TUTOR_PREFIX} \ 237 238 -top_file ${HTML_TUTOR_TOP} tutor.tex 238 239 … … 244 245 # pattern rules for images - but not everybody has gnu-uudecode 245 246 images/%.gif : images/%.gif.uu 246 cd images; uudecode../$< ;cd ..247 cd images; ${UUDECODE} ../$< ;cd .. 247 248 248 249 images/%.jpg : images/%.jpg.uu 249 cd images; uudecode../$< ;cd ..250 cd images; ${UUDECODE} ../$< ;cd .. 250 251 251 252 images/%.xbm : images/%.xbm.uu 252 cd images; uudecode../$< ;cd ..253 cd images; ${UUDECODE} ../$< ;cd .. 253 254 254 255 ${IMAGES_HTML} : ${IMAGES_SRC} -
doc/NEWS.texi
reec9b2 ra70441f 1 1 @comment -*-texinfo-*- 2 @comment $Id: NEWS.texi,v 1.1 1 2000-03-03 15:45:12 SingularExp $2 @comment $Id: NEWS.texi,v 1.12 2000-04-27 10:07:19 obachman Exp $ 3 3 @comment this file contains the News about Singular versions 4 4 @comment Unix … … 188 188 @heading TBC 189 189 190 @itemize 190 @itemize @bullet 191 191 @item 192 192 @code{libreadline} for other architectures than ix86-libc5, -
doc/doc2idx.pl
reec9b2 ra70441f 1 1 #!/usr/local/bin/perl 2 # $Id: doc2idx.pl,v 1. 1 1999-07-22 13:54:21obachman Exp $2 # $Id: doc2idx.pl,v 1.2 2000-04-27 10:07:19 obachman Exp $ 3 3 ################################################################### 4 4 # Computer Algebra System SINGULAR … … 32 32 open (URL, "<$ARGV[1]") || die "Can't open $ARGV[1]: $!\n"; 33 33 $db_file = $ARGV[2]; 34 $db_file = $1 if ($db_file =~ /(.*)\..*$/); 35 dbmopen (%CHK, $db_file, 0666) || 36 die "Error: can't open chksum data base $db_file"; 34 unless ($return = do $db_file) 35 { 36 die "couldn't parse $db_file: $@" if $@; 37 die "couldn't do $db_file: $!" unless defined $return; 38 die "couldn't run $db_file" unless $return; 39 } 37 40 38 41 # fill hashes … … 75 78 for $entry (sort keys %$index) 76 79 { 77 print "$entry\t$index->{$entry}->{Node}\t$index->{$entry}->{Url}\t$CH K{$entry}\n";80 print "$entry\t$index->{$entry}->{Node}\t$index->{$entry}->{Url}\t$CHECKSUMS{$entry}\n"; 78 81 } 79 82 80 close(%CHK);81 83 -
doc/doc2tex.pl
reec9b2 ra70441f 1 1 #!/usr/local/bin/perl 2 # $Id: doc2tex.pl,v 1.2 4 2000-03-09 16:37:23 hannesExp $2 # $Id: doc2tex.pl,v 1.25 2000-04-27 10:07:20 obachman Exp $ 3 3 ################################################################### 4 4 # Computer Algebra System SINGULAR … … 7 7 # 8 8 #### 9 # @c example [error] [no_comp] 9 # @c example [error] [no_comp] [unix_only] 10 10 # -> the text till the next @c example is feed into Singular, 11 11 # the text is then substituted by … … 22 22 # unless 'error' is specified 23 23 # if no_comp is given, then computation is not run 24 # if unix_only is given, then computation is only run 25 # under unix 24 26 # 25 27 # … … 50 52 # 51 53 ################################################################### 54 55 use Config; 56 $Win32 = 1 if ($Config{osname} =~ /win/i); 52 57 53 58 # … … 66 71 $make = 0; 67 72 $make_opts = " --no-print-directory"; 73 68 74 69 75 # … … 217 223 218 224 ###################################################################### 219 # @c example [error] [no_comp] 225 # @c example [error] [no_comp] [unix_only] 220 226 # -> the text till the next @c example is fed into Singular, 221 227 # the text is then substituted by … … 232 238 # unless 'error' is specified 233 239 # If [no_comp] is given, actual computation is not run 240 # if [unix_only] is given, then computation is only run 241 # under unix 242 234 243 sub HandleExample 235 244 { 236 my($inc_file, $ex_file, $lline, $thisexample, $error_ok, $cache, $no_comp); 245 my($inc_file, $ex_file, $lline, $thisexample, $error_ok, $cache, $no_comp, 246 $unix_only); 237 247 238 248 $lline = $line; … … 262 272 $error_ok = 1 if /error/; 263 273 $no_comp = 1 if /no_comp/; 264 265 # print content in example file till next @c example 274 $unix_only = 1 if /unix_only/ && $Win32; 275 276 # print content in example file till next @c example 277 print TEX "// only supported on Unix platforms\n" 278 if $unix_only; 279 266 280 while (<DOC>) 267 281 { … … 269 283 last if (/^\@c\s*example\s*$/); 270 284 # s/^\s*//; # remove preceeding white spaces 271 if ($no_ex || $no_comp )285 if ($no_ex || $no_comp || $unix_only) 272 286 { 273 287 &protect_texi; … … 289 303 290 304 # done, if no examples 291 return if ($no_ex || $no_comp );305 return if ($no_ex || $no_comp || $unix_only); 292 306 293 307 # check whether it can be reused … … 321 335 print EX "$thisexample"; 322 336 close(EX); 337 338 unless ($Singular_OK) 339 { 340 if (system("echo '\$' | $Singular $Singular_opts > $res_file")) 341 { 342 $Singular .= '.exe' if ($Win32 && $Singular !~ /\.exe$/); 343 Error("CanŽt run '$Singular $Singular_opts': $@") 344 if (system("echo '\$' | $Singular $Singular_opts > $res_file")); 345 } 346 $Singular_OK = 1 347 } 323 348 324 349 &System("echo '\$' | $Singular $Singular_opts $ex_file > $res_file"); … … 492 517 $proc = $1 if (/^:(.*?) /); 493 518 $n_fun = 1 if ($no_fun || /no_fun/); 494 $n_ex = 1 if ($no_ex || /no_ex/ );519 $n_ex = 1 if ($no_ex || /no_ex/ || (/unix_only/ && $Win32)); 495 520 $section = $1 if /(\w*)section/; 496 521 -
doc/pl2doc.pl
reec9b2 ra70441f 1 1 #!/usr/local/bin/perl 2 # $Id: pl2doc.pl,v 1.1 4 1999-12-13 16:28:34obachman Exp $2 # $Id: pl2doc.pl,v 1.15 2000-04-27 10:07:23 obachman Exp $ 3 3 ################################################################### 4 4 # Computer Algebra System SINGULAR … … 68 68 unless ($no_fun) 69 69 { 70 if ($db_file) 71 { 72 $db_file = $1 if ($db_file =~ /(.*)\..*$/); 73 dbmopen(%CHECKSUMS, $db_file, oct(755)) || 74 die "Error: can't open chksum data base $db_file"; 75 } 70 if ($db_file && -e $db_file && ! -z $db_file) 71 { 72 my $return; 73 unless ($return = do $db_file) 74 { 75 die "couldn't parse $db_file: $@" if $@; 76 die "couldn't do $db_file: $!" unless defined $return; 77 die "couldn't run $db_file" unless $return; 78 } 79 } 80 76 81 # print help and example of each function 77 82 for ($i = 0; $i <= $#procs; $i++) … … 86 91 print LDOC "\@subsubsection " . $procs[$i] . "\n"; 87 92 print LDOC "\@cindex ". $procs[$i] . "\n"; 88 $CHECKSUMS{$procs[$i]} = $chksum{$procs[$i]} if ($db_file); 93 if ($db_file && 94 (!defined($CHECKSUMS{$procs[$i]}) || 95 $CHECKSUMS{$procs[$i]} != $chksum{$procs[$i]})) 96 { 97 $CHECKSUMS{$procs[$i]} = $chksum{$procs[$i]}; 98 $CHECKSUMS_CHANGED = 1; 99 } 89 100 print LDOC "\@c ---content $procs[$i]---\n"; 90 101 print LDOC "Procedure from library \@code{$lib.lib} (\@pxref{${lib}_lib}).\n\n"; … … 115 126 print LDOC "\@c ---end content $procs[$i]---\n"; 116 127 } 117 dbmclose(%CHECKSUMS); 128 # save checksums 129 if ($CHECKSUMS_CHANGED) 130 { 131 open(CD, ">$db_file") || die "Can't open '$db_file' for writing: $!"; 132 print CD "%CHECKSUMS = (\n"; 133 for $key (keys %CHECKSUMS) 134 { 135 print CD "q{$key}, $CHECKSUMS{$key},\n"; 136 } 137 print CD ");\n"; 138 close(CD); 139 } 118 140 } 119 141 -
doc/uname.texi.in
reec9b2 ra70441f 2 2 3 3 @set _UNAME @SINGUNAME@ 4 4 @set @SINGUNAME@ -
emacs/Makefile.in
reec9b2 ra70441f 12 12 emacsdir = ${install_prefix}/emacs 13 13 14 PERL 5 = @PERL5@14 PERL = @PERL@ 15 15 INSTALL = ../install-sh -c 16 16 INSTALL_DATA = ${INSTALL} -m 644 … … 22 22 23 23 cmd-cmpl.el: ${SINGULAR} cmpl.pl 24 ${PERL 5} cmpl.pl -Singular ${SINGULAR} -cmpl cmd > cmd-cmpl.el24 ${PERL} cmpl.pl -Singular ${SINGULAR} -cmpl cmd > cmd-cmpl.el 25 25 26 26 hlp-cmpl.el: ${SINGULAR_HLP} cmpl.pl 27 ${PERL 5} cmpl.pl -hlp ${SINGULAR_HLP} -cmpl hlp > hlp-cmpl.el27 ${PERL} cmpl.pl -hlp ${SINGULAR_HLP} -cmpl hlp > hlp-cmpl.el 28 28 29 29 ex-cmpl.el: cmpl.pl ${examplesdir} 30 ${PERL 5} cmpl.pl -cmpl ex -ex_dir ${examplesdir} > ex-cmpl.el30 ${PERL} cmpl.pl -cmpl ex -ex_dir ${examplesdir} > ex-cmpl.el 31 31 32 32 # this is weird, if I work directly with _one_ pipe, … … 34 34 lib-cmpl.el: ${prefix}/Singular/Makefile cmpl.pl 35 35 ${MAKE} --no-print-directory -s -f ${prefix}/Singular/Makefile echoLIBS > lib-temp 36 cat lib-temp | ${PERL 5} cmpl.pl -cmpl lib > lib-cmpl.el36 cat lib-temp | ${PERL} cmpl.pl -cmpl lib > lib-cmpl.el 37 37 rm lib-temp 38 38 -
emacs/singular.el
reec9b2 ra70441f 1 1 ;;; singular.el --- Emacs support for Computer Algebra System Singular 2 2 3 ;; $Id: singular.el,v 1.5 4 1999-12-06 19:00:27 wichmann Exp $3 ;; $Id: singular.el,v 1.55 2000-04-27 10:07:27 obachman Exp $ 4 4 5 5 ;;; Commentary: … … 3801 3801 "History list of Singular switches.") 3802 3802 3803 (defvar singular-switches-magic '("-t" "--exec" "if (system(\"version\") > 1304){system(\"--emacs\", 1);};") 3803 ; (defvar singular-switches-magic '("-t" "--exec" "if (system(\"version\") > 1304){system(\"--emacs\", 1);};") 3804 (defvar singular-switches-magic '("-t" "--emacs") 3804 3805 "Additional magic switches for Singular process. 3805 3806 List of switch-strings which are automagically added when new Singular -
factory/configure
reec9b2 ra70441f 3 3 # From configure.in Id: configure.in 4 4 # Guess values for system-dependent variables and create Makefiles. 5 # Generated automatically using autoconf version 2.1 25 # Generated automatically using autoconf version 2.13 6 6 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 7 7 # … … 77 77 subdirs= 78 78 MFLAGS= MAKEFLAGS= 79 SHELL=${CONFIG_SHELL-/bin/sh} 79 80 # Maximum number of lines to put in a shell here document. 80 81 ac_max_here_lines=12 … … 360 361 361 362 -version | --version | --versio | --versi | --vers) 362 echo "configure generated by autoconf version 2.1 2"363 echo "configure generated by autoconf version 2.13" 363 364 exit 0 ;; 364 365 … … 530 531 ac_cpp='$CPP $CPPFLAGS' 531 532 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 532 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'533 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 533 534 cross_compiling=$ac_cv_prog_cc_cross 534 535 536 ac_exeext= 537 ac_objext=o 535 538 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 536 539 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. … … 703 706 set dummy gcc; ac_word=$2 704 707 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 705 echo "configure:70 6: checking for $ac_word" >&5708 echo "configure:709: checking for $ac_word" >&5 706 709 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 707 710 echo $ac_n "(cached) $ac_c" 1>&6 … … 710 713 ac_cv_prog_CC="$CC" # Let the user override the test. 711 714 else 712 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 713 for ac_dir in $PATH; do 715 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 716 ac_dummy="$PATH" 717 for ac_dir in $ac_dummy; do 714 718 test -z "$ac_dir" && ac_dir=. 715 719 if test -f $ac_dir/$ac_word; then … … 732 736 set dummy cc; ac_word=$2 733 737 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 734 echo "configure:73 5: checking for $ac_word" >&5738 echo "configure:739: checking for $ac_word" >&5 735 739 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 736 740 echo $ac_n "(cached) $ac_c" 1>&6 … … 739 743 ac_cv_prog_CC="$CC" # Let the user override the test. 740 744 else 741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=" ${IFS}:"745 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 742 746 ac_prog_rejected=no 743 for ac_dir in $PATH; do 747 ac_dummy="$PATH" 748 for ac_dir in $ac_dummy; do 744 749 test -z "$ac_dir" && ac_dir=. 745 750 if test -f $ac_dir/$ac_word; then … … 776 781 fi 777 782 783 if test -z "$CC"; then 784 case "`uname -s`" in 785 *win32* | *WIN32*) 786 # Extract the first word of "cl", so it can be a program name with args. 787 set dummy cl; ac_word=$2 788 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 789 echo "configure:790: checking for $ac_word" >&5 790 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 791 echo $ac_n "(cached) $ac_c" 1>&6 792 else 793 if test -n "$CC"; then 794 ac_cv_prog_CC="$CC" # Let the user override the test. 795 else 796 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 797 ac_dummy="$PATH" 798 for ac_dir in $ac_dummy; do 799 test -z "$ac_dir" && ac_dir=. 800 if test -f $ac_dir/$ac_word; then 801 ac_cv_prog_CC="cl" 802 break 803 fi 804 done 805 IFS="$ac_save_ifs" 806 fi 807 fi 808 CC="$ac_cv_prog_CC" 809 if test -n "$CC"; then 810 echo "$ac_t""$CC" 1>&6 811 else 812 echo "$ac_t""no" 1>&6 813 fi 814 ;; 815 esac 816 fi 778 817 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 779 818 fi 780 819 781 820 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 782 echo "configure: 783: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5821 echo "configure:822: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 783 822 784 823 ac_ext=c … … 786 825 ac_cpp='$CPP $CPPFLAGS' 787 826 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 788 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'827 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 789 828 cross_compiling=$ac_cv_prog_cc_cross 790 829 791 cat > conftest.$ac_ext <<EOF 792 #line 793 "configure" 830 cat > conftest.$ac_ext << EOF 831 832 #line 833 "configure" 793 833 #include "confdefs.h" 834 794 835 main(){return(0);} 795 836 EOF 796 if { (eval echo configure: 797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then837 if { (eval echo configure:838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 797 838 ac_cv_prog_cc_works=yes 798 839 # If we can't run a trivial program, we are probably using a cross compiler. … … 808 849 fi 809 850 rm -fr conftest* 851 ac_ext=c 852 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 853 ac_cpp='$CPP $CPPFLAGS' 854 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 855 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 856 cross_compiling=$ac_cv_prog_cc_cross 810 857 811 858 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 … … 814 861 fi 815 862 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 816 echo "configure:8 17: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5863 echo "configure:864: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 817 864 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 818 865 cross_compiling=$ac_cv_prog_cc_cross 819 866 820 867 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 821 echo "configure:8 22: checking whether we are using GNU C" >&5868 echo "configure:869: checking whether we are using GNU C" >&5 822 869 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 823 870 echo $ac_n "(cached) $ac_c" 1>&6 … … 828 875 #endif 829 876 EOF 830 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8 31: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then877 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 831 878 ac_cv_prog_gcc=yes 832 879 else … … 839 886 if test $ac_cv_prog_gcc = yes; then 840 887 GCC=yes 841 ac_test_CFLAGS="${CFLAGS+set}" 842 ac_save_CFLAGS="$CFLAGS" 843 CFLAGS= 844 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 845 echo "configure:846: checking whether ${CC-cc} accepts -g" >&5 888 else 889 GCC= 890 fi 891 892 ac_test_CFLAGS="${CFLAGS+set}" 893 ac_save_CFLAGS="$CFLAGS" 894 CFLAGS= 895 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 896 echo "configure:897: checking whether ${CC-cc} accepts -g" >&5 846 897 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 847 898 echo $ac_n "(cached) $ac_c" 1>&6 … … 858 909 859 910 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 860 if test "$ac_test_CFLAGS" = set; then 861 CFLAGS="$ac_save_CFLAGS" 862 elif test $ac_cv_prog_cc_g = yes; then 911 if test "$ac_test_CFLAGS" = set; then 912 CFLAGS="$ac_save_CFLAGS" 913 elif test $ac_cv_prog_cc_g = yes; then 914 if test "$GCC" = yes; then 863 915 CFLAGS="-g -O2" 864 916 else 917 CFLAGS="-g" 918 fi 919 else 920 if test "$GCC" = yes; then 865 921 CFLAGS="-O2" 922 else 923 CFLAGS= 866 924 fi 867 else868 GCC=869 test "${CFLAGS+set}" = set || CFLAGS="-g"870 925 fi 871 926 872 927 test "${CXXFLAGS+set}" = set || cxxflags_expl_set=no 873 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ 928 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 874 929 do 875 930 # Extract the first word of "$ac_prog", so it can be a program name with args. 876 931 set dummy $ac_prog; ac_word=$2 877 932 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 878 echo "configure: 879: checking for $ac_word" >&5933 echo "configure:934: checking for $ac_word" >&5 879 934 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then 880 935 echo $ac_n "(cached) $ac_c" 1>&6 … … 883 938 ac_cv_prog_CXX="$CXX" # Let the user override the test. 884 939 else 885 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 886 for ac_dir in $PATH; do 940 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 941 ac_dummy="$PATH" 942 for ac_dir in $ac_dummy; do 887 943 test -z "$ac_dir" && ac_dir=. 888 944 if test -f $ac_dir/$ac_word; then … … 907 963 908 964 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 909 echo "configure:9 10: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5965 echo "configure:966: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 910 966 911 967 ac_ext=C … … 913 969 ac_cpp='$CXXCPP $CPPFLAGS' 914 970 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 915 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'971 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 916 972 cross_compiling=$ac_cv_prog_cxx_cross 917 973 918 cat > conftest.$ac_ext <<EOF 919 #line 920 "configure" 974 cat > conftest.$ac_ext << EOF 975 976 #line 977 "configure" 920 977 #include "confdefs.h" 921 main(){return(0);} 922 EOF 923 if { (eval echo configure:924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 978 979 int main(){return(0);} 980 EOF 981 if { (eval echo configure:982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 924 982 ac_cv_prog_cxx_works=yes 925 983 # If we can't run a trivial program, we are probably using a cross compiler. … … 939 997 ac_cpp='$CPP $CPPFLAGS' 940 998 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 941 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'999 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 942 1000 cross_compiling=$ac_cv_prog_cc_cross 943 1001 … … 947 1005 fi 948 1006 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 949 echo "configure: 950: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&51007 echo "configure:1008: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 950 1008 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 951 1009 cross_compiling=$ac_cv_prog_cxx_cross 952 1010 953 1011 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 954 echo "configure: 955: checking whether we are using GNU C++" >&51012 echo "configure:1013: checking whether we are using GNU C++" >&5 955 1013 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then 956 1014 echo $ac_n "(cached) $ac_c" 1>&6 … … 961 1019 #endif 962 1020 EOF 963 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure: 964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then1021 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 964 1022 ac_cv_prog_gxx=yes 965 1023 else … … 972 1030 if test $ac_cv_prog_gxx = yes; then 973 1031 GXX=yes 974 ac_test_CXXFLAGS="${CXXFLAGS+set}" 975 ac_save_CXXFLAGS="$CXXFLAGS" 976 CXXFLAGS= 977 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 978 echo "configure:979: checking whether ${CXX-g++} accepts -g" >&5 1032 else 1033 GXX= 1034 fi 1035 1036 ac_test_CXXFLAGS="${CXXFLAGS+set}" 1037 ac_save_CXXFLAGS="$CXXFLAGS" 1038 CXXFLAGS= 1039 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 1040 echo "configure:1041: checking whether ${CXX-g++} accepts -g" >&5 979 1041 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then 980 1042 echo $ac_n "(cached) $ac_c" 1>&6 … … 991 1053 992 1054 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 993 if test "$ac_test_CXXFLAGS" = set; then 994 CXXFLAGS="$ac_save_CXXFLAGS" 995 elif test $ac_cv_prog_cxx_g = yes; then 1055 if test "$ac_test_CXXFLAGS" = set; then 1056 CXXFLAGS="$ac_save_CXXFLAGS" 1057 elif test $ac_cv_prog_cxx_g = yes; then 1058 if test "$GXX" = yes; then 996 1059 CXXFLAGS="-g -O2" 997 1060 else 1061 CXXFLAGS="-g" 1062 fi 1063 else 1064 if test "$GXX" = yes; then 998 1065 CXXFLAGS="-O2" 1066 else 1067 CXXFLAGS= 999 1068 fi 1000 else1001 GXX=1002 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"1003 1069 fi 1004 1070 … … 1020 1086 # 1021 1087 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1022 echo "configure:10 23: checking how to run the C preprocessor" >&51088 echo "configure:1089: checking how to run the C preprocessor" >&5 1023 1089 # On Suns, sometimes $CPP names a directory. 1024 1090 if test -n "$CPP" && test -d "$CPP"; then … … 1035 1101 # not just through cpp. 1036 1102 cat > conftest.$ac_ext <<EOF 1037 #line 1 038"configure"1103 #line 1104 "configure" 1038 1104 #include "confdefs.h" 1039 1105 #include <assert.h> … … 1041 1107 EOF 1042 1108 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1043 { (eval echo configure:1 044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1044 ac_err=`grep -v '^ *+' conftest.out `1109 { (eval echo configure:1110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1110 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1045 1111 if test -z "$ac_err"; then 1046 1112 : … … 1052 1118 CPP="${CC-cc} -E -traditional-cpp" 1053 1119 cat > conftest.$ac_ext <<EOF 1054 #line 1 055"configure"1120 #line 1121 "configure" 1055 1121 #include "confdefs.h" 1056 1122 #include <assert.h> … … 1058 1124 EOF 1059 1125 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1060 { (eval echo configure:1061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1061 ac_err=`grep -v '^ *+' conftest.out` 1126 { (eval echo configure:1127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1127 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1128 if test -z "$ac_err"; then 1129 : 1130 else 1131 echo "$ac_err" >&5 1132 echo "configure: failed program was:" >&5 1133 cat conftest.$ac_ext >&5 1134 rm -rf conftest* 1135 CPP="${CC-cc} -nologo -E" 1136 cat > conftest.$ac_ext <<EOF 1137 #line 1138 "configure" 1138 #include "confdefs.h" 1139 #include <assert.h> 1140 Syntax Error 1141 EOF 1142 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1143 { (eval echo configure:1144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1144 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1062 1145 if test -z "$ac_err"; then 1063 1146 : … … 1072 1155 fi 1073 1156 rm -f conftest* 1157 fi 1158 rm -f conftest* 1074 1159 ac_cv_prog_CPP="$CPP" 1075 1160 fi … … 1081 1166 1082 1167 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 1083 echo "configure:1 084: checking how to run the C++ preprocessor" >&51168 echo "configure:1169: checking how to run the C++ preprocessor" >&5 1084 1169 if test -z "$CXXCPP"; then 1085 1170 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then … … 1090 1175 ac_cpp='$CXXCPP $CPPFLAGS' 1091 1176 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1092 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'1177 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1093 1178 cross_compiling=$ac_cv_prog_cxx_cross 1094 1179 CXXCPP="${CXX-g++} -E" 1095 1180 cat > conftest.$ac_ext <<EOF 1096 #line 1 097"configure"1181 #line 1182 "configure" 1097 1182 #include "confdefs.h" 1098 1183 #include <stdlib.h> 1099 1184 EOF 1100 1185 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1101 { (eval echo configure:11 02: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1102 ac_err=`grep -v '^ *+' conftest.out `1186 { (eval echo configure:1187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1187 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1103 1188 if test -z "$ac_err"; then 1104 1189 : … … 1116 1201 ac_cpp='$CPP $CPPFLAGS' 1117 1202 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1118 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'1203 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1119 1204 cross_compiling=$ac_cv_prog_cc_cross 1120 1205 fi … … 1124 1209 1125 1210 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1126 echo "configure:1 127: checking whether ln -s works" >&51211 echo "configure:1212: checking whether ln -s works" >&5 1127 1212 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1128 1213 echo $ac_n "(cached) $ac_c" 1>&6 … … 1151 1236 # IRIX /sbin/install 1152 1237 # AIX /bin/install 1238 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1153 1239 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 1154 1240 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1155 1241 # ./install, which can be erroneously created by make from ./install.sh. 1156 1242 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 1157 echo "configure:1 158: checking for a BSD compatible install" >&51243 echo "configure:1244: checking for a BSD compatible install" >&5 1158 1244 if test -z "$INSTALL"; then 1159 1245 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 1160 1246 echo $ac_n "(cached) $ac_c" 1>&6 1161 1247 else 1162 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=" ${IFS}:"1248 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 1163 1249 for ac_dir in $PATH; do 1164 1250 # Account for people who put trailing slashes in PATH elements. … … 1167 1253 *) 1168 1254 # OSF1 and SCO ODT 3.0 have their own names for install. 1169 for ac_prog in ginstall installbsd scoinst install; do 1255 # Don't use installbsd from OSF since it installs stuff as root 1256 # by default. 1257 for ac_prog in ginstall scoinst install; do 1170 1258 if test -f $ac_dir/$ac_prog; then 1171 1259 if test $ac_prog = install && 1172 1260 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 1173 1261 # AIX install. It has an incompatible calling convention. 1174 # OSF/1 installbsd also uses dspmsg, but is usable.1175 1262 : 1176 1263 else … … 1202 1289 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1203 1290 1291 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 1292 1204 1293 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1205 1294 … … 1207 1296 set dummy ranlib; ac_word=$2 1208 1297 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1209 echo "configure:12 10: checking for $ac_word" >&51298 echo "configure:1299: checking for $ac_word" >&5 1210 1299 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1211 1300 echo $ac_n "(cached) $ac_c" 1>&6 … … 1214 1303 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1215 1304 else 1216 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1217 for ac_dir in $PATH; do 1305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1306 ac_dummy="$PATH" 1307 for ac_dir in $ac_dummy; do 1218 1308 test -z "$ac_dir" && ac_dir=. 1219 1309 if test -f $ac_dir/$ac_word; then … … 1234 1324 1235 1325 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 1236 echo "configure:1 237: checking whether ${MAKE-make} sets \${MAKE}" >&51326 echo "configure:1327: checking whether ${MAKE-make} sets \${MAKE}" >&5 1237 1327 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 1238 1328 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then … … 1263 1353 set dummy ar; ac_word=$2 1264 1354 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1265 echo "configure:1 266: checking for $ac_word" >&51355 echo "configure:1356: checking for $ac_word" >&5 1266 1356 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then 1267 1357 echo $ac_n "(cached) $ac_c" 1>&6 … … 1270 1360 ac_cv_prog_AR="$AR" # Let the user override the test. 1271 1361 else 1272 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1273 for ac_dir in $PATH; do 1362 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1363 ac_dummy="$PATH" 1364 for ac_dir in $ac_dummy; do 1274 1365 test -z "$ac_dir" && ac_dir=. 1275 1366 if test -f $ac_dir/$ac_word; then … … 1292 1383 set dummy m4; ac_word=$2 1293 1384 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1294 echo "configure:1 295: checking for $ac_word" >&51385 echo "configure:1386: checking for $ac_word" >&5 1295 1386 if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then 1296 1387 echo $ac_n "(cached) $ac_c" 1>&6 … … 1299 1390 ac_cv_prog_M4="$M4" # Let the user override the test. 1300 1391 else 1301 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1302 for ac_dir in $PATH; do 1392 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1393 ac_dummy="$PATH" 1394 for ac_dir in $ac_dummy; do 1303 1395 test -z "$ac_dir" && ac_dir=. 1304 1396 if test -f $ac_dir/$ac_word; then