comparison host/libcdl/configure @ 136:a9ac27ec7abc ecos-sw-2000-11-17

Merge from eCos master repository on 2000-11-17-18:24:25-GMT
author jlarmour
date Fri, 17 Nov 2000 23:16:43 +0000
parents 6ed91473a1cd
children 25e238959bae
comparison
equal deleted inserted replaced
135:3bc2abeae9ff 136:a9ac27ec7abc
32 --disable-tracing disable tracing" 32 --disable-tracing disable tracing"
33 ac_help="$ac_help 33 ac_help="$ac_help
34 --disable-fntracing disable function entry/exit tracing" 34 --disable-fntracing disable function entry/exit tracing"
35 ac_help="$ac_help 35 ac_help="$ac_help
36 --with-tcl-version=<vsn> version of Tcl to be used" 36 --with-tcl-version=<vsn> version of Tcl to be used"
37 ac_help="$ac_help
38 --with-tcl-header=<path> location of Tcl header"
39 ac_help="$ac_help
40 --with-tcl-lib=<path> location of Tcl libraries"
37 ac_help="$ac_help 41 ac_help="$ac_help
38 --with-tcl=<path> location of Tcl header and libraries" 42 --with-tcl=<path> location of Tcl header and libraries"
39 ac_help="$ac_help 43 ac_help="$ac_help
40 --with-infra=dir location of the infrastructure build tree" 44 --with-infra=dir location of the infrastructure build tree"
41 45
585 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 589 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
586 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 590 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
587 fi 591 fi
588 592
589 echo $ac_n "checking host system type""... $ac_c" 1>&6 593 echo $ac_n "checking host system type""... $ac_c" 1>&6
590 echo "configure:591: checking host system type" >&5 594 echo "configure:595: checking host system type" >&5
591 595
592 host_alias=$host 596 host_alias=$host
593 case "$host_alias" in 597 case "$host_alias" in
594 NONE) 598 NONE)
595 case $nonopt in 599 case $nonopt in
618 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 622 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
619 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 623 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
620 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 624 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
621 # ./install, which can be erroneously created by make from ./install.sh. 625 # ./install, which can be erroneously created by make from ./install.sh.
622 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 626 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
623 echo "configure:624: checking for a BSD compatible install" >&5 627 echo "configure:628: checking for a BSD compatible install" >&5
624 if test -z "$INSTALL"; then 628 if test -z "$INSTALL"; then
625 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 629 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
626 echo $ac_n "(cached) $ac_c" 1>&6 630 echo $ac_n "(cached) $ac_c" 1>&6
627 else 631 else
628 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 632 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
671 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 675 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
672 676
673 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 677 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
674 678
675 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 679 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
676 echo "configure:677: checking whether build environment is sane" >&5 680 echo "configure:681: checking whether build environment is sane" >&5
677 # Just in case 681 # Just in case
678 sleep 1 682 sleep 1
679 echo timestamp > conftestfile 683 echo timestamp > conftestfile
680 # Do `set' in a subshell so we don't clobber the current shell's 684 # Do `set' in a subshell so we don't clobber the current shell's
681 # arguments. Must try -L first in case configure is actually a 685 # arguments. Must try -L first in case configure is actually a
728 732
729 # sed with no file args requires a program. 733 # sed with no file args requires a program.
730 test "$program_transform_name" = "" && program_transform_name="s,x,x," 734 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
731 735
732 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 736 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
733 echo "configure:734: checking whether ${MAKE-make} sets \${MAKE}" >&5 737 echo "configure:738: checking whether ${MAKE-make} sets \${MAKE}" >&5
734 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 738 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
735 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 739 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
736 echo $ac_n "(cached) $ac_c" 1>&6 740 echo $ac_n "(cached) $ac_c" 1>&6
737 else 741 else
738 cat > conftestmake <<\EOF 742 cat > conftestmake <<\EOF
774 778
775 779
776 780
777 missing_dir=`cd $ac_aux_dir && pwd` 781 missing_dir=`cd $ac_aux_dir && pwd`
778 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 782 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
779 echo "configure:780: checking for working aclocal" >&5 783 echo "configure:784: checking for working aclocal" >&5
780 # Run test in a subshell; some versions of sh will print an error if 784 # Run test in a subshell; some versions of sh will print an error if
781 # an executable is not found, even if stderr is redirected. 785 # an executable is not found, even if stderr is redirected.
782 # Redirect stdin to placate older versions of autoconf. Sigh. 786 # Redirect stdin to placate older versions of autoconf. Sigh.
783 if (aclocal --version) < /dev/null > /dev/null 2>&1; then 787 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
784 ACLOCAL=aclocal 788 ACLOCAL=aclocal
787 ACLOCAL="$missing_dir/missing aclocal" 791 ACLOCAL="$missing_dir/missing aclocal"
788 echo "$ac_t""missing" 1>&6 792 echo "$ac_t""missing" 1>&6
789 fi 793 fi
790 794
791 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 795 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
792 echo "configure:793: checking for working autoconf" >&5 796 echo "configure:797: checking for working autoconf" >&5
793 # Run test in a subshell; some versions of sh will print an error if 797 # Run test in a subshell; some versions of sh will print an error if
794 # an executable is not found, even if stderr is redirected. 798 # an executable is not found, even if stderr is redirected.
795 # Redirect stdin to placate older versions of autoconf. Sigh. 799 # Redirect stdin to placate older versions of autoconf. Sigh.
796 if (autoconf --version) < /dev/null > /dev/null 2>&1; then 800 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
797 AUTOCONF=autoconf 801 AUTOCONF=autoconf
800 AUTOCONF="$missing_dir/missing autoconf" 804 AUTOCONF="$missing_dir/missing autoconf"
801 echo "$ac_t""missing" 1>&6 805 echo "$ac_t""missing" 1>&6
802 fi 806 fi
803 807
804 echo $ac_n "checking for working automake""... $ac_c" 1>&6 808 echo $ac_n "checking for working automake""... $ac_c" 1>&6
805 echo "configure:806: checking for working automake" >&5 809 echo "configure:810: checking for working automake" >&5
806 # Run test in a subshell; some versions of sh will print an error if 810 # Run test in a subshell; some versions of sh will print an error if
807 # an executable is not found, even if stderr is redirected. 811 # an executable is not found, even if stderr is redirected.
808 # Redirect stdin to placate older versions of autoconf. Sigh. 812 # Redirect stdin to placate older versions of autoconf. Sigh.
809 if (automake --version) < /dev/null > /dev/null 2>&1; then 813 if (automake --version) < /dev/null > /dev/null 2>&1; then
810 AUTOMAKE=automake 814 AUTOMAKE=automake
813 AUTOMAKE="$missing_dir/missing automake" 817 AUTOMAKE="$missing_dir/missing automake"
814 echo "$ac_t""missing" 1>&6 818 echo "$ac_t""missing" 1>&6
815 fi 819 fi
816 820
817 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 821 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
818 echo "configure:819: checking for working autoheader" >&5 822 echo "configure:823: checking for working autoheader" >&5
819 # Run test in a subshell; some versions of sh will print an error if 823 # Run test in a subshell; some versions of sh will print an error if
820 # an executable is not found, even if stderr is redirected. 824 # an executable is not found, even if stderr is redirected.
821 # Redirect stdin to placate older versions of autoconf. Sigh. 825 # Redirect stdin to placate older versions of autoconf. Sigh.
822 if (autoheader --version) < /dev/null > /dev/null 2>&1; then 826 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
823 AUTOHEADER=autoheader 827 AUTOHEADER=autoheader
826 AUTOHEADER="$missing_dir/missing autoheader" 830 AUTOHEADER="$missing_dir/missing autoheader"
827 echo "$ac_t""missing" 1>&6 831 echo "$ac_t""missing" 1>&6
828 fi 832 fi
829 833
830 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 834 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
831 echo "configure:832: checking for working makeinfo" >&5 835 echo "configure:836: checking for working makeinfo" >&5
832 # Run test in a subshell; some versions of sh will print an error if 836 # Run test in a subshell; some versions of sh will print an error if
833 # an executable is not found, even if stderr is redirected. 837 # an executable is not found, even if stderr is redirected.
834 # Redirect stdin to placate older versions of autoconf. Sigh. 838 # Redirect stdin to placate older versions of autoconf. Sigh.
835 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then 839 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
836 MAKEINFO=makeinfo 840 MAKEINFO=makeinfo
848 #define CYGNUM_LIBCDL_VERSION "$VERSION" 852 #define CYGNUM_LIBCDL_VERSION "$VERSION"
849 EOF 853 EOF
850 854
851 855
852 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 856 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
853 echo "configure:854: checking whether to enable maintainer-specific portions of Makefiles" >&5 857 echo "configure:858: checking whether to enable maintainer-specific portions of Makefiles" >&5
854 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 858 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
855 if test "${enable_maintainer_mode+set}" = set; then 859 if test "${enable_maintainer_mode+set}" = set; then
856 enableval="$enable_maintainer_mode" 860 enableval="$enable_maintainer_mode"
857 USE_MAINTAINER_MODE=$enableval 861 USE_MAINTAINER_MODE=$enableval
858 else 862 else
872 MAINT=$MAINTAINER_MODE_TRUE 876 MAINT=$MAINTAINER_MODE_TRUE
873 877
874 878
875 879
876 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 880 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
877 echo "configure:878: checking whether ${MAKE-make} sets \${MAKE}" >&5 881 echo "configure:882: checking whether ${MAKE-make} sets \${MAKE}" >&5
878 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 882 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
879 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 883 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
880 echo $ac_n "(cached) $ac_c" 1>&6 884 echo $ac_n "(cached) $ac_c" 1>&6
881 else 885 else
882 cat > conftestmake <<\EOF 886 cat > conftestmake <<\EOF
901 fi 905 fi
902 906
903 # Extract the first word of "gcc", so it can be a program name with args. 907 # Extract the first word of "gcc", so it can be a program name with args.
904 set dummy gcc; ac_word=$2 908 set dummy gcc; ac_word=$2
905 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 909 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
906 echo "configure:907: checking for $ac_word" >&5 910 echo "configure:911: checking for $ac_word" >&5
907 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 911 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
908 echo $ac_n "(cached) $ac_c" 1>&6 912 echo $ac_n "(cached) $ac_c" 1>&6
909 else 913 else
910 if test -n "$CC"; then 914 if test -n "$CC"; then
911 ac_cv_prog_CC="$CC" # Let the user override the test. 915 ac_cv_prog_CC="$CC" # Let the user override the test.
931 935
932 if test -z "$CC"; then 936 if test -z "$CC"; then
933 # Extract the first word of "cc", so it can be a program name with args. 937 # Extract the first word of "cc", so it can be a program name with args.
934 set dummy cc; ac_word=$2 938 set dummy cc; ac_word=$2
935 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 939 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
936 echo "configure:937: checking for $ac_word" >&5 940 echo "configure:941: checking for $ac_word" >&5
937 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 941 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
938 echo $ac_n "(cached) $ac_c" 1>&6 942 echo $ac_n "(cached) $ac_c" 1>&6
939 else 943 else
940 if test -n "$CC"; then 944 if test -n "$CC"; then
941 ac_cv_prog_CC="$CC" # Let the user override the test. 945 ac_cv_prog_CC="$CC" # Let the user override the test.
982 case "`uname -s`" in 986 case "`uname -s`" in
983 *win32* | *WIN32*) 987 *win32* | *WIN32*)
984 # Extract the first word of "cl", so it can be a program name with args. 988 # Extract the first word of "cl", so it can be a program name with args.
985 set dummy cl; ac_word=$2 989 set dummy cl; ac_word=$2
986 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 990 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
987 echo "configure:988: checking for $ac_word" >&5 991 echo "configure:992: checking for $ac_word" >&5
988 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 992 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
989 echo $ac_n "(cached) $ac_c" 1>&6 993 echo $ac_n "(cached) $ac_c" 1>&6
990 else 994 else
991 if test -n "$CC"; then 995 if test -n "$CC"; then
992 ac_cv_prog_CC="$CC" # Let the user override the test. 996 ac_cv_prog_CC="$CC" # Let the user override the test.
1014 fi 1018 fi
1015 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1019 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1016 fi 1020 fi
1017 1021
1018 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1022 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1019 echo "configure:1020: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1023 echo "configure:1024: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1020 1024
1021 ac_ext=c 1025 ac_ext=c
1022 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1026 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1023 ac_cpp='$CPP $CPPFLAGS' 1027 ac_cpp='$CPP $CPPFLAGS'
1024 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1028 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1025 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1029 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1026 cross_compiling=$ac_cv_prog_cc_cross 1030 cross_compiling=$ac_cv_prog_cc_cross
1027 1031
1028 cat > conftest.$ac_ext << EOF 1032 cat > conftest.$ac_ext << EOF
1029 1033
1030 #line 1031 "configure" 1034 #line 1035 "configure"
1031 #include "confdefs.h" 1035 #include "confdefs.h"
1032 1036
1033 main(){return(0);} 1037 main(){return(0);}
1034 EOF 1038 EOF
1035 if { (eval echo configure:1036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1039 if { (eval echo configure:1040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1036 ac_cv_prog_cc_works=yes 1040 ac_cv_prog_cc_works=yes
1037 # If we can't run a trivial program, we are probably using a cross compiler. 1041 # If we can't run a trivial program, we are probably using a cross compiler.
1038 if (./conftest; exit) 2>/dev/null; then 1042 if (./conftest; exit) 2>/dev/null; then
1039 ac_cv_prog_cc_cross=no 1043 ac_cv_prog_cc_cross=no
1040 else 1044 else
1056 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1060 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1057 if test $ac_cv_prog_cc_works = no; then 1061 if test $ac_cv_prog_cc_works = no; then
1058 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1062 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1059 fi 1063 fi
1060 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1064 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1061 echo "configure:1062: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1065 echo "configure:1066: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1062 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1066 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1063 cross_compiling=$ac_cv_prog_cc_cross 1067 cross_compiling=$ac_cv_prog_cc_cross
1064 1068
1065 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1069 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1066 echo "configure:1067: checking whether we are using GNU C" >&5 1070 echo "configure:1071: checking whether we are using GNU C" >&5
1067 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 1071 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1068 echo $ac_n "(cached) $ac_c" 1>&6 1072 echo $ac_n "(cached) $ac_c" 1>&6
1069 else 1073 else
1070 cat > conftest.c <<EOF 1074 cat > conftest.c <<EOF
1071 #ifdef __GNUC__ 1075 #ifdef __GNUC__
1072 yes; 1076 yes;
1073 #endif 1077 #endif
1074 EOF 1078 EOF
1075 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1079 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1076 ac_cv_prog_gcc=yes 1080 ac_cv_prog_gcc=yes
1077 else 1081 else
1078 ac_cv_prog_gcc=no 1082 ac_cv_prog_gcc=no
1079 fi 1083 fi
1080 fi 1084 fi
1089 1093
1090 ac_test_CFLAGS="${CFLAGS+set}" 1094 ac_test_CFLAGS="${CFLAGS+set}"
1091 ac_save_CFLAGS="$CFLAGS" 1095 ac_save_CFLAGS="$CFLAGS"
1092 CFLAGS= 1096 CFLAGS=
1093 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1097 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1094 echo "configure:1095: checking whether ${CC-cc} accepts -g" >&5 1098 echo "configure:1099: checking whether ${CC-cc} accepts -g" >&5
1095 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1099 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1096 echo $ac_n "(cached) $ac_c" 1>&6 1100 echo $ac_n "(cached) $ac_c" 1>&6
1097 else 1101 else
1098 echo 'void f(){}' > conftest.c 1102 echo 'void f(){}' > conftest.c
1099 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1103 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1125 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 1129 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1126 do 1130 do
1127 # Extract the first word of "$ac_prog", so it can be a program name with args. 1131 # Extract the first word of "$ac_prog", so it can be a program name with args.
1128 set dummy $ac_prog; ac_word=$2 1132 set dummy $ac_prog; ac_word=$2
1129 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1133 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1130 echo "configure:1131: checking for $ac_word" >&5 1134 echo "configure:1135: checking for $ac_word" >&5
1131 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then 1135 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1132 echo $ac_n "(cached) $ac_c" 1>&6 1136 echo $ac_n "(cached) $ac_c" 1>&6
1133 else 1137 else
1134 if test -n "$CXX"; then 1138 if test -n "$CXX"; then
1135 ac_cv_prog_CXX="$CXX" # Let the user override the test. 1139 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1157 done 1161 done
1158 test -n "$CXX" || CXX="gcc" 1162 test -n "$CXX" || CXX="gcc"
1159 1163
1160 1164
1161 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1165 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1162 echo "configure:1163: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 1166 echo "configure:1167: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1163 1167
1164 ac_ext=C 1168 ac_ext=C
1165 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1169 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1166 ac_cpp='$CXXCPP $CPPFLAGS' 1170 ac_cpp='$CXXCPP $CPPFLAGS'
1167 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1171 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1168 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1172 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1169 cross_compiling=$ac_cv_prog_cxx_cross 1173 cross_compiling=$ac_cv_prog_cxx_cross
1170 1174
1171 cat > conftest.$ac_ext << EOF 1175 cat > conftest.$ac_ext << EOF
1172 1176
1173 #line 1174 "configure" 1177 #line 1178 "configure"
1174 #include "confdefs.h" 1178 #include "confdefs.h"
1175 1179
1176 int main(){return(0);} 1180 int main(){return(0);}
1177 EOF 1181 EOF
1178 if { (eval echo configure:1179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1182 if { (eval echo configure:1183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1179 ac_cv_prog_cxx_works=yes 1183 ac_cv_prog_cxx_works=yes
1180 # If we can't run a trivial program, we are probably using a cross compiler. 1184 # If we can't run a trivial program, we are probably using a cross compiler.
1181 if (./conftest; exit) 2>/dev/null; then 1185 if (./conftest; exit) 2>/dev/null; then
1182 ac_cv_prog_cxx_cross=no 1186 ac_cv_prog_cxx_cross=no
1183 else 1187 else
1199 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 1203 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1200 if test $ac_cv_prog_cxx_works = no; then 1204 if test $ac_cv_prog_cxx_works = no; then
1201 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } 1205 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1202 fi 1206 fi
1203 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1207 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1204 echo "configure:1205: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 1208 echo "configure:1209: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1205 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 1209 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1206 cross_compiling=$ac_cv_prog_cxx_cross 1210 cross_compiling=$ac_cv_prog_cxx_cross
1207 1211
1208 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 1212 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1209 echo "configure:1210: checking whether we are using GNU C++" >&5 1213 echo "configure:1214: checking whether we are using GNU C++" >&5
1210 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then 1214 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1211 echo $ac_n "(cached) $ac_c" 1>&6 1215 echo $ac_n "(cached) $ac_c" 1>&6
1212 else 1216 else
1213 cat > conftest.C <<EOF 1217 cat > conftest.C <<EOF
1214 #ifdef __GNUC__ 1218 #ifdef __GNUC__
1215 yes; 1219 yes;
1216 #endif 1220 #endif
1217 EOF 1221 EOF
1218 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1222 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1219 ac_cv_prog_gxx=yes 1223 ac_cv_prog_gxx=yes
1220 else 1224 else
1221 ac_cv_prog_gxx=no 1225 ac_cv_prog_gxx=no
1222 fi 1226 fi
1223 fi 1227 fi
1232 1236
1233 ac_test_CXXFLAGS="${CXXFLAGS+set}" 1237 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1234 ac_save_CXXFLAGS="$CXXFLAGS" 1238 ac_save_CXXFLAGS="$CXXFLAGS"
1235 CXXFLAGS= 1239 CXXFLAGS=
1236 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 1240 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1237 echo "configure:1238: checking whether ${CXX-g++} accepts -g" >&5 1241 echo "configure:1242: checking whether ${CXX-g++} accepts -g" >&5
1238 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then 1242 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1239 echo $ac_n "(cached) $ac_c" 1>&6 1243 echo $ac_n "(cached) $ac_c" 1>&6
1240 else 1244 else
1241 echo 'void f(){}' > conftest.cc 1245 echo 'void f(){}' > conftest.cc
1242 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then 1246 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1266 fi 1270 fi
1267 1271
1268 # Extract the first word of "ranlib", so it can be a program name with args. 1272 # Extract the first word of "ranlib", so it can be a program name with args.
1269 set dummy ranlib; ac_word=$2 1273 set dummy ranlib; ac_word=$2
1270 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1274 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1271 echo "configure:1272: checking for $ac_word" >&5 1275 echo "configure:1276: checking for $ac_word" >&5
1272 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1276 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1273 echo $ac_n "(cached) $ac_c" 1>&6 1277 echo $ac_n "(cached) $ac_c" 1>&6
1274 else 1278 else
1275 if test -n "$RANLIB"; then 1279 if test -n "$RANLIB"; then
1276 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1280 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1294 else 1298 else
1295 echo "$ac_t""no" 1>&6 1299 echo "$ac_t""no" 1>&6
1296 fi 1300 fi
1297 1301
1298 echo $ac_n "checking for object suffix""... $ac_c" 1>&6 1302 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1299 echo "configure:1300: checking for object suffix" >&5 1303 echo "configure:1304: checking for object suffix" >&5
1300 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then 1304 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1301 echo $ac_n "(cached) $ac_c" 1>&6 1305 echo $ac_n "(cached) $ac_c" 1>&6
1302 else 1306 else
1303 rm -f conftest* 1307 rm -f conftest*
1304 echo 'int i = 1;' > conftest.$ac_ext 1308 echo 'int i = 1;' > conftest.$ac_ext
1305 if { (eval echo configure:1306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1309 if { (eval echo configure:1310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1306 for ac_file in conftest.*; do 1310 for ac_file in conftest.*; do
1307 case $ac_file in 1311 case $ac_file in
1308 *.c) ;; 1312 *.c) ;;
1309 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; 1313 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1310 esac 1314 esac
1318 echo "$ac_t""$ac_cv_objext" 1>&6 1322 echo "$ac_t""$ac_cv_objext" 1>&6
1319 OBJEXT=$ac_cv_objext 1323 OBJEXT=$ac_cv_objext
1320 ac_objext=$ac_cv_objext 1324 ac_objext=$ac_cv_objext
1321 1325
1322 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 1326 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1323 echo "configure:1324: checking for Cygwin environment" >&5 1327 echo "configure:1328: checking for Cygwin environment" >&5
1324 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then 1328 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1325 echo $ac_n "(cached) $ac_c" 1>&6 1329 echo $ac_n "(cached) $ac_c" 1>&6
1326 else 1330 else
1327 cat > conftest.$ac_ext <<EOF 1331 cat > conftest.$ac_ext <<EOF
1328 #line 1329 "configure" 1332 #line 1333 "configure"
1329 #include "confdefs.h" 1333 #include "confdefs.h"
1330 1334
1331 int main() { 1335 int main() {
1332 1336
1333 #ifndef __CYGWIN__ 1337 #ifndef __CYGWIN__
1334 #define __CYGWIN__ __CYGWIN32__ 1338 #define __CYGWIN__ __CYGWIN32__
1335 #endif 1339 #endif
1336 return __CYGWIN__; 1340 return __CYGWIN__;
1337 ; return 0; } 1341 ; return 0; }
1338 EOF 1342 EOF
1339 if { (eval echo configure:1340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1343 if { (eval echo configure:1344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1340 rm -rf conftest* 1344 rm -rf conftest*
1341 ac_cv_cygwin=yes 1345 ac_cv_cygwin=yes
1342 else 1346 else
1343 echo "configure: failed program was:" >&5 1347 echo "configure: failed program was:" >&5
1344 cat conftest.$ac_ext >&5 1348 cat conftest.$ac_ext >&5
1351 1355
1352 echo "$ac_t""$ac_cv_cygwin" 1>&6 1356 echo "$ac_t""$ac_cv_cygwin" 1>&6
1353 CYGWIN= 1357 CYGWIN=
1354 test "$ac_cv_cygwin" = yes && CYGWIN=yes 1358 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1355 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 1359 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1356 echo "configure:1357: checking for mingw32 environment" >&5 1360 echo "configure:1361: checking for mingw32 environment" >&5
1357 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then 1361 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1358 echo $ac_n "(cached) $ac_c" 1>&6 1362 echo $ac_n "(cached) $ac_c" 1>&6
1359 else 1363 else
1360 cat > conftest.$ac_ext <<EOF 1364 cat > conftest.$ac_ext <<EOF
1361 #line 1362 "configure" 1365 #line 1366 "configure"
1362 #include "confdefs.h" 1366 #include "confdefs.h"
1363 1367
1364 int main() { 1368 int main() {
1365 return __MINGW32__; 1369 return __MINGW32__;
1366 ; return 0; } 1370 ; return 0; }
1367 EOF 1371 EOF
1368 if { (eval echo configure:1369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1372 if { (eval echo configure:1373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1369 rm -rf conftest* 1373 rm -rf conftest*
1370 ac_cv_mingw32=yes 1374 ac_cv_mingw32=yes
1371 else 1375 else
1372 echo "configure: failed program was:" >&5 1376 echo "configure: failed program was:" >&5
1373 cat conftest.$ac_ext >&5 1377 cat conftest.$ac_ext >&5
1382 MINGW32= 1386 MINGW32=
1383 test "$ac_cv_mingw32" = yes && MINGW32=yes 1387 test "$ac_cv_mingw32" = yes && MINGW32=yes
1384 1388
1385 1389
1386 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 1390 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1387 echo "configure:1388: checking for executable suffix" >&5 1391 echo "configure:1392: checking for executable suffix" >&5
1388 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then 1392 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1389 echo $ac_n "(cached) $ac_c" 1>&6 1393 echo $ac_n "(cached) $ac_c" 1>&6
1390 else 1394 else
1391 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 1395 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1392 ac_cv_exeext=.exe 1396 ac_cv_exeext=.exe
1393 else 1397 else
1394 rm -f conftest* 1398 rm -f conftest*
1395 echo 'int main () { return 0; }' > conftest.$ac_ext 1399 echo 'int main () { return 0; }' > conftest.$ac_ext
1396 ac_cv_exeext= 1400 ac_cv_exeext=
1397 if { (eval echo configure:1398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1401 if { (eval echo configure:1402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1398 for file in conftest.*; do 1402 for file in conftest.*; do
1399 case $file in 1403 case $file in
1400 *.c | *.o | *.obj | *.ilk | *.pdb) ;; 1404 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1401 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; 1405 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1402 esac 1406 esac
1417 1421
1418 1422
1419 1423
1420 1424
1421 echo $ac_n "checking "for Visual C++"""... $ac_c" 1>&6 1425 echo $ac_n "checking "for Visual C++"""... $ac_c" 1>&6
1422 echo "configure:1423: checking "for Visual C++"" >&5 1426 echo "configure:1427: checking "for Visual C++"" >&5
1423 MSVC="no"; 1427 MSVC="no";
1424 if test "${CC}" = "cl" ; then 1428 if test "${CC}" = "cl" ; then
1425 MSVC="yes" 1429 MSVC="yes"
1426 fi 1430 fi
1427 if test "${CXX}" = "cl" ; then 1431 if test "${CXX}" = "cl" ; then
1442 1446
1443 1447
1444 1448
1445 1449
1446 echo $ac_n "checking "the default compiler flags"""... $ac_c" 1>&6 1450 echo $ac_n "checking "the default compiler flags"""... $ac_c" 1>&6
1447 echo "configure:1448: checking "the default compiler flags"" >&5 1451 echo "configure:1452: checking "the default compiler flags"" >&5
1448 1452
1449 cygflags_enable_debug="no" 1453 cygflags_enable_debug="no"
1450 # Check whether --enable-debug or --disable-debug was given. 1454 # Check whether --enable-debug or --disable-debug was given.
1451 if test "${enable_debug+set}" = set; then 1455 if test "${enable_debug+set}" = set; then
1452 enableval="$enable_debug" 1456 enableval="$enable_debug"
1638 1642
1639 1643
1640 1644
1641 1645
1642 echo $ac_n "checking for Tcl version""... $ac_c" 1>&6 1646 echo $ac_n "checking for Tcl version""... $ac_c" 1>&6
1643 echo "configure:1644: checking for Tcl version" >&5 1647 echo "configure:1648: checking for Tcl version" >&5
1644 # Check whether --with-tcl-version or --without-tcl-version was given. 1648 # Check whether --with-tcl-version or --without-tcl-version was given.
1645 if test "${with_tcl_version+set}" = set; then 1649 if test "${with_tcl_version+set}" = set; then
1646 withval="$with_tcl_version" 1650 withval="$with_tcl_version"
1647 1651
1648 cyg_ac_tcl_version=${with_tcl_version} 1652 cyg_ac_tcl_version=${with_tcl_version}
1662 fi 1666 fi
1663 1667
1664 echo "$ac_t""${cyg_ac_tcl_version}" 1>&6 1668 echo "$ac_t""${cyg_ac_tcl_version}" 1>&6
1665 1669
1666 1670
1671 # Check whether --with-tcl or --without-tcl was given.
1672 if test "${with_tcl+set}" = set; then
1673 withval="$with_tcl"
1674 :
1675 fi
1676
1677 # Check whether --with-tcl or --without-tcl was given.
1678 if test "${with_tcl+set}" = set; then
1679 withval="$with_tcl"
1680 :
1681 fi
1682
1683
1667 echo $ac_n "checking for Tcl installation""... $ac_c" 1>&6 1684 echo $ac_n "checking for Tcl installation""... $ac_c" 1>&6
1668 echo "configure:1669: checking for Tcl installation" >&5 1685 echo "configure:1686: checking for Tcl installation" >&5
1669 # Check whether --with-tcl or --without-tcl was given. 1686 # Check whether --with-tcl or --without-tcl was given.
1670 if test "${with_tcl+set}" = set; then 1687 if test "${with_tcl+set}" = set; then
1671 withval="$with_tcl" 1688 withval="$with_tcl"
1672 1689
1673 cyg_ac_tcl_incdir=${with_tcl}/include 1690 cyg_ac_tcl_incdir=${with_tcl}/include
1674 cyg_ac_tcl_libdir=${with_tcl}/lib 1691 cyg_ac_tcl_libdir=${with_tcl}/lib
1675 1692
1676 else 1693 else
1677 1694
1678 cyg_ac_tcl_incdir=${prefix}/include 1695 if test "${with_tcl_header}" = "no"; then
1679 cyg_ac_tcl_libdir=${prefix}/lib 1696 cyg_ac_tcl_incdir=${prefix}/include
1697 else
1698 with_tcl=yes
1699 cyg_ac_tcl_incdir=${with_tcl_header}/include
1700 fi
1701
1702 if test "${with_tcl_lib}" = "no"; then
1703 cyg_ac_tcl_libdir=${prefix}/lib
1704 else
1705 with_tcl=yes
1706 cyg_ac_tcl_libdir=${with_tcl_lib}/lib
1707 fi
1680 1708
1681 fi 1709 fi
1682 1710
1683 echo "$ac_t""${cyg_ac_tcl_libdir}" 1>&6 1711 echo "$ac_t""${cyg_ac_tcl_libdir}" 1>&6
1684 1712
1719 1747
1720 1748
1721 1749
1722 1750
1723 echo $ac_n "checking for infrastructure files""... $ac_c" 1>&6 1751 echo $ac_n "checking for infrastructure files""... $ac_c" 1>&6
1724 echo "configure:1725: checking for infrastructure files" >&5 1752 echo "configure:1753: checking for infrastructure files" >&5
1725 # Check whether --with-infra or --without-infra was given. 1753 # Check whether --with-infra or --without-infra was given.
1726 if test "${with_infra+set}" = set; then 1754 if test "${with_infra+set}" = set; then
1727 withval="$with_infra" 1755 withval="$with_infra"
1728 1756
1729 cyg_ac_infra_incdir=${with_infra} 1757 cyg_ac_infra_incdir=${with_infra}