… | |
… | |
658 | host_cpu |
658 | host_cpu |
659 | host_vendor |
659 | host_vendor |
660 | host_os |
660 | host_os |
661 | VERSION |
661 | VERSION |
662 | DATE |
662 | DATE |
663 | LSMDATE |
|
|
664 | LIBVERSION |
|
|
665 | CC |
663 | CC |
666 | CFLAGS |
664 | CFLAGS |
667 | LDFLAGS |
665 | LDFLAGS |
668 | CPPFLAGS |
666 | CPPFLAGS |
669 | ac_ct_CC |
667 | ac_ct_CC |
… | |
… | |
677 | INSTALL_SCRIPT |
675 | INSTALL_SCRIPT |
678 | INSTALL_DATA |
676 | INSTALL_DATA |
679 | GREP |
677 | GREP |
680 | EGREP |
678 | EGREP |
681 | LINKER |
679 | LINKER |
682 | INSTALL_LIBRXVT |
|
|
683 | RXVTNAME |
680 | RXVTNAME |
|
|
681 | CXXCPP |
684 | TIC |
682 | TIC |
685 | XMKMF |
683 | XMKMF |
686 | CXXCPP |
|
|
687 | X_CFLAGS |
684 | X_CFLAGS |
688 | X_PRE_LIBS |
685 | X_PRE_LIBS |
689 | X_LIBS |
686 | X_LIBS |
690 | X_EXTRA_LIBS |
687 | X_EXTRA_LIBS |
691 | afterimage_config |
688 | afterimage_config |
… | |
… | |
731 | CPPFLAGS |
728 | CPPFLAGS |
732 | CXX |
729 | CXX |
733 | CXXFLAGS |
730 | CXXFLAGS |
734 | CCC |
731 | CCC |
735 | CPP |
732 | CPP |
736 | XMKMF |
|
|
737 | CXXCPP' |
733 | CXXCPP |
|
|
734 | XMKMF' |
738 | |
735 | |
739 | |
736 | |
740 | # Initialize some variables set by options. |
737 | # Initialize some variables set by options. |
741 | ac_init_help= |
738 | ac_init_help= |
742 | ac_init_version=false |
739 | ac_init_version=false |
… | |
… | |
1316 | Optional Features: |
1313 | Optional Features: |
1317 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1314 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1318 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1315 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1319 | --enable-everything enable standard non-multichoice features |
1316 | --enable-everything enable standard non-multichoice features |
1320 | NOTE: this option is order dependent |
1317 | NOTE: this option is order dependent |
1321 | NOTE: automatically enabled with --enable-shared |
1318 | --enable-warnings turn on g++ warnings |
1322 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1319 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1323 | --enable-combining enable composition of base and combining characters |
1320 | --enable-combining enable composition of base and combining characters |
1324 | --enable-xft enable xft support on systems that have it |
1321 | --enable-xft enable xft support on systems that have it |
1325 | --enable-font-styles enable bold and italic support |
1322 | --enable-font-styles enable bold and italic support |
1326 | --enable-afterimage enable integration with libAfterImage for background images |
1323 | --enable-afterimage enable integration with libAfterImage for background images |
1327 | --enable-transparency enable transparent backgrounds |
1324 | --enable-transparency enable transparent backgrounds |
1328 | --enable-fading enable colors fading when off focus |
1325 | --enable-fading enable colors fading when off focus |
1329 | --enable-rxvt-scroll enable rxvt style scrollbar |
1326 | --enable-rxvt-scroll enable rxvt style scrollbar |
1330 | --enable-next-scroll enable NeXT style scrollbar |
1327 | --enable-next-scroll enable NeXT style scrollbar |
1331 | --enable-xterm-scroll enable Xterm style scrollbar |
1328 | --enable-xterm-scroll enable Xterm style scrollbar |
|
|
1329 | --enable-plain-scroll enable plain style scrollbar |
1332 | --enable-perl enable embedded perl interpreter |
1330 | --enable-perl enable embedded perl interpreter |
1333 | --enable-plain-scroll enable plain style scrollbar |
|
|
1334 | --enable-xim XIM (X Input Method) protocol support |
1331 | --enable-xim XIM (X Input Method) protocol support |
1335 | --disable-backspace-key disable handling of the backspace key |
1332 | --disable-backspace-key disable handling of the backspace key |
1336 | --disable-delete-key disable handling of the delete key |
1333 | --disable-delete-key disable handling of the delete key |
1337 | --disable-resources disable all resource checking |
1334 | --disable-resources disable all resource checking |
1338 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
1335 | --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) |
1336 | --enable-fallback[=CLASS] fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
1340 | --disable-swapscreen disable swap screen support |
1337 | --disable-swapscreen disable swap screen support |
1341 | --enable-iso14755 enable support for extended ISO 14755 modes |
1338 | --enable-iso14755 enable support for extended ISO 14755 modes |
1342 | --enable-frills enable support for rarely used features |
1339 | --enable-frills enable support for rarely used features |
1343 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
1340 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
1344 | --enable-selectionscrolling enable scrolling during selections |
1341 | --enable-selectionscrolling enable scrolling during selections |
1345 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1342 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1346 | --enable-slipwheeling enable slip wheel scrolling (requires previous) |
1343 | --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel) |
1347 | --enable-smart-resize enable smart growth/shrink behaviour |
1344 | --enable-smart-resize enable smart growth/shrink behaviour |
1348 | --enable-text-blink enable blinking text |
1345 | --enable-text-blink enable blinking text |
1349 | --enable-pointer-blank enable pointer blank when typing or inactive pointer |
1346 | --enable-pointer-blank enable pointer blank when typing or inactive pointer |
1350 | --enable-utmp enable utmp (utmpx) support |
1347 | --enable-utmp enable utmp (utmpx) support |
1351 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
1348 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
… | |
… | |
1353 | |
1350 | |
1354 | Optional Packages: |
1351 | Optional Packages: |
1355 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1352 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1356 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1353 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1357 | --with-afterimage-config=DIR use libAfterImage config script in DIR |
1354 | --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) |
1355 | --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) |
1356 | --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) |
1357 | --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) |
1358 | --with-name=NAME set the basename for the installed binaries (default: urxvt) |
1362 | --with-term=NAME set the terminal to NAME (default: rxvt) |
1359 | --with-term=NAME set the terminal to NAME (default: rxvt) |
1363 | --with-terminfo=PATH set the path to the terminfo tree to PATH |
1360 | --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 |
1369 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1373 | you have headers in a nonstandard directory <include dir> |
1370 | you have headers in a nonstandard directory <include dir> |
1374 | CXX C++ compiler command |
1371 | CXX C++ compiler command |
1375 | CXXFLAGS C++ compiler flags |
1372 | CXXFLAGS C++ compiler flags |
1376 | CPP C preprocessor |
1373 | CPP C preprocessor |
|
|
1374 | CXXCPP C++ preprocessor |
1377 | XMKMF Path to xmkmf, Makefile generator for X Window System |
1375 | XMKMF Path to xmkmf, Makefile generator for X Window System |
1378 | CXXCPP C++ preprocessor |
|
|
1379 | |
1376 | |
1380 | Use these variables to override the choices made by `configure' or to help |
1377 | Use these variables to override the choices made by `configure' or to help |
1381 | it to find libraries and programs with nonstandard names/locations. |
1378 | it to find libraries and programs with nonstandard names/locations. |
1382 | |
1379 | |
1383 | _ACEOF |
1380 | _ACEOF |
… | |
… | |
1919 | |
1916 | |
1920 | |
1917 | |
1921 | |
1918 | |
1922 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1919 | 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` |
1920 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
|
|
1921 | |
1924 | echo "" |
1922 | echo "" |
1925 | echo "configuring for rxvt $VERSION" |
1923 | echo "configuring for rxvt $VERSION" |
1926 | echo "" |
1924 | echo "" |
1927 | |
1925 | |
1928 | orig_CXXFLAGS="$CXXFLAGS" |
1926 | orig_CXXFLAGS="$CXXFLAGS" |
1929 | |
|
|
1930 | |
1927 | |
1931 | ac_ext=c |
1928 | ac_ext=c |
1932 | ac_cpp='$CPP $CPPFLAGS' |
1929 | ac_cpp='$CPP $CPPFLAGS' |
1933 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1930 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1934 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1931 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
… | |
… | |
3713 | echo "${ECHO_T}no" >&6; } |
3710 | echo "${ECHO_T}no" >&6; } |
3714 | fi |
3711 | fi |
3715 | rm -f conftest* |
3712 | rm -f conftest* |
3716 | |
3713 | |
3717 | |
3714 | |
|
|
3715 | |
|
|
3716 | cat >>confdefs.h <<\_ACEOF |
|
|
3717 | #define _GNU_SOURCE 1 |
|
|
3718 | _ACEOF |
|
|
3719 | |
|
|
3720 | |
3718 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
3721 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
3719 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } |
3722 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } |
3720 | if test "${ac_cv_search_strerror+set}" = set; then |
3723 | if test "${ac_cv_search_strerror+set}" = set; then |
3721 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3722 | else |
3725 | else |
… | |
… | |
3869 | LINKER=$LINKER |
3872 | LINKER=$LINKER |
3870 | |
3873 | |
3871 | |
3874 | |
3872 | if test -z "$orig_CXXFLAGS"; then |
3875 | if test -z "$orig_CXXFLAGS"; then |
3873 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
3876 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
3874 | CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" |
3877 | CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs" |
3875 | cat >conftest.$ac_ext <<_ACEOF |
3878 | cat >conftest.$ac_ext <<_ACEOF |
3876 | /* confdefs.h. */ |
3879 | /* confdefs.h. */ |
3877 | _ACEOF |
3880 | _ACEOF |
3878 | cat confdefs.h >>conftest.$ac_ext |
3881 | cat confdefs.h >>conftest.$ac_ext |
3879 | cat >>conftest.$ac_ext <<_ACEOF |
3882 | cat >>conftest.$ac_ext <<_ACEOF |
… | |
… | |
3917 | CXXFLAGS="-O" |
3920 | CXXFLAGS="-O" |
3918 | fi |
3921 | fi |
3919 | CFLAGS="$CXXFLAGS" |
3922 | CFLAGS="$CXXFLAGS" |
3920 | fi |
3923 | fi |
3921 | |
3924 | |
3922 | |
|
|
3923 | cat >>confdefs.h <<\_ACEOF |
|
|
3924 | #define _GNU_SOURCE 1 |
|
|
3925 | _ACEOF |
|
|
3926 | |
|
|
3927 | |
|
|
3928 | case $host in |
3925 | case $host in |
3929 | *-*-solaris* ) |
3926 | *-*-solaris* ) |
3930 | |
3927 | |
3931 | cat >>confdefs.h <<\_ACEOF |
3928 | cat >>confdefs.h <<\_ACEOF |
3932 | #define _XOPEN_SOURCE 500 |
3929 | #define _XOPEN_SOURCE 500 |
3933 | _ACEOF |
3930 | _ACEOF |
3934 | |
3931 | |
3935 | ;; |
3932 | ;; |
3936 | esac |
3933 | esac |
3937 | |
|
|
3938 | |
3934 | |
3939 | { echo "$as_me:$LINENO: checking for setlocale" >&5 |
3935 | { echo "$as_me:$LINENO: checking for setlocale" >&5 |
3940 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } |
3936 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } |
3941 | if test "${ac_cv_func_setlocale+set}" = set; then |
3937 | if test "${ac_cv_func_setlocale+set}" = set; then |
3942 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
4415 | support_iso14755=yes |
4411 | support_iso14755=yes |
4416 | support_styles=yes |
4412 | support_styles=yes |
4417 | support_perl=yes |
4413 | support_perl=yes |
4418 | codesets=all |
4414 | codesets=all |
4419 | |
4415 | |
4420 | |
|
|
4421 | if test "x$enable_shared" = xyes; then |
|
|
4422 | |
|
|
4423 | cat >>confdefs.h <<\_ACEOF |
|
|
4424 | #define LIBRXVT 1 |
|
|
4425 | _ACEOF |
|
|
4426 | |
|
|
4427 | INSTALL_LIBRXVT=yes |
|
|
4428 | fi |
|
|
4429 | |
4416 | |
4430 | |
4417 | |
4431 | # Check whether --enable-everything was given. |
4418 | # Check whether --enable-everything was given. |
4432 | if test "${enable_everything+set}" = set; then |
4419 | if test "${enable_everything+set}" = set; then |
4433 | enableval=$enable_everything; |
4420 | enableval=$enable_everything; |
… | |
… | |
4491 | fi |
4478 | fi |
4492 | |
4479 | |
4493 | fi |
4480 | fi |
4494 | |
4481 | |
4495 | |
4482 | |
|
|
4483 | WARNINGS=no |
|
|
4484 | # Check whether --enable-warnings was given. |
|
|
4485 | if test "${enable_warnings+set}" = set; then |
|
|
4486 | enableval=$enable_warnings; if test x$enableval = xyes; then |
|
|
4487 | WARNINGS=yes |
|
|
4488 | fi |
|
|
4489 | fi |
|
|
4490 | |
|
|
4491 | if test x$GXX = xyes; then |
|
|
4492 | if test $WARNINGS = yes; then |
|
|
4493 | save_CXXFLAGS="$CXXFLAGS" |
|
|
4494 | CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-non-virtual-dtor" |
|
|
4495 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4496 | /* confdefs.h. */ |
|
|
4497 | _ACEOF |
|
|
4498 | cat confdefs.h >>conftest.$ac_ext |
|
|
4499 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4500 | /* end confdefs.h. */ |
|
|
4501 | |
|
|
4502 | int |
|
|
4503 | main () |
|
|
4504 | { |
|
|
4505 | |
|
|
4506 | ; |
|
|
4507 | return 0; |
|
|
4508 | } |
|
|
4509 | _ACEOF |
|
|
4510 | rm -f conftest.$ac_objext |
|
|
4511 | if { (ac_try="$ac_compile" |
|
|
4512 | case "(($ac_try" in |
|
|
4513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4514 | *) ac_try_echo=$ac_try;; |
|
|
4515 | esac |
|
|
4516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4517 | (eval "$ac_compile") 2>conftest.er1 |
|
|
4518 | ac_status=$? |
|
|
4519 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4520 | rm -f conftest.er1 |
|
|
4521 | cat conftest.err >&5 |
|
|
4522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4523 | (exit $ac_status); } && { |
|
|
4524 | test -z "$ac_cxx_werror_flag" || |
|
|
4525 | test ! -s conftest.err |
|
|
4526 | } && test -s conftest.$ac_objext; then |
|
|
4527 | : |
|
|
4528 | else |
|
|
4529 | echo "$as_me: failed program was:" >&5 |
|
|
4530 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4531 | |
|
|
4532 | CXXFLAGS="$save_CXXFLAGS" |
|
|
4533 | fi |
|
|
4534 | |
|
|
4535 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4536 | else |
|
|
4537 | CXXFLAGS="$CXXFLAGS -w" |
|
|
4538 | fi |
|
|
4539 | fi |
|
|
4540 | |
4496 | # Check whether --enable-unicode3 was given. |
4541 | # Check whether --enable-unicode3 was given. |
4497 | if test "${enable_unicode3+set}" = set; then |
4542 | if test "${enable_unicode3+set}" = set; then |
4498 | enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then |
4543 | enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then |
4499 | support_unicode3=$enableval |
4544 | support_unicode3=$enableval |
4500 | fi |
4545 | fi |
… | |
… | |
4581 | support_scroll_xterm=$enableval |
4626 | support_scroll_xterm=$enableval |
4582 | fi |
4627 | fi |
4583 | fi |
4628 | fi |
4584 | |
4629 | |
4585 | |
4630 | |
|
|
4631 | # Check whether --enable-plain-scroll was given. |
|
|
4632 | if test "${enable_plain_scroll+set}" = set; then |
|
|
4633 | enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4634 | support_scroll_plain=$enableval |
|
|
4635 | fi |
|
|
4636 | fi |
|
|
4637 | |
|
|
4638 | |
4586 | # Check whether --enable-perl was given. |
4639 | # Check whether --enable-perl was given. |
4587 | if test "${enable_perl+set}" = set; then |
4640 | if test "${enable_perl+set}" = set; then |
4588 | enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then |
4641 | enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then |
4589 | support_perl=$enableval |
4642 | support_perl=$enableval |
4590 | fi |
|
|
4591 | fi |
|
|
4592 | |
|
|
4593 | |
|
|
4594 | # Check whether --enable-plain-scroll was given. |
|
|
4595 | if test "${enable_plain_scroll+set}" = set; then |
|
|
4596 | enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4597 | support_scroll_plain=$enableval |
|
|
4598 | fi |
4643 | fi |
4599 | fi |
4644 | fi |
4600 | |
4645 | |
4601 | |
4646 | |
4602 | |
4647 | |
… | |
… | |
4829 | #define RXVT_TERMINFO "$withval" |
4874 | #define RXVT_TERMINFO "$withval" |
4830 | _ACEOF |
4875 | _ACEOF |
4831 | terminfo="$withval" |
4876 | terminfo="$withval" |
4832 | fi |
4877 | fi |
4833 | fi |
4878 | fi |
|
|
4879 | |
|
|
4880 | |
|
|
4881 | |
|
|
4882 | LIBEV_M4_AVOID_LIBRT=1 |
|
|
4883 | |
|
|
4884 | ac_ext=cpp |
|
|
4885 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
4886 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4887 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4888 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
4889 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
4890 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
|
|
4891 | if test -z "$CXXCPP"; then |
|
|
4892 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
|
4893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4894 | else |
|
|
4895 | # Double quotes because CXXCPP needs to be expanded |
|
|
4896 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
4897 | do |
|
|
4898 | ac_preproc_ok=false |
|
|
4899 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4900 | do |
|
|
4901 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4902 | # with a fresh cross-compiler works. |
|
|
4903 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4904 | # <limits.h> exists even on freestanding compilers. |
|
|
4905 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4906 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4907 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4908 | /* confdefs.h. */ |
|
|
4909 | _ACEOF |
|
|
4910 | cat confdefs.h >>conftest.$ac_ext |
|
|
4911 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4912 | /* end confdefs.h. */ |
|
|
4913 | #ifdef __STDC__ |
|
|
4914 | # include <limits.h> |
|
|
4915 | #else |
|
|
4916 | # include <assert.h> |
|
|
4917 | #endif |
|
|
4918 | Syntax error |
|
|
4919 | _ACEOF |
|
|
4920 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4921 | case "(($ac_try" in |
|
|
4922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4923 | *) ac_try_echo=$ac_try;; |
|
|
4924 | esac |
|
|
4925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4926 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4927 | ac_status=$? |
|
|
4928 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4929 | rm -f conftest.er1 |
|
|
4930 | cat conftest.err >&5 |
|
|
4931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4932 | (exit $ac_status); } >/dev/null && { |
|
|
4933 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4934 | test ! -s conftest.err |
|
|
4935 | }; then |
|
|
4936 | : |
|
|
4937 | else |
|
|
4938 | echo "$as_me: failed program was:" >&5 |
|
|
4939 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4940 | |
|
|
4941 | # Broken: fails on valid input. |
|
|
4942 | continue |
|
|
4943 | fi |
|
|
4944 | |
|
|
4945 | rm -f conftest.err conftest.$ac_ext |
|
|
4946 | |
|
|
4947 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
4948 | # can be detected and how. |
|
|
4949 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4950 | /* confdefs.h. */ |
|
|
4951 | _ACEOF |
|
|
4952 | cat confdefs.h >>conftest.$ac_ext |
|
|
4953 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4954 | /* end confdefs.h. */ |
|
|
4955 | #include <ac_nonexistent.h> |
|
|
4956 | _ACEOF |
|
|
4957 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4958 | case "(($ac_try" in |
|
|
4959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4960 | *) ac_try_echo=$ac_try;; |
|
|
4961 | esac |
|
|
4962 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4963 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4964 | ac_status=$? |
|
|
4965 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4966 | rm -f conftest.er1 |
|
|
4967 | cat conftest.err >&5 |
|
|
4968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4969 | (exit $ac_status); } >/dev/null && { |
|
|
4970 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4971 | test ! -s conftest.err |
|
|
4972 | }; then |
|
|
4973 | # Broken: success on invalid input. |
|
|
4974 | continue |
|
|
4975 | else |
|
|
4976 | echo "$as_me: failed program was:" >&5 |
|
|
4977 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4978 | |
|
|
4979 | # Passes both tests. |
|
|
4980 | ac_preproc_ok=: |
|
|
4981 | break |
|
|
4982 | fi |
|
|
4983 | |
|
|
4984 | rm -f conftest.err conftest.$ac_ext |
|
|
4985 | |
|
|
4986 | done |
|
|
4987 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
4988 | rm -f conftest.err conftest.$ac_ext |
|
|
4989 | if $ac_preproc_ok; then |
|
|
4990 | break |
|
|
4991 | fi |
|
|
4992 | |
|
|
4993 | done |
|
|
4994 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
4995 | |
|
|
4996 | fi |
|
|
4997 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
4998 | else |
|
|
4999 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5000 | fi |
|
|
5001 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
5002 | echo "${ECHO_T}$CXXCPP" >&6; } |
|
|
5003 | ac_preproc_ok=false |
|
|
5004 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
5005 | do |
|
|
5006 | # Use a header file that comes with gcc, so configuring glibc |
|
|
5007 | # with a fresh cross-compiler works. |
|
|
5008 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5009 | # <limits.h> exists even on freestanding compilers. |
|
|
5010 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
5011 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
5012 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5013 | /* confdefs.h. */ |
|
|
5014 | _ACEOF |
|
|
5015 | cat confdefs.h >>conftest.$ac_ext |
|
|
5016 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5017 | /* end confdefs.h. */ |
|
|
5018 | #ifdef __STDC__ |
|
|
5019 | # include <limits.h> |
|
|
5020 | #else |
|
|
5021 | # include <assert.h> |
|
|
5022 | #endif |
|
|
5023 | Syntax error |
|
|
5024 | _ACEOF |
|
|
5025 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5026 | case "(($ac_try" in |
|
|
5027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5028 | *) ac_try_echo=$ac_try;; |
|
|
5029 | esac |
|
|
5030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5031 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5032 | ac_status=$? |
|
|
5033 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5034 | rm -f conftest.er1 |
|
|
5035 | cat conftest.err >&5 |
|
|
5036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5037 | (exit $ac_status); } >/dev/null && { |
|
|
5038 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5039 | test ! -s conftest.err |
|
|
5040 | }; then |
|
|
5041 | : |
|
|
5042 | else |
|
|
5043 | echo "$as_me: failed program was:" >&5 |
|
|
5044 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5045 | |
|
|
5046 | # Broken: fails on valid input. |
|
|
5047 | continue |
|
|
5048 | fi |
|
|
5049 | |
|
|
5050 | rm -f conftest.err conftest.$ac_ext |
|
|
5051 | |
|
|
5052 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
5053 | # can be detected and how. |
|
|
5054 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5055 | /* confdefs.h. */ |
|
|
5056 | _ACEOF |
|
|
5057 | cat confdefs.h >>conftest.$ac_ext |
|
|
5058 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5059 | /* end confdefs.h. */ |
|
|
5060 | #include <ac_nonexistent.h> |
|
|
5061 | _ACEOF |
|
|
5062 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5063 | case "(($ac_try" in |
|
|
5064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5065 | *) ac_try_echo=$ac_try;; |
|
|
5066 | esac |
|
|
5067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5068 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5069 | ac_status=$? |
|
|
5070 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5071 | rm -f conftest.er1 |
|
|
5072 | cat conftest.err >&5 |
|
|
5073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5074 | (exit $ac_status); } >/dev/null && { |
|
|
5075 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5076 | test ! -s conftest.err |
|
|
5077 | }; then |
|
|
5078 | # Broken: success on invalid input. |
|
|
5079 | continue |
|
|
5080 | else |
|
|
5081 | echo "$as_me: failed program was:" >&5 |
|
|
5082 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5083 | |
|
|
5084 | # Passes both tests. |
|
|
5085 | ac_preproc_ok=: |
|
|
5086 | break |
|
|
5087 | fi |
|
|
5088 | |
|
|
5089 | rm -f conftest.err conftest.$ac_ext |
|
|
5090 | |
|
|
5091 | done |
|
|
5092 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5093 | rm -f conftest.err conftest.$ac_ext |
|
|
5094 | if $ac_preproc_ok; then |
|
|
5095 | : |
|
|
5096 | else |
|
|
5097 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5098 | See \`config.log' for more details." >&5 |
|
|
5099 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5100 | See \`config.log' for more details." >&2;} |
|
|
5101 | { (exit 1); exit 1; }; } |
|
|
5102 | fi |
|
|
5103 | |
|
|
5104 | ac_ext=cpp |
|
|
5105 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5106 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5107 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5108 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
5109 | |
|
|
5110 | |
|
|
5111 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
5112 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
|
|
5113 | if test "${ac_cv_header_stdc+set}" = set; then |
|
|
5114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5115 | else |
|
|
5116 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5117 | /* confdefs.h. */ |
|
|
5118 | _ACEOF |
|
|
5119 | cat confdefs.h >>conftest.$ac_ext |
|
|
5120 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5121 | /* end confdefs.h. */ |
|
|
5122 | #include <stdlib.h> |
|
|
5123 | #include <stdarg.h> |
|
|
5124 | #include <string.h> |
|
|
5125 | #include <float.h> |
|
|
5126 | |
|
|
5127 | int |
|
|
5128 | main () |
|
|
5129 | { |
|
|
5130 | |
|
|
5131 | ; |
|
|
5132 | return 0; |
|
|
5133 | } |
|
|
5134 | _ACEOF |
|
|
5135 | rm -f conftest.$ac_objext |
|
|
5136 | if { (ac_try="$ac_compile" |
|
|
5137 | case "(($ac_try" in |
|
|
5138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5139 | *) ac_try_echo=$ac_try;; |
|
|
5140 | esac |
|
|
5141 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5142 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5143 | ac_status=$? |
|
|
5144 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5145 | rm -f conftest.er1 |
|
|
5146 | cat conftest.err >&5 |
|
|
5147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5148 | (exit $ac_status); } && { |
|
|
5149 | test -z "$ac_cxx_werror_flag" || |
|
|
5150 | test ! -s conftest.err |
|
|
5151 | } && test -s conftest.$ac_objext; then |
|
|
5152 | ac_cv_header_stdc=yes |
|
|
5153 | else |
|
|
5154 | echo "$as_me: failed program was:" >&5 |
|
|
5155 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5156 | |
|
|
5157 | ac_cv_header_stdc=no |
|
|
5158 | fi |
|
|
5159 | |
|
|
5160 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5161 | |
|
|
5162 | if test $ac_cv_header_stdc = yes; then |
|
|
5163 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
5164 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5165 | /* confdefs.h. */ |
|
|
5166 | _ACEOF |
|
|
5167 | cat confdefs.h >>conftest.$ac_ext |
|
|
5168 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5169 | /* end confdefs.h. */ |
|
|
5170 | #include <string.h> |
|
|
5171 | |
|
|
5172 | _ACEOF |
|
|
5173 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
5174 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
5175 | : |
|
|
5176 | else |
|
|
5177 | ac_cv_header_stdc=no |
|
|
5178 | fi |
|
|
5179 | rm -f conftest* |
|
|
5180 | |
|
|
5181 | fi |
|
|
5182 | |
|
|
5183 | if test $ac_cv_header_stdc = yes; then |
|
|
5184 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
5185 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5186 | /* confdefs.h. */ |
|
|
5187 | _ACEOF |
|
|
5188 | cat confdefs.h >>conftest.$ac_ext |
|
|
5189 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5190 | /* end confdefs.h. */ |
|
|
5191 | #include <stdlib.h> |
|
|
5192 | |
|
|
5193 | _ACEOF |
|
|
5194 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
5195 | $EGREP "free" >/dev/null 2>&1; then |
|
|
5196 | : |
|
|
5197 | else |
|
|
5198 | ac_cv_header_stdc=no |
|
|
5199 | fi |
|
|
5200 | rm -f conftest* |
|
|
5201 | |
|
|
5202 | fi |
|
|
5203 | |
|
|
5204 | if test $ac_cv_header_stdc = yes; then |
|
|
5205 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
5206 | if test "$cross_compiling" = yes; then |
|
|
5207 | : |
|
|
5208 | else |
|
|
5209 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5210 | /* confdefs.h. */ |
|
|
5211 | _ACEOF |
|
|
5212 | cat confdefs.h >>conftest.$ac_ext |
|
|
5213 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5214 | /* end confdefs.h. */ |
|
|
5215 | #include <ctype.h> |
|
|
5216 | #include <stdlib.h> |
|
|
5217 | #if ((' ' & 0x0FF) == 0x020) |
|
|
5218 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
5219 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
5220 | #else |
|
|
5221 | # define ISLOWER(c) \ |
|
|
5222 | (('a' <= (c) && (c) <= 'i') \ |
|
|
5223 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
5224 | || ('s' <= (c) && (c) <= 'z')) |
|
|
5225 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
5226 | #endif |
|
|
5227 | |
|
|
5228 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
5229 | int |
|
|
5230 | main () |
|
|
5231 | { |
|
|
5232 | int i; |
|
|
5233 | for (i = 0; i < 256; i++) |
|
|
5234 | if (XOR (islower (i), ISLOWER (i)) |
|
|
5235 | || toupper (i) != TOUPPER (i)) |
|
|
5236 | return 2; |
|
|
5237 | return 0; |
|
|
5238 | } |
|
|
5239 | _ACEOF |
|
|
5240 | rm -f conftest$ac_exeext |
|
|
5241 | if { (ac_try="$ac_link" |
|
|
5242 | case "(($ac_try" in |
|
|
5243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5244 | *) ac_try_echo=$ac_try;; |
|
|
5245 | esac |
|
|
5246 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5247 | (eval "$ac_link") 2>&5 |
|
|
5248 | ac_status=$? |
|
|
5249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5250 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
5251 | { (case "(($ac_try" in |
|
|
5252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5253 | *) ac_try_echo=$ac_try;; |
|
|
5254 | esac |
|
|
5255 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5256 | (eval "$ac_try") 2>&5 |
|
|
5257 | ac_status=$? |
|
|
5258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5259 | (exit $ac_status); }; }; then |
|
|
5260 | : |
|
|
5261 | else |
|
|
5262 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
5263 | echo "$as_me: failed program was:" >&5 |
|
|
5264 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5265 | |
|
|
5266 | ( exit $ac_status ) |
|
|
5267 | ac_cv_header_stdc=no |
|
|
5268 | fi |
|
|
5269 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
5270 | fi |
|
|
5271 | |
|
|
5272 | |
|
|
5273 | fi |
|
|
5274 | fi |
|
|
5275 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
5276 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
|
|
5277 | if test $ac_cv_header_stdc = yes; then |
|
|
5278 | |
|
|
5279 | cat >>confdefs.h <<\_ACEOF |
|
|
5280 | #define STDC_HEADERS 1 |
|
|
5281 | _ACEOF |
|
|
5282 | |
|
|
5283 | fi |
|
|
5284 | |
|
|
5285 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
5286 | |
|
|
5287 | |
|
|
5288 | |
|
|
5289 | |
|
|
5290 | |
|
|
5291 | |
|
|
5292 | |
|
|
5293 | |
|
|
5294 | |
|
|
5295 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
5296 | inttypes.h stdint.h unistd.h |
|
|
5297 | do |
|
|
5298 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
5299 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5300 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5301 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5302 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5303 | else |
|
|
5304 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5305 | /* confdefs.h. */ |
|
|
5306 | _ACEOF |
|
|
5307 | cat confdefs.h >>conftest.$ac_ext |
|
|
5308 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5309 | /* end confdefs.h. */ |
|
|
5310 | $ac_includes_default |
|
|
5311 | |
|
|
5312 | #include <$ac_header> |
|
|
5313 | _ACEOF |
|
|
5314 | rm -f conftest.$ac_objext |
|
|
5315 | if { (ac_try="$ac_compile" |
|
|
5316 | case "(($ac_try" in |
|
|
5317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5318 | *) ac_try_echo=$ac_try;; |
|
|
5319 | esac |
|
|
5320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5321 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5322 | ac_status=$? |
|
|
5323 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5324 | rm -f conftest.er1 |
|
|
5325 | cat conftest.err >&5 |
|
|
5326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5327 | (exit $ac_status); } && { |
|
|
5328 | test -z "$ac_cxx_werror_flag" || |
|
|
5329 | test ! -s conftest.err |
|
|
5330 | } && test -s conftest.$ac_objext; then |
|
|
5331 | eval "$as_ac_Header=yes" |
|
|
5332 | else |
|
|
5333 | echo "$as_me: failed program was:" >&5 |
|
|
5334 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5335 | |
|
|
5336 | eval "$as_ac_Header=no" |
|
|
5337 | fi |
|
|
5338 | |
|
|
5339 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5340 | fi |
|
|
5341 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5342 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5343 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5344 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
5345 | cat >>confdefs.h <<_ACEOF |
|
|
5346 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
5347 | _ACEOF |
|
|
5348 | |
|
|
5349 | fi |
|
|
5350 | |
|
|
5351 | done |
|
|
5352 | |
|
|
5353 | |
|
|
5354 | |
|
|
5355 | |
|
|
5356 | |
|
|
5357 | |
|
|
5358 | |
|
|
5359 | |
|
|
5360 | |
|
|
5361 | for ac_header in sys/inotify.h sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h |
|
|
5362 | do |
|
|
5363 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
5364 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5365 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5366 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5367 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5369 | fi |
|
|
5370 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5371 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5372 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5373 | else |
|
|
5374 | # Is the header compilable? |
|
|
5375 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
5376 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
|
|
5377 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5378 | /* confdefs.h. */ |
|
|
5379 | _ACEOF |
|
|
5380 | cat confdefs.h >>conftest.$ac_ext |
|
|
5381 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5382 | /* end confdefs.h. */ |
|
|
5383 | $ac_includes_default |
|
|
5384 | #include <$ac_header> |
|
|
5385 | _ACEOF |
|
|
5386 | rm -f conftest.$ac_objext |
|
|
5387 | if { (ac_try="$ac_compile" |
|
|
5388 | case "(($ac_try" in |
|
|
5389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5390 | *) ac_try_echo=$ac_try;; |
|
|
5391 | esac |
|
|
5392 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5393 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5394 | ac_status=$? |
|
|
5395 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5396 | rm -f conftest.er1 |
|
|
5397 | cat conftest.err >&5 |
|
|
5398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5399 | (exit $ac_status); } && { |
|
|
5400 | test -z "$ac_cxx_werror_flag" || |
|
|
5401 | test ! -s conftest.err |
|
|
5402 | } && test -s conftest.$ac_objext; then |
|
|
5403 | ac_header_compiler=yes |
|
|
5404 | else |
|
|
5405 | echo "$as_me: failed program was:" >&5 |
|
|
5406 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5407 | |
|
|
5408 | ac_header_compiler=no |
|
|
5409 | fi |
|
|
5410 | |
|
|
5411 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5412 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
5413 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
|
|
5414 | |
|
|
5415 | # Is the header present? |
|
|
5416 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
5417 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
|
|
5418 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5419 | /* confdefs.h. */ |
|
|
5420 | _ACEOF |
|
|
5421 | cat confdefs.h >>conftest.$ac_ext |
|
|
5422 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5423 | /* end confdefs.h. */ |
|
|
5424 | #include <$ac_header> |
|
|
5425 | _ACEOF |
|
|
5426 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5427 | case "(($ac_try" in |
|
|
5428 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5429 | *) ac_try_echo=$ac_try;; |
|
|
5430 | esac |
|
|
5431 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5432 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5433 | ac_status=$? |
|
|
5434 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5435 | rm -f conftest.er1 |
|
|
5436 | cat conftest.err >&5 |
|
|
5437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5438 | (exit $ac_status); } >/dev/null && { |
|
|
5439 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5440 | test ! -s conftest.err |
|
|
5441 | }; then |
|
|
5442 | ac_header_preproc=yes |
|
|
5443 | else |
|
|
5444 | echo "$as_me: failed program was:" >&5 |
|
|
5445 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5446 | |
|
|
5447 | ac_header_preproc=no |
|
|
5448 | fi |
|
|
5449 | |
|
|
5450 | rm -f conftest.err conftest.$ac_ext |
|
|
5451 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
5452 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
|
|
5453 | |
|
|
5454 | # So? What about this header? |
|
|
5455 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
5456 | yes:no: ) |
|
|
5457 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
5458 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
5459 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
5460 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
5461 | ac_header_preproc=yes |
|
|
5462 | ;; |
|
|
5463 | no:yes:* ) |
|
|
5464 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
5465 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
5466 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
5467 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
5468 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
5469 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
5470 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
5471 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
5472 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
5473 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
5474 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
5475 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
5476 | |
|
|
5477 | ;; |
|
|
5478 | esac |
|
|
5479 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5480 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5481 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5483 | else |
|
|
5484 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
5485 | fi |
|
|
5486 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5487 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5488 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5489 | |
|
|
5490 | fi |
|
|
5491 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
5492 | cat >>confdefs.h <<_ACEOF |
|
|
5493 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
5494 | _ACEOF |
|
|
5495 | |
|
|
5496 | fi |
|
|
5497 | |
|
|
5498 | done |
|
|
5499 | |
|
|
5500 | |
|
|
5501 | |
|
|
5502 | |
|
|
5503 | |
|
|
5504 | |
|
|
5505 | |
|
|
5506 | |
|
|
5507 | for ac_func in inotify_init epoll_ctl kqueue port_create poll select |
|
|
5508 | do |
|
|
5509 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
5510 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
5511 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
5512 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5514 | else |
|
|
5515 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5516 | /* confdefs.h. */ |
|
|
5517 | _ACEOF |
|
|
5518 | cat confdefs.h >>conftest.$ac_ext |
|
|
5519 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5520 | /* end confdefs.h. */ |
|
|
5521 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
5522 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5523 | #define $ac_func innocuous_$ac_func |
|
|
5524 | |
|
|
5525 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5526 | which can conflict with char $ac_func (); below. |
|
|
5527 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5528 | <limits.h> exists even on freestanding compilers. */ |
|
|
5529 | |
|
|
5530 | #ifdef __STDC__ |
|
|
5531 | # include <limits.h> |
|
|
5532 | #else |
|
|
5533 | # include <assert.h> |
|
|
5534 | #endif |
|
|
5535 | |
|
|
5536 | #undef $ac_func |
|
|
5537 | |
|
|
5538 | /* Override any GCC internal prototype to avoid an error. |
|
|
5539 | Use char because int might match the return type of a GCC |
|
|
5540 | builtin and then its argument prototype would still apply. */ |
|
|
5541 | #ifdef __cplusplus |
|
|
5542 | extern "C" |
|
|
5543 | #endif |
|
|
5544 | char $ac_func (); |
|
|
5545 | /* The GNU C library defines this for functions which it implements |
|
|
5546 | to always fail with ENOSYS. Some functions are actually named |
|
|
5547 | something starting with __ and the normal name is an alias. */ |
|
|
5548 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
5549 | choke me |
|
|
5550 | #endif |
|
|
5551 | |
|
|
5552 | int |
|
|
5553 | main () |
|
|
5554 | { |
|
|
5555 | return $ac_func (); |
|
|
5556 | ; |
|
|
5557 | return 0; |
|
|
5558 | } |
|
|
5559 | _ACEOF |
|
|
5560 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5561 | if { (ac_try="$ac_link" |
|
|
5562 | case "(($ac_try" in |
|
|
5563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5564 | *) ac_try_echo=$ac_try;; |
|
|
5565 | esac |
|
|
5566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5567 | (eval "$ac_link") 2>conftest.er1 |
|
|
5568 | ac_status=$? |
|
|
5569 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5570 | rm -f conftest.er1 |
|
|
5571 | cat conftest.err >&5 |
|
|
5572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5573 | (exit $ac_status); } && { |
|
|
5574 | test -z "$ac_cxx_werror_flag" || |
|
|
5575 | test ! -s conftest.err |
|
|
5576 | } && test -s conftest$ac_exeext && |
|
|
5577 | $as_test_x conftest$ac_exeext; then |
|
|
5578 | eval "$as_ac_var=yes" |
|
|
5579 | else |
|
|
5580 | echo "$as_me: failed program was:" >&5 |
|
|
5581 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5582 | |
|
|
5583 | eval "$as_ac_var=no" |
|
|
5584 | fi |
|
|
5585 | |
|
|
5586 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5587 | conftest$ac_exeext conftest.$ac_ext |
|
|
5588 | fi |
|
|
5589 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
5590 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5591 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5592 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
5593 | cat >>confdefs.h <<_ACEOF |
|
|
5594 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
5595 | _ACEOF |
|
|
5596 | |
|
|
5597 | fi |
|
|
5598 | done |
|
|
5599 | |
|
|
5600 | |
|
|
5601 | { echo "$as_me:$LINENO: checking for clock_gettime" >&5 |
|
|
5602 | echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6; } |
|
|
5603 | if test "${ac_cv_func_clock_gettime+set}" = set; then |
|
|
5604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5605 | else |
|
|
5606 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5607 | /* confdefs.h. */ |
|
|
5608 | _ACEOF |
|
|
5609 | cat confdefs.h >>conftest.$ac_ext |
|
|
5610 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5611 | /* end confdefs.h. */ |
|
|
5612 | /* Define clock_gettime to an innocuous variant, in case <limits.h> declares clock_gettime. |
|
|
5613 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5614 | #define clock_gettime innocuous_clock_gettime |
|
|
5615 | |
|
|
5616 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5617 | which can conflict with char clock_gettime (); below. |
|
|
5618 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5619 | <limits.h> exists even on freestanding compilers. */ |
|
|
5620 | |
|
|
5621 | #ifdef __STDC__ |
|
|
5622 | # include <limits.h> |
|
|
5623 | #else |
|
|
5624 | # include <assert.h> |
|
|
5625 | #endif |
|
|
5626 | |
|
|
5627 | #undef clock_gettime |
|
|
5628 | |
|
|
5629 | /* Override any GCC internal prototype to avoid an error. |
|
|
5630 | Use char because int might match the return type of a GCC |
|
|
5631 | builtin and then its argument prototype would still apply. */ |
|
|
5632 | #ifdef __cplusplus |
|
|
5633 | extern "C" |
|
|
5634 | #endif |
|
|
5635 | char clock_gettime (); |
|
|
5636 | /* The GNU C library defines this for functions which it implements |
|
|
5637 | to always fail with ENOSYS. Some functions are actually named |
|
|
5638 | something starting with __ and the normal name is an alias. */ |
|
|
5639 | #if defined __stub_clock_gettime || defined __stub___clock_gettime |
|
|
5640 | choke me |
|
|
5641 | #endif |
|
|
5642 | |
|
|
5643 | int |
|
|
5644 | main () |
|
|
5645 | { |
|
|
5646 | return clock_gettime (); |
|
|
5647 | ; |
|
|
5648 | return 0; |
|
|
5649 | } |
|
|
5650 | _ACEOF |
|
|
5651 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5652 | if { (ac_try="$ac_link" |
|
|
5653 | case "(($ac_try" in |
|
|
5654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5655 | *) ac_try_echo=$ac_try;; |
|
|
5656 | esac |
|
|
5657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5658 | (eval "$ac_link") 2>conftest.er1 |
|
|
5659 | ac_status=$? |
|
|
5660 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5661 | rm -f conftest.er1 |
|
|
5662 | cat conftest.err >&5 |
|
|
5663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5664 | (exit $ac_status); } && { |
|
|
5665 | test -z "$ac_cxx_werror_flag" || |
|
|
5666 | test ! -s conftest.err |
|
|
5667 | } && test -s conftest$ac_exeext && |
|
|
5668 | $as_test_x conftest$ac_exeext; then |
|
|
5669 | ac_cv_func_clock_gettime=yes |
|
|
5670 | else |
|
|
5671 | echo "$as_me: failed program was:" >&5 |
|
|
5672 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5673 | |
|
|
5674 | ac_cv_func_clock_gettime=no |
|
|
5675 | fi |
|
|
5676 | |
|
|
5677 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5678 | conftest$ac_exeext conftest.$ac_ext |
|
|
5679 | fi |
|
|
5680 | { echo "$as_me:$LINENO: result: $ac_cv_func_clock_gettime" >&5 |
|
|
5681 | echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; } |
|
|
5682 | if test $ac_cv_func_clock_gettime = yes; then |
|
|
5683 | : |
|
|
5684 | else |
|
|
5685 | |
|
|
5686 | if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
|
|
5687 | |
|
|
5688 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
|
|
5689 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } |
|
|
5690 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
|
|
5691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5692 | else |
|
|
5693 | ac_check_lib_save_LIBS=$LIBS |
|
|
5694 | LIBS="-lrt $LIBS" |
|
|
5695 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5696 | /* confdefs.h. */ |
|
|
5697 | _ACEOF |
|
|
5698 | cat confdefs.h >>conftest.$ac_ext |
|
|
5699 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5700 | /* end confdefs.h. */ |
|
|
5701 | |
|
|
5702 | /* Override any GCC internal prototype to avoid an error. |
|
|
5703 | Use char because int might match the return type of a GCC |
|
|
5704 | builtin and then its argument prototype would still apply. */ |
|
|
5705 | #ifdef __cplusplus |
|
|
5706 | extern "C" |
|
|
5707 | #endif |
|
|
5708 | char clock_gettime (); |
|
|
5709 | int |
|
|
5710 | main () |
|
|
5711 | { |
|
|
5712 | return clock_gettime (); |
|
|
5713 | ; |
|
|
5714 | return 0; |
|
|
5715 | } |
|
|
5716 | _ACEOF |
|
|
5717 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5718 | if { (ac_try="$ac_link" |
|
|
5719 | case "(($ac_try" in |
|
|
5720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5721 | *) ac_try_echo=$ac_try;; |
|
|
5722 | esac |
|
|
5723 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5724 | (eval "$ac_link") 2>conftest.er1 |
|
|
5725 | ac_status=$? |
|
|
5726 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5727 | rm -f conftest.er1 |
|
|
5728 | cat conftest.err >&5 |
|
|
5729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5730 | (exit $ac_status); } && { |
|
|
5731 | test -z "$ac_cxx_werror_flag" || |
|
|
5732 | test ! -s conftest.err |
|
|
5733 | } && test -s conftest$ac_exeext && |
|
|
5734 | $as_test_x conftest$ac_exeext; then |
|
|
5735 | ac_cv_lib_rt_clock_gettime=yes |
|
|
5736 | else |
|
|
5737 | echo "$as_me: failed program was:" >&5 |
|
|
5738 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5739 | |
|
|
5740 | ac_cv_lib_rt_clock_gettime=no |
|
|
5741 | fi |
|
|
5742 | |
|
|
5743 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5744 | conftest$ac_exeext conftest.$ac_ext |
|
|
5745 | LIBS=$ac_check_lib_save_LIBS |
|
|
5746 | fi |
|
|
5747 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
|
|
5748 | echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; } |
|
|
5749 | if test $ac_cv_lib_rt_clock_gettime = yes; then |
|
|
5750 | cat >>confdefs.h <<_ACEOF |
|
|
5751 | #define HAVE_LIBRT 1 |
|
|
5752 | _ACEOF |
|
|
5753 | |
|
|
5754 | LIBS="-lrt $LIBS" |
|
|
5755 | |
|
|
5756 | fi |
|
|
5757 | |
|
|
5758 | unset ac_cv_func_clock_gettime |
|
|
5759 | |
|
|
5760 | for ac_func in clock_gettime |
|
|
5761 | do |
|
|
5762 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
5763 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
5764 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
5765 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5766 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5767 | else |
|
|
5768 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5769 | /* confdefs.h. */ |
|
|
5770 | _ACEOF |
|
|
5771 | cat confdefs.h >>conftest.$ac_ext |
|
|
5772 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5773 | /* end confdefs.h. */ |
|
|
5774 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
5775 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5776 | #define $ac_func innocuous_$ac_func |
|
|
5777 | |
|
|
5778 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5779 | which can conflict with char $ac_func (); below. |
|
|
5780 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5781 | <limits.h> exists even on freestanding compilers. */ |
|
|
5782 | |
|
|
5783 | #ifdef __STDC__ |
|
|
5784 | # include <limits.h> |
|
|
5785 | #else |
|
|
5786 | # include <assert.h> |
|
|
5787 | #endif |
|
|
5788 | |
|
|
5789 | #undef $ac_func |
|
|
5790 | |
|
|
5791 | /* Override any GCC internal prototype to avoid an error. |
|
|
5792 | Use char because int might match the return type of a GCC |
|
|
5793 | builtin and then its argument prototype would still apply. */ |
|
|
5794 | #ifdef __cplusplus |
|
|
5795 | extern "C" |
|
|
5796 | #endif |
|
|
5797 | char $ac_func (); |
|
|
5798 | /* The GNU C library defines this for functions which it implements |
|
|
5799 | to always fail with ENOSYS. Some functions are actually named |
|
|
5800 | something starting with __ and the normal name is an alias. */ |
|
|
5801 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
5802 | choke me |
|
|
5803 | #endif |
|
|
5804 | |
|
|
5805 | int |
|
|
5806 | main () |
|
|
5807 | { |
|
|
5808 | return $ac_func (); |
|
|
5809 | ; |
|
|
5810 | return 0; |
|
|
5811 | } |
|
|
5812 | _ACEOF |
|
|
5813 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5814 | if { (ac_try="$ac_link" |
|
|
5815 | case "(($ac_try" in |
|
|
5816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5817 | *) ac_try_echo=$ac_try;; |
|
|
5818 | esac |
|
|
5819 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5820 | (eval "$ac_link") 2>conftest.er1 |
|
|
5821 | ac_status=$? |
|
|
5822 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5823 | rm -f conftest.er1 |
|
|
5824 | cat conftest.err >&5 |
|
|
5825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5826 | (exit $ac_status); } && { |
|
|
5827 | test -z "$ac_cxx_werror_flag" || |
|
|
5828 | test ! -s conftest.err |
|
|
5829 | } && test -s conftest$ac_exeext && |
|
|
5830 | $as_test_x conftest$ac_exeext; then |
|
|
5831 | eval "$as_ac_var=yes" |
|
|
5832 | else |
|
|
5833 | echo "$as_me: failed program was:" >&5 |
|
|
5834 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5835 | |
|
|
5836 | eval "$as_ac_var=no" |
|
|
5837 | fi |
|
|
5838 | |
|
|
5839 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5840 | conftest$ac_exeext conftest.$ac_ext |
|
|
5841 | fi |
|
|
5842 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
5843 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5844 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5845 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
5846 | cat >>confdefs.h <<_ACEOF |
|
|
5847 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
5848 | _ACEOF |
|
|
5849 | |
|
|
5850 | fi |
|
|
5851 | done |
|
|
5852 | |
|
|
5853 | fi |
|
|
5854 | |
|
|
5855 | fi |
|
|
5856 | |
|
|
5857 | |
|
|
5858 | |
|
|
5859 | { echo "$as_me:$LINENO: checking for ceil in -lm" >&5 |
|
|
5860 | echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; } |
|
|
5861 | if test "${ac_cv_lib_m_ceil+set}" = set; then |
|
|
5862 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5863 | else |
|
|
5864 | ac_check_lib_save_LIBS=$LIBS |
|
|
5865 | LIBS="-lm $LIBS" |
|
|
5866 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5867 | /* confdefs.h. */ |
|
|
5868 | _ACEOF |
|
|
5869 | cat confdefs.h >>conftest.$ac_ext |
|
|
5870 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5871 | /* end confdefs.h. */ |
|
|
5872 | |
|
|
5873 | /* Override any GCC internal prototype to avoid an error. |
|
|
5874 | Use char because int might match the return type of a GCC |
|
|
5875 | builtin and then its argument prototype would still apply. */ |
|
|
5876 | #ifdef __cplusplus |
|
|
5877 | extern "C" |
|
|
5878 | #endif |
|
|
5879 | char ceil (); |
|
|
5880 | int |
|
|
5881 | main () |
|
|
5882 | { |
|
|
5883 | return ceil (); |
|
|
5884 | ; |
|
|
5885 | return 0; |
|
|
5886 | } |
|
|
5887 | _ACEOF |
|
|
5888 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5889 | if { (ac_try="$ac_link" |
|
|
5890 | case "(($ac_try" in |
|
|
5891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5892 | *) ac_try_echo=$ac_try;; |
|
|
5893 | esac |
|
|
5894 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5895 | (eval "$ac_link") 2>conftest.er1 |
|
|
5896 | ac_status=$? |
|
|
5897 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5898 | rm -f conftest.er1 |
|
|
5899 | cat conftest.err >&5 |
|
|
5900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5901 | (exit $ac_status); } && { |
|
|
5902 | test -z "$ac_cxx_werror_flag" || |
|
|
5903 | test ! -s conftest.err |
|
|
5904 | } && test -s conftest$ac_exeext && |
|
|
5905 | $as_test_x conftest$ac_exeext; then |
|
|
5906 | ac_cv_lib_m_ceil=yes |
|
|
5907 | else |
|
|
5908 | echo "$as_me: failed program was:" >&5 |
|
|
5909 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5910 | |
|
|
5911 | ac_cv_lib_m_ceil=no |
|
|
5912 | fi |
|
|
5913 | |
|
|
5914 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5915 | conftest$ac_exeext conftest.$ac_ext |
|
|
5916 | LIBS=$ac_check_lib_save_LIBS |
|
|
5917 | fi |
|
|
5918 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5 |
|
|
5919 | echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6; } |
|
|
5920 | if test $ac_cv_lib_m_ceil = yes; then |
|
|
5921 | cat >>confdefs.h <<_ACEOF |
|
|
5922 | #define HAVE_LIBM 1 |
|
|
5923 | _ACEOF |
|
|
5924 | |
|
|
5925 | LIBS="-lm $LIBS" |
|
|
5926 | |
|
|
5927 | fi |
|
|
5928 | |
|
|
5929 | |
|
|
5930 | |
|
|
5931 | |
4834 | |
5932 | |
4835 | |
5933 | |
4836 | |
5934 | |
4837 | # Extract the first word of "tic", so it can be a program name with args. |
5935 | # Extract the first word of "tic", so it can be a program name with args. |
4838 | set dummy tic; ac_word=$2 |
5936 | set dummy tic; ac_word=$2 |
… | |
… | |
4859 | fi |
5957 | fi |
4860 | done |
5958 | done |
4861 | done |
5959 | done |
4862 | IFS=$as_save_IFS |
5960 | IFS=$as_save_IFS |
4863 | |
5961 | |
|
|
5962 | test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":" |
4864 | ;; |
5963 | ;; |
4865 | esac |
5964 | esac |
4866 | fi |
5965 | fi |
4867 | TIC=$ac_cv_path_TIC |
5966 | TIC=$ac_cv_path_TIC |
4868 | if test -n "$TIC"; then |
5967 | if test -n "$TIC"; then |
… | |
… | |
4871 | else |
5970 | else |
4872 | { echo "$as_me:$LINENO: result: no" >&5 |
5971 | { echo "$as_me:$LINENO: result: no" >&5 |
4873 | echo "${ECHO_T}no" >&6; } |
5972 | echo "${ECHO_T}no" >&6; } |
4874 | fi |
5973 | fi |
4875 | |
5974 | |
4876 | |
|
|
4877 | |
|
|
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 | |
5975 | |
5106 | |
5976 | |
5107 | { echo "$as_me:$LINENO: checking for X" >&5 |
5977 | { echo "$as_me:$LINENO: checking for X" >&5 |
5108 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
5978 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
5109 | |
5979 | |
… | |
… | |
6495 | echo "${ECHO_T}no" >&6; } |
7365 | echo "${ECHO_T}no" >&6; } |
6496 | fi |
7366 | fi |
6497 | fi |
7367 | fi |
6498 | fi |
7368 | fi |
6499 | |
7369 | |
6500 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
|
|
6501 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
|
|
6502 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
|
|
6503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6504 | else |
|
|
6505 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6506 | /* confdefs.h. */ |
|
|
6507 | _ACEOF |
|
|
6508 | cat confdefs.h >>conftest.$ac_ext |
|
|
6509 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6510 | /* end confdefs.h. */ |
|
|
6511 | #include <sys/types.h> |
|
|
6512 | #include <sys/wait.h> |
|
|
6513 | #ifndef WEXITSTATUS |
|
|
6514 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
|
|
6515 | #endif |
|
|
6516 | #ifndef WIFEXITED |
|
|
6517 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
|
|
6518 | #endif |
|
|
6519 | |
|
|
6520 | int |
|
|
6521 | main () |
|
|
6522 | { |
|
|
6523 | int s; |
|
|
6524 | wait (&s); |
|
|
6525 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
|
|
6526 | ; |
|
|
6527 | return 0; |
|
|
6528 | } |
|
|
6529 | _ACEOF |
|
|
6530 | rm -f conftest.$ac_objext |
|
|
6531 | if { (ac_try="$ac_compile" |
|
|
6532 | case "(($ac_try" in |
|
|
6533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6534 | *) ac_try_echo=$ac_try;; |
|
|
6535 | esac |
|
|
6536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6537 | (eval "$ac_compile") 2>conftest.er1 |
|
|
6538 | ac_status=$? |
|
|
6539 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6540 | rm -f conftest.er1 |
|
|
6541 | cat conftest.err >&5 |
|
|
6542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6543 | (exit $ac_status); } && { |
|
|
6544 | test -z "$ac_cxx_werror_flag" || |
|
|
6545 | test ! -s conftest.err |
|
|
6546 | } && test -s conftest.$ac_objext; then |
|
|
6547 | ac_cv_header_sys_wait_h=yes |
|
|
6548 | else |
|
|
6549 | echo "$as_me: failed program was:" >&5 |
|
|
6550 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6551 | |
|
|
6552 | ac_cv_header_sys_wait_h=no |
|
|
6553 | fi |
|
|
6554 | |
|
|
6555 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6556 | fi |
|
|
6557 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
|
|
6558 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
|
|
6559 | if test $ac_cv_header_sys_wait_h = yes; then |
|
|
6560 | |
|
|
6561 | cat >>confdefs.h <<\_ACEOF |
|
|
6562 | #define HAVE_SYS_WAIT_H 1 |
|
|
6563 | _ACEOF |
|
|
6564 | |
|
|
6565 | fi |
|
|
6566 | |
|
|
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 | |
7370 | |
6811 | |
7371 | |
6812 | |
7372 | |
6813 | |
7373 | |
6814 | |
7374 | |
… | |
… | |
6980 | fi |
7540 | fi |
6981 | |
7541 | |
6982 | done |
7542 | done |
6983 | |
7543 | |
6984 | |
7544 | |
6985 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
|
|
6986 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
|
|
6987 | if test "${ac_cv_header_time+set}" = set; then |
|
|
6988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6989 | else |
|
|
6990 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6991 | /* confdefs.h. */ |
|
|
6992 | _ACEOF |
|
|
6993 | cat confdefs.h >>conftest.$ac_ext |
|
|
6994 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6995 | /* end confdefs.h. */ |
|
|
6996 | #include <sys/types.h> |
|
|
6997 | #include <sys/time.h> |
|
|
6998 | #include <time.h> |
|
|
6999 | |
|
|
7000 | int |
|
|
7001 | main () |
|
|
7002 | { |
|
|
7003 | if ((struct tm *) 0) |
|
|
7004 | return 0; |
|
|
7005 | ; |
|
|
7006 | return 0; |
|
|
7007 | } |
|
|
7008 | _ACEOF |
|
|
7009 | rm -f conftest.$ac_objext |
|
|
7010 | if { (ac_try="$ac_compile" |
|
|
7011 | case "(($ac_try" in |
|
|
7012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7013 | *) ac_try_echo=$ac_try;; |
|
|
7014 | esac |
|
|
7015 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7016 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7017 | ac_status=$? |
|
|
7018 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7019 | rm -f conftest.er1 |
|
|
7020 | cat conftest.err >&5 |
|
|
7021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7022 | (exit $ac_status); } && { |
|
|
7023 | test -z "$ac_cxx_werror_flag" || |
|
|
7024 | test ! -s conftest.err |
|
|
7025 | } && test -s conftest.$ac_objext; then |
|
|
7026 | ac_cv_header_time=yes |
|
|
7027 | else |
|
|
7028 | echo "$as_me: failed program was:" >&5 |
|
|
7029 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7030 | |
|
|
7031 | ac_cv_header_time=no |
|
|
7032 | fi |
|
|
7033 | |
|
|
7034 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7035 | fi |
|
|
7036 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
|
|
7037 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
|
|
7038 | if test $ac_cv_header_time = yes; then |
|
|
7039 | |
|
|
7040 | cat >>confdefs.h <<\_ACEOF |
|
|
7041 | #define TIME_WITH_SYS_TIME 1 |
|
|
7042 | _ACEOF |
|
|
7043 | |
|
|
7044 | fi |
|
|
7045 | |
|
|
7046 | |
|
|
7047 | { echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5 |
7545 | { echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5 |
7048 | echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; } |
7546 | echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; } |
7049 | if test "${rxvt_cv_header_sysioctl+set}" = set; then |
7547 | if test "${rxvt_cv_header_sysioctl+set}" = set; then |
7050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7051 | else |
7549 | else |
… | |
… | |
7216 | cat >>confdefs.h <<\_ACEOF |
7714 | cat >>confdefs.h <<\_ACEOF |
7217 | #define XLIB_ILLEGAL_ACCESS 1 |
7715 | #define XLIB_ILLEGAL_ACCESS 1 |
7218 | _ACEOF |
7716 | _ACEOF |
7219 | |
7717 | |
7220 | fi |
7718 | fi |
7221 | |
|
|
7222 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
|
|
7223 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
|
|
7224 | if test "${ac_cv_c_const+set}" = set; then |
|
|
7225 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7226 | else |
|
|
7227 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7228 | /* confdefs.h. */ |
|
|
7229 | _ACEOF |
|
|
7230 | cat confdefs.h >>conftest.$ac_ext |
|
|
7231 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7232 | /* end confdefs.h. */ |
|
|
7233 | |
|
|
7234 | int |
|
|
7235 | main () |
|
|
7236 | { |
|
|
7237 | /* FIXME: Include the comments suggested by Paul. */ |
|
|
7238 | #ifndef __cplusplus |
|
|
7239 | /* Ultrix mips cc rejects this. */ |
|
|
7240 | typedef int charset[2]; |
|
|
7241 | const charset cs; |
|
|
7242 | /* SunOS 4.1.1 cc rejects this. */ |
|
|
7243 | char const *const *pcpcc; |
|
|
7244 | char **ppc; |
|
|
7245 | /* NEC SVR4.0.2 mips cc rejects this. */ |
|
|
7246 | struct point {int x, y;}; |
|
|
7247 | static struct point const zero = {0,0}; |
|
|
7248 | /* AIX XL C 1.02.0.0 rejects this. |
|
|
7249 | It does not let you subtract one const X* pointer from another in |
|
|
7250 | an arm of an if-expression whose if-part is not a constant |
|
|
7251 | expression */ |
|
|
7252 | const char *g = "string"; |
|
|
7253 | pcpcc = &g + (g ? g-g : 0); |
|
|
7254 | /* HPUX 7.0 cc rejects these. */ |
|
|
7255 | ++pcpcc; |
|
|
7256 | ppc = (char**) pcpcc; |
|
|
7257 | pcpcc = (char const *const *) ppc; |
|
|
7258 | { /* SCO 3.2v4 cc rejects this. */ |
|
|
7259 | char *t; |
|
|
7260 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
|
|
7261 | |
|
|
7262 | *t++ = 0; |
|
|
7263 | if (s) return 0; |
|
|
7264 | } |
|
|
7265 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
|
|
7266 | int x[] = {25, 17}; |
|
|
7267 | const int *foo = &x[0]; |
|
|
7268 | ++foo; |
|
|
7269 | } |
|
|
7270 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
|
|
7271 | typedef const int *iptr; |
|
|
7272 | iptr p = 0; |
|
|
7273 | ++p; |
|
|
7274 | } |
|
|
7275 | { /* AIX XL C 1.02.0.0 rejects this saying |
|
|
7276 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
|
|
7277 | struct s { int j; const int *ap[3]; }; |
|
|
7278 | struct s *b; b->j = 5; |
|
|
7279 | } |
|
|
7280 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
|
|
7281 | const int foo = 10; |
|
|
7282 | if (!foo) return 0; |
|
|
7283 | } |
|
|
7284 | return !cs[0] && !zero.x; |
|
|
7285 | #endif |
|
|
7286 | |
|
|
7287 | ; |
|
|
7288 | return 0; |
|
|
7289 | } |
|
|
7290 | _ACEOF |
|
|
7291 | rm -f conftest.$ac_objext |
|
|
7292 | if { (ac_try="$ac_compile" |
|
|
7293 | case "(($ac_try" in |
|
|
7294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7295 | *) ac_try_echo=$ac_try;; |
|
|
7296 | esac |
|
|
7297 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7298 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7299 | ac_status=$? |
|
|
7300 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7301 | rm -f conftest.er1 |
|
|
7302 | cat conftest.err >&5 |
|
|
7303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7304 | (exit $ac_status); } && { |
|
|
7305 | test -z "$ac_cxx_werror_flag" || |
|
|
7306 | test ! -s conftest.err |
|
|
7307 | } && test -s conftest.$ac_objext; then |
|
|
7308 | ac_cv_c_const=yes |
|
|
7309 | else |
|
|
7310 | echo "$as_me: failed program was:" >&5 |
|
|
7311 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7312 | |
|
|
7313 | ac_cv_c_const=no |
|
|
7314 | fi |
|
|
7315 | |
|
|
7316 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7317 | fi |
|
|
7318 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
|
|
7319 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
|
|
7320 | if test $ac_cv_c_const = no; then |
|
|
7321 | |
|
|
7322 | cat >>confdefs.h <<\_ACEOF |
|
|
7323 | #define const |
|
|
7324 | _ACEOF |
|
|
7325 | |
|
|
7326 | fi |
|
|
7327 | |
|
|
7328 | { echo "$as_me:$LINENO: checking for inline" >&5 |
|
|
7329 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
|
|
7330 | if test "${ac_cv_c_inline+set}" = set; then |
|
|
7331 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7332 | else |
|
|
7333 | ac_cv_c_inline=no |
|
|
7334 | for ac_kw in inline __inline__ __inline; do |
|
|
7335 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7336 | /* confdefs.h. */ |
|
|
7337 | _ACEOF |
|
|
7338 | cat confdefs.h >>conftest.$ac_ext |
|
|
7339 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7340 | /* end confdefs.h. */ |
|
|
7341 | #ifndef __cplusplus |
|
|
7342 | typedef int foo_t; |
|
|
7343 | static $ac_kw foo_t static_foo () {return 0; } |
|
|
7344 | $ac_kw foo_t foo () {return 0; } |
|
|
7345 | #endif |
|
|
7346 | |
|
|
7347 | _ACEOF |
|
|
7348 | rm -f conftest.$ac_objext |
|
|
7349 | if { (ac_try="$ac_compile" |
|
|
7350 | case "(($ac_try" in |
|
|
7351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7352 | *) ac_try_echo=$ac_try;; |
|
|
7353 | esac |
|
|
7354 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7355 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7356 | ac_status=$? |
|
|
7357 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7358 | rm -f conftest.er1 |
|
|
7359 | cat conftest.err >&5 |
|
|
7360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7361 | (exit $ac_status); } && { |
|
|
7362 | test -z "$ac_cxx_werror_flag" || |
|
|
7363 | test ! -s conftest.err |
|
|
7364 | } && test -s conftest.$ac_objext; then |
|
|
7365 | ac_cv_c_inline=$ac_kw |
|
|
7366 | else |
|
|
7367 | echo "$as_me: failed program was:" >&5 |
|
|
7368 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7369 | |
|
|
7370 | |
|
|
7371 | fi |
|
|
7372 | |
|
|
7373 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7374 | test "$ac_cv_c_inline" != no && break |
|
|
7375 | done |
|
|
7376 | |
|
|
7377 | fi |
|
|
7378 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
|
|
7379 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
|
|
7380 | |
|
|
7381 | |
|
|
7382 | case $ac_cv_c_inline in |
|
|
7383 | inline | yes) ;; |
|
|
7384 | *) |
|
|
7385 | case $ac_cv_c_inline in |
|
|
7386 | no) ac_val=;; |
|
|
7387 | *) ac_val=$ac_cv_c_inline;; |
|
|
7388 | esac |
|
|
7389 | cat >>confdefs.h <<_ACEOF |
|
|
7390 | #ifndef __cplusplus |
|
|
7391 | #define inline $ac_val |
|
|
7392 | #endif |
|
|
7393 | _ACEOF |
|
|
7394 | ;; |
|
|
7395 | esac |
|
|
7396 | |
|
|
7397 | |
|
|
7398 | |
7719 | |
7399 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
7720 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
7400 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
7721 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
7401 | if test "${ac_cv_type_mode_t+set}" = set; then |
7722 | if test "${ac_cv_type_mode_t+set}" = set; then |
7402 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
9517 | fi |
9838 | fi |
9518 | fi |
9839 | fi |
9519 | |
9840 | |
9520 | |
9841 | |
9521 | |
9842 | |
9522 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
|
|
9523 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } |
|
|
9524 | if test "${ac_cv_type_signal+set}" = set; then |
|
|
9525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9526 | else |
|
|
9527 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9528 | /* confdefs.h. */ |
|
|
9529 | _ACEOF |
|
|
9530 | cat confdefs.h >>conftest.$ac_ext |
|
|
9531 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9532 | /* end confdefs.h. */ |
|
|
9533 | #include <sys/types.h> |
|
|
9534 | #include <signal.h> |
|
|
9535 | |
9843 | |
9536 | int |
|
|
9537 | main () |
|
|
9538 | { |
|
|
9539 | return *(signal (0, 0)) (0) == 1; |
|
|
9540 | ; |
|
|
9541 | return 0; |
|
|
9542 | } |
|
|
9543 | _ACEOF |
|
|
9544 | rm -f conftest.$ac_objext |
|
|
9545 | if { (ac_try="$ac_compile" |
|
|
9546 | case "(($ac_try" in |
|
|
9547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9548 | *) ac_try_echo=$ac_try;; |
|
|
9549 | esac |
|
|
9550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9551 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9552 | ac_status=$? |
|
|
9553 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9554 | rm -f conftest.er1 |
|
|
9555 | cat conftest.err >&5 |
|
|
9556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9557 | (exit $ac_status); } && { |
|
|
9558 | test -z "$ac_cxx_werror_flag" || |
|
|
9559 | test ! -s conftest.err |
|
|
9560 | } && test -s conftest.$ac_objext; then |
|
|
9561 | ac_cv_type_signal=int |
|
|
9562 | else |
|
|
9563 | echo "$as_me: failed program was:" >&5 |
|
|
9564 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9565 | |
|
|
9566 | ac_cv_type_signal=void |
|
|
9567 | fi |
|
|
9568 | |
|
|
9569 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9570 | fi |
|
|
9571 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
|
|
9572 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
|
|
9573 | |
|
|
9574 | cat >>confdefs.h <<_ACEOF |
|
|
9575 | #define RETSIGTYPE $ac_cv_type_signal |
|
|
9576 | _ACEOF |
|
|
9577 | |
|
|
9578 | |
|
|
9579 | |
|
|
9580 | |
|
|
9581 | |
|
|
9582 | |
|
|
9583 | for ac_func in \ |
9844 | for ac_func in unsetenv |
9584 | unsetenv \ |
|
|
9585 | setutent \ |
|
|
9586 | on_exit \ |
|
|
9587 | |
|
|
9588 | do |
9845 | do |
9589 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9846 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9590 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9847 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9591 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
9848 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
9592 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
9849 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
… | |
… | |
9731 | |
9988 | |
9732 | |
9989 | |
9733 | |
9990 | |
9734 | |
9991 | |
9735 | for ac_func in \ |
9992 | for ac_func in \ |
9736 | ttyslot \ |
|
|
9737 | updwtmp \ |
9993 | updwtmp \ |
9738 | updwtmpx \ |
9994 | updwtmpx \ |
|
|
9995 | updlastlogx \ |
9739 | |
9996 | |
9740 | do |
9997 | do |
9741 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9998 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9742 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9999 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9743 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
10000 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
… | |
… | |
9829 | fi |
10086 | fi |
9830 | done |
10087 | done |
9831 | |
10088 | |
9832 | |
10089 | |
9833 | |
10090 | |
9834 | |
|
|
9835 | |
|
|
9836 | for ac_header in \ |
10091 | for ac_header in lastlog.h |
9837 | utmp.h \ |
|
|
9838 | utmpx.h \ |
|
|
9839 | lastlog.h \ |
|
|
9840 | |
|
|
9841 | do |
10092 | do |
9842 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10093 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
9843 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10094 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9844 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10095 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9845 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10096 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
… | |
… | |
9976 | |
10227 | |
9977 | done |
10228 | done |
9978 | |
10229 | |
9979 | |
10230 | |
9980 | |
10231 | |
9981 | if test "${ac_cv_header_utmp_h+set}" = set; then |
10232 | |
|
|
10233 | for ac_header in utmp.h |
|
|
10234 | do |
|
|
10235 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
10236 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9982 | { echo "$as_me:$LINENO: checking for utmp.h" >&5 |
10237 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9983 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } |
10238 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
9984 | if test "${ac_cv_header_utmp_h+set}" = set; then |
10239 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9986 | fi |
10241 | fi |
|
|
10242 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9987 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
10243 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
9988 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } |
10244 | echo "${ECHO_T}$ac_res" >&6; } |
9989 | else |
10245 | else |
9990 | # Is the header compilable? |
10246 | # Is the header compilable? |
9991 | { echo "$as_me:$LINENO: checking utmp.h usability" >&5 |
10247 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9992 | echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6; } |
10248 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
9993 | cat >conftest.$ac_ext <<_ACEOF |
10249 | cat >conftest.$ac_ext <<_ACEOF |
9994 | /* confdefs.h. */ |
10250 | /* confdefs.h. */ |
9995 | _ACEOF |
10251 | _ACEOF |
9996 | cat confdefs.h >>conftest.$ac_ext |
10252 | cat confdefs.h >>conftest.$ac_ext |
9997 | cat >>conftest.$ac_ext <<_ACEOF |
10253 | cat >>conftest.$ac_ext <<_ACEOF |
9998 | /* end confdefs.h. */ |
10254 | /* end confdefs.h. */ |
9999 | $ac_includes_default |
10255 | $ac_includes_default |
10000 | #include <utmp.h> |
10256 | #include <$ac_header> |
10001 | _ACEOF |
10257 | _ACEOF |
10002 | rm -f conftest.$ac_objext |
10258 | rm -f conftest.$ac_objext |
10003 | if { (ac_try="$ac_compile" |
10259 | if { (ac_try="$ac_compile" |
10004 | case "(($ac_try" in |
10260 | case "(($ac_try" in |
10005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
… | |
… | |
10027 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10283 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10028 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10284 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10029 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
10285 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
10030 | |
10286 | |
10031 | # Is the header present? |
10287 | # Is the header present? |
10032 | { echo "$as_me:$LINENO: checking utmp.h presence" >&5 |
10288 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10033 | echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6; } |
10289 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
10034 | cat >conftest.$ac_ext <<_ACEOF |
10290 | cat >conftest.$ac_ext <<_ACEOF |
10035 | /* confdefs.h. */ |
10291 | /* confdefs.h. */ |
10036 | _ACEOF |
10292 | _ACEOF |
10037 | cat confdefs.h >>conftest.$ac_ext |
10293 | cat confdefs.h >>conftest.$ac_ext |
10038 | cat >>conftest.$ac_ext <<_ACEOF |
10294 | cat >>conftest.$ac_ext <<_ACEOF |
10039 | /* end confdefs.h. */ |
10295 | /* end confdefs.h. */ |
10040 | #include <utmp.h> |
10296 | #include <$ac_header> |
10041 | _ACEOF |
10297 | _ACEOF |
10042 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10298 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10043 | case "(($ac_try" in |
10299 | case "(($ac_try" in |
10044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10045 | *) ac_try_echo=$ac_try;; |
10301 | *) ac_try_echo=$ac_try;; |
… | |
… | |
10068 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
10324 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
10069 | |
10325 | |
10070 | # So? What about this header? |
10326 | # So? What about this header? |
10071 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
10327 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
10072 | yes:no: ) |
10328 | yes:no: ) |
10073 | { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
10329 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10074 | echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
10330 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
10075 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5 |
10331 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10076 | echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;} |
10332 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
10077 | ac_header_preproc=yes |
10333 | ac_header_preproc=yes |
10078 | ;; |
10334 | ;; |
10079 | no:yes:* ) |
10335 | no:yes:* ) |
10080 | { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5 |
10336 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10081 | echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;} |
10337 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
10082 | { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5 |
10338 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10083 | echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;} |
10339 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
10084 | { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5 |
10340 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
10085 | echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;} |
10341 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
10086 | { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5 |
10342 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
10087 | echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;} |
10343 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
10088 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5 |
10344 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10089 | echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;} |
10345 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
10090 | { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5 |
10346 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10091 | echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;} |
10347 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
10092 | |
10348 | |
10093 | ;; |
10349 | ;; |
10094 | esac |
10350 | esac |
10095 | { echo "$as_me:$LINENO: checking for utmp.h" >&5 |
10351 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10096 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } |
10352 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10097 | if test "${ac_cv_header_utmp_h+set}" = set; then |
10353 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10099 | else |
10355 | else |
10100 | ac_cv_header_utmp_h=$ac_header_preproc |
10356 | eval "$as_ac_Header=\$ac_header_preproc" |
10101 | fi |
10357 | fi |
|
|
10358 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10102 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
10359 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
10103 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } |
10360 | echo "${ECHO_T}$ac_res" >&6; } |
10104 | |
10361 | |
10105 | fi |
10362 | fi |
10106 | if test $ac_cv_header_utmp_h = yes; then |
10363 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
10364 | cat >>confdefs.h <<_ACEOF |
|
|
10365 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
10366 | _ACEOF |
10107 | { echo "$as_me:$LINENO: checking for struct utmp" >&5 |
10367 | { echo "$as_me:$LINENO: checking for struct utmp" >&5 |
10108 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; } |
10368 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; } |
10109 | if test "${struct_utmp+set}" = set; then |
10369 | if test "${struct_utmp+set}" = set; then |
10110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10111 | else |
10371 | else |
10112 | cat >conftest.$ac_ext <<_ACEOF |
10372 | cat >conftest.$ac_ext <<_ACEOF |
… | |
… | |
10279 | |
10539 | |
10280 | fi |
10540 | fi |
10281 | |
10541 | |
10282 | fi |
10542 | fi |
10283 | |
10543 | |
|
|
10544 | done |
10284 | |
10545 | |
10285 | |
10546 | |
10286 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
10547 | |
|
|
10548 | for ac_header in utmpx.h |
|
|
10549 | do |
|
|
10550 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
10551 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10287 | { echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
10552 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10288 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } |
10553 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10289 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
10554 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10291 | fi |
10556 | fi |
|
|
10557 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10292 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
10558 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
10293 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } |
10559 | echo "${ECHO_T}$ac_res" >&6; } |
10294 | else |
10560 | else |
10295 | # Is the header compilable? |
10561 | # Is the header compilable? |
10296 | { echo "$as_me:$LINENO: checking utmpx.h usability" >&5 |
10562 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10297 | echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6; } |
10563 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
10298 | cat >conftest.$ac_ext <<_ACEOF |
10564 | cat >conftest.$ac_ext <<_ACEOF |
10299 | /* confdefs.h. */ |
10565 | /* confdefs.h. */ |
10300 | _ACEOF |
10566 | _ACEOF |
10301 | cat confdefs.h >>conftest.$ac_ext |
10567 | cat confdefs.h >>conftest.$ac_ext |
10302 | cat >>conftest.$ac_ext <<_ACEOF |
10568 | cat >>conftest.$ac_ext <<_ACEOF |
10303 | /* end confdefs.h. */ |
10569 | /* end confdefs.h. */ |
10304 | $ac_includes_default |
10570 | $ac_includes_default |
10305 | #include <utmpx.h> |
10571 | #include <$ac_header> |
10306 | _ACEOF |
10572 | _ACEOF |
10307 | rm -f conftest.$ac_objext |
10573 | rm -f conftest.$ac_objext |
10308 | if { (ac_try="$ac_compile" |
10574 | if { (ac_try="$ac_compile" |
10309 | case "(($ac_try" in |
10575 | case "(($ac_try" in |
10310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
… | |
… | |
10332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10598 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10333 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10599 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10334 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
10600 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
10335 | |
10601 | |
10336 | # Is the header present? |
10602 | # Is the header present? |
10337 | { echo "$as_me:$LINENO: checking utmpx.h presence" >&5 |
10603 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10338 | echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6; } |
10604 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
10339 | cat >conftest.$ac_ext <<_ACEOF |
10605 | cat >conftest.$ac_ext <<_ACEOF |
10340 | /* confdefs.h. */ |
10606 | /* confdefs.h. */ |
10341 | _ACEOF |
10607 | _ACEOF |
10342 | cat confdefs.h >>conftest.$ac_ext |
10608 | cat confdefs.h >>conftest.$ac_ext |
10343 | cat >>conftest.$ac_ext <<_ACEOF |
10609 | cat >>conftest.$ac_ext <<_ACEOF |
10344 | /* end confdefs.h. */ |
10610 | /* end confdefs.h. */ |
10345 | #include <utmpx.h> |
10611 | #include <$ac_header> |
10346 | _ACEOF |
10612 | _ACEOF |
10347 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10613 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10348 | case "(($ac_try" in |
10614 | case "(($ac_try" in |
10349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10350 | *) ac_try_echo=$ac_try;; |
10616 | *) ac_try_echo=$ac_try;; |
… | |
… | |
10373 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
10639 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
10374 | |
10640 | |
10375 | # So? What about this header? |
10641 | # So? What about this header? |
10376 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
10642 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
10377 | yes:no: ) |
10643 | yes:no: ) |
10378 | { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
10644 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10379 | echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
10645 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
10380 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5 |
10646 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10381 | echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;} |
10647 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
10382 | ac_header_preproc=yes |
10648 | ac_header_preproc=yes |
10383 | ;; |
10649 | ;; |
10384 | no:yes:* ) |
10650 | no:yes:* ) |
10385 | { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5 |
10651 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10386 | echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;} |
10652 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
10387 | { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5 |
10653 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10388 | echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;} |
10654 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
10389 | { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5 |
10655 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
10390 | echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;} |
10656 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
10391 | { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5 |
10657 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
10392 | echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;} |
10658 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
10393 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5 |
10659 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10394 | echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;} |
10660 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
10395 | { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5 |
10661 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10396 | echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;} |
10662 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
10397 | |
10663 | |
10398 | ;; |
10664 | ;; |
10399 | esac |
10665 | esac |
10400 | { echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
10666 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10401 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } |
10667 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10402 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
10668 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10404 | else |
10670 | else |
10405 | ac_cv_header_utmpx_h=$ac_header_preproc |
10671 | eval "$as_ac_Header=\$ac_header_preproc" |
10406 | fi |
10672 | fi |
|
|
10673 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10407 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
10674 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
10408 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } |
10675 | echo "${ECHO_T}$ac_res" >&6; } |
10409 | |
10676 | |
10410 | fi |
10677 | fi |
10411 | if test $ac_cv_header_utmpx_h = yes; then |
10678 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
10679 | cat >>confdefs.h <<_ACEOF |
|
|
10680 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
10681 | _ACEOF |
10412 | { echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
10682 | { echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
10413 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; } |
10683 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; } |
10414 | if test "${struct_utmpx+set}" = set; then |
10684 | if test "${struct_utmpx+set}" = set; then |
10415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10416 | else |
10686 | else |
10417 | cat >conftest.$ac_ext <<_ACEOF |
10687 | cat >conftest.$ac_ext <<_ACEOF |
… | |
… | |
10584 | |
10854 | |
10585 | fi |
10855 | fi |
10586 | |
10856 | |
10587 | fi |
10857 | fi |
10588 | |
10858 | |
|
|
10859 | done |
10589 | |
10860 | |
10590 | { echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
10861 | { echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
10591 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } |
10862 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } |
10592 | if test "${struct_lastlog+set}" = set; then |
10863 | if test "${struct_lastlog+set}" = set; then |
10593 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10864 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
11164 | |
11435 | |
11165 | cat >>confdefs.h <<_ACEOF |
11436 | cat >>confdefs.h <<_ACEOF |
11166 | #define LASTLOG_FILE "$path_lastlog" |
11437 | #define LASTLOG_FILE "$path_lastlog" |
11167 | _ACEOF |
11438 | _ACEOF |
11168 | |
11439 | |
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 |
11440 | fi |
11177 | |
11441 | |
11178 | { echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
11442 | { echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
11179 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } |
11443 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } |
11180 | if test "${path_lastlogx+set}" = set; then |
11444 | if test "${path_lastlogx+set}" = set; then |
… | |
… | |
11262 | |
11526 | |
11263 | fi |
11527 | fi |
11264 | |
11528 | |
11265 | |
11529 | |
11266 | |
11530 | |
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 | |
11531 | |
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 |
11532 | save_LIBS=$LIBS |
11293 | ac_save_CFLAGS=$CFLAGS |
11533 | save_CFLAGS=$CFLAGS |
11294 | CFLAGS="$CFLAGS $X_CFLAGS" |
11534 | CFLAGS="$CFLAGS $X_CFLAGS" |
11295 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
11535 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
11296 | if test x$support_xim = xyes; then |
11536 | if test x$support_xim = xyes; then |
11297 | { echo "$as_me:$LINENO: checking for working Xlocale" >&5 |
11537 | { echo "$as_me:$LINENO: checking for working Xlocale" >&5 |
11298 | echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } |
11538 | echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } |
… | |
… | |
11473 | cat >>confdefs.h <<\_ACEOF |
11713 | cat >>confdefs.h <<\_ACEOF |
11474 | #define HAVE_XSETLOCALE 1 |
11714 | #define HAVE_XSETLOCALE 1 |
11475 | _ACEOF |
11715 | _ACEOF |
11476 | |
11716 | |
11477 | fi |
11717 | fi |
11478 | LIBS=$ac_save_LIBS |
11718 | LIBS=$save_LIBS |
11479 | CFLAGS=$ac_save_CFLAGS |
11719 | CFLAGS=$save_CFLAGS |
11480 | |
11720 | |
11481 | { echo "$as_me:$LINENO: checking for working plain setlocale" >&5 |
11721 | { echo "$as_me:$LINENO: checking for working plain setlocale" >&5 |
11482 | echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } |
11722 | echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } |
11483 | if test "${rxvt_cv_func_setlocale+set}" = set; then |
11723 | if test "${rxvt_cv_func_setlocale+set}" = set; then |
11484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
12377 | echo "${ECHO_T}no" >&6; } |
12617 | echo "${ECHO_T}no" >&6; } |
12378 | fi |
12618 | fi |
12379 | |
12619 | |
12380 | |
12620 | |
12381 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
12621 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
12382 | LIBS="$LIBS `$PKG_CONFIG xft --libs`" |
12622 | X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS" |
12383 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
12623 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
12384 | else |
12624 | else |
12385 | # Extract the first word of "xft-config", so it can be a program name with args. |
12625 | # Extract the first word of "xft-config", so it can be a program name with args. |
12386 | set dummy xft-config; ac_word=$2 |
12626 | set dummy xft-config; ac_word=$2 |
12387 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
12627 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
… | |
… | |
12422 | echo "${ECHO_T}no" >&6; } |
12662 | echo "${ECHO_T}no" >&6; } |
12423 | fi |
12663 | fi |
12424 | |
12664 | |
12425 | |
12665 | |
12426 | if test $XFT_CONFIG != no; then |
12666 | if test $XFT_CONFIG != no; then |
12427 | LIBS="$LIBS `$XFT_CONFIG --libs`" |
12667 | X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" |
12428 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
12668 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
12429 | fi |
12669 | fi |
12430 | fi |
12670 | fi |
12431 | |
12671 | |
|
|
12672 | save_LIBS="$LIBS" |
|
|
12673 | LIBS="$LIBS $X_LIBS" |
12432 | |
12674 | |
12433 | for ac_header in X11/Xft/Xft.h |
12675 | for ac_header in X11/Xft/Xft.h |
12434 | do |
12676 | do |
12435 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12677 | 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 |
12678 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
… | |
… | |
12569 | support_xft=no |
12811 | support_xft=no |
12570 | fi |
12812 | fi |
12571 | |
12813 | |
12572 | done |
12814 | done |
12573 | |
12815 | |
12574 | |
|
|
12575 | { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
12816 | { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
12576 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
12817 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
12577 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
12818 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
12578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12819 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12579 | else |
12820 | else |
12580 | ac_check_lib_save_LIBS=$LIBS |
12821 | ac_check_lib_save_LIBS=$LIBS |
… | |
… | |
12632 | LIBS=$ac_check_lib_save_LIBS |
12873 | LIBS=$ac_check_lib_save_LIBS |
12633 | fi |
12874 | fi |
12634 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
12875 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
12635 | echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } |
12876 | echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } |
12636 | if test $ac_cv_lib_Xft_XftDrawString32 = yes; then |
12877 | if test $ac_cv_lib_Xft_XftDrawString32 = yes; then |
12637 | cat >>confdefs.h <<_ACEOF |
12878 | : |
12638 | #define HAVE_LIBXFT 1 |
|
|
12639 | _ACEOF |
|
|
12640 | |
|
|
12641 | LIBS="-lXft $LIBS" |
|
|
12642 | |
|
|
12643 | else |
12879 | else |
12644 | support_xft=no |
12880 | support_xft=no |
12645 | fi |
12881 | fi |
12646 | |
12882 | |
|
|
12883 | LIBS="$save_LIBS" |
12647 | |
12884 | |
12648 | if test x$support_xft = xyes; then |
12885 | if test x$support_xft = xyes; then |
12649 | |
12886 | |
12650 | cat >>confdefs.h <<\_ACEOF |
12887 | cat >>confdefs.h <<\_ACEOF |
12651 | #define XFT 1 |
12888 | #define XFT 1 |
… | |
… | |
12729 | #define HAVE_AFTERIMAGE 1 |
12966 | #define HAVE_AFTERIMAGE 1 |
12730 | _ACEOF |
12967 | _ACEOF |
12731 | |
12968 | |
12732 | |
12969 | |
12733 | cat >>confdefs.h <<\_ACEOF |
12970 | cat >>confdefs.h <<\_ACEOF |
12734 | #define XPM_BACKGROUND 1 |
12971 | #define BG_IMAGE_FROM_FILE 1 |
12735 | _ACEOF |
12972 | _ACEOF |
12736 | |
12973 | |
12737 | fi |
12974 | fi |
12738 | |
12975 | |
12739 | |
12976 | |
… | |
… | |
13775 | host_cpu!$host_cpu$ac_delim |
14012 | host_cpu!$host_cpu$ac_delim |
13776 | host_vendor!$host_vendor$ac_delim |
14013 | host_vendor!$host_vendor$ac_delim |
13777 | host_os!$host_os$ac_delim |
14014 | host_os!$host_os$ac_delim |
13778 | VERSION!$VERSION$ac_delim |
14015 | VERSION!$VERSION$ac_delim |
13779 | DATE!$DATE$ac_delim |
14016 | DATE!$DATE$ac_delim |
13780 | LSMDATE!$LSMDATE$ac_delim |
|
|
13781 | LIBVERSION!$LIBVERSION$ac_delim |
|
|
13782 | CC!$CC$ac_delim |
14017 | CC!$CC$ac_delim |
13783 | CFLAGS!$CFLAGS$ac_delim |
14018 | CFLAGS!$CFLAGS$ac_delim |
13784 | LDFLAGS!$LDFLAGS$ac_delim |
14019 | LDFLAGS!$LDFLAGS$ac_delim |
13785 | CPPFLAGS!$CPPFLAGS$ac_delim |
14020 | CPPFLAGS!$CPPFLAGS$ac_delim |
13786 | ac_ct_CC!$ac_ct_CC$ac_delim |
14021 | ac_ct_CC!$ac_ct_CC$ac_delim |
… | |
… | |
13794 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
14029 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
13795 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
14030 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
13796 | GREP!$GREP$ac_delim |
14031 | GREP!$GREP$ac_delim |
13797 | EGREP!$EGREP$ac_delim |
14032 | EGREP!$EGREP$ac_delim |
13798 | LINKER!$LINKER$ac_delim |
14033 | LINKER!$LINKER$ac_delim |
13799 | INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim |
|
|
13800 | RXVTNAME!$RXVTNAME$ac_delim |
14034 | RXVTNAME!$RXVTNAME$ac_delim |
|
|
14035 | CXXCPP!$CXXCPP$ac_delim |
13801 | TIC!$TIC$ac_delim |
14036 | TIC!$TIC$ac_delim |
13802 | XMKMF!$XMKMF$ac_delim |
14037 | XMKMF!$XMKMF$ac_delim |
13803 | CXXCPP!$CXXCPP$ac_delim |
|
|
13804 | X_CFLAGS!$X_CFLAGS$ac_delim |
14038 | X_CFLAGS!$X_CFLAGS$ac_delim |
13805 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
14039 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
13806 | X_LIBS!$X_LIBS$ac_delim |
14040 | X_LIBS!$X_LIBS$ac_delim |
13807 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
14041 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
13808 | afterimage_config!$afterimage_config$ac_delim |
14042 | afterimage_config!$afterimage_config$ac_delim |
… | |
… | |
13825 | include_stdint_h!$include_stdint_h$ac_delim |
14059 | include_stdint_h!$include_stdint_h$ac_delim |
13826 | include_stdarg_h!$include_stdarg_h$ac_delim |
14060 | include_stdarg_h!$include_stdarg_h$ac_delim |
13827 | include_stdlib_h!$include_stdlib_h$ac_delim |
14061 | include_stdlib_h!$include_stdlib_h$ac_delim |
13828 | include_unistd_h!$include_unistd_h$ac_delim |
14062 | include_unistd_h!$include_unistd_h$ac_delim |
13829 | include_string_h!$include_string_h$ac_delim |
14063 | include_string_h!$include_string_h$ac_delim |
|
|
14064 | include_fcntl_h!$include_fcntl_h$ac_delim |
|
|
14065 | include_util_h!$include_util_h$ac_delim |
|
|
14066 | include_assert_h!$include_assert_h$ac_delim |
13830 | _ACEOF |
14067 | _ACEOF |
13831 | |
14068 | |
13832 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
14069 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
13833 | break |
14070 | break |
13834 | elif $ac_last_try; then |
14071 | elif $ac_last_try; then |
… | |
… | |
13866 | |
14103 | |
13867 | |
14104 | |
13868 | ac_delim='%!_!# ' |
14105 | ac_delim='%!_!# ' |
13869 | for ac_last_try in false false false false false :; do |
14106 | for ac_last_try in false false false false false :; do |
13870 | cat >conf$$subs.sed <<_ACEOF |
14107 | cat >conf$$subs.sed <<_ACEOF |
13871 | include_fcntl_h!$include_fcntl_h$ac_delim |
|
|
13872 | include_util_h!$include_util_h$ac_delim |
|
|
13873 | include_assert_h!$include_assert_h$ac_delim |
|
|
13874 | include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim |
14108 | include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim |
13875 | include_sys_select_h!$include_sys_select_h$ac_delim |
14109 | include_sys_select_h!$include_sys_select_h$ac_delim |
13876 | include_sys_strredir_h!$include_sys_strredir_h$ac_delim |
14110 | include_sys_strredir_h!$include_sys_strredir_h$ac_delim |
13877 | include_sys_time_h!$include_sys_time_h$ac_delim |
14111 | include_sys_time_h!$include_sys_time_h$ac_delim |
13878 | include_time_h!$include_time_h$ac_delim |
14112 | include_time_h!$include_time_h$ac_delim |
13879 | LIBOBJS!$LIBOBJS$ac_delim |
14113 | LIBOBJS!$LIBOBJS$ac_delim |
13880 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
14114 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
13881 | _ACEOF |
14115 | _ACEOF |
13882 | |
14116 | |
13883 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then |
14117 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then |
13884 | break |
14118 | break |
13885 | elif $ac_last_try; then |
14119 | elif $ac_last_try; then |
13886 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
14120 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
13887 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
14121 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
13888 | { (exit 1); exit 1; }; } |
14122 | { (exit 1); exit 1; }; } |