… | |
… | |
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 |
… | |
… | |
1315 | |
1293 | |
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-assert enable assertions |
1322 | --enable-warnings turn on g++ warnings |
1300 | --enable-warnings turn on g++ warnings |
1323 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1301 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1324 | --enable-combining enable composition of base and combining characters |
1302 | --enable-combining enable composition of base and combining characters |
1325 | --enable-xft enable xft support on systems that have it |
1303 | --enable-xft enable xft support on systems that have it |
1326 | --enable-font-styles enable bold and italic support |
1304 | --enable-font-styles enable bold and italic support |
1327 | --enable-afterimage enable integration with libAfterImage for background images |
1305 | --enable-afterimage enable integration with libAfterImage for background images |
1328 | --enable-transparency enable transparent backgrounds |
1306 | --enable-transparency enable transparent backgrounds |
1329 | --enable-fading enable colors fading when off focus |
1307 | --enable-fading enable colors fading when off focus |
1330 | --enable-rxvt-scroll enable rxvt style scrollbar |
1308 | --enable-rxvt-scroll enable rxvt style scrollbar |
1331 | --enable-next-scroll enable NeXT style scrollbar |
1309 | --enable-next-scroll enable NeXT style scrollbar |
1332 | --enable-xterm-scroll enable Xterm style scrollbar |
1310 | --enable-xterm-scroll enable Xterm style scrollbar |
1333 | --enable-perl enable embedded perl interpreter |
1311 | --enable-perl enable embedded perl interpreter |
1334 | --enable-plain-scroll enable plain style scrollbar |
|
|
1335 | --enable-xim XIM (X Input Method) protocol support |
1312 | --enable-xim XIM (X Input Method) protocol support |
1336 | --disable-backspace-key disable handling of the backspace key |
1313 | --disable-backspace-key disable handling of the backspace key |
1337 | --disable-delete-key disable handling of the delete key |
1314 | --disable-delete-key disable handling of the delete key |
1338 | --disable-resources disable all resource checking |
1315 | --disable-resources disable all resource checking |
1339 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
1316 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
… | |
… | |
1373 | 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 |
1374 | you have headers in a nonstandard directory <include dir> |
1351 | you have headers in a nonstandard directory <include dir> |
1375 | CXX C++ compiler command |
1352 | CXX C++ compiler command |
1376 | CXXFLAGS C++ compiler flags |
1353 | CXXFLAGS C++ compiler flags |
1377 | CPP C preprocessor |
1354 | CPP C preprocessor |
|
|
1355 | CXXCPP C++ preprocessor |
1378 | XMKMF Path to xmkmf, Makefile generator for X Window System |
1356 | XMKMF Path to xmkmf, Makefile generator for X Window System |
1379 | CXXCPP C++ preprocessor |
|
|
1380 | |
1357 | |
1381 | 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 |
1382 | it to find libraries and programs with nonstandard names/locations. |
1359 | it to find libraries and programs with nonstandard names/locations. |
1383 | |
1360 | |
1384 | _ACEOF |
1361 | _ACEOF |
… | |
… | |
1920 | |
1897 | |
1921 | |
1898 | |
1922 | |
1899 | |
1923 | 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` |
1924 | 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 | |
1925 | echo "" |
1903 | echo "" |
1926 | echo "configuring for rxvt $VERSION" |
1904 | echo "configuring for rxvt $VERSION" |
1927 | echo "" |
1905 | echo "" |
1928 | |
1906 | |
1929 | orig_CXXFLAGS="$CXXFLAGS" |
1907 | orig_CXXFLAGS="$CXXFLAGS" |
1930 | |
|
|
1931 | |
1908 | |
1932 | ac_ext=c |
1909 | ac_ext=c |
1933 | ac_cpp='$CPP $CPPFLAGS' |
1910 | ac_cpp='$CPP $CPPFLAGS' |
1934 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1911 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1935 | 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' |
… | |
… | |
3714 | echo "${ECHO_T}no" >&6; } |
3691 | echo "${ECHO_T}no" >&6; } |
3715 | fi |
3692 | fi |
3716 | rm -f conftest* |
3693 | rm -f conftest* |
3717 | |
3694 | |
3718 | |
3695 | |
|
|
3696 | |
|
|
3697 | cat >>confdefs.h <<\_ACEOF |
|
|
3698 | #define _GNU_SOURCE 1 |
|
|
3699 | _ACEOF |
|
|
3700 | |
|
|
3701 | |
3719 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
3702 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
3720 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } |
3703 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } |
3721 | if test "${ac_cv_search_strerror+set}" = set; then |
3704 | if test "${ac_cv_search_strerror+set}" = set; then |
3722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3723 | else |
3706 | else |
… | |
… | |
3870 | LINKER=$LINKER |
3853 | LINKER=$LINKER |
3871 | |
3854 | |
3872 | |
3855 | |
3873 | if test -z "$orig_CXXFLAGS"; then |
3856 | if test -z "$orig_CXXFLAGS"; then |
3874 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
3857 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
3875 | 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" |
3876 | cat >conftest.$ac_ext <<_ACEOF |
3859 | cat >conftest.$ac_ext <<_ACEOF |
3877 | /* confdefs.h. */ |
3860 | /* confdefs.h. */ |
3878 | _ACEOF |
3861 | _ACEOF |
3879 | cat confdefs.h >>conftest.$ac_ext |
3862 | cat confdefs.h >>conftest.$ac_ext |
3880 | cat >>conftest.$ac_ext <<_ACEOF |
3863 | cat >>conftest.$ac_ext <<_ACEOF |
… | |
… | |
3918 | CXXFLAGS="-O" |
3901 | CXXFLAGS="-O" |
3919 | fi |
3902 | fi |
3920 | CFLAGS="$CXXFLAGS" |
3903 | CFLAGS="$CXXFLAGS" |
3921 | fi |
3904 | fi |
3922 | |
3905 | |
3923 | |
|
|
3924 | cat >>confdefs.h <<\_ACEOF |
|
|
3925 | #define _GNU_SOURCE 1 |
|
|
3926 | _ACEOF |
|
|
3927 | |
|
|
3928 | |
|
|
3929 | case $host in |
3906 | case $host in |
3930 | *-*-solaris* ) |
3907 | *-*-solaris* ) |
3931 | |
3908 | |
3932 | cat >>confdefs.h <<\_ACEOF |
3909 | cat >>confdefs.h <<\_ACEOF |
3933 | #define _XOPEN_SOURCE 500 |
3910 | #define _XOPEN_SOURCE 500 |
3934 | _ACEOF |
3911 | _ACEOF |
3935 | |
3912 | |
3936 | ;; |
3913 | ;; |
3937 | esac |
3914 | esac |
3938 | |
|
|
3939 | |
3915 | |
3940 | { echo "$as_me:$LINENO: checking for setlocale" >&5 |
3916 | { echo "$as_me:$LINENO: checking for setlocale" >&5 |
3941 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } |
3917 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } |
3942 | if test "${ac_cv_func_setlocale+set}" = set; then |
3918 | if test "${ac_cv_func_setlocale+set}" = set; then |
3943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
4390 | fi |
4366 | fi |
4391 | |
4367 | |
4392 | fi |
4368 | fi |
4393 | |
4369 | |
4394 | |
4370 | |
4395 | |
|
|
4396 | support_frills=yes |
4371 | support_frills=yes |
4397 | support_inheritpixmap=yes |
4372 | support_inheritpixmap=yes |
4398 | support_fading=yes |
4373 | support_fading=yes |
4399 | support_keepscrolling=yes |
4374 | support_keepscrolling=yes |
4400 | support_selectionscrolling=yes |
4375 | support_selectionscrolling=yes |
… | |
… | |
4403 | support_text_blink=yes |
4378 | support_text_blink=yes |
4404 | support_pointer_blank=yes |
4379 | support_pointer_blank=yes |
4405 | support_scroll_rxvt=yes |
4380 | support_scroll_rxvt=yes |
4406 | support_scroll_next=yes |
4381 | support_scroll_next=yes |
4407 | support_scroll_xterm=yes |
4382 | support_scroll_xterm=yes |
4408 | support_scroll_plain=yes |
|
|
4409 | support_xim=yes |
4383 | support_xim=yes |
4410 | support_afterimage=yes |
4384 | support_afterimage=yes |
4411 | support_afterstep=yes |
4385 | support_afterstep=yes |
4412 | support_xft=yes |
4386 | support_xft=yes |
4413 | support_unicode3=no |
4387 | support_unicode3=no |
… | |
… | |
4415 | support_8bitctrls=no |
4389 | support_8bitctrls=no |
4416 | support_iso14755=yes |
4390 | support_iso14755=yes |
4417 | support_styles=yes |
4391 | support_styles=yes |
4418 | support_perl=yes |
4392 | support_perl=yes |
4419 | codesets=all |
4393 | codesets=all |
4420 | |
|
|
4421 | |
|
|
4422 | if test "x$enable_shared" = xyes; then |
|
|
4423 | |
|
|
4424 | cat >>confdefs.h <<\_ACEOF |
|
|
4425 | #define LIBRXVT 1 |
|
|
4426 | _ACEOF |
|
|
4427 | |
|
|
4428 | INSTALL_LIBRXVT=yes |
|
|
4429 | fi |
|
|
4430 | |
4394 | |
4431 | |
4395 | |
4432 | # Check whether --enable-everything was given. |
4396 | # Check whether --enable-everything was given. |
4433 | if test "${enable_everything+set}" = set; then |
4397 | if test "${enable_everything+set}" = set; then |
4434 | enableval=$enable_everything; |
4398 | enableval=$enable_everything; |
… | |
… | |
4444 | support_text_blink=no |
4408 | support_text_blink=no |
4445 | support_pointer_blank=no |
4409 | support_pointer_blank=no |
4446 | support_scroll_rxvt=no |
4410 | support_scroll_rxvt=no |
4447 | support_scroll_next=no |
4411 | support_scroll_next=no |
4448 | support_scroll_xterm=no |
4412 | support_scroll_xterm=no |
4449 | support_scroll_plain=no |
|
|
4450 | support_utmp=no |
4413 | support_utmp=no |
4451 | support_wtmp=no |
4414 | support_wtmp=no |
4452 | support_xim=no |
4415 | support_xim=no |
4453 | support_afterimage=no |
4416 | support_afterimage=no |
4454 | support_afterstep=no |
4417 | support_afterstep=no |
… | |
… | |
4473 | support_text_blink=yes |
4436 | support_text_blink=yes |
4474 | support_pointer_blank=yes |
4437 | support_pointer_blank=yes |
4475 | support_scroll_rxvt=yes |
4438 | support_scroll_rxvt=yes |
4476 | support_scroll_next=yes |
4439 | support_scroll_next=yes |
4477 | support_scroll_xterm=yes |
4440 | support_scroll_xterm=yes |
4478 | support_scroll_plain=yes |
|
|
4479 | support_utmp=yes |
4441 | support_utmp=yes |
4480 | support_wtmp=yes |
4442 | support_wtmp=yes |
4481 | support_xim=yes |
4443 | support_xim=yes |
4482 | support_afterimage=yes |
4444 | support_afterimage=yes |
4483 | support_afterstep=yes |
4445 | support_afterstep=yes |
… | |
… | |
4492 | fi |
4454 | fi |
4493 | |
4455 | |
4494 | fi |
4456 | fi |
4495 | |
4457 | |
4496 | |
4458 | |
|
|
4459 | ASSERTIONS=no |
|
|
4460 | # Check whether --enable-assert was given. |
|
|
4461 | if test "${enable_assert+set}" = set; then |
|
|
4462 | enableval=$enable_assert; if test x$enableval = xyes; then |
|
|
4463 | ASSERTIONS=yes |
|
|
4464 | fi |
|
|
4465 | fi |
|
|
4466 | |
|
|
4467 | if test x$ASSERTIONS = xno; then |
|
|
4468 | |
|
|
4469 | cat >>confdefs.h <<\_ACEOF |
|
|
4470 | #define NDEBUG 1 |
|
|
4471 | _ACEOF |
|
|
4472 | |
|
|
4473 | fi |
|
|
4474 | |
4497 | WARNINGS=no |
4475 | WARNINGS=no |
4498 | # Check whether --enable-warnings was given. |
4476 | # Check whether --enable-warnings was given. |
4499 | if test "${enable_warnings+set}" = set; then |
4477 | if test "${enable_warnings+set}" = set; then |
4500 | enableval=$enable_warnings; if test x$enableval = xyes; then |
4478 | enableval=$enable_warnings; if test x$enableval = xyes; then |
4501 | WARNINGS=yes |
4479 | WARNINGS=yes |
… | |
… | |
4648 | support_perl=$enableval |
4626 | support_perl=$enableval |
4649 | fi |
4627 | fi |
4650 | fi |
4628 | fi |
4651 | |
4629 | |
4652 | |
4630 | |
4653 | # Check whether --enable-plain-scroll was given. |
|
|
4654 | if test "${enable_plain_scroll+set}" = set; then |
|
|
4655 | enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4656 | support_scroll_plain=$enableval |
|
|
4657 | fi |
|
|
4658 | fi |
|
|
4659 | |
|
|
4660 | |
|
|
4661 | |
4631 | |
4662 | # Check whether --with-codesets was given. |
4632 | # Check whether --with-codesets was given. |
4663 | if test "${with_codesets+set}" = set; then |
4633 | if test "${with_codesets+set}" = set; then |
4664 | withval=$with_codesets; codesets="$withval" |
4634 | withval=$with_codesets; codesets="$withval" |
4665 | fi |
4635 | fi |
… | |
… | |
4888 | #define RXVT_TERMINFO "$withval" |
4858 | #define RXVT_TERMINFO "$withval" |
4889 | _ACEOF |
4859 | _ACEOF |
4890 | terminfo="$withval" |
4860 | terminfo="$withval" |
4891 | fi |
4861 | fi |
4892 | fi |
4862 | fi |
|
|
4863 | |
|
|
4864 | |
|
|
4865 | |
|
|
4866 | LIBEV_M4_AVOID_LIBRT=1 |
|
|
4867 | |
|
|
4868 | ac_ext=cpp |
|
|
4869 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
4870 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4871 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4872 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
4873 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
4874 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
|
|
4875 | if test -z "$CXXCPP"; then |
|
|
4876 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
|
4877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4878 | else |
|
|
4879 | # Double quotes because CXXCPP needs to be expanded |
|
|
4880 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
4881 | do |
|
|
4882 | ac_preproc_ok=false |
|
|
4883 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4884 | do |
|
|
4885 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4886 | # with a fresh cross-compiler works. |
|
|
4887 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4888 | # <limits.h> exists even on freestanding compilers. |
|
|
4889 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4890 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4891 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4892 | /* confdefs.h. */ |
|
|
4893 | _ACEOF |
|
|
4894 | cat confdefs.h >>conftest.$ac_ext |
|
|
4895 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4896 | /* end confdefs.h. */ |
|
|
4897 | #ifdef __STDC__ |
|
|
4898 | # include <limits.h> |
|
|
4899 | #else |
|
|
4900 | # include <assert.h> |
|
|
4901 | #endif |
|
|
4902 | Syntax error |
|
|
4903 | _ACEOF |
|
|
4904 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4905 | case "(($ac_try" in |
|
|
4906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4907 | *) ac_try_echo=$ac_try;; |
|
|
4908 | esac |
|
|
4909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4910 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4911 | ac_status=$? |
|
|
4912 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4913 | rm -f conftest.er1 |
|
|
4914 | cat conftest.err >&5 |
|
|
4915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4916 | (exit $ac_status); } >/dev/null && { |
|
|
4917 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4918 | test ! -s conftest.err |
|
|
4919 | }; then |
|
|
4920 | : |
|
|
4921 | else |
|
|
4922 | echo "$as_me: failed program was:" >&5 |
|
|
4923 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4924 | |
|
|
4925 | # Broken: fails on valid input. |
|
|
4926 | continue |
|
|
4927 | fi |
|
|
4928 | |
|
|
4929 | rm -f conftest.err conftest.$ac_ext |
|
|
4930 | |
|
|
4931 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
4932 | # can be detected and how. |
|
|
4933 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4934 | /* confdefs.h. */ |
|
|
4935 | _ACEOF |
|
|
4936 | cat confdefs.h >>conftest.$ac_ext |
|
|
4937 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4938 | /* end confdefs.h. */ |
|
|
4939 | #include <ac_nonexistent.h> |
|
|
4940 | _ACEOF |
|
|
4941 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4942 | case "(($ac_try" in |
|
|
4943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4944 | *) ac_try_echo=$ac_try;; |
|
|
4945 | esac |
|
|
4946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4947 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4948 | ac_status=$? |
|
|
4949 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4950 | rm -f conftest.er1 |
|
|
4951 | cat conftest.err >&5 |
|
|
4952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4953 | (exit $ac_status); } >/dev/null && { |
|
|
4954 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4955 | test ! -s conftest.err |
|
|
4956 | }; then |
|
|
4957 | # Broken: success on invalid input. |
|
|
4958 | continue |
|
|
4959 | else |
|
|
4960 | echo "$as_me: failed program was:" >&5 |
|
|
4961 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4962 | |
|
|
4963 | # Passes both tests. |
|
|
4964 | ac_preproc_ok=: |
|
|
4965 | break |
|
|
4966 | fi |
|
|
4967 | |
|
|
4968 | rm -f conftest.err conftest.$ac_ext |
|
|
4969 | |
|
|
4970 | done |
|
|
4971 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
4972 | rm -f conftest.err conftest.$ac_ext |
|
|
4973 | if $ac_preproc_ok; then |
|
|
4974 | break |
|
|
4975 | fi |
|
|
4976 | |
|
|
4977 | done |
|
|
4978 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
4979 | |
|
|
4980 | fi |
|
|
4981 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
4982 | else |
|
|
4983 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
4984 | fi |
|
|
4985 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
4986 | echo "${ECHO_T}$CXXCPP" >&6; } |
|
|
4987 | ac_preproc_ok=false |
|
|
4988 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4989 | do |
|
|
4990 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4991 | # with a fresh cross-compiler works. |
|
|
4992 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4993 | # <limits.h> exists even on freestanding compilers. |
|
|
4994 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4995 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4996 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4997 | /* confdefs.h. */ |
|
|
4998 | _ACEOF |
|
|
4999 | cat confdefs.h >>conftest.$ac_ext |
|
|
5000 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5001 | /* end confdefs.h. */ |
|
|
5002 | #ifdef __STDC__ |
|
|
5003 | # include <limits.h> |
|
|
5004 | #else |
|
|
5005 | # include <assert.h> |
|
|
5006 | #endif |
|
|
5007 | Syntax error |
|
|
5008 | _ACEOF |
|
|
5009 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5010 | case "(($ac_try" in |
|
|
5011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5012 | *) ac_try_echo=$ac_try;; |
|
|
5013 | esac |
|
|
5014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5015 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5016 | ac_status=$? |
|
|
5017 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5018 | rm -f conftest.er1 |
|
|
5019 | cat conftest.err >&5 |
|
|
5020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5021 | (exit $ac_status); } >/dev/null && { |
|
|
5022 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5023 | test ! -s conftest.err |
|
|
5024 | }; then |
|
|
5025 | : |
|
|
5026 | else |
|
|
5027 | echo "$as_me: failed program was:" >&5 |
|
|
5028 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5029 | |
|
|
5030 | # Broken: fails on valid input. |
|
|
5031 | continue |
|
|
5032 | fi |
|
|
5033 | |
|
|
5034 | rm -f conftest.err conftest.$ac_ext |
|
|
5035 | |
|
|
5036 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
5037 | # can be detected and how. |
|
|
5038 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5039 | /* confdefs.h. */ |
|
|
5040 | _ACEOF |
|
|
5041 | cat confdefs.h >>conftest.$ac_ext |
|
|
5042 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5043 | /* end confdefs.h. */ |
|
|
5044 | #include <ac_nonexistent.h> |
|
|
5045 | _ACEOF |
|
|
5046 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5047 | case "(($ac_try" in |
|
|
5048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5049 | *) ac_try_echo=$ac_try;; |
|
|
5050 | esac |
|
|
5051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5052 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5053 | ac_status=$? |
|
|
5054 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5055 | rm -f conftest.er1 |
|
|
5056 | cat conftest.err >&5 |
|
|
5057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5058 | (exit $ac_status); } >/dev/null && { |
|
|
5059 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5060 | test ! -s conftest.err |
|
|
5061 | }; then |
|
|
5062 | # Broken: success on invalid input. |
|
|
5063 | continue |
|
|
5064 | else |
|
|
5065 | echo "$as_me: failed program was:" >&5 |
|
|
5066 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5067 | |
|
|
5068 | # Passes both tests. |
|
|
5069 | ac_preproc_ok=: |
|
|
5070 | break |
|
|
5071 | fi |
|
|
5072 | |
|
|
5073 | rm -f conftest.err conftest.$ac_ext |
|
|
5074 | |
|
|
5075 | done |
|
|
5076 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5077 | rm -f conftest.err conftest.$ac_ext |
|
|
5078 | if $ac_preproc_ok; then |
|
|
5079 | : |
|
|
5080 | else |
|
|
5081 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5082 | See \`config.log' for more details." >&5 |
|
|
5083 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5084 | See \`config.log' for more details." >&2;} |
|
|
5085 | { (exit 1); exit 1; }; } |
|
|
5086 | fi |
|
|
5087 | |
|
|
5088 | ac_ext=cpp |
|
|
5089 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5090 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5091 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5092 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
5093 | |
|
|
5094 | |
|
|
5095 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
5096 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
|
|
5097 | if test "${ac_cv_header_stdc+set}" = set; then |
|
|
5098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5099 | else |
|
|
5100 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5101 | /* confdefs.h. */ |
|
|
5102 | _ACEOF |
|
|
5103 | cat confdefs.h >>conftest.$ac_ext |
|
|
5104 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5105 | /* end confdefs.h. */ |
|
|
5106 | #include <stdlib.h> |
|
|
5107 | #include <stdarg.h> |
|
|
5108 | #include <string.h> |
|
|
5109 | #include <float.h> |
|
|
5110 | |
|
|
5111 | int |
|
|
5112 | main () |
|
|
5113 | { |
|
|
5114 | |
|
|
5115 | ; |
|
|
5116 | return 0; |
|
|
5117 | } |
|
|
5118 | _ACEOF |
|
|
5119 | rm -f conftest.$ac_objext |
|
|
5120 | if { (ac_try="$ac_compile" |
|
|
5121 | case "(($ac_try" in |
|
|
5122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5123 | *) ac_try_echo=$ac_try;; |
|
|
5124 | esac |
|
|
5125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5126 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5127 | ac_status=$? |
|
|
5128 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5129 | rm -f conftest.er1 |
|
|
5130 | cat conftest.err >&5 |
|
|
5131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5132 | (exit $ac_status); } && { |
|
|
5133 | test -z "$ac_cxx_werror_flag" || |
|
|
5134 | test ! -s conftest.err |
|
|
5135 | } && test -s conftest.$ac_objext; then |
|
|
5136 | ac_cv_header_stdc=yes |
|
|
5137 | else |
|
|
5138 | echo "$as_me: failed program was:" >&5 |
|
|
5139 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5140 | |
|
|
5141 | ac_cv_header_stdc=no |
|
|
5142 | fi |
|
|
5143 | |
|
|
5144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5145 | |
|
|
5146 | if test $ac_cv_header_stdc = yes; then |
|
|
5147 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
5148 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5149 | /* confdefs.h. */ |
|
|
5150 | _ACEOF |
|
|
5151 | cat confdefs.h >>conftest.$ac_ext |
|
|
5152 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5153 | /* end confdefs.h. */ |
|
|
5154 | #include <string.h> |
|
|
5155 | |
|
|
5156 | _ACEOF |
|
|
5157 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
5158 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
5159 | : |
|
|
5160 | else |
|
|
5161 | ac_cv_header_stdc=no |
|
|
5162 | fi |
|
|
5163 | rm -f conftest* |
|
|
5164 | |
|
|
5165 | fi |
|
|
5166 | |
|
|
5167 | if test $ac_cv_header_stdc = yes; then |
|
|
5168 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
5169 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5170 | /* confdefs.h. */ |
|
|
5171 | _ACEOF |
|
|
5172 | cat confdefs.h >>conftest.$ac_ext |
|
|
5173 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5174 | /* end confdefs.h. */ |
|
|
5175 | #include <stdlib.h> |
|
|
5176 | |
|
|
5177 | _ACEOF |
|
|
5178 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
5179 | $EGREP "free" >/dev/null 2>&1; then |
|
|
5180 | : |
|
|
5181 | else |
|
|
5182 | ac_cv_header_stdc=no |
|
|
5183 | fi |
|
|
5184 | rm -f conftest* |
|
|
5185 | |
|
|
5186 | fi |
|
|
5187 | |
|
|
5188 | if test $ac_cv_header_stdc = yes; then |
|
|
5189 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
5190 | if test "$cross_compiling" = yes; then |
|
|
5191 | : |
|
|
5192 | else |
|
|
5193 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5194 | /* confdefs.h. */ |
|
|
5195 | _ACEOF |
|
|
5196 | cat confdefs.h >>conftest.$ac_ext |
|
|
5197 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5198 | /* end confdefs.h. */ |
|
|
5199 | #include <ctype.h> |
|
|
5200 | #include <stdlib.h> |
|
|
5201 | #if ((' ' & 0x0FF) == 0x020) |
|
|
5202 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
5203 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
5204 | #else |
|
|
5205 | # define ISLOWER(c) \ |
|
|
5206 | (('a' <= (c) && (c) <= 'i') \ |
|
|
5207 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
5208 | || ('s' <= (c) && (c) <= 'z')) |
|
|
5209 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
5210 | #endif |
|
|
5211 | |
|
|
5212 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
5213 | int |
|
|
5214 | main () |
|
|
5215 | { |
|
|
5216 | int i; |
|
|
5217 | for (i = 0; i < 256; i++) |
|
|
5218 | if (XOR (islower (i), ISLOWER (i)) |
|
|
5219 | || toupper (i) != TOUPPER (i)) |
|
|
5220 | return 2; |
|
|
5221 | return 0; |
|
|
5222 | } |
|
|
5223 | _ACEOF |
|
|
5224 | rm -f conftest$ac_exeext |
|
|
5225 | if { (ac_try="$ac_link" |
|
|
5226 | case "(($ac_try" in |
|
|
5227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5228 | *) ac_try_echo=$ac_try;; |
|
|
5229 | esac |
|
|
5230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5231 | (eval "$ac_link") 2>&5 |
|
|
5232 | ac_status=$? |
|
|
5233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5234 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
5235 | { (case "(($ac_try" in |
|
|
5236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5237 | *) ac_try_echo=$ac_try;; |
|
|
5238 | esac |
|
|
5239 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5240 | (eval "$ac_try") 2>&5 |
|
|
5241 | ac_status=$? |
|
|
5242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5243 | (exit $ac_status); }; }; then |
|
|
5244 | : |
|
|
5245 | else |
|
|
5246 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
5247 | echo "$as_me: failed program was:" >&5 |
|
|
5248 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5249 | |
|
|
5250 | ( exit $ac_status ) |
|
|
5251 | ac_cv_header_stdc=no |
|
|
5252 | fi |
|
|
5253 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
5254 | fi |
|
|
5255 | |
|
|
5256 | |
|
|
5257 | fi |
|
|
5258 | fi |
|
|
5259 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
5260 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
|
|
5261 | if test $ac_cv_header_stdc = yes; then |
|
|
5262 | |
|
|
5263 | cat >>confdefs.h <<\_ACEOF |
|
|
5264 | #define STDC_HEADERS 1 |
|
|
5265 | _ACEOF |
|
|
5266 | |
|
|
5267 | fi |
|
|
5268 | |
|
|
5269 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
5270 | |
|
|
5271 | |
|
|
5272 | |
|
|
5273 | |
|
|
5274 | |
|
|
5275 | |
|
|
5276 | |
|
|
5277 | |
|
|
5278 | |
|
|
5279 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
5280 | inttypes.h stdint.h unistd.h |
|
|
5281 | do |
|
|
5282 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
5283 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5284 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5285 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5287 | else |
|
|
5288 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5289 | /* confdefs.h. */ |
|
|
5290 | _ACEOF |
|
|
5291 | cat confdefs.h >>conftest.$ac_ext |
|
|
5292 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5293 | /* end confdefs.h. */ |
|
|
5294 | $ac_includes_default |
|
|
5295 | |
|
|
5296 | #include <$ac_header> |
|
|
5297 | _ACEOF |
|
|
5298 | rm -f conftest.$ac_objext |
|
|
5299 | if { (ac_try="$ac_compile" |
|
|
5300 | case "(($ac_try" in |
|
|
5301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5302 | *) ac_try_echo=$ac_try;; |
|
|
5303 | esac |
|
|
5304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5305 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5306 | ac_status=$? |
|
|
5307 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5308 | rm -f conftest.er1 |
|
|
5309 | cat conftest.err >&5 |
|
|
5310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5311 | (exit $ac_status); } && { |
|
|
5312 | test -z "$ac_cxx_werror_flag" || |
|
|
5313 | test ! -s conftest.err |
|
|
5314 | } && test -s conftest.$ac_objext; then |
|
|
5315 | eval "$as_ac_Header=yes" |
|
|
5316 | else |
|
|
5317 | echo "$as_me: failed program was:" >&5 |
|
|
5318 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5319 | |
|
|
5320 | eval "$as_ac_Header=no" |
|
|
5321 | fi |
|
|
5322 | |
|
|
5323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5324 | fi |
|
|
5325 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5326 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5327 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5328 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
5329 | cat >>confdefs.h <<_ACEOF |
|
|
5330 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
5331 | _ACEOF |
|
|
5332 | |
|
|
5333 | fi |
|
|
5334 | |
|
|
5335 | done |
|
|
5336 | |
|
|
5337 | |
|
|
5338 | |
|
|
5339 | |
|
|
5340 | |
|
|
5341 | |
|
|
5342 | |
|
|
5343 | |
|
|
5344 | |
|
|
5345 | |
|
|
5346 | |
|
|
5347 | for ac_header in sys/inotify.h sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h sys/eventfd.h sys/signalfd.h |
|
|
5348 | do |
|
|
5349 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
5350 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5351 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5352 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5353 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5355 | fi |
|
|
5356 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5357 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5358 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5359 | else |
|
|
5360 | # Is the header compilable? |
|
|
5361 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
5362 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
|
|
5363 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5364 | /* confdefs.h. */ |
|
|
5365 | _ACEOF |
|
|
5366 | cat confdefs.h >>conftest.$ac_ext |
|
|
5367 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5368 | /* end confdefs.h. */ |
|
|
5369 | $ac_includes_default |
|
|
5370 | #include <$ac_header> |
|
|
5371 | _ACEOF |
|
|
5372 | rm -f conftest.$ac_objext |
|
|
5373 | if { (ac_try="$ac_compile" |
|
|
5374 | case "(($ac_try" in |
|
|
5375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5376 | *) ac_try_echo=$ac_try;; |
|
|
5377 | esac |
|
|
5378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5379 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5380 | ac_status=$? |
|
|
5381 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5382 | rm -f conftest.er1 |
|
|
5383 | cat conftest.err >&5 |
|
|
5384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5385 | (exit $ac_status); } && { |
|
|
5386 | test -z "$ac_cxx_werror_flag" || |
|
|
5387 | test ! -s conftest.err |
|
|
5388 | } && test -s conftest.$ac_objext; then |
|
|
5389 | ac_header_compiler=yes |
|
|
5390 | else |
|
|
5391 | echo "$as_me: failed program was:" >&5 |
|
|
5392 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5393 | |
|
|
5394 | ac_header_compiler=no |
|
|
5395 | fi |
|
|
5396 | |
|
|
5397 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5398 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
5399 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
|
|
5400 | |
|
|
5401 | # Is the header present? |
|
|
5402 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
5403 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
|
|
5404 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5405 | /* confdefs.h. */ |
|
|
5406 | _ACEOF |
|
|
5407 | cat confdefs.h >>conftest.$ac_ext |
|
|
5408 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5409 | /* end confdefs.h. */ |
|
|
5410 | #include <$ac_header> |
|
|
5411 | _ACEOF |
|
|
5412 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5413 | case "(($ac_try" in |
|
|
5414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5415 | *) ac_try_echo=$ac_try;; |
|
|
5416 | esac |
|
|
5417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5418 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5419 | ac_status=$? |
|
|
5420 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5421 | rm -f conftest.er1 |
|
|
5422 | cat conftest.err >&5 |
|
|
5423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5424 | (exit $ac_status); } >/dev/null && { |
|
|
5425 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5426 | test ! -s conftest.err |
|
|
5427 | }; then |
|
|
5428 | ac_header_preproc=yes |
|
|
5429 | else |
|
|
5430 | echo "$as_me: failed program was:" >&5 |
|
|
5431 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5432 | |
|
|
5433 | ac_header_preproc=no |
|
|
5434 | fi |
|
|
5435 | |
|
|
5436 | rm -f conftest.err conftest.$ac_ext |
|
|
5437 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
5438 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
|
|
5439 | |
|
|
5440 | # So? What about this header? |
|
|
5441 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
5442 | yes:no: ) |
|
|
5443 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
5444 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
5445 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
5446 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
5447 | ac_header_preproc=yes |
|
|
5448 | ;; |
|
|
5449 | no:yes:* ) |
|
|
5450 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
5451 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
5452 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
5453 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
5454 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
5455 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
5456 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
5457 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
5458 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
5459 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
5460 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
5461 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
5462 | |
|
|
5463 | ;; |
|
|
5464 | esac |
|
|
5465 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5466 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5467 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5469 | else |
|
|
5470 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
5471 | fi |
|
|
5472 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5473 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5474 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5475 | |
|
|
5476 | fi |
|
|
5477 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
5478 | cat >>confdefs.h <<_ACEOF |
|
|
5479 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
5480 | _ACEOF |
|
|
5481 | |
|
|
5482 | fi |
|
|
5483 | |
|
|
5484 | done |
|
|
5485 | |
|
|
5486 | |
|
|
5487 | |
|
|
5488 | |
|
|
5489 | |
|
|
5490 | |
|
|
5491 | |
|
|
5492 | |
|
|
5493 | |
|
|
5494 | |
|
|
5495 | for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd signalfd |
|
|
5496 | do |
|
|
5497 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
5498 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
5499 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
5500 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5502 | else |
|
|
5503 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5504 | /* confdefs.h. */ |
|
|
5505 | _ACEOF |
|
|
5506 | cat confdefs.h >>conftest.$ac_ext |
|
|
5507 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5508 | /* end confdefs.h. */ |
|
|
5509 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
5510 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5511 | #define $ac_func innocuous_$ac_func |
|
|
5512 | |
|
|
5513 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5514 | which can conflict with char $ac_func (); below. |
|
|
5515 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5516 | <limits.h> exists even on freestanding compilers. */ |
|
|
5517 | |
|
|
5518 | #ifdef __STDC__ |
|
|
5519 | # include <limits.h> |
|
|
5520 | #else |
|
|
5521 | # include <assert.h> |
|
|
5522 | #endif |
|
|
5523 | |
|
|
5524 | #undef $ac_func |
|
|
5525 | |
|
|
5526 | /* Override any GCC internal prototype to avoid an error. |
|
|
5527 | Use char because int might match the return type of a GCC |
|
|
5528 | builtin and then its argument prototype would still apply. */ |
|
|
5529 | #ifdef __cplusplus |
|
|
5530 | extern "C" |
|
|
5531 | #endif |
|
|
5532 | char $ac_func (); |
|
|
5533 | /* The GNU C library defines this for functions which it implements |
|
|
5534 | to always fail with ENOSYS. Some functions are actually named |
|
|
5535 | something starting with __ and the normal name is an alias. */ |
|
|
5536 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
5537 | choke me |
|
|
5538 | #endif |
|
|
5539 | |
|
|
5540 | int |
|
|
5541 | main () |
|
|
5542 | { |
|
|
5543 | return $ac_func (); |
|
|
5544 | ; |
|
|
5545 | return 0; |
|
|
5546 | } |
|
|
5547 | _ACEOF |
|
|
5548 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5549 | if { (ac_try="$ac_link" |
|
|
5550 | case "(($ac_try" in |
|
|
5551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5552 | *) ac_try_echo=$ac_try;; |
|
|
5553 | esac |
|
|
5554 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5555 | (eval "$ac_link") 2>conftest.er1 |
|
|
5556 | ac_status=$? |
|
|
5557 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5558 | rm -f conftest.er1 |
|
|
5559 | cat conftest.err >&5 |
|
|
5560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5561 | (exit $ac_status); } && { |
|
|
5562 | test -z "$ac_cxx_werror_flag" || |
|
|
5563 | test ! -s conftest.err |
|
|
5564 | } && test -s conftest$ac_exeext && |
|
|
5565 | $as_test_x conftest$ac_exeext; then |
|
|
5566 | eval "$as_ac_var=yes" |
|
|
5567 | else |
|
|
5568 | echo "$as_me: failed program was:" >&5 |
|
|
5569 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5570 | |
|
|
5571 | eval "$as_ac_var=no" |
|
|
5572 | fi |
|
|
5573 | |
|
|
5574 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5575 | conftest$ac_exeext conftest.$ac_ext |
|
|
5576 | fi |
|
|
5577 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
5578 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5579 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5580 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
5581 | cat >>confdefs.h <<_ACEOF |
|
|
5582 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
5583 | _ACEOF |
|
|
5584 | |
|
|
5585 | fi |
|
|
5586 | done |
|
|
5587 | |
|
|
5588 | |
|
|
5589 | { echo "$as_me:$LINENO: checking for clock_gettime" >&5 |
|
|
5590 | echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6; } |
|
|
5591 | if test "${ac_cv_func_clock_gettime+set}" = set; then |
|
|
5592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5593 | else |
|
|
5594 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5595 | /* confdefs.h. */ |
|
|
5596 | _ACEOF |
|
|
5597 | cat confdefs.h >>conftest.$ac_ext |
|
|
5598 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5599 | /* end confdefs.h. */ |
|
|
5600 | /* Define clock_gettime to an innocuous variant, in case <limits.h> declares clock_gettime. |
|
|
5601 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5602 | #define clock_gettime innocuous_clock_gettime |
|
|
5603 | |
|
|
5604 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5605 | which can conflict with char clock_gettime (); below. |
|
|
5606 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5607 | <limits.h> exists even on freestanding compilers. */ |
|
|
5608 | |
|
|
5609 | #ifdef __STDC__ |
|
|
5610 | # include <limits.h> |
|
|
5611 | #else |
|
|
5612 | # include <assert.h> |
|
|
5613 | #endif |
|
|
5614 | |
|
|
5615 | #undef clock_gettime |
|
|
5616 | |
|
|
5617 | /* Override any GCC internal prototype to avoid an error. |
|
|
5618 | Use char because int might match the return type of a GCC |
|
|
5619 | builtin and then its argument prototype would still apply. */ |
|
|
5620 | #ifdef __cplusplus |
|
|
5621 | extern "C" |
|
|
5622 | #endif |
|
|
5623 | char clock_gettime (); |
|
|
5624 | /* The GNU C library defines this for functions which it implements |
|
|
5625 | to always fail with ENOSYS. Some functions are actually named |
|
|
5626 | something starting with __ and the normal name is an alias. */ |
|
|
5627 | #if defined __stub_clock_gettime || defined __stub___clock_gettime |
|
|
5628 | choke me |
|
|
5629 | #endif |
|
|
5630 | |
|
|
5631 | int |
|
|
5632 | main () |
|
|
5633 | { |
|
|
5634 | return clock_gettime (); |
|
|
5635 | ; |
|
|
5636 | return 0; |
|
|
5637 | } |
|
|
5638 | _ACEOF |
|
|
5639 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5640 | if { (ac_try="$ac_link" |
|
|
5641 | case "(($ac_try" in |
|
|
5642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5643 | *) ac_try_echo=$ac_try;; |
|
|
5644 | esac |
|
|
5645 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5646 | (eval "$ac_link") 2>conftest.er1 |
|
|
5647 | ac_status=$? |
|
|
5648 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5649 | rm -f conftest.er1 |
|
|
5650 | cat conftest.err >&5 |
|
|
5651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5652 | (exit $ac_status); } && { |
|
|
5653 | test -z "$ac_cxx_werror_flag" || |
|
|
5654 | test ! -s conftest.err |
|
|
5655 | } && test -s conftest$ac_exeext && |
|
|
5656 | $as_test_x conftest$ac_exeext; then |
|
|
5657 | ac_cv_func_clock_gettime=yes |
|
|
5658 | else |
|
|
5659 | echo "$as_me: failed program was:" >&5 |
|
|
5660 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5661 | |
|
|
5662 | ac_cv_func_clock_gettime=no |
|
|
5663 | fi |
|
|
5664 | |
|
|
5665 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5666 | conftest$ac_exeext conftest.$ac_ext |
|
|
5667 | fi |
|
|
5668 | { echo "$as_me:$LINENO: result: $ac_cv_func_clock_gettime" >&5 |
|
|
5669 | echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; } |
|
|
5670 | if test $ac_cv_func_clock_gettime = yes; then |
|
|
5671 | : |
|
|
5672 | else |
|
|
5673 | |
|
|
5674 | if test $(uname) = Linux; then |
|
|
5675 | { echo "$as_me:$LINENO: checking for clock_gettime syscall" >&5 |
|
|
5676 | echo $ECHO_N "checking for clock_gettime syscall... $ECHO_C" >&6; } |
|
|
5677 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5678 | /* confdefs.h. */ |
|
|
5679 | _ACEOF |
|
|
5680 | cat confdefs.h >>conftest.$ac_ext |
|
|
5681 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5682 | /* end confdefs.h. */ |
|
|
5683 | #include <syscall.h> |
|
|
5684 | #include <time.h> |
|
|
5685 | int |
|
|
5686 | main () |
|
|
5687 | { |
|
|
5688 | struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts) |
|
|
5689 | ; |
|
|
5690 | return 0; |
|
|
5691 | } |
|
|
5692 | _ACEOF |
|
|
5693 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5694 | if { (ac_try="$ac_link" |
|
|
5695 | case "(($ac_try" in |
|
|
5696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5697 | *) ac_try_echo=$ac_try;; |
|
|
5698 | esac |
|
|
5699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5700 | (eval "$ac_link") 2>conftest.er1 |
|
|
5701 | ac_status=$? |
|
|
5702 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5703 | rm -f conftest.er1 |
|
|
5704 | cat conftest.err >&5 |
|
|
5705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5706 | (exit $ac_status); } && { |
|
|
5707 | test -z "$ac_cxx_werror_flag" || |
|
|
5708 | test ! -s conftest.err |
|
|
5709 | } && test -s conftest$ac_exeext && |
|
|
5710 | $as_test_x conftest$ac_exeext; then |
|
|
5711 | ac_have_clock_syscall=1 |
|
|
5712 | |
|
|
5713 | cat >>confdefs.h <<\_ACEOF |
|
|
5714 | #define HAVE_CLOCK_SYSCALL 1 |
|
|
5715 | _ACEOF |
|
|
5716 | |
|
|
5717 | { echo "$as_me:$LINENO: result: yes" >&5 |
|
|
5718 | echo "${ECHO_T}yes" >&6; } |
|
|
5719 | else |
|
|
5720 | echo "$as_me: failed program was:" >&5 |
|
|
5721 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5722 | |
|
|
5723 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
5724 | echo "${ECHO_T}no" >&6; } |
|
|
5725 | fi |
|
|
5726 | |
|
|
5727 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5728 | conftest$ac_exeext conftest.$ac_ext |
|
|
5729 | fi |
|
|
5730 | if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then |
|
|
5731 | |
|
|
5732 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
|
|
5733 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } |
|
|
5734 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
|
|
5735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5736 | else |
|
|
5737 | ac_check_lib_save_LIBS=$LIBS |
|
|
5738 | LIBS="-lrt $LIBS" |
|
|
5739 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5740 | /* confdefs.h. */ |
|
|
5741 | _ACEOF |
|
|
5742 | cat confdefs.h >>conftest.$ac_ext |
|
|
5743 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5744 | /* end confdefs.h. */ |
|
|
5745 | |
|
|
5746 | /* Override any GCC internal prototype to avoid an error. |
|
|
5747 | Use char because int might match the return type of a GCC |
|
|
5748 | builtin and then its argument prototype would still apply. */ |
|
|
5749 | #ifdef __cplusplus |
|
|
5750 | extern "C" |
|
|
5751 | #endif |
|
|
5752 | char clock_gettime (); |
|
|
5753 | int |
|
|
5754 | main () |
|
|
5755 | { |
|
|
5756 | return clock_gettime (); |
|
|
5757 | ; |
|
|
5758 | return 0; |
|
|
5759 | } |
|
|
5760 | _ACEOF |
|
|
5761 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5762 | if { (ac_try="$ac_link" |
|
|
5763 | case "(($ac_try" in |
|
|
5764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5765 | *) ac_try_echo=$ac_try;; |
|
|
5766 | esac |
|
|
5767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5768 | (eval "$ac_link") 2>conftest.er1 |
|
|
5769 | ac_status=$? |
|
|
5770 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5771 | rm -f conftest.er1 |
|
|
5772 | cat conftest.err >&5 |
|
|
5773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5774 | (exit $ac_status); } && { |
|
|
5775 | test -z "$ac_cxx_werror_flag" || |
|
|
5776 | test ! -s conftest.err |
|
|
5777 | } && test -s conftest$ac_exeext && |
|
|
5778 | $as_test_x conftest$ac_exeext; then |
|
|
5779 | ac_cv_lib_rt_clock_gettime=yes |
|
|
5780 | else |
|
|
5781 | echo "$as_me: failed program was:" >&5 |
|
|
5782 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5783 | |
|
|
5784 | ac_cv_lib_rt_clock_gettime=no |
|
|
5785 | fi |
|
|
5786 | |
|
|
5787 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5788 | conftest$ac_exeext conftest.$ac_ext |
|
|
5789 | LIBS=$ac_check_lib_save_LIBS |
|
|
5790 | fi |
|
|
5791 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
|
|
5792 | echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; } |
|
|
5793 | if test $ac_cv_lib_rt_clock_gettime = yes; then |
|
|
5794 | cat >>confdefs.h <<_ACEOF |
|
|
5795 | #define HAVE_LIBRT 1 |
|
|
5796 | _ACEOF |
|
|
5797 | |
|
|
5798 | LIBS="-lrt $LIBS" |
|
|
5799 | |
|
|
5800 | fi |
|
|
5801 | |
|
|
5802 | unset ac_cv_func_clock_gettime |
|
|
5803 | |
|
|
5804 | for ac_func in clock_gettime |
|
|
5805 | do |
|
|
5806 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
5807 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
5808 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
5809 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5811 | else |
|
|
5812 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5813 | /* confdefs.h. */ |
|
|
5814 | _ACEOF |
|
|
5815 | cat confdefs.h >>conftest.$ac_ext |
|
|
5816 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5817 | /* end confdefs.h. */ |
|
|
5818 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
5819 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5820 | #define $ac_func innocuous_$ac_func |
|
|
5821 | |
|
|
5822 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5823 | which can conflict with char $ac_func (); below. |
|
|
5824 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5825 | <limits.h> exists even on freestanding compilers. */ |
|
|
5826 | |
|
|
5827 | #ifdef __STDC__ |
|
|
5828 | # include <limits.h> |
|
|
5829 | #else |
|
|
5830 | # include <assert.h> |
|
|
5831 | #endif |
|
|
5832 | |
|
|
5833 | #undef $ac_func |
|
|
5834 | |
|
|
5835 | /* Override any GCC internal prototype to avoid an error. |
|
|
5836 | Use char because int might match the return type of a GCC |
|
|
5837 | builtin and then its argument prototype would still apply. */ |
|
|
5838 | #ifdef __cplusplus |
|
|
5839 | extern "C" |
|
|
5840 | #endif |
|
|
5841 | char $ac_func (); |
|
|
5842 | /* The GNU C library defines this for functions which it implements |
|
|
5843 | to always fail with ENOSYS. Some functions are actually named |
|
|
5844 | something starting with __ and the normal name is an alias. */ |
|
|
5845 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
5846 | choke me |
|
|
5847 | #endif |
|
|
5848 | |
|
|
5849 | int |
|
|
5850 | main () |
|
|
5851 | { |
|
|
5852 | return $ac_func (); |
|
|
5853 | ; |
|
|
5854 | return 0; |
|
|
5855 | } |
|
|
5856 | _ACEOF |
|
|
5857 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5858 | if { (ac_try="$ac_link" |
|
|
5859 | case "(($ac_try" in |
|
|
5860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5861 | *) ac_try_echo=$ac_try;; |
|
|
5862 | esac |
|
|
5863 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5864 | (eval "$ac_link") 2>conftest.er1 |
|
|
5865 | ac_status=$? |
|
|
5866 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5867 | rm -f conftest.er1 |
|
|
5868 | cat conftest.err >&5 |
|
|
5869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5870 | (exit $ac_status); } && { |
|
|
5871 | test -z "$ac_cxx_werror_flag" || |
|
|
5872 | test ! -s conftest.err |
|
|
5873 | } && test -s conftest$ac_exeext && |
|
|
5874 | $as_test_x conftest$ac_exeext; then |
|
|
5875 | eval "$as_ac_var=yes" |
|
|
5876 | else |
|
|
5877 | echo "$as_me: failed program was:" >&5 |
|
|
5878 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5879 | |
|
|
5880 | eval "$as_ac_var=no" |
|
|
5881 | fi |
|
|
5882 | |
|
|
5883 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5884 | conftest$ac_exeext conftest.$ac_ext |
|
|
5885 | fi |
|
|
5886 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
5887 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5888 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5889 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
5890 | cat >>confdefs.h <<_ACEOF |
|
|
5891 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
5892 | _ACEOF |
|
|
5893 | |
|
|
5894 | fi |
|
|
5895 | done |
|
|
5896 | |
|
|
5897 | fi |
|
|
5898 | |
|
|
5899 | fi |
|
|
5900 | |
|
|
5901 | |
|
|
5902 | { echo "$as_me:$LINENO: checking for nanosleep" >&5 |
|
|
5903 | echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; } |
|
|
5904 | if test "${ac_cv_func_nanosleep+set}" = set; then |
|
|
5905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5906 | else |
|
|
5907 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5908 | /* confdefs.h. */ |
|
|
5909 | _ACEOF |
|
|
5910 | cat confdefs.h >>conftest.$ac_ext |
|
|
5911 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5912 | /* end confdefs.h. */ |
|
|
5913 | /* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep. |
|
|
5914 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5915 | #define nanosleep innocuous_nanosleep |
|
|
5916 | |
|
|
5917 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5918 | which can conflict with char nanosleep (); below. |
|
|
5919 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5920 | <limits.h> exists even on freestanding compilers. */ |
|
|
5921 | |
|
|
5922 | #ifdef __STDC__ |
|
|
5923 | # include <limits.h> |
|
|
5924 | #else |
|
|
5925 | # include <assert.h> |
|
|
5926 | #endif |
|
|
5927 | |
|
|
5928 | #undef nanosleep |
|
|
5929 | |
|
|
5930 | /* Override any GCC internal prototype to avoid an error. |
|
|
5931 | Use char because int might match the return type of a GCC |
|
|
5932 | builtin and then its argument prototype would still apply. */ |
|
|
5933 | #ifdef __cplusplus |
|
|
5934 | extern "C" |
|
|
5935 | #endif |
|
|
5936 | char nanosleep (); |
|
|
5937 | /* The GNU C library defines this for functions which it implements |
|
|
5938 | to always fail with ENOSYS. Some functions are actually named |
|
|
5939 | something starting with __ and the normal name is an alias. */ |
|
|
5940 | #if defined __stub_nanosleep || defined __stub___nanosleep |
|
|
5941 | choke me |
|
|
5942 | #endif |
|
|
5943 | |
|
|
5944 | int |
|
|
5945 | main () |
|
|
5946 | { |
|
|
5947 | return nanosleep (); |
|
|
5948 | ; |
|
|
5949 | return 0; |
|
|
5950 | } |
|
|
5951 | _ACEOF |
|
|
5952 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5953 | if { (ac_try="$ac_link" |
|
|
5954 | case "(($ac_try" in |
|
|
5955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5956 | *) ac_try_echo=$ac_try;; |
|
|
5957 | esac |
|
|
5958 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5959 | (eval "$ac_link") 2>conftest.er1 |
|
|
5960 | ac_status=$? |
|
|
5961 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5962 | rm -f conftest.er1 |
|
|
5963 | cat conftest.err >&5 |
|
|
5964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5965 | (exit $ac_status); } && { |
|
|
5966 | test -z "$ac_cxx_werror_flag" || |
|
|
5967 | test ! -s conftest.err |
|
|
5968 | } && test -s conftest$ac_exeext && |
|
|
5969 | $as_test_x conftest$ac_exeext; then |
|
|
5970 | ac_cv_func_nanosleep=yes |
|
|
5971 | else |
|
|
5972 | echo "$as_me: failed program was:" >&5 |
|
|
5973 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5974 | |
|
|
5975 | ac_cv_func_nanosleep=no |
|
|
5976 | fi |
|
|
5977 | |
|
|
5978 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5979 | conftest$ac_exeext conftest.$ac_ext |
|
|
5980 | fi |
|
|
5981 | { echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5 |
|
|
5982 | echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; } |
|
|
5983 | if test $ac_cv_func_nanosleep = yes; then |
|
|
5984 | : |
|
|
5985 | else |
|
|
5986 | |
|
|
5987 | if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
|
|
5988 | |
|
|
5989 | { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5 |
|
|
5990 | echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; } |
|
|
5991 | if test "${ac_cv_lib_rt_nanosleep+set}" = set; then |
|
|
5992 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5993 | else |
|
|
5994 | ac_check_lib_save_LIBS=$LIBS |
|
|
5995 | LIBS="-lrt $LIBS" |
|
|
5996 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5997 | /* confdefs.h. */ |
|
|
5998 | _ACEOF |
|
|
5999 | cat confdefs.h >>conftest.$ac_ext |
|
|
6000 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6001 | /* end confdefs.h. */ |
|
|
6002 | |
|
|
6003 | /* Override any GCC internal prototype to avoid an error. |
|
|
6004 | Use char because int might match the return type of a GCC |
|
|
6005 | builtin and then its argument prototype would still apply. */ |
|
|
6006 | #ifdef __cplusplus |
|
|
6007 | extern "C" |
|
|
6008 | #endif |
|
|
6009 | char nanosleep (); |
|
|
6010 | int |
|
|
6011 | main () |
|
|
6012 | { |
|
|
6013 | return nanosleep (); |
|
|
6014 | ; |
|
|
6015 | return 0; |
|
|
6016 | } |
|
|
6017 | _ACEOF |
|
|
6018 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6019 | if { (ac_try="$ac_link" |
|
|
6020 | case "(($ac_try" in |
|
|
6021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6022 | *) ac_try_echo=$ac_try;; |
|
|
6023 | esac |
|
|
6024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6025 | (eval "$ac_link") 2>conftest.er1 |
|
|
6026 | ac_status=$? |
|
|
6027 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6028 | rm -f conftest.er1 |
|
|
6029 | cat conftest.err >&5 |
|
|
6030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6031 | (exit $ac_status); } && { |
|
|
6032 | test -z "$ac_cxx_werror_flag" || |
|
|
6033 | test ! -s conftest.err |
|
|
6034 | } && test -s conftest$ac_exeext && |
|
|
6035 | $as_test_x conftest$ac_exeext; then |
|
|
6036 | ac_cv_lib_rt_nanosleep=yes |
|
|
6037 | else |
|
|
6038 | echo "$as_me: failed program was:" >&5 |
|
|
6039 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6040 | |
|
|
6041 | ac_cv_lib_rt_nanosleep=no |
|
|
6042 | fi |
|
|
6043 | |
|
|
6044 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6045 | conftest$ac_exeext conftest.$ac_ext |
|
|
6046 | LIBS=$ac_check_lib_save_LIBS |
|
|
6047 | fi |
|
|
6048 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5 |
|
|
6049 | echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; } |
|
|
6050 | if test $ac_cv_lib_rt_nanosleep = yes; then |
|
|
6051 | cat >>confdefs.h <<_ACEOF |
|
|
6052 | #define HAVE_LIBRT 1 |
|
|
6053 | _ACEOF |
|
|
6054 | |
|
|
6055 | LIBS="-lrt $LIBS" |
|
|
6056 | |
|
|
6057 | fi |
|
|
6058 | |
|
|
6059 | unset ac_cv_func_nanosleep |
|
|
6060 | |
|
|
6061 | for ac_func in nanosleep |
|
|
6062 | do |
|
|
6063 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
6064 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
6065 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
6066 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
6067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6068 | else |
|
|
6069 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6070 | /* confdefs.h. */ |
|
|
6071 | _ACEOF |
|
|
6072 | cat confdefs.h >>conftest.$ac_ext |
|
|
6073 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6074 | /* end confdefs.h. */ |
|
|
6075 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
6076 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
6077 | #define $ac_func innocuous_$ac_func |
|
|
6078 | |
|
|
6079 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
6080 | which can conflict with char $ac_func (); below. |
|
|
6081 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
6082 | <limits.h> exists even on freestanding compilers. */ |
|
|
6083 | |
|
|
6084 | #ifdef __STDC__ |
|
|
6085 | # include <limits.h> |
|
|
6086 | #else |
|
|
6087 | # include <assert.h> |
|
|
6088 | #endif |
|
|
6089 | |
|
|
6090 | #undef $ac_func |
|
|
6091 | |
|
|
6092 | /* Override any GCC internal prototype to avoid an error. |
|
|
6093 | Use char because int might match the return type of a GCC |
|
|
6094 | builtin and then its argument prototype would still apply. */ |
|
|
6095 | #ifdef __cplusplus |
|
|
6096 | extern "C" |
|
|
6097 | #endif |
|
|
6098 | char $ac_func (); |
|
|
6099 | /* The GNU C library defines this for functions which it implements |
|
|
6100 | to always fail with ENOSYS. Some functions are actually named |
|
|
6101 | something starting with __ and the normal name is an alias. */ |
|
|
6102 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
6103 | choke me |
|
|
6104 | #endif |
|
|
6105 | |
|
|
6106 | int |
|
|
6107 | main () |
|
|
6108 | { |
|
|
6109 | return $ac_func (); |
|
|
6110 | ; |
|
|
6111 | return 0; |
|
|
6112 | } |
|
|
6113 | _ACEOF |
|
|
6114 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6115 | if { (ac_try="$ac_link" |
|
|
6116 | case "(($ac_try" in |
|
|
6117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6118 | *) ac_try_echo=$ac_try;; |
|
|
6119 | esac |
|
|
6120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6121 | (eval "$ac_link") 2>conftest.er1 |
|
|
6122 | ac_status=$? |
|
|
6123 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6124 | rm -f conftest.er1 |
|
|
6125 | cat conftest.err >&5 |
|
|
6126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6127 | (exit $ac_status); } && { |
|
|
6128 | test -z "$ac_cxx_werror_flag" || |
|
|
6129 | test ! -s conftest.err |
|
|
6130 | } && test -s conftest$ac_exeext && |
|
|
6131 | $as_test_x conftest$ac_exeext; then |
|
|
6132 | eval "$as_ac_var=yes" |
|
|
6133 | else |
|
|
6134 | echo "$as_me: failed program was:" >&5 |
|
|
6135 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6136 | |
|
|
6137 | eval "$as_ac_var=no" |
|
|
6138 | fi |
|
|
6139 | |
|
|
6140 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6141 | conftest$ac_exeext conftest.$ac_ext |
|
|
6142 | fi |
|
|
6143 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
6144 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
6145 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
6146 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
6147 | cat >>confdefs.h <<_ACEOF |
|
|
6148 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
6149 | _ACEOF |
|
|
6150 | |
|
|
6151 | fi |
|
|
6152 | done |
|
|
6153 | |
|
|
6154 | fi |
|
|
6155 | |
|
|
6156 | fi |
|
|
6157 | |
|
|
6158 | |
|
|
6159 | |
|
|
6160 | { echo "$as_me:$LINENO: checking for ceil in -lm" >&5 |
|
|
6161 | echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; } |
|
|
6162 | if test "${ac_cv_lib_m_ceil+set}" = set; then |
|
|
6163 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6164 | else |
|
|
6165 | ac_check_lib_save_LIBS=$LIBS |
|
|
6166 | LIBS="-lm $LIBS" |
|
|
6167 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6168 | /* confdefs.h. */ |
|
|
6169 | _ACEOF |
|
|
6170 | cat confdefs.h >>conftest.$ac_ext |
|
|
6171 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6172 | /* end confdefs.h. */ |
|
|
6173 | |
|
|
6174 | /* Override any GCC internal prototype to avoid an error. |
|
|
6175 | Use char because int might match the return type of a GCC |
|
|
6176 | builtin and then its argument prototype would still apply. */ |
|
|
6177 | #ifdef __cplusplus |
|
|
6178 | extern "C" |
|
|
6179 | #endif |
|
|
6180 | char ceil (); |
|
|
6181 | int |
|
|
6182 | main () |
|
|
6183 | { |
|
|
6184 | return ceil (); |
|
|
6185 | ; |
|
|
6186 | return 0; |
|
|
6187 | } |
|
|
6188 | _ACEOF |
|
|
6189 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6190 | if { (ac_try="$ac_link" |
|
|
6191 | case "(($ac_try" in |
|
|
6192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6193 | *) ac_try_echo=$ac_try;; |
|
|
6194 | esac |
|
|
6195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6196 | (eval "$ac_link") 2>conftest.er1 |
|
|
6197 | ac_status=$? |
|
|
6198 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6199 | rm -f conftest.er1 |
|
|
6200 | cat conftest.err >&5 |
|
|
6201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6202 | (exit $ac_status); } && { |
|
|
6203 | test -z "$ac_cxx_werror_flag" || |
|
|
6204 | test ! -s conftest.err |
|
|
6205 | } && test -s conftest$ac_exeext && |
|
|
6206 | $as_test_x conftest$ac_exeext; then |
|
|
6207 | ac_cv_lib_m_ceil=yes |
|
|
6208 | else |
|
|
6209 | echo "$as_me: failed program was:" >&5 |
|
|
6210 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6211 | |
|
|
6212 | ac_cv_lib_m_ceil=no |
|
|
6213 | fi |
|
|
6214 | |
|
|
6215 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6216 | conftest$ac_exeext conftest.$ac_ext |
|
|
6217 | LIBS=$ac_check_lib_save_LIBS |
|
|
6218 | fi |
|
|
6219 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5 |
|
|
6220 | echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6; } |
|
|
6221 | if test $ac_cv_lib_m_ceil = yes; then |
|
|
6222 | cat >>confdefs.h <<_ACEOF |
|
|
6223 | #define HAVE_LIBM 1 |
|
|
6224 | _ACEOF |
|
|
6225 | |
|
|
6226 | LIBS="-lm $LIBS" |
|
|
6227 | |
|
|
6228 | fi |
|
|
6229 | |
|
|
6230 | |
4893 | |
6231 | |
4894 | |
6232 | |
4895 | |
6233 | |
4896 | # Extract the first word of "tic", so it can be a program name with args. |
6234 | # Extract the first word of "tic", so it can be a program name with args. |
4897 | set dummy tic; ac_word=$2 |
6235 | set dummy tic; ac_word=$2 |
… | |
… | |
4931 | else |
6269 | else |
4932 | { echo "$as_me:$LINENO: result: no" >&5 |
6270 | { echo "$as_me:$LINENO: result: no" >&5 |
4933 | echo "${ECHO_T}no" >&6; } |
6271 | echo "${ECHO_T}no" >&6; } |
4934 | fi |
6272 | fi |
4935 | |
6273 | |
4936 | |
|
|
4937 | |
|
|
4938 | |
|
|
4939 | |
|
|
4940 | ac_ext=cpp |
|
|
4941 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
4942 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4943 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4944 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
4945 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
4946 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
|
|
4947 | if test -z "$CXXCPP"; then |
|
|
4948 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
|
4949 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4950 | else |
|
|
4951 | # Double quotes because CXXCPP needs to be expanded |
|
|
4952 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
4953 | do |
|
|
4954 | ac_preproc_ok=false |
|
|
4955 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4956 | do |
|
|
4957 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4958 | # with a fresh cross-compiler works. |
|
|
4959 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4960 | # <limits.h> exists even on freestanding compilers. |
|
|
4961 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4962 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4963 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4964 | /* confdefs.h. */ |
|
|
4965 | _ACEOF |
|
|
4966 | cat confdefs.h >>conftest.$ac_ext |
|
|
4967 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4968 | /* end confdefs.h. */ |
|
|
4969 | #ifdef __STDC__ |
|
|
4970 | # include <limits.h> |
|
|
4971 | #else |
|
|
4972 | # include <assert.h> |
|
|
4973 | #endif |
|
|
4974 | Syntax error |
|
|
4975 | _ACEOF |
|
|
4976 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4977 | case "(($ac_try" in |
|
|
4978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4979 | *) ac_try_echo=$ac_try;; |
|
|
4980 | esac |
|
|
4981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4982 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4983 | ac_status=$? |
|
|
4984 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4985 | rm -f conftest.er1 |
|
|
4986 | cat conftest.err >&5 |
|
|
4987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4988 | (exit $ac_status); } >/dev/null && { |
|
|
4989 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4990 | test ! -s conftest.err |
|
|
4991 | }; then |
|
|
4992 | : |
|
|
4993 | else |
|
|
4994 | echo "$as_me: failed program was:" >&5 |
|
|
4995 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4996 | |
|
|
4997 | # Broken: fails on valid input. |
|
|
4998 | continue |
|
|
4999 | fi |
|
|
5000 | |
|
|
5001 | rm -f conftest.err conftest.$ac_ext |
|
|
5002 | |
|
|
5003 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
5004 | # can be detected and how. |
|
|
5005 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5006 | /* confdefs.h. */ |
|
|
5007 | _ACEOF |
|
|
5008 | cat confdefs.h >>conftest.$ac_ext |
|
|
5009 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5010 | /* end confdefs.h. */ |
|
|
5011 | #include <ac_nonexistent.h> |
|
|
5012 | _ACEOF |
|
|
5013 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5014 | case "(($ac_try" in |
|
|
5015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5016 | *) ac_try_echo=$ac_try;; |
|
|
5017 | esac |
|
|
5018 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5019 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5020 | ac_status=$? |
|
|
5021 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5022 | rm -f conftest.er1 |
|
|
5023 | cat conftest.err >&5 |
|
|
5024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5025 | (exit $ac_status); } >/dev/null && { |
|
|
5026 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5027 | test ! -s conftest.err |
|
|
5028 | }; then |
|
|
5029 | # Broken: success on invalid input. |
|
|
5030 | continue |
|
|
5031 | else |
|
|
5032 | echo "$as_me: failed program was:" >&5 |
|
|
5033 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5034 | |
|
|
5035 | # Passes both tests. |
|
|
5036 | ac_preproc_ok=: |
|
|
5037 | break |
|
|
5038 | fi |
|
|
5039 | |
|
|
5040 | rm -f conftest.err conftest.$ac_ext |
|
|
5041 | |
|
|
5042 | done |
|
|
5043 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5044 | rm -f conftest.err conftest.$ac_ext |
|
|
5045 | if $ac_preproc_ok; then |
|
|
5046 | break |
|
|
5047 | fi |
|
|
5048 | |
|
|
5049 | done |
|
|
5050 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5051 | |
|
|
5052 | fi |
|
|
5053 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
5054 | else |
|
|
5055 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5056 | fi |
|
|
5057 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
5058 | echo "${ECHO_T}$CXXCPP" >&6; } |
|
|
5059 | ac_preproc_ok=false |
|
|
5060 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
5061 | do |
|
|
5062 | # Use a header file that comes with gcc, so configuring glibc |
|
|
5063 | # with a fresh cross-compiler works. |
|
|
5064 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5065 | # <limits.h> exists even on freestanding compilers. |
|
|
5066 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
5067 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
5068 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5069 | /* confdefs.h. */ |
|
|
5070 | _ACEOF |
|
|
5071 | cat confdefs.h >>conftest.$ac_ext |
|
|
5072 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5073 | /* end confdefs.h. */ |
|
|
5074 | #ifdef __STDC__ |
|
|
5075 | # include <limits.h> |
|
|
5076 | #else |
|
|
5077 | # include <assert.h> |
|
|
5078 | #endif |
|
|
5079 | Syntax error |
|
|
5080 | _ACEOF |
|
|
5081 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5082 | case "(($ac_try" in |
|
|
5083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5084 | *) ac_try_echo=$ac_try;; |
|
|
5085 | esac |
|
|
5086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5087 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5088 | ac_status=$? |
|
|
5089 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5090 | rm -f conftest.er1 |
|
|
5091 | cat conftest.err >&5 |
|
|
5092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5093 | (exit $ac_status); } >/dev/null && { |
|
|
5094 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5095 | test ! -s conftest.err |
|
|
5096 | }; then |
|
|
5097 | : |
|
|
5098 | else |
|
|
5099 | echo "$as_me: failed program was:" >&5 |
|
|
5100 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5101 | |
|
|
5102 | # Broken: fails on valid input. |
|
|
5103 | continue |
|
|
5104 | fi |
|
|
5105 | |
|
|
5106 | rm -f conftest.err conftest.$ac_ext |
|
|
5107 | |
|
|
5108 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
5109 | # can be detected and how. |
|
|
5110 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5111 | /* confdefs.h. */ |
|
|
5112 | _ACEOF |
|
|
5113 | cat confdefs.h >>conftest.$ac_ext |
|
|
5114 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5115 | /* end confdefs.h. */ |
|
|
5116 | #include <ac_nonexistent.h> |
|
|
5117 | _ACEOF |
|
|
5118 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5119 | case "(($ac_try" in |
|
|
5120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5121 | *) ac_try_echo=$ac_try;; |
|
|
5122 | esac |
|
|
5123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5124 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5125 | ac_status=$? |
|
|
5126 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5127 | rm -f conftest.er1 |
|
|
5128 | cat conftest.err >&5 |
|
|
5129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5130 | (exit $ac_status); } >/dev/null && { |
|
|
5131 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5132 | test ! -s conftest.err |
|
|
5133 | }; then |
|
|
5134 | # Broken: success on invalid input. |
|
|
5135 | continue |
|
|
5136 | else |
|
|
5137 | echo "$as_me: failed program was:" >&5 |
|
|
5138 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5139 | |
|
|
5140 | # Passes both tests. |
|
|
5141 | ac_preproc_ok=: |
|
|
5142 | break |
|
|
5143 | fi |
|
|
5144 | |
|
|
5145 | rm -f conftest.err conftest.$ac_ext |
|
|
5146 | |
|
|
5147 | done |
|
|
5148 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5149 | rm -f conftest.err conftest.$ac_ext |
|
|
5150 | if $ac_preproc_ok; then |
|
|
5151 | : |
|
|
5152 | else |
|
|
5153 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5154 | See \`config.log' for more details." >&5 |
|
|
5155 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5156 | See \`config.log' for more details." >&2;} |
|
|
5157 | { (exit 1); exit 1; }; } |
|
|
5158 | fi |
|
|
5159 | |
|
|
5160 | ac_ext=cpp |
|
|
5161 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5162 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5163 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5164 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
5165 | |
6274 | |
5166 | |
6275 | |
5167 | { echo "$as_me:$LINENO: checking for X" >&5 |
6276 | { echo "$as_me:$LINENO: checking for X" >&5 |
5168 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
6277 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
5169 | |
6278 | |
… | |
… | |
6555 | echo "${ECHO_T}no" >&6; } |
7664 | echo "${ECHO_T}no" >&6; } |
6556 | fi |
7665 | fi |
6557 | fi |
7666 | fi |
6558 | fi |
7667 | fi |
6559 | |
7668 | |
6560 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
|
|
6561 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
|
|
6562 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
|
|
6563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6564 | else |
|
|
6565 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6566 | /* confdefs.h. */ |
|
|
6567 | _ACEOF |
|
|
6568 | cat confdefs.h >>conftest.$ac_ext |
|
|
6569 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6570 | /* end confdefs.h. */ |
|
|
6571 | #include <sys/types.h> |
|
|
6572 | #include <sys/wait.h> |
|
|
6573 | #ifndef WEXITSTATUS |
|
|
6574 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
|
|
6575 | #endif |
|
|
6576 | #ifndef WIFEXITED |
|
|
6577 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
|
|
6578 | #endif |
|
|
6579 | |
|
|
6580 | int |
|
|
6581 | main () |
|
|
6582 | { |
|
|
6583 | int s; |
|
|
6584 | wait (&s); |
|
|
6585 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
|
|
6586 | ; |
|
|
6587 | return 0; |
|
|
6588 | } |
|
|
6589 | _ACEOF |
|
|
6590 | rm -f conftest.$ac_objext |
|
|
6591 | if { (ac_try="$ac_compile" |
|
|
6592 | case "(($ac_try" in |
|
|
6593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6594 | *) ac_try_echo=$ac_try;; |
|
|
6595 | esac |
|
|
6596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6597 | (eval "$ac_compile") 2>conftest.er1 |
|
|
6598 | ac_status=$? |
|
|
6599 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6600 | rm -f conftest.er1 |
|
|
6601 | cat conftest.err >&5 |
|
|
6602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6603 | (exit $ac_status); } && { |
|
|
6604 | test -z "$ac_cxx_werror_flag" || |
|
|
6605 | test ! -s conftest.err |
|
|
6606 | } && test -s conftest.$ac_objext; then |
|
|
6607 | ac_cv_header_sys_wait_h=yes |
|
|
6608 | else |
|
|
6609 | echo "$as_me: failed program was:" >&5 |
|
|
6610 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6611 | |
|
|
6612 | ac_cv_header_sys_wait_h=no |
|
|
6613 | fi |
|
|
6614 | |
|
|
6615 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6616 | fi |
|
|
6617 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
|
|
6618 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
|
|
6619 | if test $ac_cv_header_sys_wait_h = yes; then |
|
|
6620 | |
|
|
6621 | cat >>confdefs.h <<\_ACEOF |
|
|
6622 | #define HAVE_SYS_WAIT_H 1 |
|
|
6623 | _ACEOF |
|
|
6624 | |
|
|
6625 | fi |
|
|
6626 | |
|
|
6627 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
6628 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
|
|
6629 | if test "${ac_cv_header_stdc+set}" = set; then |
|
|
6630 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6631 | else |
|
|
6632 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6633 | /* confdefs.h. */ |
|
|
6634 | _ACEOF |
|
|
6635 | cat confdefs.h >>conftest.$ac_ext |
|
|
6636 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6637 | /* end confdefs.h. */ |
|
|
6638 | #include <stdlib.h> |
|
|
6639 | #include <stdarg.h> |
|
|
6640 | #include <string.h> |
|
|
6641 | #include <float.h> |
|
|
6642 | |
|
|
6643 | int |
|
|
6644 | main () |
|
|
6645 | { |
|
|
6646 | |
|
|
6647 | ; |
|
|
6648 | return 0; |
|
|
6649 | } |
|
|
6650 | _ACEOF |
|
|
6651 | rm -f conftest.$ac_objext |
|
|
6652 | if { (ac_try="$ac_compile" |
|
|
6653 | case "(($ac_try" in |
|
|
6654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6655 | *) ac_try_echo=$ac_try;; |
|
|
6656 | esac |
|
|
6657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6658 | (eval "$ac_compile") 2>conftest.er1 |
|
|
6659 | ac_status=$? |
|
|
6660 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6661 | rm -f conftest.er1 |
|
|
6662 | cat conftest.err >&5 |
|
|
6663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6664 | (exit $ac_status); } && { |
|
|
6665 | test -z "$ac_cxx_werror_flag" || |
|
|
6666 | test ! -s conftest.err |
|
|
6667 | } && test -s conftest.$ac_objext; then |
|
|
6668 | ac_cv_header_stdc=yes |
|
|
6669 | else |
|
|
6670 | echo "$as_me: failed program was:" >&5 |
|
|
6671 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6672 | |
|
|
6673 | ac_cv_header_stdc=no |
|
|
6674 | fi |
|
|
6675 | |
|
|
6676 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6677 | |
|
|
6678 | if test $ac_cv_header_stdc = yes; then |
|
|
6679 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
6680 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6681 | /* confdefs.h. */ |
|
|
6682 | _ACEOF |
|
|
6683 | cat confdefs.h >>conftest.$ac_ext |
|
|
6684 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6685 | /* end confdefs.h. */ |
|
|
6686 | #include <string.h> |
|
|
6687 | |
|
|
6688 | _ACEOF |
|
|
6689 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
6690 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
6691 | : |
|
|
6692 | else |
|
|
6693 | ac_cv_header_stdc=no |
|
|
6694 | fi |
|
|
6695 | rm -f conftest* |
|
|
6696 | |
|
|
6697 | fi |
|
|
6698 | |
|
|
6699 | if test $ac_cv_header_stdc = yes; then |
|
|
6700 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
6701 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6702 | /* confdefs.h. */ |
|
|
6703 | _ACEOF |
|
|
6704 | cat confdefs.h >>conftest.$ac_ext |
|
|
6705 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6706 | /* end confdefs.h. */ |
|
|
6707 | #include <stdlib.h> |
|
|
6708 | |
|
|
6709 | _ACEOF |
|
|
6710 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
6711 | $EGREP "free" >/dev/null 2>&1; then |
|
|
6712 | : |
|
|
6713 | else |
|
|
6714 | ac_cv_header_stdc=no |
|
|
6715 | fi |
|
|
6716 | rm -f conftest* |
|
|
6717 | |
|
|
6718 | fi |
|
|
6719 | |
|
|
6720 | if test $ac_cv_header_stdc = yes; then |
|
|
6721 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
6722 | if test "$cross_compiling" = yes; then |
|
|
6723 | : |
|
|
6724 | else |
|
|
6725 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6726 | /* confdefs.h. */ |
|
|
6727 | _ACEOF |
|
|
6728 | cat confdefs.h >>conftest.$ac_ext |
|
|
6729 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6730 | /* end confdefs.h. */ |
|
|
6731 | #include <ctype.h> |
|
|
6732 | #include <stdlib.h> |
|
|
6733 | #if ((' ' & 0x0FF) == 0x020) |
|
|
6734 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
6735 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
6736 | #else |
|
|
6737 | # define ISLOWER(c) \ |
|
|
6738 | (('a' <= (c) && (c) <= 'i') \ |
|
|
6739 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
6740 | || ('s' <= (c) && (c) <= 'z')) |
|
|
6741 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
6742 | #endif |
|
|
6743 | |
|
|
6744 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
6745 | int |
|
|
6746 | main () |
|
|
6747 | { |
|
|
6748 | int i; |
|
|
6749 | for (i = 0; i < 256; i++) |
|
|
6750 | if (XOR (islower (i), ISLOWER (i)) |
|
|
6751 | || toupper (i) != TOUPPER (i)) |
|
|
6752 | return 2; |
|
|
6753 | return 0; |
|
|
6754 | } |
|
|
6755 | _ACEOF |
|
|
6756 | rm -f conftest$ac_exeext |
|
|
6757 | if { (ac_try="$ac_link" |
|
|
6758 | case "(($ac_try" in |
|
|
6759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6760 | *) ac_try_echo=$ac_try;; |
|
|
6761 | esac |
|
|
6762 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6763 | (eval "$ac_link") 2>&5 |
|
|
6764 | ac_status=$? |
|
|
6765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6766 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
6767 | { (case "(($ac_try" in |
|
|
6768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6769 | *) ac_try_echo=$ac_try;; |
|
|
6770 | esac |
|
|
6771 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6772 | (eval "$ac_try") 2>&5 |
|
|
6773 | ac_status=$? |
|
|
6774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6775 | (exit $ac_status); }; }; then |
|
|
6776 | : |
|
|
6777 | else |
|
|
6778 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
6779 | echo "$as_me: failed program was:" >&5 |
|
|
6780 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6781 | |
|
|
6782 | ( exit $ac_status ) |
|
|
6783 | ac_cv_header_stdc=no |
|
|
6784 | fi |
|
|
6785 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
6786 | fi |
|
|
6787 | |
|
|
6788 | |
|
|
6789 | fi |
|
|
6790 | fi |
|
|
6791 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
6792 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
|
|
6793 | if test $ac_cv_header_stdc = yes; then |
|
|
6794 | |
|
|
6795 | cat >>confdefs.h <<\_ACEOF |
|
|
6796 | #define STDC_HEADERS 1 |
|
|
6797 | _ACEOF |
|
|
6798 | |
|
|
6799 | fi |
|
|
6800 | |
|
|
6801 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
6802 | |
|
|
6803 | |
|
|
6804 | |
|
|
6805 | |
|
|
6806 | |
|
|
6807 | |
|
|
6808 | |
|
|
6809 | |
|
|
6810 | |
|
|
6811 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
6812 | inttypes.h stdint.h unistd.h |
|
|
6813 | do |
|
|
6814 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
6815 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
6816 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
6817 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
6818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6819 | else |
|
|
6820 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6821 | /* confdefs.h. */ |
|
|
6822 | _ACEOF |
|
|
6823 | cat confdefs.h >>conftest.$ac_ext |
|
|
6824 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6825 | /* end confdefs.h. */ |
|
|
6826 | $ac_includes_default |
|
|
6827 | |
|
|
6828 | #include <$ac_header> |
|
|
6829 | _ACEOF |
|
|
6830 | rm -f conftest.$ac_objext |
|
|
6831 | if { (ac_try="$ac_compile" |
|
|
6832 | case "(($ac_try" in |
|
|
6833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6834 | *) ac_try_echo=$ac_try;; |
|
|
6835 | esac |
|
|
6836 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6837 | (eval "$ac_compile") 2>conftest.er1 |
|
|
6838 | ac_status=$? |
|
|
6839 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6840 | rm -f conftest.er1 |
|
|
6841 | cat conftest.err >&5 |
|
|
6842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6843 | (exit $ac_status); } && { |
|
|
6844 | test -z "$ac_cxx_werror_flag" || |
|
|
6845 | test ! -s conftest.err |
|
|
6846 | } && test -s conftest.$ac_objext; then |
|
|
6847 | eval "$as_ac_Header=yes" |
|
|
6848 | else |
|
|
6849 | echo "$as_me: failed program was:" >&5 |
|
|
6850 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6851 | |
|
|
6852 | eval "$as_ac_Header=no" |
|
|
6853 | fi |
|
|
6854 | |
|
|
6855 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6856 | fi |
|
|
6857 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
6858 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
6859 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
6860 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
6861 | cat >>confdefs.h <<_ACEOF |
|
|
6862 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
6863 | _ACEOF |
|
|
6864 | |
|
|
6865 | fi |
|
|
6866 | |
|
|
6867 | done |
|
|
6868 | |
|
|
6869 | |
|
|
6870 | |
|
|
6871 | |
|
|
6872 | |
|
|
6873 | |
|
|
6874 | |
|
|
6875 | |
|
|
6876 | |
|
|
6877 | |
|
|
6878 | |
|
|
6879 | |
|
|
6880 | |
7669 | |
6881 | |
7670 | |
6882 | |
7671 | |
6883 | |
7672 | |
6884 | |
7673 | |
6885 | |
7674 | |
6886 | |
7675 | |
6887 | for ac_header in \ |
7676 | for ac_header in \ |
6888 | assert.h \ |
|
|
6889 | fcntl.h \ |
|
|
6890 | stdarg.h \ |
|
|
6891 | stdlib.h \ |
|
|
6892 | string.h \ |
|
|
6893 | termios.h \ |
|
|
6894 | unistd.h \ |
|
|
6895 | sys/byteorder.h \ |
7677 | sys/byteorder.h \ |
6896 | sys/ioctl.h \ |
7678 | sys/ioctl.h \ |
6897 | sys/select.h \ |
|
|
6898 | sys/sockio.h \ |
7679 | sys/sockio.h \ |
6899 | sys/strredir.h \ |
7680 | sys/strredir.h \ |
6900 | sys/time.h \ |
|
|
6901 | stdint.h \ |
7681 | stdint.h \ |
6902 | wchar.h \ |
7682 | wchar.h \ |
6903 | cwchar \ |
7683 | cwchar \ |
6904 | clocale \ |
|
|
6905 | |
7684 | |
6906 | do |
7685 | do |
6907 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7686 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6908 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7687 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
6909 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7688 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
… | |
… | |
7040 | fi |
7819 | fi |
7041 | |
7820 | |
7042 | done |
7821 | done |
7043 | |
7822 | |
7044 | |
7823 | |
7045 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
|
|
7046 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
|
|
7047 | if test "${ac_cv_header_time+set}" = set; then |
|
|
7048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7049 | else |
|
|
7050 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7051 | /* confdefs.h. */ |
|
|
7052 | _ACEOF |
|
|
7053 | cat confdefs.h >>conftest.$ac_ext |
|
|
7054 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7055 | /* end confdefs.h. */ |
|
|
7056 | #include <sys/types.h> |
|
|
7057 | #include <sys/time.h> |
|
|
7058 | #include <time.h> |
|
|
7059 | |
|
|
7060 | int |
|
|
7061 | main () |
|
|
7062 | { |
|
|
7063 | if ((struct tm *) 0) |
|
|
7064 | return 0; |
|
|
7065 | ; |
|
|
7066 | return 0; |
|
|
7067 | } |
|
|
7068 | _ACEOF |
|
|
7069 | rm -f conftest.$ac_objext |
|
|
7070 | if { (ac_try="$ac_compile" |
|
|
7071 | case "(($ac_try" in |
|
|
7072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7073 | *) ac_try_echo=$ac_try;; |
|
|
7074 | esac |
|
|
7075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7076 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7077 | ac_status=$? |
|
|
7078 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7079 | rm -f conftest.er1 |
|
|
7080 | cat conftest.err >&5 |
|
|
7081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7082 | (exit $ac_status); } && { |
|
|
7083 | test -z "$ac_cxx_werror_flag" || |
|
|
7084 | test ! -s conftest.err |
|
|
7085 | } && test -s conftest.$ac_objext; then |
|
|
7086 | ac_cv_header_time=yes |
|
|
7087 | else |
|
|
7088 | echo "$as_me: failed program was:" >&5 |
|
|
7089 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7090 | |
|
|
7091 | ac_cv_header_time=no |
|
|
7092 | fi |
|
|
7093 | |
|
|
7094 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7095 | fi |
|
|
7096 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
|
|
7097 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
|
|
7098 | if test $ac_cv_header_time = yes; then |
|
|
7099 | |
|
|
7100 | cat >>confdefs.h <<\_ACEOF |
|
|
7101 | #define TIME_WITH_SYS_TIME 1 |
|
|
7102 | _ACEOF |
|
|
7103 | |
|
|
7104 | fi |
|
|
7105 | |
|
|
7106 | |
|
|
7107 | { echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5 |
|
|
7108 | echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; } |
|
|
7109 | if test "${rxvt_cv_header_sysioctl+set}" = set; then |
|
|
7110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7111 | else |
|
|
7112 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7113 | /* confdefs.h. */ |
|
|
7114 | _ACEOF |
|
|
7115 | cat confdefs.h >>conftest.$ac_ext |
|
|
7116 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7117 | /* end confdefs.h. */ |
|
|
7118 | #include <stdio.h> |
|
|
7119 | #include <sys/ioctl.h> |
|
|
7120 | #ifdef HAVE_TERMIOS_H |
|
|
7121 | #include <termios.h> |
|
|
7122 | #endif |
|
|
7123 | int |
|
|
7124 | main () |
|
|
7125 | { |
|
|
7126 | int a = ECHO; |
|
|
7127 | ; |
|
|
7128 | return 0; |
|
|
7129 | } |
|
|
7130 | _ACEOF |
|
|
7131 | rm -f conftest.$ac_objext |
|
|
7132 | if { (ac_try="$ac_compile" |
|
|
7133 | case "(($ac_try" in |
|
|
7134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7135 | *) ac_try_echo=$ac_try;; |
|
|
7136 | esac |
|
|
7137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7138 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7139 | ac_status=$? |
|
|
7140 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7141 | rm -f conftest.er1 |
|
|
7142 | cat conftest.err >&5 |
|
|
7143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7144 | (exit $ac_status); } && { |
|
|
7145 | test -z "$ac_cxx_werror_flag" || |
|
|
7146 | test ! -s conftest.err |
|
|
7147 | } && test -s conftest.$ac_objext; then |
|
|
7148 | rxvt_cv_header_sysioctl=yes |
|
|
7149 | else |
|
|
7150 | echo "$as_me: failed program was:" >&5 |
|
|
7151 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7152 | |
|
|
7153 | rxvt_cv_header_sysioctl=no |
|
|
7154 | fi |
|
|
7155 | |
|
|
7156 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7157 | fi |
|
|
7158 | { echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5 |
|
|
7159 | echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6; } |
|
|
7160 | |
|
|
7161 | { echo "$as_me:$LINENO: checking for XPointer" >&5 |
7824 | { echo "$as_me:$LINENO: checking for XPointer" >&5 |
7162 | echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } |
7825 | echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } |
7163 | if test "${rxvt_cv_xpointer+set}" = set; then |
7826 | if test "${rxvt_cv_xpointer+set}" = set; then |
7164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7165 | else |
7828 | else |
… | |
… | |
7276 | cat >>confdefs.h <<\_ACEOF |
7939 | cat >>confdefs.h <<\_ACEOF |
7277 | #define XLIB_ILLEGAL_ACCESS 1 |
7940 | #define XLIB_ILLEGAL_ACCESS 1 |
7278 | _ACEOF |
7941 | _ACEOF |
7279 | |
7942 | |
7280 | fi |
7943 | fi |
7281 | |
|
|
7282 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
|
|
7283 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
|
|
7284 | if test "${ac_cv_c_const+set}" = set; then |
|
|
7285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7286 | else |
|
|
7287 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7288 | /* confdefs.h. */ |
|
|
7289 | _ACEOF |
|
|
7290 | cat confdefs.h >>conftest.$ac_ext |
|
|
7291 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7292 | /* end confdefs.h. */ |
|
|
7293 | |
|
|
7294 | int |
|
|
7295 | main () |
|
|
7296 | { |
|
|
7297 | /* FIXME: Include the comments suggested by Paul. */ |
|
|
7298 | #ifndef __cplusplus |
|
|
7299 | /* Ultrix mips cc rejects this. */ |
|
|
7300 | typedef int charset[2]; |
|
|
7301 | const charset cs; |
|
|
7302 | /* SunOS 4.1.1 cc rejects this. */ |
|
|
7303 | char const *const *pcpcc; |
|
|
7304 | char **ppc; |
|
|
7305 | /* NEC SVR4.0.2 mips cc rejects this. */ |
|
|
7306 | struct point {int x, y;}; |
|
|
7307 | static struct point const zero = {0,0}; |
|
|
7308 | /* AIX XL C 1.02.0.0 rejects this. |
|
|
7309 | It does not let you subtract one const X* pointer from another in |
|
|
7310 | an arm of an if-expression whose if-part is not a constant |
|
|
7311 | expression */ |
|
|
7312 | const char *g = "string"; |
|
|
7313 | pcpcc = &g + (g ? g-g : 0); |
|
|
7314 | /* HPUX 7.0 cc rejects these. */ |
|
|
7315 | ++pcpcc; |
|
|
7316 | ppc = (char**) pcpcc; |
|
|
7317 | pcpcc = (char const *const *) ppc; |
|
|
7318 | { /* SCO 3.2v4 cc rejects this. */ |
|
|
7319 | char *t; |
|
|
7320 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
|
|
7321 | |
|
|
7322 | *t++ = 0; |
|
|
7323 | if (s) return 0; |
|
|
7324 | } |
|
|
7325 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
|
|
7326 | int x[] = {25, 17}; |
|
|
7327 | const int *foo = &x[0]; |
|
|
7328 | ++foo; |
|
|
7329 | } |
|
|
7330 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
|
|
7331 | typedef const int *iptr; |
|
|
7332 | iptr p = 0; |
|
|
7333 | ++p; |
|
|
7334 | } |
|
|
7335 | { /* AIX XL C 1.02.0.0 rejects this saying |
|
|
7336 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
|
|
7337 | struct s { int j; const int *ap[3]; }; |
|
|
7338 | struct s *b; b->j = 5; |
|
|
7339 | } |
|
|
7340 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
|
|
7341 | const int foo = 10; |
|
|
7342 | if (!foo) return 0; |
|
|
7343 | } |
|
|
7344 | return !cs[0] && !zero.x; |
|
|
7345 | #endif |
|
|
7346 | |
|
|
7347 | ; |
|
|
7348 | return 0; |
|
|
7349 | } |
|
|
7350 | _ACEOF |
|
|
7351 | rm -f conftest.$ac_objext |
|
|
7352 | if { (ac_try="$ac_compile" |
|
|
7353 | case "(($ac_try" in |
|
|
7354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7355 | *) ac_try_echo=$ac_try;; |
|
|
7356 | esac |
|
|
7357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7358 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7359 | ac_status=$? |
|
|
7360 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7361 | rm -f conftest.er1 |
|
|
7362 | cat conftest.err >&5 |
|
|
7363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7364 | (exit $ac_status); } && { |
|
|
7365 | test -z "$ac_cxx_werror_flag" || |
|
|
7366 | test ! -s conftest.err |
|
|
7367 | } && test -s conftest.$ac_objext; then |
|
|
7368 | ac_cv_c_const=yes |
|
|
7369 | else |
|
|
7370 | echo "$as_me: failed program was:" >&5 |
|
|
7371 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7372 | |
|
|
7373 | ac_cv_c_const=no |
|
|
7374 | fi |
|
|
7375 | |
|
|
7376 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7377 | fi |
|
|
7378 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
|
|
7379 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
|
|
7380 | if test $ac_cv_c_const = no; then |
|
|
7381 | |
|
|
7382 | cat >>confdefs.h <<\_ACEOF |
|
|
7383 | #define const |
|
|
7384 | _ACEOF |
|
|
7385 | |
|
|
7386 | fi |
|
|
7387 | |
|
|
7388 | { echo "$as_me:$LINENO: checking for inline" >&5 |
|
|
7389 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
|
|
7390 | if test "${ac_cv_c_inline+set}" = set; then |
|
|
7391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7392 | else |
|
|
7393 | ac_cv_c_inline=no |
|
|
7394 | for ac_kw in inline __inline__ __inline; do |
|
|
7395 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7396 | /* confdefs.h. */ |
|
|
7397 | _ACEOF |
|
|
7398 | cat confdefs.h >>conftest.$ac_ext |
|
|
7399 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7400 | /* end confdefs.h. */ |
|
|
7401 | #ifndef __cplusplus |
|
|
7402 | typedef int foo_t; |
|
|
7403 | static $ac_kw foo_t static_foo () {return 0; } |
|
|
7404 | $ac_kw foo_t foo () {return 0; } |
|
|
7405 | #endif |
|
|
7406 | |
|
|
7407 | _ACEOF |
|
|
7408 | rm -f conftest.$ac_objext |
|
|
7409 | if { (ac_try="$ac_compile" |
|
|
7410 | case "(($ac_try" in |
|
|
7411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7412 | *) ac_try_echo=$ac_try;; |
|
|
7413 | esac |
|
|
7414 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7415 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7416 | ac_status=$? |
|
|
7417 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7418 | rm -f conftest.er1 |
|
|
7419 | cat conftest.err >&5 |
|
|
7420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7421 | (exit $ac_status); } && { |
|
|
7422 | test -z "$ac_cxx_werror_flag" || |
|
|
7423 | test ! -s conftest.err |
|
|
7424 | } && test -s conftest.$ac_objext; then |
|
|
7425 | ac_cv_c_inline=$ac_kw |
|
|
7426 | else |
|
|
7427 | echo "$as_me: failed program was:" >&5 |
|
|
7428 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7429 | |
|
|
7430 | |
|
|
7431 | fi |
|
|
7432 | |
|
|
7433 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7434 | test "$ac_cv_c_inline" != no && break |
|
|
7435 | done |
|
|
7436 | |
|
|
7437 | fi |
|
|
7438 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
|
|
7439 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
|
|
7440 | |
|
|
7441 | |
|
|
7442 | case $ac_cv_c_inline in |
|
|
7443 | inline | yes) ;; |
|
|
7444 | *) |
|
|
7445 | case $ac_cv_c_inline in |
|
|
7446 | no) ac_val=;; |
|
|
7447 | *) ac_val=$ac_cv_c_inline;; |
|
|
7448 | esac |
|
|
7449 | cat >>confdefs.h <<_ACEOF |
|
|
7450 | #ifndef __cplusplus |
|
|
7451 | #define inline $ac_val |
|
|
7452 | #endif |
|
|
7453 | _ACEOF |
|
|
7454 | ;; |
|
|
7455 | esac |
|
|
7456 | |
|
|
7457 | |
|
|
7458 | |
7944 | |
7459 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
7945 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
7460 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
7946 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
7461 | if test "${ac_cv_type_mode_t+set}" = set; then |
7947 | if test "${ac_cv_type_mode_t+set}" = set; then |
7462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7948 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
7619 | _ACEOF |
8105 | _ACEOF |
7620 | |
8106 | |
7621 | fi |
8107 | fi |
7622 | |
8108 | |
7623 | |
8109 | |
7624 | { echo "$as_me:$LINENO: checking for short" >&5 |
8110 | { echo "$as_me:$LINENO: checking for int16_t" >&5 |
7625 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
8111 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } |
7626 | if test "${ac_cv_type_short+set}" = set; then |
8112 | if test "${ac_cv_c_int16_t+set}" = set; then |
7627 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7628 | else |
8114 | else |
|
|
8115 | ac_cv_c_int16_t=no |
|
|
8116 | for ac_type in 'int16_t' 'int' 'long int' \ |
|
|
8117 | 'long long int' 'short int' 'signed char'; do |
7629 | cat >conftest.$ac_ext <<_ACEOF |
8118 | cat >conftest.$ac_ext <<_ACEOF |
7630 | /* confdefs.h. */ |
8119 | /* confdefs.h. */ |
7631 | _ACEOF |
8120 | _ACEOF |
7632 | cat confdefs.h >>conftest.$ac_ext |
8121 | cat confdefs.h >>conftest.$ac_ext |
7633 | cat >>conftest.$ac_ext <<_ACEOF |
8122 | cat >>conftest.$ac_ext <<_ACEOF |
7634 | /* end confdefs.h. */ |
8123 | /* end confdefs.h. */ |
7635 | $ac_includes_default |
8124 | $ac_includes_default |
7636 | typedef short ac__type_new_; |
|
|
7637 | int |
8125 | int |
7638 | main () |
8126 | main () |
7639 | { |
8127 | { |
7640 | if ((ac__type_new_ *) 0) |
8128 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))]; |
7641 | return 0; |
8129 | test_array [0] = 0 |
7642 | if (sizeof (ac__type_new_)) |
8130 | |
7643 | return 0; |
|
|
7644 | ; |
8131 | ; |
7645 | return 0; |
8132 | return 0; |
7646 | } |
8133 | } |
7647 | _ACEOF |
8134 | _ACEOF |
7648 | rm -f conftest.$ac_objext |
8135 | rm -f conftest.$ac_objext |
… | |
… | |
7660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7661 | (exit $ac_status); } && { |
8148 | (exit $ac_status); } && { |
7662 | test -z "$ac_cxx_werror_flag" || |
8149 | test -z "$ac_cxx_werror_flag" || |
7663 | test ! -s conftest.err |
8150 | test ! -s conftest.err |
7664 | } && test -s conftest.$ac_objext; then |
8151 | } && test -s conftest.$ac_objext; then |
7665 | ac_cv_type_short=yes |
|
|
7666 | else |
|
|
7667 | echo "$as_me: failed program was:" >&5 |
|
|
7668 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7669 | |
|
|
7670 | ac_cv_type_short=no |
|
|
7671 | fi |
|
|
7672 | |
|
|
7673 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7674 | fi |
|
|
7675 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
|
|
7676 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
|
|
7677 | |
|
|
7678 | # The cast to long int works around a bug in the HP C Compiler |
|
|
7679 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
7680 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
7681 | # This bug is HP SR number 8606223364. |
|
|
7682 | { echo "$as_me:$LINENO: checking size of short" >&5 |
|
|
7683 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
|
|
7684 | if test "${ac_cv_sizeof_short+set}" = set; then |
|
|
7685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7686 | else |
|
|
7687 | if test "$cross_compiling" = yes; then |
|
|
7688 | # Depending upon the size, compute the lo and hi bounds. |
|
|
7689 | cat >conftest.$ac_ext <<_ACEOF |
8152 | cat >conftest.$ac_ext <<_ACEOF |
7690 | /* confdefs.h. */ |
8153 | /* confdefs.h. */ |
7691 | _ACEOF |
8154 | _ACEOF |
7692 | cat confdefs.h >>conftest.$ac_ext |
8155 | cat confdefs.h >>conftest.$ac_ext |
7693 | cat >>conftest.$ac_ext <<_ACEOF |
8156 | cat >>conftest.$ac_ext <<_ACEOF |
7694 | /* end confdefs.h. */ |
8157 | /* end confdefs.h. */ |
7695 | $ac_includes_default |
8158 | $ac_includes_default |
7696 | typedef short ac__type_sizeof_; |
|
|
7697 | int |
8159 | int |
7698 | main () |
8160 | main () |
7699 | { |
8161 | { |
7700 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
8162 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1) |
|
|
8163 | < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))]; |
7701 | test_array [0] = 0 |
8164 | test_array [0] = 0 |
7702 | |
8165 | |
7703 | ; |
8166 | ; |
7704 | return 0; |
8167 | return 0; |
7705 | } |
8168 | } |
… | |
… | |
7719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7720 | (exit $ac_status); } && { |
8183 | (exit $ac_status); } && { |
7721 | test -z "$ac_cxx_werror_flag" || |
8184 | test -z "$ac_cxx_werror_flag" || |
7722 | test ! -s conftest.err |
8185 | test ! -s conftest.err |
7723 | } && test -s conftest.$ac_objext; then |
8186 | } && test -s conftest.$ac_objext; then |
7724 | ac_lo=0 ac_mid=0 |
8187 | : |
7725 | while :; do |
8188 | else |
|
|
8189 | echo "$as_me: failed program was:" >&5 |
|
|
8190 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8191 | |
|
|
8192 | case $ac_type in |
|
|
8193 | int16_t) ac_cv_c_int16_t=yes ;; |
|
|
8194 | *) ac_cv_c_int16_t=$ac_type ;; |
|
|
8195 | esac |
|
|
8196 | |
|
|
8197 | fi |
|
|
8198 | |
|
|
8199 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8200 | else |
|
|
8201 | echo "$as_me: failed program was:" >&5 |
|
|
8202 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8203 | |
|
|
8204 | |
|
|
8205 | fi |
|
|
8206 | |
|
|
8207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8208 | test "$ac_cv_c_int16_t" != no && break |
|
|
8209 | done |
|
|
8210 | fi |
|
|
8211 | { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5 |
|
|
8212 | echo "${ECHO_T}$ac_cv_c_int16_t" >&6; } |
|
|
8213 | case $ac_cv_c_int16_t in #( |
|
|
8214 | no|yes) ;; #( |
|
|
8215 | *) |
|
|
8216 | |
|
|
8217 | cat >>confdefs.h <<_ACEOF |
|
|
8218 | #define int16_t $ac_cv_c_int16_t |
|
|
8219 | _ACEOF |
|
|
8220 | ;; |
|
|
8221 | esac |
|
|
8222 | |
|
|
8223 | |
|
|
8224 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 |
|
|
8225 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } |
|
|
8226 | if test "${ac_cv_c_uint16_t+set}" = set; then |
|
|
8227 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8228 | else |
|
|
8229 | ac_cv_c_uint16_t=no |
|
|
8230 | for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \ |
|
|
8231 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
7726 | cat >conftest.$ac_ext <<_ACEOF |
8232 | cat >conftest.$ac_ext <<_ACEOF |
7727 | /* confdefs.h. */ |
8233 | /* confdefs.h. */ |
7728 | _ACEOF |
8234 | _ACEOF |
7729 | cat confdefs.h >>conftest.$ac_ext |
8235 | cat confdefs.h >>conftest.$ac_ext |
7730 | cat >>conftest.$ac_ext <<_ACEOF |
8236 | cat >>conftest.$ac_ext <<_ACEOF |
7731 | /* end confdefs.h. */ |
8237 | /* end confdefs.h. */ |
7732 | $ac_includes_default |
8238 | $ac_includes_default |
7733 | typedef short ac__type_sizeof_; |
|
|
7734 | int |
8239 | int |
7735 | main () |
8240 | main () |
7736 | { |
8241 | { |
7737 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
8242 | static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)]; |
7738 | test_array [0] = 0 |
8243 | test_array [0] = 0 |
7739 | |
8244 | |
7740 | ; |
8245 | ; |
7741 | return 0; |
8246 | return 0; |
7742 | } |
8247 | } |
… | |
… | |
7756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7757 | (exit $ac_status); } && { |
8262 | (exit $ac_status); } && { |
7758 | test -z "$ac_cxx_werror_flag" || |
8263 | test -z "$ac_cxx_werror_flag" || |
7759 | test ! -s conftest.err |
8264 | test ! -s conftest.err |
7760 | } && test -s conftest.$ac_objext; then |
8265 | } && test -s conftest.$ac_objext; then |
7761 | ac_hi=$ac_mid; break |
8266 | case $ac_type in |
|
|
8267 | uint16_t) ac_cv_c_uint16_t=yes ;; |
|
|
8268 | *) ac_cv_c_uint16_t=$ac_type ;; |
|
|
8269 | esac |
|
|
8270 | |
7762 | else |
8271 | else |
7763 | echo "$as_me: failed program was:" >&5 |
8272 | echo "$as_me: failed program was:" >&5 |
7764 | sed 's/^/| /' conftest.$ac_ext >&5 |
8273 | sed 's/^/| /' conftest.$ac_ext >&5 |
7765 | |
8274 | |
7766 | ac_lo=`expr $ac_mid + 1` |
8275 | |
7767 | if test $ac_lo -le $ac_mid; then |
|
|
7768 | ac_lo= ac_hi= |
|
|
7769 | break |
|
|
7770 | fi |
|
|
7771 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
7772 | fi |
8276 | fi |
7773 | |
8277 | |
7774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8278 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8279 | test "$ac_cv_c_uint16_t" != no && break |
7775 | done |
8280 | done |
7776 | else |
8281 | fi |
7777 | echo "$as_me: failed program was:" >&5 |
8282 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5 |
7778 | sed 's/^/| /' conftest.$ac_ext >&5 |
8283 | echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; } |
|
|
8284 | case $ac_cv_c_uint16_t in #( |
|
|
8285 | no|yes) ;; #( |
|
|
8286 | *) |
7779 | |
8287 | |
|
|
8288 | |
|
|
8289 | cat >>confdefs.h <<_ACEOF |
|
|
8290 | #define uint16_t $ac_cv_c_uint16_t |
|
|
8291 | _ACEOF |
|
|
8292 | ;; |
|
|
8293 | esac |
|
|
8294 | |
|
|
8295 | |
|
|
8296 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
|
|
8297 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
|
|
8298 | if test "${ac_cv_c_int32_t+set}" = set; then |
|
|
8299 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8300 | else |
|
|
8301 | ac_cv_c_int32_t=no |
|
|
8302 | for ac_type in 'int32_t' 'int' 'long int' \ |
|
|
8303 | 'long long int' 'short int' 'signed char'; do |
7780 | cat >conftest.$ac_ext <<_ACEOF |
8304 | cat >conftest.$ac_ext <<_ACEOF |
7781 | /* confdefs.h. */ |
8305 | /* confdefs.h. */ |
7782 | _ACEOF |
8306 | _ACEOF |
7783 | cat confdefs.h >>conftest.$ac_ext |
8307 | cat confdefs.h >>conftest.$ac_ext |
7784 | cat >>conftest.$ac_ext <<_ACEOF |
8308 | cat >>conftest.$ac_ext <<_ACEOF |
7785 | /* end confdefs.h. */ |
8309 | /* end confdefs.h. */ |
7786 | $ac_includes_default |
8310 | $ac_includes_default |
7787 | typedef short ac__type_sizeof_; |
|
|
7788 | int |
8311 | int |
7789 | main () |
8312 | main () |
7790 | { |
8313 | { |
7791 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
8314 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))]; |
7792 | test_array [0] = 0 |
8315 | test_array [0] = 0 |
7793 | |
8316 | |
7794 | ; |
8317 | ; |
7795 | return 0; |
8318 | return 0; |
7796 | } |
8319 | } |
… | |
… | |
7810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7811 | (exit $ac_status); } && { |
8334 | (exit $ac_status); } && { |
7812 | test -z "$ac_cxx_werror_flag" || |
8335 | test -z "$ac_cxx_werror_flag" || |
7813 | test ! -s conftest.err |
8336 | test ! -s conftest.err |
7814 | } && test -s conftest.$ac_objext; then |
8337 | } && test -s conftest.$ac_objext; then |
7815 | ac_hi=-1 ac_mid=-1 |
|
|
7816 | while :; do |
|
|
7817 | cat >conftest.$ac_ext <<_ACEOF |
8338 | cat >conftest.$ac_ext <<_ACEOF |
7818 | /* confdefs.h. */ |
8339 | /* confdefs.h. */ |
7819 | _ACEOF |
8340 | _ACEOF |
7820 | cat confdefs.h >>conftest.$ac_ext |
8341 | cat confdefs.h >>conftest.$ac_ext |
7821 | cat >>conftest.$ac_ext <<_ACEOF |
8342 | cat >>conftest.$ac_ext <<_ACEOF |
7822 | /* end confdefs.h. */ |
8343 | /* end confdefs.h. */ |
7823 | $ac_includes_default |
8344 | $ac_includes_default |
7824 | typedef short ac__type_sizeof_; |
|
|
7825 | int |
8345 | int |
7826 | main () |
8346 | main () |
7827 | { |
8347 | { |
7828 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
8348 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1) |
|
|
8349 | < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))]; |
7829 | test_array [0] = 0 |
8350 | test_array [0] = 0 |
7830 | |
8351 | |
7831 | ; |
8352 | ; |
7832 | return 0; |
8353 | return 0; |
7833 | } |
8354 | } |
… | |
… | |
7847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7848 | (exit $ac_status); } && { |
8369 | (exit $ac_status); } && { |
7849 | test -z "$ac_cxx_werror_flag" || |
8370 | test -z "$ac_cxx_werror_flag" || |
7850 | test ! -s conftest.err |
8371 | test ! -s conftest.err |
7851 | } && test -s conftest.$ac_objext; then |
8372 | } && test -s conftest.$ac_objext; then |
7852 | ac_lo=$ac_mid; break |
8373 | : |
7853 | else |
8374 | else |
7854 | echo "$as_me: failed program was:" >&5 |
8375 | echo "$as_me: failed program was:" >&5 |
7855 | sed 's/^/| /' conftest.$ac_ext >&5 |
8376 | sed 's/^/| /' conftest.$ac_ext >&5 |
7856 | |
8377 | |
7857 | ac_hi=`expr '(' $ac_mid ')' - 1` |
8378 | case $ac_type in |
7858 | if test $ac_mid -le $ac_hi; then |
8379 | int32_t) ac_cv_c_int32_t=yes ;; |
7859 | ac_lo= ac_hi= |
8380 | *) ac_cv_c_int32_t=$ac_type ;; |
7860 | break |
8381 | esac |
7861 | fi |
8382 | |
7862 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
7863 | fi |
8383 | fi |
7864 | |
8384 | |
7865 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8385 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7866 | done |
|
|
7867 | else |
8386 | else |
7868 | echo "$as_me: failed program was:" >&5 |
8387 | echo "$as_me: failed program was:" >&5 |
7869 | sed 's/^/| /' conftest.$ac_ext >&5 |
8388 | sed 's/^/| /' conftest.$ac_ext >&5 |
7870 | |
8389 | |
7871 | ac_lo= ac_hi= |
8390 | |
7872 | fi |
8391 | fi |
7873 | |
8392 | |
7874 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8393 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8394 | test "$ac_cv_c_int32_t" != no && break |
|
|
8395 | done |
7875 | fi |
8396 | fi |
|
|
8397 | { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5 |
|
|
8398 | echo "${ECHO_T}$ac_cv_c_int32_t" >&6; } |
|
|
8399 | case $ac_cv_c_int32_t in #( |
|
|
8400 | no|yes) ;; #( |
|
|
8401 | *) |
7876 | |
8402 | |
7877 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8403 | cat >>confdefs.h <<_ACEOF |
7878 | # Binary search between lo and hi bounds. |
8404 | #define int32_t $ac_cv_c_int32_t |
7879 | while test "x$ac_lo" != "x$ac_hi"; do |
8405 | _ACEOF |
7880 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
8406 | ;; |
|
|
8407 | esac |
|
|
8408 | |
|
|
8409 | |
|
|
8410 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
|
|
8411 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
|
|
8412 | if test "${ac_cv_c_uint32_t+set}" = set; then |
|
|
8413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8414 | else |
|
|
8415 | ac_cv_c_uint32_t=no |
|
|
8416 | for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ |
|
|
8417 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
7881 | cat >conftest.$ac_ext <<_ACEOF |
8418 | cat >conftest.$ac_ext <<_ACEOF |
7882 | /* confdefs.h. */ |
8419 | /* confdefs.h. */ |
7883 | _ACEOF |
8420 | _ACEOF |
7884 | cat confdefs.h >>conftest.$ac_ext |
8421 | cat confdefs.h >>conftest.$ac_ext |
7885 | cat >>conftest.$ac_ext <<_ACEOF |
8422 | cat >>conftest.$ac_ext <<_ACEOF |
7886 | /* end confdefs.h. */ |
8423 | /* end confdefs.h. */ |
7887 | $ac_includes_default |
8424 | $ac_includes_default |
7888 | typedef short ac__type_sizeof_; |
|
|
7889 | int |
8425 | int |
7890 | main () |
8426 | main () |
7891 | { |
8427 | { |
7892 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
8428 | static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; |
7893 | test_array [0] = 0 |
8429 | test_array [0] = 0 |
7894 | |
8430 | |
7895 | ; |
8431 | ; |
7896 | return 0; |
8432 | return 0; |
7897 | } |
8433 | } |
… | |
… | |
7911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7912 | (exit $ac_status); } && { |
8448 | (exit $ac_status); } && { |
7913 | test -z "$ac_cxx_werror_flag" || |
8449 | test -z "$ac_cxx_werror_flag" || |
7914 | test ! -s conftest.err |
8450 | test ! -s conftest.err |
7915 | } && test -s conftest.$ac_objext; then |
8451 | } && test -s conftest.$ac_objext; then |
7916 | ac_hi=$ac_mid |
8452 | case $ac_type in |
|
|
8453 | uint32_t) ac_cv_c_uint32_t=yes ;; |
|
|
8454 | *) ac_cv_c_uint32_t=$ac_type ;; |
|
|
8455 | esac |
|
|
8456 | |
7917 | else |
8457 | else |
7918 | echo "$as_me: failed program was:" >&5 |
8458 | echo "$as_me: failed program was:" >&5 |
7919 | sed 's/^/| /' conftest.$ac_ext >&5 |
8459 | sed 's/^/| /' conftest.$ac_ext >&5 |
7920 | |
8460 | |
7921 | ac_lo=`expr '(' $ac_mid ')' + 1` |
8461 | |
7922 | fi |
8462 | fi |
7923 | |
8463 | |
7924 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8464 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7925 | done |
8465 | test "$ac_cv_c_uint32_t" != no && break |
7926 | case $ac_lo in |
8466 | done |
7927 | ?*) ac_cv_sizeof_short=$ac_lo;; |
|
|
7928 | '') if test "$ac_cv_type_short" = yes; then |
|
|
7929 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
|
|
7930 | See \`config.log' for more details." >&5 |
|
|
7931 | echo "$as_me: error: cannot compute sizeof (short) |
|
|
7932 | See \`config.log' for more details." >&2;} |
|
|
7933 | { (exit 77); exit 77; }; } |
|
|
7934 | else |
|
|
7935 | ac_cv_sizeof_short=0 |
|
|
7936 | fi ;; |
|
|
7937 | esac |
|
|
7938 | else |
|
|
7939 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7940 | /* confdefs.h. */ |
|
|
7941 | _ACEOF |
|
|
7942 | cat confdefs.h >>conftest.$ac_ext |
|
|
7943 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7944 | /* end confdefs.h. */ |
|
|
7945 | $ac_includes_default |
|
|
7946 | typedef short ac__type_sizeof_; |
|
|
7947 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
7948 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
7949 | #include <stdio.h> |
|
|
7950 | #include <stdlib.h> |
|
|
7951 | int |
|
|
7952 | main () |
|
|
7953 | { |
|
|
7954 | |
|
|
7955 | FILE *f = fopen ("conftest.val", "w"); |
|
|
7956 | if (! f) |
|
|
7957 | return 1; |
|
|
7958 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
7959 | { |
|
|
7960 | long int i = longval (); |
|
|
7961 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
7962 | return 1; |
|
|
7963 | fprintf (f, "%ld\n", i); |
|
|
7964 | } |
|
|
7965 | else |
|
|
7966 | { |
|
|
7967 | unsigned long int i = ulongval (); |
|
|
7968 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
7969 | return 1; |
|
|
7970 | fprintf (f, "%lu\n", i); |
|
|
7971 | } |
|
|
7972 | return ferror (f) || fclose (f) != 0; |
|
|
7973 | |
|
|
7974 | ; |
|
|
7975 | return 0; |
|
|
7976 | } |
|
|
7977 | _ACEOF |
|
|
7978 | rm -f conftest$ac_exeext |
|
|
7979 | if { (ac_try="$ac_link" |
|
|
7980 | case "(($ac_try" in |
|
|
7981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7982 | *) ac_try_echo=$ac_try;; |
|
|
7983 | esac |
|
|
7984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7985 | (eval "$ac_link") 2>&5 |
|
|
7986 | ac_status=$? |
|
|
7987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7988 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
7989 | { (case "(($ac_try" in |
|
|
7990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7991 | *) ac_try_echo=$ac_try;; |
|
|
7992 | esac |
|
|
7993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7994 | (eval "$ac_try") 2>&5 |
|
|
7995 | ac_status=$? |
|
|
7996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7997 | (exit $ac_status); }; }; then |
|
|
7998 | ac_cv_sizeof_short=`cat conftest.val` |
|
|
7999 | else |
|
|
8000 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
8001 | echo "$as_me: failed program was:" >&5 |
|
|
8002 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8003 | |
|
|
8004 | ( exit $ac_status ) |
|
|
8005 | if test "$ac_cv_type_short" = yes; then |
|
|
8006 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
|
|
8007 | See \`config.log' for more details." >&5 |
|
|
8008 | echo "$as_me: error: cannot compute sizeof (short) |
|
|
8009 | See \`config.log' for more details." >&2;} |
|
|
8010 | { (exit 77); exit 77; }; } |
|
|
8011 | else |
|
|
8012 | ac_cv_sizeof_short=0 |
|
|
8013 | fi |
|
|
8014 | fi |
8467 | fi |
8015 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
8016 | fi |
|
|
8017 | rm -f conftest.val |
|
|
8018 | fi |
|
|
8019 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
8468 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 |
8020 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
8469 | echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; } |
|
|
8470 | case $ac_cv_c_uint32_t in #( |
|
|
8471 | no|yes) ;; #( |
|
|
8472 | *) |
8021 | |
8473 | |
|
|
8474 | cat >>confdefs.h <<\_ACEOF |
|
|
8475 | #define _UINT32_T 1 |
|
|
8476 | _ACEOF |
8022 | |
8477 | |
8023 | |
8478 | |
8024 | cat >>confdefs.h <<_ACEOF |
8479 | cat >>confdefs.h <<_ACEOF |
8025 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
8480 | #define uint32_t $ac_cv_c_uint32_t |
8026 | _ACEOF |
8481 | _ACEOF |
8027 | |
8482 | ;; |
8028 | |
|
|
8029 | { echo "$as_me:$LINENO: checking for int" >&5 |
|
|
8030 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
|
|
8031 | if test "${ac_cv_type_int+set}" = set; then |
|
|
8032 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8033 | else |
|
|
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_new_; |
|
|
8042 | int |
|
|
8043 | main () |
|
|
8044 | { |
|
|
8045 | if ((ac__type_new_ *) 0) |
|
|
8046 | return 0; |
|
|
8047 | if (sizeof (ac__type_new_)) |
|
|
8048 | return 0; |
|
|
8049 | ; |
|
|
8050 | return 0; |
|
|
8051 | } |
|
|
8052 | _ACEOF |
|
|
8053 | rm -f conftest.$ac_objext |
|
|
8054 | if { (ac_try="$ac_compile" |
|
|
8055 | case "(($ac_try" in |
|
|
8056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8057 | *) ac_try_echo=$ac_try;; |
|
|
8058 | esac |
8483 | esac |
8059 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8060 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8061 | ac_status=$? |
|
|
8062 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8063 | rm -f conftest.er1 |
|
|
8064 | cat conftest.err >&5 |
|
|
8065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8066 | (exit $ac_status); } && { |
|
|
8067 | test -z "$ac_cxx_werror_flag" || |
|
|
8068 | test ! -s conftest.err |
|
|
8069 | } && test -s conftest.$ac_objext; then |
|
|
8070 | ac_cv_type_int=yes |
|
|
8071 | else |
|
|
8072 | echo "$as_me: failed program was:" >&5 |
|
|
8073 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8074 | |
8484 | |
8075 | ac_cv_type_int=no |
|
|
8076 | fi |
|
|
8077 | |
8485 | |
8078 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8079 | fi |
|
|
8080 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
|
|
8081 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
|
|
8082 | |
8486 | |
8083 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8084 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8085 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8086 | # This bug is HP SR number 8606223364. |
|
|
8087 | { echo "$as_me:$LINENO: checking size of int" >&5 |
|
|
8088 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
|
|
8089 | if test "${ac_cv_sizeof_int+set}" = set; then |
|
|
8090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8091 | else |
|
|
8092 | if test "$cross_compiling" = yes; then |
|
|
8093 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8094 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8095 | /* confdefs.h. */ |
|
|
8096 | _ACEOF |
|
|
8097 | cat confdefs.h >>conftest.$ac_ext |
|
|
8098 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8099 | /* end confdefs.h. */ |
|
|
8100 | $ac_includes_default |
|
|
8101 | typedef int ac__type_sizeof_; |
|
|
8102 | int |
|
|
8103 | main () |
|
|
8104 | { |
|
|
8105 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
8106 | test_array [0] = 0 |
|
|
8107 | |
|
|
8108 | ; |
|
|
8109 | return 0; |
|
|
8110 | } |
|
|
8111 | _ACEOF |
|
|
8112 | rm -f conftest.$ac_objext |
|
|
8113 | if { (ac_try="$ac_compile" |
|
|
8114 | case "(($ac_try" in |
|
|
8115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8116 | *) ac_try_echo=$ac_try;; |
|
|
8117 | esac |
|
|
8118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8119 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8120 | ac_status=$? |
|
|
8121 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8122 | rm -f conftest.er1 |
|
|
8123 | cat conftest.err >&5 |
|
|
8124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8125 | (exit $ac_status); } && { |
|
|
8126 | test -z "$ac_cxx_werror_flag" || |
|
|
8127 | test ! -s conftest.err |
|
|
8128 | } && test -s conftest.$ac_objext; then |
|
|
8129 | ac_lo=0 ac_mid=0 |
|
|
8130 | while :; do |
|
|
8131 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8132 | /* confdefs.h. */ |
|
|
8133 | _ACEOF |
|
|
8134 | cat confdefs.h >>conftest.$ac_ext |
|
|
8135 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8136 | /* end confdefs.h. */ |
|
|
8137 | $ac_includes_default |
|
|
8138 | typedef int ac__type_sizeof_; |
|
|
8139 | int |
|
|
8140 | main () |
|
|
8141 | { |
|
|
8142 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8143 | test_array [0] = 0 |
|
|
8144 | |
|
|
8145 | ; |
|
|
8146 | return 0; |
|
|
8147 | } |
|
|
8148 | _ACEOF |
|
|
8149 | rm -f conftest.$ac_objext |
|
|
8150 | if { (ac_try="$ac_compile" |
|
|
8151 | case "(($ac_try" in |
|
|
8152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8153 | *) ac_try_echo=$ac_try;; |
|
|
8154 | esac |
|
|
8155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8156 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8157 | ac_status=$? |
|
|
8158 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8159 | rm -f conftest.er1 |
|
|
8160 | cat conftest.err >&5 |
|
|
8161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8162 | (exit $ac_status); } && { |
|
|
8163 | test -z "$ac_cxx_werror_flag" || |
|
|
8164 | test ! -s conftest.err |
|
|
8165 | } && test -s conftest.$ac_objext; then |
|
|
8166 | ac_hi=$ac_mid; break |
|
|
8167 | else |
|
|
8168 | echo "$as_me: failed program was:" >&5 |
|
|
8169 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8170 | |
|
|
8171 | ac_lo=`expr $ac_mid + 1` |
|
|
8172 | if test $ac_lo -le $ac_mid; then |
|
|
8173 | ac_lo= ac_hi= |
|
|
8174 | break |
|
|
8175 | fi |
|
|
8176 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8177 | fi |
|
|
8178 | |
|
|
8179 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8180 | done |
|
|
8181 | else |
|
|
8182 | echo "$as_me: failed program was:" >&5 |
|
|
8183 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8184 | |
|
|
8185 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8186 | /* confdefs.h. */ |
|
|
8187 | _ACEOF |
|
|
8188 | cat confdefs.h >>conftest.$ac_ext |
|
|
8189 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8190 | /* end confdefs.h. */ |
|
|
8191 | $ac_includes_default |
|
|
8192 | typedef int ac__type_sizeof_; |
|
|
8193 | int |
|
|
8194 | main () |
|
|
8195 | { |
|
|
8196 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
8197 | test_array [0] = 0 |
|
|
8198 | |
|
|
8199 | ; |
|
|
8200 | return 0; |
|
|
8201 | } |
|
|
8202 | _ACEOF |
|
|
8203 | rm -f conftest.$ac_objext |
|
|
8204 | if { (ac_try="$ac_compile" |
|
|
8205 | case "(($ac_try" in |
|
|
8206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8207 | *) ac_try_echo=$ac_try;; |
|
|
8208 | esac |
|
|
8209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8210 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8211 | ac_status=$? |
|
|
8212 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8213 | rm -f conftest.er1 |
|
|
8214 | cat conftest.err >&5 |
|
|
8215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8216 | (exit $ac_status); } && { |
|
|
8217 | test -z "$ac_cxx_werror_flag" || |
|
|
8218 | test ! -s conftest.err |
|
|
8219 | } && test -s conftest.$ac_objext; then |
|
|
8220 | ac_hi=-1 ac_mid=-1 |
|
|
8221 | while :; do |
|
|
8222 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8223 | /* confdefs.h. */ |
|
|
8224 | _ACEOF |
|
|
8225 | cat confdefs.h >>conftest.$ac_ext |
|
|
8226 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8227 | /* end confdefs.h. */ |
|
|
8228 | $ac_includes_default |
|
|
8229 | typedef int ac__type_sizeof_; |
|
|
8230 | int |
|
|
8231 | main () |
|
|
8232 | { |
|
|
8233 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
8234 | test_array [0] = 0 |
|
|
8235 | |
|
|
8236 | ; |
|
|
8237 | return 0; |
|
|
8238 | } |
|
|
8239 | _ACEOF |
|
|
8240 | rm -f conftest.$ac_objext |
|
|
8241 | if { (ac_try="$ac_compile" |
|
|
8242 | case "(($ac_try" in |
|
|
8243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8244 | *) ac_try_echo=$ac_try;; |
|
|
8245 | esac |
|
|
8246 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8247 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8248 | ac_status=$? |
|
|
8249 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8250 | rm -f conftest.er1 |
|
|
8251 | cat conftest.err >&5 |
|
|
8252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8253 | (exit $ac_status); } && { |
|
|
8254 | test -z "$ac_cxx_werror_flag" || |
|
|
8255 | test ! -s conftest.err |
|
|
8256 | } && test -s conftest.$ac_objext; then |
|
|
8257 | ac_lo=$ac_mid; break |
|
|
8258 | else |
|
|
8259 | echo "$as_me: failed program was:" >&5 |
|
|
8260 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8261 | |
|
|
8262 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
8263 | if test $ac_mid -le $ac_hi; then |
|
|
8264 | ac_lo= ac_hi= |
|
|
8265 | break |
|
|
8266 | fi |
|
|
8267 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
8268 | fi |
|
|
8269 | |
|
|
8270 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8271 | done |
|
|
8272 | else |
|
|
8273 | echo "$as_me: failed program was:" >&5 |
|
|
8274 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8275 | |
|
|
8276 | ac_lo= ac_hi= |
|
|
8277 | fi |
|
|
8278 | |
|
|
8279 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8280 | fi |
|
|
8281 | |
|
|
8282 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8283 | # Binary search between lo and hi bounds. |
|
|
8284 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
8285 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
8286 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8287 | /* confdefs.h. */ |
|
|
8288 | _ACEOF |
|
|
8289 | cat confdefs.h >>conftest.$ac_ext |
|
|
8290 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8291 | /* end confdefs.h. */ |
|
|
8292 | $ac_includes_default |
|
|
8293 | typedef int ac__type_sizeof_; |
|
|
8294 | int |
|
|
8295 | main () |
|
|
8296 | { |
|
|
8297 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8298 | test_array [0] = 0 |
|
|
8299 | |
|
|
8300 | ; |
|
|
8301 | return 0; |
|
|
8302 | } |
|
|
8303 | _ACEOF |
|
|
8304 | rm -f conftest.$ac_objext |
|
|
8305 | if { (ac_try="$ac_compile" |
|
|
8306 | case "(($ac_try" in |
|
|
8307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8308 | *) ac_try_echo=$ac_try;; |
|
|
8309 | esac |
|
|
8310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8311 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8312 | ac_status=$? |
|
|
8313 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8314 | rm -f conftest.er1 |
|
|
8315 | cat conftest.err >&5 |
|
|
8316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8317 | (exit $ac_status); } && { |
|
|
8318 | test -z "$ac_cxx_werror_flag" || |
|
|
8319 | test ! -s conftest.err |
|
|
8320 | } && test -s conftest.$ac_objext; then |
|
|
8321 | ac_hi=$ac_mid |
|
|
8322 | else |
|
|
8323 | echo "$as_me: failed program was:" >&5 |
|
|
8324 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8325 | |
|
|
8326 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
8327 | fi |
|
|
8328 | |
|
|
8329 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8330 | done |
|
|
8331 | case $ac_lo in |
|
|
8332 | ?*) ac_cv_sizeof_int=$ac_lo;; |
|
|
8333 | '') if test "$ac_cv_type_int" = yes; then |
|
|
8334 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
|
|
8335 | See \`config.log' for more details." >&5 |
|
|
8336 | echo "$as_me: error: cannot compute sizeof (int) |
|
|
8337 | See \`config.log' for more details." >&2;} |
|
|
8338 | { (exit 77); exit 77; }; } |
|
|
8339 | else |
|
|
8340 | ac_cv_sizeof_int=0 |
|
|
8341 | fi ;; |
|
|
8342 | esac |
|
|
8343 | else |
|
|
8344 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8345 | /* confdefs.h. */ |
|
|
8346 | _ACEOF |
|
|
8347 | cat confdefs.h >>conftest.$ac_ext |
|
|
8348 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8349 | /* end confdefs.h. */ |
|
|
8350 | $ac_includes_default |
|
|
8351 | typedef int ac__type_sizeof_; |
|
|
8352 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8353 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8354 | #include <stdio.h> |
|
|
8355 | #include <stdlib.h> |
|
|
8356 | int |
|
|
8357 | main () |
|
|
8358 | { |
|
|
8359 | |
|
|
8360 | FILE *f = fopen ("conftest.val", "w"); |
|
|
8361 | if (! f) |
|
|
8362 | return 1; |
|
|
8363 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
8364 | { |
|
|
8365 | long int i = longval (); |
|
|
8366 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8367 | return 1; |
|
|
8368 | fprintf (f, "%ld\n", i); |
|
|
8369 | } |
|
|
8370 | else |
|
|
8371 | { |
|
|
8372 | unsigned long int i = ulongval (); |
|
|
8373 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8374 | return 1; |
|
|
8375 | fprintf (f, "%lu\n", i); |
|
|
8376 | } |
|
|
8377 | return ferror (f) || fclose (f) != 0; |
|
|
8378 | |
|
|
8379 | ; |
|
|
8380 | return 0; |
|
|
8381 | } |
|
|
8382 | _ACEOF |
|
|
8383 | rm -f conftest$ac_exeext |
|
|
8384 | if { (ac_try="$ac_link" |
|
|
8385 | case "(($ac_try" in |
|
|
8386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8387 | *) ac_try_echo=$ac_try;; |
|
|
8388 | esac |
|
|
8389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8390 | (eval "$ac_link") 2>&5 |
|
|
8391 | ac_status=$? |
|
|
8392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8393 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
8394 | { (case "(($ac_try" in |
|
|
8395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8396 | *) ac_try_echo=$ac_try;; |
|
|
8397 | esac |
|
|
8398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8399 | (eval "$ac_try") 2>&5 |
|
|
8400 | ac_status=$? |
|
|
8401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8402 | (exit $ac_status); }; }; then |
|
|
8403 | ac_cv_sizeof_int=`cat conftest.val` |
|
|
8404 | else |
|
|
8405 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
8406 | echo "$as_me: failed program was:" >&5 |
|
|
8407 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8408 | |
|
|
8409 | ( exit $ac_status ) |
|
|
8410 | if test "$ac_cv_type_int" = yes; then |
|
|
8411 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
|
|
8412 | See \`config.log' for more details." >&5 |
|
|
8413 | echo "$as_me: error: cannot compute sizeof (int) |
|
|
8414 | See \`config.log' for more details." >&2;} |
|
|
8415 | { (exit 77); exit 77; }; } |
|
|
8416 | else |
|
|
8417 | ac_cv_sizeof_int=0 |
|
|
8418 | fi |
|
|
8419 | fi |
|
|
8420 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
8421 | fi |
|
|
8422 | rm -f conftest.val |
|
|
8423 | fi |
|
|
8424 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
|
|
8425 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
|
|
8426 | |
|
|
8427 | |
|
|
8428 | |
|
|
8429 | cat >>confdefs.h <<_ACEOF |
|
|
8430 | #define SIZEOF_INT $ac_cv_sizeof_int |
|
|
8431 | _ACEOF |
|
|
8432 | |
|
|
8433 | |
|
|
8434 | { echo "$as_me:$LINENO: checking for long long" >&5 |
|
|
8435 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
|
|
8436 | if test "${ac_cv_type_long_long+set}" = set; then |
|
|
8437 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8438 | else |
|
|
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_new_; |
|
|
8447 | int |
|
|
8448 | main () |
|
|
8449 | { |
|
|
8450 | if ((ac__type_new_ *) 0) |
|
|
8451 | return 0; |
|
|
8452 | if (sizeof (ac__type_new_)) |
|
|
8453 | return 0; |
|
|
8454 | ; |
|
|
8455 | return 0; |
|
|
8456 | } |
|
|
8457 | _ACEOF |
|
|
8458 | rm -f conftest.$ac_objext |
|
|
8459 | if { (ac_try="$ac_compile" |
|
|
8460 | case "(($ac_try" in |
|
|
8461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8462 | *) ac_try_echo=$ac_try;; |
|
|
8463 | esac |
|
|
8464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8465 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8466 | ac_status=$? |
|
|
8467 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8468 | rm -f conftest.er1 |
|
|
8469 | cat conftest.err >&5 |
|
|
8470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8471 | (exit $ac_status); } && { |
|
|
8472 | test -z "$ac_cxx_werror_flag" || |
|
|
8473 | test ! -s conftest.err |
|
|
8474 | } && test -s conftest.$ac_objext; then |
|
|
8475 | ac_cv_type_long_long=yes |
|
|
8476 | else |
|
|
8477 | echo "$as_me: failed program was:" >&5 |
|
|
8478 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8479 | |
|
|
8480 | ac_cv_type_long_long=no |
|
|
8481 | fi |
|
|
8482 | |
|
|
8483 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8484 | fi |
|
|
8485 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
|
|
8486 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
|
|
8487 | |
|
|
8488 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8489 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8490 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8491 | # This bug is HP SR number 8606223364. |
|
|
8492 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
|
|
8493 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } |
|
|
8494 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
|
|
8495 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8496 | else |
|
|
8497 | if test "$cross_compiling" = yes; then |
|
|
8498 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8499 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8500 | /* confdefs.h. */ |
|
|
8501 | _ACEOF |
|
|
8502 | cat confdefs.h >>conftest.$ac_ext |
|
|
8503 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8504 | /* end confdefs.h. */ |
|
|
8505 | $ac_includes_default |
|
|
8506 | typedef long long ac__type_sizeof_; |
|
|
8507 | int |
|
|
8508 | main () |
|
|
8509 | { |
|
|
8510 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
8511 | test_array [0] = 0 |
|
|
8512 | |
|
|
8513 | ; |
|
|
8514 | return 0; |
|
|
8515 | } |
|
|
8516 | _ACEOF |
|
|
8517 | rm -f conftest.$ac_objext |
|
|
8518 | if { (ac_try="$ac_compile" |
|
|
8519 | case "(($ac_try" in |
|
|
8520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8521 | *) ac_try_echo=$ac_try;; |
|
|
8522 | esac |
|
|
8523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8524 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8525 | ac_status=$? |
|
|
8526 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8527 | rm -f conftest.er1 |
|
|
8528 | cat conftest.err >&5 |
|
|
8529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8530 | (exit $ac_status); } && { |
|
|
8531 | test -z "$ac_cxx_werror_flag" || |
|
|
8532 | test ! -s conftest.err |
|
|
8533 | } && test -s conftest.$ac_objext; then |
|
|
8534 | ac_lo=0 ac_mid=0 |
|
|
8535 | while :; do |
|
|
8536 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8537 | /* confdefs.h. */ |
|
|
8538 | _ACEOF |
|
|
8539 | cat confdefs.h >>conftest.$ac_ext |
|
|
8540 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8541 | /* end confdefs.h. */ |
|
|
8542 | $ac_includes_default |
|
|
8543 | typedef long long ac__type_sizeof_; |
|
|
8544 | int |
|
|
8545 | main () |
|
|
8546 | { |
|
|
8547 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8548 | test_array [0] = 0 |
|
|
8549 | |
|
|
8550 | ; |
|
|
8551 | return 0; |
|
|
8552 | } |
|
|
8553 | _ACEOF |
|
|
8554 | rm -f conftest.$ac_objext |
|
|
8555 | if { (ac_try="$ac_compile" |
|
|
8556 | case "(($ac_try" in |
|
|
8557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8558 | *) ac_try_echo=$ac_try;; |
|
|
8559 | esac |
|
|
8560 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8561 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8562 | ac_status=$? |
|
|
8563 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8564 | rm -f conftest.er1 |
|
|
8565 | cat conftest.err >&5 |
|
|
8566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8567 | (exit $ac_status); } && { |
|
|
8568 | test -z "$ac_cxx_werror_flag" || |
|
|
8569 | test ! -s conftest.err |
|
|
8570 | } && test -s conftest.$ac_objext; then |
|
|
8571 | ac_hi=$ac_mid; break |
|
|
8572 | else |
|
|
8573 | echo "$as_me: failed program was:" >&5 |
|
|
8574 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8575 | |
|
|
8576 | ac_lo=`expr $ac_mid + 1` |
|
|
8577 | if test $ac_lo -le $ac_mid; then |
|
|
8578 | ac_lo= ac_hi= |
|
|
8579 | break |
|
|
8580 | fi |
|
|
8581 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8582 | fi |
|
|
8583 | |
|
|
8584 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8585 | done |
|
|
8586 | else |
|
|
8587 | echo "$as_me: failed program was:" >&5 |
|
|
8588 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8589 | |
|
|
8590 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8591 | /* confdefs.h. */ |
|
|
8592 | _ACEOF |
|
|
8593 | cat confdefs.h >>conftest.$ac_ext |
|
|
8594 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8595 | /* end confdefs.h. */ |
|
|
8596 | $ac_includes_default |
|
|
8597 | typedef long long ac__type_sizeof_; |
|
|
8598 | int |
|
|
8599 | main () |
|
|
8600 | { |
|
|
8601 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
8602 | test_array [0] = 0 |
|
|
8603 | |
|
|
8604 | ; |
|
|
8605 | return 0; |
|
|
8606 | } |
|
|
8607 | _ACEOF |
|
|
8608 | rm -f conftest.$ac_objext |
|
|
8609 | if { (ac_try="$ac_compile" |
|
|
8610 | case "(($ac_try" in |
|
|
8611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8612 | *) ac_try_echo=$ac_try;; |
|
|
8613 | esac |
|
|
8614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8615 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8616 | ac_status=$? |
|
|
8617 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8618 | rm -f conftest.er1 |
|
|
8619 | cat conftest.err >&5 |
|
|
8620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8621 | (exit $ac_status); } && { |
|
|
8622 | test -z "$ac_cxx_werror_flag" || |
|
|
8623 | test ! -s conftest.err |
|
|
8624 | } && test -s conftest.$ac_objext; then |
|
|
8625 | ac_hi=-1 ac_mid=-1 |
|
|
8626 | while :; do |
|
|
8627 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8628 | /* confdefs.h. */ |
|
|
8629 | _ACEOF |
|
|
8630 | cat confdefs.h >>conftest.$ac_ext |
|
|
8631 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8632 | /* end confdefs.h. */ |
|
|
8633 | $ac_includes_default |
|
|
8634 | typedef long long ac__type_sizeof_; |
|
|
8635 | int |
|
|
8636 | main () |
|
|
8637 | { |
|
|
8638 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
8639 | test_array [0] = 0 |
|
|
8640 | |
|
|
8641 | ; |
|
|
8642 | return 0; |
|
|
8643 | } |
|
|
8644 | _ACEOF |
|
|
8645 | rm -f conftest.$ac_objext |
|
|
8646 | if { (ac_try="$ac_compile" |
|
|
8647 | case "(($ac_try" in |
|
|
8648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8649 | *) ac_try_echo=$ac_try;; |
|
|
8650 | esac |
|
|
8651 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8652 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8653 | ac_status=$? |
|
|
8654 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8655 | rm -f conftest.er1 |
|
|
8656 | cat conftest.err >&5 |
|
|
8657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8658 | (exit $ac_status); } && { |
|
|
8659 | test -z "$ac_cxx_werror_flag" || |
|
|
8660 | test ! -s conftest.err |
|
|
8661 | } && test -s conftest.$ac_objext; then |
|
|
8662 | ac_lo=$ac_mid; break |
|
|
8663 | else |
|
|
8664 | echo "$as_me: failed program was:" >&5 |
|
|
8665 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8666 | |
|
|
8667 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
8668 | if test $ac_mid -le $ac_hi; then |
|
|
8669 | ac_lo= ac_hi= |
|
|
8670 | break |
|
|
8671 | fi |
|
|
8672 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
8673 | fi |
|
|
8674 | |
|
|
8675 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8676 | done |
|
|
8677 | else |
|
|
8678 | echo "$as_me: failed program was:" >&5 |
|
|
8679 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8680 | |
|
|
8681 | ac_lo= ac_hi= |
|
|
8682 | fi |
|
|
8683 | |
|
|
8684 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8685 | fi |
|
|
8686 | |
|
|
8687 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8688 | # Binary search between lo and hi bounds. |
|
|
8689 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
8690 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
8691 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8692 | /* confdefs.h. */ |
|
|
8693 | _ACEOF |
|
|
8694 | cat confdefs.h >>conftest.$ac_ext |
|
|
8695 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8696 | /* end confdefs.h. */ |
|
|
8697 | $ac_includes_default |
|
|
8698 | typedef long long ac__type_sizeof_; |
|
|
8699 | int |
|
|
8700 | main () |
|
|
8701 | { |
|
|
8702 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8703 | test_array [0] = 0 |
|
|
8704 | |
|
|
8705 | ; |
|
|
8706 | return 0; |
|
|
8707 | } |
|
|
8708 | _ACEOF |
|
|
8709 | rm -f conftest.$ac_objext |
|
|
8710 | if { (ac_try="$ac_compile" |
|
|
8711 | case "(($ac_try" in |
|
|
8712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8713 | *) ac_try_echo=$ac_try;; |
|
|
8714 | esac |
|
|
8715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8716 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8717 | ac_status=$? |
|
|
8718 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8719 | rm -f conftest.er1 |
|
|
8720 | cat conftest.err >&5 |
|
|
8721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8722 | (exit $ac_status); } && { |
|
|
8723 | test -z "$ac_cxx_werror_flag" || |
|
|
8724 | test ! -s conftest.err |
|
|
8725 | } && test -s conftest.$ac_objext; then |
|
|
8726 | ac_hi=$ac_mid |
|
|
8727 | else |
|
|
8728 | echo "$as_me: failed program was:" >&5 |
|
|
8729 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8730 | |
|
|
8731 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
8732 | fi |
|
|
8733 | |
|
|
8734 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8735 | done |
|
|
8736 | case $ac_lo in |
|
|
8737 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
|
|
8738 | '') if test "$ac_cv_type_long_long" = yes; then |
|
|
8739 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
|
|
8740 | See \`config.log' for more details." >&5 |
|
|
8741 | echo "$as_me: error: cannot compute sizeof (long long) |
|
|
8742 | See \`config.log' for more details." >&2;} |
|
|
8743 | { (exit 77); exit 77; }; } |
|
|
8744 | else |
|
|
8745 | ac_cv_sizeof_long_long=0 |
|
|
8746 | fi ;; |
|
|
8747 | esac |
|
|
8748 | else |
|
|
8749 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8750 | /* confdefs.h. */ |
|
|
8751 | _ACEOF |
|
|
8752 | cat confdefs.h >>conftest.$ac_ext |
|
|
8753 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8754 | /* end confdefs.h. */ |
|
|
8755 | $ac_includes_default |
|
|
8756 | typedef long long ac__type_sizeof_; |
|
|
8757 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8758 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8759 | #include <stdio.h> |
|
|
8760 | #include <stdlib.h> |
|
|
8761 | int |
|
|
8762 | main () |
|
|
8763 | { |
|
|
8764 | |
|
|
8765 | FILE *f = fopen ("conftest.val", "w"); |
|
|
8766 | if (! f) |
|
|
8767 | return 1; |
|
|
8768 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
8769 | { |
|
|
8770 | long int i = longval (); |
|
|
8771 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8772 | return 1; |
|
|
8773 | fprintf (f, "%ld\n", i); |
|
|
8774 | } |
|
|
8775 | else |
|
|
8776 | { |
|
|
8777 | unsigned long int i = ulongval (); |
|
|
8778 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8779 | return 1; |
|
|
8780 | fprintf (f, "%lu\n", i); |
|
|
8781 | } |
|
|
8782 | return ferror (f) || fclose (f) != 0; |
|
|
8783 | |
|
|
8784 | ; |
|
|
8785 | return 0; |
|
|
8786 | } |
|
|
8787 | _ACEOF |
|
|
8788 | rm -f conftest$ac_exeext |
|
|
8789 | if { (ac_try="$ac_link" |
|
|
8790 | case "(($ac_try" in |
|
|
8791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8792 | *) ac_try_echo=$ac_try;; |
|
|
8793 | esac |
|
|
8794 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8795 | (eval "$ac_link") 2>&5 |
|
|
8796 | ac_status=$? |
|
|
8797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8798 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
8799 | { (case "(($ac_try" in |
|
|
8800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8801 | *) ac_try_echo=$ac_try;; |
|
|
8802 | esac |
|
|
8803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8804 | (eval "$ac_try") 2>&5 |
|
|
8805 | ac_status=$? |
|
|
8806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8807 | (exit $ac_status); }; }; then |
|
|
8808 | ac_cv_sizeof_long_long=`cat conftest.val` |
|
|
8809 | else |
|
|
8810 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
8811 | echo "$as_me: failed program was:" >&5 |
|
|
8812 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8813 | |
|
|
8814 | ( exit $ac_status ) |
|
|
8815 | if test "$ac_cv_type_long_long" = yes; then |
|
|
8816 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
|
|
8817 | See \`config.log' for more details." >&5 |
|
|
8818 | echo "$as_me: error: cannot compute sizeof (long long) |
|
|
8819 | See \`config.log' for more details." >&2;} |
|
|
8820 | { (exit 77); exit 77; }; } |
|
|
8821 | else |
|
|
8822 | ac_cv_sizeof_long_long=0 |
|
|
8823 | fi |
|
|
8824 | fi |
|
|
8825 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
8826 | fi |
|
|
8827 | rm -f conftest.val |
|
|
8828 | fi |
|
|
8829 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
|
|
8830 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
|
|
8831 | |
|
|
8832 | |
|
|
8833 | |
|
|
8834 | cat >>confdefs.h <<_ACEOF |
|
|
8835 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
|
|
8836 | _ACEOF |
|
|
8837 | |
|
|
8838 | |
|
|
8839 | { echo "$as_me:$LINENO: checking for int *" >&5 |
|
|
8840 | echo $ECHO_N "checking for int *... $ECHO_C" >&6; } |
|
|
8841 | if test "${ac_cv_type_int_p+set}" = set; then |
|
|
8842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8843 | else |
|
|
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_new_; |
|
|
8852 | int |
|
|
8853 | main () |
|
|
8854 | { |
|
|
8855 | if ((ac__type_new_ *) 0) |
|
|
8856 | return 0; |
|
|
8857 | if (sizeof (ac__type_new_)) |
|
|
8858 | return 0; |
|
|
8859 | ; |
|
|
8860 | return 0; |
|
|
8861 | } |
|
|
8862 | _ACEOF |
|
|
8863 | rm -f conftest.$ac_objext |
|
|
8864 | if { (ac_try="$ac_compile" |
|
|
8865 | case "(($ac_try" in |
|
|
8866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8867 | *) ac_try_echo=$ac_try;; |
|
|
8868 | esac |
|
|
8869 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8870 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8871 | ac_status=$? |
|
|
8872 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8873 | rm -f conftest.er1 |
|
|
8874 | cat conftest.err >&5 |
|
|
8875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8876 | (exit $ac_status); } && { |
|
|
8877 | test -z "$ac_cxx_werror_flag" || |
|
|
8878 | test ! -s conftest.err |
|
|
8879 | } && test -s conftest.$ac_objext; then |
|
|
8880 | ac_cv_type_int_p=yes |
|
|
8881 | else |
|
|
8882 | echo "$as_me: failed program was:" >&5 |
|
|
8883 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8884 | |
|
|
8885 | ac_cv_type_int_p=no |
|
|
8886 | fi |
|
|
8887 | |
|
|
8888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8889 | fi |
|
|
8890 | { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5 |
|
|
8891 | echo "${ECHO_T}$ac_cv_type_int_p" >&6; } |
|
|
8892 | |
|
|
8893 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8894 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8895 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8896 | # This bug is HP SR number 8606223364. |
|
|
8897 | { echo "$as_me:$LINENO: checking size of int *" >&5 |
|
|
8898 | echo $ECHO_N "checking size of int *... $ECHO_C" >&6; } |
|
|
8899 | if test "${ac_cv_sizeof_int_p+set}" = set; then |
|
|
8900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8901 | else |
|
|
8902 | if test "$cross_compiling" = yes; then |
|
|
8903 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8904 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8905 | /* confdefs.h. */ |
|
|
8906 | _ACEOF |
|
|
8907 | cat confdefs.h >>conftest.$ac_ext |
|
|
8908 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8909 | /* end confdefs.h. */ |
|
|
8910 | $ac_includes_default |
|
|
8911 | typedef int * ac__type_sizeof_; |
|
|
8912 | int |
|
|
8913 | main () |
|
|
8914 | { |
|
|
8915 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
8916 | test_array [0] = 0 |
|
|
8917 | |
|
|
8918 | ; |
|
|
8919 | return 0; |
|
|
8920 | } |
|
|
8921 | _ACEOF |
|
|
8922 | rm -f conftest.$ac_objext |
|
|
8923 | if { (ac_try="$ac_compile" |
|
|
8924 | case "(($ac_try" in |
|
|
8925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8926 | *) ac_try_echo=$ac_try;; |
|
|
8927 | esac |
|
|
8928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8929 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8930 | ac_status=$? |
|
|
8931 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8932 | rm -f conftest.er1 |
|
|
8933 | cat conftest.err >&5 |
|
|
8934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8935 | (exit $ac_status); } && { |
|
|
8936 | test -z "$ac_cxx_werror_flag" || |
|
|
8937 | test ! -s conftest.err |
|
|
8938 | } && test -s conftest.$ac_objext; then |
|
|
8939 | ac_lo=0 ac_mid=0 |
|
|
8940 | while :; do |
|
|
8941 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8942 | /* confdefs.h. */ |
|
|
8943 | _ACEOF |
|
|
8944 | cat confdefs.h >>conftest.$ac_ext |
|
|
8945 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8946 | /* end confdefs.h. */ |
|
|
8947 | $ac_includes_default |
|
|
8948 | typedef int * ac__type_sizeof_; |
|
|
8949 | int |
|
|
8950 | main () |
|
|
8951 | { |
|
|
8952 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8953 | test_array [0] = 0 |
|
|
8954 | |
|
|
8955 | ; |
|
|
8956 | return 0; |
|
|
8957 | } |
|
|
8958 | _ACEOF |
|
|
8959 | rm -f conftest.$ac_objext |
|
|
8960 | if { (ac_try="$ac_compile" |
|
|
8961 | case "(($ac_try" in |
|
|
8962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8963 | *) ac_try_echo=$ac_try;; |
|
|
8964 | esac |
|
|
8965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8966 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8967 | ac_status=$? |
|
|
8968 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8969 | rm -f conftest.er1 |
|
|
8970 | cat conftest.err >&5 |
|
|
8971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8972 | (exit $ac_status); } && { |
|
|
8973 | test -z "$ac_cxx_werror_flag" || |
|
|
8974 | test ! -s conftest.err |
|
|
8975 | } && test -s conftest.$ac_objext; then |
|
|
8976 | ac_hi=$ac_mid; break |
|
|
8977 | else |
|
|
8978 | echo "$as_me: failed program was:" >&5 |
|
|
8979 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8980 | |
|
|
8981 | ac_lo=`expr $ac_mid + 1` |
|
|
8982 | if test $ac_lo -le $ac_mid; then |
|
|
8983 | ac_lo= ac_hi= |
|
|
8984 | break |
|
|
8985 | fi |
|
|
8986 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8987 | fi |
|
|
8988 | |
|
|
8989 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8990 | done |
|
|
8991 | else |
|
|
8992 | echo "$as_me: failed program was:" >&5 |
|
|
8993 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8994 | |
|
|
8995 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8996 | /* confdefs.h. */ |
|
|
8997 | _ACEOF |
|
|
8998 | cat confdefs.h >>conftest.$ac_ext |
|
|
8999 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9000 | /* end confdefs.h. */ |
|
|
9001 | $ac_includes_default |
|
|
9002 | typedef int * ac__type_sizeof_; |
|
|
9003 | int |
|
|
9004 | main () |
|
|
9005 | { |
|
|
9006 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
9007 | test_array [0] = 0 |
|
|
9008 | |
|
|
9009 | ; |
|
|
9010 | return 0; |
|
|
9011 | } |
|
|
9012 | _ACEOF |
|
|
9013 | rm -f conftest.$ac_objext |
|
|
9014 | if { (ac_try="$ac_compile" |
|
|
9015 | case "(($ac_try" in |
|
|
9016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9017 | *) ac_try_echo=$ac_try;; |
|
|
9018 | esac |
|
|
9019 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9020 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9021 | ac_status=$? |
|
|
9022 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9023 | rm -f conftest.er1 |
|
|
9024 | cat conftest.err >&5 |
|
|
9025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9026 | (exit $ac_status); } && { |
|
|
9027 | test -z "$ac_cxx_werror_flag" || |
|
|
9028 | test ! -s conftest.err |
|
|
9029 | } && test -s conftest.$ac_objext; then |
|
|
9030 | ac_hi=-1 ac_mid=-1 |
|
|
9031 | while :; do |
|
|
9032 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9033 | /* confdefs.h. */ |
|
|
9034 | _ACEOF |
|
|
9035 | cat confdefs.h >>conftest.$ac_ext |
|
|
9036 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9037 | /* end confdefs.h. */ |
|
|
9038 | $ac_includes_default |
|
|
9039 | typedef int * ac__type_sizeof_; |
|
|
9040 | int |
|
|
9041 | main () |
|
|
9042 | { |
|
|
9043 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
9044 | test_array [0] = 0 |
|
|
9045 | |
|
|
9046 | ; |
|
|
9047 | return 0; |
|
|
9048 | } |
|
|
9049 | _ACEOF |
|
|
9050 | rm -f conftest.$ac_objext |
|
|
9051 | if { (ac_try="$ac_compile" |
|
|
9052 | case "(($ac_try" in |
|
|
9053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9054 | *) ac_try_echo=$ac_try;; |
|
|
9055 | esac |
|
|
9056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9057 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9058 | ac_status=$? |
|
|
9059 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9060 | rm -f conftest.er1 |
|
|
9061 | cat conftest.err >&5 |
|
|
9062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9063 | (exit $ac_status); } && { |
|
|
9064 | test -z "$ac_cxx_werror_flag" || |
|
|
9065 | test ! -s conftest.err |
|
|
9066 | } && test -s conftest.$ac_objext; then |
|
|
9067 | ac_lo=$ac_mid; break |
|
|
9068 | else |
|
|
9069 | echo "$as_me: failed program was:" >&5 |
|
|
9070 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9071 | |
|
|
9072 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
9073 | if test $ac_mid -le $ac_hi; then |
|
|
9074 | ac_lo= ac_hi= |
|
|
9075 | break |
|
|
9076 | fi |
|
|
9077 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
9078 | fi |
|
|
9079 | |
|
|
9080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9081 | done |
|
|
9082 | else |
|
|
9083 | echo "$as_me: failed program was:" >&5 |
|
|
9084 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9085 | |
|
|
9086 | ac_lo= ac_hi= |
|
|
9087 | fi |
|
|
9088 | |
|
|
9089 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9090 | fi |
|
|
9091 | |
|
|
9092 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9093 | # Binary search between lo and hi bounds. |
|
|
9094 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
9095 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
9096 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9097 | /* confdefs.h. */ |
|
|
9098 | _ACEOF |
|
|
9099 | cat confdefs.h >>conftest.$ac_ext |
|
|
9100 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9101 | /* end confdefs.h. */ |
|
|
9102 | $ac_includes_default |
|
|
9103 | typedef int * ac__type_sizeof_; |
|
|
9104 | int |
|
|
9105 | main () |
|
|
9106 | { |
|
|
9107 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9108 | test_array [0] = 0 |
|
|
9109 | |
|
|
9110 | ; |
|
|
9111 | return 0; |
|
|
9112 | } |
|
|
9113 | _ACEOF |
|
|
9114 | rm -f conftest.$ac_objext |
|
|
9115 | if { (ac_try="$ac_compile" |
|
|
9116 | case "(($ac_try" in |
|
|
9117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9118 | *) ac_try_echo=$ac_try;; |
|
|
9119 | esac |
|
|
9120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9121 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9122 | ac_status=$? |
|
|
9123 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9124 | rm -f conftest.er1 |
|
|
9125 | cat conftest.err >&5 |
|
|
9126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9127 | (exit $ac_status); } && { |
|
|
9128 | test -z "$ac_cxx_werror_flag" || |
|
|
9129 | test ! -s conftest.err |
|
|
9130 | } && test -s conftest.$ac_objext; then |
|
|
9131 | ac_hi=$ac_mid |
|
|
9132 | else |
|
|
9133 | echo "$as_me: failed program was:" >&5 |
|
|
9134 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9135 | |
|
|
9136 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
9137 | fi |
|
|
9138 | |
|
|
9139 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9140 | done |
|
|
9141 | case $ac_lo in |
|
|
9142 | ?*) ac_cv_sizeof_int_p=$ac_lo;; |
|
|
9143 | '') if test "$ac_cv_type_int_p" = yes; then |
|
|
9144 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *) |
|
|
9145 | See \`config.log' for more details." >&5 |
|
|
9146 | echo "$as_me: error: cannot compute sizeof (int *) |
|
|
9147 | See \`config.log' for more details." >&2;} |
|
|
9148 | { (exit 77); exit 77; }; } |
|
|
9149 | else |
|
|
9150 | ac_cv_sizeof_int_p=0 |
|
|
9151 | fi ;; |
|
|
9152 | esac |
|
|
9153 | else |
|
|
9154 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9155 | /* confdefs.h. */ |
|
|
9156 | _ACEOF |
|
|
9157 | cat confdefs.h >>conftest.$ac_ext |
|
|
9158 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9159 | /* end confdefs.h. */ |
|
|
9160 | $ac_includes_default |
|
|
9161 | typedef int * ac__type_sizeof_; |
|
|
9162 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9163 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9164 | #include <stdio.h> |
|
|
9165 | #include <stdlib.h> |
|
|
9166 | int |
|
|
9167 | main () |
|
|
9168 | { |
|
|
9169 | |
|
|
9170 | FILE *f = fopen ("conftest.val", "w"); |
|
|
9171 | if (! f) |
|
|
9172 | return 1; |
|
|
9173 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
9174 | { |
|
|
9175 | long int i = longval (); |
|
|
9176 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9177 | return 1; |
|
|
9178 | fprintf (f, "%ld\n", i); |
|
|
9179 | } |
|
|
9180 | else |
|
|
9181 | { |
|
|
9182 | unsigned long int i = ulongval (); |
|
|
9183 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9184 | return 1; |
|
|
9185 | fprintf (f, "%lu\n", i); |
|
|
9186 | } |
|
|
9187 | return ferror (f) || fclose (f) != 0; |
|
|
9188 | |
|
|
9189 | ; |
|
|
9190 | return 0; |
|
|
9191 | } |
|
|
9192 | _ACEOF |
|
|
9193 | rm -f conftest$ac_exeext |
|
|
9194 | if { (ac_try="$ac_link" |
|
|
9195 | case "(($ac_try" in |
|
|
9196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9197 | *) ac_try_echo=$ac_try;; |
|
|
9198 | esac |
|
|
9199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9200 | (eval "$ac_link") 2>&5 |
|
|
9201 | ac_status=$? |
|
|
9202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9203 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
9204 | { (case "(($ac_try" in |
|
|
9205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9206 | *) ac_try_echo=$ac_try;; |
|
|
9207 | esac |
|
|
9208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9209 | (eval "$ac_try") 2>&5 |
|
|
9210 | ac_status=$? |
|
|
9211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9212 | (exit $ac_status); }; }; then |
|
|
9213 | ac_cv_sizeof_int_p=`cat conftest.val` |
|
|
9214 | else |
|
|
9215 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
9216 | echo "$as_me: failed program was:" >&5 |
|
|
9217 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9218 | |
|
|
9219 | ( exit $ac_status ) |
|
|
9220 | if test "$ac_cv_type_int_p" = yes; then |
|
|
9221 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *) |
|
|
9222 | See \`config.log' for more details." >&5 |
|
|
9223 | echo "$as_me: error: cannot compute sizeof (int *) |
|
|
9224 | See \`config.log' for more details." >&2;} |
|
|
9225 | { (exit 77); exit 77; }; } |
|
|
9226 | else |
|
|
9227 | ac_cv_sizeof_int_p=0 |
|
|
9228 | fi |
|
|
9229 | fi |
|
|
9230 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
9231 | fi |
|
|
9232 | rm -f conftest.val |
|
|
9233 | fi |
|
|
9234 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5 |
|
|
9235 | echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; } |
|
|
9236 | |
|
|
9237 | |
|
|
9238 | |
|
|
9239 | cat >>confdefs.h <<_ACEOF |
|
|
9240 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p |
|
|
9241 | _ACEOF |
|
|
9242 | |
|
|
9243 | |
|
|
9244 | |
|
|
9245 | |
|
|
9246 | { echo "$as_me:$LINENO: checking for int16_t" >&5 |
|
|
9247 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } |
|
|
9248 | if test "${rxvt_cv_int16_t+set}" = set; then |
|
|
9249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9250 | else |
|
|
9251 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9252 | /* confdefs.h. */ |
|
|
9253 | _ACEOF |
|
|
9254 | cat confdefs.h >>conftest.$ac_ext |
|
|
9255 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9256 | /* end confdefs.h. */ |
|
|
9257 | #include <stdint.h> |
|
|
9258 | int |
|
|
9259 | main () |
|
|
9260 | { |
|
|
9261 | int16_t dummy; |
|
|
9262 | ; |
|
|
9263 | return 0; |
|
|
9264 | } |
|
|
9265 | _ACEOF |
|
|
9266 | rm -f conftest.$ac_objext |
|
|
9267 | if { (ac_try="$ac_compile" |
|
|
9268 | case "(($ac_try" in |
|
|
9269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9270 | *) ac_try_echo=$ac_try;; |
|
|
9271 | esac |
|
|
9272 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9273 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9274 | ac_status=$? |
|
|
9275 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9276 | rm -f conftest.er1 |
|
|
9277 | cat conftest.err >&5 |
|
|
9278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9279 | (exit $ac_status); } && { |
|
|
9280 | test -z "$ac_cxx_werror_flag" || |
|
|
9281 | test ! -s conftest.err |
|
|
9282 | } && test -s conftest.$ac_objext; then |
|
|
9283 | rxvt_cv_int16_t=yes |
|
|
9284 | else |
|
|
9285 | echo "$as_me: failed program was:" >&5 |
|
|
9286 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9287 | |
|
|
9288 | if test "$ac_cv_sizeof_char" -ge 2; then |
|
|
9289 | rxvt_cv_int16_t=" char" |
|
|
9290 | else |
|
|
9291 | if test "$ac_cv_sizeof_short" -ge 2; then |
|
|
9292 | rxvt_cv_int16_t=" short" |
|
|
9293 | else |
|
|
9294 | if test "$ac_cv_sizeof_int" -ge 2; then |
|
|
9295 | rxvt_cv_int16_t=" int" |
|
|
9296 | else |
|
|
9297 | if test "$ac_cv_sizeof_long" -ge 2; then |
|
|
9298 | rxvt_cv_int16_t=" long" |
|
|
9299 | else |
|
|
9300 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
|
|
9301 | rxvt_cv_int16_t=" long long" |
|
|
9302 | else |
|
|
9303 | rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default |
|
|
9304 | fi |
|
|
9305 | fi |
|
|
9306 | fi |
|
|
9307 | fi |
|
|
9308 | fi |
|
|
9309 | fi |
|
|
9310 | |
|
|
9311 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9312 | fi |
|
|
9313 | { echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5 |
|
|
9314 | echo "${ECHO_T}$rxvt_cv_int16_t" >&6; } |
|
|
9315 | if test x"$rxvt_cv_int16_t" != xyes; then |
|
|
9316 | rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;" |
|
|
9317 | else |
|
|
9318 | if test x"" = x; then |
|
|
9319 | rxvt_int16_typedef="/* typedef short int16_t; */" |
|
|
9320 | else |
|
|
9321 | rxvt_int16_typedef="/* typedef short int16_t; */" |
|
|
9322 | fi |
|
|
9323 | fi |
|
|
9324 | |
|
|
9325 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 |
|
|
9326 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } |
|
|
9327 | if test "${rxvt_cv_uint16_t+set}" = set; then |
|
|
9328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9329 | else |
|
|
9330 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9331 | /* confdefs.h. */ |
|
|
9332 | _ACEOF |
|
|
9333 | cat confdefs.h >>conftest.$ac_ext |
|
|
9334 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9335 | /* end confdefs.h. */ |
|
|
9336 | #include <stdint.h> |
|
|
9337 | int |
|
|
9338 | main () |
|
|
9339 | { |
|
|
9340 | uint16_t dummy; |
|
|
9341 | ; |
|
|
9342 | return 0; |
|
|
9343 | } |
|
|
9344 | _ACEOF |
|
|
9345 | rm -f conftest.$ac_objext |
|
|
9346 | if { (ac_try="$ac_compile" |
|
|
9347 | case "(($ac_try" in |
|
|
9348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9349 | *) ac_try_echo=$ac_try;; |
|
|
9350 | esac |
|
|
9351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9352 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9353 | ac_status=$? |
|
|
9354 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9355 | rm -f conftest.er1 |
|
|
9356 | cat conftest.err >&5 |
|
|
9357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9358 | (exit $ac_status); } && { |
|
|
9359 | test -z "$ac_cxx_werror_flag" || |
|
|
9360 | test ! -s conftest.err |
|
|
9361 | } && test -s conftest.$ac_objext; then |
|
|
9362 | rxvt_cv_uint16_t=yes |
|
|
9363 | else |
|
|
9364 | echo "$as_me: failed program was:" >&5 |
|
|
9365 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9366 | |
|
|
9367 | if test "$ac_cv_sizeof_char" -ge 2; then |
|
|
9368 | rxvt_cv_uint16_t="unsigned char" |
|
|
9369 | else |
|
|
9370 | if test "$ac_cv_sizeof_short" -ge 2; then |
|
|
9371 | rxvt_cv_uint16_t="unsigned short" |
|
|
9372 | else |
|
|
9373 | if test "$ac_cv_sizeof_int" -ge 2; then |
|
|
9374 | rxvt_cv_uint16_t="unsigned int" |
|
|
9375 | else |
|
|
9376 | if test "$ac_cv_sizeof_long" -ge 2; then |
|
|
9377 | rxvt_cv_uint16_t="unsigned long" |
|
|
9378 | else |
|
|
9379 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
|
|
9380 | rxvt_cv_uint16_t="unsigned long long" |
|
|
9381 | else |
|
|
9382 | rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default |
|
|
9383 | fi |
|
|
9384 | fi |
|
|
9385 | fi |
|
|
9386 | fi |
|
|
9387 | fi |
|
|
9388 | fi |
|
|
9389 | |
|
|
9390 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9391 | fi |
|
|
9392 | { echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5 |
|
|
9393 | echo "${ECHO_T}$rxvt_cv_uint16_t" >&6; } |
|
|
9394 | if test x"$rxvt_cv_uint16_t" != xyes; then |
|
|
9395 | rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;" |
|
|
9396 | else |
|
|
9397 | if test x"unsigned" = x; then |
|
|
9398 | rxvt_uint16_typedef="/* typedef short uint16_t; */" |
|
|
9399 | else |
|
|
9400 | rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */" |
|
|
9401 | fi |
|
|
9402 | fi |
|
|
9403 | |
|
|
9404 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
|
|
9405 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
|
|
9406 | if test "${rxvt_cv_int32_t+set}" = set; then |
|
|
9407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9408 | else |
|
|
9409 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9410 | /* confdefs.h. */ |
|
|
9411 | _ACEOF |
|
|
9412 | cat confdefs.h >>conftest.$ac_ext |
|
|
9413 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9414 | /* end confdefs.h. */ |
|
|
9415 | #include <stdint.h> |
|
|
9416 | int |
|
|
9417 | main () |
|
|
9418 | { |
|
|
9419 | int32_t dummy; |
|
|
9420 | ; |
|
|
9421 | return 0; |
|
|
9422 | } |
|
|
9423 | _ACEOF |
|
|
9424 | rm -f conftest.$ac_objext |
|
|
9425 | if { (ac_try="$ac_compile" |
|
|
9426 | case "(($ac_try" in |
|
|
9427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9428 | *) ac_try_echo=$ac_try;; |
|
|
9429 | esac |
|
|
9430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9431 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9432 | ac_status=$? |
|
|
9433 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9434 | rm -f conftest.er1 |
|
|
9435 | cat conftest.err >&5 |
|
|
9436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9437 | (exit $ac_status); } && { |
|
|
9438 | test -z "$ac_cxx_werror_flag" || |
|
|
9439 | test ! -s conftest.err |
|
|
9440 | } && test -s conftest.$ac_objext; then |
|
|
9441 | rxvt_cv_int32_t=yes |
|
|
9442 | else |
|
|
9443 | echo "$as_me: failed program was:" >&5 |
|
|
9444 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9445 | |
|
|
9446 | if test "$ac_cv_sizeof_char" -ge 4; then |
|
|
9447 | rxvt_cv_int32_t=" char" |
|
|
9448 | else |
|
|
9449 | if test "$ac_cv_sizeof_short" -ge 4; then |
|
|
9450 | rxvt_cv_int32_t=" short" |
|
|
9451 | else |
|
|
9452 | if test "$ac_cv_sizeof_int" -ge 4; then |
|
|
9453 | rxvt_cv_int32_t=" int" |
|
|
9454 | else |
|
|
9455 | if test "$ac_cv_sizeof_long" -ge 4; then |
|
|
9456 | rxvt_cv_int32_t=" long" |
|
|
9457 | else |
|
|
9458 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
|
|
9459 | rxvt_cv_int32_t=" long long" |
|
|
9460 | else |
|
|
9461 | rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default |
|
|
9462 | fi |
|
|
9463 | fi |
|
|
9464 | fi |
|
|
9465 | fi |
|
|
9466 | fi |
|
|
9467 | fi |
|
|
9468 | |
|
|
9469 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9470 | fi |
|
|
9471 | { echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5 |
|
|
9472 | echo "${ECHO_T}$rxvt_cv_int32_t" >&6; } |
|
|
9473 | if test x"$rxvt_cv_int32_t" != xyes; then |
|
|
9474 | rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;" |
|
|
9475 | else |
|
|
9476 | if test x"" = x; then |
|
|
9477 | rxvt_int32_typedef="/* typedef int int32_t; */" |
|
|
9478 | else |
|
|
9479 | rxvt_int32_typedef="/* typedef int int32_t; */" |
|
|
9480 | fi |
|
|
9481 | fi |
|
|
9482 | |
|
|
9483 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
|
|
9484 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
|
|
9485 | if test "${rxvt_cv_uint32_t+set}" = set; then |
|
|
9486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9487 | else |
|
|
9488 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9489 | /* confdefs.h. */ |
|
|
9490 | _ACEOF |
|
|
9491 | cat confdefs.h >>conftest.$ac_ext |
|
|
9492 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9493 | /* end confdefs.h. */ |
|
|
9494 | #include <stdint.h> |
|
|
9495 | int |
|
|
9496 | main () |
|
|
9497 | { |
|
|
9498 | uint32_t dummy; |
|
|
9499 | ; |
|
|
9500 | return 0; |
|
|
9501 | } |
|
|
9502 | _ACEOF |
|
|
9503 | rm -f conftest.$ac_objext |
|
|
9504 | if { (ac_try="$ac_compile" |
|
|
9505 | case "(($ac_try" in |
|
|
9506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9507 | *) ac_try_echo=$ac_try;; |
|
|
9508 | esac |
|
|
9509 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9510 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9511 | ac_status=$? |
|
|
9512 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9513 | rm -f conftest.er1 |
|
|
9514 | cat conftest.err >&5 |
|
|
9515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9516 | (exit $ac_status); } && { |
|
|
9517 | test -z "$ac_cxx_werror_flag" || |
|
|
9518 | test ! -s conftest.err |
|
|
9519 | } && test -s conftest.$ac_objext; then |
|
|
9520 | rxvt_cv_uint32_t=yes |
|
|
9521 | else |
|
|
9522 | echo "$as_me: failed program was:" >&5 |
|
|
9523 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9524 | |
|
|
9525 | if test "$ac_cv_sizeof_char" -ge 4; then |
|
|
9526 | rxvt_cv_uint32_t="unsigned char" |
|
|
9527 | else |
|
|
9528 | if test "$ac_cv_sizeof_short" -ge 4; then |
|
|
9529 | rxvt_cv_uint32_t="unsigned short" |
|
|
9530 | else |
|
|
9531 | if test "$ac_cv_sizeof_int" -ge 4; then |
|
|
9532 | rxvt_cv_uint32_t="unsigned int" |
|
|
9533 | else |
|
|
9534 | if test "$ac_cv_sizeof_long" -ge 4; then |
|
|
9535 | rxvt_cv_uint32_t="unsigned long" |
|
|
9536 | else |
|
|
9537 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
|
|
9538 | rxvt_cv_uint32_t="unsigned long long" |
|
|
9539 | else |
|
|
9540 | rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default |
|
|
9541 | fi |
|
|
9542 | fi |
|
|
9543 | fi |
|
|
9544 | fi |
|
|
9545 | fi |
|
|
9546 | fi |
|
|
9547 | |
|
|
9548 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9549 | fi |
|
|
9550 | { echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5 |
|
|
9551 | echo "${ECHO_T}$rxvt_cv_uint32_t" >&6; } |
|
|
9552 | if test x"$rxvt_cv_uint32_t" != xyes; then |
|
|
9553 | rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;" |
|
|
9554 | else |
|
|
9555 | if test x"unsigned" = x; then |
|
|
9556 | rxvt_uint32_typedef="/* typedef int uint32_t; */" |
|
|
9557 | else |
|
|
9558 | rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" |
|
|
9559 | fi |
|
|
9560 | fi |
|
|
9561 | |
|
|
9562 | if test "$ac_cv_sizeof_int_p" -eq 8; then |
|
|
9563 | rxvt_intp_define="#define intp_t int64_t" |
|
|
9564 | rxvt_u_intp_define="#define u_intp_t u_int64_t" |
|
|
9565 | else |
|
|
9566 | if test "$ac_cv_sizeof_int_p" -eq 4; then |
|
|
9567 | rxvt_intp_define="#define intp_t int32_t" |
|
|
9568 | rxvt_u_intp_define="#define u_intp_t u_int32_t" |
|
|
9569 | else |
|
|
9570 | if test "$ac_cv_sizeof_int_p" -eq 2; then |
|
|
9571 | rxvt_intp_define="#define intp_t int16_t" |
|
|
9572 | rxvt_u_intp_define="#define u_intp_t u_int16_t" |
|
|
9573 | else |
|
|
9574 | rxvt_intp_define="#error set intp_t" |
|
|
9575 | rxvt_u_intp_define="#error set u_intp_t" |
|
|
9576 | fi |
|
|
9577 | fi |
|
|
9578 | fi |
|
|
9579 | |
|
|
9580 | |
|
|
9581 | |
|
|
9582 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
|
|
9583 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } |
|
|
9584 | if test "${ac_cv_type_signal+set}" = set; then |
|
|
9585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9586 | else |
|
|
9587 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9588 | /* confdefs.h. */ |
|
|
9589 | _ACEOF |
|
|
9590 | cat confdefs.h >>conftest.$ac_ext |
|
|
9591 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9592 | /* end confdefs.h. */ |
|
|
9593 | #include <sys/types.h> |
|
|
9594 | #include <signal.h> |
|
|
9595 | |
|
|
9596 | int |
|
|
9597 | main () |
|
|
9598 | { |
|
|
9599 | return *(signal (0, 0)) (0) == 1; |
|
|
9600 | ; |
|
|
9601 | return 0; |
|
|
9602 | } |
|
|
9603 | _ACEOF |
|
|
9604 | rm -f conftest.$ac_objext |
|
|
9605 | if { (ac_try="$ac_compile" |
|
|
9606 | case "(($ac_try" in |
|
|
9607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9608 | *) ac_try_echo=$ac_try;; |
|
|
9609 | esac |
|
|
9610 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9611 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9612 | ac_status=$? |
|
|
9613 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9614 | rm -f conftest.er1 |
|
|
9615 | cat conftest.err >&5 |
|
|
9616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9617 | (exit $ac_status); } && { |
|
|
9618 | test -z "$ac_cxx_werror_flag" || |
|
|
9619 | test ! -s conftest.err |
|
|
9620 | } && test -s conftest.$ac_objext; then |
|
|
9621 | ac_cv_type_signal=int |
|
|
9622 | else |
|
|
9623 | echo "$as_me: failed program was:" >&5 |
|
|
9624 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9625 | |
|
|
9626 | ac_cv_type_signal=void |
|
|
9627 | fi |
|
|
9628 | |
|
|
9629 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9630 | fi |
|
|
9631 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
|
|
9632 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
|
|
9633 | |
|
|
9634 | cat >>confdefs.h <<_ACEOF |
|
|
9635 | #define RETSIGTYPE $ac_cv_type_signal |
|
|
9636 | _ACEOF |
|
|
9637 | |
|
|
9638 | |
|
|
9639 | |
|
|
9640 | |
|
|
9641 | |
|
|
9642 | |
|
|
9643 | for ac_func in \ |
8487 | for ac_func in unsetenv |
9644 | unsetenv \ |
|
|
9645 | setutent \ |
|
|
9646 | on_exit \ |
|
|
9647 | |
|
|
9648 | do |
8488 | do |
9649 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8489 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9650 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8490 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9651 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
8491 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
9652 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
8492 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
… | |
… | |
9791 | |
8631 | |
9792 | |
8632 | |
9793 | |
8633 | |
9794 | |
8634 | |
9795 | for ac_func in \ |
8635 | for ac_func in \ |
9796 | ttyslot \ |
|
|
9797 | updwtmp \ |
8636 | updwtmp \ |
9798 | updwtmpx \ |
8637 | updwtmpx \ |
|
|
8638 | updlastlogx \ |
9799 | |
8639 | |
9800 | do |
8640 | do |
9801 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8641 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9802 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8642 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9803 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
8643 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
… | |
… | |
9889 | fi |
8729 | fi |
9890 | done |
8730 | done |
9891 | |
8731 | |
9892 | |
8732 | |
9893 | |
8733 | |
9894 | |
|
|
9895 | |
|
|
9896 | for ac_header in \ |
8734 | for ac_header in lastlog.h |
9897 | utmp.h \ |
|
|
9898 | utmpx.h \ |
|
|
9899 | lastlog.h \ |
|
|
9900 | |
|
|
9901 | do |
8735 | do |
9902 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
8736 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
9903 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8737 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9904 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8738 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9905 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
8739 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
… | |
… | |
10036 | |
8870 | |
10037 | done |
8871 | done |
10038 | |
8872 | |
10039 | |
8873 | |
10040 | |
8874 | |
10041 | if test "${ac_cv_header_utmp_h+set}" = set; then |
8875 | |
|
|
8876 | for ac_header in utmp.h |
|
|
8877 | do |
|
|
8878 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
8879 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10042 | { echo "$as_me:$LINENO: checking for utmp.h" >&5 |
8880 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10043 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } |
8881 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10044 | if test "${ac_cv_header_utmp_h+set}" = set; then |
8882 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10046 | fi |
8884 | fi |
|
|
8885 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10047 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
8886 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
10048 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } |
8887 | echo "${ECHO_T}$ac_res" >&6; } |
10049 | else |
8888 | else |
10050 | # Is the header compilable? |
8889 | # Is the header compilable? |
10051 | { echo "$as_me:$LINENO: checking utmp.h usability" >&5 |
8890 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10052 | echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6; } |
8891 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
10053 | cat >conftest.$ac_ext <<_ACEOF |
8892 | cat >conftest.$ac_ext <<_ACEOF |
10054 | /* confdefs.h. */ |
8893 | /* confdefs.h. */ |
10055 | _ACEOF |
8894 | _ACEOF |
10056 | cat confdefs.h >>conftest.$ac_ext |
8895 | cat confdefs.h >>conftest.$ac_ext |
10057 | cat >>conftest.$ac_ext <<_ACEOF |
8896 | cat >>conftest.$ac_ext <<_ACEOF |
10058 | /* end confdefs.h. */ |
8897 | /* end confdefs.h. */ |
10059 | $ac_includes_default |
8898 | $ac_includes_default |
10060 | #include <utmp.h> |
8899 | #include <$ac_header> |
10061 | _ACEOF |
8900 | _ACEOF |
10062 | rm -f conftest.$ac_objext |
8901 | rm -f conftest.$ac_objext |
10063 | if { (ac_try="$ac_compile" |
8902 | if { (ac_try="$ac_compile" |
10064 | case "(($ac_try" in |
8903 | case "(($ac_try" in |
10065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
… | |
… | |
10087 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8926 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10088 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8927 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10089 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
8928 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
10090 | |
8929 | |
10091 | # Is the header present? |
8930 | # Is the header present? |
10092 | { echo "$as_me:$LINENO: checking utmp.h presence" >&5 |
8931 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10093 | echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6; } |
8932 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
10094 | cat >conftest.$ac_ext <<_ACEOF |
8933 | cat >conftest.$ac_ext <<_ACEOF |
10095 | /* confdefs.h. */ |
8934 | /* confdefs.h. */ |
10096 | _ACEOF |
8935 | _ACEOF |
10097 | cat confdefs.h >>conftest.$ac_ext |
8936 | cat confdefs.h >>conftest.$ac_ext |
10098 | cat >>conftest.$ac_ext <<_ACEOF |
8937 | cat >>conftest.$ac_ext <<_ACEOF |
10099 | /* end confdefs.h. */ |
8938 | /* end confdefs.h. */ |
10100 | #include <utmp.h> |
8939 | #include <$ac_header> |
10101 | _ACEOF |
8940 | _ACEOF |
10102 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8941 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10103 | case "(($ac_try" in |
8942 | case "(($ac_try" in |
10104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10105 | *) ac_try_echo=$ac_try;; |
8944 | *) ac_try_echo=$ac_try;; |
… | |
… | |
10128 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
8967 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
10129 | |
8968 | |
10130 | # So? What about this header? |
8969 | # So? What about this header? |
10131 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
8970 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
10132 | yes:no: ) |
8971 | yes:no: ) |
10133 | { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
8972 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10134 | echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
8973 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
10135 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5 |
8974 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10136 | echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;} |
8975 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
10137 | ac_header_preproc=yes |
8976 | ac_header_preproc=yes |
10138 | ;; |
8977 | ;; |
10139 | no:yes:* ) |
8978 | no:yes:* ) |
10140 | { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5 |
8979 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10141 | echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;} |
8980 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
10142 | { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5 |
8981 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10143 | echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;} |
8982 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
10144 | { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5 |
8983 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
10145 | echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;} |
8984 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
10146 | { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5 |
8985 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
10147 | echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;} |
8986 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
10148 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5 |
8987 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10149 | echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;} |
8988 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
10150 | { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5 |
8989 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10151 | echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;} |
8990 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
10152 | |
8991 | |
10153 | ;; |
8992 | ;; |
10154 | esac |
8993 | esac |
10155 | { echo "$as_me:$LINENO: checking for utmp.h" >&5 |
8994 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10156 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } |
8995 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10157 | if test "${ac_cv_header_utmp_h+set}" = set; then |
8996 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10158 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10159 | else |
8998 | else |
10160 | ac_cv_header_utmp_h=$ac_header_preproc |
8999 | eval "$as_ac_Header=\$ac_header_preproc" |
10161 | fi |
9000 | fi |
|
|
9001 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10162 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
9002 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
10163 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } |
9003 | echo "${ECHO_T}$ac_res" >&6; } |
10164 | |
9004 | |
10165 | fi |
9005 | fi |
10166 | if test $ac_cv_header_utmp_h = yes; then |
9006 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
9007 | cat >>confdefs.h <<_ACEOF |
|
|
9008 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
9009 | _ACEOF |
10167 | { echo "$as_me:$LINENO: checking for struct utmp" >&5 |
9010 | { echo "$as_me:$LINENO: checking for struct utmp" >&5 |
10168 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; } |
9011 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; } |
10169 | if test "${struct_utmp+set}" = set; then |
9012 | if test "${struct_utmp+set}" = set; then |
10170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10171 | else |
9014 | else |
10172 | cat >conftest.$ac_ext <<_ACEOF |
9015 | cat >conftest.$ac_ext <<_ACEOF |
… | |
… | |
10339 | |
9182 | |
10340 | fi |
9183 | fi |
10341 | |
9184 | |
10342 | fi |
9185 | fi |
10343 | |
9186 | |
|
|
9187 | done |
10344 | |
9188 | |
10345 | |
9189 | |
10346 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
9190 | |
|
|
9191 | for ac_header in utmpx.h |
|
|
9192 | do |
|
|
9193 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
9194 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10347 | { echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
9195 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10348 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } |
9196 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10349 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
9197 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10350 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10351 | fi |
9199 | fi |
|
|
9200 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10352 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
9201 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
10353 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } |
9202 | echo "${ECHO_T}$ac_res" >&6; } |
10354 | else |
9203 | else |
10355 | # Is the header compilable? |
9204 | # Is the header compilable? |
10356 | { echo "$as_me:$LINENO: checking utmpx.h usability" >&5 |
9205 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10357 | echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6; } |
9206 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
10358 | cat >conftest.$ac_ext <<_ACEOF |
9207 | cat >conftest.$ac_ext <<_ACEOF |
10359 | /* confdefs.h. */ |
9208 | /* confdefs.h. */ |
10360 | _ACEOF |
9209 | _ACEOF |
10361 | cat confdefs.h >>conftest.$ac_ext |
9210 | cat confdefs.h >>conftest.$ac_ext |
10362 | cat >>conftest.$ac_ext <<_ACEOF |
9211 | cat >>conftest.$ac_ext <<_ACEOF |
10363 | /* end confdefs.h. */ |
9212 | /* end confdefs.h. */ |
10364 | $ac_includes_default |
9213 | $ac_includes_default |
10365 | #include <utmpx.h> |
9214 | #include <$ac_header> |
10366 | _ACEOF |
9215 | _ACEOF |
10367 | rm -f conftest.$ac_objext |
9216 | rm -f conftest.$ac_objext |
10368 | if { (ac_try="$ac_compile" |
9217 | if { (ac_try="$ac_compile" |
10369 | case "(($ac_try" in |
9218 | case "(($ac_try" in |
10370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
… | |
… | |
10392 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9241 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10393 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9242 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10394 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
9243 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
10395 | |
9244 | |
10396 | # Is the header present? |
9245 | # Is the header present? |
10397 | { echo "$as_me:$LINENO: checking utmpx.h presence" >&5 |
9246 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10398 | echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6; } |
9247 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
10399 | cat >conftest.$ac_ext <<_ACEOF |
9248 | cat >conftest.$ac_ext <<_ACEOF |
10400 | /* confdefs.h. */ |
9249 | /* confdefs.h. */ |
10401 | _ACEOF |
9250 | _ACEOF |
10402 | cat confdefs.h >>conftest.$ac_ext |
9251 | cat confdefs.h >>conftest.$ac_ext |
10403 | cat >>conftest.$ac_ext <<_ACEOF |
9252 | cat >>conftest.$ac_ext <<_ACEOF |
10404 | /* end confdefs.h. */ |
9253 | /* end confdefs.h. */ |
10405 | #include <utmpx.h> |
9254 | #include <$ac_header> |
10406 | _ACEOF |
9255 | _ACEOF |
10407 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9256 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10408 | case "(($ac_try" in |
9257 | case "(($ac_try" in |
10409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10410 | *) ac_try_echo=$ac_try;; |
9259 | *) ac_try_echo=$ac_try;; |
… | |
… | |
10433 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
9282 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
10434 | |
9283 | |
10435 | # So? What about this header? |
9284 | # So? What about this header? |
10436 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
9285 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
10437 | yes:no: ) |
9286 | yes:no: ) |
10438 | { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
9287 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10439 | echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
9288 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
10440 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5 |
9289 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10441 | echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;} |
9290 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
10442 | ac_header_preproc=yes |
9291 | ac_header_preproc=yes |
10443 | ;; |
9292 | ;; |
10444 | no:yes:* ) |
9293 | no:yes:* ) |
10445 | { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5 |
9294 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10446 | echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;} |
9295 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
10447 | { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5 |
9296 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10448 | echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;} |
9297 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
10449 | { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5 |
9298 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
10450 | echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;} |
9299 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
10451 | { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5 |
9300 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
10452 | echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;} |
9301 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
10453 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5 |
9302 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10454 | echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;} |
9303 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
10455 | { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5 |
9304 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10456 | echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;} |
9305 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
10457 | |
9306 | |
10458 | ;; |
9307 | ;; |
10459 | esac |
9308 | esac |
10460 | { echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
9309 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10461 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } |
9310 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10462 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
9311 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10464 | else |
9313 | else |
10465 | ac_cv_header_utmpx_h=$ac_header_preproc |
9314 | eval "$as_ac_Header=\$ac_header_preproc" |
10466 | fi |
9315 | fi |
|
|
9316 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10467 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
9317 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
10468 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } |
9318 | echo "${ECHO_T}$ac_res" >&6; } |
10469 | |
9319 | |
10470 | fi |
9320 | fi |
10471 | if test $ac_cv_header_utmpx_h = yes; then |
9321 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
9322 | cat >>confdefs.h <<_ACEOF |
|
|
9323 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
9324 | _ACEOF |
10472 | { echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
9325 | { echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
10473 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; } |
9326 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; } |
10474 | if test "${struct_utmpx+set}" = set; then |
9327 | if test "${struct_utmpx+set}" = set; then |
10475 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10476 | else |
9329 | else |
10477 | cat >conftest.$ac_ext <<_ACEOF |
9330 | cat >conftest.$ac_ext <<_ACEOF |
… | |
… | |
10644 | |
9497 | |
10645 | fi |
9498 | fi |
10646 | |
9499 | |
10647 | fi |
9500 | fi |
10648 | |
9501 | |
|
|
9502 | done |
10649 | |
9503 | |
10650 | { echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
9504 | { echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
10651 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } |
9505 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } |
10652 | if test "${struct_lastlog+set}" = set; then |
9506 | if test "${struct_lastlog+set}" = set; then |
10653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
11224 | |
10078 | |
11225 | cat >>confdefs.h <<_ACEOF |
10079 | cat >>confdefs.h <<_ACEOF |
11226 | #define LASTLOG_FILE "$path_lastlog" |
10080 | #define LASTLOG_FILE "$path_lastlog" |
11227 | _ACEOF |
10081 | _ACEOF |
11228 | |
10082 | |
11229 | if test -d "$path_lastlog"; then |
|
|
11230 | |
|
|
11231 | cat >>confdefs.h <<\_ACEOF |
|
|
11232 | #define LASTLOG_IS_DIR 1 |
|
|
11233 | _ACEOF |
|
|
11234 | |
|
|
11235 | fi |
|
|
11236 | fi |
10083 | fi |
11237 | |
10084 | |
11238 | { echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
10085 | { echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
11239 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } |
10086 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } |
11240 | if test "${path_lastlogx+set}" = set; then |
10087 | if test "${path_lastlogx+set}" = set; then |
… | |
… | |
11322 | |
10169 | |
11323 | fi |
10170 | fi |
11324 | |
10171 | |
11325 | |
10172 | |
11326 | |
10173 | |
11327 | { echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 |
|
|
11328 | echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6; } |
|
|
11329 | if test "${rxvt_cv_path_ttytab+set}" = set; then |
|
|
11330 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11331 | else |
|
|
11332 | for ttys_file in /etc/ttys /etc/ttytab; |
|
|
11333 | do |
|
|
11334 | if test -f "$ttys_file" ; then |
|
|
11335 | rxvt_cv_path_ttytab=$ttys_file |
|
|
11336 | break |
|
|
11337 | fi |
|
|
11338 | done |
|
|
11339 | |
|
|
11340 | fi |
|
|
11341 | { echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5 |
|
|
11342 | echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6; } |
|
|
11343 | if test x$rxvt_cv_path_ttytab != x; then |
|
|
11344 | |
|
|
11345 | cat >>confdefs.h <<_ACEOF |
|
|
11346 | #define TTYTAB_FILENAME "$rxvt_cv_path_ttytab" |
|
|
11347 | _ACEOF |
|
|
11348 | |
|
|
11349 | fi |
|
|
11350 | |
|
|
11351 | |
10174 | |
11352 | save_LIBS=$LIBS |
10175 | save_LIBS=$LIBS |
11353 | save_CFLAGS=$CFLAGS |
10176 | save_CFLAGS=$CFLAGS |
11354 | CFLAGS="$CFLAGS $X_CFLAGS" |
10177 | CFLAGS="$CFLAGS $X_CFLAGS" |
11355 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
10178 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
… | |
… | |
11754 | |
10577 | |
11755 | |
10578 | |
11756 | |
10579 | |
11757 | |
10580 | |
11758 | |
10581 | |
|
|
10582 | |
11759 | for ac_header in \ |
10583 | for ac_header in \ |
11760 | pty.h \ |
10584 | pty.h \ |
11761 | util.h \ |
10585 | util.h \ |
11762 | libutil.h \ |
10586 | libutil.h \ |
11763 | sys/ioctl.h \ |
10587 | sys/ioctl.h \ |
11764 | sys/stropts.h \ |
10588 | sys/stropts.h \ |
|
|
10589 | stropts.h \ |
11765 | |
10590 | |
11766 | do |
10591 | do |
11767 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10592 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11768 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10593 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11769 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10594 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
… | |
… | |
12437 | echo "${ECHO_T}no" >&6; } |
11262 | echo "${ECHO_T}no" >&6; } |
12438 | fi |
11263 | fi |
12439 | |
11264 | |
12440 | |
11265 | |
12441 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
11266 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
12442 | LIBS="$LIBS `$PKG_CONFIG xft --libs`" |
11267 | X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS" |
12443 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
11268 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
12444 | else |
11269 | else |
12445 | # Extract the first word of "xft-config", so it can be a program name with args. |
11270 | # Extract the first word of "xft-config", so it can be a program name with args. |
12446 | set dummy xft-config; ac_word=$2 |
11271 | set dummy xft-config; ac_word=$2 |
12447 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11272 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
… | |
… | |
12482 | echo "${ECHO_T}no" >&6; } |
11307 | echo "${ECHO_T}no" >&6; } |
12483 | fi |
11308 | fi |
12484 | |
11309 | |
12485 | |
11310 | |
12486 | if test $XFT_CONFIG != no; then |
11311 | if test $XFT_CONFIG != no; then |
12487 | LIBS="$LIBS `$XFT_CONFIG --libs`" |
11312 | X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" |
12488 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
11313 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
12489 | fi |
11314 | fi |
12490 | fi |
11315 | fi |
12491 | |
11316 | |
|
|
11317 | save_LIBS="$LIBS" |
|
|
11318 | LIBS="$LIBS $X_LIBS" |
12492 | |
11319 | |
12493 | for ac_header in X11/Xft/Xft.h |
11320 | for ac_header in X11/Xft/Xft.h |
12494 | do |
11321 | do |
12495 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11322 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12496 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11323 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
… | |
… | |
12629 | support_xft=no |
11456 | support_xft=no |
12630 | fi |
11457 | fi |
12631 | |
11458 | |
12632 | done |
11459 | done |
12633 | |
11460 | |
12634 | |
|
|
12635 | { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
11461 | { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
12636 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
11462 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
12637 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
11463 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
12638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12639 | else |
11465 | else |
12640 | ac_check_lib_save_LIBS=$LIBS |
11466 | ac_check_lib_save_LIBS=$LIBS |
… | |
… | |
12692 | LIBS=$ac_check_lib_save_LIBS |
11518 | LIBS=$ac_check_lib_save_LIBS |
12693 | fi |
11519 | fi |
12694 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
11520 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
12695 | echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } |
11521 | echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } |
12696 | if test $ac_cv_lib_Xft_XftDrawString32 = yes; then |
11522 | if test $ac_cv_lib_Xft_XftDrawString32 = yes; then |
12697 | cat >>confdefs.h <<_ACEOF |
11523 | : |
12698 | #define HAVE_LIBXFT 1 |
|
|
12699 | _ACEOF |
|
|
12700 | |
|
|
12701 | LIBS="-lXft $LIBS" |
|
|
12702 | |
|
|
12703 | else |
11524 | else |
12704 | support_xft=no |
11525 | support_xft=no |
12705 | fi |
11526 | fi |
12706 | |
11527 | |
|
|
11528 | LIBS="$save_LIBS" |
12707 | |
11529 | |
12708 | if test x$support_xft = xyes; then |
11530 | if test x$support_xft = xyes; then |
12709 | |
11531 | |
12710 | cat >>confdefs.h <<\_ACEOF |
11532 | cat >>confdefs.h <<\_ACEOF |
12711 | #define XFT 1 |
11533 | #define XFT 1 |
… | |
… | |
12795 | _ACEOF |
11617 | _ACEOF |
12796 | |
11618 | |
12797 | fi |
11619 | fi |
12798 | |
11620 | |
12799 | |
11621 | |
|
|
11622 | scrolltypes=plain |
|
|
11623 | |
|
|
11624 | cat >>confdefs.h <<\_ACEOF |
|
|
11625 | #define PLAIN_SCROLLBAR 1 |
|
|
11626 | _ACEOF |
|
|
11627 | |
|
|
11628 | |
12800 | if test x$support_scroll_rxvt = xyes; then |
11629 | if test x$support_scroll_rxvt = xyes; then |
12801 | |
11630 | |
12802 | cat >>confdefs.h <<\_ACEOF |
11631 | cat >>confdefs.h <<\_ACEOF |
12803 | #define RXVT_SCROLLBAR 1 |
11632 | #define RXVT_SCROLLBAR 1 |
12804 | _ACEOF |
11633 | _ACEOF |
12805 | |
11634 | |
12806 | scrolltypes="rxvt" |
11635 | scrolltypes="$scrolltypes rxvt" |
12807 | fi |
11636 | fi |
12808 | if test x$support_scroll_next = xyes; then |
11637 | if test x$support_scroll_next = xyes; then |
12809 | |
11638 | |
12810 | cat >>confdefs.h <<\_ACEOF |
11639 | cat >>confdefs.h <<\_ACEOF |
12811 | #define NEXT_SCROLLBAR 1 |
11640 | #define NEXT_SCROLLBAR 1 |
… | |
… | |
12818 | cat >>confdefs.h <<\_ACEOF |
11647 | cat >>confdefs.h <<\_ACEOF |
12819 | #define XTERM_SCROLLBAR 1 |
11648 | #define XTERM_SCROLLBAR 1 |
12820 | _ACEOF |
11649 | _ACEOF |
12821 | |
11650 | |
12822 | scrolltypes="$scrolltypes xterm" |
11651 | scrolltypes="$scrolltypes xterm" |
12823 | fi |
|
|
12824 | if test x$support_scroll_plain = xyes; then |
|
|
12825 | |
|
|
12826 | cat >>confdefs.h <<\_ACEOF |
|
|
12827 | #define PLAIN_SCROLLBAR 1 |
|
|
12828 | _ACEOF |
|
|
12829 | |
|
|
12830 | scrolltypes="$scrolltypes plain" |
|
|
12831 | fi |
11652 | fi |
12832 | if test x$support_pointer_blank = xyes; then |
11653 | if test x$support_pointer_blank = xyes; then |
12833 | |
11654 | |
12834 | cat >>confdefs.h <<\_ACEOF |
11655 | cat >>confdefs.h <<\_ACEOF |
12835 | #define POINTER_BLANK 1 |
11656 | #define POINTER_BLANK 1 |
… | |
… | |
13098 | _ACEOF |
11919 | _ACEOF |
13099 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
11920 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
13100 | rm -f conftest.sed |
11921 | rm -f conftest.sed |
13101 | |
11922 | |
13102 | |
11923 | |
13103 | |
|
|
13104 | |
|
|
13105 | |
|
|
13106 | if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13107 | include_stdint_h="#include <stdint.h>" |
|
|
13108 | else |
|
|
13109 | include_stdint_h="/* #include <stdint.h> */" |
|
|
13110 | fi |
|
|
13111 | if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13112 | include_stdarg_h="#include <cstdarg>" |
|
|
13113 | else |
|
|
13114 | include_stdarg_h="/* #include <cstdarg> */" |
|
|
13115 | fi |
|
|
13116 | if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13117 | include_stdlib_h="#include <cstdlib>" |
|
|
13118 | else |
|
|
13119 | include_stdlib_h="/* #include <cstdlib> */" |
|
|
13120 | fi |
|
|
13121 | if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13122 | include_unistd_h="#include <unistd.h>" |
|
|
13123 | else |
|
|
13124 | include_unistd_h="/* #include <unistd.h> */" |
|
|
13125 | fi |
|
|
13126 | if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13127 | include_string_h="#include <cstring>" |
|
|
13128 | else |
|
|
13129 | include_string_h="/* #include <cstring> */" |
|
|
13130 | fi |
|
|
13131 | if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13132 | include_fcntl_h="#include <fcntl.h>" |
|
|
13133 | else |
|
|
13134 | include_fcntl_h="/* #include <fcntl.h> */" |
|
|
13135 | fi |
|
|
13136 | if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13137 | include_util_h="#include <util.h>" |
|
|
13138 | else |
|
|
13139 | include_util_h="/* #include <util.h> */" |
|
|
13140 | fi |
|
|
13141 | if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13142 | include_assert_h="#include <assert.h>" |
|
|
13143 | else |
|
|
13144 | include_assert_h="/* #include <assert.h> */" |
|
|
13145 | fi |
|
|
13146 | if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13147 | include_sys_ioctl_h="#include <sys/ioctl.h>" |
|
|
13148 | else |
|
|
13149 | include_sys_ioctl_h="/* #include <sys/ioctl.h> */" |
|
|
13150 | fi |
|
|
13151 | if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13152 | include_sys_select_h="#include <sys/select.h>" |
|
|
13153 | else |
|
|
13154 | include_sys_select_h="/* #include <sys/select.h> */" |
|
|
13155 | fi |
|
|
13156 | if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13157 | include_sys_strredir_h="#include <sys/strredir.h>" |
|
|
13158 | else |
|
|
13159 | include_sys_strredir_h="/* #include <sys/strredir.h> */" |
|
|
13160 | fi |
|
|
13161 | if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13162 | include_sys_time_h="#include <sys/time.h>" |
|
|
13163 | else |
|
|
13164 | include_sys_time_h="/* #include <sys/time.h> */" |
|
|
13165 | fi |
|
|
13166 | if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then |
|
|
13167 | include_time_h="#include <time.h>" |
|
|
13168 | else |
|
|
13169 | include_time_h="/* #include <time.h> */" |
|
|
13170 | fi |
|
|
13171 | |
|
|
13172 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" |
11924 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile" |
13173 | |
11925 | |
13174 | cat >confcache <<\_ACEOF |
11926 | cat >confcache <<\_ACEOF |
13175 | # This file is a shell script that caches the results of configure |
11927 | # This file is a shell script that caches the results of configure |
13176 | # tests run on this system so they can be shared between configure |
11928 | # tests run on this system so they can be shared between configure |
13177 | # scripts and configure runs, see configure's option --config-cache. |
11929 | # scripts and configure runs, see configure's option --config-cache. |
… | |
… | |
13726 | case $ac_config_target in |
12478 | case $ac_config_target in |
13727 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; |
12479 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; |
13728 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
12480 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
13729 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
12481 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
13730 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
12482 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
13731 | "src/rxvtlib.h") CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; |
|
|
13732 | |
12483 | |
13733 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
12484 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
13734 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
12485 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
13735 | { (exit 1); exit 1; }; };; |
12486 | { (exit 1); exit 1; }; };; |
13736 | esac |
12487 | esac |
… | |
… | |
13835 | host_cpu!$host_cpu$ac_delim |
12586 | host_cpu!$host_cpu$ac_delim |
13836 | host_vendor!$host_vendor$ac_delim |
12587 | host_vendor!$host_vendor$ac_delim |
13837 | host_os!$host_os$ac_delim |
12588 | host_os!$host_os$ac_delim |
13838 | VERSION!$VERSION$ac_delim |
12589 | VERSION!$VERSION$ac_delim |
13839 | DATE!$DATE$ac_delim |
12590 | DATE!$DATE$ac_delim |
13840 | LSMDATE!$LSMDATE$ac_delim |
|
|
13841 | LIBVERSION!$LIBVERSION$ac_delim |
|
|
13842 | CC!$CC$ac_delim |
12591 | CC!$CC$ac_delim |
13843 | CFLAGS!$CFLAGS$ac_delim |
12592 | CFLAGS!$CFLAGS$ac_delim |
13844 | LDFLAGS!$LDFLAGS$ac_delim |
12593 | LDFLAGS!$LDFLAGS$ac_delim |
13845 | CPPFLAGS!$CPPFLAGS$ac_delim |
12594 | CPPFLAGS!$CPPFLAGS$ac_delim |
13846 | ac_ct_CC!$ac_ct_CC$ac_delim |
12595 | ac_ct_CC!$ac_ct_CC$ac_delim |
… | |
… | |
13854 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
12603 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
13855 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
12604 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
13856 | GREP!$GREP$ac_delim |
12605 | GREP!$GREP$ac_delim |
13857 | EGREP!$EGREP$ac_delim |
12606 | EGREP!$EGREP$ac_delim |
13858 | LINKER!$LINKER$ac_delim |
12607 | LINKER!$LINKER$ac_delim |
13859 | INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim |
|
|
13860 | RXVTNAME!$RXVTNAME$ac_delim |
12608 | RXVTNAME!$RXVTNAME$ac_delim |
|
|
12609 | CXXCPP!$CXXCPP$ac_delim |
13861 | TIC!$TIC$ac_delim |
12610 | TIC!$TIC$ac_delim |
13862 | XMKMF!$XMKMF$ac_delim |
12611 | XMKMF!$XMKMF$ac_delim |
13863 | CXXCPP!$CXXCPP$ac_delim |
|
|
13864 | X_CFLAGS!$X_CFLAGS$ac_delim |
12612 | X_CFLAGS!$X_CFLAGS$ac_delim |
13865 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
12613 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
13866 | X_LIBS!$X_LIBS$ac_delim |
12614 | X_LIBS!$X_LIBS$ac_delim |
13867 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
12615 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
13868 | afterimage_config!$afterimage_config$ac_delim |
12616 | afterimage_config!$afterimage_config$ac_delim |
13869 | rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim |
|
|
13870 | rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim |
|
|
13871 | rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim |
|
|
13872 | rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim |
|
|
13873 | rxvt_intp_define!$rxvt_intp_define$ac_delim |
|
|
13874 | rxvt_u_intp_define!$rxvt_u_intp_define$ac_delim |
|
|
13875 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
12617 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
13876 | XFT_CONFIG!$XFT_CONFIG$ac_delim |
12618 | XFT_CONFIG!$XFT_CONFIG$ac_delim |
13877 | PERL!$PERL$ac_delim |
12619 | PERL!$PERL$ac_delim |
13878 | PERLLIB!$PERLLIB$ac_delim |
12620 | PERLLIB!$PERLLIB$ac_delim |
13879 | PERLFLAGS!$PERLFLAGS$ac_delim |
12621 | PERLFLAGS!$PERLFLAGS$ac_delim |
13880 | PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim |
12622 | PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim |
13881 | IF_PERL!$IF_PERL$ac_delim |
12623 | IF_PERL!$IF_PERL$ac_delim |
13882 | PERL_O!$PERL_O$ac_delim |
12624 | PERL_O!$PERL_O$ac_delim |
13883 | AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim |
12625 | AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim |
13884 | AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim |
12626 | AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim |
13885 | include_stdint_h!$include_stdint_h$ac_delim |
12627 | LIBOBJS!$LIBOBJS$ac_delim |
13886 | include_stdarg_h!$include_stdarg_h$ac_delim |
12628 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
13887 | include_stdlib_h!$include_stdlib_h$ac_delim |
|
|
13888 | include_unistd_h!$include_unistd_h$ac_delim |
|
|
13889 | include_string_h!$include_string_h$ac_delim |
|
|
13890 | _ACEOF |
12629 | _ACEOF |
13891 | |
12630 | |
13892 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
12631 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 85; then |
13893 | break |
12632 | break |
13894 | elif $ac_last_try; then |
12633 | elif $ac_last_try; then |
13895 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
12634 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
13896 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
12635 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
13897 | { (exit 1); exit 1; }; } |
12636 | { (exit 1); exit 1; }; } |
… | |
… | |
13906 | ac_eof=`expr $ac_eof + 1` |
12645 | ac_eof=`expr $ac_eof + 1` |
13907 | fi |
12646 | fi |
13908 | |
12647 | |
13909 | cat >>$CONFIG_STATUS <<_ACEOF |
12648 | cat >>$CONFIG_STATUS <<_ACEOF |
13910 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
12649 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
13911 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
|
|
13912 | _ACEOF |
|
|
13913 | sed ' |
|
|
13914 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
|
|
13915 | s/^/s,@/; s/!/@,|#_!!_#|/ |
|
|
13916 | :n |
|
|
13917 | t n |
|
|
13918 | s/'"$ac_delim"'$/,g/; t |
|
|
13919 | s/$/\\/; p |
|
|
13920 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
|
|
13921 | ' >>$CONFIG_STATUS <conf$$subs.sed |
|
|
13922 | rm -f conf$$subs.sed |
|
|
13923 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
13924 | CEOF$ac_eof |
|
|
13925 | _ACEOF |
|
|
13926 | |
|
|
13927 | |
|
|
13928 | ac_delim='%!_!# ' |
|
|
13929 | for ac_last_try in false false false false false :; do |
|
|
13930 | cat >conf$$subs.sed <<_ACEOF |
|
|
13931 | include_fcntl_h!$include_fcntl_h$ac_delim |
|
|
13932 | include_util_h!$include_util_h$ac_delim |
|
|
13933 | include_assert_h!$include_assert_h$ac_delim |
|
|
13934 | include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim |
|
|
13935 | include_sys_select_h!$include_sys_select_h$ac_delim |
|
|
13936 | include_sys_strredir_h!$include_sys_strredir_h$ac_delim |
|
|
13937 | include_sys_time_h!$include_sys_time_h$ac_delim |
|
|
13938 | include_time_h!$include_time_h$ac_delim |
|
|
13939 | LIBOBJS!$LIBOBJS$ac_delim |
|
|
13940 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
|
|
13941 | _ACEOF |
|
|
13942 | |
|
|
13943 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then |
|
|
13944 | break |
|
|
13945 | elif $ac_last_try; then |
|
|
13946 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
|
|
13947 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
|
|
13948 | { (exit 1); exit 1; }; } |
|
|
13949 | else |
|
|
13950 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|
|
13951 | fi |
|
|
13952 | done |
|
|
13953 | |
|
|
13954 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
|
|
13955 | if test -n "$ac_eof"; then |
|
|
13956 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
|
|
13957 | ac_eof=`expr $ac_eof + 1` |
|
|
13958 | fi |
|
|
13959 | |
|
|
13960 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
13961 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
|
|
13962 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
12650 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
13963 | _ACEOF |
12651 | _ACEOF |
13964 | sed ' |
12652 | sed ' |
13965 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
12653 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
13966 | s/^/s,@/; s/!/@,|#_!!_#|/ |
12654 | s/^/s,@/; s/!/@,|#_!!_#|/ |
… | |
… | |
14219 | s&@builddir@&$ac_builddir&;t t |
12907 | s&@builddir@&$ac_builddir&;t t |
14220 | s&@abs_builddir@&$ac_abs_builddir&;t t |
12908 | s&@abs_builddir@&$ac_abs_builddir&;t t |
14221 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
12909 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
14222 | s&@INSTALL@&$ac_INSTALL&;t t |
12910 | s&@INSTALL@&$ac_INSTALL&;t t |
14223 | $ac_datarootdir_hack |
12911 | $ac_datarootdir_hack |
14224 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
12912 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out |
14225 | |
12913 | |
14226 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
12914 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
14227 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
12915 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
14228 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
12916 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
14229 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
12917 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |