… | |
… | |
679 | GREP |
679 | GREP |
680 | EGREP |
680 | EGREP |
681 | LINKER |
681 | LINKER |
682 | INSTALL_LIBRXVT |
682 | INSTALL_LIBRXVT |
683 | RXVTNAME |
683 | RXVTNAME |
|
|
684 | CXXCPP |
684 | TIC |
685 | TIC |
685 | XMKMF |
686 | XMKMF |
686 | CXXCPP |
|
|
687 | X_CFLAGS |
687 | X_CFLAGS |
688 | X_PRE_LIBS |
688 | X_PRE_LIBS |
689 | X_LIBS |
689 | X_LIBS |
690 | X_EXTRA_LIBS |
690 | X_EXTRA_LIBS |
691 | afterimage_config |
691 | afterimage_config |
… | |
… | |
731 | CPPFLAGS |
731 | CPPFLAGS |
732 | CXX |
732 | CXX |
733 | CXXFLAGS |
733 | CXXFLAGS |
734 | CCC |
734 | CCC |
735 | CPP |
735 | CPP |
736 | XMKMF |
|
|
737 | CXXCPP' |
736 | CXXCPP |
|
|
737 | XMKMF' |
738 | |
738 | |
739 | |
739 | |
740 | # Initialize some variables set by options. |
740 | # Initialize some variables set by options. |
741 | ac_init_help= |
741 | ac_init_help= |
742 | ac_init_version=false |
742 | ac_init_version=false |
… | |
… | |
1317 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1317 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1318 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1318 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1319 | --enable-everything enable standard non-multichoice features |
1319 | --enable-everything enable standard non-multichoice features |
1320 | NOTE: this option is order dependent |
1320 | NOTE: this option is order dependent |
1321 | NOTE: automatically enabled with --enable-shared |
1321 | NOTE: automatically enabled with --enable-shared |
|
|
1322 | --enable-warnings turn on g++ warnings |
1322 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1323 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1323 | --enable-combining enable composition of base and combining characters |
1324 | --enable-combining enable composition of base and combining characters |
1324 | --enable-xft enable xft support on systems that have it |
1325 | --enable-xft enable xft support on systems that have it |
1325 | --enable-font-styles enable bold and italic support |
1326 | --enable-font-styles enable bold and italic support |
1326 | --enable-afterimage enable integration with libAfterImage for background images |
1327 | --enable-afterimage enable integration with libAfterImage for background images |
… | |
… | |
1334 | --enable-xim XIM (X Input Method) protocol support |
1335 | --enable-xim XIM (X Input Method) protocol support |
1335 | --disable-backspace-key disable handling of the backspace key |
1336 | --disable-backspace-key disable handling of the backspace key |
1336 | --disable-delete-key disable handling of the delete key |
1337 | --disable-delete-key disable handling of the delete key |
1337 | --disable-resources disable all resource checking |
1338 | --disable-resources disable all resource checking |
1338 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
1339 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
1339 | --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
1340 | --enable-fallback[=CLASS] fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
1340 | --disable-swapscreen disable swap screen support |
1341 | --disable-swapscreen disable swap screen support |
1341 | --enable-iso14755 enable support for extended ISO 14755 modes |
1342 | --enable-iso14755 enable support for extended ISO 14755 modes |
1342 | --enable-frills enable support for rarely used features |
1343 | --enable-frills enable support for rarely used features |
1343 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
1344 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
1344 | --enable-selectionscrolling enable scrolling during selections |
1345 | --enable-selectionscrolling enable scrolling during selections |
1345 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1346 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1346 | --enable-slipwheeling enable slip wheel scrolling (requires previous) |
1347 | --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel) |
1347 | --enable-smart-resize enable smart growth/shrink behaviour |
1348 | --enable-smart-resize enable smart growth/shrink behaviour |
1348 | --enable-text-blink enable blinking text |
1349 | --enable-text-blink enable blinking text |
1349 | --enable-pointer-blank enable pointer blank when typing or inactive pointer |
1350 | --enable-pointer-blank enable pointer blank when typing or inactive pointer |
1350 | --enable-utmp enable utmp (utmpx) support |
1351 | --enable-utmp enable utmp (utmpx) support |
1351 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
1352 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
… | |
… | |
1353 | |
1354 | |
1354 | Optional Packages: |
1355 | Optional Packages: |
1355 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1356 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1356 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1357 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1357 | --with-afterimage-config=DIR use libAfterImage config script in DIR |
1358 | --with-afterimage-config=DIR use libAfterImage config script in DIR |
1358 | --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) |
1359 | --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) |
1359 | --with-res-name=NAME use this as default resource name (default: urxvt) |
1360 | --with-res-name=NAME use this as default resource name (default: urxvt) |
1360 | --with-res-class=CLASS use this as the resource class (default: URxvt) |
1361 | --with-res-class=CLASS use this as the resource class (default: URxvt) |
1361 | --with-name=NAME set the basename for the installed binaries (default: urxvt) |
1362 | --with-name=NAME set the basename for the installed binaries (default: urxvt) |
1362 | --with-term=NAME set the terminal to NAME (default: rxvt) |
1363 | --with-term=NAME set the terminal to NAME (default: rxvt) |
1363 | --with-terminfo=PATH set the path to the terminfo tree to PATH |
1364 | --with-terminfo=PATH set the path to the terminfo tree to PATH |
… | |
… | |
1372 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1373 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1373 | you have headers in a nonstandard directory <include dir> |
1374 | you have headers in a nonstandard directory <include dir> |
1374 | CXX C++ compiler command |
1375 | CXX C++ compiler command |
1375 | CXXFLAGS C++ compiler flags |
1376 | CXXFLAGS C++ compiler flags |
1376 | CPP C preprocessor |
1377 | CPP C preprocessor |
|
|
1378 | CXXCPP C++ preprocessor |
1377 | XMKMF Path to xmkmf, Makefile generator for X Window System |
1379 | XMKMF Path to xmkmf, Makefile generator for X Window System |
1378 | CXXCPP C++ preprocessor |
|
|
1379 | |
1380 | |
1380 | Use these variables to override the choices made by `configure' or to help |
1381 | Use these variables to override the choices made by `configure' or to help |
1381 | it to find libraries and programs with nonstandard names/locations. |
1382 | it to find libraries and programs with nonstandard names/locations. |
1382 | |
1383 | |
1383 | _ACEOF |
1384 | _ACEOF |
… | |
… | |
1919 | |
1920 | |
1920 | |
1921 | |
1921 | |
1922 | |
1922 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1923 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1923 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1924 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
|
|
1925 | |
1924 | echo "" |
1926 | echo "" |
1925 | echo "configuring for rxvt $VERSION" |
1927 | echo "configuring for rxvt $VERSION" |
1926 | echo "" |
1928 | echo "" |
1927 | |
1929 | |
1928 | orig_CXXFLAGS="$CXXFLAGS" |
1930 | orig_CXXFLAGS="$CXXFLAGS" |
… | |
… | |
3869 | LINKER=$LINKER |
3871 | LINKER=$LINKER |
3870 | |
3872 | |
3871 | |
3873 | |
3872 | if test -z "$orig_CXXFLAGS"; then |
3874 | if test -z "$orig_CXXFLAGS"; then |
3873 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
3875 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
3874 | CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" |
3876 | CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" |
3875 | cat >conftest.$ac_ext <<_ACEOF |
3877 | cat >conftest.$ac_ext <<_ACEOF |
3876 | /* confdefs.h. */ |
3878 | /* confdefs.h. */ |
3877 | _ACEOF |
3879 | _ACEOF |
3878 | cat confdefs.h >>conftest.$ac_ext |
3880 | cat confdefs.h >>conftest.$ac_ext |
3879 | cat >>conftest.$ac_ext <<_ACEOF |
3881 | cat >>conftest.$ac_ext <<_ACEOF |
… | |
… | |
4491 | fi |
4493 | fi |
4492 | |
4494 | |
4493 | fi |
4495 | fi |
4494 | |
4496 | |
4495 | |
4497 | |
|
|
4498 | WARNINGS=no |
|
|
4499 | # Check whether --enable-warnings was given. |
|
|
4500 | if test "${enable_warnings+set}" = set; then |
|
|
4501 | enableval=$enable_warnings; if test x$enableval = xyes; then |
|
|
4502 | WARNINGS=yes |
|
|
4503 | fi |
|
|
4504 | fi |
|
|
4505 | |
|
|
4506 | if test x$GXX = xyes; then |
|
|
4507 | if test $WARNINGS = yes; then |
|
|
4508 | save_CXXFLAGS="$CXXFLAGS" |
|
|
4509 | CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-non-virtual-dtor" |
|
|
4510 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4511 | /* confdefs.h. */ |
|
|
4512 | _ACEOF |
|
|
4513 | cat confdefs.h >>conftest.$ac_ext |
|
|
4514 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4515 | /* end confdefs.h. */ |
|
|
4516 | |
|
|
4517 | int |
|
|
4518 | main () |
|
|
4519 | { |
|
|
4520 | |
|
|
4521 | ; |
|
|
4522 | return 0; |
|
|
4523 | } |
|
|
4524 | _ACEOF |
|
|
4525 | rm -f conftest.$ac_objext |
|
|
4526 | if { (ac_try="$ac_compile" |
|
|
4527 | case "(($ac_try" in |
|
|
4528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4529 | *) ac_try_echo=$ac_try;; |
|
|
4530 | esac |
|
|
4531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4532 | (eval "$ac_compile") 2>conftest.er1 |
|
|
4533 | ac_status=$? |
|
|
4534 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4535 | rm -f conftest.er1 |
|
|
4536 | cat conftest.err >&5 |
|
|
4537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4538 | (exit $ac_status); } && { |
|
|
4539 | test -z "$ac_cxx_werror_flag" || |
|
|
4540 | test ! -s conftest.err |
|
|
4541 | } && test -s conftest.$ac_objext; then |
|
|
4542 | : |
|
|
4543 | else |
|
|
4544 | echo "$as_me: failed program was:" >&5 |
|
|
4545 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4546 | |
|
|
4547 | CXXFLAGS="$save_CXXFLAGS" |
|
|
4548 | fi |
|
|
4549 | |
|
|
4550 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4551 | else |
|
|
4552 | CXXFLAGS="$CXXFLAGS -w" |
|
|
4553 | fi |
|
|
4554 | fi |
|
|
4555 | |
4496 | # Check whether --enable-unicode3 was given. |
4556 | # Check whether --enable-unicode3 was given. |
4497 | if test "${enable_unicode3+set}" = set; then |
4557 | if test "${enable_unicode3+set}" = set; then |
4498 | enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then |
4558 | enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then |
4499 | support_unicode3=$enableval |
4559 | support_unicode3=$enableval |
4500 | fi |
4560 | fi |
… | |
… | |
4829 | #define RXVT_TERMINFO "$withval" |
4889 | #define RXVT_TERMINFO "$withval" |
4830 | _ACEOF |
4890 | _ACEOF |
4831 | terminfo="$withval" |
4891 | terminfo="$withval" |
4832 | fi |
4892 | fi |
4833 | fi |
4893 | fi |
|
|
4894 | |
|
|
4895 | |
|
|
4896 | |
|
|
4897 | LIBEV_M4_AVOID_LIBRT=1 |
|
|
4898 | |
|
|
4899 | ac_ext=cpp |
|
|
4900 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
4901 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4902 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4903 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
4904 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
4905 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
|
|
4906 | if test -z "$CXXCPP"; then |
|
|
4907 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
|
4908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4909 | else |
|
|
4910 | # Double quotes because CXXCPP needs to be expanded |
|
|
4911 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
4912 | do |
|
|
4913 | ac_preproc_ok=false |
|
|
4914 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4915 | do |
|
|
4916 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4917 | # with a fresh cross-compiler works. |
|
|
4918 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4919 | # <limits.h> exists even on freestanding compilers. |
|
|
4920 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4921 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4922 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4923 | /* confdefs.h. */ |
|
|
4924 | _ACEOF |
|
|
4925 | cat confdefs.h >>conftest.$ac_ext |
|
|
4926 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4927 | /* end confdefs.h. */ |
|
|
4928 | #ifdef __STDC__ |
|
|
4929 | # include <limits.h> |
|
|
4930 | #else |
|
|
4931 | # include <assert.h> |
|
|
4932 | #endif |
|
|
4933 | Syntax error |
|
|
4934 | _ACEOF |
|
|
4935 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4936 | case "(($ac_try" in |
|
|
4937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4938 | *) ac_try_echo=$ac_try;; |
|
|
4939 | esac |
|
|
4940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4941 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4942 | ac_status=$? |
|
|
4943 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4944 | rm -f conftest.er1 |
|
|
4945 | cat conftest.err >&5 |
|
|
4946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4947 | (exit $ac_status); } >/dev/null && { |
|
|
4948 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4949 | test ! -s conftest.err |
|
|
4950 | }; then |
|
|
4951 | : |
|
|
4952 | else |
|
|
4953 | echo "$as_me: failed program was:" >&5 |
|
|
4954 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4955 | |
|
|
4956 | # Broken: fails on valid input. |
|
|
4957 | continue |
|
|
4958 | fi |
|
|
4959 | |
|
|
4960 | rm -f conftest.err conftest.$ac_ext |
|
|
4961 | |
|
|
4962 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
4963 | # can be detected and how. |
|
|
4964 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4965 | /* confdefs.h. */ |
|
|
4966 | _ACEOF |
|
|
4967 | cat confdefs.h >>conftest.$ac_ext |
|
|
4968 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4969 | /* end confdefs.h. */ |
|
|
4970 | #include <ac_nonexistent.h> |
|
|
4971 | _ACEOF |
|
|
4972 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4973 | case "(($ac_try" in |
|
|
4974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4975 | *) ac_try_echo=$ac_try;; |
|
|
4976 | esac |
|
|
4977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4978 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4979 | ac_status=$? |
|
|
4980 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4981 | rm -f conftest.er1 |
|
|
4982 | cat conftest.err >&5 |
|
|
4983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4984 | (exit $ac_status); } >/dev/null && { |
|
|
4985 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4986 | test ! -s conftest.err |
|
|
4987 | }; then |
|
|
4988 | # Broken: success on invalid input. |
|
|
4989 | continue |
|
|
4990 | else |
|
|
4991 | echo "$as_me: failed program was:" >&5 |
|
|
4992 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4993 | |
|
|
4994 | # Passes both tests. |
|
|
4995 | ac_preproc_ok=: |
|
|
4996 | break |
|
|
4997 | fi |
|
|
4998 | |
|
|
4999 | rm -f conftest.err conftest.$ac_ext |
|
|
5000 | |
|
|
5001 | done |
|
|
5002 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5003 | rm -f conftest.err conftest.$ac_ext |
|
|
5004 | if $ac_preproc_ok; then |
|
|
5005 | break |
|
|
5006 | fi |
|
|
5007 | |
|
|
5008 | done |
|
|
5009 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5010 | |
|
|
5011 | fi |
|
|
5012 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
5013 | else |
|
|
5014 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5015 | fi |
|
|
5016 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
5017 | echo "${ECHO_T}$CXXCPP" >&6; } |
|
|
5018 | ac_preproc_ok=false |
|
|
5019 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
5020 | do |
|
|
5021 | # Use a header file that comes with gcc, so configuring glibc |
|
|
5022 | # with a fresh cross-compiler works. |
|
|
5023 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5024 | # <limits.h> exists even on freestanding compilers. |
|
|
5025 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
5026 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
5027 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5028 | /* confdefs.h. */ |
|
|
5029 | _ACEOF |
|
|
5030 | cat confdefs.h >>conftest.$ac_ext |
|
|
5031 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5032 | /* end confdefs.h. */ |
|
|
5033 | #ifdef __STDC__ |
|
|
5034 | # include <limits.h> |
|
|
5035 | #else |
|
|
5036 | # include <assert.h> |
|
|
5037 | #endif |
|
|
5038 | Syntax error |
|
|
5039 | _ACEOF |
|
|
5040 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5041 | case "(($ac_try" in |
|
|
5042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5043 | *) ac_try_echo=$ac_try;; |
|
|
5044 | esac |
|
|
5045 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5046 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5047 | ac_status=$? |
|
|
5048 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5049 | rm -f conftest.er1 |
|
|
5050 | cat conftest.err >&5 |
|
|
5051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5052 | (exit $ac_status); } >/dev/null && { |
|
|
5053 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5054 | test ! -s conftest.err |
|
|
5055 | }; then |
|
|
5056 | : |
|
|
5057 | else |
|
|
5058 | echo "$as_me: failed program was:" >&5 |
|
|
5059 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5060 | |
|
|
5061 | # Broken: fails on valid input. |
|
|
5062 | continue |
|
|
5063 | fi |
|
|
5064 | |
|
|
5065 | rm -f conftest.err conftest.$ac_ext |
|
|
5066 | |
|
|
5067 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
5068 | # can be detected and how. |
|
|
5069 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5070 | /* confdefs.h. */ |
|
|
5071 | _ACEOF |
|
|
5072 | cat confdefs.h >>conftest.$ac_ext |
|
|
5073 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5074 | /* end confdefs.h. */ |
|
|
5075 | #include <ac_nonexistent.h> |
|
|
5076 | _ACEOF |
|
|
5077 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5078 | case "(($ac_try" in |
|
|
5079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5080 | *) ac_try_echo=$ac_try;; |
|
|
5081 | esac |
|
|
5082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5083 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5084 | ac_status=$? |
|
|
5085 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5086 | rm -f conftest.er1 |
|
|
5087 | cat conftest.err >&5 |
|
|
5088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5089 | (exit $ac_status); } >/dev/null && { |
|
|
5090 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5091 | test ! -s conftest.err |
|
|
5092 | }; then |
|
|
5093 | # Broken: success on invalid input. |
|
|
5094 | continue |
|
|
5095 | else |
|
|
5096 | echo "$as_me: failed program was:" >&5 |
|
|
5097 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5098 | |
|
|
5099 | # Passes both tests. |
|
|
5100 | ac_preproc_ok=: |
|
|
5101 | break |
|
|
5102 | fi |
|
|
5103 | |
|
|
5104 | rm -f conftest.err conftest.$ac_ext |
|
|
5105 | |
|
|
5106 | done |
|
|
5107 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5108 | rm -f conftest.err conftest.$ac_ext |
|
|
5109 | if $ac_preproc_ok; then |
|
|
5110 | : |
|
|
5111 | else |
|
|
5112 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5113 | See \`config.log' for more details." >&5 |
|
|
5114 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5115 | See \`config.log' for more details." >&2;} |
|
|
5116 | { (exit 1); exit 1; }; } |
|
|
5117 | fi |
|
|
5118 | |
|
|
5119 | ac_ext=cpp |
|
|
5120 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5121 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5122 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5123 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
5124 | |
|
|
5125 | |
|
|
5126 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
5127 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
|
|
5128 | if test "${ac_cv_header_stdc+set}" = set; then |
|
|
5129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5130 | else |
|
|
5131 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5132 | /* confdefs.h. */ |
|
|
5133 | _ACEOF |
|
|
5134 | cat confdefs.h >>conftest.$ac_ext |
|
|
5135 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5136 | /* end confdefs.h. */ |
|
|
5137 | #include <stdlib.h> |
|
|
5138 | #include <stdarg.h> |
|
|
5139 | #include <string.h> |
|
|
5140 | #include <float.h> |
|
|
5141 | |
|
|
5142 | int |
|
|
5143 | main () |
|
|
5144 | { |
|
|
5145 | |
|
|
5146 | ; |
|
|
5147 | return 0; |
|
|
5148 | } |
|
|
5149 | _ACEOF |
|
|
5150 | rm -f conftest.$ac_objext |
|
|
5151 | if { (ac_try="$ac_compile" |
|
|
5152 | case "(($ac_try" in |
|
|
5153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5154 | *) ac_try_echo=$ac_try;; |
|
|
5155 | esac |
|
|
5156 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5157 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5158 | ac_status=$? |
|
|
5159 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5160 | rm -f conftest.er1 |
|
|
5161 | cat conftest.err >&5 |
|
|
5162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5163 | (exit $ac_status); } && { |
|
|
5164 | test -z "$ac_cxx_werror_flag" || |
|
|
5165 | test ! -s conftest.err |
|
|
5166 | } && test -s conftest.$ac_objext; then |
|
|
5167 | ac_cv_header_stdc=yes |
|
|
5168 | else |
|
|
5169 | echo "$as_me: failed program was:" >&5 |
|
|
5170 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5171 | |
|
|
5172 | ac_cv_header_stdc=no |
|
|
5173 | fi |
|
|
5174 | |
|
|
5175 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5176 | |
|
|
5177 | if test $ac_cv_header_stdc = yes; then |
|
|
5178 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
5179 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5180 | /* confdefs.h. */ |
|
|
5181 | _ACEOF |
|
|
5182 | cat confdefs.h >>conftest.$ac_ext |
|
|
5183 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5184 | /* end confdefs.h. */ |
|
|
5185 | #include <string.h> |
|
|
5186 | |
|
|
5187 | _ACEOF |
|
|
5188 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
5189 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
5190 | : |
|
|
5191 | else |
|
|
5192 | ac_cv_header_stdc=no |
|
|
5193 | fi |
|
|
5194 | rm -f conftest* |
|
|
5195 | |
|
|
5196 | fi |
|
|
5197 | |
|
|
5198 | if test $ac_cv_header_stdc = yes; then |
|
|
5199 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
5200 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5201 | /* confdefs.h. */ |
|
|
5202 | _ACEOF |
|
|
5203 | cat confdefs.h >>conftest.$ac_ext |
|
|
5204 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5205 | /* end confdefs.h. */ |
|
|
5206 | #include <stdlib.h> |
|
|
5207 | |
|
|
5208 | _ACEOF |
|
|
5209 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
5210 | $EGREP "free" >/dev/null 2>&1; then |
|
|
5211 | : |
|
|
5212 | else |
|
|
5213 | ac_cv_header_stdc=no |
|
|
5214 | fi |
|
|
5215 | rm -f conftest* |
|
|
5216 | |
|
|
5217 | fi |
|
|
5218 | |
|
|
5219 | if test $ac_cv_header_stdc = yes; then |
|
|
5220 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
5221 | if test "$cross_compiling" = yes; then |
|
|
5222 | : |
|
|
5223 | else |
|
|
5224 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5225 | /* confdefs.h. */ |
|
|
5226 | _ACEOF |
|
|
5227 | cat confdefs.h >>conftest.$ac_ext |
|
|
5228 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5229 | /* end confdefs.h. */ |
|
|
5230 | #include <ctype.h> |
|
|
5231 | #include <stdlib.h> |
|
|
5232 | #if ((' ' & 0x0FF) == 0x020) |
|
|
5233 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
5234 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
5235 | #else |
|
|
5236 | # define ISLOWER(c) \ |
|
|
5237 | (('a' <= (c) && (c) <= 'i') \ |
|
|
5238 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
5239 | || ('s' <= (c) && (c) <= 'z')) |
|
|
5240 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
5241 | #endif |
|
|
5242 | |
|
|
5243 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
5244 | int |
|
|
5245 | main () |
|
|
5246 | { |
|
|
5247 | int i; |
|
|
5248 | for (i = 0; i < 256; i++) |
|
|
5249 | if (XOR (islower (i), ISLOWER (i)) |
|
|
5250 | || toupper (i) != TOUPPER (i)) |
|
|
5251 | return 2; |
|
|
5252 | return 0; |
|
|
5253 | } |
|
|
5254 | _ACEOF |
|
|
5255 | rm -f conftest$ac_exeext |
|
|
5256 | if { (ac_try="$ac_link" |
|
|
5257 | case "(($ac_try" in |
|
|
5258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5259 | *) ac_try_echo=$ac_try;; |
|
|
5260 | esac |
|
|
5261 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5262 | (eval "$ac_link") 2>&5 |
|
|
5263 | ac_status=$? |
|
|
5264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5265 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
5266 | { (case "(($ac_try" in |
|
|
5267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5268 | *) ac_try_echo=$ac_try;; |
|
|
5269 | esac |
|
|
5270 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5271 | (eval "$ac_try") 2>&5 |
|
|
5272 | ac_status=$? |
|
|
5273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5274 | (exit $ac_status); }; }; then |
|
|
5275 | : |
|
|
5276 | else |
|
|
5277 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
5278 | echo "$as_me: failed program was:" >&5 |
|
|
5279 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5280 | |
|
|
5281 | ( exit $ac_status ) |
|
|
5282 | ac_cv_header_stdc=no |
|
|
5283 | fi |
|
|
5284 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
5285 | fi |
|
|
5286 | |
|
|
5287 | |
|
|
5288 | fi |
|
|
5289 | fi |
|
|
5290 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
5291 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
|
|
5292 | if test $ac_cv_header_stdc = yes; then |
|
|
5293 | |
|
|
5294 | cat >>confdefs.h <<\_ACEOF |
|
|
5295 | #define STDC_HEADERS 1 |
|
|
5296 | _ACEOF |
|
|
5297 | |
|
|
5298 | fi |
|
|
5299 | |
|
|
5300 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
5301 | |
|
|
5302 | |
|
|
5303 | |
|
|
5304 | |
|
|
5305 | |
|
|
5306 | |
|
|
5307 | |
|
|
5308 | |
|
|
5309 | |
|
|
5310 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
5311 | inttypes.h stdint.h unistd.h |
|
|
5312 | do |
|
|
5313 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
5314 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5315 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5316 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5318 | else |
|
|
5319 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5320 | /* confdefs.h. */ |
|
|
5321 | _ACEOF |
|
|
5322 | cat confdefs.h >>conftest.$ac_ext |
|
|
5323 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5324 | /* end confdefs.h. */ |
|
|
5325 | $ac_includes_default |
|
|
5326 | |
|
|
5327 | #include <$ac_header> |
|
|
5328 | _ACEOF |
|
|
5329 | rm -f conftest.$ac_objext |
|
|
5330 | if { (ac_try="$ac_compile" |
|
|
5331 | case "(($ac_try" in |
|
|
5332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5333 | *) ac_try_echo=$ac_try;; |
|
|
5334 | esac |
|
|
5335 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5336 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5337 | ac_status=$? |
|
|
5338 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5339 | rm -f conftest.er1 |
|
|
5340 | cat conftest.err >&5 |
|
|
5341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5342 | (exit $ac_status); } && { |
|
|
5343 | test -z "$ac_cxx_werror_flag" || |
|
|
5344 | test ! -s conftest.err |
|
|
5345 | } && test -s conftest.$ac_objext; then |
|
|
5346 | eval "$as_ac_Header=yes" |
|
|
5347 | else |
|
|
5348 | echo "$as_me: failed program was:" >&5 |
|
|
5349 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5350 | |
|
|
5351 | eval "$as_ac_Header=no" |
|
|
5352 | fi |
|
|
5353 | |
|
|
5354 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5355 | fi |
|
|
5356 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5357 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5358 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5359 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
5360 | cat >>confdefs.h <<_ACEOF |
|
|
5361 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
5362 | _ACEOF |
|
|
5363 | |
|
|
5364 | fi |
|
|
5365 | |
|
|
5366 | done |
|
|
5367 | |
|
|
5368 | |
|
|
5369 | |
|
|
5370 | |
|
|
5371 | |
|
|
5372 | |
|
|
5373 | for ac_header in sys/epoll.h sys/event.h sys/queue.h port.h |
|
|
5374 | do |
|
|
5375 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
5376 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5377 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5378 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5379 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5381 | fi |
|
|
5382 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5383 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5384 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5385 | else |
|
|
5386 | # Is the header compilable? |
|
|
5387 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
5388 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
|
|
5389 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5390 | /* confdefs.h. */ |
|
|
5391 | _ACEOF |
|
|
5392 | cat confdefs.h >>conftest.$ac_ext |
|
|
5393 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5394 | /* end confdefs.h. */ |
|
|
5395 | $ac_includes_default |
|
|
5396 | #include <$ac_header> |
|
|
5397 | _ACEOF |
|
|
5398 | rm -f conftest.$ac_objext |
|
|
5399 | if { (ac_try="$ac_compile" |
|
|
5400 | case "(($ac_try" in |
|
|
5401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5402 | *) ac_try_echo=$ac_try;; |
|
|
5403 | esac |
|
|
5404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5405 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5406 | ac_status=$? |
|
|
5407 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5408 | rm -f conftest.er1 |
|
|
5409 | cat conftest.err >&5 |
|
|
5410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5411 | (exit $ac_status); } && { |
|
|
5412 | test -z "$ac_cxx_werror_flag" || |
|
|
5413 | test ! -s conftest.err |
|
|
5414 | } && test -s conftest.$ac_objext; then |
|
|
5415 | ac_header_compiler=yes |
|
|
5416 | else |
|
|
5417 | echo "$as_me: failed program was:" >&5 |
|
|
5418 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5419 | |
|
|
5420 | ac_header_compiler=no |
|
|
5421 | fi |
|
|
5422 | |
|
|
5423 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5424 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
5425 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
|
|
5426 | |
|
|
5427 | # Is the header present? |
|
|
5428 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
5429 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
|
|
5430 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5431 | /* confdefs.h. */ |
|
|
5432 | _ACEOF |
|
|
5433 | cat confdefs.h >>conftest.$ac_ext |
|
|
5434 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5435 | /* end confdefs.h. */ |
|
|
5436 | #include <$ac_header> |
|
|
5437 | _ACEOF |
|
|
5438 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5439 | case "(($ac_try" in |
|
|
5440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5441 | *) ac_try_echo=$ac_try;; |
|
|
5442 | esac |
|
|
5443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5444 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5445 | ac_status=$? |
|
|
5446 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5447 | rm -f conftest.er1 |
|
|
5448 | cat conftest.err >&5 |
|
|
5449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5450 | (exit $ac_status); } >/dev/null && { |
|
|
5451 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5452 | test ! -s conftest.err |
|
|
5453 | }; then |
|
|
5454 | ac_header_preproc=yes |
|
|
5455 | else |
|
|
5456 | echo "$as_me: failed program was:" >&5 |
|
|
5457 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5458 | |
|
|
5459 | ac_header_preproc=no |
|
|
5460 | fi |
|
|
5461 | |
|
|
5462 | rm -f conftest.err conftest.$ac_ext |
|
|
5463 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
5464 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
|
|
5465 | |
|
|
5466 | # So? What about this header? |
|
|
5467 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
5468 | yes:no: ) |
|
|
5469 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
5470 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
5471 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
5472 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
5473 | ac_header_preproc=yes |
|
|
5474 | ;; |
|
|
5475 | no:yes:* ) |
|
|
5476 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
5477 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
5478 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
5479 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
5480 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
5481 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
5482 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
5483 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
5484 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
5485 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
5486 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
5487 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
5488 | |
|
|
5489 | ;; |
|
|
5490 | esac |
|
|
5491 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5492 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5493 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5495 | else |
|
|
5496 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
5497 | fi |
|
|
5498 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5499 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5500 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5501 | |
|
|
5502 | fi |
|
|
5503 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
5504 | cat >>confdefs.h <<_ACEOF |
|
|
5505 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
5506 | _ACEOF |
|
|
5507 | |
|
|
5508 | fi |
|
|
5509 | |
|
|
5510 | done |
|
|
5511 | |
|
|
5512 | |
|
|
5513 | |
|
|
5514 | |
|
|
5515 | |
|
|
5516 | for ac_func in epoll_ctl kqueue port_create |
|
|
5517 | do |
|
|
5518 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
5519 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
5520 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
5521 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5522 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5523 | else |
|
|
5524 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5525 | /* confdefs.h. */ |
|
|
5526 | _ACEOF |
|
|
5527 | cat confdefs.h >>conftest.$ac_ext |
|
|
5528 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5529 | /* end confdefs.h. */ |
|
|
5530 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
5531 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5532 | #define $ac_func innocuous_$ac_func |
|
|
5533 | |
|
|
5534 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5535 | which can conflict with char $ac_func (); below. |
|
|
5536 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5537 | <limits.h> exists even on freestanding compilers. */ |
|
|
5538 | |
|
|
5539 | #ifdef __STDC__ |
|
|
5540 | # include <limits.h> |
|
|
5541 | #else |
|
|
5542 | # include <assert.h> |
|
|
5543 | #endif |
|
|
5544 | |
|
|
5545 | #undef $ac_func |
|
|
5546 | |
|
|
5547 | /* Override any GCC internal prototype to avoid an error. |
|
|
5548 | Use char because int might match the return type of a GCC |
|
|
5549 | builtin and then its argument prototype would still apply. */ |
|
|
5550 | #ifdef __cplusplus |
|
|
5551 | extern "C" |
|
|
5552 | #endif |
|
|
5553 | char $ac_func (); |
|
|
5554 | /* The GNU C library defines this for functions which it implements |
|
|
5555 | to always fail with ENOSYS. Some functions are actually named |
|
|
5556 | something starting with __ and the normal name is an alias. */ |
|
|
5557 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
5558 | choke me |
|
|
5559 | #endif |
|
|
5560 | |
|
|
5561 | int |
|
|
5562 | main () |
|
|
5563 | { |
|
|
5564 | return $ac_func (); |
|
|
5565 | ; |
|
|
5566 | return 0; |
|
|
5567 | } |
|
|
5568 | _ACEOF |
|
|
5569 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5570 | if { (ac_try="$ac_link" |
|
|
5571 | case "(($ac_try" in |
|
|
5572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5573 | *) ac_try_echo=$ac_try;; |
|
|
5574 | esac |
|
|
5575 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5576 | (eval "$ac_link") 2>conftest.er1 |
|
|
5577 | ac_status=$? |
|
|
5578 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5579 | rm -f conftest.er1 |
|
|
5580 | cat conftest.err >&5 |
|
|
5581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5582 | (exit $ac_status); } && { |
|
|
5583 | test -z "$ac_cxx_werror_flag" || |
|
|
5584 | test ! -s conftest.err |
|
|
5585 | } && test -s conftest$ac_exeext && |
|
|
5586 | $as_test_x conftest$ac_exeext; then |
|
|
5587 | eval "$as_ac_var=yes" |
|
|
5588 | else |
|
|
5589 | echo "$as_me: failed program was:" >&5 |
|
|
5590 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5591 | |
|
|
5592 | eval "$as_ac_var=no" |
|
|
5593 | fi |
|
|
5594 | |
|
|
5595 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5596 | conftest$ac_exeext conftest.$ac_ext |
|
|
5597 | fi |
|
|
5598 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
5599 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5600 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5601 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
5602 | cat >>confdefs.h <<_ACEOF |
|
|
5603 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
5604 | _ACEOF |
|
|
5605 | |
|
|
5606 | fi |
|
|
5607 | done |
|
|
5608 | |
|
|
5609 | |
|
|
5610 | { echo "$as_me:$LINENO: checking for clock_gettime" >&5 |
|
|
5611 | echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6; } |
|
|
5612 | if test "${ac_cv_func_clock_gettime+set}" = set; then |
|
|
5613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5614 | else |
|
|
5615 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5616 | /* confdefs.h. */ |
|
|
5617 | _ACEOF |
|
|
5618 | cat confdefs.h >>conftest.$ac_ext |
|
|
5619 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5620 | /* end confdefs.h. */ |
|
|
5621 | /* Define clock_gettime to an innocuous variant, in case <limits.h> declares clock_gettime. |
|
|
5622 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5623 | #define clock_gettime innocuous_clock_gettime |
|
|
5624 | |
|
|
5625 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5626 | which can conflict with char clock_gettime (); below. |
|
|
5627 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5628 | <limits.h> exists even on freestanding compilers. */ |
|
|
5629 | |
|
|
5630 | #ifdef __STDC__ |
|
|
5631 | # include <limits.h> |
|
|
5632 | #else |
|
|
5633 | # include <assert.h> |
|
|
5634 | #endif |
|
|
5635 | |
|
|
5636 | #undef clock_gettime |
|
|
5637 | |
|
|
5638 | /* Override any GCC internal prototype to avoid an error. |
|
|
5639 | Use char because int might match the return type of a GCC |
|
|
5640 | builtin and then its argument prototype would still apply. */ |
|
|
5641 | #ifdef __cplusplus |
|
|
5642 | extern "C" |
|
|
5643 | #endif |
|
|
5644 | char clock_gettime (); |
|
|
5645 | /* The GNU C library defines this for functions which it implements |
|
|
5646 | to always fail with ENOSYS. Some functions are actually named |
|
|
5647 | something starting with __ and the normal name is an alias. */ |
|
|
5648 | #if defined __stub_clock_gettime || defined __stub___clock_gettime |
|
|
5649 | choke me |
|
|
5650 | #endif |
|
|
5651 | |
|
|
5652 | int |
|
|
5653 | main () |
|
|
5654 | { |
|
|
5655 | return clock_gettime (); |
|
|
5656 | ; |
|
|
5657 | return 0; |
|
|
5658 | } |
|
|
5659 | _ACEOF |
|
|
5660 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5661 | if { (ac_try="$ac_link" |
|
|
5662 | case "(($ac_try" in |
|
|
5663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5664 | *) ac_try_echo=$ac_try;; |
|
|
5665 | esac |
|
|
5666 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5667 | (eval "$ac_link") 2>conftest.er1 |
|
|
5668 | ac_status=$? |
|
|
5669 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5670 | rm -f conftest.er1 |
|
|
5671 | cat conftest.err >&5 |
|
|
5672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5673 | (exit $ac_status); } && { |
|
|
5674 | test -z "$ac_cxx_werror_flag" || |
|
|
5675 | test ! -s conftest.err |
|
|
5676 | } && test -s conftest$ac_exeext && |
|
|
5677 | $as_test_x conftest$ac_exeext; then |
|
|
5678 | ac_cv_func_clock_gettime=yes |
|
|
5679 | else |
|
|
5680 | echo "$as_me: failed program was:" >&5 |
|
|
5681 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5682 | |
|
|
5683 | ac_cv_func_clock_gettime=no |
|
|
5684 | fi |
|
|
5685 | |
|
|
5686 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5687 | conftest$ac_exeext conftest.$ac_ext |
|
|
5688 | fi |
|
|
5689 | { echo "$as_me:$LINENO: result: $ac_cv_func_clock_gettime" >&5 |
|
|
5690 | echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; } |
|
|
5691 | if test $ac_cv_func_clock_gettime = yes; then |
|
|
5692 | : |
|
|
5693 | else |
|
|
5694 | |
|
|
5695 | if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
|
|
5696 | |
|
|
5697 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
|
|
5698 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } |
|
|
5699 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
|
|
5700 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5701 | else |
|
|
5702 | ac_check_lib_save_LIBS=$LIBS |
|
|
5703 | LIBS="-lrt $LIBS" |
|
|
5704 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5705 | /* confdefs.h. */ |
|
|
5706 | _ACEOF |
|
|
5707 | cat confdefs.h >>conftest.$ac_ext |
|
|
5708 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5709 | /* end confdefs.h. */ |
|
|
5710 | |
|
|
5711 | /* Override any GCC internal prototype to avoid an error. |
|
|
5712 | Use char because int might match the return type of a GCC |
|
|
5713 | builtin and then its argument prototype would still apply. */ |
|
|
5714 | #ifdef __cplusplus |
|
|
5715 | extern "C" |
|
|
5716 | #endif |
|
|
5717 | char clock_gettime (); |
|
|
5718 | int |
|
|
5719 | main () |
|
|
5720 | { |
|
|
5721 | return clock_gettime (); |
|
|
5722 | ; |
|
|
5723 | return 0; |
|
|
5724 | } |
|
|
5725 | _ACEOF |
|
|
5726 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5727 | if { (ac_try="$ac_link" |
|
|
5728 | case "(($ac_try" in |
|
|
5729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5730 | *) ac_try_echo=$ac_try;; |
|
|
5731 | esac |
|
|
5732 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5733 | (eval "$ac_link") 2>conftest.er1 |
|
|
5734 | ac_status=$? |
|
|
5735 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5736 | rm -f conftest.er1 |
|
|
5737 | cat conftest.err >&5 |
|
|
5738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5739 | (exit $ac_status); } && { |
|
|
5740 | test -z "$ac_cxx_werror_flag" || |
|
|
5741 | test ! -s conftest.err |
|
|
5742 | } && test -s conftest$ac_exeext && |
|
|
5743 | $as_test_x conftest$ac_exeext; then |
|
|
5744 | ac_cv_lib_rt_clock_gettime=yes |
|
|
5745 | else |
|
|
5746 | echo "$as_me: failed program was:" >&5 |
|
|
5747 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5748 | |
|
|
5749 | ac_cv_lib_rt_clock_gettime=no |
|
|
5750 | fi |
|
|
5751 | |
|
|
5752 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5753 | conftest$ac_exeext conftest.$ac_ext |
|
|
5754 | LIBS=$ac_check_lib_save_LIBS |
|
|
5755 | fi |
|
|
5756 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
|
|
5757 | echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; } |
|
|
5758 | if test $ac_cv_lib_rt_clock_gettime = yes; then |
|
|
5759 | cat >>confdefs.h <<_ACEOF |
|
|
5760 | #define HAVE_LIBRT 1 |
|
|
5761 | _ACEOF |
|
|
5762 | |
|
|
5763 | LIBS="-lrt $LIBS" |
|
|
5764 | |
|
|
5765 | fi |
|
|
5766 | |
|
|
5767 | |
|
|
5768 | for ac_func in clock_gettime |
|
|
5769 | do |
|
|
5770 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
5771 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
5772 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
5773 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5775 | else |
|
|
5776 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5777 | /* confdefs.h. */ |
|
|
5778 | _ACEOF |
|
|
5779 | cat confdefs.h >>conftest.$ac_ext |
|
|
5780 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5781 | /* end confdefs.h. */ |
|
|
5782 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
5783 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5784 | #define $ac_func innocuous_$ac_func |
|
|
5785 | |
|
|
5786 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5787 | which can conflict with char $ac_func (); below. |
|
|
5788 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5789 | <limits.h> exists even on freestanding compilers. */ |
|
|
5790 | |
|
|
5791 | #ifdef __STDC__ |
|
|
5792 | # include <limits.h> |
|
|
5793 | #else |
|
|
5794 | # include <assert.h> |
|
|
5795 | #endif |
|
|
5796 | |
|
|
5797 | #undef $ac_func |
|
|
5798 | |
|
|
5799 | /* Override any GCC internal prototype to avoid an error. |
|
|
5800 | Use char because int might match the return type of a GCC |
|
|
5801 | builtin and then its argument prototype would still apply. */ |
|
|
5802 | #ifdef __cplusplus |
|
|
5803 | extern "C" |
|
|
5804 | #endif |
|
|
5805 | char $ac_func (); |
|
|
5806 | /* The GNU C library defines this for functions which it implements |
|
|
5807 | to always fail with ENOSYS. Some functions are actually named |
|
|
5808 | something starting with __ and the normal name is an alias. */ |
|
|
5809 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
5810 | choke me |
|
|
5811 | #endif |
|
|
5812 | |
|
|
5813 | int |
|
|
5814 | main () |
|
|
5815 | { |
|
|
5816 | return $ac_func (); |
|
|
5817 | ; |
|
|
5818 | return 0; |
|
|
5819 | } |
|
|
5820 | _ACEOF |
|
|
5821 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5822 | if { (ac_try="$ac_link" |
|
|
5823 | case "(($ac_try" in |
|
|
5824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5825 | *) ac_try_echo=$ac_try;; |
|
|
5826 | esac |
|
|
5827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5828 | (eval "$ac_link") 2>conftest.er1 |
|
|
5829 | ac_status=$? |
|
|
5830 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5831 | rm -f conftest.er1 |
|
|
5832 | cat conftest.err >&5 |
|
|
5833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5834 | (exit $ac_status); } && { |
|
|
5835 | test -z "$ac_cxx_werror_flag" || |
|
|
5836 | test ! -s conftest.err |
|
|
5837 | } && test -s conftest$ac_exeext && |
|
|
5838 | $as_test_x conftest$ac_exeext; then |
|
|
5839 | eval "$as_ac_var=yes" |
|
|
5840 | else |
|
|
5841 | echo "$as_me: failed program was:" >&5 |
|
|
5842 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5843 | |
|
|
5844 | eval "$as_ac_var=no" |
|
|
5845 | fi |
|
|
5846 | |
|
|
5847 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5848 | conftest$ac_exeext conftest.$ac_ext |
|
|
5849 | fi |
|
|
5850 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
5851 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5852 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5853 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
5854 | cat >>confdefs.h <<_ACEOF |
|
|
5855 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
5856 | _ACEOF |
|
|
5857 | |
|
|
5858 | fi |
|
|
5859 | done |
|
|
5860 | |
|
|
5861 | fi |
|
|
5862 | |
|
|
5863 | fi |
|
|
5864 | |
|
|
5865 | |
|
|
5866 | |
|
|
5867 | { echo "$as_me:$LINENO: checking for ceil in -lm" >&5 |
|
|
5868 | echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; } |
|
|
5869 | if test "${ac_cv_lib_m_ceil+set}" = set; then |
|
|
5870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5871 | else |
|
|
5872 | ac_check_lib_save_LIBS=$LIBS |
|
|
5873 | LIBS="-lm $LIBS" |
|
|
5874 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5875 | /* confdefs.h. */ |
|
|
5876 | _ACEOF |
|
|
5877 | cat confdefs.h >>conftest.$ac_ext |
|
|
5878 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5879 | /* end confdefs.h. */ |
|
|
5880 | |
|
|
5881 | /* Override any GCC internal prototype to avoid an error. |
|
|
5882 | Use char because int might match the return type of a GCC |
|
|
5883 | builtin and then its argument prototype would still apply. */ |
|
|
5884 | #ifdef __cplusplus |
|
|
5885 | extern "C" |
|
|
5886 | #endif |
|
|
5887 | char ceil (); |
|
|
5888 | int |
|
|
5889 | main () |
|
|
5890 | { |
|
|
5891 | return ceil (); |
|
|
5892 | ; |
|
|
5893 | return 0; |
|
|
5894 | } |
|
|
5895 | _ACEOF |
|
|
5896 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5897 | if { (ac_try="$ac_link" |
|
|
5898 | case "(($ac_try" in |
|
|
5899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5900 | *) ac_try_echo=$ac_try;; |
|
|
5901 | esac |
|
|
5902 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5903 | (eval "$ac_link") 2>conftest.er1 |
|
|
5904 | ac_status=$? |
|
|
5905 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5906 | rm -f conftest.er1 |
|
|
5907 | cat conftest.err >&5 |
|
|
5908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5909 | (exit $ac_status); } && { |
|
|
5910 | test -z "$ac_cxx_werror_flag" || |
|
|
5911 | test ! -s conftest.err |
|
|
5912 | } && test -s conftest$ac_exeext && |
|
|
5913 | $as_test_x conftest$ac_exeext; then |
|
|
5914 | ac_cv_lib_m_ceil=yes |
|
|
5915 | else |
|
|
5916 | echo "$as_me: failed program was:" >&5 |
|
|
5917 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5918 | |
|
|
5919 | ac_cv_lib_m_ceil=no |
|
|
5920 | fi |
|
|
5921 | |
|
|
5922 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5923 | conftest$ac_exeext conftest.$ac_ext |
|
|
5924 | LIBS=$ac_check_lib_save_LIBS |
|
|
5925 | fi |
|
|
5926 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5 |
|
|
5927 | echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6; } |
|
|
5928 | if test $ac_cv_lib_m_ceil = yes; then |
|
|
5929 | cat >>confdefs.h <<_ACEOF |
|
|
5930 | #define HAVE_LIBM 1 |
|
|
5931 | _ACEOF |
|
|
5932 | |
|
|
5933 | LIBS="-lm $LIBS" |
|
|
5934 | |
|
|
5935 | fi |
|
|
5936 | |
|
|
5937 | |
|
|
5938 | |
|
|
5939 | |
4834 | |
5940 | |
4835 | |
5941 | |
4836 | |
5942 | |
4837 | # Extract the first word of "tic", so it can be a program name with args. |
5943 | # Extract the first word of "tic", so it can be a program name with args. |
4838 | set dummy tic; ac_word=$2 |
5944 | set dummy tic; ac_word=$2 |
… | |
… | |
4859 | fi |
5965 | fi |
4860 | done |
5966 | done |
4861 | done |
5967 | done |
4862 | IFS=$as_save_IFS |
5968 | IFS=$as_save_IFS |
4863 | |
5969 | |
|
|
5970 | test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":" |
4864 | ;; |
5971 | ;; |
4865 | esac |
5972 | esac |
4866 | fi |
5973 | fi |
4867 | TIC=$ac_cv_path_TIC |
5974 | TIC=$ac_cv_path_TIC |
4868 | if test -n "$TIC"; then |
5975 | if test -n "$TIC"; then |
… | |
… | |
4873 | echo "${ECHO_T}no" >&6; } |
5980 | echo "${ECHO_T}no" >&6; } |
4874 | fi |
5981 | fi |
4875 | |
5982 | |
4876 | |
5983 | |
4877 | |
5984 | |
4878 | |
|
|
4879 | |
|
|
4880 | ac_ext=cpp |
|
|
4881 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
4882 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4883 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4884 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
4885 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
4886 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
|
|
4887 | if test -z "$CXXCPP"; then |
|
|
4888 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
|
4889 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4890 | else |
|
|
4891 | # Double quotes because CXXCPP needs to be expanded |
|
|
4892 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
4893 | do |
|
|
4894 | ac_preproc_ok=false |
|
|
4895 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4896 | do |
|
|
4897 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4898 | # with a fresh cross-compiler works. |
|
|
4899 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4900 | # <limits.h> exists even on freestanding compilers. |
|
|
4901 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4902 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4903 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4904 | /* confdefs.h. */ |
|
|
4905 | _ACEOF |
|
|
4906 | cat confdefs.h >>conftest.$ac_ext |
|
|
4907 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4908 | /* end confdefs.h. */ |
|
|
4909 | #ifdef __STDC__ |
|
|
4910 | # include <limits.h> |
|
|
4911 | #else |
|
|
4912 | # include <assert.h> |
|
|
4913 | #endif |
|
|
4914 | Syntax error |
|
|
4915 | _ACEOF |
|
|
4916 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4917 | case "(($ac_try" in |
|
|
4918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4919 | *) ac_try_echo=$ac_try;; |
|
|
4920 | esac |
|
|
4921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4922 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4923 | ac_status=$? |
|
|
4924 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4925 | rm -f conftest.er1 |
|
|
4926 | cat conftest.err >&5 |
|
|
4927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4928 | (exit $ac_status); } >/dev/null && { |
|
|
4929 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4930 | test ! -s conftest.err |
|
|
4931 | }; then |
|
|
4932 | : |
|
|
4933 | else |
|
|
4934 | echo "$as_me: failed program was:" >&5 |
|
|
4935 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4936 | |
|
|
4937 | # Broken: fails on valid input. |
|
|
4938 | continue |
|
|
4939 | fi |
|
|
4940 | |
|
|
4941 | rm -f conftest.err conftest.$ac_ext |
|
|
4942 | |
|
|
4943 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
4944 | # can be detected and how. |
|
|
4945 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4946 | /* confdefs.h. */ |
|
|
4947 | _ACEOF |
|
|
4948 | cat confdefs.h >>conftest.$ac_ext |
|
|
4949 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4950 | /* end confdefs.h. */ |
|
|
4951 | #include <ac_nonexistent.h> |
|
|
4952 | _ACEOF |
|
|
4953 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4954 | case "(($ac_try" in |
|
|
4955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4956 | *) ac_try_echo=$ac_try;; |
|
|
4957 | esac |
|
|
4958 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4959 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4960 | ac_status=$? |
|
|
4961 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4962 | rm -f conftest.er1 |
|
|
4963 | cat conftest.err >&5 |
|
|
4964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4965 | (exit $ac_status); } >/dev/null && { |
|
|
4966 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4967 | test ! -s conftest.err |
|
|
4968 | }; then |
|
|
4969 | # Broken: success on invalid input. |
|
|
4970 | continue |
|
|
4971 | else |
|
|
4972 | echo "$as_me: failed program was:" >&5 |
|
|
4973 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4974 | |
|
|
4975 | # Passes both tests. |
|
|
4976 | ac_preproc_ok=: |
|
|
4977 | break |
|
|
4978 | fi |
|
|
4979 | |
|
|
4980 | rm -f conftest.err conftest.$ac_ext |
|
|
4981 | |
|
|
4982 | done |
|
|
4983 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
4984 | rm -f conftest.err conftest.$ac_ext |
|
|
4985 | if $ac_preproc_ok; then |
|
|
4986 | break |
|
|
4987 | fi |
|
|
4988 | |
|
|
4989 | done |
|
|
4990 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
4991 | |
|
|
4992 | fi |
|
|
4993 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
4994 | else |
|
|
4995 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
4996 | fi |
|
|
4997 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
4998 | echo "${ECHO_T}$CXXCPP" >&6; } |
|
|
4999 | ac_preproc_ok=false |
|
|
5000 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
5001 | do |
|
|
5002 | # Use a header file that comes with gcc, so configuring glibc |
|
|
5003 | # with a fresh cross-compiler works. |
|
|
5004 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5005 | # <limits.h> exists even on freestanding compilers. |
|
|
5006 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
5007 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
5008 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5009 | /* confdefs.h. */ |
|
|
5010 | _ACEOF |
|
|
5011 | cat confdefs.h >>conftest.$ac_ext |
|
|
5012 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5013 | /* end confdefs.h. */ |
|
|
5014 | #ifdef __STDC__ |
|
|
5015 | # include <limits.h> |
|
|
5016 | #else |
|
|
5017 | # include <assert.h> |
|
|
5018 | #endif |
|
|
5019 | Syntax error |
|
|
5020 | _ACEOF |
|
|
5021 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5022 | case "(($ac_try" in |
|
|
5023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5024 | *) ac_try_echo=$ac_try;; |
|
|
5025 | esac |
|
|
5026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5027 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5028 | ac_status=$? |
|
|
5029 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5030 | rm -f conftest.er1 |
|
|
5031 | cat conftest.err >&5 |
|
|
5032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5033 | (exit $ac_status); } >/dev/null && { |
|
|
5034 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5035 | test ! -s conftest.err |
|
|
5036 | }; then |
|
|
5037 | : |
|
|
5038 | else |
|
|
5039 | echo "$as_me: failed program was:" >&5 |
|
|
5040 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5041 | |
|
|
5042 | # Broken: fails on valid input. |
|
|
5043 | continue |
|
|
5044 | fi |
|
|
5045 | |
|
|
5046 | rm -f conftest.err conftest.$ac_ext |
|
|
5047 | |
|
|
5048 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
5049 | # can be detected and how. |
|
|
5050 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5051 | /* confdefs.h. */ |
|
|
5052 | _ACEOF |
|
|
5053 | cat confdefs.h >>conftest.$ac_ext |
|
|
5054 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5055 | /* end confdefs.h. */ |
|
|
5056 | #include <ac_nonexistent.h> |
|
|
5057 | _ACEOF |
|
|
5058 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5059 | case "(($ac_try" in |
|
|
5060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5061 | *) ac_try_echo=$ac_try;; |
|
|
5062 | esac |
|
|
5063 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5064 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5065 | ac_status=$? |
|
|
5066 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5067 | rm -f conftest.er1 |
|
|
5068 | cat conftest.err >&5 |
|
|
5069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5070 | (exit $ac_status); } >/dev/null && { |
|
|
5071 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5072 | test ! -s conftest.err |
|
|
5073 | }; then |
|
|
5074 | # Broken: success on invalid input. |
|
|
5075 | continue |
|
|
5076 | else |
|
|
5077 | echo "$as_me: failed program was:" >&5 |
|
|
5078 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5079 | |
|
|
5080 | # Passes both tests. |
|
|
5081 | ac_preproc_ok=: |
|
|
5082 | break |
|
|
5083 | fi |
|
|
5084 | |
|
|
5085 | rm -f conftest.err conftest.$ac_ext |
|
|
5086 | |
|
|
5087 | done |
|
|
5088 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5089 | rm -f conftest.err conftest.$ac_ext |
|
|
5090 | if $ac_preproc_ok; then |
|
|
5091 | : |
|
|
5092 | else |
|
|
5093 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5094 | See \`config.log' for more details." >&5 |
|
|
5095 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5096 | See \`config.log' for more details." >&2;} |
|
|
5097 | { (exit 1); exit 1; }; } |
|
|
5098 | fi |
|
|
5099 | |
|
|
5100 | ac_ext=cpp |
|
|
5101 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5102 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5103 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5104 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
5105 | |
5985 | |
5106 | |
5986 | |
5107 | { echo "$as_me:$LINENO: checking for X" >&5 |
5987 | { echo "$as_me:$LINENO: checking for X" >&5 |
5108 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
5988 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
5109 | |
5989 | |
… | |
… | |
6562 | #define HAVE_SYS_WAIT_H 1 |
7442 | #define HAVE_SYS_WAIT_H 1 |
6563 | _ACEOF |
7443 | _ACEOF |
6564 | |
7444 | |
6565 | fi |
7445 | fi |
6566 | |
7446 | |
6567 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
6568 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
|
|
6569 | if test "${ac_cv_header_stdc+set}" = set; then |
|
|
6570 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6571 | else |
|
|
6572 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6573 | /* confdefs.h. */ |
|
|
6574 | _ACEOF |
|
|
6575 | cat confdefs.h >>conftest.$ac_ext |
|
|
6576 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6577 | /* end confdefs.h. */ |
|
|
6578 | #include <stdlib.h> |
|
|
6579 | #include <stdarg.h> |
|
|
6580 | #include <string.h> |
|
|
6581 | #include <float.h> |
|
|
6582 | |
|
|
6583 | int |
|
|
6584 | main () |
|
|
6585 | { |
|
|
6586 | |
|
|
6587 | ; |
|
|
6588 | return 0; |
|
|
6589 | } |
|
|
6590 | _ACEOF |
|
|
6591 | rm -f conftest.$ac_objext |
|
|
6592 | if { (ac_try="$ac_compile" |
|
|
6593 | case "(($ac_try" in |
|
|
6594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6595 | *) ac_try_echo=$ac_try;; |
|
|
6596 | esac |
|
|
6597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6598 | (eval "$ac_compile") 2>conftest.er1 |
|
|
6599 | ac_status=$? |
|
|
6600 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6601 | rm -f conftest.er1 |
|
|
6602 | cat conftest.err >&5 |
|
|
6603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6604 | (exit $ac_status); } && { |
|
|
6605 | test -z "$ac_cxx_werror_flag" || |
|
|
6606 | test ! -s conftest.err |
|
|
6607 | } && test -s conftest.$ac_objext; then |
|
|
6608 | ac_cv_header_stdc=yes |
|
|
6609 | else |
|
|
6610 | echo "$as_me: failed program was:" >&5 |
|
|
6611 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6612 | |
|
|
6613 | ac_cv_header_stdc=no |
|
|
6614 | fi |
|
|
6615 | |
|
|
6616 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6617 | |
|
|
6618 | if test $ac_cv_header_stdc = yes; then |
|
|
6619 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
6620 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6621 | /* confdefs.h. */ |
|
|
6622 | _ACEOF |
|
|
6623 | cat confdefs.h >>conftest.$ac_ext |
|
|
6624 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6625 | /* end confdefs.h. */ |
|
|
6626 | #include <string.h> |
|
|
6627 | |
|
|
6628 | _ACEOF |
|
|
6629 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
6630 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
6631 | : |
|
|
6632 | else |
|
|
6633 | ac_cv_header_stdc=no |
|
|
6634 | fi |
|
|
6635 | rm -f conftest* |
|
|
6636 | |
|
|
6637 | fi |
|
|
6638 | |
|
|
6639 | if test $ac_cv_header_stdc = yes; then |
|
|
6640 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
6641 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6642 | /* confdefs.h. */ |
|
|
6643 | _ACEOF |
|
|
6644 | cat confdefs.h >>conftest.$ac_ext |
|
|
6645 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6646 | /* end confdefs.h. */ |
|
|
6647 | #include <stdlib.h> |
|
|
6648 | |
|
|
6649 | _ACEOF |
|
|
6650 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
6651 | $EGREP "free" >/dev/null 2>&1; then |
|
|
6652 | : |
|
|
6653 | else |
|
|
6654 | ac_cv_header_stdc=no |
|
|
6655 | fi |
|
|
6656 | rm -f conftest* |
|
|
6657 | |
|
|
6658 | fi |
|
|
6659 | |
|
|
6660 | if test $ac_cv_header_stdc = yes; then |
|
|
6661 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
6662 | if test "$cross_compiling" = yes; then |
|
|
6663 | : |
|
|
6664 | else |
|
|
6665 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6666 | /* confdefs.h. */ |
|
|
6667 | _ACEOF |
|
|
6668 | cat confdefs.h >>conftest.$ac_ext |
|
|
6669 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6670 | /* end confdefs.h. */ |
|
|
6671 | #include <ctype.h> |
|
|
6672 | #include <stdlib.h> |
|
|
6673 | #if ((' ' & 0x0FF) == 0x020) |
|
|
6674 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
6675 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
6676 | #else |
|
|
6677 | # define ISLOWER(c) \ |
|
|
6678 | (('a' <= (c) && (c) <= 'i') \ |
|
|
6679 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
6680 | || ('s' <= (c) && (c) <= 'z')) |
|
|
6681 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
6682 | #endif |
|
|
6683 | |
|
|
6684 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
6685 | int |
|
|
6686 | main () |
|
|
6687 | { |
|
|
6688 | int i; |
|
|
6689 | for (i = 0; i < 256; i++) |
|
|
6690 | if (XOR (islower (i), ISLOWER (i)) |
|
|
6691 | || toupper (i) != TOUPPER (i)) |
|
|
6692 | return 2; |
|
|
6693 | return 0; |
|
|
6694 | } |
|
|
6695 | _ACEOF |
|
|
6696 | rm -f conftest$ac_exeext |
|
|
6697 | if { (ac_try="$ac_link" |
|
|
6698 | case "(($ac_try" in |
|
|
6699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6700 | *) ac_try_echo=$ac_try;; |
|
|
6701 | esac |
|
|
6702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6703 | (eval "$ac_link") 2>&5 |
|
|
6704 | ac_status=$? |
|
|
6705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6706 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
6707 | { (case "(($ac_try" in |
|
|
6708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6709 | *) ac_try_echo=$ac_try;; |
|
|
6710 | esac |
|
|
6711 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6712 | (eval "$ac_try") 2>&5 |
|
|
6713 | ac_status=$? |
|
|
6714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6715 | (exit $ac_status); }; }; then |
|
|
6716 | : |
|
|
6717 | else |
|
|
6718 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
6719 | echo "$as_me: failed program was:" >&5 |
|
|
6720 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6721 | |
|
|
6722 | ( exit $ac_status ) |
|
|
6723 | ac_cv_header_stdc=no |
|
|
6724 | fi |
|
|
6725 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
6726 | fi |
|
|
6727 | |
|
|
6728 | |
|
|
6729 | fi |
|
|
6730 | fi |
|
|
6731 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
6732 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
|
|
6733 | if test $ac_cv_header_stdc = yes; then |
|
|
6734 | |
|
|
6735 | cat >>confdefs.h <<\_ACEOF |
|
|
6736 | #define STDC_HEADERS 1 |
|
|
6737 | _ACEOF |
|
|
6738 | |
|
|
6739 | fi |
|
|
6740 | |
|
|
6741 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
6742 | |
|
|
6743 | |
|
|
6744 | |
|
|
6745 | |
|
|
6746 | |
|
|
6747 | |
|
|
6748 | |
|
|
6749 | |
|
|
6750 | |
|
|
6751 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
6752 | inttypes.h stdint.h unistd.h |
|
|
6753 | do |
|
|
6754 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
6755 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
6756 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
6757 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
6758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6759 | else |
|
|
6760 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6761 | /* confdefs.h. */ |
|
|
6762 | _ACEOF |
|
|
6763 | cat confdefs.h >>conftest.$ac_ext |
|
|
6764 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6765 | /* end confdefs.h. */ |
|
|
6766 | $ac_includes_default |
|
|
6767 | |
|
|
6768 | #include <$ac_header> |
|
|
6769 | _ACEOF |
|
|
6770 | rm -f conftest.$ac_objext |
|
|
6771 | if { (ac_try="$ac_compile" |
|
|
6772 | case "(($ac_try" in |
|
|
6773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6774 | *) ac_try_echo=$ac_try;; |
|
|
6775 | esac |
|
|
6776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6777 | (eval "$ac_compile") 2>conftest.er1 |
|
|
6778 | ac_status=$? |
|
|
6779 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6780 | rm -f conftest.er1 |
|
|
6781 | cat conftest.err >&5 |
|
|
6782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6783 | (exit $ac_status); } && { |
|
|
6784 | test -z "$ac_cxx_werror_flag" || |
|
|
6785 | test ! -s conftest.err |
|
|
6786 | } && test -s conftest.$ac_objext; then |
|
|
6787 | eval "$as_ac_Header=yes" |
|
|
6788 | else |
|
|
6789 | echo "$as_me: failed program was:" >&5 |
|
|
6790 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6791 | |
|
|
6792 | eval "$as_ac_Header=no" |
|
|
6793 | fi |
|
|
6794 | |
|
|
6795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6796 | fi |
|
|
6797 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
6798 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
6799 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
6800 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
6801 | cat >>confdefs.h <<_ACEOF |
|
|
6802 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
6803 | _ACEOF |
|
|
6804 | |
|
|
6805 | fi |
|
|
6806 | |
|
|
6807 | done |
|
|
6808 | |
|
|
6809 | |
|
|
6810 | |
7447 | |
6811 | |
7448 | |
6812 | |
7449 | |
6813 | |
7450 | |
6814 | |
7451 | |
… | |
… | |
9576 | _ACEOF |
10213 | _ACEOF |
9577 | |
10214 | |
9578 | |
10215 | |
9579 | |
10216 | |
9580 | |
10217 | |
9581 | |
|
|
9582 | |
|
|
9583 | for ac_func in \ |
10218 | for ac_func in unsetenv |
9584 | unsetenv \ |
|
|
9585 | setutent \ |
|
|
9586 | on_exit \ |
|
|
9587 | |
|
|
9588 | do |
10219 | do |
9589 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10220 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9590 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10221 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9591 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
10222 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
9592 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
10223 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
… | |
… | |
9731 | |
10362 | |
9732 | |
10363 | |
9733 | |
10364 | |
9734 | |
10365 | |
9735 | for ac_func in \ |
10366 | for ac_func in \ |
9736 | ttyslot \ |
|
|
9737 | updwtmp \ |
10367 | updwtmp \ |
9738 | updwtmpx \ |
10368 | updwtmpx \ |
|
|
10369 | updlastlogx \ |
9739 | |
10370 | |
9740 | do |
10371 | do |
9741 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10372 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9742 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10373 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9743 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
10374 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
… | |
… | |
11164 | |
11795 | |
11165 | cat >>confdefs.h <<_ACEOF |
11796 | cat >>confdefs.h <<_ACEOF |
11166 | #define LASTLOG_FILE "$path_lastlog" |
11797 | #define LASTLOG_FILE "$path_lastlog" |
11167 | _ACEOF |
11798 | _ACEOF |
11168 | |
11799 | |
11169 | if test -d "$path_lastlog"; then |
|
|
11170 | |
|
|
11171 | cat >>confdefs.h <<\_ACEOF |
|
|
11172 | #define LASTLOG_IS_DIR 1 |
|
|
11173 | _ACEOF |
|
|
11174 | |
|
|
11175 | fi |
|
|
11176 | fi |
11800 | fi |
11177 | |
11801 | |
11178 | { echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
11802 | { echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
11179 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } |
11803 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } |
11180 | if test "${path_lastlogx+set}" = set; then |
11804 | if test "${path_lastlogx+set}" = set; then |
… | |
… | |
11262 | |
11886 | |
11263 | fi |
11887 | fi |
11264 | |
11888 | |
11265 | |
11889 | |
11266 | |
11890 | |
11267 | { echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 |
|
|
11268 | echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6; } |
|
|
11269 | if test "${rxvt_cv_path_ttytab+set}" = set; then |
|
|
11270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11271 | else |
|
|
11272 | for ttys_file in /etc/ttys /etc/ttytab; |
|
|
11273 | do |
|
|
11274 | if test -f "$ttys_file" ; then |
|
|
11275 | rxvt_cv_path_ttytab=$ttys_file |
|
|
11276 | break |
|
|
11277 | fi |
|
|
11278 | done |
|
|
11279 | |
11891 | |
11280 | fi |
|
|
11281 | { echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5 |
|
|
11282 | echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6; } |
|
|
11283 | if test x$rxvt_cv_path_ttytab != x; then |
|
|
11284 | |
|
|
11285 | cat >>confdefs.h <<_ACEOF |
|
|
11286 | #define TTYTAB_FILENAME "$rxvt_cv_path_ttytab" |
|
|
11287 | _ACEOF |
|
|
11288 | |
|
|
11289 | fi |
|
|
11290 | |
|
|
11291 | |
|
|
11292 | ac_save_LIBS=$LIBS |
11892 | save_LIBS=$LIBS |
11293 | ac_save_CFLAGS=$CFLAGS |
11893 | save_CFLAGS=$CFLAGS |
11294 | CFLAGS="$CFLAGS $X_CFLAGS" |
11894 | CFLAGS="$CFLAGS $X_CFLAGS" |
11295 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
11895 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
11296 | if test x$support_xim = xyes; then |
11896 | if test x$support_xim = xyes; then |
11297 | { echo "$as_me:$LINENO: checking for working Xlocale" >&5 |
11897 | { echo "$as_me:$LINENO: checking for working Xlocale" >&5 |
11298 | echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } |
11898 | echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } |
… | |
… | |
11473 | cat >>confdefs.h <<\_ACEOF |
12073 | cat >>confdefs.h <<\_ACEOF |
11474 | #define HAVE_XSETLOCALE 1 |
12074 | #define HAVE_XSETLOCALE 1 |
11475 | _ACEOF |
12075 | _ACEOF |
11476 | |
12076 | |
11477 | fi |
12077 | fi |
11478 | LIBS=$ac_save_LIBS |
12078 | LIBS=$save_LIBS |
11479 | CFLAGS=$ac_save_CFLAGS |
12079 | CFLAGS=$save_CFLAGS |
11480 | |
12080 | |
11481 | { echo "$as_me:$LINENO: checking for working plain setlocale" >&5 |
12081 | { echo "$as_me:$LINENO: checking for working plain setlocale" >&5 |
11482 | echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } |
12082 | echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } |
11483 | if test "${rxvt_cv_func_setlocale+set}" = set; then |
12083 | if test "${rxvt_cv_func_setlocale+set}" = set; then |
11484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
12377 | echo "${ECHO_T}no" >&6; } |
12977 | echo "${ECHO_T}no" >&6; } |
12378 | fi |
12978 | fi |
12379 | |
12979 | |
12380 | |
12980 | |
12381 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
12981 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
12382 | LIBS="$LIBS `$PKG_CONFIG xft --libs`" |
12982 | X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS" |
12383 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
12983 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
12384 | else |
12984 | else |
12385 | # Extract the first word of "xft-config", so it can be a program name with args. |
12985 | # Extract the first word of "xft-config", so it can be a program name with args. |
12386 | set dummy xft-config; ac_word=$2 |
12986 | set dummy xft-config; ac_word=$2 |
12387 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
12987 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
… | |
… | |
12422 | echo "${ECHO_T}no" >&6; } |
13022 | echo "${ECHO_T}no" >&6; } |
12423 | fi |
13023 | fi |
12424 | |
13024 | |
12425 | |
13025 | |
12426 | if test $XFT_CONFIG != no; then |
13026 | if test $XFT_CONFIG != no; then |
12427 | LIBS="$LIBS `$XFT_CONFIG --libs`" |
13027 | X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" |
12428 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
13028 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
12429 | fi |
13029 | fi |
12430 | fi |
13030 | fi |
12431 | |
13031 | |
|
|
13032 | save_LIBS="$LIBS" |
|
|
13033 | LIBS="$LIBS $X_LIBS" |
12432 | |
13034 | |
12433 | for ac_header in X11/Xft/Xft.h |
13035 | for ac_header in X11/Xft/Xft.h |
12434 | do |
13036 | do |
12435 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13037 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12436 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
13038 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
… | |
… | |
12569 | support_xft=no |
13171 | support_xft=no |
12570 | fi |
13172 | fi |
12571 | |
13173 | |
12572 | done |
13174 | done |
12573 | |
13175 | |
12574 | |
|
|
12575 | { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
13176 | { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
12576 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
13177 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
12577 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
13178 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
12578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12579 | else |
13180 | else |
12580 | ac_check_lib_save_LIBS=$LIBS |
13181 | ac_check_lib_save_LIBS=$LIBS |
… | |
… | |
12632 | LIBS=$ac_check_lib_save_LIBS |
13233 | LIBS=$ac_check_lib_save_LIBS |
12633 | fi |
13234 | fi |
12634 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
13235 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
12635 | echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } |
13236 | echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } |
12636 | if test $ac_cv_lib_Xft_XftDrawString32 = yes; then |
13237 | if test $ac_cv_lib_Xft_XftDrawString32 = yes; then |
12637 | cat >>confdefs.h <<_ACEOF |
13238 | : |
12638 | #define HAVE_LIBXFT 1 |
|
|
12639 | _ACEOF |
|
|
12640 | |
|
|
12641 | LIBS="-lXft $LIBS" |
|
|
12642 | |
|
|
12643 | else |
13239 | else |
12644 | support_xft=no |
13240 | support_xft=no |
12645 | fi |
13241 | fi |
12646 | |
13242 | |
|
|
13243 | LIBS="$save_LIBS" |
12647 | |
13244 | |
12648 | if test x$support_xft = xyes; then |
13245 | if test x$support_xft = xyes; then |
12649 | |
13246 | |
12650 | cat >>confdefs.h <<\_ACEOF |
13247 | cat >>confdefs.h <<\_ACEOF |
12651 | #define XFT 1 |
13248 | #define XFT 1 |
… | |
… | |
13796 | GREP!$GREP$ac_delim |
14393 | GREP!$GREP$ac_delim |
13797 | EGREP!$EGREP$ac_delim |
14394 | EGREP!$EGREP$ac_delim |
13798 | LINKER!$LINKER$ac_delim |
14395 | LINKER!$LINKER$ac_delim |
13799 | INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim |
14396 | INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim |
13800 | RXVTNAME!$RXVTNAME$ac_delim |
14397 | RXVTNAME!$RXVTNAME$ac_delim |
|
|
14398 | CXXCPP!$CXXCPP$ac_delim |
13801 | TIC!$TIC$ac_delim |
14399 | TIC!$TIC$ac_delim |
13802 | XMKMF!$XMKMF$ac_delim |
14400 | XMKMF!$XMKMF$ac_delim |
13803 | CXXCPP!$CXXCPP$ac_delim |
|
|
13804 | X_CFLAGS!$X_CFLAGS$ac_delim |
14401 | X_CFLAGS!$X_CFLAGS$ac_delim |
13805 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
14402 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
13806 | X_LIBS!$X_LIBS$ac_delim |
14403 | X_LIBS!$X_LIBS$ac_delim |
13807 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
14404 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
13808 | afterimage_config!$afterimage_config$ac_delim |
14405 | afterimage_config!$afterimage_config$ac_delim |