diff options
author | Guido van Rossum <guido@python.org> | 1995-09-13 18:59:59 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-09-13 18:59:59 (GMT) |
commit | e77438cce039276f7ddec324058ddd392059a11b (patch) | |
tree | f98ab9b09879976ad2bbdc2c87d7eb205380dc99 | |
parent | 7c53b7773377e917bb9650e51c4d475dd3b991e6 (diff) | |
download | cpython-e77438cce039276f7ddec324058ddd392059a11b.zip cpython-e77438cce039276f7ddec324058ddd392059a11b.tar.gz cpython-e77438cce039276f7ddec324058ddd392059a11b.tar.bz2 |
new version from configure.in
-rwxr-xr-x | configure | 144 |
1 files changed, 77 insertions, 67 deletions
@@ -1,9 +1,9 @@ #! /bin/sh -# From configure.in Revision: 1.21 +# From configure.in Revision: 1.22 # Guess values for system-dependent variables and create Makefiles. -# Generated automatically using autoconf version 2.3 +# Generated automatically using autoconf version 2.4 # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc. # # This configure script is free software; the Free Software Foundation @@ -232,7 +232,7 @@ EOF verbose=yes ;; -version | --version | --versio | --versi | --vers) - echo "configure generated by autoconf version 2.3" + echo "configure generated by autoconf version 2.4" exit 0 ;; -with-* | --with-*) @@ -431,7 +431,12 @@ if test -n "$withval"; then without_gcc=$withval;; esac else - without_gcc=no + + case `uname -s` in + OSF1) CC=cc + without_gcc=;; + *) without_gcc=no;; + esac fi echo "$ac_t""$without_gcc" 1>&6 @@ -613,7 +618,7 @@ else # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext <<EOF -#line 617 "configure" +#line 622 "configure" #include "confdefs.h" #include <assert.h> Syntax Error @@ -627,7 +632,7 @@ else rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext <<EOF -#line 631 "configure" +#line 636 "configure" #include "confdefs.h" #include <assert.h> Syntax Error @@ -646,13 +651,15 @@ fi rm -f conftest* ac_cv_prog_CPP="$CPP" fi + CPP="$ac_cv_prog_CPP" +else + ac_cv_prog_CPP="$CPP" fi -CPP="$ac_cv_prog_CPP" echo "$ac_t""$CPP" 1>&6 echo $ac_n "checking for AIX""... $ac_c" 1>&6 cat > conftest.$ac_ext <<EOF -#line 656 "configure" +#line 663 "configure" #include "confdefs.h" #ifdef _AIX yes @@ -679,7 +686,7 @@ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 683 "configure" +#line 690 "configure" #include "confdefs.h" #include <minix/config.h> EOF @@ -729,7 +736,7 @@ else ac_cv_c_cross=yes else cat > conftest.$ac_ext <<EOF -#line 733 "configure" +#line 740 "configure" #include "confdefs.h" main(){return(0);} EOF @@ -750,7 +757,7 @@ if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 754 "configure" +#line 761 "configure" #include "confdefs.h" #include <stdlib.h> #include <stdarg.h> @@ -772,7 +779,7 @@ rm -f conftest* if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat > conftest.$ac_ext <<EOF -#line 776 "configure" +#line 783 "configure" #include "confdefs.h" #include <string.h> EOF @@ -790,7 +797,7 @@ fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat > conftest.$ac_ext <<EOF -#line 794 "configure" +#line 801 "configure" #include "confdefs.h" #include <stdlib.h> EOF @@ -811,7 +818,7 @@ if test "$cross_compiling" = yes; then ac_cv_header_stdc=no else cat > conftest.$ac_ext <<EOF -#line 815 "configure" +#line 822 "configure" #include "confdefs.h" #include <ctype.h> #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') @@ -848,7 +855,7 @@ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 852 "configure" +#line 859 "configure" #include "confdefs.h" #include <$ac_hdr> EOF @@ -885,7 +892,7 @@ if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 889 "configure" +#line 896 "configure" #include "confdefs.h" #include <sys/types.h> #include <$ac_hdr> @@ -924,7 +931,7 @@ else ac_save_LIBS="$LIBS" LIBS="-ldir $LIBS" cat > conftest.$ac_ext <<EOF -#line 928 "configure" +#line 935 "configure" #include "confdefs.h" int main() { return 0; } @@ -958,7 +965,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lx $LIBS" cat > conftest.$ac_ext <<EOF -#line 962 "configure" +#line 969 "configure" #include "confdefs.h" int main() { return 0; } @@ -991,7 +998,7 @@ fi was_it_defined=no echo $ac_n "checking for clock_t in time.h""... $ac_c" 1>&6 cat > conftest.$ac_ext <<EOF -#line 995 "configure" +#line 1002 "configure" #include "confdefs.h" #include <time.h> EOF @@ -1015,7 +1022,7 @@ if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1019 "configure" +#line 1026 "configure" #include "confdefs.h" #include <sys/types.h> #if STDC_HEADERS @@ -1046,7 +1053,7 @@ if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1050 "configure" +#line 1057 "configure" #include "confdefs.h" #include <sys/types.h> #if STDC_HEADERS @@ -1077,7 +1084,7 @@ if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1081 "configure" +#line 1088 "configure" #include "confdefs.h" #include <sys/types.h> #if STDC_HEADERS @@ -1108,7 +1115,7 @@ if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1112 "configure" +#line 1119 "configure" #include "confdefs.h" #include <sys/types.h> #include <signal.h> @@ -1145,7 +1152,7 @@ if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1149 "configure" +#line 1156 "configure" #include "confdefs.h" #include <sys/types.h> #if STDC_HEADERS @@ -1176,7 +1183,7 @@ if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1180 "configure" +#line 1187 "configure" #include "confdefs.h" #include <sys/types.h> EOF @@ -1209,8 +1216,11 @@ fi echo $ac_n "checking MACHDEP""... $ac_c" 1>&6 if test -z "$MACHDEP" then - ac_sys_system=`uname -s | tr -d ' ' | tr '[A-Z]' '[a-z]'` - ac_sys_release=`uname -r | tr -d ' ' | sed 's/\..*//'` + ac_sys_system=`uname -s | tr -d '[/ ]' | tr '[A-Z]' '[a-z]'` + ac_sys_release=`uname -r | tr -d '[/ ]' | sed 's/\..*//'` + ac_sys_cpu=`(uname -p 2>/dev/null || uname -m) | + tr '[A-Z]' '[-a-z]'` +## MACHDEP="$ac_sys_system$ac_sys_release$ac_sys_cpu" MACHDEP="$ac_sys_system$ac_sys_release" case MACHDEP in '') MACHDEP=unknown;; @@ -1288,7 +1298,7 @@ else ac_save_LIBS="$LIBS" LIBS="-ldl $LIBS" cat > conftest.$ac_ext <<EOF -#line 1292 "configure" +#line 1302 "configure" #include "confdefs.h" int main() { return 0; } @@ -1327,7 +1337,7 @@ else ac_save_LIBS="$LIBS" LIBS="-ldld $LIBS" cat > conftest.$ac_ext <<EOF -#line 1331 "configure" +#line 1341 "configure" #include "confdefs.h" int main() { return 0; } @@ -1366,7 +1376,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lsun $LIBS" cat > conftest.$ac_ext <<EOF -#line 1370 "configure" +#line 1380 "configure" #include "confdefs.h" int main() { return 0; } @@ -1413,7 +1423,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lnsl $LIBS" cat > conftest.$ac_ext <<EOF -#line 1417 "configure" +#line 1427 "configure" #include "confdefs.h" int main() { return 0; } @@ -1446,7 +1456,7 @@ else ac_save_LIBS="$LIBS" LIBS="-linet -lnsl $LIBS" cat > conftest.$ac_ext <<EOF -#line 1450 "configure" +#line 1460 "configure" #include "confdefs.h" int main() { return 0; } @@ -1479,7 +1489,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lsocket $LIBS $LIBS" cat > conftest.$ac_ext <<EOF -#line 1483 "configure" +#line 1493 "configure" #include "confdefs.h" int main() { return 0; } @@ -1528,7 +1538,7 @@ else ac_save_LIBS="$LIBS" LIBS="-ltermcap $LIBS" cat > conftest.$ac_ext <<EOF -#line 1532 "configure" +#line 1542 "configure" #include "confdefs.h" int main() { return 0; } @@ -1560,7 +1570,7 @@ else ac_save_LIBS="$LIBS" LIBS="-ltermlib $LIBS" cat > conftest.$ac_ext <<EOF -#line 1564 "configure" +#line 1574 "configure" #include "confdefs.h" int main() { return 0; } @@ -1619,7 +1629,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lpthreads $LIBS" cat > conftest.$ac_ext <<EOF -#line 1623 "configure" +#line 1633 "configure" #include "confdefs.h" int main() { return 0; } @@ -1661,7 +1671,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lmpc $LIBS" cat > conftest.$ac_ext <<EOF -#line 1665 "configure" +#line 1675 "configure" #include "confdefs.h" int main() { return 0; } @@ -1699,7 +1709,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lthread $LIBS" cat > conftest.$ac_ext <<EOF -#line 1703 "configure" +#line 1713 "configure" #include "confdefs.h" int main() { return 0; } @@ -1786,14 +1796,14 @@ fi # checks for library functions -for ac_func in chown clock dlopen ftime ftruncate gethostname_r gettimeofday getpeername getpgrp getpid getwd link lstat nice readlink select setgid setuid setsid setpgid setpgrp setvbuf siginterrupt symlink tcgetpgrp tcsetpgrp times truncate uname waitpid +for ac_func in chown clock dlopen ftime ftruncate gethostname_r gettimeofday getpeername getpgrp getpid getwd link lstat nice readlink select setgid setuid setsid setpgid setpgrp setvbuf siginterrupt strftime symlink tcgetpgrp tcsetpgrp times truncate uname waitpid do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1797 "configure" +#line 1807 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -1844,7 +1854,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1848 "configure" +#line 1858 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -1891,7 +1901,7 @@ if eval "test \"`echo '$''{'ac_cv_func_getpgrp'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1895 "configure" +#line 1905 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char getpgrp(); below. */ @@ -1926,7 +1936,7 @@ fi if eval "test \"`echo '$ac_cv_func_'getpgrp`\" = yes"; then echo "$ac_t""yes" 1>&6 cat > conftest.$ac_ext <<EOF -#line 1930 "configure" +#line 1940 "configure" #include "confdefs.h" #include <unistd.h> int main() { return 0; } @@ -1952,7 +1962,7 @@ if eval "test \"`echo '$''{'ac_cv_func_setpgrp'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1956 "configure" +#line 1966 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char setpgrp(); below. */ @@ -1987,7 +1997,7 @@ fi if eval "test \"`echo '$ac_cv_func_'setpgrp`\" = yes"; then echo "$ac_t""yes" 1>&6 cat > conftest.$ac_ext <<EOF -#line 1991 "configure" +#line 2001 "configure" #include "confdefs.h" #include <unistd.h> int main() { return 0; } @@ -2013,7 +2023,7 @@ if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 2017 "configure" +#line 2027 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char gettimeofday(); below. */ @@ -2048,7 +2058,7 @@ fi if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then echo "$ac_t""yes" 1>&6 cat > conftest.$ac_ext <<EOF -#line 2052 "configure" +#line 2062 "configure" #include "confdefs.h" #include <sys/time.h> int main() { return 0; } @@ -2078,7 +2088,7 @@ if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 2082 "configure" +#line 2092 "configure" #include "confdefs.h" #include <sys/types.h> #include <sys/time.h> @@ -2111,7 +2121,7 @@ if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 2115 "configure" +#line 2125 "configure" #include "confdefs.h" #include <sys/types.h> #include <time.h> @@ -2143,7 +2153,7 @@ if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 2147 "configure" +#line 2157 "configure" #include "confdefs.h" #include <sys/types.h> #include <$ac_cv_struct_tm> @@ -2174,7 +2184,7 @@ if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 2178 "configure" +#line 2188 "configure" #include "confdefs.h" #include <time.h> #ifndef tzname /* For SGI. */ @@ -2210,7 +2220,7 @@ if eval "test \"`echo '$''{'ac_cv_header_time_altzone'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 2214 "configure" +#line 2224 "configure" #include "confdefs.h" #include <time.h> int main() { return 0; } @@ -2240,7 +2250,7 @@ fi was_it_defined=no echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6 cat > conftest.$ac_ext <<EOF -#line 2244 "configure" +#line 2254 "configure" #include "confdefs.h" #include <sys/types.h> @@ -2272,7 +2282,7 @@ else if test "$GCC" = yes; then # GCC predefines this symbol on systems where it applies. cat > conftest.$ac_ext <<EOF -#line 2276 "configure" +#line 2286 "configure" #include "confdefs.h" #ifdef __CHAR_UNSIGNED__ yes @@ -2294,7 +2304,7 @@ if test "$cross_compiling" = yes; then { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext <<EOF -#line 2298 "configure" +#line 2308 "configure" #include "confdefs.h" /* volatile prevents gcc2 from optimizing the test away on sparcs. */ #if !defined(__STDC__) || __STDC__ != 1 @@ -2328,7 +2338,7 @@ if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 2332 "configure" +#line 2342 "configure" #include "confdefs.h" int main() { return 0; } @@ -2400,7 +2410,7 @@ fi works=no echo $ac_n "checking for working volatile""... $ac_c" 1>&6 cat > conftest.$ac_ext <<EOF -#line 2404 "configure" +#line 2414 "configure" #include "confdefs.h" int main() { return 0; } @@ -2425,7 +2435,7 @@ echo "$ac_t""$works" 1>&6 works=no echo $ac_n "checking for working signed char""... $ac_c" 1>&6 cat > conftest.$ac_ext <<EOF -#line 2429 "configure" +#line 2439 "configure" #include "confdefs.h" int main() { return 0; } @@ -2450,7 +2460,7 @@ echo "$ac_t""$works" 1>&6 have_prototypes=no echo $ac_n "checking for prototypes""... $ac_c" 1>&6 cat > conftest.$ac_ext <<EOF -#line 2454 "configure" +#line 2464 "configure" #include "confdefs.h" int foo(int x) { return 0; } int main() { return 0; } @@ -2472,7 +2482,7 @@ echo "$ac_t""$have_prototypes" 1>&6 works=no echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&6 cat > conftest.$ac_ext <<EOF -#line 2476 "configure" +#line 2486 "configure" #include "confdefs.h" #include <stdarg.h> @@ -2498,7 +2508,7 @@ if test "$have_prototypes" = yes; then bad_prototypes=no echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&6 cat > conftest.$ac_ext <<EOF -#line 2502 "configure" +#line 2512 "configure" #include "confdefs.h" #include <unistd.h> int main() { return 0; } @@ -2526,7 +2536,7 @@ if test "$cross_compiling" = yes; then { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext <<EOF -#line 2530 "configure" +#line 2540 "configure" #include "confdefs.h" struct s { int a; int b; }; @@ -2558,7 +2568,7 @@ echo "$ac_t""$bad_forward" 1>&6 va_list_is_array=no echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&6 cat > conftest.$ac_ext <<EOF -#line 2562 "configure" +#line 2572 "configure" #include "confdefs.h" #ifdef HAVE_STDARG_PROTOTYPES @@ -2596,7 +2606,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lieee $LIBS" cat > conftest.$ac_ext <<EOF -#line 2600 "configure" +#line 2610 "configure" #include "confdefs.h" int main() { return 0; } @@ -2666,7 +2676,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 2670 "configure" +#line 2680 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -2721,7 +2731,7 @@ else ac_cv_func_getopt=no else cat > conftest.$ac_ext <<EOF -#line 2725 "configure" +#line 2735 "configure" #include "confdefs.h" #include <stdio.h> extern int optind, opterr, getopt(); @@ -2822,7 +2832,7 @@ do echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; -version | --version | --versio | --versi | --vers | --ver | --ve | --v) - echo "$CONFIG_STATUS generated by autoconf version 2.3" + echo "$CONFIG_STATUS generated by autoconf version 2.4" exit 0 ;; -help | --help | --hel | --he | --h) echo "\$ac_cs_usage"; exit 0 ;; |