Mercurial > hg > CbC > CbC_gcc
comparison fixincludes/configure @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | f6334be47118 |
children | 84e7813d76e9 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
588 # include <unistd.h> | 588 # include <unistd.h> |
589 #endif" | 589 #endif" |
590 | 590 |
591 ac_subst_vars='LTLIBOBJS | 591 ac_subst_vars='LTLIBOBJS |
592 LIBOBJS | 592 LIBOBJS |
593 get_gcc_base_ver | |
593 MAINT | 594 MAINT |
594 EGREP | |
595 GREP | |
596 CPP | |
597 TARGET | 595 TARGET |
598 target_noncanonical | 596 target_noncanonical |
599 WERROR | 597 WERROR |
600 WARN_PEDANTIC | 598 WARN_PEDANTIC |
601 WARN_CFLAGS | 599 WARN_CFLAGS |
602 SED | 600 SED |
601 EGREP | |
602 GREP | |
603 CPP | |
603 OBJEXT | 604 OBJEXT |
604 EXEEXT | 605 EXEEXT |
605 ac_ct_CC | 606 ac_ct_CC |
606 CPPFLAGS | 607 CPPFLAGS |
607 LDFLAGS | 608 LDFLAGS |
662 enable_option_checking | 663 enable_option_checking |
663 enable_werror_always | 664 enable_werror_always |
664 with_local_prefix | 665 with_local_prefix |
665 enable_twoprocess | 666 enable_twoprocess |
666 enable_maintainer_mode | 667 enable_maintainer_mode |
668 with_gcc_major_version_only | |
667 ' | 669 ' |
668 ac_precious_vars='build_alias | 670 ac_precious_vars='build_alias |
669 host_alias | 671 host_alias |
670 target_alias | 672 target_alias |
671 CC | 673 CC |
1296 | 1298 |
1297 Optional Packages: | 1299 Optional Packages: |
1298 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | 1300 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1299 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | 1301 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1300 --with-local-prefix=DIR specifies directory to put local include | 1302 --with-local-prefix=DIR specifies directory to put local include |
1303 --with-gcc-major-version-only | |
1304 use only GCC major number in filesystem paths | |
1301 | 1305 |
1302 Some influential environment variables: | 1306 Some influential environment variables: |
1303 CC C compiler command | 1307 CC C compiler command |
1304 CFLAGS C compiler flags | 1308 CFLAGS C compiler flags |
1305 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | 1309 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1461 fi | 1465 fi |
1462 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 1466 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1463 return $ac_retval | 1467 return $ac_retval |
1464 | 1468 |
1465 } # ac_fn_c_try_cpp | 1469 } # ac_fn_c_try_cpp |
1470 | |
1471 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1472 # ------------------------------------------------------- | |
1473 # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1474 # the include files in INCLUDES and setting the cache variable VAR | |
1475 # accordingly. | |
1476 ac_fn_c_check_header_mongrel () | |
1477 { | |
1478 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1479 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1481 $as_echo_n "checking for $2... " >&6; } | |
1482 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1483 $as_echo_n "(cached) " >&6 | |
1484 fi | |
1485 eval ac_res=\$$3 | |
1486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1487 $as_echo "$ac_res" >&6; } | |
1488 else | |
1489 # Is the header compilable? | |
1490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1491 $as_echo_n "checking $2 usability... " >&6; } | |
1492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1493 /* end confdefs.h. */ | |
1494 $4 | |
1495 #include <$2> | |
1496 _ACEOF | |
1497 if ac_fn_c_try_compile "$LINENO"; then : | |
1498 ac_header_compiler=yes | |
1499 else | |
1500 ac_header_compiler=no | |
1501 fi | |
1502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1504 $as_echo "$ac_header_compiler" >&6; } | |
1505 | |
1506 # Is the header present? | |
1507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1508 $as_echo_n "checking $2 presence... " >&6; } | |
1509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1510 /* end confdefs.h. */ | |
1511 #include <$2> | |
1512 _ACEOF | |
1513 if ac_fn_c_try_cpp "$LINENO"; then : | |
1514 ac_header_preproc=yes | |
1515 else | |
1516 ac_header_preproc=no | |
1517 fi | |
1518 rm -f conftest.err conftest.$ac_ext | |
1519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1520 $as_echo "$ac_header_preproc" >&6; } | |
1521 | |
1522 # So? What about this header? | |
1523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1524 yes:no: ) | |
1525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1526 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1528 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1529 ;; | |
1530 no:yes:* ) | |
1531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1532 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1534 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1536 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1538 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1540 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1541 ;; | |
1542 esac | |
1543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1544 $as_echo_n "checking for $2... " >&6; } | |
1545 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1546 $as_echo_n "(cached) " >&6 | |
1547 else | |
1548 eval "$3=\$ac_header_compiler" | |
1549 fi | |
1550 eval ac_res=\$$3 | |
1551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1552 $as_echo "$ac_res" >&6; } | |
1553 fi | |
1554 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1555 | |
1556 } # ac_fn_c_check_header_mongrel | |
1466 | 1557 |
1467 # ac_fn_c_try_run LINENO | 1558 # ac_fn_c_try_run LINENO |
1468 # ---------------------- | 1559 # ---------------------- |
1469 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | 1560 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
1470 # that executables *can* be run. | 1561 # that executables *can* be run. |
1503 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 1594 rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1504 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 1595 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1505 return $ac_retval | 1596 return $ac_retval |
1506 | 1597 |
1507 } # ac_fn_c_try_run | 1598 } # ac_fn_c_try_run |
1508 | |
1509 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1510 # ------------------------------------------------------- | |
1511 # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1512 # the include files in INCLUDES and setting the cache variable VAR | |
1513 # accordingly. | |
1514 ac_fn_c_check_header_mongrel () | |
1515 { | |
1516 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1517 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1519 $as_echo_n "checking for $2... " >&6; } | |
1520 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1521 $as_echo_n "(cached) " >&6 | |
1522 fi | |
1523 eval ac_res=\$$3 | |
1524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1525 $as_echo "$ac_res" >&6; } | |
1526 else | |
1527 # Is the header compilable? | |
1528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1529 $as_echo_n "checking $2 usability... " >&6; } | |
1530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1531 /* end confdefs.h. */ | |
1532 $4 | |
1533 #include <$2> | |
1534 _ACEOF | |
1535 if ac_fn_c_try_compile "$LINENO"; then : | |
1536 ac_header_compiler=yes | |
1537 else | |
1538 ac_header_compiler=no | |
1539 fi | |
1540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1542 $as_echo "$ac_header_compiler" >&6; } | |
1543 | |
1544 # Is the header present? | |
1545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1546 $as_echo_n "checking $2 presence... " >&6; } | |
1547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1548 /* end confdefs.h. */ | |
1549 #include <$2> | |
1550 _ACEOF | |
1551 if ac_fn_c_try_cpp "$LINENO"; then : | |
1552 ac_header_preproc=yes | |
1553 else | |
1554 ac_header_preproc=no | |
1555 fi | |
1556 rm -f conftest.err conftest.$ac_ext | |
1557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1558 $as_echo "$ac_header_preproc" >&6; } | |
1559 | |
1560 # So? What about this header? | |
1561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1562 yes:no: ) | |
1563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1564 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1566 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1567 ;; | |
1568 no:yes:* ) | |
1569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1570 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1572 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1574 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1576 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1578 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1579 ;; | |
1580 esac | |
1581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1582 $as_echo_n "checking for $2... " >&6; } | |
1583 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1584 $as_echo_n "(cached) " >&6 | |
1585 else | |
1586 eval "$3=\$ac_header_compiler" | |
1587 fi | |
1588 eval ac_res=\$$3 | |
1589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1590 $as_echo "$ac_res" >&6; } | |
1591 fi | |
1592 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1593 | |
1594 } # ac_fn_c_check_header_mongrel | |
1595 | 1599 |
1596 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | 1600 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1597 # ------------------------------------------------------- | 1601 # ------------------------------------------------------- |
1598 # Tests whether HEADER exists and can be compiled using the include files in | 1602 # Tests whether HEADER exists and can be compiled using the include files in |
1599 # INCLUDES, setting the cache variable VAR accordingly. | 1603 # INCLUDES, setting the cache variable VAR accordingly. |
4026 ac_cpp='$CPP $CPPFLAGS' | 4030 ac_cpp='$CPP $CPPFLAGS' |
4027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 4031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 4032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4029 ac_compiler_gnu=$ac_cv_c_compiler_gnu | 4033 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4030 | 4034 |
4035 | |
4036 ac_ext=c | |
4037 ac_cpp='$CPP $CPPFLAGS' | |
4038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4040 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
4042 $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
4043 # On Suns, sometimes $CPP names a directory. | |
4044 if test -n "$CPP" && test -d "$CPP"; then | |
4045 CPP= | |
4046 fi | |
4047 if test -z "$CPP"; then | |
4048 if test "${ac_cv_prog_CPP+set}" = set; then : | |
4049 $as_echo_n "(cached) " >&6 | |
4050 else | |
4051 # Double quotes because CPP needs to be expanded | |
4052 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4053 do | |
4054 ac_preproc_ok=false | |
4055 for ac_c_preproc_warn_flag in '' yes | |
4056 do | |
4057 # Use a header file that comes with gcc, so configuring glibc | |
4058 # with a fresh cross-compiler works. | |
4059 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4060 # <limits.h> exists even on freestanding compilers. | |
4061 # On the NeXT, cc -E runs the code through the compiler's parser, | |
4062 # not just through cpp. "Syntax error" is here to catch this case. | |
4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4064 /* end confdefs.h. */ | |
4065 #ifdef __STDC__ | |
4066 # include <limits.h> | |
4067 #else | |
4068 # include <assert.h> | |
4069 #endif | |
4070 Syntax error | |
4071 _ACEOF | |
4072 if ac_fn_c_try_cpp "$LINENO"; then : | |
4073 | |
4074 else | |
4075 # Broken: fails on valid input. | |
4076 continue | |
4077 fi | |
4078 rm -f conftest.err conftest.$ac_ext | |
4079 | |
4080 # OK, works on sane cases. Now check whether nonexistent headers | |
4081 # can be detected and how. | |
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4083 /* end confdefs.h. */ | |
4084 #include <ac_nonexistent.h> | |
4085 _ACEOF | |
4086 if ac_fn_c_try_cpp "$LINENO"; then : | |
4087 # Broken: success on invalid input. | |
4088 continue | |
4089 else | |
4090 # Passes both tests. | |
4091 ac_preproc_ok=: | |
4092 break | |
4093 fi | |
4094 rm -f conftest.err conftest.$ac_ext | |
4095 | |
4096 done | |
4097 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4098 rm -f conftest.err conftest.$ac_ext | |
4099 if $ac_preproc_ok; then : | |
4100 break | |
4101 fi | |
4102 | |
4103 done | |
4104 ac_cv_prog_CPP=$CPP | |
4105 | |
4106 fi | |
4107 CPP=$ac_cv_prog_CPP | |
4108 else | |
4109 ac_cv_prog_CPP=$CPP | |
4110 fi | |
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
4112 $as_echo "$CPP" >&6; } | |
4113 ac_preproc_ok=false | |
4114 for ac_c_preproc_warn_flag in '' yes | |
4115 do | |
4116 # Use a header file that comes with gcc, so configuring glibc | |
4117 # with a fresh cross-compiler works. | |
4118 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4119 # <limits.h> exists even on freestanding compilers. | |
4120 # On the NeXT, cc -E runs the code through the compiler's parser, | |
4121 # not just through cpp. "Syntax error" is here to catch this case. | |
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4123 /* end confdefs.h. */ | |
4124 #ifdef __STDC__ | |
4125 # include <limits.h> | |
4126 #else | |
4127 # include <assert.h> | |
4128 #endif | |
4129 Syntax error | |
4130 _ACEOF | |
4131 if ac_fn_c_try_cpp "$LINENO"; then : | |
4132 | |
4133 else | |
4134 # Broken: fails on valid input. | |
4135 continue | |
4136 fi | |
4137 rm -f conftest.err conftest.$ac_ext | |
4138 | |
4139 # OK, works on sane cases. Now check whether nonexistent headers | |
4140 # can be detected and how. | |
4141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4142 /* end confdefs.h. */ | |
4143 #include <ac_nonexistent.h> | |
4144 _ACEOF | |
4145 if ac_fn_c_try_cpp "$LINENO"; then : | |
4146 # Broken: success on invalid input. | |
4147 continue | |
4148 else | |
4149 # Passes both tests. | |
4150 ac_preproc_ok=: | |
4151 break | |
4152 fi | |
4153 rm -f conftest.err conftest.$ac_ext | |
4154 | |
4155 done | |
4156 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4157 rm -f conftest.err conftest.$ac_ext | |
4158 if $ac_preproc_ok; then : | |
4159 | |
4160 else | |
4161 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4163 as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
4164 See \`config.log' for more details." "$LINENO" 5; } | |
4165 fi | |
4166 | |
4167 ac_ext=c | |
4168 ac_cpp='$CPP $CPPFLAGS' | |
4169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4171 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4172 | |
4173 | |
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4175 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4176 if test "${ac_cv_path_GREP+set}" = set; then : | |
4177 $as_echo_n "(cached) " >&6 | |
4178 else | |
4179 if test -z "$GREP"; then | |
4180 ac_path_GREP_found=false | |
4181 # Loop through the user's path and test for each of PROGNAME-LIST | |
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4183 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4184 do | |
4185 IFS=$as_save_IFS | |
4186 test -z "$as_dir" && as_dir=. | |
4187 for ac_prog in grep ggrep; do | |
4188 for ac_exec_ext in '' $ac_executable_extensions; do | |
4189 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4190 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
4191 # Check for GNU ac_path_GREP and select it if it is found. | |
4192 # Check for GNU $ac_path_GREP | |
4193 case `"$ac_path_GREP" --version 2>&1` in | |
4194 *GNU*) | |
4195 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4196 *) | |
4197 ac_count=0 | |
4198 $as_echo_n 0123456789 >"conftest.in" | |
4199 while : | |
4200 do | |
4201 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4202 mv "conftest.tmp" "conftest.in" | |
4203 cp "conftest.in" "conftest.nl" | |
4204 $as_echo 'GREP' >> "conftest.nl" | |
4205 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4206 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4207 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4208 if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4209 # Best one so far, save it but keep looking for a better one | |
4210 ac_cv_path_GREP="$ac_path_GREP" | |
4211 ac_path_GREP_max=$ac_count | |
4212 fi | |
4213 # 10*(2^10) chars as input seems more than enough | |
4214 test $ac_count -gt 10 && break | |
4215 done | |
4216 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4217 esac | |
4218 | |
4219 $ac_path_GREP_found && break 3 | |
4220 done | |
4221 done | |
4222 done | |
4223 IFS=$as_save_IFS | |
4224 if test -z "$ac_cv_path_GREP"; then | |
4225 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4226 fi | |
4227 else | |
4228 ac_cv_path_GREP=$GREP | |
4229 fi | |
4230 | |
4231 fi | |
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4233 $as_echo "$ac_cv_path_GREP" >&6; } | |
4234 GREP="$ac_cv_path_GREP" | |
4235 | |
4236 | |
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4238 $as_echo_n "checking for egrep... " >&6; } | |
4239 if test "${ac_cv_path_EGREP+set}" = set; then : | |
4240 $as_echo_n "(cached) " >&6 | |
4241 else | |
4242 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4243 then ac_cv_path_EGREP="$GREP -E" | |
4244 else | |
4245 if test -z "$EGREP"; then | |
4246 ac_path_EGREP_found=false | |
4247 # Loop through the user's path and test for each of PROGNAME-LIST | |
4248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4249 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4250 do | |
4251 IFS=$as_save_IFS | |
4252 test -z "$as_dir" && as_dir=. | |
4253 for ac_prog in egrep; do | |
4254 for ac_exec_ext in '' $ac_executable_extensions; do | |
4255 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4256 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4257 # Check for GNU ac_path_EGREP and select it if it is found. | |
4258 # Check for GNU $ac_path_EGREP | |
4259 case `"$ac_path_EGREP" --version 2>&1` in | |
4260 *GNU*) | |
4261 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4262 *) | |
4263 ac_count=0 | |
4264 $as_echo_n 0123456789 >"conftest.in" | |
4265 while : | |
4266 do | |
4267 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4268 mv "conftest.tmp" "conftest.in" | |
4269 cp "conftest.in" "conftest.nl" | |
4270 $as_echo 'EGREP' >> "conftest.nl" | |
4271 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4272 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4273 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4274 if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4275 # Best one so far, save it but keep looking for a better one | |
4276 ac_cv_path_EGREP="$ac_path_EGREP" | |
4277 ac_path_EGREP_max=$ac_count | |
4278 fi | |
4279 # 10*(2^10) chars as input seems more than enough | |
4280 test $ac_count -gt 10 && break | |
4281 done | |
4282 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4283 esac | |
4284 | |
4285 $ac_path_EGREP_found && break 3 | |
4286 done | |
4287 done | |
4288 done | |
4289 IFS=$as_save_IFS | |
4290 if test -z "$ac_cv_path_EGREP"; then | |
4291 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4292 fi | |
4293 else | |
4294 ac_cv_path_EGREP=$EGREP | |
4295 fi | |
4296 | |
4297 fi | |
4298 fi | |
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4300 $as_echo "$ac_cv_path_EGREP" >&6; } | |
4301 EGREP="$ac_cv_path_EGREP" | |
4302 | |
4303 | |
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4305 $as_echo_n "checking for ANSI C header files... " >&6; } | |
4306 if test "${ac_cv_header_stdc+set}" = set; then : | |
4307 $as_echo_n "(cached) " >&6 | |
4308 else | |
4309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4310 /* end confdefs.h. */ | |
4311 #include <stdlib.h> | |
4312 #include <stdarg.h> | |
4313 #include <string.h> | |
4314 #include <float.h> | |
4315 | |
4316 int | |
4317 main () | |
4318 { | |
4319 | |
4320 ; | |
4321 return 0; | |
4322 } | |
4323 _ACEOF | |
4324 if ac_fn_c_try_compile "$LINENO"; then : | |
4325 ac_cv_header_stdc=yes | |
4326 else | |
4327 ac_cv_header_stdc=no | |
4328 fi | |
4329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4330 | |
4331 if test $ac_cv_header_stdc = yes; then | |
4332 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4334 /* end confdefs.h. */ | |
4335 #include <string.h> | |
4336 | |
4337 _ACEOF | |
4338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4339 $EGREP "memchr" >/dev/null 2>&1; then : | |
4340 | |
4341 else | |
4342 ac_cv_header_stdc=no | |
4343 fi | |
4344 rm -f conftest* | |
4345 | |
4346 fi | |
4347 | |
4348 if test $ac_cv_header_stdc = yes; then | |
4349 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4351 /* end confdefs.h. */ | |
4352 #include <stdlib.h> | |
4353 | |
4354 _ACEOF | |
4355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4356 $EGREP "free" >/dev/null 2>&1; then : | |
4357 | |
4358 else | |
4359 ac_cv_header_stdc=no | |
4360 fi | |
4361 rm -f conftest* | |
4362 | |
4363 fi | |
4364 | |
4365 if test $ac_cv_header_stdc = yes; then | |
4366 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4367 if test "$cross_compiling" = yes; then : | |
4368 : | |
4369 else | |
4370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4371 /* end confdefs.h. */ | |
4372 #include <ctype.h> | |
4373 #include <stdlib.h> | |
4374 #if ((' ' & 0x0FF) == 0x020) | |
4375 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4376 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4377 #else | |
4378 # define ISLOWER(c) \ | |
4379 (('a' <= (c) && (c) <= 'i') \ | |
4380 || ('j' <= (c) && (c) <= 'r') \ | |
4381 || ('s' <= (c) && (c) <= 'z')) | |
4382 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4383 #endif | |
4384 | |
4385 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4386 int | |
4387 main () | |
4388 { | |
4389 int i; | |
4390 for (i = 0; i < 256; i++) | |
4391 if (XOR (islower (i), ISLOWER (i)) | |
4392 || toupper (i) != TOUPPER (i)) | |
4393 return 2; | |
4394 return 0; | |
4395 } | |
4396 _ACEOF | |
4397 if ac_fn_c_try_run "$LINENO"; then : | |
4398 | |
4399 else | |
4400 ac_cv_header_stdc=no | |
4401 fi | |
4402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
4403 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4404 fi | |
4405 | |
4406 fi | |
4407 fi | |
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
4409 $as_echo "$ac_cv_header_stdc" >&6; } | |
4410 if test $ac_cv_header_stdc = yes; then | |
4411 | |
4412 $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
4413 | |
4414 fi | |
4415 | |
4416 # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4417 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4418 inttypes.h stdint.h unistd.h | |
4419 do : | |
4420 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4421 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4422 " | |
4423 eval as_val=\$$as_ac_Header | |
4424 if test "x$as_val" = x""yes; then : | |
4425 cat >>confdefs.h <<_ACEOF | |
4426 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4427 _ACEOF | |
4428 | |
4429 fi | |
4430 | |
4431 done | |
4432 | |
4433 | |
4434 | |
4435 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
4436 if test "x$ac_cv_header_minix_config_h" = x""yes; then : | |
4437 MINIX=yes | |
4438 else | |
4439 MINIX= | |
4440 fi | |
4441 | |
4442 | |
4443 if test "$MINIX" = yes; then | |
4444 | |
4445 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
4446 | |
4447 | |
4448 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
4449 | |
4450 | |
4451 $as_echo "#define _MINIX 1" >>confdefs.h | |
4452 | |
4453 fi | |
4454 | |
4455 | |
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
4457 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
4458 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | |
4459 $as_echo_n "(cached) " >&6 | |
4460 else | |
4461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4462 /* end confdefs.h. */ | |
4463 | |
4464 # define __EXTENSIONS__ 1 | |
4465 $ac_includes_default | |
4466 int | |
4467 main () | |
4468 { | |
4469 | |
4470 ; | |
4471 return 0; | |
4472 } | |
4473 _ACEOF | |
4474 if ac_fn_c_try_compile "$LINENO"; then : | |
4475 ac_cv_safe_to_define___extensions__=yes | |
4476 else | |
4477 ac_cv_safe_to_define___extensions__=no | |
4478 fi | |
4479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4480 fi | |
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
4482 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
4483 test $ac_cv_safe_to_define___extensions__ = yes && | |
4484 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
4485 | |
4486 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | |
4487 | |
4488 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
4489 | |
4490 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
4491 | |
4492 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
4493 | |
4494 | |
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | 4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
4032 $as_echo_n "checking for a sed that does not truncate output... " >&6; } | 4496 $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
4033 if test "${ac_cv_path_SED+set}" = set; then : | 4497 if test "${ac_cv_path_SED+set}" = set; then : |
4034 $as_echo_n "(cached) " >&6 | 4498 $as_echo_n "(cached) " >&6 |
4035 else | 4499 else |
4099 | 4563 |
4100 | 4564 |
4101 # Figure out what compiler warnings we can enable. | 4565 # Figure out what compiler warnings we can enable. |
4102 # See config/warnings.m4 for details. | 4566 # See config/warnings.m4 for details. |
4103 | 4567 |
4568 ac_ext=c | |
4569 ac_cpp='$CPP $CPPFLAGS' | |
4570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4572 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4104 | 4573 |
4105 WARN_CFLAGS= | 4574 WARN_CFLAGS= |
4106 save_CFLAGS="$CFLAGS" | 4575 save_CFLAGS="$CFLAGS" |
4107 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \ | 4576 for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \ |
4108 -Wmissing-prototypes -Wold-style-definition \ | 4577 -Wmissing-prototypes -Wold-style-definition \ |
4109 -Wmissing-format-attribute -Wno-overlength-strings; do | 4578 -Wmissing-format-attribute -Wno-overlength-strings; do |
4579 # Do the check with the no- prefix removed since gcc silently | |
4580 # accepts any -Wno-* option on purpose | |
4581 case $real_option in | |
4582 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; | |
4583 *) option=$real_option ;; | |
4584 esac | |
4110 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` | 4585 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` |
4111 | 4586 |
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 | 4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 |
4113 $as_echo_n "checking whether $CC supports $option... " >&6; } | 4588 $as_echo_n "checking whether $CC supports $option... " >&6; } |
4114 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then : | 4589 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then : |
4136 fi | 4611 fi |
4137 eval ac_res=\$$as_acx_Woption | 4612 eval ac_res=\$$as_acx_Woption |
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
4139 $as_echo "$ac_res" >&6; } | 4614 $as_echo "$ac_res" >&6; } |
4140 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : | 4615 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : |
4141 WARN_CFLAGS="$WARN_CFLAGS${WARN_CFLAGS:+ }$option" | 4616 WARN_CFLAGS="$WARN_CFLAGS${WARN_CFLAGS:+ }$real_option" |
4142 fi | 4617 fi |
4143 done | 4618 done |
4144 CFLAGS="$save_CFLAGS" | 4619 CFLAGS="$save_CFLAGS" |
4620 ac_ext=c | |
4621 ac_cpp='$CPP $CPPFLAGS' | |
4622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4624 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4625 | |
4626 | |
4627 ac_ext=c | |
4628 ac_cpp='$CPP $CPPFLAGS' | |
4629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4631 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4145 | 4632 |
4146 WARN_PEDANTIC= | 4633 WARN_PEDANTIC= |
4634 # Do the check with the no- prefix removed from the warning options | |
4635 # since gcc silently accepts any -Wno-* option on purpose | |
4147 if test "$GCC" = yes; then : | 4636 if test "$GCC" = yes; then : |
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long" >&5 | 4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5 |
4149 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long... " >&6; } | 4638 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; } |
4150 if test "${acx_cv_prog_cc_pedantic__Wno_long_long+set}" = set; then : | 4639 if test "${acx_cv_prog_cc_pedantic__Wlong_long+set}" = set; then : |
4151 $as_echo_n "(cached) " >&6 | 4640 $as_echo_n "(cached) " >&6 |
4152 else | 4641 else |
4153 save_CFLAGS="$CFLAGS" | 4642 save_CFLAGS="$CFLAGS" |
4154 CFLAGS="-pedantic -Wno-long-long" | 4643 CFLAGS="-pedantic -Wlong-long" |
4155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 4644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4156 /* end confdefs.h. */ | 4645 /* end confdefs.h. */ |
4157 | 4646 |
4158 int | 4647 int |
4159 main () | 4648 main () |
4162 ; | 4651 ; |
4163 return 0; | 4652 return 0; |
4164 } | 4653 } |
4165 _ACEOF | 4654 _ACEOF |
4166 if ac_fn_c_try_compile "$LINENO"; then : | 4655 if ac_fn_c_try_compile "$LINENO"; then : |
4167 acx_cv_prog_cc_pedantic__Wno_long_long=yes | 4656 acx_cv_prog_cc_pedantic__Wlong_long=yes |
4168 else | 4657 else |
4169 acx_cv_prog_cc_pedantic__Wno_long_long=no | 4658 acx_cv_prog_cc_pedantic__Wlong_long=no |
4170 fi | 4659 fi |
4171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 4660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4172 CFLAGS="$save_CFLAGS" | 4661 CFLAGS="$save_CFLAGS" |
4173 fi | 4662 fi |
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long" >&5 | 4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5 |
4175 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long" >&6; } | 4664 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; } |
4176 if test $acx_cv_prog_cc_pedantic__Wno_long_long = yes; then : | 4665 if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then : |
4177 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long" | 4666 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long" |
4178 fi | 4667 fi |
4179 | 4668 |
4180 fi | 4669 fi |
4670 ac_ext=c | |
4671 ac_cpp='$CPP $CPPFLAGS' | |
4672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4674 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4675 | |
4181 | 4676 |
4182 | 4677 |
4183 # Only enable with --enable-werror-always until existing warnings are | 4678 # Only enable with --enable-werror-always until existing warnings are |
4184 # corrected. | 4679 # corrected. |
4680 ac_ext=c | |
4681 ac_cpp='$CPP $CPPFLAGS' | |
4682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4684 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4685 | |
4185 WERROR= | 4686 WERROR= |
4186 # Check whether --enable-werror-always was given. | 4687 # Check whether --enable-werror-always was given. |
4187 if test "${enable_werror_always+set}" = set; then : | 4688 if test "${enable_werror_always+set}" = set; then : |
4188 enableval=$enable_werror_always; | 4689 enableval=$enable_werror_always; |
4189 else | 4690 else |
4191 fi | 4692 fi |
4192 | 4693 |
4193 if test $enable_werror_always = yes; then : | 4694 if test $enable_werror_always = yes; then : |
4194 WERROR="$WERROR${WERROR:+ }-Werror" | 4695 WERROR="$WERROR${WERROR:+ }-Werror" |
4195 fi | 4696 fi |
4697 | |
4698 ac_ext=c | |
4699 ac_cpp='$CPP $CPPFLAGS' | |
4700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4702 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4196 | 4703 |
4197 | 4704 |
4198 | 4705 |
4199 # Determine the noncanonical target name, for directory use. | 4706 # Determine the noncanonical target name, for directory use. |
4200 case ${build_alias} in | 4707 case ${build_alias} in |
4246 else | 4753 else |
4247 case $host in | 4754 case $host in |
4248 i?86-*-msdosdjgpp* | \ | 4755 i?86-*-msdosdjgpp* | \ |
4249 i?86-*-mingw32* | \ | 4756 i?86-*-mingw32* | \ |
4250 x86_64-*-mingw32* | \ | 4757 x86_64-*-mingw32* | \ |
4251 *-*-beos* ) | 4758 *-*-beos* | \ |
4759 *-*-*vms*) | |
4252 TARGET=twoprocess | 4760 TARGET=twoprocess |
4253 ;; | 4761 ;; |
4254 | 4762 |
4255 * ) | 4763 * ) |
4256 TARGET=oneprocess | 4764 TARGET=oneprocess |
4282 #define EXE_EXT "$ac_exeext" | 4790 #define EXE_EXT "$ac_exeext" |
4283 _ACEOF | 4791 _ACEOF |
4284 | 4792 |
4285 | 4793 |
4286 # Checks for header files. | 4794 # Checks for header files. |
4287 ac_ext=c | |
4288 ac_cpp='$CPP $CPPFLAGS' | |
4289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4291 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
4293 $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
4294 # On Suns, sometimes $CPP names a directory. | |
4295 if test -n "$CPP" && test -d "$CPP"; then | |
4296 CPP= | |
4297 fi | |
4298 if test -z "$CPP"; then | |
4299 if test "${ac_cv_prog_CPP+set}" = set; then : | |
4300 $as_echo_n "(cached) " >&6 | |
4301 else | |
4302 # Double quotes because CPP needs to be expanded | |
4303 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4304 do | |
4305 ac_preproc_ok=false | |
4306 for ac_c_preproc_warn_flag in '' yes | |
4307 do | |
4308 # Use a header file that comes with gcc, so configuring glibc | |
4309 # with a fresh cross-compiler works. | |
4310 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4311 # <limits.h> exists even on freestanding compilers. | |
4312 # On the NeXT, cc -E runs the code through the compiler's parser, | |
4313 # not just through cpp. "Syntax error" is here to catch this case. | |
4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4315 /* end confdefs.h. */ | |
4316 #ifdef __STDC__ | |
4317 # include <limits.h> | |
4318 #else | |
4319 # include <assert.h> | |
4320 #endif | |
4321 Syntax error | |
4322 _ACEOF | |
4323 if ac_fn_c_try_cpp "$LINENO"; then : | |
4324 | |
4325 else | |
4326 # Broken: fails on valid input. | |
4327 continue | |
4328 fi | |
4329 rm -f conftest.err conftest.$ac_ext | |
4330 | |
4331 # OK, works on sane cases. Now check whether nonexistent headers | |
4332 # can be detected and how. | |
4333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4334 /* end confdefs.h. */ | |
4335 #include <ac_nonexistent.h> | |
4336 _ACEOF | |
4337 if ac_fn_c_try_cpp "$LINENO"; then : | |
4338 # Broken: success on invalid input. | |
4339 continue | |
4340 else | |
4341 # Passes both tests. | |
4342 ac_preproc_ok=: | |
4343 break | |
4344 fi | |
4345 rm -f conftest.err conftest.$ac_ext | |
4346 | |
4347 done | |
4348 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4349 rm -f conftest.err conftest.$ac_ext | |
4350 if $ac_preproc_ok; then : | |
4351 break | |
4352 fi | |
4353 | |
4354 done | |
4355 ac_cv_prog_CPP=$CPP | |
4356 | |
4357 fi | |
4358 CPP=$ac_cv_prog_CPP | |
4359 else | |
4360 ac_cv_prog_CPP=$CPP | |
4361 fi | |
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
4363 $as_echo "$CPP" >&6; } | |
4364 ac_preproc_ok=false | |
4365 for ac_c_preproc_warn_flag in '' yes | |
4366 do | |
4367 # Use a header file that comes with gcc, so configuring glibc | |
4368 # with a fresh cross-compiler works. | |
4369 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4370 # <limits.h> exists even on freestanding compilers. | |
4371 # On the NeXT, cc -E runs the code through the compiler's parser, | |
4372 # not just through cpp. "Syntax error" is here to catch this case. | |
4373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4374 /* end confdefs.h. */ | |
4375 #ifdef __STDC__ | |
4376 # include <limits.h> | |
4377 #else | |
4378 # include <assert.h> | |
4379 #endif | |
4380 Syntax error | |
4381 _ACEOF | |
4382 if ac_fn_c_try_cpp "$LINENO"; then : | |
4383 | |
4384 else | |
4385 # Broken: fails on valid input. | |
4386 continue | |
4387 fi | |
4388 rm -f conftest.err conftest.$ac_ext | |
4389 | |
4390 # OK, works on sane cases. Now check whether nonexistent headers | |
4391 # can be detected and how. | |
4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4393 /* end confdefs.h. */ | |
4394 #include <ac_nonexistent.h> | |
4395 _ACEOF | |
4396 if ac_fn_c_try_cpp "$LINENO"; then : | |
4397 # Broken: success on invalid input. | |
4398 continue | |
4399 else | |
4400 # Passes both tests. | |
4401 ac_preproc_ok=: | |
4402 break | |
4403 fi | |
4404 rm -f conftest.err conftest.$ac_ext | |
4405 | |
4406 done | |
4407 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4408 rm -f conftest.err conftest.$ac_ext | |
4409 if $ac_preproc_ok; then : | |
4410 | |
4411 else | |
4412 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4413 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4414 as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
4415 See \`config.log' for more details." "$LINENO" 5; } | |
4416 fi | |
4417 | |
4418 ac_ext=c | |
4419 ac_cpp='$CPP $CPPFLAGS' | |
4420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4422 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4423 | |
4424 | |
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4426 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4427 if test "${ac_cv_path_GREP+set}" = set; then : | |
4428 $as_echo_n "(cached) " >&6 | |
4429 else | |
4430 if test -z "$GREP"; then | |
4431 ac_path_GREP_found=false | |
4432 # Loop through the user's path and test for each of PROGNAME-LIST | |
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4434 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4435 do | |
4436 IFS=$as_save_IFS | |
4437 test -z "$as_dir" && as_dir=. | |
4438 for ac_prog in grep ggrep; do | |
4439 for ac_exec_ext in '' $ac_executable_extensions; do | |
4440 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4441 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
4442 # Check for GNU ac_path_GREP and select it if it is found. | |
4443 # Check for GNU $ac_path_GREP | |
4444 case `"$ac_path_GREP" --version 2>&1` in | |
4445 *GNU*) | |
4446 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4447 *) | |
4448 ac_count=0 | |
4449 $as_echo_n 0123456789 >"conftest.in" | |
4450 while : | |
4451 do | |
4452 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4453 mv "conftest.tmp" "conftest.in" | |
4454 cp "conftest.in" "conftest.nl" | |
4455 $as_echo 'GREP' >> "conftest.nl" | |
4456 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4457 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4458 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4459 if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4460 # Best one so far, save it but keep looking for a better one | |
4461 ac_cv_path_GREP="$ac_path_GREP" | |
4462 ac_path_GREP_max=$ac_count | |
4463 fi | |
4464 # 10*(2^10) chars as input seems more than enough | |
4465 test $ac_count -gt 10 && break | |
4466 done | |
4467 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4468 esac | |
4469 | |
4470 $ac_path_GREP_found && break 3 | |
4471 done | |
4472 done | |
4473 done | |
4474 IFS=$as_save_IFS | |
4475 if test -z "$ac_cv_path_GREP"; then | |
4476 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4477 fi | |
4478 else | |
4479 ac_cv_path_GREP=$GREP | |
4480 fi | |
4481 | |
4482 fi | |
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4484 $as_echo "$ac_cv_path_GREP" >&6; } | |
4485 GREP="$ac_cv_path_GREP" | |
4486 | |
4487 | |
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4489 $as_echo_n "checking for egrep... " >&6; } | |
4490 if test "${ac_cv_path_EGREP+set}" = set; then : | |
4491 $as_echo_n "(cached) " >&6 | |
4492 else | |
4493 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4494 then ac_cv_path_EGREP="$GREP -E" | |
4495 else | |
4496 if test -z "$EGREP"; then | |
4497 ac_path_EGREP_found=false | |
4498 # Loop through the user's path and test for each of PROGNAME-LIST | |
4499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4500 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4501 do | |
4502 IFS=$as_save_IFS | |
4503 test -z "$as_dir" && as_dir=. | |
4504 for ac_prog in egrep; do | |
4505 for ac_exec_ext in '' $ac_executable_extensions; do | |
4506 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4507 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4508 # Check for GNU ac_path_EGREP and select it if it is found. | |
4509 # Check for GNU $ac_path_EGREP | |
4510 case `"$ac_path_EGREP" --version 2>&1` in | |
4511 *GNU*) | |
4512 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4513 *) | |
4514 ac_count=0 | |
4515 $as_echo_n 0123456789 >"conftest.in" | |
4516 while : | |
4517 do | |
4518 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4519 mv "conftest.tmp" "conftest.in" | |
4520 cp "conftest.in" "conftest.nl" | |
4521 $as_echo 'EGREP' >> "conftest.nl" | |
4522 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4523 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4524 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4525 if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4526 # Best one so far, save it but keep looking for a better one | |
4527 ac_cv_path_EGREP="$ac_path_EGREP" | |
4528 ac_path_EGREP_max=$ac_count | |
4529 fi | |
4530 # 10*(2^10) chars as input seems more than enough | |
4531 test $ac_count -gt 10 && break | |
4532 done | |
4533 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4534 esac | |
4535 | |
4536 $ac_path_EGREP_found && break 3 | |
4537 done | |
4538 done | |
4539 done | |
4540 IFS=$as_save_IFS | |
4541 if test -z "$ac_cv_path_EGREP"; then | |
4542 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4543 fi | |
4544 else | |
4545 ac_cv_path_EGREP=$EGREP | |
4546 fi | |
4547 | |
4548 fi | |
4549 fi | |
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4551 $as_echo "$ac_cv_path_EGREP" >&6; } | |
4552 EGREP="$ac_cv_path_EGREP" | |
4553 | |
4554 | |
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
4556 $as_echo_n "checking for ANSI C header files... " >&6; } | 4796 $as_echo_n "checking for ANSI C header files... " >&6; } |
4557 if test "${ac_cv_header_stdc+set}" = set; then : | 4797 if test "${ac_cv_header_stdc+set}" = set; then : |
4558 $as_echo_n "(cached) " >&6 | 4798 $as_echo_n "(cached) " >&6 |
4559 else | 4799 else |
4661 if test $ac_cv_header_stdc = yes; then | 4901 if test $ac_cv_header_stdc = yes; then |
4662 | 4902 |
4663 $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 4903 $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
4664 | 4904 |
4665 fi | 4905 fi |
4666 | |
4667 # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4668 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4669 inttypes.h stdint.h unistd.h | |
4670 do : | |
4671 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4672 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4673 " | |
4674 eval as_val=\$$as_ac_Header | |
4675 if test "x$as_val" = x""yes; then : | |
4676 cat >>confdefs.h <<_ACEOF | |
4677 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4678 _ACEOF | |
4679 | |
4680 fi | |
4681 | |
4682 done | |
4683 | |
4684 | 4906 |
4685 for ac_header in stddef.h stdlib.h strings.h unistd.h fcntl.h sys/file.h \ | 4907 for ac_header in stddef.h stdlib.h strings.h unistd.h fcntl.h sys/file.h \ |
4686 sys/stat.h | 4908 sys/stat.h |
4687 do : | 4909 do : |
4688 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 4910 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5038 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a | 5260 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a |
5039 # memory area containing the same data that you'd get if you applied | 5261 # memory area containing the same data that you'd get if you applied |
5040 # read() to the same fd. The only system known to have a problem here | 5262 # read() to the same fd. The only system known to have a problem here |
5041 # is VMS, where text files have record structure. | 5263 # is VMS, where text files have record structure. |
5042 case "$host_os" in | 5264 case "$host_os" in |
5043 vms* | ultrix*) | 5265 *vms* | ultrix*) |
5044 gcc_cv_func_mmap_file=no ;; | 5266 gcc_cv_func_mmap_file=no ;; |
5045 *) | 5267 *) |
5046 gcc_cv_func_mmap_file=yes;; | 5268 gcc_cv_func_mmap_file=yes;; |
5047 esac | 5269 esac |
5048 fi | 5270 fi |
5062 # 2. If you map two adjacent blocks of memory and then unmap them | 5284 # 2. If you map two adjacent blocks of memory and then unmap them |
5063 # both at once, they must both go away. | 5285 # both at once, they must both go away. |
5064 # Systems known to be in this category are Windows (all variants), | 5286 # Systems known to be in this category are Windows (all variants), |
5065 # VMS, and Darwin. | 5287 # VMS, and Darwin. |
5066 case "$host_os" in | 5288 case "$host_os" in |
5067 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00) | 5289 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00) |
5068 gcc_cv_func_mmap_dev_zero=no ;; | 5290 gcc_cv_func_mmap_dev_zero=no ;; |
5069 *) | 5291 *) |
5070 gcc_cv_func_mmap_dev_zero=yes;; | 5292 gcc_cv_func_mmap_dev_zero=yes;; |
5071 esac | 5293 esac |
5072 fi | 5294 fi |
5119 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) | 5341 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) |
5120 # doesn't give anonymous zeroed pages with the same properties listed | 5342 # doesn't give anonymous zeroed pages with the same properties listed |
5121 # above for use of /dev/zero. | 5343 # above for use of /dev/zero. |
5122 # Systems known to be in this category are Windows, VMS, and SCO Unix. | 5344 # Systems known to be in this category are Windows, VMS, and SCO Unix. |
5123 case "$host_os" in | 5345 case "$host_os" in |
5124 vms* | cygwin* | pe | mingw* | sco* | udk* ) | 5346 *vms* | cygwin* | pe | mingw* | sco* | udk* ) |
5125 gcc_cv_func_mmap_anon=no ;; | 5347 gcc_cv_func_mmap_anon=no ;; |
5126 *) | 5348 *) |
5127 gcc_cv_func_mmap_anon=yes;; | 5349 gcc_cv_func_mmap_anon=yes;; |
5128 esac | 5350 esac |
5129 fi | 5351 fi |
5168 | 5390 |
5169 | 5391 |
5170 cat >>confdefs.h <<_ACEOF | 5392 cat >>confdefs.h <<_ACEOF |
5171 #define SED_PROGRAM "${SED}" | 5393 #define SED_PROGRAM "${SED}" |
5172 _ACEOF | 5394 _ACEOF |
5395 | |
5396 | |
5397 # Determine what GCC version number to use in filesystem paths. | |
5398 | |
5399 get_gcc_base_ver="cat" | |
5400 | |
5401 # Check whether --with-gcc-major-version-only was given. | |
5402 if test "${with_gcc_major_version_only+set}" = set; then : | |
5403 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
5404 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'" | |
5405 fi | |
5406 | |
5407 fi | |
5408 | |
5409 | |
5173 | 5410 |
5174 | 5411 |
5175 ac_config_headers="$ac_config_headers config.h" | 5412 ac_config_headers="$ac_config_headers config.h" |
5176 | 5413 |
5177 ac_config_files="$ac_config_files Makefile mkheaders.almost:mkheaders.in" | 5414 ac_config_files="$ac_config_files Makefile mkheaders.almost:mkheaders.in" |