… | |
… | |
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 |
692 | rxvt_int16_typedef |
|
|
693 | rxvt_uint16_typedef |
|
|
694 | rxvt_int32_typedef |
|
|
695 | rxvt_uint32_typedef |
|
|
696 | rxvt_intp_define |
|
|
697 | rxvt_u_intp_define |
|
|
698 | PKG_CONFIG |
689 | PKG_CONFIG |
699 | XFT_CONFIG |
690 | XFT_CONFIG |
700 | PERL |
691 | PERL |
701 | PERLLIB |
692 | PERLLIB |
702 | PERLFLAGS |
693 | PERLFLAGS |
703 | PERLPRIVLIBEXP |
694 | PERLPRIVLIBEXP |
704 | IF_PERL |
695 | IF_PERL |
705 | PERL_O |
696 | PERL_O |
706 | AFTERIMAGE_CFLAGS |
697 | AFTERIMAGE_CFLAGS |
707 | AFTERIMAGE_LIBS |
698 | AFTERIMAGE_LIBS |
708 | include_stdint_h |
|
|
709 | include_stdarg_h |
|
|
710 | include_stdlib_h |
|
|
711 | include_unistd_h |
|
|
712 | include_string_h |
|
|
713 | include_fcntl_h |
|
|
714 | include_util_h |
|
|
715 | include_assert_h |
|
|
716 | include_sys_ioctl_h |
|
|
717 | include_sys_select_h |
|
|
718 | include_sys_strredir_h |
|
|
719 | include_sys_time_h |
|
|
720 | include_time_h |
|
|
721 | LIBOBJS |
699 | LIBOBJS |
722 | LTLIBOBJS' |
700 | LTLIBOBJS' |
723 | ac_subst_files='' |
701 | ac_subst_files='' |
724 | ac_precious_vars='build_alias |
702 | ac_precious_vars='build_alias |
725 | host_alias |
703 | host_alias |
… | |
… | |
731 | CPPFLAGS |
709 | CPPFLAGS |
732 | CXX |
710 | CXX |
733 | CXXFLAGS |
711 | CXXFLAGS |
734 | CCC |
712 | CCC |
735 | CPP |
713 | CPP |
736 | XMKMF |
|
|
737 | CXXCPP' |
714 | CXXCPP |
|
|
715 | XMKMF' |
738 | |
716 | |
739 | |
717 | |
740 | # Initialize some variables set by options. |
718 | # Initialize some variables set by options. |
741 | ac_init_help= |
719 | ac_init_help= |
742 | ac_init_version=false |
720 | ac_init_version=false |
… | |
… | |
1316 | Optional Features: |
1294 | Optional Features: |
1317 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1295 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1318 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1296 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1319 | --enable-everything enable standard non-multichoice features |
1297 | --enable-everything enable standard non-multichoice features |
1320 | NOTE: this option is order dependent |
1298 | NOTE: this option is order dependent |
1321 | NOTE: automatically enabled with --enable-shared |
1299 | --enable-warnings turn on g++ warnings |
1322 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1300 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1323 | --enable-combining enable composition of base and combining characters |
1301 | --enable-combining enable composition of base and combining characters |
1324 | --enable-xft enable xft support on systems that have it |
1302 | --enable-xft enable xft support on systems that have it |
1325 | --enable-font-styles enable bold and italic support |
1303 | --enable-font-styles enable bold and italic support |
1326 | --enable-afterimage enable integration with libAfterImage for background images |
1304 | --enable-afterimage enable integration with libAfterImage for background images |
1327 | --enable-transparency enable transparent backgrounds |
1305 | --enable-transparency enable transparent backgrounds |
1328 | --enable-fading enable colors fading when off focus |
1306 | --enable-fading enable colors fading when off focus |
1329 | --enable-rxvt-scroll enable rxvt style scrollbar |
1307 | --enable-rxvt-scroll enable rxvt style scrollbar |
1330 | --enable-next-scroll enable NeXT style scrollbar |
1308 | --enable-next-scroll enable NeXT style scrollbar |
1331 | --enable-xterm-scroll enable Xterm style scrollbar |
1309 | --enable-xterm-scroll enable Xterm style scrollbar |
|
|
1310 | --enable-plain-scroll enable plain style scrollbar |
1332 | --enable-perl enable embedded perl interpreter |
1311 | --enable-perl enable embedded perl interpreter |
1333 | --enable-plain-scroll enable plain style scrollbar |
|
|
1334 | --enable-xim XIM (X Input Method) protocol support |
1312 | --enable-xim XIM (X Input Method) protocol support |
1335 | --disable-backspace-key disable handling of the backspace key |
1313 | --disable-backspace-key disable handling of the backspace key |
1336 | --disable-delete-key disable handling of the delete key |
1314 | --disable-delete-key disable handling of the delete key |
1337 | --disable-resources disable all resource checking |
1315 | --disable-resources disable all resource checking |
1338 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
1316 | --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) |
1317 | --enable-fallback[=CLASS] fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
1340 | --disable-swapscreen disable swap screen support |
1318 | --disable-swapscreen disable swap screen support |
1341 | --enable-iso14755 enable support for extended ISO 14755 modes |
1319 | --enable-iso14755 enable support for extended ISO 14755 modes |
1342 | --enable-frills enable support for rarely used features |
1320 | --enable-frills enable support for rarely used features |
1343 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
1321 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
1344 | --enable-selectionscrolling enable scrolling during selections |
1322 | --enable-selectionscrolling enable scrolling during selections |
1345 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1323 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1346 | --enable-slipwheeling enable slip wheel scrolling (requires previous) |
1324 | --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel) |
1347 | --enable-smart-resize enable smart growth/shrink behaviour |
1325 | --enable-smart-resize enable smart growth/shrink behaviour |
1348 | --enable-text-blink enable blinking text |
1326 | --enable-text-blink enable blinking text |
1349 | --enable-pointer-blank enable pointer blank when typing or inactive pointer |
1327 | --enable-pointer-blank enable pointer blank when typing or inactive pointer |
1350 | --enable-utmp enable utmp (utmpx) support |
1328 | --enable-utmp enable utmp (utmpx) support |
1351 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
1329 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
… | |
… | |
1353 | |
1331 | |
1354 | Optional Packages: |
1332 | Optional Packages: |
1355 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1333 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1356 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1334 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1357 | --with-afterimage-config=DIR use libAfterImage config script in DIR |
1335 | --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) |
1336 | --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) |
1337 | --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) |
1338 | --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) |
1339 | --with-name=NAME set the basename for the installed binaries (default: urxvt) |
1362 | --with-term=NAME set the terminal to NAME (default: rxvt) |
1340 | --with-term=NAME set the terminal to NAME (default: rxvt) |
1363 | --with-terminfo=PATH set the path to the terminfo tree to PATH |
1341 | --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 |
1350 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1373 | you have headers in a nonstandard directory <include dir> |
1351 | you have headers in a nonstandard directory <include dir> |
1374 | CXX C++ compiler command |
1352 | CXX C++ compiler command |
1375 | CXXFLAGS C++ compiler flags |
1353 | CXXFLAGS C++ compiler flags |
1376 | CPP C preprocessor |
1354 | CPP C preprocessor |
|
|
1355 | CXXCPP C++ preprocessor |
1377 | XMKMF Path to xmkmf, Makefile generator for X Window System |
1356 | XMKMF Path to xmkmf, Makefile generator for X Window System |
1378 | CXXCPP C++ preprocessor |
|
|
1379 | |
1357 | |
1380 | Use these variables to override the choices made by `configure' or to help |
1358 | Use these variables to override the choices made by `configure' or to help |
1381 | it to find libraries and programs with nonstandard names/locations. |
1359 | it to find libraries and programs with nonstandard names/locations. |
1382 | |
1360 | |
1383 | _ACEOF |
1361 | _ACEOF |
… | |
… | |
1919 | |
1897 | |
1920 | |
1898 | |
1921 | |
1899 | |
1922 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1900 | 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` |
1901 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
|
|
1902 | |
1924 | echo "" |
1903 | echo "" |
1925 | echo "configuring for rxvt $VERSION" |
1904 | echo "configuring for rxvt $VERSION" |
1926 | echo "" |
1905 | echo "" |
1927 | |
1906 | |
1928 | orig_CXXFLAGS="$CXXFLAGS" |
1907 | orig_CXXFLAGS="$CXXFLAGS" |
1929 | |
|
|
1930 | |
1908 | |
1931 | ac_ext=c |
1909 | ac_ext=c |
1932 | ac_cpp='$CPP $CPPFLAGS' |
1910 | ac_cpp='$CPP $CPPFLAGS' |
1933 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1911 | 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' |
1912 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
… | |
… | |
3713 | echo "${ECHO_T}no" >&6; } |
3691 | echo "${ECHO_T}no" >&6; } |
3714 | fi |
3692 | fi |
3715 | rm -f conftest* |
3693 | rm -f conftest* |
3716 | |
3694 | |
3717 | |
3695 | |
|
|
3696 | |
|
|
3697 | cat >>confdefs.h <<\_ACEOF |
|
|
3698 | #define _GNU_SOURCE 1 |
|
|
3699 | _ACEOF |
|
|
3700 | |
|
|
3701 | |
3718 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
3702 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
3719 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } |
3703 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } |
3720 | if test "${ac_cv_search_strerror+set}" = set; then |
3704 | if test "${ac_cv_search_strerror+set}" = set; then |
3721 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3722 | else |
3706 | else |
… | |
… | |
3869 | LINKER=$LINKER |
3853 | LINKER=$LINKER |
3870 | |
3854 | |
3871 | |
3855 | |
3872 | if test -z "$orig_CXXFLAGS"; then |
3856 | if test -z "$orig_CXXFLAGS"; then |
3873 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
3857 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
3874 | CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" |
3858 | CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs" |
3875 | cat >conftest.$ac_ext <<_ACEOF |
3859 | cat >conftest.$ac_ext <<_ACEOF |
3876 | /* confdefs.h. */ |
3860 | /* confdefs.h. */ |
3877 | _ACEOF |
3861 | _ACEOF |
3878 | cat confdefs.h >>conftest.$ac_ext |
3862 | cat confdefs.h >>conftest.$ac_ext |
3879 | cat >>conftest.$ac_ext <<_ACEOF |
3863 | cat >>conftest.$ac_ext <<_ACEOF |
… | |
… | |
3917 | CXXFLAGS="-O" |
3901 | CXXFLAGS="-O" |
3918 | fi |
3902 | fi |
3919 | CFLAGS="$CXXFLAGS" |
3903 | CFLAGS="$CXXFLAGS" |
3920 | fi |
3904 | fi |
3921 | |
3905 | |
3922 | |
|
|
3923 | cat >>confdefs.h <<\_ACEOF |
|
|
3924 | #define _GNU_SOURCE 1 |
|
|
3925 | _ACEOF |
|
|
3926 | |
|
|
3927 | |
|
|
3928 | case $host in |
3906 | case $host in |
3929 | *-*-solaris* ) |
3907 | *-*-solaris* ) |
3930 | |
3908 | |
3931 | cat >>confdefs.h <<\_ACEOF |
3909 | cat >>confdefs.h <<\_ACEOF |
3932 | #define _XOPEN_SOURCE 500 |
3910 | #define _XOPEN_SOURCE 500 |
3933 | _ACEOF |
3911 | _ACEOF |
3934 | |
3912 | |
3935 | ;; |
3913 | ;; |
3936 | esac |
3914 | esac |
3937 | |
|
|
3938 | |
3915 | |
3939 | { echo "$as_me:$LINENO: checking for setlocale" >&5 |
3916 | { echo "$as_me:$LINENO: checking for setlocale" >&5 |
3940 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } |
3917 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } |
3941 | if test "${ac_cv_func_setlocale+set}" = set; then |
3918 | if test "${ac_cv_func_setlocale+set}" = set; then |
3942 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
4415 | support_iso14755=yes |
4392 | support_iso14755=yes |
4416 | support_styles=yes |
4393 | support_styles=yes |
4417 | support_perl=yes |
4394 | support_perl=yes |
4418 | codesets=all |
4395 | codesets=all |
4419 | |
4396 | |
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 | |
4397 | |
4430 | |
4398 | |
4431 | # Check whether --enable-everything was given. |
4399 | # Check whether --enable-everything was given. |
4432 | if test "${enable_everything+set}" = set; then |
4400 | if test "${enable_everything+set}" = set; then |
4433 | enableval=$enable_everything; |
4401 | enableval=$enable_everything; |
… | |
… | |
4491 | fi |
4459 | fi |
4492 | |
4460 | |
4493 | fi |
4461 | fi |
4494 | |
4462 | |
4495 | |
4463 | |
|
|
4464 | WARNINGS=no |
|
|
4465 | # Check whether --enable-warnings was given. |
|
|
4466 | if test "${enable_warnings+set}" = set; then |
|
|
4467 | enableval=$enable_warnings; if test x$enableval = xyes; then |
|
|
4468 | WARNINGS=yes |
|
|
4469 | fi |
|
|
4470 | fi |
|
|
4471 | |
|
|
4472 | if test x$GXX = xyes; then |
|
|
4473 | if test $WARNINGS = yes; then |
|
|
4474 | save_CXXFLAGS="$CXXFLAGS" |
|
|
4475 | CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-non-virtual-dtor" |
|
|
4476 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4477 | /* confdefs.h. */ |
|
|
4478 | _ACEOF |
|
|
4479 | cat confdefs.h >>conftest.$ac_ext |
|
|
4480 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4481 | /* end confdefs.h. */ |
|
|
4482 | |
|
|
4483 | int |
|
|
4484 | main () |
|
|
4485 | { |
|
|
4486 | |
|
|
4487 | ; |
|
|
4488 | return 0; |
|
|
4489 | } |
|
|
4490 | _ACEOF |
|
|
4491 | rm -f conftest.$ac_objext |
|
|
4492 | if { (ac_try="$ac_compile" |
|
|
4493 | case "(($ac_try" in |
|
|
4494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4495 | *) ac_try_echo=$ac_try;; |
|
|
4496 | esac |
|
|
4497 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4498 | (eval "$ac_compile") 2>conftest.er1 |
|
|
4499 | ac_status=$? |
|
|
4500 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4501 | rm -f conftest.er1 |
|
|
4502 | cat conftest.err >&5 |
|
|
4503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4504 | (exit $ac_status); } && { |
|
|
4505 | test -z "$ac_cxx_werror_flag" || |
|
|
4506 | test ! -s conftest.err |
|
|
4507 | } && test -s conftest.$ac_objext; then |
|
|
4508 | : |
|
|
4509 | else |
|
|
4510 | echo "$as_me: failed program was:" >&5 |
|
|
4511 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4512 | |
|
|
4513 | CXXFLAGS="$save_CXXFLAGS" |
|
|
4514 | fi |
|
|
4515 | |
|
|
4516 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4517 | else |
|
|
4518 | CXXFLAGS="$CXXFLAGS -w" |
|
|
4519 | fi |
|
|
4520 | fi |
|
|
4521 | |
4496 | # Check whether --enable-unicode3 was given. |
4522 | # Check whether --enable-unicode3 was given. |
4497 | if test "${enable_unicode3+set}" = set; then |
4523 | if test "${enable_unicode3+set}" = set; then |
4498 | enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then |
4524 | enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then |
4499 | support_unicode3=$enableval |
4525 | support_unicode3=$enableval |
4500 | fi |
4526 | fi |
… | |
… | |
4581 | support_scroll_xterm=$enableval |
4607 | support_scroll_xterm=$enableval |
4582 | fi |
4608 | fi |
4583 | fi |
4609 | fi |
4584 | |
4610 | |
4585 | |
4611 | |
|
|
4612 | # Check whether --enable-plain-scroll was given. |
|
|
4613 | if test "${enable_plain_scroll+set}" = set; then |
|
|
4614 | enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4615 | support_scroll_plain=$enableval |
|
|
4616 | fi |
|
|
4617 | fi |
|
|
4618 | |
|
|
4619 | |
4586 | # Check whether --enable-perl was given. |
4620 | # Check whether --enable-perl was given. |
4587 | if test "${enable_perl+set}" = set; then |
4621 | if test "${enable_perl+set}" = set; then |
4588 | enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then |
4622 | enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then |
4589 | support_perl=$enableval |
4623 | 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 |
4624 | fi |
4599 | fi |
4625 | fi |
4600 | |
4626 | |
4601 | |
4627 | |
4602 | |
4628 | |
… | |
… | |
4829 | #define RXVT_TERMINFO "$withval" |
4855 | #define RXVT_TERMINFO "$withval" |
4830 | _ACEOF |
4856 | _ACEOF |
4831 | terminfo="$withval" |
4857 | terminfo="$withval" |
4832 | fi |
4858 | fi |
4833 | fi |
4859 | fi |
|
|
4860 | |
|
|
4861 | |
|
|
4862 | |
|
|
4863 | LIBEV_M4_AVOID_LIBRT=1 |
|
|
4864 | |
|
|
4865 | ac_ext=cpp |
|
|
4866 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
4867 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4868 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4869 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
4870 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
4871 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
|
|
4872 | if test -z "$CXXCPP"; then |
|
|
4873 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
|
4874 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4875 | else |
|
|
4876 | # Double quotes because CXXCPP needs to be expanded |
|
|
4877 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
4878 | do |
|
|
4879 | ac_preproc_ok=false |
|
|
4880 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4881 | do |
|
|
4882 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4883 | # with a fresh cross-compiler works. |
|
|
4884 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4885 | # <limits.h> exists even on freestanding compilers. |
|
|
4886 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4887 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4888 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4889 | /* confdefs.h. */ |
|
|
4890 | _ACEOF |
|
|
4891 | cat confdefs.h >>conftest.$ac_ext |
|
|
4892 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4893 | /* end confdefs.h. */ |
|
|
4894 | #ifdef __STDC__ |
|
|
4895 | # include <limits.h> |
|
|
4896 | #else |
|
|
4897 | # include <assert.h> |
|
|
4898 | #endif |
|
|
4899 | Syntax error |
|
|
4900 | _ACEOF |
|
|
4901 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4902 | case "(($ac_try" in |
|
|
4903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4904 | *) ac_try_echo=$ac_try;; |
|
|
4905 | esac |
|
|
4906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4907 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4908 | ac_status=$? |
|
|
4909 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4910 | rm -f conftest.er1 |
|
|
4911 | cat conftest.err >&5 |
|
|
4912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4913 | (exit $ac_status); } >/dev/null && { |
|
|
4914 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4915 | test ! -s conftest.err |
|
|
4916 | }; then |
|
|
4917 | : |
|
|
4918 | else |
|
|
4919 | echo "$as_me: failed program was:" >&5 |
|
|
4920 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4921 | |
|
|
4922 | # Broken: fails on valid input. |
|
|
4923 | continue |
|
|
4924 | fi |
|
|
4925 | |
|
|
4926 | rm -f conftest.err conftest.$ac_ext |
|
|
4927 | |
|
|
4928 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
4929 | # can be detected and how. |
|
|
4930 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4931 | /* confdefs.h. */ |
|
|
4932 | _ACEOF |
|
|
4933 | cat confdefs.h >>conftest.$ac_ext |
|
|
4934 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4935 | /* end confdefs.h. */ |
|
|
4936 | #include <ac_nonexistent.h> |
|
|
4937 | _ACEOF |
|
|
4938 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4939 | case "(($ac_try" in |
|
|
4940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4941 | *) ac_try_echo=$ac_try;; |
|
|
4942 | esac |
|
|
4943 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4944 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4945 | ac_status=$? |
|
|
4946 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4947 | rm -f conftest.er1 |
|
|
4948 | cat conftest.err >&5 |
|
|
4949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4950 | (exit $ac_status); } >/dev/null && { |
|
|
4951 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4952 | test ! -s conftest.err |
|
|
4953 | }; then |
|
|
4954 | # Broken: success on invalid input. |
|
|
4955 | continue |
|
|
4956 | else |
|
|
4957 | echo "$as_me: failed program was:" >&5 |
|
|
4958 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4959 | |
|
|
4960 | # Passes both tests. |
|
|
4961 | ac_preproc_ok=: |
|
|
4962 | break |
|
|
4963 | fi |
|
|
4964 | |
|
|
4965 | rm -f conftest.err conftest.$ac_ext |
|
|
4966 | |
|
|
4967 | done |
|
|
4968 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
4969 | rm -f conftest.err conftest.$ac_ext |
|
|
4970 | if $ac_preproc_ok; then |
|
|
4971 | break |
|
|
4972 | fi |
|
|
4973 | |
|
|
4974 | done |
|
|
4975 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
4976 | |
|
|
4977 | fi |
|
|
4978 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
4979 | else |
|
|
4980 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
4981 | fi |
|
|
4982 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
4983 | echo "${ECHO_T}$CXXCPP" >&6; } |
|
|
4984 | ac_preproc_ok=false |
|
|
4985 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4986 | do |
|
|
4987 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4988 | # with a fresh cross-compiler works. |
|
|
4989 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4990 | # <limits.h> exists even on freestanding compilers. |
|
|
4991 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4992 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4993 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4994 | /* confdefs.h. */ |
|
|
4995 | _ACEOF |
|
|
4996 | cat confdefs.h >>conftest.$ac_ext |
|
|
4997 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4998 | /* end confdefs.h. */ |
|
|
4999 | #ifdef __STDC__ |
|
|
5000 | # include <limits.h> |
|
|
5001 | #else |
|
|
5002 | # include <assert.h> |
|
|
5003 | #endif |
|
|
5004 | Syntax error |
|
|
5005 | _ACEOF |
|
|
5006 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5007 | case "(($ac_try" in |
|
|
5008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5009 | *) ac_try_echo=$ac_try;; |
|
|
5010 | esac |
|
|
5011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5012 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5013 | ac_status=$? |
|
|
5014 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5015 | rm -f conftest.er1 |
|
|
5016 | cat conftest.err >&5 |
|
|
5017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5018 | (exit $ac_status); } >/dev/null && { |
|
|
5019 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5020 | test ! -s conftest.err |
|
|
5021 | }; then |
|
|
5022 | : |
|
|
5023 | else |
|
|
5024 | echo "$as_me: failed program was:" >&5 |
|
|
5025 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5026 | |
|
|
5027 | # Broken: fails on valid input. |
|
|
5028 | continue |
|
|
5029 | fi |
|
|
5030 | |
|
|
5031 | rm -f conftest.err conftest.$ac_ext |
|
|
5032 | |
|
|
5033 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
5034 | # can be detected and how. |
|
|
5035 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5036 | /* confdefs.h. */ |
|
|
5037 | _ACEOF |
|
|
5038 | cat confdefs.h >>conftest.$ac_ext |
|
|
5039 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5040 | /* end confdefs.h. */ |
|
|
5041 | #include <ac_nonexistent.h> |
|
|
5042 | _ACEOF |
|
|
5043 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5044 | case "(($ac_try" in |
|
|
5045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5046 | *) ac_try_echo=$ac_try;; |
|
|
5047 | esac |
|
|
5048 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5049 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5050 | ac_status=$? |
|
|
5051 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5052 | rm -f conftest.er1 |
|
|
5053 | cat conftest.err >&5 |
|
|
5054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5055 | (exit $ac_status); } >/dev/null && { |
|
|
5056 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5057 | test ! -s conftest.err |
|
|
5058 | }; then |
|
|
5059 | # Broken: success on invalid input. |
|
|
5060 | continue |
|
|
5061 | else |
|
|
5062 | echo "$as_me: failed program was:" >&5 |
|
|
5063 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5064 | |
|
|
5065 | # Passes both tests. |
|
|
5066 | ac_preproc_ok=: |
|
|
5067 | break |
|
|
5068 | fi |
|
|
5069 | |
|
|
5070 | rm -f conftest.err conftest.$ac_ext |
|
|
5071 | |
|
|
5072 | done |
|
|
5073 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5074 | rm -f conftest.err conftest.$ac_ext |
|
|
5075 | if $ac_preproc_ok; then |
|
|
5076 | : |
|
|
5077 | else |
|
|
5078 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5079 | See \`config.log' for more details." >&5 |
|
|
5080 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5081 | See \`config.log' for more details." >&2;} |
|
|
5082 | { (exit 1); exit 1; }; } |
|
|
5083 | fi |
|
|
5084 | |
|
|
5085 | ac_ext=cpp |
|
|
5086 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5087 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5088 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5089 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
5090 | |
|
|
5091 | |
|
|
5092 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
5093 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
|
|
5094 | if test "${ac_cv_header_stdc+set}" = set; then |
|
|
5095 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5096 | else |
|
|
5097 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5098 | /* confdefs.h. */ |
|
|
5099 | _ACEOF |
|
|
5100 | cat confdefs.h >>conftest.$ac_ext |
|
|
5101 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5102 | /* end confdefs.h. */ |
|
|
5103 | #include <stdlib.h> |
|
|
5104 | #include <stdarg.h> |
|
|
5105 | #include <string.h> |
|
|
5106 | #include <float.h> |
|
|
5107 | |
|
|
5108 | int |
|
|
5109 | main () |
|
|
5110 | { |
|
|
5111 | |
|
|
5112 | ; |
|
|
5113 | return 0; |
|
|
5114 | } |
|
|
5115 | _ACEOF |
|
|
5116 | rm -f conftest.$ac_objext |
|
|
5117 | if { (ac_try="$ac_compile" |
|
|
5118 | case "(($ac_try" in |
|
|
5119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5120 | *) ac_try_echo=$ac_try;; |
|
|
5121 | esac |
|
|
5122 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5123 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5124 | ac_status=$? |
|
|
5125 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5126 | rm -f conftest.er1 |
|
|
5127 | cat conftest.err >&5 |
|
|
5128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5129 | (exit $ac_status); } && { |
|
|
5130 | test -z "$ac_cxx_werror_flag" || |
|
|
5131 | test ! -s conftest.err |
|
|
5132 | } && test -s conftest.$ac_objext; then |
|
|
5133 | ac_cv_header_stdc=yes |
|
|
5134 | else |
|
|
5135 | echo "$as_me: failed program was:" >&5 |
|
|
5136 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5137 | |
|
|
5138 | ac_cv_header_stdc=no |
|
|
5139 | fi |
|
|
5140 | |
|
|
5141 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5142 | |
|
|
5143 | if test $ac_cv_header_stdc = yes; then |
|
|
5144 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
5145 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5146 | /* confdefs.h. */ |
|
|
5147 | _ACEOF |
|
|
5148 | cat confdefs.h >>conftest.$ac_ext |
|
|
5149 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5150 | /* end confdefs.h. */ |
|
|
5151 | #include <string.h> |
|
|
5152 | |
|
|
5153 | _ACEOF |
|
|
5154 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
5155 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
5156 | : |
|
|
5157 | else |
|
|
5158 | ac_cv_header_stdc=no |
|
|
5159 | fi |
|
|
5160 | rm -f conftest* |
|
|
5161 | |
|
|
5162 | fi |
|
|
5163 | |
|
|
5164 | if test $ac_cv_header_stdc = yes; then |
|
|
5165 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
5166 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5167 | /* confdefs.h. */ |
|
|
5168 | _ACEOF |
|
|
5169 | cat confdefs.h >>conftest.$ac_ext |
|
|
5170 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5171 | /* end confdefs.h. */ |
|
|
5172 | #include <stdlib.h> |
|
|
5173 | |
|
|
5174 | _ACEOF |
|
|
5175 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
5176 | $EGREP "free" >/dev/null 2>&1; then |
|
|
5177 | : |
|
|
5178 | else |
|
|
5179 | ac_cv_header_stdc=no |
|
|
5180 | fi |
|
|
5181 | rm -f conftest* |
|
|
5182 | |
|
|
5183 | fi |
|
|
5184 | |
|
|
5185 | if test $ac_cv_header_stdc = yes; then |
|
|
5186 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
5187 | if test "$cross_compiling" = yes; then |
|
|
5188 | : |
|
|
5189 | else |
|
|
5190 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5191 | /* confdefs.h. */ |
|
|
5192 | _ACEOF |
|
|
5193 | cat confdefs.h >>conftest.$ac_ext |
|
|
5194 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5195 | /* end confdefs.h. */ |
|
|
5196 | #include <ctype.h> |
|
|
5197 | #include <stdlib.h> |
|
|
5198 | #if ((' ' & 0x0FF) == 0x020) |
|
|
5199 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
5200 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
5201 | #else |
|
|
5202 | # define ISLOWER(c) \ |
|
|
5203 | (('a' <= (c) && (c) <= 'i') \ |
|
|
5204 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
5205 | || ('s' <= (c) && (c) <= 'z')) |
|
|
5206 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
5207 | #endif |
|
|
5208 | |
|
|
5209 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
5210 | int |
|
|
5211 | main () |
|
|
5212 | { |
|
|
5213 | int i; |
|
|
5214 | for (i = 0; i < 256; i++) |
|
|
5215 | if (XOR (islower (i), ISLOWER (i)) |
|
|
5216 | || toupper (i) != TOUPPER (i)) |
|
|
5217 | return 2; |
|
|
5218 | return 0; |
|
|
5219 | } |
|
|
5220 | _ACEOF |
|
|
5221 | rm -f conftest$ac_exeext |
|
|
5222 | if { (ac_try="$ac_link" |
|
|
5223 | case "(($ac_try" in |
|
|
5224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5225 | *) ac_try_echo=$ac_try;; |
|
|
5226 | esac |
|
|
5227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5228 | (eval "$ac_link") 2>&5 |
|
|
5229 | ac_status=$? |
|
|
5230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5231 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
5232 | { (case "(($ac_try" in |
|
|
5233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5234 | *) ac_try_echo=$ac_try;; |
|
|
5235 | esac |
|
|
5236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5237 | (eval "$ac_try") 2>&5 |
|
|
5238 | ac_status=$? |
|
|
5239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5240 | (exit $ac_status); }; }; then |
|
|
5241 | : |
|
|
5242 | else |
|
|
5243 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
5244 | echo "$as_me: failed program was:" >&5 |
|
|
5245 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5246 | |
|
|
5247 | ( exit $ac_status ) |
|
|
5248 | ac_cv_header_stdc=no |
|
|
5249 | fi |
|
|
5250 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
5251 | fi |
|
|
5252 | |
|
|
5253 | |
|
|
5254 | fi |
|
|
5255 | fi |
|
|
5256 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
5257 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
|
|
5258 | if test $ac_cv_header_stdc = yes; then |
|
|
5259 | |
|
|
5260 | cat >>confdefs.h <<\_ACEOF |
|
|
5261 | #define STDC_HEADERS 1 |
|
|
5262 | _ACEOF |
|
|
5263 | |
|
|
5264 | fi |
|
|
5265 | |
|
|
5266 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
5267 | |
|
|
5268 | |
|
|
5269 | |
|
|
5270 | |
|
|
5271 | |
|
|
5272 | |
|
|
5273 | |
|
|
5274 | |
|
|
5275 | |
|
|
5276 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
5277 | inttypes.h stdint.h unistd.h |
|
|
5278 | do |
|
|
5279 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
5280 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5281 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5282 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5283 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5284 | else |
|
|
5285 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5286 | /* confdefs.h. */ |
|
|
5287 | _ACEOF |
|
|
5288 | cat confdefs.h >>conftest.$ac_ext |
|
|
5289 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5290 | /* end confdefs.h. */ |
|
|
5291 | $ac_includes_default |
|
|
5292 | |
|
|
5293 | #include <$ac_header> |
|
|
5294 | _ACEOF |
|
|
5295 | rm -f conftest.$ac_objext |
|
|
5296 | if { (ac_try="$ac_compile" |
|
|
5297 | case "(($ac_try" in |
|
|
5298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5299 | *) ac_try_echo=$ac_try;; |
|
|
5300 | esac |
|
|
5301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5302 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5303 | ac_status=$? |
|
|
5304 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5305 | rm -f conftest.er1 |
|
|
5306 | cat conftest.err >&5 |
|
|
5307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5308 | (exit $ac_status); } && { |
|
|
5309 | test -z "$ac_cxx_werror_flag" || |
|
|
5310 | test ! -s conftest.err |
|
|
5311 | } && test -s conftest.$ac_objext; then |
|
|
5312 | eval "$as_ac_Header=yes" |
|
|
5313 | else |
|
|
5314 | echo "$as_me: failed program was:" >&5 |
|
|
5315 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5316 | |
|
|
5317 | eval "$as_ac_Header=no" |
|
|
5318 | fi |
|
|
5319 | |
|
|
5320 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5321 | fi |
|
|
5322 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5323 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5324 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5325 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
5326 | cat >>confdefs.h <<_ACEOF |
|
|
5327 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
5328 | _ACEOF |
|
|
5329 | |
|
|
5330 | fi |
|
|
5331 | |
|
|
5332 | done |
|
|
5333 | |
|
|
5334 | |
|
|
5335 | |
|
|
5336 | |
|
|
5337 | |
|
|
5338 | |
|
|
5339 | |
|
|
5340 | |
|
|
5341 | |
|
|
5342 | for ac_header in sys/inotify.h sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h |
|
|
5343 | do |
|
|
5344 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
5345 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5346 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5347 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5348 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5350 | fi |
|
|
5351 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5352 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5353 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5354 | else |
|
|
5355 | # Is the header compilable? |
|
|
5356 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
5357 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
|
|
5358 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5359 | /* confdefs.h. */ |
|
|
5360 | _ACEOF |
|
|
5361 | cat confdefs.h >>conftest.$ac_ext |
|
|
5362 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5363 | /* end confdefs.h. */ |
|
|
5364 | $ac_includes_default |
|
|
5365 | #include <$ac_header> |
|
|
5366 | _ACEOF |
|
|
5367 | rm -f conftest.$ac_objext |
|
|
5368 | if { (ac_try="$ac_compile" |
|
|
5369 | case "(($ac_try" in |
|
|
5370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5371 | *) ac_try_echo=$ac_try;; |
|
|
5372 | esac |
|
|
5373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5374 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5375 | ac_status=$? |
|
|
5376 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5377 | rm -f conftest.er1 |
|
|
5378 | cat conftest.err >&5 |
|
|
5379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5380 | (exit $ac_status); } && { |
|
|
5381 | test -z "$ac_cxx_werror_flag" || |
|
|
5382 | test ! -s conftest.err |
|
|
5383 | } && test -s conftest.$ac_objext; then |
|
|
5384 | ac_header_compiler=yes |
|
|
5385 | else |
|
|
5386 | echo "$as_me: failed program was:" >&5 |
|
|
5387 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5388 | |
|
|
5389 | ac_header_compiler=no |
|
|
5390 | fi |
|
|
5391 | |
|
|
5392 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5393 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
5394 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
|
|
5395 | |
|
|
5396 | # Is the header present? |
|
|
5397 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
5398 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
|
|
5399 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5400 | /* confdefs.h. */ |
|
|
5401 | _ACEOF |
|
|
5402 | cat confdefs.h >>conftest.$ac_ext |
|
|
5403 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5404 | /* end confdefs.h. */ |
|
|
5405 | #include <$ac_header> |
|
|
5406 | _ACEOF |
|
|
5407 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5408 | case "(($ac_try" in |
|
|
5409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5410 | *) ac_try_echo=$ac_try;; |
|
|
5411 | esac |
|
|
5412 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5413 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5414 | ac_status=$? |
|
|
5415 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5416 | rm -f conftest.er1 |
|
|
5417 | cat conftest.err >&5 |
|
|
5418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5419 | (exit $ac_status); } >/dev/null && { |
|
|
5420 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5421 | test ! -s conftest.err |
|
|
5422 | }; then |
|
|
5423 | ac_header_preproc=yes |
|
|
5424 | else |
|
|
5425 | echo "$as_me: failed program was:" >&5 |
|
|
5426 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5427 | |
|
|
5428 | ac_header_preproc=no |
|
|
5429 | fi |
|
|
5430 | |
|
|
5431 | rm -f conftest.err conftest.$ac_ext |
|
|
5432 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
5433 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
|
|
5434 | |
|
|
5435 | # So? What about this header? |
|
|
5436 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
5437 | yes:no: ) |
|
|
5438 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
5439 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
5440 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
5441 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
5442 | ac_header_preproc=yes |
|
|
5443 | ;; |
|
|
5444 | no:yes:* ) |
|
|
5445 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
5446 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
5447 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
5448 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
5449 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
5450 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
5451 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
5452 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
5453 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
5454 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
5455 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
5456 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
5457 | |
|
|
5458 | ;; |
|
|
5459 | esac |
|
|
5460 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5461 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5462 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5464 | else |
|
|
5465 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
5466 | fi |
|
|
5467 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5468 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5469 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5470 | |
|
|
5471 | fi |
|
|
5472 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
5473 | cat >>confdefs.h <<_ACEOF |
|
|
5474 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
5475 | _ACEOF |
|
|
5476 | |
|
|
5477 | fi |
|
|
5478 | |
|
|
5479 | done |
|
|
5480 | |
|
|
5481 | |
|
|
5482 | |
|
|
5483 | |
|
|
5484 | |
|
|
5485 | |
|
|
5486 | |
|
|
5487 | |
|
|
5488 | for ac_func in inotify_init epoll_ctl kqueue port_create poll select |
|
|
5489 | do |
|
|
5490 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
5491 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
5492 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
5493 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5495 | else |
|
|
5496 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5497 | /* confdefs.h. */ |
|
|
5498 | _ACEOF |
|
|
5499 | cat confdefs.h >>conftest.$ac_ext |
|
|
5500 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5501 | /* end confdefs.h. */ |
|
|
5502 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
5503 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5504 | #define $ac_func innocuous_$ac_func |
|
|
5505 | |
|
|
5506 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5507 | which can conflict with char $ac_func (); below. |
|
|
5508 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5509 | <limits.h> exists even on freestanding compilers. */ |
|
|
5510 | |
|
|
5511 | #ifdef __STDC__ |
|
|
5512 | # include <limits.h> |
|
|
5513 | #else |
|
|
5514 | # include <assert.h> |
|
|
5515 | #endif |
|
|
5516 | |
|
|
5517 | #undef $ac_func |
|
|
5518 | |
|
|
5519 | /* Override any GCC internal prototype to avoid an error. |
|
|
5520 | Use char because int might match the return type of a GCC |
|
|
5521 | builtin and then its argument prototype would still apply. */ |
|
|
5522 | #ifdef __cplusplus |
|
|
5523 | extern "C" |
|
|
5524 | #endif |
|
|
5525 | char $ac_func (); |
|
|
5526 | /* The GNU C library defines this for functions which it implements |
|
|
5527 | to always fail with ENOSYS. Some functions are actually named |
|
|
5528 | something starting with __ and the normal name is an alias. */ |
|
|
5529 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
5530 | choke me |
|
|
5531 | #endif |
|
|
5532 | |
|
|
5533 | int |
|
|
5534 | main () |
|
|
5535 | { |
|
|
5536 | return $ac_func (); |
|
|
5537 | ; |
|
|
5538 | return 0; |
|
|
5539 | } |
|
|
5540 | _ACEOF |
|
|
5541 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5542 | if { (ac_try="$ac_link" |
|
|
5543 | case "(($ac_try" in |
|
|
5544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5545 | *) ac_try_echo=$ac_try;; |
|
|
5546 | esac |
|
|
5547 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5548 | (eval "$ac_link") 2>conftest.er1 |
|
|
5549 | ac_status=$? |
|
|
5550 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5551 | rm -f conftest.er1 |
|
|
5552 | cat conftest.err >&5 |
|
|
5553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5554 | (exit $ac_status); } && { |
|
|
5555 | test -z "$ac_cxx_werror_flag" || |
|
|
5556 | test ! -s conftest.err |
|
|
5557 | } && test -s conftest$ac_exeext && |
|
|
5558 | $as_test_x conftest$ac_exeext; then |
|
|
5559 | eval "$as_ac_var=yes" |
|
|
5560 | else |
|
|
5561 | echo "$as_me: failed program was:" >&5 |
|
|
5562 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5563 | |
|
|
5564 | eval "$as_ac_var=no" |
|
|
5565 | fi |
|
|
5566 | |
|
|
5567 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5568 | conftest$ac_exeext conftest.$ac_ext |
|
|
5569 | fi |
|
|
5570 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
5571 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5572 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5573 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
5574 | cat >>confdefs.h <<_ACEOF |
|
|
5575 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
5576 | _ACEOF |
|
|
5577 | |
|
|
5578 | fi |
|
|
5579 | done |
|
|
5580 | |
|
|
5581 | |
|
|
5582 | { echo "$as_me:$LINENO: checking for clock_gettime" >&5 |
|
|
5583 | echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6; } |
|
|
5584 | if test "${ac_cv_func_clock_gettime+set}" = set; then |
|
|
5585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5586 | else |
|
|
5587 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5588 | /* confdefs.h. */ |
|
|
5589 | _ACEOF |
|
|
5590 | cat confdefs.h >>conftest.$ac_ext |
|
|
5591 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5592 | /* end confdefs.h. */ |
|
|
5593 | /* Define clock_gettime to an innocuous variant, in case <limits.h> declares clock_gettime. |
|
|
5594 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5595 | #define clock_gettime innocuous_clock_gettime |
|
|
5596 | |
|
|
5597 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5598 | which can conflict with char clock_gettime (); below. |
|
|
5599 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5600 | <limits.h> exists even on freestanding compilers. */ |
|
|
5601 | |
|
|
5602 | #ifdef __STDC__ |
|
|
5603 | # include <limits.h> |
|
|
5604 | #else |
|
|
5605 | # include <assert.h> |
|
|
5606 | #endif |
|
|
5607 | |
|
|
5608 | #undef clock_gettime |
|
|
5609 | |
|
|
5610 | /* Override any GCC internal prototype to avoid an error. |
|
|
5611 | Use char because int might match the return type of a GCC |
|
|
5612 | builtin and then its argument prototype would still apply. */ |
|
|
5613 | #ifdef __cplusplus |
|
|
5614 | extern "C" |
|
|
5615 | #endif |
|
|
5616 | char clock_gettime (); |
|
|
5617 | /* The GNU C library defines this for functions which it implements |
|
|
5618 | to always fail with ENOSYS. Some functions are actually named |
|
|
5619 | something starting with __ and the normal name is an alias. */ |
|
|
5620 | #if defined __stub_clock_gettime || defined __stub___clock_gettime |
|
|
5621 | choke me |
|
|
5622 | #endif |
|
|
5623 | |
|
|
5624 | int |
|
|
5625 | main () |
|
|
5626 | { |
|
|
5627 | return clock_gettime (); |
|
|
5628 | ; |
|
|
5629 | return 0; |
|
|
5630 | } |
|
|
5631 | _ACEOF |
|
|
5632 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5633 | if { (ac_try="$ac_link" |
|
|
5634 | case "(($ac_try" in |
|
|
5635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5636 | *) ac_try_echo=$ac_try;; |
|
|
5637 | esac |
|
|
5638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5639 | (eval "$ac_link") 2>conftest.er1 |
|
|
5640 | ac_status=$? |
|
|
5641 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5642 | rm -f conftest.er1 |
|
|
5643 | cat conftest.err >&5 |
|
|
5644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5645 | (exit $ac_status); } && { |
|
|
5646 | test -z "$ac_cxx_werror_flag" || |
|
|
5647 | test ! -s conftest.err |
|
|
5648 | } && test -s conftest$ac_exeext && |
|
|
5649 | $as_test_x conftest$ac_exeext; then |
|
|
5650 | ac_cv_func_clock_gettime=yes |
|
|
5651 | else |
|
|
5652 | echo "$as_me: failed program was:" >&5 |
|
|
5653 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5654 | |
|
|
5655 | ac_cv_func_clock_gettime=no |
|
|
5656 | fi |
|
|
5657 | |
|
|
5658 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5659 | conftest$ac_exeext conftest.$ac_ext |
|
|
5660 | fi |
|
|
5661 | { echo "$as_me:$LINENO: result: $ac_cv_func_clock_gettime" >&5 |
|
|
5662 | echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; } |
|
|
5663 | if test $ac_cv_func_clock_gettime = yes; then |
|
|
5664 | : |
|
|
5665 | else |
|
|
5666 | |
|
|
5667 | if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
|
|
5668 | |
|
|
5669 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
|
|
5670 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } |
|
|
5671 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
|
|
5672 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5673 | else |
|
|
5674 | ac_check_lib_save_LIBS=$LIBS |
|
|
5675 | LIBS="-lrt $LIBS" |
|
|
5676 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5677 | /* confdefs.h. */ |
|
|
5678 | _ACEOF |
|
|
5679 | cat confdefs.h >>conftest.$ac_ext |
|
|
5680 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5681 | /* end confdefs.h. */ |
|
|
5682 | |
|
|
5683 | /* Override any GCC internal prototype to avoid an error. |
|
|
5684 | Use char because int might match the return type of a GCC |
|
|
5685 | builtin and then its argument prototype would still apply. */ |
|
|
5686 | #ifdef __cplusplus |
|
|
5687 | extern "C" |
|
|
5688 | #endif |
|
|
5689 | char clock_gettime (); |
|
|
5690 | int |
|
|
5691 | main () |
|
|
5692 | { |
|
|
5693 | return clock_gettime (); |
|
|
5694 | ; |
|
|
5695 | return 0; |
|
|
5696 | } |
|
|
5697 | _ACEOF |
|
|
5698 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5699 | if { (ac_try="$ac_link" |
|
|
5700 | case "(($ac_try" in |
|
|
5701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5702 | *) ac_try_echo=$ac_try;; |
|
|
5703 | esac |
|
|
5704 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5705 | (eval "$ac_link") 2>conftest.er1 |
|
|
5706 | ac_status=$? |
|
|
5707 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5708 | rm -f conftest.er1 |
|
|
5709 | cat conftest.err >&5 |
|
|
5710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5711 | (exit $ac_status); } && { |
|
|
5712 | test -z "$ac_cxx_werror_flag" || |
|
|
5713 | test ! -s conftest.err |
|
|
5714 | } && test -s conftest$ac_exeext && |
|
|
5715 | $as_test_x conftest$ac_exeext; then |
|
|
5716 | ac_cv_lib_rt_clock_gettime=yes |
|
|
5717 | else |
|
|
5718 | echo "$as_me: failed program was:" >&5 |
|
|
5719 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5720 | |
|
|
5721 | ac_cv_lib_rt_clock_gettime=no |
|
|
5722 | fi |
|
|
5723 | |
|
|
5724 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5725 | conftest$ac_exeext conftest.$ac_ext |
|
|
5726 | LIBS=$ac_check_lib_save_LIBS |
|
|
5727 | fi |
|
|
5728 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
|
|
5729 | echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; } |
|
|
5730 | if test $ac_cv_lib_rt_clock_gettime = yes; then |
|
|
5731 | cat >>confdefs.h <<_ACEOF |
|
|
5732 | #define HAVE_LIBRT 1 |
|
|
5733 | _ACEOF |
|
|
5734 | |
|
|
5735 | LIBS="-lrt $LIBS" |
|
|
5736 | |
|
|
5737 | fi |
|
|
5738 | |
|
|
5739 | unset ac_cv_func_clock_gettime |
|
|
5740 | |
|
|
5741 | for ac_func in clock_gettime |
|
|
5742 | do |
|
|
5743 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
5744 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
5745 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
5746 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5748 | else |
|
|
5749 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5750 | /* confdefs.h. */ |
|
|
5751 | _ACEOF |
|
|
5752 | cat confdefs.h >>conftest.$ac_ext |
|
|
5753 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5754 | /* end confdefs.h. */ |
|
|
5755 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
5756 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5757 | #define $ac_func innocuous_$ac_func |
|
|
5758 | |
|
|
5759 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5760 | which can conflict with char $ac_func (); below. |
|
|
5761 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5762 | <limits.h> exists even on freestanding compilers. */ |
|
|
5763 | |
|
|
5764 | #ifdef __STDC__ |
|
|
5765 | # include <limits.h> |
|
|
5766 | #else |
|
|
5767 | # include <assert.h> |
|
|
5768 | #endif |
|
|
5769 | |
|
|
5770 | #undef $ac_func |
|
|
5771 | |
|
|
5772 | /* Override any GCC internal prototype to avoid an error. |
|
|
5773 | Use char because int might match the return type of a GCC |
|
|
5774 | builtin and then its argument prototype would still apply. */ |
|
|
5775 | #ifdef __cplusplus |
|
|
5776 | extern "C" |
|
|
5777 | #endif |
|
|
5778 | char $ac_func (); |
|
|
5779 | /* The GNU C library defines this for functions which it implements |
|
|
5780 | to always fail with ENOSYS. Some functions are actually named |
|
|
5781 | something starting with __ and the normal name is an alias. */ |
|
|
5782 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
5783 | choke me |
|
|
5784 | #endif |
|
|
5785 | |
|
|
5786 | int |
|
|
5787 | main () |
|
|
5788 | { |
|
|
5789 | return $ac_func (); |
|
|
5790 | ; |
|
|
5791 | return 0; |
|
|
5792 | } |
|
|
5793 | _ACEOF |
|
|
5794 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5795 | if { (ac_try="$ac_link" |
|
|
5796 | case "(($ac_try" in |
|
|
5797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5798 | *) ac_try_echo=$ac_try;; |
|
|
5799 | esac |
|
|
5800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5801 | (eval "$ac_link") 2>conftest.er1 |
|
|
5802 | ac_status=$? |
|
|
5803 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5804 | rm -f conftest.er1 |
|
|
5805 | cat conftest.err >&5 |
|
|
5806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5807 | (exit $ac_status); } && { |
|
|
5808 | test -z "$ac_cxx_werror_flag" || |
|
|
5809 | test ! -s conftest.err |
|
|
5810 | } && test -s conftest$ac_exeext && |
|
|
5811 | $as_test_x conftest$ac_exeext; then |
|
|
5812 | eval "$as_ac_var=yes" |
|
|
5813 | else |
|
|
5814 | echo "$as_me: failed program was:" >&5 |
|
|
5815 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5816 | |
|
|
5817 | eval "$as_ac_var=no" |
|
|
5818 | fi |
|
|
5819 | |
|
|
5820 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5821 | conftest$ac_exeext conftest.$ac_ext |
|
|
5822 | fi |
|
|
5823 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
5824 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5825 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5826 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
5827 | cat >>confdefs.h <<_ACEOF |
|
|
5828 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
5829 | _ACEOF |
|
|
5830 | |
|
|
5831 | fi |
|
|
5832 | done |
|
|
5833 | |
|
|
5834 | fi |
|
|
5835 | |
|
|
5836 | fi |
|
|
5837 | |
|
|
5838 | |
|
|
5839 | { echo "$as_me:$LINENO: checking for nanosleep" >&5 |
|
|
5840 | echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; } |
|
|
5841 | if test "${ac_cv_func_nanosleep+set}" = set; then |
|
|
5842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5843 | else |
|
|
5844 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5845 | /* confdefs.h. */ |
|
|
5846 | _ACEOF |
|
|
5847 | cat confdefs.h >>conftest.$ac_ext |
|
|
5848 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5849 | /* end confdefs.h. */ |
|
|
5850 | /* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep. |
|
|
5851 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5852 | #define nanosleep innocuous_nanosleep |
|
|
5853 | |
|
|
5854 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5855 | which can conflict with char nanosleep (); below. |
|
|
5856 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5857 | <limits.h> exists even on freestanding compilers. */ |
|
|
5858 | |
|
|
5859 | #ifdef __STDC__ |
|
|
5860 | # include <limits.h> |
|
|
5861 | #else |
|
|
5862 | # include <assert.h> |
|
|
5863 | #endif |
|
|
5864 | |
|
|
5865 | #undef nanosleep |
|
|
5866 | |
|
|
5867 | /* Override any GCC internal prototype to avoid an error. |
|
|
5868 | Use char because int might match the return type of a GCC |
|
|
5869 | builtin and then its argument prototype would still apply. */ |
|
|
5870 | #ifdef __cplusplus |
|
|
5871 | extern "C" |
|
|
5872 | #endif |
|
|
5873 | char nanosleep (); |
|
|
5874 | /* The GNU C library defines this for functions which it implements |
|
|
5875 | to always fail with ENOSYS. Some functions are actually named |
|
|
5876 | something starting with __ and the normal name is an alias. */ |
|
|
5877 | #if defined __stub_nanosleep || defined __stub___nanosleep |
|
|
5878 | choke me |
|
|
5879 | #endif |
|
|
5880 | |
|
|
5881 | int |
|
|
5882 | main () |
|
|
5883 | { |
|
|
5884 | return nanosleep (); |
|
|
5885 | ; |
|
|
5886 | return 0; |
|
|
5887 | } |
|
|
5888 | _ACEOF |
|
|
5889 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5890 | if { (ac_try="$ac_link" |
|
|
5891 | case "(($ac_try" in |
|
|
5892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5893 | *) ac_try_echo=$ac_try;; |
|
|
5894 | esac |
|
|
5895 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5896 | (eval "$ac_link") 2>conftest.er1 |
|
|
5897 | ac_status=$? |
|
|
5898 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5899 | rm -f conftest.er1 |
|
|
5900 | cat conftest.err >&5 |
|
|
5901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5902 | (exit $ac_status); } && { |
|
|
5903 | test -z "$ac_cxx_werror_flag" || |
|
|
5904 | test ! -s conftest.err |
|
|
5905 | } && test -s conftest$ac_exeext && |
|
|
5906 | $as_test_x conftest$ac_exeext; then |
|
|
5907 | ac_cv_func_nanosleep=yes |
|
|
5908 | else |
|
|
5909 | echo "$as_me: failed program was:" >&5 |
|
|
5910 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5911 | |
|
|
5912 | ac_cv_func_nanosleep=no |
|
|
5913 | fi |
|
|
5914 | |
|
|
5915 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5916 | conftest$ac_exeext conftest.$ac_ext |
|
|
5917 | fi |
|
|
5918 | { echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5 |
|
|
5919 | echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; } |
|
|
5920 | if test $ac_cv_func_nanosleep = yes; then |
|
|
5921 | : |
|
|
5922 | else |
|
|
5923 | |
|
|
5924 | if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
|
|
5925 | |
|
|
5926 | { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5 |
|
|
5927 | echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; } |
|
|
5928 | if test "${ac_cv_lib_rt_nanosleep+set}" = set; then |
|
|
5929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5930 | else |
|
|
5931 | ac_check_lib_save_LIBS=$LIBS |
|
|
5932 | LIBS="-lrt $LIBS" |
|
|
5933 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5934 | /* confdefs.h. */ |
|
|
5935 | _ACEOF |
|
|
5936 | cat confdefs.h >>conftest.$ac_ext |
|
|
5937 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5938 | /* end confdefs.h. */ |
|
|
5939 | |
|
|
5940 | /* Override any GCC internal prototype to avoid an error. |
|
|
5941 | Use char because int might match the return type of a GCC |
|
|
5942 | builtin and then its argument prototype would still apply. */ |
|
|
5943 | #ifdef __cplusplus |
|
|
5944 | extern "C" |
|
|
5945 | #endif |
|
|
5946 | char nanosleep (); |
|
|
5947 | int |
|
|
5948 | main () |
|
|
5949 | { |
|
|
5950 | return nanosleep (); |
|
|
5951 | ; |
|
|
5952 | return 0; |
|
|
5953 | } |
|
|
5954 | _ACEOF |
|
|
5955 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5956 | if { (ac_try="$ac_link" |
|
|
5957 | case "(($ac_try" in |
|
|
5958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5959 | *) ac_try_echo=$ac_try;; |
|
|
5960 | esac |
|
|
5961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5962 | (eval "$ac_link") 2>conftest.er1 |
|
|
5963 | ac_status=$? |
|
|
5964 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5965 | rm -f conftest.er1 |
|
|
5966 | cat conftest.err >&5 |
|
|
5967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5968 | (exit $ac_status); } && { |
|
|
5969 | test -z "$ac_cxx_werror_flag" || |
|
|
5970 | test ! -s conftest.err |
|
|
5971 | } && test -s conftest$ac_exeext && |
|
|
5972 | $as_test_x conftest$ac_exeext; then |
|
|
5973 | ac_cv_lib_rt_nanosleep=yes |
|
|
5974 | else |
|
|
5975 | echo "$as_me: failed program was:" >&5 |
|
|
5976 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5977 | |
|
|
5978 | ac_cv_lib_rt_nanosleep=no |
|
|
5979 | fi |
|
|
5980 | |
|
|
5981 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5982 | conftest$ac_exeext conftest.$ac_ext |
|
|
5983 | LIBS=$ac_check_lib_save_LIBS |
|
|
5984 | fi |
|
|
5985 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5 |
|
|
5986 | echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; } |
|
|
5987 | if test $ac_cv_lib_rt_nanosleep = yes; then |
|
|
5988 | cat >>confdefs.h <<_ACEOF |
|
|
5989 | #define HAVE_LIBRT 1 |
|
|
5990 | _ACEOF |
|
|
5991 | |
|
|
5992 | LIBS="-lrt $LIBS" |
|
|
5993 | |
|
|
5994 | fi |
|
|
5995 | |
|
|
5996 | unset ac_cv_func_nanosleep |
|
|
5997 | |
|
|
5998 | for ac_func in nanosleep |
|
|
5999 | do |
|
|
6000 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
6001 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
6002 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
6003 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
6004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6005 | else |
|
|
6006 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6007 | /* confdefs.h. */ |
|
|
6008 | _ACEOF |
|
|
6009 | cat confdefs.h >>conftest.$ac_ext |
|
|
6010 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6011 | /* end confdefs.h. */ |
|
|
6012 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
6013 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
6014 | #define $ac_func innocuous_$ac_func |
|
|
6015 | |
|
|
6016 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
6017 | which can conflict with char $ac_func (); below. |
|
|
6018 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
6019 | <limits.h> exists even on freestanding compilers. */ |
|
|
6020 | |
|
|
6021 | #ifdef __STDC__ |
|
|
6022 | # include <limits.h> |
|
|
6023 | #else |
|
|
6024 | # include <assert.h> |
|
|
6025 | #endif |
|
|
6026 | |
|
|
6027 | #undef $ac_func |
|
|
6028 | |
|
|
6029 | /* Override any GCC internal prototype to avoid an error. |
|
|
6030 | Use char because int might match the return type of a GCC |
|
|
6031 | builtin and then its argument prototype would still apply. */ |
|
|
6032 | #ifdef __cplusplus |
|
|
6033 | extern "C" |
|
|
6034 | #endif |
|
|
6035 | char $ac_func (); |
|
|
6036 | /* The GNU C library defines this for functions which it implements |
|
|
6037 | to always fail with ENOSYS. Some functions are actually named |
|
|
6038 | something starting with __ and the normal name is an alias. */ |
|
|
6039 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
6040 | choke me |
|
|
6041 | #endif |
|
|
6042 | |
|
|
6043 | int |
|
|
6044 | main () |
|
|
6045 | { |
|
|
6046 | return $ac_func (); |
|
|
6047 | ; |
|
|
6048 | return 0; |
|
|
6049 | } |
|
|
6050 | _ACEOF |
|
|
6051 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6052 | if { (ac_try="$ac_link" |
|
|
6053 | case "(($ac_try" in |
|
|
6054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6055 | *) ac_try_echo=$ac_try;; |
|
|
6056 | esac |
|
|
6057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6058 | (eval "$ac_link") 2>conftest.er1 |
|
|
6059 | ac_status=$? |
|
|
6060 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6061 | rm -f conftest.er1 |
|
|
6062 | cat conftest.err >&5 |
|
|
6063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6064 | (exit $ac_status); } && { |
|
|
6065 | test -z "$ac_cxx_werror_flag" || |
|
|
6066 | test ! -s conftest.err |
|
|
6067 | } && test -s conftest$ac_exeext && |
|
|
6068 | $as_test_x conftest$ac_exeext; then |
|
|
6069 | eval "$as_ac_var=yes" |
|
|
6070 | else |
|
|
6071 | echo "$as_me: failed program was:" >&5 |
|
|
6072 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6073 | |
|
|
6074 | eval "$as_ac_var=no" |
|
|
6075 | fi |
|
|
6076 | |
|
|
6077 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6078 | conftest$ac_exeext conftest.$ac_ext |
|
|
6079 | fi |
|
|
6080 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
6081 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
6082 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
6083 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
6084 | cat >>confdefs.h <<_ACEOF |
|
|
6085 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
6086 | _ACEOF |
|
|
6087 | |
|
|
6088 | fi |
|
|
6089 | done |
|
|
6090 | |
|
|
6091 | fi |
|
|
6092 | |
|
|
6093 | fi |
|
|
6094 | |
|
|
6095 | |
|
|
6096 | |
|
|
6097 | { echo "$as_me:$LINENO: checking for ceil in -lm" >&5 |
|
|
6098 | echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; } |
|
|
6099 | if test "${ac_cv_lib_m_ceil+set}" = set; then |
|
|
6100 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6101 | else |
|
|
6102 | ac_check_lib_save_LIBS=$LIBS |
|
|
6103 | LIBS="-lm $LIBS" |
|
|
6104 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6105 | /* confdefs.h. */ |
|
|
6106 | _ACEOF |
|
|
6107 | cat confdefs.h >>conftest.$ac_ext |
|
|
6108 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6109 | /* end confdefs.h. */ |
|
|
6110 | |
|
|
6111 | /* Override any GCC internal prototype to avoid an error. |
|
|
6112 | Use char because int might match the return type of a GCC |
|
|
6113 | builtin and then its argument prototype would still apply. */ |
|
|
6114 | #ifdef __cplusplus |
|
|
6115 | extern "C" |
|
|
6116 | #endif |
|
|
6117 | char ceil (); |
|
|
6118 | int |
|
|
6119 | main () |
|
|
6120 | { |
|
|
6121 | return ceil (); |
|
|
6122 | ; |
|
|
6123 | return 0; |
|
|
6124 | } |
|
|
6125 | _ACEOF |
|
|
6126 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6127 | if { (ac_try="$ac_link" |
|
|
6128 | case "(($ac_try" in |
|
|
6129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6130 | *) ac_try_echo=$ac_try;; |
|
|
6131 | esac |
|
|
6132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6133 | (eval "$ac_link") 2>conftest.er1 |
|
|
6134 | ac_status=$? |
|
|
6135 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6136 | rm -f conftest.er1 |
|
|
6137 | cat conftest.err >&5 |
|
|
6138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6139 | (exit $ac_status); } && { |
|
|
6140 | test -z "$ac_cxx_werror_flag" || |
|
|
6141 | test ! -s conftest.err |
|
|
6142 | } && test -s conftest$ac_exeext && |
|
|
6143 | $as_test_x conftest$ac_exeext; then |
|
|
6144 | ac_cv_lib_m_ceil=yes |
|
|
6145 | else |
|
|
6146 | echo "$as_me: failed program was:" >&5 |
|
|
6147 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6148 | |
|
|
6149 | ac_cv_lib_m_ceil=no |
|
|
6150 | fi |
|
|
6151 | |
|
|
6152 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6153 | conftest$ac_exeext conftest.$ac_ext |
|
|
6154 | LIBS=$ac_check_lib_save_LIBS |
|
|
6155 | fi |
|
|
6156 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5 |
|
|
6157 | echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6; } |
|
|
6158 | if test $ac_cv_lib_m_ceil = yes; then |
|
|
6159 | cat >>confdefs.h <<_ACEOF |
|
|
6160 | #define HAVE_LIBM 1 |
|
|
6161 | _ACEOF |
|
|
6162 | |
|
|
6163 | LIBS="-lm $LIBS" |
|
|
6164 | |
|
|
6165 | fi |
|
|
6166 | |
|
|
6167 | |
|
|
6168 | |
|
|
6169 | |
4834 | |
6170 | |
4835 | |
6171 | |
4836 | |
6172 | |
4837 | # Extract the first word of "tic", so it can be a program name with args. |
6173 | # Extract the first word of "tic", so it can be a program name with args. |
4838 | set dummy tic; ac_word=$2 |
6174 | set dummy tic; ac_word=$2 |
… | |
… | |
4859 | fi |
6195 | fi |
4860 | done |
6196 | done |
4861 | done |
6197 | done |
4862 | IFS=$as_save_IFS |
6198 | IFS=$as_save_IFS |
4863 | |
6199 | |
|
|
6200 | test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":" |
4864 | ;; |
6201 | ;; |
4865 | esac |
6202 | esac |
4866 | fi |
6203 | fi |
4867 | TIC=$ac_cv_path_TIC |
6204 | TIC=$ac_cv_path_TIC |
4868 | if test -n "$TIC"; then |
6205 | if test -n "$TIC"; then |
… | |
… | |
4871 | else |
6208 | else |
4872 | { echo "$as_me:$LINENO: result: no" >&5 |
6209 | { echo "$as_me:$LINENO: result: no" >&5 |
4873 | echo "${ECHO_T}no" >&6; } |
6210 | echo "${ECHO_T}no" >&6; } |
4874 | fi |
6211 | fi |
4875 | |
6212 | |
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 | |
6213 | |
5106 | |
6214 | |
5107 | { echo "$as_me:$LINENO: checking for X" >&5 |
6215 | { echo "$as_me:$LINENO: checking for X" >&5 |
5108 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
6216 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
5109 | |
6217 | |
… | |
… | |
6495 | echo "${ECHO_T}no" >&6; } |
7603 | echo "${ECHO_T}no" >&6; } |
6496 | fi |
7604 | fi |
6497 | fi |
7605 | fi |
6498 | fi |
7606 | fi |
6499 | |
7607 | |
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 | |
|
|
6811 | |
|
|
6812 | |
|
|
6813 | |
|
|
6814 | |
|
|
6815 | |
|
|
6816 | |
|
|
6817 | |
|
|
6818 | |
|
|
6819 | |
|
|
6820 | |
7608 | |
6821 | |
7609 | |
6822 | |
7610 | |
6823 | |
7611 | |
6824 | |
7612 | |
6825 | |
7613 | |
6826 | |
7614 | |
6827 | for ac_header in \ |
7615 | for ac_header in \ |
6828 | assert.h \ |
|
|
6829 | fcntl.h \ |
|
|
6830 | stdarg.h \ |
|
|
6831 | stdlib.h \ |
|
|
6832 | string.h \ |
|
|
6833 | termios.h \ |
|
|
6834 | unistd.h \ |
|
|
6835 | sys/byteorder.h \ |
7616 | sys/byteorder.h \ |
6836 | sys/ioctl.h \ |
7617 | sys/ioctl.h \ |
6837 | sys/select.h \ |
|
|
6838 | sys/sockio.h \ |
7618 | sys/sockio.h \ |
6839 | sys/strredir.h \ |
7619 | sys/strredir.h \ |
6840 | sys/time.h \ |
|
|
6841 | stdint.h \ |
7620 | stdint.h \ |
6842 | wchar.h \ |
7621 | wchar.h \ |
6843 | cwchar \ |
7622 | cwchar \ |
6844 | clocale \ |
|
|
6845 | |
7623 | |
6846 | do |
7624 | do |
6847 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7625 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6848 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7626 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
6849 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7627 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
… | |
… | |
6980 | fi |
7758 | fi |
6981 | |
7759 | |
6982 | done |
7760 | done |
6983 | |
7761 | |
6984 | |
7762 | |
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 |
|
|
7048 | 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 |
|
|
7050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7051 | else |
|
|
7052 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7053 | /* confdefs.h. */ |
|
|
7054 | _ACEOF |
|
|
7055 | cat confdefs.h >>conftest.$ac_ext |
|
|
7056 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7057 | /* end confdefs.h. */ |
|
|
7058 | #include <stdio.h> |
|
|
7059 | #include <sys/ioctl.h> |
|
|
7060 | #ifdef HAVE_TERMIOS_H |
|
|
7061 | #include <termios.h> |
|
|
7062 | #endif |
|
|
7063 | int |
|
|
7064 | main () |
|
|
7065 | { |
|
|
7066 | int a = ECHO; |
|
|
7067 | ; |
|
|
7068 | return 0; |
|
|
7069 | } |
|
|
7070 | _ACEOF |
|
|
7071 | rm -f conftest.$ac_objext |
|
|
7072 | if { (ac_try="$ac_compile" |
|
|
7073 | case "(($ac_try" in |
|
|
7074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7075 | *) ac_try_echo=$ac_try;; |
|
|
7076 | esac |
|
|
7077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7078 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7079 | ac_status=$? |
|
|
7080 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7081 | rm -f conftest.er1 |
|
|
7082 | cat conftest.err >&5 |
|
|
7083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7084 | (exit $ac_status); } && { |
|
|
7085 | test -z "$ac_cxx_werror_flag" || |
|
|
7086 | test ! -s conftest.err |
|
|
7087 | } && test -s conftest.$ac_objext; then |
|
|
7088 | rxvt_cv_header_sysioctl=yes |
|
|
7089 | else |
|
|
7090 | echo "$as_me: failed program was:" >&5 |
|
|
7091 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7092 | |
|
|
7093 | rxvt_cv_header_sysioctl=no |
|
|
7094 | fi |
|
|
7095 | |
|
|
7096 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7097 | fi |
|
|
7098 | { echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5 |
|
|
7099 | echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6; } |
|
|
7100 | |
|
|
7101 | { echo "$as_me:$LINENO: checking for XPointer" >&5 |
7763 | { echo "$as_me:$LINENO: checking for XPointer" >&5 |
7102 | echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } |
7764 | echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } |
7103 | if test "${rxvt_cv_xpointer+set}" = set; then |
7765 | if test "${rxvt_cv_xpointer+set}" = set; then |
7104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7766 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7105 | else |
7767 | else |
… | |
… | |
7216 | cat >>confdefs.h <<\_ACEOF |
7878 | cat >>confdefs.h <<\_ACEOF |
7217 | #define XLIB_ILLEGAL_ACCESS 1 |
7879 | #define XLIB_ILLEGAL_ACCESS 1 |
7218 | _ACEOF |
7880 | _ACEOF |
7219 | |
7881 | |
7220 | fi |
7882 | 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 | |
7883 | |
7399 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
7884 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
7400 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
7885 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
7401 | if test "${ac_cv_type_mode_t+set}" = set; then |
7886 | if test "${ac_cv_type_mode_t+set}" = set; then |
7402 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
7559 | _ACEOF |
8044 | _ACEOF |
7560 | |
8045 | |
7561 | fi |
8046 | fi |
7562 | |
8047 | |
7563 | |
8048 | |
7564 | { echo "$as_me:$LINENO: checking for short" >&5 |
8049 | { echo "$as_me:$LINENO: checking for int16_t" >&5 |
7565 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
8050 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } |
7566 | if test "${ac_cv_type_short+set}" = set; then |
8051 | if test "${ac_cv_c_int16_t+set}" = set; then |
7567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7568 | else |
8053 | else |
|
|
8054 | ac_cv_c_int16_t=no |
|
|
8055 | for ac_type in 'int16_t' 'int' 'long int' \ |
|
|
8056 | 'long long int' 'short int' 'signed char'; do |
7569 | cat >conftest.$ac_ext <<_ACEOF |
8057 | cat >conftest.$ac_ext <<_ACEOF |
7570 | /* confdefs.h. */ |
8058 | /* confdefs.h. */ |
7571 | _ACEOF |
8059 | _ACEOF |
7572 | cat confdefs.h >>conftest.$ac_ext |
8060 | cat confdefs.h >>conftest.$ac_ext |
7573 | cat >>conftest.$ac_ext <<_ACEOF |
8061 | cat >>conftest.$ac_ext <<_ACEOF |
7574 | /* end confdefs.h. */ |
8062 | /* end confdefs.h. */ |
7575 | $ac_includes_default |
8063 | $ac_includes_default |
7576 | typedef short ac__type_new_; |
|
|
7577 | int |
8064 | int |
7578 | main () |
8065 | main () |
7579 | { |
8066 | { |
7580 | if ((ac__type_new_ *) 0) |
8067 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))]; |
7581 | return 0; |
8068 | test_array [0] = 0 |
7582 | if (sizeof (ac__type_new_)) |
8069 | |
7583 | return 0; |
|
|
7584 | ; |
8070 | ; |
7585 | return 0; |
8071 | return 0; |
7586 | } |
8072 | } |
7587 | _ACEOF |
8073 | _ACEOF |
7588 | rm -f conftest.$ac_objext |
8074 | rm -f conftest.$ac_objext |
… | |
… | |
7600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7601 | (exit $ac_status); } && { |
8087 | (exit $ac_status); } && { |
7602 | test -z "$ac_cxx_werror_flag" || |
8088 | test -z "$ac_cxx_werror_flag" || |
7603 | test ! -s conftest.err |
8089 | test ! -s conftest.err |
7604 | } && test -s conftest.$ac_objext; then |
8090 | } && test -s conftest.$ac_objext; then |
7605 | ac_cv_type_short=yes |
|
|
7606 | else |
|
|
7607 | echo "$as_me: failed program was:" >&5 |
|
|
7608 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7609 | |
|
|
7610 | ac_cv_type_short=no |
|
|
7611 | fi |
|
|
7612 | |
|
|
7613 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7614 | fi |
|
|
7615 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
|
|
7616 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
|
|
7617 | |
|
|
7618 | # The cast to long int works around a bug in the HP C Compiler |
|
|
7619 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
7620 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
7621 | # This bug is HP SR number 8606223364. |
|
|
7622 | { echo "$as_me:$LINENO: checking size of short" >&5 |
|
|
7623 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
|
|
7624 | if test "${ac_cv_sizeof_short+set}" = set; then |
|
|
7625 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7626 | else |
|
|
7627 | if test "$cross_compiling" = yes; then |
|
|
7628 | # Depending upon the size, compute the lo and hi bounds. |
|
|
7629 | cat >conftest.$ac_ext <<_ACEOF |
8091 | cat >conftest.$ac_ext <<_ACEOF |
7630 | /* confdefs.h. */ |
8092 | /* confdefs.h. */ |
7631 | _ACEOF |
8093 | _ACEOF |
7632 | cat confdefs.h >>conftest.$ac_ext |
8094 | cat confdefs.h >>conftest.$ac_ext |
7633 | cat >>conftest.$ac_ext <<_ACEOF |
8095 | cat >>conftest.$ac_ext <<_ACEOF |
7634 | /* end confdefs.h. */ |
8096 | /* end confdefs.h. */ |
7635 | $ac_includes_default |
8097 | $ac_includes_default |
7636 | typedef short ac__type_sizeof_; |
|
|
7637 | int |
8098 | int |
7638 | main () |
8099 | main () |
7639 | { |
8100 | { |
7640 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
8101 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1) |
|
|
8102 | < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))]; |
7641 | test_array [0] = 0 |
8103 | test_array [0] = 0 |
7642 | |
8104 | |
7643 | ; |
8105 | ; |
7644 | return 0; |
8106 | return 0; |
7645 | } |
8107 | } |
… | |
… | |
7659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7660 | (exit $ac_status); } && { |
8122 | (exit $ac_status); } && { |
7661 | test -z "$ac_cxx_werror_flag" || |
8123 | test -z "$ac_cxx_werror_flag" || |
7662 | test ! -s conftest.err |
8124 | test ! -s conftest.err |
7663 | } && test -s conftest.$ac_objext; then |
8125 | } && test -s conftest.$ac_objext; then |
7664 | ac_lo=0 ac_mid=0 |
8126 | : |
7665 | while :; do |
8127 | else |
|
|
8128 | echo "$as_me: failed program was:" >&5 |
|
|
8129 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8130 | |
|
|
8131 | case $ac_type in |
|
|
8132 | int16_t) ac_cv_c_int16_t=yes ;; |
|
|
8133 | *) ac_cv_c_int16_t=$ac_type ;; |
|
|
8134 | esac |
|
|
8135 | |
|
|
8136 | fi |
|
|
8137 | |
|
|
8138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8139 | else |
|
|
8140 | echo "$as_me: failed program was:" >&5 |
|
|
8141 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8142 | |
|
|
8143 | |
|
|
8144 | fi |
|
|
8145 | |
|
|
8146 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8147 | test "$ac_cv_c_int16_t" != no && break |
|
|
8148 | done |
|
|
8149 | fi |
|
|
8150 | { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5 |
|
|
8151 | echo "${ECHO_T}$ac_cv_c_int16_t" >&6; } |
|
|
8152 | case $ac_cv_c_int16_t in #( |
|
|
8153 | no|yes) ;; #( |
|
|
8154 | *) |
|
|
8155 | |
|
|
8156 | cat >>confdefs.h <<_ACEOF |
|
|
8157 | #define int16_t $ac_cv_c_int16_t |
|
|
8158 | _ACEOF |
|
|
8159 | ;; |
|
|
8160 | esac |
|
|
8161 | |
|
|
8162 | |
|
|
8163 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 |
|
|
8164 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } |
|
|
8165 | if test "${ac_cv_c_uint16_t+set}" = set; then |
|
|
8166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8167 | else |
|
|
8168 | ac_cv_c_uint16_t=no |
|
|
8169 | for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \ |
|
|
8170 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
7666 | cat >conftest.$ac_ext <<_ACEOF |
8171 | cat >conftest.$ac_ext <<_ACEOF |
7667 | /* confdefs.h. */ |
8172 | /* confdefs.h. */ |
7668 | _ACEOF |
8173 | _ACEOF |
7669 | cat confdefs.h >>conftest.$ac_ext |
8174 | cat confdefs.h >>conftest.$ac_ext |
7670 | cat >>conftest.$ac_ext <<_ACEOF |
8175 | cat >>conftest.$ac_ext <<_ACEOF |
7671 | /* end confdefs.h. */ |
8176 | /* end confdefs.h. */ |
7672 | $ac_includes_default |
8177 | $ac_includes_default |
7673 | typedef short ac__type_sizeof_; |
|
|
7674 | int |
8178 | int |
7675 | main () |
8179 | main () |
7676 | { |
8180 | { |
7677 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
8181 | static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)]; |
7678 | test_array [0] = 0 |
8182 | test_array [0] = 0 |
7679 | |
8183 | |
7680 | ; |
8184 | ; |
7681 | return 0; |
8185 | return 0; |
7682 | } |
8186 | } |
… | |
… | |
7696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7697 | (exit $ac_status); } && { |
8201 | (exit $ac_status); } && { |
7698 | test -z "$ac_cxx_werror_flag" || |
8202 | test -z "$ac_cxx_werror_flag" || |
7699 | test ! -s conftest.err |
8203 | test ! -s conftest.err |
7700 | } && test -s conftest.$ac_objext; then |
8204 | } && test -s conftest.$ac_objext; then |
7701 | ac_hi=$ac_mid; break |
8205 | case $ac_type in |
|
|
8206 | uint16_t) ac_cv_c_uint16_t=yes ;; |
|
|
8207 | *) ac_cv_c_uint16_t=$ac_type ;; |
|
|
8208 | esac |
|
|
8209 | |
7702 | else |
8210 | else |
7703 | echo "$as_me: failed program was:" >&5 |
8211 | echo "$as_me: failed program was:" >&5 |
7704 | sed 's/^/| /' conftest.$ac_ext >&5 |
8212 | sed 's/^/| /' conftest.$ac_ext >&5 |
7705 | |
8213 | |
7706 | ac_lo=`expr $ac_mid + 1` |
8214 | |
7707 | if test $ac_lo -le $ac_mid; then |
|
|
7708 | ac_lo= ac_hi= |
|
|
7709 | break |
|
|
7710 | fi |
|
|
7711 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
7712 | fi |
8215 | fi |
7713 | |
8216 | |
7714 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8217 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8218 | test "$ac_cv_c_uint16_t" != no && break |
7715 | done |
8219 | done |
7716 | else |
8220 | fi |
7717 | echo "$as_me: failed program was:" >&5 |
8221 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5 |
7718 | sed 's/^/| /' conftest.$ac_ext >&5 |
8222 | echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; } |
|
|
8223 | case $ac_cv_c_uint16_t in #( |
|
|
8224 | no|yes) ;; #( |
|
|
8225 | *) |
7719 | |
8226 | |
|
|
8227 | |
|
|
8228 | cat >>confdefs.h <<_ACEOF |
|
|
8229 | #define uint16_t $ac_cv_c_uint16_t |
|
|
8230 | _ACEOF |
|
|
8231 | ;; |
|
|
8232 | esac |
|
|
8233 | |
|
|
8234 | |
|
|
8235 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
|
|
8236 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
|
|
8237 | if test "${ac_cv_c_int32_t+set}" = set; then |
|
|
8238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8239 | else |
|
|
8240 | ac_cv_c_int32_t=no |
|
|
8241 | for ac_type in 'int32_t' 'int' 'long int' \ |
|
|
8242 | 'long long int' 'short int' 'signed char'; do |
7720 | cat >conftest.$ac_ext <<_ACEOF |
8243 | cat >conftest.$ac_ext <<_ACEOF |
7721 | /* confdefs.h. */ |
8244 | /* confdefs.h. */ |
7722 | _ACEOF |
8245 | _ACEOF |
7723 | cat confdefs.h >>conftest.$ac_ext |
8246 | cat confdefs.h >>conftest.$ac_ext |
7724 | cat >>conftest.$ac_ext <<_ACEOF |
8247 | cat >>conftest.$ac_ext <<_ACEOF |
7725 | /* end confdefs.h. */ |
8248 | /* end confdefs.h. */ |
7726 | $ac_includes_default |
8249 | $ac_includes_default |
7727 | typedef short ac__type_sizeof_; |
|
|
7728 | int |
8250 | int |
7729 | main () |
8251 | main () |
7730 | { |
8252 | { |
7731 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
8253 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))]; |
7732 | test_array [0] = 0 |
8254 | test_array [0] = 0 |
7733 | |
8255 | |
7734 | ; |
8256 | ; |
7735 | return 0; |
8257 | return 0; |
7736 | } |
8258 | } |
… | |
… | |
7750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7751 | (exit $ac_status); } && { |
8273 | (exit $ac_status); } && { |
7752 | test -z "$ac_cxx_werror_flag" || |
8274 | test -z "$ac_cxx_werror_flag" || |
7753 | test ! -s conftest.err |
8275 | test ! -s conftest.err |
7754 | } && test -s conftest.$ac_objext; then |
8276 | } && test -s conftest.$ac_objext; then |
7755 | ac_hi=-1 ac_mid=-1 |
|
|
7756 | while :; do |
|
|
7757 | cat >conftest.$ac_ext <<_ACEOF |
8277 | cat >conftest.$ac_ext <<_ACEOF |
7758 | /* confdefs.h. */ |
8278 | /* confdefs.h. */ |
7759 | _ACEOF |
8279 | _ACEOF |
7760 | cat confdefs.h >>conftest.$ac_ext |
8280 | cat confdefs.h >>conftest.$ac_ext |
7761 | cat >>conftest.$ac_ext <<_ACEOF |
8281 | cat >>conftest.$ac_ext <<_ACEOF |
7762 | /* end confdefs.h. */ |
8282 | /* end confdefs.h. */ |
7763 | $ac_includes_default |
8283 | $ac_includes_default |
7764 | typedef short ac__type_sizeof_; |
|
|
7765 | int |
8284 | int |
7766 | main () |
8285 | main () |
7767 | { |
8286 | { |
7768 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
8287 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1) |
|
|
8288 | < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))]; |
7769 | test_array [0] = 0 |
8289 | test_array [0] = 0 |
7770 | |
8290 | |
7771 | ; |
8291 | ; |
7772 | return 0; |
8292 | return 0; |
7773 | } |
8293 | } |
… | |
… | |
7787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7788 | (exit $ac_status); } && { |
8308 | (exit $ac_status); } && { |
7789 | test -z "$ac_cxx_werror_flag" || |
8309 | test -z "$ac_cxx_werror_flag" || |
7790 | test ! -s conftest.err |
8310 | test ! -s conftest.err |
7791 | } && test -s conftest.$ac_objext; then |
8311 | } && test -s conftest.$ac_objext; then |
7792 | ac_lo=$ac_mid; break |
8312 | : |
7793 | else |
8313 | else |
7794 | echo "$as_me: failed program was:" >&5 |
8314 | echo "$as_me: failed program was:" >&5 |
7795 | sed 's/^/| /' conftest.$ac_ext >&5 |
8315 | sed 's/^/| /' conftest.$ac_ext >&5 |
7796 | |
8316 | |
7797 | ac_hi=`expr '(' $ac_mid ')' - 1` |
8317 | case $ac_type in |
7798 | if test $ac_mid -le $ac_hi; then |
8318 | int32_t) ac_cv_c_int32_t=yes ;; |
7799 | ac_lo= ac_hi= |
8319 | *) ac_cv_c_int32_t=$ac_type ;; |
7800 | break |
8320 | esac |
7801 | fi |
8321 | |
7802 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
7803 | fi |
8322 | fi |
7804 | |
8323 | |
7805 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8324 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7806 | done |
|
|
7807 | else |
8325 | else |
7808 | echo "$as_me: failed program was:" >&5 |
8326 | echo "$as_me: failed program was:" >&5 |
7809 | sed 's/^/| /' conftest.$ac_ext >&5 |
8327 | sed 's/^/| /' conftest.$ac_ext >&5 |
7810 | |
8328 | |
7811 | ac_lo= ac_hi= |
8329 | |
7812 | fi |
8330 | fi |
7813 | |
8331 | |
7814 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8333 | test "$ac_cv_c_int32_t" != no && break |
|
|
8334 | done |
7815 | fi |
8335 | fi |
|
|
8336 | { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5 |
|
|
8337 | echo "${ECHO_T}$ac_cv_c_int32_t" >&6; } |
|
|
8338 | case $ac_cv_c_int32_t in #( |
|
|
8339 | no|yes) ;; #( |
|
|
8340 | *) |
7816 | |
8341 | |
7817 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8342 | cat >>confdefs.h <<_ACEOF |
7818 | # Binary search between lo and hi bounds. |
8343 | #define int32_t $ac_cv_c_int32_t |
7819 | while test "x$ac_lo" != "x$ac_hi"; do |
8344 | _ACEOF |
7820 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
8345 | ;; |
|
|
8346 | esac |
|
|
8347 | |
|
|
8348 | |
|
|
8349 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
|
|
8350 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
|
|
8351 | if test "${ac_cv_c_uint32_t+set}" = set; then |
|
|
8352 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8353 | else |
|
|
8354 | ac_cv_c_uint32_t=no |
|
|
8355 | for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ |
|
|
8356 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
7821 | cat >conftest.$ac_ext <<_ACEOF |
8357 | cat >conftest.$ac_ext <<_ACEOF |
7822 | /* confdefs.h. */ |
8358 | /* confdefs.h. */ |
7823 | _ACEOF |
8359 | _ACEOF |
7824 | cat confdefs.h >>conftest.$ac_ext |
8360 | cat confdefs.h >>conftest.$ac_ext |
7825 | cat >>conftest.$ac_ext <<_ACEOF |
8361 | cat >>conftest.$ac_ext <<_ACEOF |
7826 | /* end confdefs.h. */ |
8362 | /* end confdefs.h. */ |
7827 | $ac_includes_default |
8363 | $ac_includes_default |
7828 | typedef short ac__type_sizeof_; |
|
|
7829 | int |
8364 | int |
7830 | main () |
8365 | main () |
7831 | { |
8366 | { |
7832 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
8367 | static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; |
7833 | test_array [0] = 0 |
8368 | test_array [0] = 0 |
7834 | |
8369 | |
7835 | ; |
8370 | ; |
7836 | return 0; |
8371 | return 0; |
7837 | } |
8372 | } |
… | |
… | |
7851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7852 | (exit $ac_status); } && { |
8387 | (exit $ac_status); } && { |
7853 | test -z "$ac_cxx_werror_flag" || |
8388 | test -z "$ac_cxx_werror_flag" || |
7854 | test ! -s conftest.err |
8389 | test ! -s conftest.err |
7855 | } && test -s conftest.$ac_objext; then |
8390 | } && test -s conftest.$ac_objext; then |
7856 | ac_hi=$ac_mid |
8391 | case $ac_type in |
|
|
8392 | uint32_t) ac_cv_c_uint32_t=yes ;; |
|
|
8393 | *) ac_cv_c_uint32_t=$ac_type ;; |
|
|
8394 | esac |
|
|
8395 | |
7857 | else |
8396 | else |
7858 | echo "$as_me: failed program was:" >&5 |
8397 | echo "$as_me: failed program was:" >&5 |
7859 | sed 's/^/| /' conftest.$ac_ext >&5 |
8398 | sed 's/^/| /' conftest.$ac_ext >&5 |
7860 | |
8399 | |
7861 | ac_lo=`expr '(' $ac_mid ')' + 1` |
8400 | |
7862 | fi |
8401 | fi |
7863 | |
8402 | |
7864 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8403 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7865 | done |
8404 | test "$ac_cv_c_uint32_t" != no && break |
7866 | case $ac_lo in |
8405 | done |
7867 | ?*) ac_cv_sizeof_short=$ac_lo;; |
|
|
7868 | '') if test "$ac_cv_type_short" = yes; then |
|
|
7869 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
|
|
7870 | See \`config.log' for more details." >&5 |
|
|
7871 | echo "$as_me: error: cannot compute sizeof (short) |
|
|
7872 | See \`config.log' for more details." >&2;} |
|
|
7873 | { (exit 77); exit 77; }; } |
|
|
7874 | else |
|
|
7875 | ac_cv_sizeof_short=0 |
|
|
7876 | fi ;; |
|
|
7877 | esac |
|
|
7878 | else |
|
|
7879 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7880 | /* confdefs.h. */ |
|
|
7881 | _ACEOF |
|
|
7882 | cat confdefs.h >>conftest.$ac_ext |
|
|
7883 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7884 | /* end confdefs.h. */ |
|
|
7885 | $ac_includes_default |
|
|
7886 | typedef short ac__type_sizeof_; |
|
|
7887 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
7888 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
7889 | #include <stdio.h> |
|
|
7890 | #include <stdlib.h> |
|
|
7891 | int |
|
|
7892 | main () |
|
|
7893 | { |
|
|
7894 | |
|
|
7895 | FILE *f = fopen ("conftest.val", "w"); |
|
|
7896 | if (! f) |
|
|
7897 | return 1; |
|
|
7898 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
7899 | { |
|
|
7900 | long int i = longval (); |
|
|
7901 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
7902 | return 1; |
|
|
7903 | fprintf (f, "%ld\n", i); |
|
|
7904 | } |
|
|
7905 | else |
|
|
7906 | { |
|
|
7907 | unsigned long int i = ulongval (); |
|
|
7908 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
7909 | return 1; |
|
|
7910 | fprintf (f, "%lu\n", i); |
|
|
7911 | } |
|
|
7912 | return ferror (f) || fclose (f) != 0; |
|
|
7913 | |
|
|
7914 | ; |
|
|
7915 | return 0; |
|
|
7916 | } |
|
|
7917 | _ACEOF |
|
|
7918 | rm -f conftest$ac_exeext |
|
|
7919 | if { (ac_try="$ac_link" |
|
|
7920 | case "(($ac_try" in |
|
|
7921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7922 | *) ac_try_echo=$ac_try;; |
|
|
7923 | esac |
|
|
7924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7925 | (eval "$ac_link") 2>&5 |
|
|
7926 | ac_status=$? |
|
|
7927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7928 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
7929 | { (case "(($ac_try" in |
|
|
7930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7931 | *) ac_try_echo=$ac_try;; |
|
|
7932 | esac |
|
|
7933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7934 | (eval "$ac_try") 2>&5 |
|
|
7935 | ac_status=$? |
|
|
7936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7937 | (exit $ac_status); }; }; then |
|
|
7938 | ac_cv_sizeof_short=`cat conftest.val` |
|
|
7939 | else |
|
|
7940 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
7941 | echo "$as_me: failed program was:" >&5 |
|
|
7942 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7943 | |
|
|
7944 | ( exit $ac_status ) |
|
|
7945 | if test "$ac_cv_type_short" = yes; then |
|
|
7946 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
|
|
7947 | See \`config.log' for more details." >&5 |
|
|
7948 | echo "$as_me: error: cannot compute sizeof (short) |
|
|
7949 | See \`config.log' for more details." >&2;} |
|
|
7950 | { (exit 77); exit 77; }; } |
|
|
7951 | else |
|
|
7952 | ac_cv_sizeof_short=0 |
|
|
7953 | fi |
|
|
7954 | fi |
8406 | fi |
7955 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
7956 | fi |
|
|
7957 | rm -f conftest.val |
|
|
7958 | fi |
|
|
7959 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
8407 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 |
7960 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
8408 | echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; } |
|
|
8409 | case $ac_cv_c_uint32_t in #( |
|
|
8410 | no|yes) ;; #( |
|
|
8411 | *) |
7961 | |
8412 | |
|
|
8413 | cat >>confdefs.h <<\_ACEOF |
|
|
8414 | #define _UINT32_T 1 |
|
|
8415 | _ACEOF |
7962 | |
8416 | |
7963 | |
8417 | |
7964 | cat >>confdefs.h <<_ACEOF |
8418 | cat >>confdefs.h <<_ACEOF |
7965 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
8419 | #define uint32_t $ac_cv_c_uint32_t |
7966 | _ACEOF |
8420 | _ACEOF |
7967 | |
8421 | ;; |
7968 | |
|
|
7969 | { echo "$as_me:$LINENO: checking for int" >&5 |
|
|
7970 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
|
|
7971 | if test "${ac_cv_type_int+set}" = set; then |
|
|
7972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7973 | else |
|
|
7974 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7975 | /* confdefs.h. */ |
|
|
7976 | _ACEOF |
|
|
7977 | cat confdefs.h >>conftest.$ac_ext |
|
|
7978 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7979 | /* end confdefs.h. */ |
|
|
7980 | $ac_includes_default |
|
|
7981 | typedef int ac__type_new_; |
|
|
7982 | int |
|
|
7983 | main () |
|
|
7984 | { |
|
|
7985 | if ((ac__type_new_ *) 0) |
|
|
7986 | return 0; |
|
|
7987 | if (sizeof (ac__type_new_)) |
|
|
7988 | return 0; |
|
|
7989 | ; |
|
|
7990 | return 0; |
|
|
7991 | } |
|
|
7992 | _ACEOF |
|
|
7993 | rm -f conftest.$ac_objext |
|
|
7994 | if { (ac_try="$ac_compile" |
|
|
7995 | case "(($ac_try" in |
|
|
7996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7997 | *) ac_try_echo=$ac_try;; |
|
|
7998 | esac |
8422 | esac |
7999 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8000 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8001 | ac_status=$? |
|
|
8002 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8003 | rm -f conftest.er1 |
|
|
8004 | cat conftest.err >&5 |
|
|
8005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8006 | (exit $ac_status); } && { |
|
|
8007 | test -z "$ac_cxx_werror_flag" || |
|
|
8008 | test ! -s conftest.err |
|
|
8009 | } && test -s conftest.$ac_objext; then |
|
|
8010 | ac_cv_type_int=yes |
|
|
8011 | else |
|
|
8012 | echo "$as_me: failed program was:" >&5 |
|
|
8013 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8014 | |
8423 | |
8015 | ac_cv_type_int=no |
|
|
8016 | fi |
|
|
8017 | |
8424 | |
8018 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8019 | fi |
|
|
8020 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
|
|
8021 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
|
|
8022 | |
8425 | |
8023 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8024 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8025 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8026 | # This bug is HP SR number 8606223364. |
|
|
8027 | { echo "$as_me:$LINENO: checking size of int" >&5 |
|
|
8028 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
|
|
8029 | if test "${ac_cv_sizeof_int+set}" = set; then |
|
|
8030 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8031 | else |
|
|
8032 | if test "$cross_compiling" = yes; then |
|
|
8033 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8034 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8035 | /* confdefs.h. */ |
|
|
8036 | _ACEOF |
|
|
8037 | cat confdefs.h >>conftest.$ac_ext |
|
|
8038 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8039 | /* end confdefs.h. */ |
|
|
8040 | $ac_includes_default |
|
|
8041 | typedef int ac__type_sizeof_; |
|
|
8042 | int |
|
|
8043 | main () |
|
|
8044 | { |
|
|
8045 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
8046 | test_array [0] = 0 |
|
|
8047 | |
|
|
8048 | ; |
|
|
8049 | return 0; |
|
|
8050 | } |
|
|
8051 | _ACEOF |
|
|
8052 | rm -f conftest.$ac_objext |
|
|
8053 | if { (ac_try="$ac_compile" |
|
|
8054 | case "(($ac_try" in |
|
|
8055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8056 | *) ac_try_echo=$ac_try;; |
|
|
8057 | esac |
|
|
8058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8059 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8060 | ac_status=$? |
|
|
8061 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8062 | rm -f conftest.er1 |
|
|
8063 | cat conftest.err >&5 |
|
|
8064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8065 | (exit $ac_status); } && { |
|
|
8066 | test -z "$ac_cxx_werror_flag" || |
|
|
8067 | test ! -s conftest.err |
|
|
8068 | } && test -s conftest.$ac_objext; then |
|
|
8069 | ac_lo=0 ac_mid=0 |
|
|
8070 | while :; do |
|
|
8071 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8072 | /* confdefs.h. */ |
|
|
8073 | _ACEOF |
|
|
8074 | cat confdefs.h >>conftest.$ac_ext |
|
|
8075 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8076 | /* end confdefs.h. */ |
|
|
8077 | $ac_includes_default |
|
|
8078 | typedef int ac__type_sizeof_; |
|
|
8079 | int |
|
|
8080 | main () |
|
|
8081 | { |
|
|
8082 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8083 | test_array [0] = 0 |
|
|
8084 | |
|
|
8085 | ; |
|
|
8086 | return 0; |
|
|
8087 | } |
|
|
8088 | _ACEOF |
|
|
8089 | rm -f conftest.$ac_objext |
|
|
8090 | if { (ac_try="$ac_compile" |
|
|
8091 | case "(($ac_try" in |
|
|
8092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8093 | *) ac_try_echo=$ac_try;; |
|
|
8094 | esac |
|
|
8095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8096 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8097 | ac_status=$? |
|
|
8098 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8099 | rm -f conftest.er1 |
|
|
8100 | cat conftest.err >&5 |
|
|
8101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8102 | (exit $ac_status); } && { |
|
|
8103 | test -z "$ac_cxx_werror_flag" || |
|
|
8104 | test ! -s conftest.err |
|
|
8105 | } && test -s conftest.$ac_objext; then |
|
|
8106 | ac_hi=$ac_mid; break |
|
|
8107 | else |
|
|
8108 | echo "$as_me: failed program was:" >&5 |
|
|
8109 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8110 | |
|
|
8111 | ac_lo=`expr $ac_mid + 1` |
|
|
8112 | if test $ac_lo -le $ac_mid; then |
|
|
8113 | ac_lo= ac_hi= |
|
|
8114 | break |
|
|
8115 | fi |
|
|
8116 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8117 | fi |
|
|
8118 | |
|
|
8119 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8120 | done |
|
|
8121 | else |
|
|
8122 | echo "$as_me: failed program was:" >&5 |
|
|
8123 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8124 | |
|
|
8125 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8126 | /* confdefs.h. */ |
|
|
8127 | _ACEOF |
|
|
8128 | cat confdefs.h >>conftest.$ac_ext |
|
|
8129 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8130 | /* end confdefs.h. */ |
|
|
8131 | $ac_includes_default |
|
|
8132 | typedef int ac__type_sizeof_; |
|
|
8133 | int |
|
|
8134 | main () |
|
|
8135 | { |
|
|
8136 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
8137 | test_array [0] = 0 |
|
|
8138 | |
|
|
8139 | ; |
|
|
8140 | return 0; |
|
|
8141 | } |
|
|
8142 | _ACEOF |
|
|
8143 | rm -f conftest.$ac_objext |
|
|
8144 | if { (ac_try="$ac_compile" |
|
|
8145 | case "(($ac_try" in |
|
|
8146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8147 | *) ac_try_echo=$ac_try;; |
|
|
8148 | esac |
|
|
8149 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8150 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8151 | ac_status=$? |
|
|
8152 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8153 | rm -f conftest.er1 |
|
|
8154 | cat conftest.err >&5 |
|
|
8155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8156 | (exit $ac_status); } && { |
|
|
8157 | test -z "$ac_cxx_werror_flag" || |
|
|
8158 | test ! -s conftest.err |
|
|
8159 | } && test -s conftest.$ac_objext; then |
|
|
8160 | ac_hi=-1 ac_mid=-1 |
|
|
8161 | while :; do |
|
|
8162 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8163 | /* confdefs.h. */ |
|
|
8164 | _ACEOF |
|
|
8165 | cat confdefs.h >>conftest.$ac_ext |
|
|
8166 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8167 | /* end confdefs.h. */ |
|
|
8168 | $ac_includes_default |
|
|
8169 | typedef int ac__type_sizeof_; |
|
|
8170 | int |
|
|
8171 | main () |
|
|
8172 | { |
|
|
8173 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
8174 | test_array [0] = 0 |
|
|
8175 | |
|
|
8176 | ; |
|
|
8177 | return 0; |
|
|
8178 | } |
|
|
8179 | _ACEOF |
|
|
8180 | rm -f conftest.$ac_objext |
|
|
8181 | if { (ac_try="$ac_compile" |
|
|
8182 | case "(($ac_try" in |
|
|
8183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8184 | *) ac_try_echo=$ac_try;; |
|
|
8185 | esac |
|
|
8186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8187 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8188 | ac_status=$? |
|
|
8189 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8190 | rm -f conftest.er1 |
|
|
8191 | cat conftest.err >&5 |
|
|
8192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8193 | (exit $ac_status); } && { |
|
|
8194 | test -z "$ac_cxx_werror_flag" || |
|
|
8195 | test ! -s conftest.err |
|
|
8196 | } && test -s conftest.$ac_objext; then |
|
|
8197 | ac_lo=$ac_mid; break |
|
|
8198 | else |
|
|
8199 | echo "$as_me: failed program was:" >&5 |
|
|
8200 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8201 | |
|
|
8202 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
8203 | if test $ac_mid -le $ac_hi; then |
|
|
8204 | ac_lo= ac_hi= |
|
|
8205 | break |
|
|
8206 | fi |
|
|
8207 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
8208 | fi |
|
|
8209 | |
|
|
8210 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8211 | done |
|
|
8212 | else |
|
|
8213 | echo "$as_me: failed program was:" >&5 |
|
|
8214 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8215 | |
|
|
8216 | ac_lo= ac_hi= |
|
|
8217 | fi |
|
|
8218 | |
|
|
8219 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8220 | fi |
|
|
8221 | |
|
|
8222 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8223 | # Binary search between lo and hi bounds. |
|
|
8224 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
8225 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
8226 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8227 | /* confdefs.h. */ |
|
|
8228 | _ACEOF |
|
|
8229 | cat confdefs.h >>conftest.$ac_ext |
|
|
8230 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8231 | /* end confdefs.h. */ |
|
|
8232 | $ac_includes_default |
|
|
8233 | typedef int ac__type_sizeof_; |
|
|
8234 | int |
|
|
8235 | main () |
|
|
8236 | { |
|
|
8237 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8238 | test_array [0] = 0 |
|
|
8239 | |
|
|
8240 | ; |
|
|
8241 | return 0; |
|
|
8242 | } |
|
|
8243 | _ACEOF |
|
|
8244 | rm -f conftest.$ac_objext |
|
|
8245 | if { (ac_try="$ac_compile" |
|
|
8246 | case "(($ac_try" in |
|
|
8247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8248 | *) ac_try_echo=$ac_try;; |
|
|
8249 | esac |
|
|
8250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8251 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8252 | ac_status=$? |
|
|
8253 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8254 | rm -f conftest.er1 |
|
|
8255 | cat conftest.err >&5 |
|
|
8256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8257 | (exit $ac_status); } && { |
|
|
8258 | test -z "$ac_cxx_werror_flag" || |
|
|
8259 | test ! -s conftest.err |
|
|
8260 | } && test -s conftest.$ac_objext; then |
|
|
8261 | ac_hi=$ac_mid |
|
|
8262 | else |
|
|
8263 | echo "$as_me: failed program was:" >&5 |
|
|
8264 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8265 | |
|
|
8266 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
8267 | fi |
|
|
8268 | |
|
|
8269 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8270 | done |
|
|
8271 | case $ac_lo in |
|
|
8272 | ?*) ac_cv_sizeof_int=$ac_lo;; |
|
|
8273 | '') if test "$ac_cv_type_int" = yes; then |
|
|
8274 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
|
|
8275 | See \`config.log' for more details." >&5 |
|
|
8276 | echo "$as_me: error: cannot compute sizeof (int) |
|
|
8277 | See \`config.log' for more details." >&2;} |
|
|
8278 | { (exit 77); exit 77; }; } |
|
|
8279 | else |
|
|
8280 | ac_cv_sizeof_int=0 |
|
|
8281 | fi ;; |
|
|
8282 | esac |
|
|
8283 | else |
|
|
8284 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8285 | /* confdefs.h. */ |
|
|
8286 | _ACEOF |
|
|
8287 | cat confdefs.h >>conftest.$ac_ext |
|
|
8288 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8289 | /* end confdefs.h. */ |
|
|
8290 | $ac_includes_default |
|
|
8291 | typedef int ac__type_sizeof_; |
|
|
8292 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8293 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8294 | #include <stdio.h> |
|
|
8295 | #include <stdlib.h> |
|
|
8296 | int |
|
|
8297 | main () |
|
|
8298 | { |
|
|
8299 | |
|
|
8300 | FILE *f = fopen ("conftest.val", "w"); |
|
|
8301 | if (! f) |
|
|
8302 | return 1; |
|
|
8303 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
8304 | { |
|
|
8305 | long int i = longval (); |
|
|
8306 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8307 | return 1; |
|
|
8308 | fprintf (f, "%ld\n", i); |
|
|
8309 | } |
|
|
8310 | else |
|
|
8311 | { |
|
|
8312 | unsigned long int i = ulongval (); |
|
|
8313 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8314 | return 1; |
|
|
8315 | fprintf (f, "%lu\n", i); |
|
|
8316 | } |
|
|
8317 | return ferror (f) || fclose (f) != 0; |
|
|
8318 | |
|
|
8319 | ; |
|
|
8320 | return 0; |
|
|
8321 | } |
|
|
8322 | _ACEOF |
|
|
8323 | rm -f conftest$ac_exeext |
|
|
8324 | if { (ac_try="$ac_link" |
|
|
8325 | case "(($ac_try" in |
|
|
8326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8327 | *) ac_try_echo=$ac_try;; |
|
|
8328 | esac |
|
|
8329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8330 | (eval "$ac_link") 2>&5 |
|
|
8331 | ac_status=$? |
|
|
8332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8333 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
8334 | { (case "(($ac_try" in |
|
|
8335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8336 | *) ac_try_echo=$ac_try;; |
|
|
8337 | esac |
|
|
8338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8339 | (eval "$ac_try") 2>&5 |
|
|
8340 | ac_status=$? |
|
|
8341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8342 | (exit $ac_status); }; }; then |
|
|
8343 | ac_cv_sizeof_int=`cat conftest.val` |
|
|
8344 | else |
|
|
8345 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
8346 | echo "$as_me: failed program was:" >&5 |
|
|
8347 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8348 | |
|
|
8349 | ( exit $ac_status ) |
|
|
8350 | if test "$ac_cv_type_int" = yes; then |
|
|
8351 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
|
|
8352 | See \`config.log' for more details." >&5 |
|
|
8353 | echo "$as_me: error: cannot compute sizeof (int) |
|
|
8354 | See \`config.log' for more details." >&2;} |
|
|
8355 | { (exit 77); exit 77; }; } |
|
|
8356 | else |
|
|
8357 | ac_cv_sizeof_int=0 |
|
|
8358 | fi |
|
|
8359 | fi |
|
|
8360 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
8361 | fi |
|
|
8362 | rm -f conftest.val |
|
|
8363 | fi |
|
|
8364 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
|
|
8365 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
|
|
8366 | |
|
|
8367 | |
|
|
8368 | |
|
|
8369 | cat >>confdefs.h <<_ACEOF |
|
|
8370 | #define SIZEOF_INT $ac_cv_sizeof_int |
|
|
8371 | _ACEOF |
|
|
8372 | |
|
|
8373 | |
|
|
8374 | { echo "$as_me:$LINENO: checking for long long" >&5 |
|
|
8375 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
|
|
8376 | if test "${ac_cv_type_long_long+set}" = set; then |
|
|
8377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8378 | else |
|
|
8379 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8380 | /* confdefs.h. */ |
|
|
8381 | _ACEOF |
|
|
8382 | cat confdefs.h >>conftest.$ac_ext |
|
|
8383 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8384 | /* end confdefs.h. */ |
|
|
8385 | $ac_includes_default |
|
|
8386 | typedef long long ac__type_new_; |
|
|
8387 | int |
|
|
8388 | main () |
|
|
8389 | { |
|
|
8390 | if ((ac__type_new_ *) 0) |
|
|
8391 | return 0; |
|
|
8392 | if (sizeof (ac__type_new_)) |
|
|
8393 | return 0; |
|
|
8394 | ; |
|
|
8395 | return 0; |
|
|
8396 | } |
|
|
8397 | _ACEOF |
|
|
8398 | rm -f conftest.$ac_objext |
|
|
8399 | if { (ac_try="$ac_compile" |
|
|
8400 | case "(($ac_try" in |
|
|
8401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8402 | *) ac_try_echo=$ac_try;; |
|
|
8403 | esac |
|
|
8404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8405 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8406 | ac_status=$? |
|
|
8407 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8408 | rm -f conftest.er1 |
|
|
8409 | cat conftest.err >&5 |
|
|
8410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8411 | (exit $ac_status); } && { |
|
|
8412 | test -z "$ac_cxx_werror_flag" || |
|
|
8413 | test ! -s conftest.err |
|
|
8414 | } && test -s conftest.$ac_objext; then |
|
|
8415 | ac_cv_type_long_long=yes |
|
|
8416 | else |
|
|
8417 | echo "$as_me: failed program was:" >&5 |
|
|
8418 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8419 | |
|
|
8420 | ac_cv_type_long_long=no |
|
|
8421 | fi |
|
|
8422 | |
|
|
8423 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8424 | fi |
|
|
8425 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
|
|
8426 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
|
|
8427 | |
|
|
8428 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8429 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8430 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8431 | # This bug is HP SR number 8606223364. |
|
|
8432 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
|
|
8433 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } |
|
|
8434 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
|
|
8435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8436 | else |
|
|
8437 | if test "$cross_compiling" = yes; then |
|
|
8438 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8439 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8440 | /* confdefs.h. */ |
|
|
8441 | _ACEOF |
|
|
8442 | cat confdefs.h >>conftest.$ac_ext |
|
|
8443 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8444 | /* end confdefs.h. */ |
|
|
8445 | $ac_includes_default |
|
|
8446 | typedef long long ac__type_sizeof_; |
|
|
8447 | int |
|
|
8448 | main () |
|
|
8449 | { |
|
|
8450 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
8451 | test_array [0] = 0 |
|
|
8452 | |
|
|
8453 | ; |
|
|
8454 | return 0; |
|
|
8455 | } |
|
|
8456 | _ACEOF |
|
|
8457 | rm -f conftest.$ac_objext |
|
|
8458 | if { (ac_try="$ac_compile" |
|
|
8459 | case "(($ac_try" in |
|
|
8460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8461 | *) ac_try_echo=$ac_try;; |
|
|
8462 | esac |
|
|
8463 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8464 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8465 | ac_status=$? |
|
|
8466 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8467 | rm -f conftest.er1 |
|
|
8468 | cat conftest.err >&5 |
|
|
8469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8470 | (exit $ac_status); } && { |
|
|
8471 | test -z "$ac_cxx_werror_flag" || |
|
|
8472 | test ! -s conftest.err |
|
|
8473 | } && test -s conftest.$ac_objext; then |
|
|
8474 | ac_lo=0 ac_mid=0 |
|
|
8475 | while :; do |
|
|
8476 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8477 | /* confdefs.h. */ |
|
|
8478 | _ACEOF |
|
|
8479 | cat confdefs.h >>conftest.$ac_ext |
|
|
8480 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8481 | /* end confdefs.h. */ |
|
|
8482 | $ac_includes_default |
|
|
8483 | typedef long long ac__type_sizeof_; |
|
|
8484 | int |
|
|
8485 | main () |
|
|
8486 | { |
|
|
8487 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8488 | test_array [0] = 0 |
|
|
8489 | |
|
|
8490 | ; |
|
|
8491 | return 0; |
|
|
8492 | } |
|
|
8493 | _ACEOF |
|
|
8494 | rm -f conftest.$ac_objext |
|
|
8495 | if { (ac_try="$ac_compile" |
|
|
8496 | case "(($ac_try" in |
|
|
8497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8498 | *) ac_try_echo=$ac_try;; |
|
|
8499 | esac |
|
|
8500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8501 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8502 | ac_status=$? |
|
|
8503 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8504 | rm -f conftest.er1 |
|
|
8505 | cat conftest.err >&5 |
|
|
8506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8507 | (exit $ac_status); } && { |
|
|
8508 | test -z "$ac_cxx_werror_flag" || |
|
|
8509 | test ! -s conftest.err |
|
|
8510 | } && test -s conftest.$ac_objext; then |
|
|
8511 | ac_hi=$ac_mid; break |
|
|
8512 | else |
|
|
8513 | echo "$as_me: failed program was:" >&5 |
|
|
8514 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8515 | |
|
|
8516 | ac_lo=`expr $ac_mid + 1` |
|
|
8517 | if test $ac_lo -le $ac_mid; then |
|
|
8518 | ac_lo= ac_hi= |
|
|
8519 | break |
|
|
8520 | fi |
|
|
8521 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8522 | fi |
|
|
8523 | |
|
|
8524 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8525 | done |
|
|
8526 | else |
|
|
8527 | echo "$as_me: failed program was:" >&5 |
|
|
8528 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8529 | |
|
|
8530 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8531 | /* confdefs.h. */ |
|
|
8532 | _ACEOF |
|
|
8533 | cat confdefs.h >>conftest.$ac_ext |
|
|
8534 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8535 | /* end confdefs.h. */ |
|
|
8536 | $ac_includes_default |
|
|
8537 | typedef long long ac__type_sizeof_; |
|
|
8538 | int |
|
|
8539 | main () |
|
|
8540 | { |
|
|
8541 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
8542 | test_array [0] = 0 |
|
|
8543 | |
|
|
8544 | ; |
|
|
8545 | return 0; |
|
|
8546 | } |
|
|
8547 | _ACEOF |
|
|
8548 | rm -f conftest.$ac_objext |
|
|
8549 | if { (ac_try="$ac_compile" |
|
|
8550 | case "(($ac_try" in |
|
|
8551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8552 | *) ac_try_echo=$ac_try;; |
|
|
8553 | esac |
|
|
8554 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8555 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8556 | ac_status=$? |
|
|
8557 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8558 | rm -f conftest.er1 |
|
|
8559 | cat conftest.err >&5 |
|
|
8560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8561 | (exit $ac_status); } && { |
|
|
8562 | test -z "$ac_cxx_werror_flag" || |
|
|
8563 | test ! -s conftest.err |
|
|
8564 | } && test -s conftest.$ac_objext; then |
|
|
8565 | ac_hi=-1 ac_mid=-1 |
|
|
8566 | while :; do |
|
|
8567 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8568 | /* confdefs.h. */ |
|
|
8569 | _ACEOF |
|
|
8570 | cat confdefs.h >>conftest.$ac_ext |
|
|
8571 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8572 | /* end confdefs.h. */ |
|
|
8573 | $ac_includes_default |
|
|
8574 | typedef long long ac__type_sizeof_; |
|
|
8575 | int |
|
|
8576 | main () |
|
|
8577 | { |
|
|
8578 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
8579 | test_array [0] = 0 |
|
|
8580 | |
|
|
8581 | ; |
|
|
8582 | return 0; |
|
|
8583 | } |
|
|
8584 | _ACEOF |
|
|
8585 | rm -f conftest.$ac_objext |
|
|
8586 | if { (ac_try="$ac_compile" |
|
|
8587 | case "(($ac_try" in |
|
|
8588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8589 | *) ac_try_echo=$ac_try;; |
|
|
8590 | esac |
|
|
8591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8592 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8593 | ac_status=$? |
|
|
8594 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8595 | rm -f conftest.er1 |
|
|
8596 | cat conftest.err >&5 |
|
|
8597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8598 | (exit $ac_status); } && { |
|
|
8599 | test -z "$ac_cxx_werror_flag" || |
|
|
8600 | test ! -s conftest.err |
|
|
8601 | } && test -s conftest.$ac_objext; then |
|
|
8602 | ac_lo=$ac_mid; break |
|
|
8603 | else |
|
|
8604 | echo "$as_me: failed program was:" >&5 |
|
|
8605 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8606 | |
|
|
8607 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
8608 | if test $ac_mid -le $ac_hi; then |
|
|
8609 | ac_lo= ac_hi= |
|
|
8610 | break |
|
|
8611 | fi |
|
|
8612 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
8613 | fi |
|
|
8614 | |
|
|
8615 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8616 | done |
|
|
8617 | else |
|
|
8618 | echo "$as_me: failed program was:" >&5 |
|
|
8619 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8620 | |
|
|
8621 | ac_lo= ac_hi= |
|
|
8622 | fi |
|
|
8623 | |
|
|
8624 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8625 | fi |
|
|
8626 | |
|
|
8627 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8628 | # Binary search between lo and hi bounds. |
|
|
8629 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
8630 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
8631 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8632 | /* confdefs.h. */ |
|
|
8633 | _ACEOF |
|
|
8634 | cat confdefs.h >>conftest.$ac_ext |
|
|
8635 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8636 | /* end confdefs.h. */ |
|
|
8637 | $ac_includes_default |
|
|
8638 | typedef long long ac__type_sizeof_; |
|
|
8639 | int |
|
|
8640 | main () |
|
|
8641 | { |
|
|
8642 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8643 | test_array [0] = 0 |
|
|
8644 | |
|
|
8645 | ; |
|
|
8646 | return 0; |
|
|
8647 | } |
|
|
8648 | _ACEOF |
|
|
8649 | rm -f conftest.$ac_objext |
|
|
8650 | if { (ac_try="$ac_compile" |
|
|
8651 | case "(($ac_try" in |
|
|
8652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8653 | *) ac_try_echo=$ac_try;; |
|
|
8654 | esac |
|
|
8655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8656 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8657 | ac_status=$? |
|
|
8658 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8659 | rm -f conftest.er1 |
|
|
8660 | cat conftest.err >&5 |
|
|
8661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8662 | (exit $ac_status); } && { |
|
|
8663 | test -z "$ac_cxx_werror_flag" || |
|
|
8664 | test ! -s conftest.err |
|
|
8665 | } && test -s conftest.$ac_objext; then |
|
|
8666 | ac_hi=$ac_mid |
|
|
8667 | else |
|
|
8668 | echo "$as_me: failed program was:" >&5 |
|
|
8669 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8670 | |
|
|
8671 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
8672 | fi |
|
|
8673 | |
|
|
8674 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8675 | done |
|
|
8676 | case $ac_lo in |
|
|
8677 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
|
|
8678 | '') if test "$ac_cv_type_long_long" = yes; then |
|
|
8679 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
|
|
8680 | See \`config.log' for more details." >&5 |
|
|
8681 | echo "$as_me: error: cannot compute sizeof (long long) |
|
|
8682 | See \`config.log' for more details." >&2;} |
|
|
8683 | { (exit 77); exit 77; }; } |
|
|
8684 | else |
|
|
8685 | ac_cv_sizeof_long_long=0 |
|
|
8686 | fi ;; |
|
|
8687 | esac |
|
|
8688 | else |
|
|
8689 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8690 | /* confdefs.h. */ |
|
|
8691 | _ACEOF |
|
|
8692 | cat confdefs.h >>conftest.$ac_ext |
|
|
8693 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8694 | /* end confdefs.h. */ |
|
|
8695 | $ac_includes_default |
|
|
8696 | typedef long long ac__type_sizeof_; |
|
|
8697 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8698 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8699 | #include <stdio.h> |
|
|
8700 | #include <stdlib.h> |
|
|
8701 | int |
|
|
8702 | main () |
|
|
8703 | { |
|
|
8704 | |
|
|
8705 | FILE *f = fopen ("conftest.val", "w"); |
|
|
8706 | if (! f) |
|
|
8707 | return 1; |
|
|
8708 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
8709 | { |
|
|
8710 | long int i = longval (); |
|
|
8711 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8712 | return 1; |
|
|
8713 | fprintf (f, "%ld\n", i); |
|
|
8714 | } |
|
|
8715 | else |
|
|
8716 | { |
|
|
8717 | unsigned long int i = ulongval (); |
|
|
8718 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8719 | return 1; |
|
|
8720 | fprintf (f, "%lu\n", i); |
|
|
8721 | } |
|
|
8722 | return ferror (f) || fclose (f) != 0; |
|
|
8723 | |
|
|
8724 | ; |
|
|
8725 | return 0; |
|
|
8726 | } |
|
|
8727 | _ACEOF |
|
|
8728 | rm -f conftest$ac_exeext |
|
|
8729 | if { (ac_try="$ac_link" |
|
|
8730 | case "(($ac_try" in |
|
|
8731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8732 | *) ac_try_echo=$ac_try;; |
|
|
8733 | esac |
|
|
8734 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8735 | (eval "$ac_link") 2>&5 |
|
|
8736 | ac_status=$? |
|
|
8737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8738 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
8739 | { (case "(($ac_try" in |
|
|
8740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8741 | *) ac_try_echo=$ac_try;; |
|
|
8742 | esac |
|
|
8743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8744 | (eval "$ac_try") 2>&5 |
|
|
8745 | ac_status=$? |
|
|
8746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8747 | (exit $ac_status); }; }; then |
|
|
8748 | ac_cv_sizeof_long_long=`cat conftest.val` |
|
|
8749 | else |
|
|
8750 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
8751 | echo "$as_me: failed program was:" >&5 |
|
|
8752 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8753 | |
|
|
8754 | ( exit $ac_status ) |
|
|
8755 | if test "$ac_cv_type_long_long" = yes; then |
|
|
8756 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
|
|
8757 | See \`config.log' for more details." >&5 |
|
|
8758 | echo "$as_me: error: cannot compute sizeof (long long) |
|
|
8759 | See \`config.log' for more details." >&2;} |
|
|
8760 | { (exit 77); exit 77; }; } |
|
|
8761 | else |
|
|
8762 | ac_cv_sizeof_long_long=0 |
|
|
8763 | fi |
|
|
8764 | fi |
|
|
8765 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
8766 | fi |
|
|
8767 | rm -f conftest.val |
|
|
8768 | fi |
|
|
8769 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
|
|
8770 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
|
|
8771 | |
|
|
8772 | |
|
|
8773 | |
|
|
8774 | cat >>confdefs.h <<_ACEOF |
|
|
8775 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
|
|
8776 | _ACEOF |
|
|
8777 | |
|
|
8778 | |
|
|
8779 | { echo "$as_me:$LINENO: checking for int *" >&5 |
|
|
8780 | echo $ECHO_N "checking for int *... $ECHO_C" >&6; } |
|
|
8781 | if test "${ac_cv_type_int_p+set}" = set; then |
|
|
8782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8783 | else |
|
|
8784 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8785 | /* confdefs.h. */ |
|
|
8786 | _ACEOF |
|
|
8787 | cat confdefs.h >>conftest.$ac_ext |
|
|
8788 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8789 | /* end confdefs.h. */ |
|
|
8790 | $ac_includes_default |
|
|
8791 | typedef int * ac__type_new_; |
|
|
8792 | int |
|
|
8793 | main () |
|
|
8794 | { |
|
|
8795 | if ((ac__type_new_ *) 0) |
|
|
8796 | return 0; |
|
|
8797 | if (sizeof (ac__type_new_)) |
|
|
8798 | return 0; |
|
|
8799 | ; |
|
|
8800 | return 0; |
|
|
8801 | } |
|
|
8802 | _ACEOF |
|
|
8803 | rm -f conftest.$ac_objext |
|
|
8804 | if { (ac_try="$ac_compile" |
|
|
8805 | case "(($ac_try" in |
|
|
8806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8807 | *) ac_try_echo=$ac_try;; |
|
|
8808 | esac |
|
|
8809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8810 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8811 | ac_status=$? |
|
|
8812 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8813 | rm -f conftest.er1 |
|
|
8814 | cat conftest.err >&5 |
|
|
8815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8816 | (exit $ac_status); } && { |
|
|
8817 | test -z "$ac_cxx_werror_flag" || |
|
|
8818 | test ! -s conftest.err |
|
|
8819 | } && test -s conftest.$ac_objext; then |
|
|
8820 | ac_cv_type_int_p=yes |
|
|
8821 | else |
|
|
8822 | echo "$as_me: failed program was:" >&5 |
|
|
8823 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8824 | |
|
|
8825 | ac_cv_type_int_p=no |
|
|
8826 | fi |
|
|
8827 | |
|
|
8828 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8829 | fi |
|
|
8830 | { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5 |
|
|
8831 | echo "${ECHO_T}$ac_cv_type_int_p" >&6; } |
|
|
8832 | |
|
|
8833 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8834 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8835 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8836 | # This bug is HP SR number 8606223364. |
|
|
8837 | { echo "$as_me:$LINENO: checking size of int *" >&5 |
|
|
8838 | echo $ECHO_N "checking size of int *... $ECHO_C" >&6; } |
|
|
8839 | if test "${ac_cv_sizeof_int_p+set}" = set; then |
|
|
8840 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8841 | else |
|
|
8842 | if test "$cross_compiling" = yes; then |
|
|
8843 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8844 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8845 | /* confdefs.h. */ |
|
|
8846 | _ACEOF |
|
|
8847 | cat confdefs.h >>conftest.$ac_ext |
|
|
8848 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8849 | /* end confdefs.h. */ |
|
|
8850 | $ac_includes_default |
|
|
8851 | typedef int * ac__type_sizeof_; |
|
|
8852 | int |
|
|
8853 | main () |
|
|
8854 | { |
|
|
8855 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
8856 | test_array [0] = 0 |
|
|
8857 | |
|
|
8858 | ; |
|
|
8859 | return 0; |
|
|
8860 | } |
|
|
8861 | _ACEOF |
|
|
8862 | rm -f conftest.$ac_objext |
|
|
8863 | if { (ac_try="$ac_compile" |
|
|
8864 | case "(($ac_try" in |
|
|
8865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8866 | *) ac_try_echo=$ac_try;; |
|
|
8867 | esac |
|
|
8868 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8869 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8870 | ac_status=$? |
|
|
8871 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8872 | rm -f conftest.er1 |
|
|
8873 | cat conftest.err >&5 |
|
|
8874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8875 | (exit $ac_status); } && { |
|
|
8876 | test -z "$ac_cxx_werror_flag" || |
|
|
8877 | test ! -s conftest.err |
|
|
8878 | } && test -s conftest.$ac_objext; then |
|
|
8879 | ac_lo=0 ac_mid=0 |
|
|
8880 | while :; do |
|
|
8881 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8882 | /* confdefs.h. */ |
|
|
8883 | _ACEOF |
|
|
8884 | cat confdefs.h >>conftest.$ac_ext |
|
|
8885 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8886 | /* end confdefs.h. */ |
|
|
8887 | $ac_includes_default |
|
|
8888 | typedef int * ac__type_sizeof_; |
|
|
8889 | int |
|
|
8890 | main () |
|
|
8891 | { |
|
|
8892 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8893 | test_array [0] = 0 |
|
|
8894 | |
|
|
8895 | ; |
|
|
8896 | return 0; |
|
|
8897 | } |
|
|
8898 | _ACEOF |
|
|
8899 | rm -f conftest.$ac_objext |
|
|
8900 | if { (ac_try="$ac_compile" |
|
|
8901 | case "(($ac_try" in |
|
|
8902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8903 | *) ac_try_echo=$ac_try;; |
|
|
8904 | esac |
|
|
8905 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8906 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8907 | ac_status=$? |
|
|
8908 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8909 | rm -f conftest.er1 |
|
|
8910 | cat conftest.err >&5 |
|
|
8911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8912 | (exit $ac_status); } && { |
|
|
8913 | test -z "$ac_cxx_werror_flag" || |
|
|
8914 | test ! -s conftest.err |
|
|
8915 | } && test -s conftest.$ac_objext; then |
|
|
8916 | ac_hi=$ac_mid; break |
|
|
8917 | else |
|
|
8918 | echo "$as_me: failed program was:" >&5 |
|
|
8919 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8920 | |
|
|
8921 | ac_lo=`expr $ac_mid + 1` |
|
|
8922 | if test $ac_lo -le $ac_mid; then |
|
|
8923 | ac_lo= ac_hi= |
|
|
8924 | break |
|
|
8925 | fi |
|
|
8926 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8927 | fi |
|
|
8928 | |
|
|
8929 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8930 | done |
|
|
8931 | else |
|
|
8932 | echo "$as_me: failed program was:" >&5 |
|
|
8933 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8934 | |
|
|
8935 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8936 | /* confdefs.h. */ |
|
|
8937 | _ACEOF |
|
|
8938 | cat confdefs.h >>conftest.$ac_ext |
|
|
8939 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8940 | /* end confdefs.h. */ |
|
|
8941 | $ac_includes_default |
|
|
8942 | typedef int * ac__type_sizeof_; |
|
|
8943 | int |
|
|
8944 | main () |
|
|
8945 | { |
|
|
8946 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
8947 | test_array [0] = 0 |
|
|
8948 | |
|
|
8949 | ; |
|
|
8950 | return 0; |
|
|
8951 | } |
|
|
8952 | _ACEOF |
|
|
8953 | rm -f conftest.$ac_objext |
|
|
8954 | if { (ac_try="$ac_compile" |
|
|
8955 | case "(($ac_try" in |
|
|
8956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8957 | *) ac_try_echo=$ac_try;; |
|
|
8958 | esac |
|
|
8959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8960 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8961 | ac_status=$? |
|
|
8962 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8963 | rm -f conftest.er1 |
|
|
8964 | cat conftest.err >&5 |
|
|
8965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8966 | (exit $ac_status); } && { |
|
|
8967 | test -z "$ac_cxx_werror_flag" || |
|
|
8968 | test ! -s conftest.err |
|
|
8969 | } && test -s conftest.$ac_objext; then |
|
|
8970 | ac_hi=-1 ac_mid=-1 |
|
|
8971 | while :; do |
|
|
8972 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8973 | /* confdefs.h. */ |
|
|
8974 | _ACEOF |
|
|
8975 | cat confdefs.h >>conftest.$ac_ext |
|
|
8976 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8977 | /* end confdefs.h. */ |
|
|
8978 | $ac_includes_default |
|
|
8979 | typedef int * ac__type_sizeof_; |
|
|
8980 | int |
|
|
8981 | main () |
|
|
8982 | { |
|
|
8983 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
8984 | test_array [0] = 0 |
|
|
8985 | |
|
|
8986 | ; |
|
|
8987 | return 0; |
|
|
8988 | } |
|
|
8989 | _ACEOF |
|
|
8990 | rm -f conftest.$ac_objext |
|
|
8991 | if { (ac_try="$ac_compile" |
|
|
8992 | case "(($ac_try" in |
|
|
8993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8994 | *) ac_try_echo=$ac_try;; |
|
|
8995 | esac |
|
|
8996 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8997 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8998 | ac_status=$? |
|
|
8999 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9000 | rm -f conftest.er1 |
|
|
9001 | cat conftest.err >&5 |
|
|
9002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9003 | (exit $ac_status); } && { |
|
|
9004 | test -z "$ac_cxx_werror_flag" || |
|
|
9005 | test ! -s conftest.err |
|
|
9006 | } && test -s conftest.$ac_objext; then |
|
|
9007 | ac_lo=$ac_mid; break |
|
|
9008 | else |
|
|
9009 | echo "$as_me: failed program was:" >&5 |
|
|
9010 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9011 | |
|
|
9012 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
9013 | if test $ac_mid -le $ac_hi; then |
|
|
9014 | ac_lo= ac_hi= |
|
|
9015 | break |
|
|
9016 | fi |
|
|
9017 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
9018 | fi |
|
|
9019 | |
|
|
9020 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9021 | done |
|
|
9022 | else |
|
|
9023 | echo "$as_me: failed program was:" >&5 |
|
|
9024 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9025 | |
|
|
9026 | ac_lo= ac_hi= |
|
|
9027 | fi |
|
|
9028 | |
|
|
9029 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9030 | fi |
|
|
9031 | |
|
|
9032 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9033 | # Binary search between lo and hi bounds. |
|
|
9034 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
9035 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
9036 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9037 | /* confdefs.h. */ |
|
|
9038 | _ACEOF |
|
|
9039 | cat confdefs.h >>conftest.$ac_ext |
|
|
9040 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9041 | /* end confdefs.h. */ |
|
|
9042 | $ac_includes_default |
|
|
9043 | typedef int * ac__type_sizeof_; |
|
|
9044 | int |
|
|
9045 | main () |
|
|
9046 | { |
|
|
9047 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9048 | test_array [0] = 0 |
|
|
9049 | |
|
|
9050 | ; |
|
|
9051 | return 0; |
|
|
9052 | } |
|
|
9053 | _ACEOF |
|
|
9054 | rm -f conftest.$ac_objext |
|
|
9055 | if { (ac_try="$ac_compile" |
|
|
9056 | case "(($ac_try" in |
|
|
9057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9058 | *) ac_try_echo=$ac_try;; |
|
|
9059 | esac |
|
|
9060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9061 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9062 | ac_status=$? |
|
|
9063 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9064 | rm -f conftest.er1 |
|
|
9065 | cat conftest.err >&5 |
|
|
9066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9067 | (exit $ac_status); } && { |
|
|
9068 | test -z "$ac_cxx_werror_flag" || |
|
|
9069 | test ! -s conftest.err |
|
|
9070 | } && test -s conftest.$ac_objext; then |
|
|
9071 | ac_hi=$ac_mid |
|
|
9072 | else |
|
|
9073 | echo "$as_me: failed program was:" >&5 |
|
|
9074 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9075 | |
|
|
9076 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
9077 | fi |
|
|
9078 | |
|
|
9079 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9080 | done |
|
|
9081 | case $ac_lo in |
|
|
9082 | ?*) ac_cv_sizeof_int_p=$ac_lo;; |
|
|
9083 | '') if test "$ac_cv_type_int_p" = yes; then |
|
|
9084 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *) |
|
|
9085 | See \`config.log' for more details." >&5 |
|
|
9086 | echo "$as_me: error: cannot compute sizeof (int *) |
|
|
9087 | See \`config.log' for more details." >&2;} |
|
|
9088 | { (exit 77); exit 77; }; } |
|
|
9089 | else |
|
|
9090 | ac_cv_sizeof_int_p=0 |
|
|
9091 | fi ;; |
|
|
9092 | esac |
|
|
9093 | else |
|
|
9094 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9095 | /* confdefs.h. */ |
|
|
9096 | _ACEOF |
|
|
9097 | cat confdefs.h >>conftest.$ac_ext |
|
|
9098 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9099 | /* end confdefs.h. */ |
|
|
9100 | $ac_includes_default |
|
|
9101 | typedef int * ac__type_sizeof_; |
|
|
9102 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9103 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9104 | #include <stdio.h> |
|
|
9105 | #include <stdlib.h> |
|
|
9106 | int |
|
|
9107 | main () |
|
|
9108 | { |
|
|
9109 | |
|
|
9110 | FILE *f = fopen ("conftest.val", "w"); |
|
|
9111 | if (! f) |
|
|
9112 | return 1; |
|
|
9113 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
9114 | { |
|
|
9115 | long int i = longval (); |
|
|
9116 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9117 | return 1; |
|
|
9118 | fprintf (f, "%ld\n", i); |
|
|
9119 | } |
|
|
9120 | else |
|
|
9121 | { |
|
|
9122 | unsigned long int i = ulongval (); |
|
|
9123 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9124 | return 1; |
|
|
9125 | fprintf (f, "%lu\n", i); |
|
|
9126 | } |
|
|
9127 | return ferror (f) || fclose (f) != 0; |
|
|
9128 | |
|
|
9129 | ; |
|
|
9130 | return 0; |
|
|
9131 | } |
|
|
9132 | _ACEOF |
|
|
9133 | rm -f conftest$ac_exeext |
|
|
9134 | if { (ac_try="$ac_link" |
|
|
9135 | case "(($ac_try" in |
|
|
9136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9137 | *) ac_try_echo=$ac_try;; |
|
|
9138 | esac |
|
|
9139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9140 | (eval "$ac_link") 2>&5 |
|
|
9141 | ac_status=$? |
|
|
9142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9143 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
9144 | { (case "(($ac_try" in |
|
|
9145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9146 | *) ac_try_echo=$ac_try;; |
|
|
9147 | esac |
|
|
9148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9149 | (eval "$ac_try") 2>&5 |
|
|
9150 | ac_status=$? |
|
|
9151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9152 | (exit $ac_status); }; }; then |
|
|
9153 | ac_cv_sizeof_int_p=`cat conftest.val` |
|
|
9154 | else |
|
|
9155 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
9156 | echo "$as_me: failed program was:" >&5 |
|
|
9157 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9158 | |
|
|
9159 | ( exit $ac_status ) |
|
|
9160 | if test "$ac_cv_type_int_p" = yes; then |
|
|
9161 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *) |
|
|
9162 | See \`config.log' for more details." >&5 |
|
|
9163 | echo "$as_me: error: cannot compute sizeof (int *) |
|
|
9164 | See \`config.log' for more details." >&2;} |
|
|
9165 | { (exit 77); exit 77; }; } |
|
|
9166 | else |
|
|
9167 | ac_cv_sizeof_int_p=0 |
|
|
9168 | fi |
|
|
9169 | fi |
|
|
9170 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
9171 | fi |
|
|
9172 | rm -f conftest.val |
|
|
9173 | fi |
|
|
9174 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5 |
|
|
9175 | echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; } |
|
|
9176 | |
|
|
9177 | |
|
|
9178 | |
|
|
9179 | cat >>confdefs.h <<_ACEOF |
|
|
9180 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p |
|
|
9181 | _ACEOF |
|
|
9182 | |
|
|
9183 | |
|
|
9184 | |
|
|
9185 | |
|
|
9186 | { echo "$as_me:$LINENO: checking for int16_t" >&5 |
|
|
9187 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } |
|
|
9188 | if test "${rxvt_cv_int16_t+set}" = set; then |
|
|
9189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9190 | else |
|
|
9191 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9192 | /* confdefs.h. */ |
|
|
9193 | _ACEOF |
|
|
9194 | cat confdefs.h >>conftest.$ac_ext |
|
|
9195 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9196 | /* end confdefs.h. */ |
|
|
9197 | #include <stdint.h> |
|
|
9198 | int |
|
|
9199 | main () |
|
|
9200 | { |
|
|
9201 | int16_t dummy; |
|
|
9202 | ; |
|
|
9203 | return 0; |
|
|
9204 | } |
|
|
9205 | _ACEOF |
|
|
9206 | rm -f conftest.$ac_objext |
|
|
9207 | if { (ac_try="$ac_compile" |
|
|
9208 | case "(($ac_try" in |
|
|
9209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9210 | *) ac_try_echo=$ac_try;; |
|
|
9211 | esac |
|
|
9212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9213 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9214 | ac_status=$? |
|
|
9215 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9216 | rm -f conftest.er1 |
|
|
9217 | cat conftest.err >&5 |
|
|
9218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9219 | (exit $ac_status); } && { |
|
|
9220 | test -z "$ac_cxx_werror_flag" || |
|
|
9221 | test ! -s conftest.err |
|
|
9222 | } && test -s conftest.$ac_objext; then |
|
|
9223 | rxvt_cv_int16_t=yes |
|
|
9224 | else |
|
|
9225 | echo "$as_me: failed program was:" >&5 |
|
|
9226 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9227 | |
|
|
9228 | if test "$ac_cv_sizeof_char" -ge 2; then |
|
|
9229 | rxvt_cv_int16_t=" char" |
|
|
9230 | else |
|
|
9231 | if test "$ac_cv_sizeof_short" -ge 2; then |
|
|
9232 | rxvt_cv_int16_t=" short" |
|
|
9233 | else |
|
|
9234 | if test "$ac_cv_sizeof_int" -ge 2; then |
|
|
9235 | rxvt_cv_int16_t=" int" |
|
|
9236 | else |
|
|
9237 | if test "$ac_cv_sizeof_long" -ge 2; then |
|
|
9238 | rxvt_cv_int16_t=" long" |
|
|
9239 | else |
|
|
9240 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
|
|
9241 | rxvt_cv_int16_t=" long long" |
|
|
9242 | else |
|
|
9243 | rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default |
|
|
9244 | fi |
|
|
9245 | fi |
|
|
9246 | fi |
|
|
9247 | fi |
|
|
9248 | fi |
|
|
9249 | fi |
|
|
9250 | |
|
|
9251 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9252 | fi |
|
|
9253 | { echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5 |
|
|
9254 | echo "${ECHO_T}$rxvt_cv_int16_t" >&6; } |
|
|
9255 | if test x"$rxvt_cv_int16_t" != xyes; then |
|
|
9256 | rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;" |
|
|
9257 | else |
|
|
9258 | if test x"" = x; then |
|
|
9259 | rxvt_int16_typedef="/* typedef short int16_t; */" |
|
|
9260 | else |
|
|
9261 | rxvt_int16_typedef="/* typedef short int16_t; */" |
|
|
9262 | fi |
|
|
9263 | fi |
|
|
9264 | |
|
|
9265 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 |
|
|
9266 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } |
|
|
9267 | if test "${rxvt_cv_uint16_t+set}" = set; then |
|
|
9268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9269 | else |
|
|
9270 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9271 | /* confdefs.h. */ |
|
|
9272 | _ACEOF |
|
|
9273 | cat confdefs.h >>conftest.$ac_ext |
|
|
9274 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9275 | /* end confdefs.h. */ |
|
|
9276 | #include <stdint.h> |
|
|
9277 | int |
|
|
9278 | main () |
|
|
9279 | { |
|
|
9280 | uint16_t dummy; |
|
|
9281 | ; |
|
|
9282 | return 0; |
|
|
9283 | } |
|
|
9284 | _ACEOF |
|
|
9285 | rm -f conftest.$ac_objext |
|
|
9286 | if { (ac_try="$ac_compile" |
|
|
9287 | case "(($ac_try" in |
|
|
9288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9289 | *) ac_try_echo=$ac_try;; |
|
|
9290 | esac |
|
|
9291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9292 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9293 | ac_status=$? |
|
|
9294 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9295 | rm -f conftest.er1 |
|
|
9296 | cat conftest.err >&5 |
|
|
9297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9298 | (exit $ac_status); } && { |
|
|
9299 | test -z "$ac_cxx_werror_flag" || |
|
|
9300 | test ! -s conftest.err |
|
|
9301 | } && test -s conftest.$ac_objext; then |
|
|
9302 | rxvt_cv_uint16_t=yes |
|
|
9303 | else |
|
|
9304 | echo "$as_me: failed program was:" >&5 |
|
|
9305 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9306 | |
|
|
9307 | if test "$ac_cv_sizeof_char" -ge 2; then |
|
|
9308 | rxvt_cv_uint16_t="unsigned char" |
|
|
9309 | else |
|
|
9310 | if test "$ac_cv_sizeof_short" -ge 2; then |
|
|
9311 | rxvt_cv_uint16_t="unsigned short" |
|
|
9312 | else |
|
|
9313 | if test "$ac_cv_sizeof_int" -ge 2; then |
|
|
9314 | rxvt_cv_uint16_t="unsigned int" |
|
|
9315 | else |
|
|
9316 | if test "$ac_cv_sizeof_long" -ge 2; then |
|
|
9317 | rxvt_cv_uint16_t="unsigned long" |
|
|
9318 | else |
|
|
9319 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
|
|
9320 | rxvt_cv_uint16_t="unsigned long long" |
|
|
9321 | else |
|
|
9322 | rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default |
|
|
9323 | fi |
|
|
9324 | fi |
|
|
9325 | fi |
|
|
9326 | fi |
|
|
9327 | fi |
|
|
9328 | fi |
|
|
9329 | |
|
|
9330 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9331 | fi |
|
|
9332 | { echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5 |
|
|
9333 | echo "${ECHO_T}$rxvt_cv_uint16_t" >&6; } |
|
|
9334 | if test x"$rxvt_cv_uint16_t" != xyes; then |
|
|
9335 | rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;" |
|
|
9336 | else |
|
|
9337 | if test x"unsigned" = x; then |
|
|
9338 | rxvt_uint16_typedef="/* typedef short uint16_t; */" |
|
|
9339 | else |
|
|
9340 | rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */" |
|
|
9341 | fi |
|
|
9342 | fi |
|
|
9343 | |
|
|
9344 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
|
|
9345 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
|
|
9346 | if test "${rxvt_cv_int32_t+set}" = set; then |
|
|
9347 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9348 | else |
|
|
9349 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9350 | /* confdefs.h. */ |
|
|
9351 | _ACEOF |
|
|
9352 | cat confdefs.h >>conftest.$ac_ext |
|
|
9353 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9354 | /* end confdefs.h. */ |
|
|
9355 | #include <stdint.h> |
|
|
9356 | int |
|
|
9357 | main () |
|
|
9358 | { |
|
|
9359 | int32_t dummy; |
|
|
9360 | ; |
|
|
9361 | return 0; |
|
|
9362 | } |
|
|
9363 | _ACEOF |
|
|
9364 | rm -f conftest.$ac_objext |
|
|
9365 | if { (ac_try="$ac_compile" |
|
|
9366 | case "(($ac_try" in |
|
|
9367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9368 | *) ac_try_echo=$ac_try;; |
|
|
9369 | esac |
|
|
9370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9371 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9372 | ac_status=$? |
|
|
9373 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9374 | rm -f conftest.er1 |
|
|
9375 | cat conftest.err >&5 |
|
|
9376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9377 | (exit $ac_status); } && { |
|
|
9378 | test -z "$ac_cxx_werror_flag" || |
|
|
9379 | test ! -s conftest.err |
|
|
9380 | } && test -s conftest.$ac_objext; then |
|
|
9381 | rxvt_cv_int32_t=yes |
|
|
9382 | else |
|
|
9383 | echo "$as_me: failed program was:" >&5 |
|
|
9384 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9385 | |
|
|
9386 | if test "$ac_cv_sizeof_char" -ge 4; then |
|
|
9387 | rxvt_cv_int32_t=" char" |
|
|
9388 | else |
|
|
9389 | if test "$ac_cv_sizeof_short" -ge 4; then |
|
|
9390 | rxvt_cv_int32_t=" short" |
|
|
9391 | else |
|
|
9392 | if test "$ac_cv_sizeof_int" -ge 4; then |
|
|
9393 | rxvt_cv_int32_t=" int" |
|
|
9394 | else |
|
|
9395 | if test "$ac_cv_sizeof_long" -ge 4; then |
|
|
9396 | rxvt_cv_int32_t=" long" |
|
|
9397 | else |
|
|
9398 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
|
|
9399 | rxvt_cv_int32_t=" long long" |
|
|
9400 | else |
|
|
9401 | rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default |
|
|
9402 | fi |
|
|
9403 | fi |
|
|
9404 | fi |
|
|
9405 | fi |
|
|
9406 | fi |
|
|
9407 | fi |
|
|
9408 | |
|
|
9409 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9410 | fi |
|
|
9411 | { echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5 |
|
|
9412 | echo "${ECHO_T}$rxvt_cv_int32_t" >&6; } |
|
|
9413 | if test x"$rxvt_cv_int32_t" != xyes; then |
|
|
9414 | rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;" |
|
|
9415 | else |
|
|
9416 | if test x"" = x; then |
|
|
9417 | rxvt_int32_typedef="/* typedef int int32_t; */" |
|
|
9418 | else |
|
|
9419 | rxvt_int32_typedef="/* typedef int int32_t; */" |
|
|
9420 | fi |
|
|
9421 | fi |
|
|
9422 | |
|
|
9423 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
|
|
9424 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
|
|
9425 | if test "${rxvt_cv_uint32_t+set}" = set; then |
|
|
9426 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9427 | else |
|
|
9428 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9429 | /* confdefs.h. */ |
|
|
9430 | _ACEOF |
|
|
9431 | cat confdefs.h >>conftest.$ac_ext |
|
|
9432 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9433 | /* end confdefs.h. */ |
|
|
9434 | #include <stdint.h> |
|
|
9435 | int |
|
|
9436 | main () |
|
|
9437 | { |
|
|
9438 | uint32_t dummy; |
|
|
9439 | ; |
|
|
9440 | return 0; |
|
|
9441 | } |
|
|
9442 | _ACEOF |
|
|
9443 | rm -f conftest.$ac_objext |
|
|
9444 | if { (ac_try="$ac_compile" |
|
|
9445 | case "(($ac_try" in |
|
|
9446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9447 | *) ac_try_echo=$ac_try;; |
|
|
9448 | esac |
|
|
9449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9450 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9451 | ac_status=$? |
|
|
9452 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9453 | rm -f conftest.er1 |
|
|
9454 | cat conftest.err >&5 |
|
|
9455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9456 | (exit $ac_status); } && { |
|
|
9457 | test -z "$ac_cxx_werror_flag" || |
|
|
9458 | test ! -s conftest.err |
|
|
9459 | } && test -s conftest.$ac_objext; then |
|
|
9460 | rxvt_cv_uint32_t=yes |
|
|
9461 | else |
|
|
9462 | echo "$as_me: failed program was:" >&5 |
|
|
9463 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9464 | |
|
|
9465 | if test "$ac_cv_sizeof_char" -ge 4; then |
|
|
9466 | rxvt_cv_uint32_t="unsigned char" |
|
|
9467 | else |
|
|
9468 | if test "$ac_cv_sizeof_short" -ge 4; then |
|
|
9469 | rxvt_cv_uint32_t="unsigned short" |
|
|
9470 | else |
|
|
9471 | if test "$ac_cv_sizeof_int" -ge 4; then |
|
|
9472 | rxvt_cv_uint32_t="unsigned int" |
|
|
9473 | else |
|
|
9474 | if test "$ac_cv_sizeof_long" -ge 4; then |
|
|
9475 | rxvt_cv_uint32_t="unsigned long" |
|
|
9476 | else |
|
|
9477 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
|
|
9478 | rxvt_cv_uint32_t="unsigned long long" |
|
|
9479 | else |
|
|
9480 | rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default |
|
|
9481 | fi |
|
|
9482 | fi |
|
|
9483 | fi |
|
|
9484 | fi |
|
|
9485 | fi |
|
|
9486 | fi |
|
|
9487 | |
|
|
9488 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9489 | fi |
|
|
9490 | { echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5 |
|
|
9491 | echo "${ECHO_T}$rxvt_cv_uint32_t" >&6; } |
|
|
9492 | if test x"$rxvt_cv_uint32_t" != xyes; then |
|
|
9493 | rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;" |
|
|
9494 | else |
|
|
9495 | if test x"unsigned" = x; then |
|
|
9496 | rxvt_uint32_typedef="/* typedef int uint32_t; */" |
|
|
9497 | else |
|
|
9498 | rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" |
|
|
9499 | fi |
|
|
9500 | fi |
|
|
9501 | |
|
|
9502 | if test "$ac_cv_sizeof_int_p" -eq 8; then |
|
|
9503 | rxvt_intp_define="#define intp_t int64_t" |
|
|
9504 | rxvt_u_intp_define="#define u_intp_t u_int64_t" |
|
|
9505 | else |
|
|
9506 | if test "$ac_cv_sizeof_int_p" -eq 4; then |
|
|
9507 | rxvt_intp_define="#define intp_t int32_t" |
|
|
9508 | rxvt_u_intp_define="#define u_intp_t u_int32_t" |
|
|
9509 | else |
|
|
9510 | if test "$ac_cv_sizeof_int_p" -eq 2; then |
|
|
9511 | rxvt_intp_define="#define intp_t int16_t" |
|
|
9512 | rxvt_u_intp_define="#define u_intp_t u_int16_t" |
|
|
9513 | else |
|
|
9514 | rxvt_intp_define="#error set intp_t" |
|
|
9515 | rxvt_u_intp_define="#error set u_intp_t" |
|
|
9516 | fi |
|
|
9517 | fi |
|
|
9518 | fi |
|
|
9519 | |
|
|
9520 | |
|
|
9521 | |
|
|
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 | |
|
|
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 \ |
8426 | for ac_func in unsetenv |
9584 | unsetenv \ |
|
|
9585 | setutent \ |
|
|
9586 | on_exit \ |
|
|
9587 | |
|
|
9588 | do |
8427 | do |
9589 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8428 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9590 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8429 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9591 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
8430 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
9592 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
8431 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
… | |
… | |
9731 | |
8570 | |
9732 | |
8571 | |
9733 | |
8572 | |
9734 | |
8573 | |
9735 | for ac_func in \ |
8574 | for ac_func in \ |
9736 | ttyslot \ |
|
|
9737 | updwtmp \ |
8575 | updwtmp \ |
9738 | updwtmpx \ |
8576 | updwtmpx \ |
|
|
8577 | updlastlogx \ |
9739 | |
8578 | |
9740 | do |
8579 | do |
9741 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8580 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9742 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8581 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9743 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
8582 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
… | |
… | |
11164 | |
10003 | |
11165 | cat >>confdefs.h <<_ACEOF |
10004 | cat >>confdefs.h <<_ACEOF |
11166 | #define LASTLOG_FILE "$path_lastlog" |
10005 | #define LASTLOG_FILE "$path_lastlog" |
11167 | _ACEOF |
10006 | _ACEOF |
11168 | |
10007 | |
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 |
10008 | fi |
11177 | |
10009 | |
11178 | { echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
10010 | { echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
11179 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } |
10011 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } |
11180 | if test "${path_lastlogx+set}" = set; then |
10012 | if test "${path_lastlogx+set}" = set; then |
… | |
… | |
11262 | |
10094 | |
11263 | fi |
10095 | fi |
11264 | |
10096 | |
11265 | |
10097 | |
11266 | |
10098 | |
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 | |
10099 | |
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 |
10100 | save_LIBS=$LIBS |
11293 | ac_save_CFLAGS=$CFLAGS |
10101 | save_CFLAGS=$CFLAGS |
11294 | CFLAGS="$CFLAGS $X_CFLAGS" |
10102 | CFLAGS="$CFLAGS $X_CFLAGS" |
11295 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
10103 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
11296 | if test x$support_xim = xyes; then |
10104 | if test x$support_xim = xyes; then |
11297 | { echo "$as_me:$LINENO: checking for working Xlocale" >&5 |
10105 | { echo "$as_me:$LINENO: checking for working Xlocale" >&5 |
11298 | echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } |
10106 | echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } |
… | |
… | |
11473 | cat >>confdefs.h <<\_ACEOF |
10281 | cat >>confdefs.h <<\_ACEOF |
11474 | #define HAVE_XSETLOCALE 1 |
10282 | #define HAVE_XSETLOCALE 1 |
11475 | _ACEOF |
10283 | _ACEOF |
11476 | |
10284 | |
11477 | fi |
10285 | fi |
11478 | LIBS=$ac_save_LIBS |
10286 | LIBS=$save_LIBS |
11479 | CFLAGS=$ac_save_CFLAGS |
10287 | CFLAGS=$save_CFLAGS |
11480 | |
10288 | |
11481 | { echo "$as_me:$LINENO: checking for working plain setlocale" >&5 |
10289 | { echo "$as_me:$LINENO: checking for working plain setlocale" >&5 |
11482 | echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } |
10290 | echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } |
11483 | if test "${rxvt_cv_func_setlocale+set}" = set; then |
10291 | if test "${rxvt_cv_func_setlocale+set}" = set; then |
11484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
12377 | echo "${ECHO_T}no" >&6; } |
11185 | echo "${ECHO_T}no" >&6; } |
12378 | fi |
11186 | fi |
12379 | |
11187 | |
12380 | |
11188 | |
12381 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
11189 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
12382 | LIBS="$LIBS `$PKG_CONFIG xft --libs`" |
11190 | X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS" |
12383 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
11191 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
12384 | else |
11192 | else |
12385 | # Extract the first word of "xft-config", so it can be a program name with args. |
11193 | # Extract the first word of "xft-config", so it can be a program name with args. |
12386 | set dummy xft-config; ac_word=$2 |
11194 | set dummy xft-config; ac_word=$2 |
12387 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11195 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
… | |
… | |
12422 | echo "${ECHO_T}no" >&6; } |
11230 | echo "${ECHO_T}no" >&6; } |
12423 | fi |
11231 | fi |
12424 | |
11232 | |
12425 | |
11233 | |
12426 | if test $XFT_CONFIG != no; then |
11234 | if test $XFT_CONFIG != no; then |
12427 | LIBS="$LIBS `$XFT_CONFIG --libs`" |
11235 | X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" |
12428 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
11236 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
12429 | fi |
11237 | fi |
12430 | fi |
11238 | fi |
12431 | |
11239 | |
|
|
11240 | save_LIBS="$LIBS" |
|
|
11241 | LIBS="$LIBS $X_LIBS" |
12432 | |
11242 | |
12433 | for ac_header in X11/Xft/Xft.h |
11243 | for ac_header in X11/Xft/Xft.h |
12434 | do |
11244 | do |
12435 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11245 | 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 |
11246 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
… | |
… | |
12569 | support_xft=no |
11379 | support_xft=no |
12570 | fi |
11380 | fi |
12571 | |
11381 | |
12572 | done |
11382 | done |
12573 | |
11383 | |
12574 | |
|
|
12575 | { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
11384 | { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
12576 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
11385 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
12577 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
11386 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
12578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12579 | else |
11388 | else |
12580 | ac_check_lib_save_LIBS=$LIBS |
11389 | ac_check_lib_save_LIBS=$LIBS |
… | |
… | |
12632 | LIBS=$ac_check_lib_save_LIBS |
11441 | LIBS=$ac_check_lib_save_LIBS |
12633 | fi |
11442 | fi |
12634 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
11443 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
12635 | echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } |
11444 | echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } |
12636 | if test $ac_cv_lib_Xft_XftDrawString32 = yes; then |
11445 | if test $ac_cv_lib_Xft_XftDrawString32 = yes; then |
12637 | cat >>confdefs.h <<_ACEOF |
11446 | : |
12638 | #define HAVE_LIBXFT 1 |
|
|
12639 | _ACEOF |
|
|
12640 | |
|
|
12641 | LIBS="-lXft $LIBS" |
|
|
12642 | |
|
|
12643 | else |
11447 | else |
12644 | support_xft=no |
11448 | support_xft=no |
12645 | fi |
11449 | fi |
12646 | |
11450 | |
|
|
11451 | LIBS="$save_LIBS" |
12647 | |
11452 | |
12648 | if test x$support_xft = xyes; then |
11453 | if test x$support_xft = xyes; then |
12649 | |
11454 | |
12650 | cat >>confdefs.h <<\_ACEOF |
11455 | cat >>confdefs.h <<\_ACEOF |
12651 | #define XFT 1 |
11456 | #define XFT 1 |
… | |
… | |
13038 | _ACEOF |
11843 | _ACEOF |
13039 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
11844 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
13040 | rm -f conftest.sed |
11845 | rm -f conftest.sed |
13041 | |
11846 | |
13042 | |
11847 | |
13043 | |
|
|
13044 | |
|
|
13045 | |
|
|
13046 | if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13047 | include_stdint_h="#include <stdint.h>" |
|
|
13048 | else |
|
|
13049 | include_stdint_h="/* #include <stdint.h> */" |
|
|
13050 | fi |
|
|
13051 | if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13052 | include_stdarg_h="#include <cstdarg>" |
|
|
13053 | else |
|
|
13054 | include_stdarg_h="/* #include <cstdarg> */" |
|
|
13055 | fi |
|
|
13056 | if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13057 | include_stdlib_h="#include <cstdlib>" |
|
|
13058 | else |
|
|
13059 | include_stdlib_h="/* #include <cstdlib> */" |
|
|
13060 | fi |
|
|
13061 | if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13062 | include_unistd_h="#include <unistd.h>" |
|
|
13063 | else |
|
|
13064 | include_unistd_h="/* #include <unistd.h> */" |
|
|
13065 | fi |
|
|
13066 | if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13067 | include_string_h="#include <cstring>" |
|
|
13068 | else |
|
|
13069 | include_string_h="/* #include <cstring> */" |
|
|
13070 | fi |
|
|
13071 | if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13072 | include_fcntl_h="#include <fcntl.h>" |
|
|
13073 | else |
|
|
13074 | include_fcntl_h="/* #include <fcntl.h> */" |
|
|
13075 | fi |
|
|
13076 | if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13077 | include_util_h="#include <util.h>" |
|
|
13078 | else |
|
|
13079 | include_util_h="/* #include <util.h> */" |
|
|
13080 | fi |
|
|
13081 | if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13082 | include_assert_h="#include <assert.h>" |
|
|
13083 | else |
|
|
13084 | include_assert_h="/* #include <assert.h> */" |
|
|
13085 | fi |
|
|
13086 | if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13087 | include_sys_ioctl_h="#include <sys/ioctl.h>" |
|
|
13088 | else |
|
|
13089 | include_sys_ioctl_h="/* #include <sys/ioctl.h> */" |
|
|
13090 | fi |
|
|
13091 | if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13092 | include_sys_select_h="#include <sys/select.h>" |
|
|
13093 | else |
|
|
13094 | include_sys_select_h="/* #include <sys/select.h> */" |
|
|
13095 | fi |
|
|
13096 | if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13097 | include_sys_strredir_h="#include <sys/strredir.h>" |
|
|
13098 | else |
|
|
13099 | include_sys_strredir_h="/* #include <sys/strredir.h> */" |
|
|
13100 | fi |
|
|
13101 | if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13102 | include_sys_time_h="#include <sys/time.h>" |
|
|
13103 | else |
|
|
13104 | include_sys_time_h="/* #include <sys/time.h> */" |
|
|
13105 | fi |
|
|
13106 | if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then |
|
|
13107 | include_time_h="#include <time.h>" |
|
|
13108 | else |
|
|
13109 | include_time_h="/* #include <time.h> */" |
|
|
13110 | fi |
|
|
13111 | |
|
|
13112 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" |
11848 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile" |
13113 | |
11849 | |
13114 | cat >confcache <<\_ACEOF |
11850 | cat >confcache <<\_ACEOF |
13115 | # This file is a shell script that caches the results of configure |
11851 | # This file is a shell script that caches the results of configure |
13116 | # tests run on this system so they can be shared between configure |
11852 | # tests run on this system so they can be shared between configure |
13117 | # scripts and configure runs, see configure's option --config-cache. |
11853 | # scripts and configure runs, see configure's option --config-cache. |
… | |
… | |
13666 | case $ac_config_target in |
12402 | case $ac_config_target in |
13667 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; |
12403 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; |
13668 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
12404 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
13669 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
12405 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
13670 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
12406 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
13671 | "src/rxvtlib.h") CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; |
|
|
13672 | |
12407 | |
13673 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
12408 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
13674 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
12409 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
13675 | { (exit 1); exit 1; }; };; |
12410 | { (exit 1); exit 1; }; };; |
13676 | esac |
12411 | esac |
… | |
… | |
13775 | host_cpu!$host_cpu$ac_delim |
12510 | host_cpu!$host_cpu$ac_delim |
13776 | host_vendor!$host_vendor$ac_delim |
12511 | host_vendor!$host_vendor$ac_delim |
13777 | host_os!$host_os$ac_delim |
12512 | host_os!$host_os$ac_delim |
13778 | VERSION!$VERSION$ac_delim |
12513 | VERSION!$VERSION$ac_delim |
13779 | DATE!$DATE$ac_delim |
12514 | DATE!$DATE$ac_delim |
13780 | LSMDATE!$LSMDATE$ac_delim |
|
|
13781 | LIBVERSION!$LIBVERSION$ac_delim |
|
|
13782 | CC!$CC$ac_delim |
12515 | CC!$CC$ac_delim |
13783 | CFLAGS!$CFLAGS$ac_delim |
12516 | CFLAGS!$CFLAGS$ac_delim |
13784 | LDFLAGS!$LDFLAGS$ac_delim |
12517 | LDFLAGS!$LDFLAGS$ac_delim |
13785 | CPPFLAGS!$CPPFLAGS$ac_delim |
12518 | CPPFLAGS!$CPPFLAGS$ac_delim |
13786 | ac_ct_CC!$ac_ct_CC$ac_delim |
12519 | ac_ct_CC!$ac_ct_CC$ac_delim |
… | |
… | |
13794 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
12527 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
13795 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
12528 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
13796 | GREP!$GREP$ac_delim |
12529 | GREP!$GREP$ac_delim |
13797 | EGREP!$EGREP$ac_delim |
12530 | EGREP!$EGREP$ac_delim |
13798 | LINKER!$LINKER$ac_delim |
12531 | LINKER!$LINKER$ac_delim |
13799 | INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim |
|
|
13800 | RXVTNAME!$RXVTNAME$ac_delim |
12532 | RXVTNAME!$RXVTNAME$ac_delim |
|
|
12533 | CXXCPP!$CXXCPP$ac_delim |
13801 | TIC!$TIC$ac_delim |
12534 | TIC!$TIC$ac_delim |
13802 | XMKMF!$XMKMF$ac_delim |
12535 | XMKMF!$XMKMF$ac_delim |
13803 | CXXCPP!$CXXCPP$ac_delim |
|
|
13804 | X_CFLAGS!$X_CFLAGS$ac_delim |
12536 | X_CFLAGS!$X_CFLAGS$ac_delim |
13805 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
12537 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
13806 | X_LIBS!$X_LIBS$ac_delim |
12538 | X_LIBS!$X_LIBS$ac_delim |
13807 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
12539 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
13808 | afterimage_config!$afterimage_config$ac_delim |
12540 | afterimage_config!$afterimage_config$ac_delim |
13809 | rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim |
|
|
13810 | rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim |
|
|
13811 | rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim |
|
|
13812 | rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim |
|
|
13813 | rxvt_intp_define!$rxvt_intp_define$ac_delim |
|
|
13814 | rxvt_u_intp_define!$rxvt_u_intp_define$ac_delim |
|
|
13815 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
12541 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
13816 | XFT_CONFIG!$XFT_CONFIG$ac_delim |
12542 | XFT_CONFIG!$XFT_CONFIG$ac_delim |
13817 | PERL!$PERL$ac_delim |
12543 | PERL!$PERL$ac_delim |
13818 | PERLLIB!$PERLLIB$ac_delim |
12544 | PERLLIB!$PERLLIB$ac_delim |
13819 | PERLFLAGS!$PERLFLAGS$ac_delim |
12545 | PERLFLAGS!$PERLFLAGS$ac_delim |
13820 | PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim |
12546 | PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim |
13821 | IF_PERL!$IF_PERL$ac_delim |
12547 | IF_PERL!$IF_PERL$ac_delim |
13822 | PERL_O!$PERL_O$ac_delim |
12548 | PERL_O!$PERL_O$ac_delim |
13823 | AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim |
12549 | AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim |
13824 | AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim |
12550 | AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim |
13825 | include_stdint_h!$include_stdint_h$ac_delim |
12551 | LIBOBJS!$LIBOBJS$ac_delim |
13826 | include_stdarg_h!$include_stdarg_h$ac_delim |
12552 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
13827 | include_stdlib_h!$include_stdlib_h$ac_delim |
|
|
13828 | include_unistd_h!$include_unistd_h$ac_delim |
|
|
13829 | include_string_h!$include_string_h$ac_delim |
|
|
13830 | _ACEOF |
12553 | _ACEOF |
13831 | |
12554 | |
13832 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
12555 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 85; then |
13833 | break |
12556 | break |
13834 | elif $ac_last_try; then |
12557 | elif $ac_last_try; then |
13835 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
12558 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
13836 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
12559 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
13837 | { (exit 1); exit 1; }; } |
12560 | { (exit 1); exit 1; }; } |
… | |
… | |
13846 | ac_eof=`expr $ac_eof + 1` |
12569 | ac_eof=`expr $ac_eof + 1` |
13847 | fi |
12570 | fi |
13848 | |
12571 | |
13849 | cat >>$CONFIG_STATUS <<_ACEOF |
12572 | cat >>$CONFIG_STATUS <<_ACEOF |
13850 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
12573 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
13851 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
|
|
13852 | _ACEOF |
|
|
13853 | sed ' |
|
|
13854 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
|
|
13855 | s/^/s,@/; s/!/@,|#_!!_#|/ |
|
|
13856 | :n |
|
|
13857 | t n |
|
|
13858 | s/'"$ac_delim"'$/,g/; t |
|
|
13859 | s/$/\\/; p |
|
|
13860 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
|
|
13861 | ' >>$CONFIG_STATUS <conf$$subs.sed |
|
|
13862 | rm -f conf$$subs.sed |
|
|
13863 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
13864 | CEOF$ac_eof |
|
|
13865 | _ACEOF |
|
|
13866 | |
|
|
13867 | |
|
|
13868 | ac_delim='%!_!# ' |
|
|
13869 | for ac_last_try in false false false false false :; do |
|
|
13870 | 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 |
|
|
13875 | include_sys_select_h!$include_sys_select_h$ac_delim |
|
|
13876 | include_sys_strredir_h!$include_sys_strredir_h$ac_delim |
|
|
13877 | include_sys_time_h!$include_sys_time_h$ac_delim |
|
|
13878 | include_time_h!$include_time_h$ac_delim |
|
|
13879 | LIBOBJS!$LIBOBJS$ac_delim |
|
|
13880 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
|
|
13881 | _ACEOF |
|
|
13882 | |
|
|
13883 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then |
|
|
13884 | break |
|
|
13885 | elif $ac_last_try; then |
|
|
13886 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
|
|
13887 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
|
|
13888 | { (exit 1); exit 1; }; } |
|
|
13889 | else |
|
|
13890 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|
|
13891 | fi |
|
|
13892 | done |
|
|
13893 | |
|
|
13894 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
|
|
13895 | if test -n "$ac_eof"; then |
|
|
13896 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
|
|
13897 | ac_eof=`expr $ac_eof + 1` |
|
|
13898 | fi |
|
|
13899 | |
|
|
13900 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
13901 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
|
|
13902 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
12574 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
13903 | _ACEOF |
12575 | _ACEOF |
13904 | sed ' |
12576 | sed ' |
13905 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
12577 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
13906 | s/^/s,@/; s/!/@,|#_!!_#|/ |
12578 | s/^/s,@/; s/!/@,|#_!!_#|/ |
… | |
… | |
14159 | s&@builddir@&$ac_builddir&;t t |
12831 | s&@builddir@&$ac_builddir&;t t |
14160 | s&@abs_builddir@&$ac_abs_builddir&;t t |
12832 | s&@abs_builddir@&$ac_abs_builddir&;t t |
14161 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
12833 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
14162 | s&@INSTALL@&$ac_INSTALL&;t t |
12834 | s&@INSTALL@&$ac_INSTALL&;t t |
14163 | $ac_datarootdir_hack |
12835 | $ac_datarootdir_hack |
14164 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
12836 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out |
14165 | |
12837 | |
14166 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
12838 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
14167 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
12839 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
14168 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
12840 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
14169 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
12841 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |