comparison host/configure @ 283:f58bc1b2c2bc

Reorganization of the host-side autoconfiscation support, and a couple of minor bug fixes. The main goal is to support per-package host-side software in addition to the generic host-side tools. For example, the synthetic target HAL and device driver packages can now have host subdirectories with support code.
author bartv
date Sun, 11 Aug 2002 21:40:50 +0000
parents 511f4dc167f6
children a2fb80f5315f
comparison
equal deleted inserted replaced
282:a29ee6c2dd3c 283:f58bc1b2c2bc
12 ac_default_prefix=/usr/local 12 ac_default_prefix=/usr/local
13 # Any additions from configure.in: 13 # Any additions from configure.in:
14 ac_help="$ac_help 14 ac_help="$ac_help
15 --enable-maintainer-mode enable make rules and dependencies not useful 15 --enable-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer" 16 (and sometimes confusing) to the casual installer"
17 ac_help="$ac_help
18 --enable-debug do a debug rather than a release build"
19 ac_help="$ac_help
20 --enable-ansi Do an ANSI rather than a unicode build"
21 ac_help="$ac_help
22 --disable-asserts disable all assertions"
23 ac_help="$ac_help
24 --disable-preconditions disable a subset of the assertions"
25 ac_help="$ac_help
26 --disable-postconditions disable a subset of the assertions"
27 ac_help="$ac_help
28 --disable-invariants disable a subset of the assertions"
29 ac_help="$ac_help
30 --disable-loopinvariants disable a subset of the assertions"
31 ac_help="$ac_help
32 --disable-tracing disable tracing"
33 ac_help="$ac_help
34 --disable-fntracing disable function entry/exit tracing"
35 ac_help="$ac_help
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"
41 ac_help="$ac_help
42 --with-tcl=<path> location of Tcl header and libraries"
43 17
44 # Initialize some variables set by options. 18 # Initialize some variables set by options.
45 # The variables have the same names as the options, with 19 # The variables have the same names as the options, with
46 # dashes changed to underlines. 20 # dashes changed to underlines.
47 build=NONE 21 build=NONE
478 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 452 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
479 echo > confdefs.h 453 echo > confdefs.h
480 454
481 # A filename unique to this package, relative to the directory that 455 # A filename unique to this package, relative to the directory that
482 # configure is in, which we can look for to find out if srcdir is correct. 456 # configure is in, which we can look for to find out if srcdir is correct.
483 ac_unique_file=config.guess 457 ac_unique_file=../acsupport/config.guess
484 458
485 # Find the source files, if location was not specified. 459 # Find the source files, if location was not specified.
486 if test -z "$srcdir"; then 460 if test -z "$srcdir"; then
487 ac_srcdir_defaulted=yes 461 ac_srcdir_defaulted=yes
488 # Try the directory containing this script, then its parent. 462 # Try the directory containing this script, then its parent.
549 ac_n= ac_c='\c' ac_t= 523 ac_n= ac_c='\c' ac_t=
550 fi 524 fi
551 525
552 526
553 ac_aux_dir= 527 ac_aux_dir=
554 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 528 for ac_dir in ../acsupport $srcdir/../acsupport; do
555 if test -f $ac_dir/install-sh; then 529 if test -f $ac_dir/install-sh; then
556 ac_aux_dir=$ac_dir 530 ac_aux_dir=$ac_dir
557 ac_install_sh="$ac_aux_dir/install-sh -c" 531 ac_install_sh="$ac_aux_dir/install-sh -c"
558 break 532 break
559 elif test -f $ac_dir/install.sh; then 533 elif test -f $ac_dir/install.sh; then
561 ac_install_sh="$ac_aux_dir/install.sh -c" 535 ac_install_sh="$ac_aux_dir/install.sh -c"
562 break 536 break
563 fi 537 fi
564 done 538 done
565 if test -z "$ac_aux_dir"; then 539 if test -z "$ac_aux_dir"; then
566 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 540 { echo "configure: error: can not find install-sh or install.sh in ../acsupport $srcdir/../acsupport" 1>&2; exit 1; }
567 fi 541 fi
568 ac_config_guess=$ac_aux_dir/config.guess 542 ac_config_guess=$ac_aux_dir/config.guess
569 ac_config_sub=$ac_aux_dir/config.sub 543 ac_config_sub=$ac_aux_dir/config.sub
570 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 544 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
571 545
574 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 548 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
575 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 549 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
576 fi 550 fi
577 551
578 echo $ac_n "checking host system type""... $ac_c" 1>&6 552 echo $ac_n "checking host system type""... $ac_c" 1>&6
579 echo "configure:580: checking host system type" >&5 553 echo "configure:554: checking host system type" >&5
580 554
581 host_alias=$host 555 host_alias=$host
582 case "$host_alias" in 556 case "$host_alias" in
583 NONE) 557 NONE)
584 case $nonopt in 558 case $nonopt in
606 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 580 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
607 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 581 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
608 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 582 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
609 # ./install, which can be erroneously created by make from ./install.sh. 583 # ./install, which can be erroneously created by make from ./install.sh.
610 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 584 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
611 echo "configure:612: checking for a BSD compatible install" >&5 585 echo "configure:586: checking for a BSD compatible install" >&5
612 if test -z "$INSTALL"; then 586 if test -z "$INSTALL"; then
613 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 587 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
614 echo $ac_n "(cached) $ac_c" 1>&6 588 echo $ac_n "(cached) $ac_c" 1>&6
615 else 589 else
616 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 590 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
659 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 633 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
660 634
661 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 635 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
662 636
663 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 637 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
664 echo "configure:665: checking whether build environment is sane" >&5 638 echo "configure:639: checking whether build environment is sane" >&5
665 # Just in case 639 # Just in case
666 sleep 1 640 sleep 1
667 echo timestamp > conftestfile 641 echo timestamp > conftestfile
668 # Do `set' in a subshell so we don't clobber the current shell's 642 # Do `set' in a subshell so we don't clobber the current shell's
669 # arguments. Must try -L first in case configure is actually a 643 # arguments. Must try -L first in case configure is actually a
716 690
717 # sed with no file args requires a program. 691 # sed with no file args requires a program.
718 test "$program_transform_name" = "" && program_transform_name="s,x,x," 692 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
719 693
720 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 694 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
721 echo "configure:722: checking whether ${MAKE-make} sets \${MAKE}" >&5 695 echo "configure:696: checking whether ${MAKE-make} sets \${MAKE}" >&5
722 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 696 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
723 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 697 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
724 echo $ac_n "(cached) $ac_c" 1>&6 698 echo $ac_n "(cached) $ac_c" 1>&6
725 else 699 else
726 cat > conftestmake <<\EOF 700 cat > conftestmake <<\EOF
755 729
756 730
757 731
758 missing_dir=`cd $ac_aux_dir && pwd` 732 missing_dir=`cd $ac_aux_dir && pwd`
759 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 733 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
760 echo "configure:761: checking for working aclocal" >&5 734 echo "configure:735: checking for working aclocal" >&5
761 # Run test in a subshell; some versions of sh will print an error if 735 # Run test in a subshell; some versions of sh will print an error if
762 # an executable is not found, even if stderr is redirected. 736 # an executable is not found, even if stderr is redirected.
763 # Redirect stdin to placate older versions of autoconf. Sigh. 737 # Redirect stdin to placate older versions of autoconf. Sigh.
764 if (aclocal --version) < /dev/null > /dev/null 2>&1; then 738 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
765 ACLOCAL=aclocal 739 ACLOCAL=aclocal
768 ACLOCAL="$missing_dir/missing aclocal" 742 ACLOCAL="$missing_dir/missing aclocal"
769 echo "$ac_t""missing" 1>&6 743 echo "$ac_t""missing" 1>&6
770 fi 744 fi
771 745
772 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 746 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
773 echo "configure:774: checking for working autoconf" >&5 747 echo "configure:748: checking for working autoconf" >&5
774 # Run test in a subshell; some versions of sh will print an error if 748 # Run test in a subshell; some versions of sh will print an error if
775 # an executable is not found, even if stderr is redirected. 749 # an executable is not found, even if stderr is redirected.
776 # Redirect stdin to placate older versions of autoconf. Sigh. 750 # Redirect stdin to placate older versions of autoconf. Sigh.
777 if (autoconf --version) < /dev/null > /dev/null 2>&1; then 751 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
778 AUTOCONF=autoconf 752 AUTOCONF=autoconf
781 AUTOCONF="$missing_dir/missing autoconf" 755 AUTOCONF="$missing_dir/missing autoconf"
782 echo "$ac_t""missing" 1>&6 756 echo "$ac_t""missing" 1>&6
783 fi 757 fi
784 758
785 echo $ac_n "checking for working automake""... $ac_c" 1>&6 759 echo $ac_n "checking for working automake""... $ac_c" 1>&6
786 echo "configure:787: checking for working automake" >&5 760 echo "configure:761: checking for working automake" >&5
787 # Run test in a subshell; some versions of sh will print an error if 761 # Run test in a subshell; some versions of sh will print an error if
788 # an executable is not found, even if stderr is redirected. 762 # an executable is not found, even if stderr is redirected.
789 # Redirect stdin to placate older versions of autoconf. Sigh. 763 # Redirect stdin to placate older versions of autoconf. Sigh.
790 if (automake --version) < /dev/null > /dev/null 2>&1; then 764 if (automake --version) < /dev/null > /dev/null 2>&1; then
791 AUTOMAKE=automake 765 AUTOMAKE=automake
794 AUTOMAKE="$missing_dir/missing automake" 768 AUTOMAKE="$missing_dir/missing automake"
795 echo "$ac_t""missing" 1>&6 769 echo "$ac_t""missing" 1>&6
796 fi 770 fi
797 771
798 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 772 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
799 echo "configure:800: checking for working autoheader" >&5 773 echo "configure:774: checking for working autoheader" >&5
800 # Run test in a subshell; some versions of sh will print an error if 774 # Run test in a subshell; some versions of sh will print an error if
801 # an executable is not found, even if stderr is redirected. 775 # an executable is not found, even if stderr is redirected.
802 # Redirect stdin to placate older versions of autoconf. Sigh. 776 # Redirect stdin to placate older versions of autoconf. Sigh.
803 if (autoheader --version) < /dev/null > /dev/null 2>&1; then 777 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
804 AUTOHEADER=autoheader 778 AUTOHEADER=autoheader
807 AUTOHEADER="$missing_dir/missing autoheader" 781 AUTOHEADER="$missing_dir/missing autoheader"
808 echo "$ac_t""missing" 1>&6 782 echo "$ac_t""missing" 1>&6
809 fi 783 fi
810 784
811 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 785 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
812 echo "configure:813: checking for working makeinfo" >&5 786 echo "configure:787: checking for working makeinfo" >&5
813 # Run test in a subshell; some versions of sh will print an error if 787 # Run test in a subshell; some versions of sh will print an error if
814 # an executable is not found, even if stderr is redirected. 788 # an executable is not found, even if stderr is redirected.
815 # Redirect stdin to placate older versions of autoconf. Sigh. 789 # Redirect stdin to placate older versions of autoconf. Sigh.
816 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then 790 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
817 MAKEINFO=makeinfo 791 MAKEINFO=makeinfo
821 echo "$ac_t""missing" 1>&6 795 echo "$ac_t""missing" 1>&6
822 fi 796 fi
823 797
824 798
825 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 799 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
826 echo "configure:827: checking whether to enable maintainer-specific portions of Makefiles" >&5 800 echo "configure:801: checking whether to enable maintainer-specific portions of Makefiles" >&5
827 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 801 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
828 if test "${enable_maintainer_mode+set}" = set; then 802 if test "${enable_maintainer_mode+set}" = set; then
829 enableval="$enable_maintainer_mode" 803 enableval="$enable_maintainer_mode"
830 USE_MAINTAINER_MODE=$enableval 804 USE_MAINTAINER_MODE=$enableval
831 else 805 else
844 fi 818 fi
845 MAINT=$MAINTAINER_MODE_TRUE 819 MAINT=$MAINTAINER_MODE_TRUE
846 820
847 821
848 822
849 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 823 echo $ac_n "checking that a separate build tree is being used""... $ac_c" 1>&6
850 echo "configure:851: checking whether ${MAKE-make} sets \${MAKE}" >&5 824 echo "configure:825: checking that a separate build tree is being used" >&5
851 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 825 ecos_cwd=`/bin/pwd`
852 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 826 if test "${srcdir}" = "." ; then
853 echo $ac_n "(cached) $ac_c" 1>&6 827 srcdir=${ecos_cwd}
854 else 828 fi
855 cat > conftestmake <<\EOF 829 if test "${ecos_cwd}" = "${srcdir}" ; then
856 all: 830 echo "$ac_t""no" 1>&6
857 @echo 'ac_maketemp="${MAKE}"' 831 { echo "configure: error: This configure script should not be run inside the source tree. Instead please use a separate build tree" 1>&2; exit 1; }
858 EOF
859 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
860 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
861 if test -n "$ac_maketemp"; then
862 eval ac_cv_prog_make_${ac_make}_set=yes
863 else
864 eval ac_cv_prog_make_${ac_make}_set=no
865 fi
866 rm -f conftestmake
867 fi
868 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
869 echo "$ac_t""yes" 1>&6
870 SET_MAKE=
871 else
872 echo "$ac_t""no" 1>&6
873 SET_MAKE="MAKE=${MAKE-make}"
874 fi
875
876 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
877 echo "configure:878: checking for Cygwin environment" >&5
878 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
879 echo $ac_n "(cached) $ac_c" 1>&6
880 else
881 cat > conftest.$ac_ext <<EOF
882 #line 883 "configure"
883 #include "confdefs.h"
884
885 int main() {
886
887 #ifndef __CYGWIN__
888 #define __CYGWIN__ __CYGWIN32__
889 #endif
890 return __CYGWIN__;
891 ; return 0; }
892 EOF
893 if { (eval echo configure:894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
894 rm -rf conftest*
895 ac_cv_cygwin=yes
896 else
897 echo "configure: failed program was:" >&5
898 cat conftest.$ac_ext >&5
899 rm -rf conftest*
900 ac_cv_cygwin=no
901 fi
902 rm -f conftest*
903 rm -f conftest*
904 fi
905
906 echo "$ac_t""$ac_cv_cygwin" 1>&6
907 CYGWIN=
908 test "$ac_cv_cygwin" = yes && CYGWIN=yes
909 # Extract the first word of "gcc", so it can be a program name with args.
910 set dummy gcc; ac_word=$2
911 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
912 echo "configure:913: checking for $ac_word" >&5
913 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
914 echo $ac_n "(cached) $ac_c" 1>&6
915 else
916 if test -n "$CC"; then
917 ac_cv_prog_CC="$CC" # Let the user override the test.
918 else
919 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
920 ac_dummy="$PATH"
921 for ac_dir in $ac_dummy; do
922 test -z "$ac_dir" && ac_dir=.
923 if test -f $ac_dir/$ac_word; then
924 ac_cv_prog_CC="gcc"
925 break
926 fi
927 done
928 IFS="$ac_save_ifs"
929 fi
930 fi
931 CC="$ac_cv_prog_CC"
932 if test -n "$CC"; then
933 echo "$ac_t""$CC" 1>&6
934 else
935 echo "$ac_t""no" 1>&6
936 fi
937
938 if test -z "$CC"; then
939 # Extract the first word of "cc", so it can be a program name with args.
940 set dummy cc; ac_word=$2
941 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
942 echo "configure:943: checking for $ac_word" >&5
943 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
944 echo $ac_n "(cached) $ac_c" 1>&6
945 else
946 if test -n "$CC"; then
947 ac_cv_prog_CC="$CC" # Let the user override the test.
948 else
949 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
950 ac_prog_rejected=no
951 ac_dummy="$PATH"
952 for ac_dir in $ac_dummy; do
953 test -z "$ac_dir" && ac_dir=.
954 if test -f $ac_dir/$ac_word; then
955 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
956 ac_prog_rejected=yes
957 continue
958 fi
959 ac_cv_prog_CC="cc"
960 break
961 fi
962 done
963 IFS="$ac_save_ifs"
964 if test $ac_prog_rejected = yes; then
965 # We found a bogon in the path, so make sure we never use it.
966 set dummy $ac_cv_prog_CC
967 shift
968 if test $# -gt 0; then
969 # We chose a different compiler from the bogus one.
970 # However, it has the same basename, so the bogon will be chosen
971 # first if we set CC to just the basename; use the full file name.
972 shift
973 set dummy "$ac_dir/$ac_word" "$@"
974 shift
975 ac_cv_prog_CC="$@"
976 fi
977 fi
978 fi
979 fi
980 CC="$ac_cv_prog_CC"
981 if test -n "$CC"; then
982 echo "$ac_t""$CC" 1>&6
983 else
984 echo "$ac_t""no" 1>&6
985 fi
986
987 if test -z "$CC"; then
988 case "`uname -s`" in
989 *win32* | *WIN32*)
990 # Extract the first word of "cl", so it can be a program name with args.
991 set dummy cl; ac_word=$2
992 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
993 echo "configure:994: checking for $ac_word" >&5
994 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
995 echo $ac_n "(cached) $ac_c" 1>&6
996 else
997 if test -n "$CC"; then
998 ac_cv_prog_CC="$CC" # Let the user override the test.
999 else
1000 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1001 ac_dummy="$PATH"
1002 for ac_dir in $ac_dummy; do
1003 test -z "$ac_dir" && ac_dir=.
1004 if test -f $ac_dir/$ac_word; then
1005 ac_cv_prog_CC="cl"
1006 break
1007 fi
1008 done
1009 IFS="$ac_save_ifs"
1010 fi
1011 fi
1012 CC="$ac_cv_prog_CC"
1013 if test -n "$CC"; then
1014 echo "$ac_t""$CC" 1>&6
1015 else
1016 echo "$ac_t""no" 1>&6
1017 fi
1018 ;;
1019 esac
1020 fi
1021 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1022 fi
1023
1024 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1025 echo "configure:1026: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1026
1027 ac_ext=c
1028 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1029 ac_cpp='$CPP $CPPFLAGS'
1030 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1031 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1032 cross_compiling=$ac_cv_prog_cc_cross
1033
1034 cat > conftest.$ac_ext << EOF
1035
1036 #line 1037 "configure"
1037 #include "confdefs.h"
1038
1039 main(){return(0);}
1040 EOF
1041 if { (eval echo configure:1042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1042 ac_cv_prog_cc_works=yes
1043 # If we can't run a trivial program, we are probably using a cross compiler.
1044 if (./conftest; exit) 2>/dev/null; then
1045 ac_cv_prog_cc_cross=no
1046 else
1047 ac_cv_prog_cc_cross=yes
1048 fi
1049 else
1050 echo "configure: failed program was:" >&5
1051 cat conftest.$ac_ext >&5
1052 ac_cv_prog_cc_works=no
1053 fi
1054 rm -fr conftest*
1055 ac_ext=c
1056 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1057 ac_cpp='$CPP $CPPFLAGS'
1058 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1059 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1060 cross_compiling=$ac_cv_prog_cc_cross
1061
1062 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1063 if test $ac_cv_prog_cc_works = no; then
1064 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1065 fi
1066 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1067 echo "configure:1068: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1068 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1069 cross_compiling=$ac_cv_prog_cc_cross
1070
1071 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1072 echo "configure:1073: checking whether we are using GNU C" >&5
1073 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1074 echo $ac_n "(cached) $ac_c" 1>&6
1075 else
1076 cat > conftest.c <<EOF
1077 #ifdef __GNUC__
1078 yes;
1079 #endif
1080 EOF
1081 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1082 ac_cv_prog_gcc=yes
1083 else
1084 ac_cv_prog_gcc=no
1085 fi
1086 fi
1087
1088 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1089
1090 if test $ac_cv_prog_gcc = yes; then
1091 GCC=yes
1092 else
1093 GCC=
1094 fi
1095
1096 ac_test_CFLAGS="${CFLAGS+set}"
1097 ac_save_CFLAGS="$CFLAGS"
1098 CFLAGS=
1099 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1100 echo "configure:1101: checking whether ${CC-cc} accepts -g" >&5
1101 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1102 echo $ac_n "(cached) $ac_c" 1>&6
1103 else
1104 echo 'void f(){}' > conftest.c
1105 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1106 ac_cv_prog_cc_g=yes
1107 else
1108 ac_cv_prog_cc_g=no
1109 fi
1110 rm -f conftest*
1111
1112 fi
1113
1114 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1115 if test "$ac_test_CFLAGS" = set; then
1116 CFLAGS="$ac_save_CFLAGS"
1117 elif test $ac_cv_prog_cc_g = yes; then
1118 if test "$GCC" = yes; then
1119 CFLAGS="-g -O2"
1120 else
1121 CFLAGS="-g"
1122 fi
1123 else
1124 if test "$GCC" = yes; then
1125 CFLAGS="-O2"
1126 else
1127 CFLAGS=
1128 fi
1129 fi
1130
1131 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1132 do
1133 # Extract the first word of "$ac_prog", so it can be a program name with args.
1134 set dummy $ac_prog; ac_word=$2
1135 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1136 echo "configure:1137: checking for $ac_word" >&5
1137 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1138 echo $ac_n "(cached) $ac_c" 1>&6
1139 else
1140 if test -n "$CXX"; then
1141 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1142 else
1143 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1144 ac_dummy="$PATH"
1145 for ac_dir in $ac_dummy; do
1146 test -z "$ac_dir" && ac_dir=.
1147 if test -f $ac_dir/$ac_word; then
1148 ac_cv_prog_CXX="$ac_prog"
1149 break
1150 fi
1151 done
1152 IFS="$ac_save_ifs"
1153 fi
1154 fi
1155 CXX="$ac_cv_prog_CXX"
1156 if test -n "$CXX"; then
1157 echo "$ac_t""$CXX" 1>&6
1158 else
1159 echo "$ac_t""no" 1>&6
1160 fi
1161
1162 test -n "$CXX" && break
1163 done
1164 test -n "$CXX" || CXX="gcc"
1165
1166
1167 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1168 echo "configure:1169: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1169
1170 ac_ext=C
1171 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1172 ac_cpp='$CXXCPP $CPPFLAGS'
1173 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1174 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1175 cross_compiling=$ac_cv_prog_cxx_cross
1176
1177 cat > conftest.$ac_ext << EOF
1178
1179 #line 1180 "configure"
1180 #include "confdefs.h"
1181
1182 int main(){return(0);}
1183 EOF
1184 if { (eval echo configure:1185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1185 ac_cv_prog_cxx_works=yes
1186 # If we can't run a trivial program, we are probably using a cross compiler.
1187 if (./conftest; exit) 2>/dev/null; then
1188 ac_cv_prog_cxx_cross=no
1189 else
1190 ac_cv_prog_cxx_cross=yes
1191 fi
1192 else
1193 echo "configure: failed program was:" >&5
1194 cat conftest.$ac_ext >&5
1195 ac_cv_prog_cxx_works=no
1196 fi
1197 rm -fr conftest*
1198 ac_ext=c
1199 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1200 ac_cpp='$CPP $CPPFLAGS'
1201 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1202 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1203 cross_compiling=$ac_cv_prog_cc_cross
1204
1205 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1206 if test $ac_cv_prog_cxx_works = no; then
1207 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1208 fi
1209 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1210 echo "configure:1211: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1211 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1212 cross_compiling=$ac_cv_prog_cxx_cross
1213
1214 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1215 echo "configure:1216: checking whether we are using GNU C++" >&5
1216 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1217 echo $ac_n "(cached) $ac_c" 1>&6
1218 else
1219 cat > conftest.C <<EOF
1220 #ifdef __GNUC__
1221 yes;
1222 #endif
1223 EOF
1224 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1225 ac_cv_prog_gxx=yes
1226 else
1227 ac_cv_prog_gxx=no
1228 fi
1229 fi
1230
1231 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1232
1233 if test $ac_cv_prog_gxx = yes; then
1234 GXX=yes
1235 else
1236 GXX=
1237 fi
1238
1239 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1240 ac_save_CXXFLAGS="$CXXFLAGS"
1241 CXXFLAGS=
1242 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1243 echo "configure:1244: checking whether ${CXX-g++} accepts -g" >&5
1244 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1245 echo $ac_n "(cached) $ac_c" 1>&6
1246 else
1247 echo 'void f(){}' > conftest.cc
1248 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1249 ac_cv_prog_cxx_g=yes
1250 else
1251 ac_cv_prog_cxx_g=no
1252 fi
1253 rm -f conftest*
1254
1255 fi
1256
1257 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1258 if test "$ac_test_CXXFLAGS" = set; then
1259 CXXFLAGS="$ac_save_CXXFLAGS"
1260 elif test $ac_cv_prog_cxx_g = yes; then
1261 if test "$GXX" = yes; then
1262 CXXFLAGS="-g -O2"
1263 else
1264 CXXFLAGS="-g"
1265 fi
1266 else
1267 if test "$GXX" = yes; then
1268 CXXFLAGS="-O2"
1269 else
1270 CXXFLAGS=
1271 fi
1272 fi
1273
1274 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1275 echo "configure:1276: checking for object suffix" >&5
1276 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1277 echo $ac_n "(cached) $ac_c" 1>&6
1278 else
1279 rm -f conftest*
1280 echo 'int i = 1;' > conftest.$ac_ext
1281 if { (eval echo configure:1282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1282 for ac_file in conftest.*; do
1283 case $ac_file in
1284 *.c) ;;
1285 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1286 esac
1287 done
1288 else
1289 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1290 fi
1291 rm -f conftest*
1292 fi
1293
1294 echo "$ac_t""$ac_cv_objext" 1>&6
1295 OBJEXT=$ac_cv_objext
1296 ac_objext=$ac_cv_objext
1297
1298 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1299 echo "configure:1300: checking for mingw32 environment" >&5
1300 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1301 echo $ac_n "(cached) $ac_c" 1>&6
1302 else
1303 cat > conftest.$ac_ext <<EOF
1304 #line 1305 "configure"
1305 #include "confdefs.h"
1306
1307 int main() {
1308 return __MINGW32__;
1309 ; return 0; }
1310 EOF
1311 if { (eval echo configure:1312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1312 rm -rf conftest*
1313 ac_cv_mingw32=yes
1314 else
1315 echo "configure: failed program was:" >&5
1316 cat conftest.$ac_ext >&5
1317 rm -rf conftest*
1318 ac_cv_mingw32=no
1319 fi
1320 rm -f conftest*
1321 rm -f conftest*
1322 fi
1323
1324 echo "$ac_t""$ac_cv_mingw32" 1>&6
1325 MINGW32=
1326 test "$ac_cv_mingw32" = yes && MINGW32=yes
1327
1328
1329 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1330 echo "configure:1331: checking for executable suffix" >&5
1331 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1332 echo $ac_n "(cached) $ac_c" 1>&6
1333 else
1334 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1335 ac_cv_exeext=.exe
1336 else
1337 rm -f conftest*
1338 echo 'int main () { return 0; }' > conftest.$ac_ext
1339 ac_cv_exeext=
1340 if { (eval echo configure:1341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1341 for file in conftest.*; do
1342 case $file in
1343 *.c | *.o | *.obj) ;;
1344 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1345 esac
1346 done
1347 else
1348 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1349 fi
1350 rm -f conftest*
1351 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1352 fi
1353 fi
1354
1355 EXEEXT=""
1356 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1357 echo "$ac_t""${ac_cv_exeext}" 1>&6
1358 ac_exeext=$EXEEXT
1359
1360
1361
1362
1363
1364 echo $ac_n "checking "for Visual C++"""... $ac_c" 1>&6
1365 echo "configure:1366: checking "for Visual C++"" >&5
1366 MSVC="no";
1367 if test "${CC}" = "cl" ; then
1368 MSVC="yes"
1369 fi
1370 if test "${CXX}" = "cl" ; then
1371 MSVC="yes"
1372 fi
1373
1374
1375 if test "${MSVC}" = "yes"; then
1376 MSVC_TRUE=
1377 MSVC_FALSE='#'
1378 else
1379 MSVC_TRUE='#'
1380 MSVC_FALSE=
1381 fi
1382 echo "$ac_t""${MSVC}" 1>&6
1383
1384
1385
1386
1387
1388
1389
1390 echo $ac_n "checking "the default compiler flags"""... $ac_c" 1>&6
1391 echo "configure:1392: checking "the default compiler flags"" >&5
1392
1393 cygflags_enable_debug="no"
1394 # Check whether --enable-debug or --disable-debug was given.
1395 if test "${enable_debug+set}" = set; then
1396 enableval="$enable_debug"
1397 case "${enableval}" in
1398 yes) cygflags_enable_debug="yes" ;;
1399 *) cygflags_enable_debug="no" ;;
1400 esac
1401 fi
1402
1403
1404 cygflags_enable_ansi="no"
1405 if test "${MSVC}" = "yes" ; then
1406 # Check whether --enable-ansi or --disable-ansi was given.
1407 if test "${enable_ansi+set}" = set; then
1408 enableval="$enable_ansi"
1409 case "${enableval}" in
1410 yes) cygflags_enable_ansi="yes" ;;
1411 *) cygflags_enable_ansi="no" ;;
1412 esac
1413 fi
1414
1415 fi
1416
1417 if test "${GCC}" = "yes" ; then
1418 cyg_CFLAGS="-pipe -Wall -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs"
1419 cyg_CXXFLAGS="-pipe -Wall -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Woverloaded-virtual"
1420 elif test "${MSVC}" = "yes" ; then
1421 cyg_CFLAGS="-nologo -W3"
1422 cyg_CXXFLAGS="-nologo -W3 -GR -GX"
1423 else 832 else
1424 { echo "configure: error: "default flags for ${CC} are not known"" 1>&2; exit 1; } 833 echo "$ac_t""yes" 1>&6
1425 fi 834 fi
1426 835
1427 if test "${cygflags_enable_debug}" = "yes" ; then 836
1428 if test "${GCC}" = "yes" ; then 837 SUBDIRS="infra libcdl tools/configtool/standalone/common"
1429 cyg_CFLAGS="${cyg_CFLAGS} -g -O0" 838
1430 cyg_CXXFLAGS="${cyg_CXXFLAGS} -g -O0" 839
1431 elif test "${MSVC}" = "yes" ; then 840
1432 cyg_CFLAGS="${cyg_CFLAGS} -MDd -Zi" 841
1433 cyg_CXXFLAGS="${cyg_CXXFLAGS} -MDd -Zi" 842 subdirs="${SUBDIRS}"
1434 fi
1435 else
1436 if test "${GCC}" = "yes" ; then
1437 cyg_CFLAGS="${cyg_CFLAGS} -O0"
1438 cyg_CXXFLAGS="${cyg_CXXFLAGS} -O0"
1439 elif test "${MSVC}" = "yes" ; then
1440 cyg_CFLAGS="${cyg_CFLAGS} -MD -O2"
1441 cyg_CXXFLAGS="${cyg_CXXFLAGS} -MD -O2"
1442 fi
1443 fi
1444
1445 CFLAGS="${ac_save_CFLAGS}"
1446 CXXFLAGS="${ac_save_CXXFLAGS}"
1447
1448
1449 echo "$ac_t""done" 1>&6
1450
1451
1452
1453
1454
1455 if test "${cygflags_enable_debug}" = "yes" ; then
1456 cyginfra_asserts=yes
1457 cyginfra_preconditions=yes
1458 cyginfra_postconditions=yes
1459 cyginfra_invariants=yes
1460 cyginfra_loopinvariants=yes
1461 cyginfra_tracing=yes
1462 cyginfra_fntracing=yes
1463 else
1464 cyginfra_asserts=no
1465 cyginfra_preconditions=no
1466 cyginfra_postconditions=no
1467 cyginfra_invariants=no
1468 cyginfra_loopinvariants=no
1469 cyginfra_tracing=no
1470 cyginfra_fntracing=no
1471 fi
1472
1473 # Check whether --enable-asserts or --disable-asserts was given.
1474 if test "${enable_asserts+set}" = set; then
1475 enableval="$enable_asserts"
1476 case "${enableval}" in
1477 yes) cyginfra_asserts=yes ;;
1478 no) cyginfra_asserts=no ;;
1479 *) { echo "configure: error: bad value ${enableval} for disable-asserts option" 1>&2; exit 1; } ;;
1480 esac
1481 fi
1482
1483 if test "${cyginfra_asserts}" = "yes"; then
1484 cat >> confdefs.h <<\EOF
1485 #define CYGDBG_USE_ASSERTS 1
1486 EOF
1487
1488 fi
1489
1490 # Check whether --enable-preconditions or --disable-preconditions was given.
1491 if test "${enable_preconditions+set}" = set; then
1492 enableval="$enable_preconditions"
1493 case "${enableval}" in
1494 yes) cyginfra_preconditions=yes ;;
1495 no) cyginfra_preconditions=no ;;
1496 *) { echo "configure: error: bad value ${enableval} for disable-preconditions option" 1>&2; exit 1; } ;;
1497 esac
1498 fi
1499
1500 if test "${cyginfra_preconditions}" = "yes"; then
1501 cat >> confdefs.h <<\EOF
1502 #define CYGDBG_INFRA_DEBUG_PRECONDITIONS 1
1503 EOF
1504
1505 fi
1506
1507 # Check whether --enable-postconditions or --disable-postconditions was given.
1508 if test "${enable_postconditions+set}" = set; then
1509 enableval="$enable_postconditions"
1510 case "${enableval}" in
1511 yes) cyginfra_postconditions=yes ;;
1512 no) cyginfra_postconditions=no ;;
1513 *) { echo "configure: error: bad value ${enableval} for disable-postconditions option" 1>&2; exit 1; } ;;
1514 esac
1515 fi
1516
1517 if test "${cyginfra_postconditions}" = "yes"; then
1518 cat >> confdefs.h <<\EOF
1519 #define CYGDBG_INFRA_DEBUG_POSTCONDITIONS 1
1520 EOF
1521
1522 fi
1523
1524 # Check whether --enable-invariants or --disable-invariants was given.
1525 if test "${enable_invariants+set}" = set; then
1526 enableval="$enable_invariants"
1527 case "${enableval}" in
1528 yes) cyginfra_invariants=yes ;;
1529 no) cyginfra_invariants=no ;;
1530 *) { echo "configure: error: bad value ${enableval} for disable-invariants option" 1>&2; exit 1; } ;;
1531 esac
1532 fi
1533
1534 if test "${cyginfra_invariants}" = "yes"; then
1535 cat >> confdefs.h <<\EOF
1536 #define CYGDBG_INFRA_DEBUG_INVARIANTS 1
1537 EOF
1538
1539 fi
1540
1541 # Check whether --enable-loopinvariants or --disable-loopinvariants was given.
1542 if test "${enable_loopinvariants+set}" = set; then
1543 enableval="$enable_loopinvariants"
1544 case "${enableval}" in
1545 yes) cyginfra_loopinvariants=yes ;;
1546 no) cyginfra_loopinvariants=no ;;
1547 *) { echo "configure: error: bad value ${enableval} for disable-loopinvariants option" 1>&2; exit 1; } ;;
1548 esac
1549 fi
1550
1551 if test "${cyginfra_loopinvariants}" = "yes"; then
1552 cat >> confdefs.h <<\EOF
1553 #define CYGDBG_INFRA_DEBUG_LOOP_INVARIANTS 1
1554 EOF
1555
1556 fi
1557
1558 # Check whether --enable-tracing or --disable-tracing was given.
1559 if test "${enable_tracing+set}" = set; then
1560 enableval="$enable_tracing"
1561 case "${enableval}" in
1562 yes) cyginfra_tracing=yes ;;
1563 no) cyginfra_tracing=no ;;
1564 *) { echo "configure: error: bad value ${enableval} for disable-tracing option" 1>&2; exit 1; } ;;
1565 esac
1566 fi
1567
1568 if test "${cyginfra_tracing}" = "yes"; then
1569 cat >> confdefs.h <<\EOF
1570 #define CYGDBG_USE_TRACING 1
1571 EOF
1572
1573 fi
1574
1575 # Check whether --enable-fntracing or --disable-fntracing was given.
1576 if test "${enable_fntracing+set}" = set; then
1577 enableval="$enable_fntracing"
1578 case "${enableval}" in
1579 yes) cyginfra_fntracing=yes ;;
1580 no) cyginfra_fntracing=no ;;
1581 *) { echo "configure: error: bad value ${enableval} for disable-fntracing option" 1>&2; exit 1; } ;;
1582 esac
1583 fi
1584
1585 if test "${cyginfra_fntracing}" = "yes"; then
1586 cat >> confdefs.h <<\EOF
1587 #define CYGDBG_INFRA_DEBUG_FUNCTION_REPORTS 1
1588 EOF
1589
1590 fi
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600 echo $ac_n "checking for Tcl version""... $ac_c" 1>&6
1601 echo "configure:1602: checking for Tcl version" >&5
1602 # Check whether --with-tcl-version or --without-tcl-version was given.
1603 if test "${with_tcl_version+set}" = set; then
1604 withval="$with_tcl_version"
1605
1606 cyg_ac_tcl_version=${with_tcl_version}
1607
1608 else
1609
1610 if test "${MSVC}" = "yes" ; then
1611 cyg_ac_tcl_version=80
1612 else
1613 if test "${ac_cv_cygwin}" = "yes" ; then
1614 cyg_ac_tcl_version=80
1615 else
1616 cyg_ac_tcl_version=""
1617 fi
1618 fi
1619
1620 fi
1621
1622 echo "$ac_t""${cyg_ac_tcl_version}" 1>&6
1623
1624
1625
1626 # Check whether --with-tcl or --without-tcl was given.
1627 if test "${with_tcl+set}" = set; then
1628 withval="$with_tcl"
1629 :
1630 fi
1631
1632 # Check whether --with-tcl or --without-tcl was given.
1633 if test "${with_tcl+set}" = set; then
1634 withval="$with_tcl"
1635 :
1636 fi
1637
1638 # Check whether --with-tcl or --without-tcl was given.
1639 if test "${with_tcl+set}" = set; then
1640 withval="$with_tcl"
1641 :
1642 fi
1643
1644
1645 echo $ac_n "checking for Tcl installation""... $ac_c" 1>&6
1646 echo "configure:1647: checking for Tcl installation" >&5
1647
1648
1649 if test "${MSVC}" = "yes" ; then
1650 if test "${with_tcl_header+set}" = set; then
1651 cyg_ac_tcl_incdir=${with_tcl_header}
1652 else
1653 if test "${with_tcl+set}" = set; then
1654 cyg_ac_tcl_incdir="${with_tcl}/include"
1655 else
1656 { echo "configure: error: You must specify a Tcl installation with either --with-tcl=<path> or --with-tcl-header=<path>" 1>&2; exit 1; }
1657 fi
1658 fi
1659 if test "${with_tcl_lib+set}" = set; then
1660 cyg_ac_tcl_libdir=${with_tcl_lib}
1661 else
1662 if test "${with_tcl+set}" = set; then
1663 cyg_ac_tcl_libdir="${with_tcl}/lib"
1664 else
1665 { echo "configure: error: You must specify a Tcl installation with either --with-tcl=<path> or --with-tcl-lib=<path>" 1>&2; exit 1; }
1666 fi
1667 fi
1668 cyg_ac_tcl_libs="tcl${cyg_ac_tcl_version}.lib"
1669 else
1670 tcl_incdirs="${with_tcl_header} ${with_tcl}/include ${prefix}/include /usr/include/tcl$cyg_ac_tcl_version /usr/include"
1671
1672 cyg_ac_tcl_incdir=NO
1673 for i in $tcl_incdirs;
1674 do
1675 for j in tcl.h;
1676 do
1677 if test -r "$i/$j"; then
1678 cyg_ac_tcl_incdir=$i
1679 break 2
1680 fi
1681 done
1682 done
1683
1684 tcl_libdirs="${with_tcl_lib} ${with_tcl}/lib ${libdir} ${prefix}/lib /usr/lib/tcl$cyg_ac_tcl_version /usr/lib"
1685
1686 cyg_ac_tcl_libdir=NO
1687 for i in $tcl_libdirs;
1688 do
1689 for j in tclConfig.sh;
1690 do
1691 if test -r "$i/$j"; then
1692 cyg_ac_tcl_libdir=$i
1693 break 2
1694 fi
1695 done
1696 done
1697
1698 if test \! -r ${cyg_ac_tcl_libdir}/tclConfig.sh ; then
1699 { echo "configure: error: unable to locate Tcl config file tclConfig.sh" 1>&2; exit 1; }
1700 else
1701 . ${cyg_ac_tcl_libdir}/tclConfig.sh
1702 cyg_ac_tcl_libs="-ltcl${cyg_ac_tcl_version} ${TCL_LIBS}"
1703 fi
1704 fi
1705
1706 if test \! -r ${cyg_ac_tcl_incdir}/tcl.h ; then
1707 { echo "configure: error: unable to locate Tcl header file tcl.h" 1>&2; exit 1; }
1708 fi
1709
1710 if test "${MSVC}" = "yes" ; then
1711
1712
1713
1714
1715 if test "${MSVC}" = "yes" ; then
1716 cyg_ac_tcl_incdir=`cygpath -w ${cyg_ac_tcl_incdir} | tr \\\\\\\\ /`
1717 fi
1718
1719
1720
1721
1722
1723 if test "${MSVC}" = "yes" ; then
1724 cyg_ac_tcl_libdir=`cygpath -w ${cyg_ac_tcl_libdir} | tr \\\\\\\\ /`
1725 fi
1726
1727 fi
1728
1729 echo "$ac_t""${cyg_ac_tcl_libdir}" 1>&6
1730
1731
1732
1733
1734
1735
1736
1737 ECOS_DIRS="infra libcdl"
1738
1739
1740
1741 if test -d ${srcdir}/tools/configtool/standalone/common; then
1742 ECOS_DIRS="${ECOS_DIRS} tools/configtool/standalone/common"
1743
1744 fi
1745
1746
1747 subdirs="${ECOS_DIRS}"
1748 843
1749 trap '' 1 2 15 844 trap '' 1 2 15
1750 cat > confcache <<\EOF 845 cat > confcache <<\EOF
1751 # This file is a shell script that caches the results of configure 846 # This file is a shell script that caches the results of configure
1752 # tests run on this system so they can be shared between configure 847 # tests run on this system so they can be shared between configure
1908 s%@MAKEINFO@%$MAKEINFO%g 1003 s%@MAKEINFO@%$MAKEINFO%g
1909 s%@SET_MAKE@%$SET_MAKE%g 1004 s%@SET_MAKE@%$SET_MAKE%g
1910 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g 1005 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
1911 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g 1006 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
1912 s%@MAINT@%$MAINT%g 1007 s%@MAINT@%$MAINT%g
1913 s%@CC@%$CC%g 1008 s%@SUBDIRS@%$SUBDIRS%g
1914 s%@CXX@%$CXX%g
1915 s%@OBJEXT@%$OBJEXT%g
1916 s%@EXEEXT@%$EXEEXT%g
1917 s%@MSVC_TRUE@%$MSVC_TRUE%g
1918 s%@MSVC_FALSE@%$MSVC_FALSE%g
1919 s%@cyg_CFLAGS@%$cyg_CFLAGS%g
1920 s%@cyg_CXXFLAGS@%$cyg_CXXFLAGS%g
1921 s%@cyg_ac_tcl_version@%$cyg_ac_tcl_version%g
1922 s%@cyg_ac_tcl_incdir@%$cyg_ac_tcl_incdir%g
1923 s%@cyg_ac_tcl_libdir@%$cyg_ac_tcl_libdir%g
1924 s%@cyg_ac_tcl_libs@%$cyg_ac_tcl_libs%g
1925 s%@cyg_ac_tk_libs@%$cyg_ac_tk_libs%g
1926 s%@ECOS_DIRS@%$ECOS_DIRS%g
1927 s%@subdirs@%$subdirs%g 1009 s%@subdirs@%$subdirs%g
1928 1010
1929 CEOF 1011 CEOF
1930 EOF 1012 EOF
1931 1013
2034 1116
2035 test -d tools || mkdir tools 1117 test -d tools || mkdir tools
2036 test -d tools/configtool || mkdir tools/configtool 1118 test -d tools/configtool || mkdir tools/configtool
2037 test -d tools/configtool/standalone || mkdir tools/configtool/standalone 1119 test -d tools/configtool/standalone || mkdir tools/configtool/standalone
2038 test -d tools/configtool/standalone/common || mkdir tools/configtool/standalone/common 1120 test -d tools/configtool/standalone/common || mkdir tools/configtool/standalone/common
2039 1121
2040 1122
2041 exit 0 1123 exit 0
2042 EOF 1124 EOF
2043 chmod +x $CONFIG_STATUS 1125 chmod +x $CONFIG_STATUS
2044 rm -fr confdefs* $ac_clean_files 1126 rm -fr confdefs* $ac_clean_files
2067 ;; 1149 ;;
2068 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; 1150 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2069 esac 1151 esac
2070 done 1152 done
2071 1153
2072 for ac_config_dir in ${ECOS_DIRS}; do 1154 for ac_config_dir in ${SUBDIRS}; do
2073 1155
2074 # Do not complain, so a configure script can configure whichever 1156 # Do not complain, so a configure script can configure whichever
2075 # parts of a large source tree are present. 1157 # parts of a large source tree are present.
2076 if test ! -d $srcdir/$ac_config_dir; then 1158 if test ! -d $srcdir/$ac_config_dir; then
2077 continue 1159 continue