… | |
… | |
658 | host_cpu |
658 | host_cpu |
659 | host_vendor |
659 | host_vendor |
660 | host_os |
660 | host_os |
661 | VERSION |
661 | VERSION |
662 | DATE |
662 | DATE |
663 | LSMDATE |
|
|
664 | LIBVERSION |
|
|
665 | CC |
663 | CC |
666 | CFLAGS |
664 | CFLAGS |
667 | LDFLAGS |
665 | LDFLAGS |
668 | CPPFLAGS |
666 | CPPFLAGS |
669 | ac_ct_CC |
667 | ac_ct_CC |
… | |
… | |
677 | INSTALL_SCRIPT |
675 | INSTALL_SCRIPT |
678 | INSTALL_DATA |
676 | INSTALL_DATA |
679 | GREP |
677 | GREP |
680 | EGREP |
678 | EGREP |
681 | LINKER |
679 | LINKER |
682 | INSTALL_LIBRXVT |
|
|
683 | RXVTNAME |
680 | RXVTNAME |
|
|
681 | CXXCPP |
684 | TIC |
682 | TIC |
685 | XMKMF |
683 | XMKMF |
686 | CXXCPP |
|
|
687 | X_CFLAGS |
684 | X_CFLAGS |
688 | X_PRE_LIBS |
685 | X_PRE_LIBS |
689 | X_LIBS |
686 | X_LIBS |
690 | X_EXTRA_LIBS |
687 | X_EXTRA_LIBS |
691 | afterimage_config |
688 | afterimage_config |
692 | rxvt_int16_typedef |
|
|
693 | rxvt_uint16_typedef |
|
|
694 | rxvt_int32_typedef |
|
|
695 | rxvt_uint32_typedef |
|
|
696 | rxvt_intp_define |
|
|
697 | rxvt_u_intp_define |
|
|
698 | PKG_CONFIG |
689 | PKG_CONFIG |
699 | XFT_CONFIG |
690 | XFT_CONFIG |
700 | PERL |
691 | PERL |
701 | PERLLIB |
692 | PERLLIB |
702 | PERLFLAGS |
693 | PERLFLAGS |
703 | PERLPRIVLIBEXP |
694 | PERLPRIVLIBEXP |
704 | IF_PERL |
695 | IF_PERL |
705 | PERL_O |
696 | PERL_O |
706 | AFTERIMAGE_CFLAGS |
697 | AFTERIMAGE_CFLAGS |
707 | AFTERIMAGE_LIBS |
698 | AFTERIMAGE_LIBS |
708 | include_stdint_h |
|
|
709 | include_stdarg_h |
|
|
710 | include_stdlib_h |
|
|
711 | include_unistd_h |
|
|
712 | include_string_h |
|
|
713 | include_fcntl_h |
|
|
714 | include_util_h |
|
|
715 | include_assert_h |
|
|
716 | include_sys_ioctl_h |
|
|
717 | include_sys_select_h |
|
|
718 | include_sys_strredir_h |
|
|
719 | include_sys_time_h |
|
|
720 | include_time_h |
|
|
721 | LIBOBJS |
699 | LIBOBJS |
722 | LTLIBOBJS' |
700 | LTLIBOBJS' |
723 | ac_subst_files='' |
701 | ac_subst_files='' |
724 | ac_precious_vars='build_alias |
702 | ac_precious_vars='build_alias |
725 | host_alias |
703 | host_alias |
… | |
… | |
731 | CPPFLAGS |
709 | CPPFLAGS |
732 | CXX |
710 | CXX |
733 | CXXFLAGS |
711 | CXXFLAGS |
734 | CCC |
712 | CCC |
735 | CPP |
713 | CPP |
736 | XMKMF |
|
|
737 | CXXCPP' |
714 | CXXCPP |
|
|
715 | XMKMF' |
738 | |
716 | |
739 | |
717 | |
740 | # Initialize some variables set by options. |
718 | # Initialize some variables set by options. |
741 | ac_init_help= |
719 | ac_init_help= |
742 | ac_init_version=false |
720 | ac_init_version=false |
… | |
… | |
1316 | Optional Features: |
1294 | Optional Features: |
1317 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1295 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1318 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1296 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1319 | --enable-everything enable standard non-multichoice features |
1297 | --enable-everything enable standard non-multichoice features |
1320 | NOTE: this option is order dependent |
1298 | NOTE: this option is order dependent |
1321 | NOTE: automatically enabled with --enable-shared |
|
|
1322 | --enable-warnings turn on g++ warnings |
1299 | --enable-warnings turn on g++ warnings |
1323 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1300 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1324 | --enable-combining enable composition of base and combining characters |
1301 | --enable-combining enable composition of base and combining characters |
1325 | --enable-xft enable xft support on systems that have it |
1302 | --enable-xft enable xft support on systems that have it |
1326 | --enable-font-styles enable bold and italic support |
1303 | --enable-font-styles enable bold and italic support |
… | |
… | |
1328 | --enable-transparency enable transparent backgrounds |
1305 | --enable-transparency enable transparent backgrounds |
1329 | --enable-fading enable colors fading when off focus |
1306 | --enable-fading enable colors fading when off focus |
1330 | --enable-rxvt-scroll enable rxvt style scrollbar |
1307 | --enable-rxvt-scroll enable rxvt style scrollbar |
1331 | --enable-next-scroll enable NeXT style scrollbar |
1308 | --enable-next-scroll enable NeXT style scrollbar |
1332 | --enable-xterm-scroll enable Xterm style scrollbar |
1309 | --enable-xterm-scroll enable Xterm style scrollbar |
|
|
1310 | --enable-plain-scroll enable plain 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 |
… | |
… | |
4416 | support_iso14755=yes |
4392 | support_iso14755=yes |
4417 | support_styles=yes |
4393 | support_styles=yes |
4418 | support_perl=yes |
4394 | support_perl=yes |
4419 | codesets=all |
4395 | codesets=all |
4420 | |
4396 | |
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 | |
4397 | |
4431 | |
4398 | |
4432 | # Check whether --enable-everything was given. |
4399 | # Check whether --enable-everything was given. |
4433 | if test "${enable_everything+set}" = set; then |
4400 | if test "${enable_everything+set}" = set; then |
4434 | enableval=$enable_everything; |
4401 | enableval=$enable_everything; |
… | |
… | |
4640 | support_scroll_xterm=$enableval |
4607 | support_scroll_xterm=$enableval |
4641 | fi |
4608 | fi |
4642 | fi |
4609 | fi |
4643 | |
4610 | |
4644 | |
4611 | |
|
|
4612 | # Check whether --enable-plain-scroll was given. |
|
|
4613 | if test "${enable_plain_scroll+set}" = set; then |
|
|
4614 | enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4615 | support_scroll_plain=$enableval |
|
|
4616 | fi |
|
|
4617 | fi |
|
|
4618 | |
|
|
4619 | |
4645 | # Check whether --enable-perl was given. |
4620 | # Check whether --enable-perl was given. |
4646 | if test "${enable_perl+set}" = set; then |
4621 | if test "${enable_perl+set}" = set; then |
4647 | enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then |
4622 | enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then |
4648 | support_perl=$enableval |
4623 | support_perl=$enableval |
4649 | fi |
|
|
4650 | fi |
|
|
4651 | |
|
|
4652 | |
|
|
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 |
4624 | fi |
4658 | fi |
4625 | fi |
4659 | |
4626 | |
4660 | |
4627 | |
4661 | |
4628 | |
… | |
… | |
4888 | #define RXVT_TERMINFO "$withval" |
4855 | #define RXVT_TERMINFO "$withval" |
4889 | _ACEOF |
4856 | _ACEOF |
4890 | terminfo="$withval" |
4857 | terminfo="$withval" |
4891 | fi |
4858 | fi |
4892 | fi |
4859 | fi |
|
|
4860 | |
|
|
4861 | |
|
|
4862 | |
|
|
4863 | LIBEV_M4_AVOID_LIBRT=1 |
|
|
4864 | |
|
|
4865 | ac_ext=cpp |
|
|
4866 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
4867 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4868 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4869 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
4870 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
4871 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
|
|
4872 | if test -z "$CXXCPP"; then |
|
|
4873 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
|
4874 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4875 | else |
|
|
4876 | # Double quotes because CXXCPP needs to be expanded |
|
|
4877 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
4878 | do |
|
|
4879 | ac_preproc_ok=false |
|
|
4880 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4881 | do |
|
|
4882 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4883 | # with a fresh cross-compiler works. |
|
|
4884 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4885 | # <limits.h> exists even on freestanding compilers. |
|
|
4886 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4887 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4888 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4889 | /* confdefs.h. */ |
|
|
4890 | _ACEOF |
|
|
4891 | cat confdefs.h >>conftest.$ac_ext |
|
|
4892 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4893 | /* end confdefs.h. */ |
|
|
4894 | #ifdef __STDC__ |
|
|
4895 | # include <limits.h> |
|
|
4896 | #else |
|
|
4897 | # include <assert.h> |
|
|
4898 | #endif |
|
|
4899 | Syntax error |
|
|
4900 | _ACEOF |
|
|
4901 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4902 | case "(($ac_try" in |
|
|
4903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4904 | *) ac_try_echo=$ac_try;; |
|
|
4905 | esac |
|
|
4906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4907 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4908 | ac_status=$? |
|
|
4909 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4910 | rm -f conftest.er1 |
|
|
4911 | cat conftest.err >&5 |
|
|
4912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4913 | (exit $ac_status); } >/dev/null && { |
|
|
4914 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4915 | test ! -s conftest.err |
|
|
4916 | }; then |
|
|
4917 | : |
|
|
4918 | else |
|
|
4919 | echo "$as_me: failed program was:" >&5 |
|
|
4920 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4921 | |
|
|
4922 | # Broken: fails on valid input. |
|
|
4923 | continue |
|
|
4924 | fi |
|
|
4925 | |
|
|
4926 | rm -f conftest.err conftest.$ac_ext |
|
|
4927 | |
|
|
4928 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
4929 | # can be detected and how. |
|
|
4930 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4931 | /* confdefs.h. */ |
|
|
4932 | _ACEOF |
|
|
4933 | cat confdefs.h >>conftest.$ac_ext |
|
|
4934 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4935 | /* end confdefs.h. */ |
|
|
4936 | #include <ac_nonexistent.h> |
|
|
4937 | _ACEOF |
|
|
4938 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4939 | case "(($ac_try" in |
|
|
4940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4941 | *) ac_try_echo=$ac_try;; |
|
|
4942 | esac |
|
|
4943 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4944 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4945 | ac_status=$? |
|
|
4946 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4947 | rm -f conftest.er1 |
|
|
4948 | cat conftest.err >&5 |
|
|
4949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4950 | (exit $ac_status); } >/dev/null && { |
|
|
4951 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4952 | test ! -s conftest.err |
|
|
4953 | }; then |
|
|
4954 | # Broken: success on invalid input. |
|
|
4955 | continue |
|
|
4956 | else |
|
|
4957 | echo "$as_me: failed program was:" >&5 |
|
|
4958 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4959 | |
|
|
4960 | # Passes both tests. |
|
|
4961 | ac_preproc_ok=: |
|
|
4962 | break |
|
|
4963 | fi |
|
|
4964 | |
|
|
4965 | rm -f conftest.err conftest.$ac_ext |
|
|
4966 | |
|
|
4967 | done |
|
|
4968 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
4969 | rm -f conftest.err conftest.$ac_ext |
|
|
4970 | if $ac_preproc_ok; then |
|
|
4971 | break |
|
|
4972 | fi |
|
|
4973 | |
|
|
4974 | done |
|
|
4975 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
4976 | |
|
|
4977 | fi |
|
|
4978 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
4979 | else |
|
|
4980 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
4981 | fi |
|
|
4982 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
4983 | echo "${ECHO_T}$CXXCPP" >&6; } |
|
|
4984 | ac_preproc_ok=false |
|
|
4985 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4986 | do |
|
|
4987 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4988 | # with a fresh cross-compiler works. |
|
|
4989 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4990 | # <limits.h> exists even on freestanding compilers. |
|
|
4991 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4992 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4993 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4994 | /* confdefs.h. */ |
|
|
4995 | _ACEOF |
|
|
4996 | cat confdefs.h >>conftest.$ac_ext |
|
|
4997 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4998 | /* end confdefs.h. */ |
|
|
4999 | #ifdef __STDC__ |
|
|
5000 | # include <limits.h> |
|
|
5001 | #else |
|
|
5002 | # include <assert.h> |
|
|
5003 | #endif |
|
|
5004 | Syntax error |
|
|
5005 | _ACEOF |
|
|
5006 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5007 | case "(($ac_try" in |
|
|
5008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5009 | *) ac_try_echo=$ac_try;; |
|
|
5010 | esac |
|
|
5011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5012 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5013 | ac_status=$? |
|
|
5014 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5015 | rm -f conftest.er1 |
|
|
5016 | cat conftest.err >&5 |
|
|
5017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5018 | (exit $ac_status); } >/dev/null && { |
|
|
5019 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5020 | test ! -s conftest.err |
|
|
5021 | }; then |
|
|
5022 | : |
|
|
5023 | else |
|
|
5024 | echo "$as_me: failed program was:" >&5 |
|
|
5025 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5026 | |
|
|
5027 | # Broken: fails on valid input. |
|
|
5028 | continue |
|
|
5029 | fi |
|
|
5030 | |
|
|
5031 | rm -f conftest.err conftest.$ac_ext |
|
|
5032 | |
|
|
5033 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
5034 | # can be detected and how. |
|
|
5035 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5036 | /* confdefs.h. */ |
|
|
5037 | _ACEOF |
|
|
5038 | cat confdefs.h >>conftest.$ac_ext |
|
|
5039 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5040 | /* end confdefs.h. */ |
|
|
5041 | #include <ac_nonexistent.h> |
|
|
5042 | _ACEOF |
|
|
5043 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5044 | case "(($ac_try" in |
|
|
5045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5046 | *) ac_try_echo=$ac_try;; |
|
|
5047 | esac |
|
|
5048 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5049 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5050 | ac_status=$? |
|
|
5051 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5052 | rm -f conftest.er1 |
|
|
5053 | cat conftest.err >&5 |
|
|
5054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5055 | (exit $ac_status); } >/dev/null && { |
|
|
5056 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5057 | test ! -s conftest.err |
|
|
5058 | }; then |
|
|
5059 | # Broken: success on invalid input. |
|
|
5060 | continue |
|
|
5061 | else |
|
|
5062 | echo "$as_me: failed program was:" >&5 |
|
|
5063 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5064 | |
|
|
5065 | # Passes both tests. |
|
|
5066 | ac_preproc_ok=: |
|
|
5067 | break |
|
|
5068 | fi |
|
|
5069 | |
|
|
5070 | rm -f conftest.err conftest.$ac_ext |
|
|
5071 | |
|
|
5072 | done |
|
|
5073 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5074 | rm -f conftest.err conftest.$ac_ext |
|
|
5075 | if $ac_preproc_ok; then |
|
|
5076 | : |
|
|
5077 | else |
|
|
5078 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5079 | See \`config.log' for more details." >&5 |
|
|
5080 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5081 | See \`config.log' for more details." >&2;} |
|
|
5082 | { (exit 1); exit 1; }; } |
|
|
5083 | fi |
|
|
5084 | |
|
|
5085 | ac_ext=cpp |
|
|
5086 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5087 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5088 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5089 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
5090 | |
|
|
5091 | |
|
|
5092 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
5093 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
|
|
5094 | if test "${ac_cv_header_stdc+set}" = set; then |
|
|
5095 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5096 | else |
|
|
5097 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5098 | /* confdefs.h. */ |
|
|
5099 | _ACEOF |
|
|
5100 | cat confdefs.h >>conftest.$ac_ext |
|
|
5101 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5102 | /* end confdefs.h. */ |
|
|
5103 | #include <stdlib.h> |
|
|
5104 | #include <stdarg.h> |
|
|
5105 | #include <string.h> |
|
|
5106 | #include <float.h> |
|
|
5107 | |
|
|
5108 | int |
|
|
5109 | main () |
|
|
5110 | { |
|
|
5111 | |
|
|
5112 | ; |
|
|
5113 | return 0; |
|
|
5114 | } |
|
|
5115 | _ACEOF |
|
|
5116 | rm -f conftest.$ac_objext |
|
|
5117 | if { (ac_try="$ac_compile" |
|
|
5118 | case "(($ac_try" in |
|
|
5119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5120 | *) ac_try_echo=$ac_try;; |
|
|
5121 | esac |
|
|
5122 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5123 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5124 | ac_status=$? |
|
|
5125 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5126 | rm -f conftest.er1 |
|
|
5127 | cat conftest.err >&5 |
|
|
5128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5129 | (exit $ac_status); } && { |
|
|
5130 | test -z "$ac_cxx_werror_flag" || |
|
|
5131 | test ! -s conftest.err |
|
|
5132 | } && test -s conftest.$ac_objext; then |
|
|
5133 | ac_cv_header_stdc=yes |
|
|
5134 | else |
|
|
5135 | echo "$as_me: failed program was:" >&5 |
|
|
5136 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5137 | |
|
|
5138 | ac_cv_header_stdc=no |
|
|
5139 | fi |
|
|
5140 | |
|
|
5141 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5142 | |
|
|
5143 | if test $ac_cv_header_stdc = yes; then |
|
|
5144 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
5145 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5146 | /* confdefs.h. */ |
|
|
5147 | _ACEOF |
|
|
5148 | cat confdefs.h >>conftest.$ac_ext |
|
|
5149 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5150 | /* end confdefs.h. */ |
|
|
5151 | #include <string.h> |
|
|
5152 | |
|
|
5153 | _ACEOF |
|
|
5154 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
5155 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
5156 | : |
|
|
5157 | else |
|
|
5158 | ac_cv_header_stdc=no |
|
|
5159 | fi |
|
|
5160 | rm -f conftest* |
|
|
5161 | |
|
|
5162 | fi |
|
|
5163 | |
|
|
5164 | if test $ac_cv_header_stdc = yes; then |
|
|
5165 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
5166 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5167 | /* confdefs.h. */ |
|
|
5168 | _ACEOF |
|
|
5169 | cat confdefs.h >>conftest.$ac_ext |
|
|
5170 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5171 | /* end confdefs.h. */ |
|
|
5172 | #include <stdlib.h> |
|
|
5173 | |
|
|
5174 | _ACEOF |
|
|
5175 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
5176 | $EGREP "free" >/dev/null 2>&1; then |
|
|
5177 | : |
|
|
5178 | else |
|
|
5179 | ac_cv_header_stdc=no |
|
|
5180 | fi |
|
|
5181 | rm -f conftest* |
|
|
5182 | |
|
|
5183 | fi |
|
|
5184 | |
|
|
5185 | if test $ac_cv_header_stdc = yes; then |
|
|
5186 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
5187 | if test "$cross_compiling" = yes; then |
|
|
5188 | : |
|
|
5189 | else |
|
|
5190 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5191 | /* confdefs.h. */ |
|
|
5192 | _ACEOF |
|
|
5193 | cat confdefs.h >>conftest.$ac_ext |
|
|
5194 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5195 | /* end confdefs.h. */ |
|
|
5196 | #include <ctype.h> |
|
|
5197 | #include <stdlib.h> |
|
|
5198 | #if ((' ' & 0x0FF) == 0x020) |
|
|
5199 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
5200 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
5201 | #else |
|
|
5202 | # define ISLOWER(c) \ |
|
|
5203 | (('a' <= (c) && (c) <= 'i') \ |
|
|
5204 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
5205 | || ('s' <= (c) && (c) <= 'z')) |
|
|
5206 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
5207 | #endif |
|
|
5208 | |
|
|
5209 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
5210 | int |
|
|
5211 | main () |
|
|
5212 | { |
|
|
5213 | int i; |
|
|
5214 | for (i = 0; i < 256; i++) |
|
|
5215 | if (XOR (islower (i), ISLOWER (i)) |
|
|
5216 | || toupper (i) != TOUPPER (i)) |
|
|
5217 | return 2; |
|
|
5218 | return 0; |
|
|
5219 | } |
|
|
5220 | _ACEOF |
|
|
5221 | rm -f conftest$ac_exeext |
|
|
5222 | if { (ac_try="$ac_link" |
|
|
5223 | case "(($ac_try" in |
|
|
5224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5225 | *) ac_try_echo=$ac_try;; |
|
|
5226 | esac |
|
|
5227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5228 | (eval "$ac_link") 2>&5 |
|
|
5229 | ac_status=$? |
|
|
5230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5231 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
5232 | { (case "(($ac_try" in |
|
|
5233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5234 | *) ac_try_echo=$ac_try;; |
|
|
5235 | esac |
|
|
5236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5237 | (eval "$ac_try") 2>&5 |
|
|
5238 | ac_status=$? |
|
|
5239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5240 | (exit $ac_status); }; }; then |
|
|
5241 | : |
|
|
5242 | else |
|
|
5243 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
5244 | echo "$as_me: failed program was:" >&5 |
|
|
5245 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5246 | |
|
|
5247 | ( exit $ac_status ) |
|
|
5248 | ac_cv_header_stdc=no |
|
|
5249 | fi |
|
|
5250 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
5251 | fi |
|
|
5252 | |
|
|
5253 | |
|
|
5254 | fi |
|
|
5255 | fi |
|
|
5256 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
5257 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
|
|
5258 | if test $ac_cv_header_stdc = yes; then |
|
|
5259 | |
|
|
5260 | cat >>confdefs.h <<\_ACEOF |
|
|
5261 | #define STDC_HEADERS 1 |
|
|
5262 | _ACEOF |
|
|
5263 | |
|
|
5264 | fi |
|
|
5265 | |
|
|
5266 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
5267 | |
|
|
5268 | |
|
|
5269 | |
|
|
5270 | |
|
|
5271 | |
|
|
5272 | |
|
|
5273 | |
|
|
5274 | |
|
|
5275 | |
|
|
5276 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
5277 | inttypes.h stdint.h unistd.h |
|
|
5278 | do |
|
|
5279 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
5280 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5281 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5282 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5283 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5284 | else |
|
|
5285 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5286 | /* confdefs.h. */ |
|
|
5287 | _ACEOF |
|
|
5288 | cat confdefs.h >>conftest.$ac_ext |
|
|
5289 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5290 | /* end confdefs.h. */ |
|
|
5291 | $ac_includes_default |
|
|
5292 | |
|
|
5293 | #include <$ac_header> |
|
|
5294 | _ACEOF |
|
|
5295 | rm -f conftest.$ac_objext |
|
|
5296 | if { (ac_try="$ac_compile" |
|
|
5297 | case "(($ac_try" in |
|
|
5298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5299 | *) ac_try_echo=$ac_try;; |
|
|
5300 | esac |
|
|
5301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5302 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5303 | ac_status=$? |
|
|
5304 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5305 | rm -f conftest.er1 |
|
|
5306 | cat conftest.err >&5 |
|
|
5307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5308 | (exit $ac_status); } && { |
|
|
5309 | test -z "$ac_cxx_werror_flag" || |
|
|
5310 | test ! -s conftest.err |
|
|
5311 | } && test -s conftest.$ac_objext; then |
|
|
5312 | eval "$as_ac_Header=yes" |
|
|
5313 | else |
|
|
5314 | echo "$as_me: failed program was:" >&5 |
|
|
5315 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5316 | |
|
|
5317 | eval "$as_ac_Header=no" |
|
|
5318 | fi |
|
|
5319 | |
|
|
5320 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5321 | fi |
|
|
5322 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5323 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5324 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5325 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
5326 | cat >>confdefs.h <<_ACEOF |
|
|
5327 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
5328 | _ACEOF |
|
|
5329 | |
|
|
5330 | fi |
|
|
5331 | |
|
|
5332 | done |
|
|
5333 | |
|
|
5334 | |
|
|
5335 | |
|
|
5336 | |
|
|
5337 | |
|
|
5338 | |
|
|
5339 | |
|
|
5340 | |
|
|
5341 | |
|
|
5342 | for ac_header in sys/inotify.h sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h |
|
|
5343 | do |
|
|
5344 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
5345 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5346 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5347 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5348 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5350 | fi |
|
|
5351 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5352 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5353 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5354 | else |
|
|
5355 | # Is the header compilable? |
|
|
5356 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
5357 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
|
|
5358 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5359 | /* confdefs.h. */ |
|
|
5360 | _ACEOF |
|
|
5361 | cat confdefs.h >>conftest.$ac_ext |
|
|
5362 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5363 | /* end confdefs.h. */ |
|
|
5364 | $ac_includes_default |
|
|
5365 | #include <$ac_header> |
|
|
5366 | _ACEOF |
|
|
5367 | rm -f conftest.$ac_objext |
|
|
5368 | if { (ac_try="$ac_compile" |
|
|
5369 | case "(($ac_try" in |
|
|
5370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5371 | *) ac_try_echo=$ac_try;; |
|
|
5372 | esac |
|
|
5373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5374 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5375 | ac_status=$? |
|
|
5376 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5377 | rm -f conftest.er1 |
|
|
5378 | cat conftest.err >&5 |
|
|
5379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5380 | (exit $ac_status); } && { |
|
|
5381 | test -z "$ac_cxx_werror_flag" || |
|
|
5382 | test ! -s conftest.err |
|
|
5383 | } && test -s conftest.$ac_objext; then |
|
|
5384 | ac_header_compiler=yes |
|
|
5385 | else |
|
|
5386 | echo "$as_me: failed program was:" >&5 |
|
|
5387 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5388 | |
|
|
5389 | ac_header_compiler=no |
|
|
5390 | fi |
|
|
5391 | |
|
|
5392 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5393 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
5394 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
|
|
5395 | |
|
|
5396 | # Is the header present? |
|
|
5397 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
5398 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
|
|
5399 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5400 | /* confdefs.h. */ |
|
|
5401 | _ACEOF |
|
|
5402 | cat confdefs.h >>conftest.$ac_ext |
|
|
5403 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5404 | /* end confdefs.h. */ |
|
|
5405 | #include <$ac_header> |
|
|
5406 | _ACEOF |
|
|
5407 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5408 | case "(($ac_try" in |
|
|
5409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5410 | *) ac_try_echo=$ac_try;; |
|
|
5411 | esac |
|
|
5412 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5413 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5414 | ac_status=$? |
|
|
5415 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5416 | rm -f conftest.er1 |
|
|
5417 | cat conftest.err >&5 |
|
|
5418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5419 | (exit $ac_status); } >/dev/null && { |
|
|
5420 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5421 | test ! -s conftest.err |
|
|
5422 | }; then |
|
|
5423 | ac_header_preproc=yes |
|
|
5424 | else |
|
|
5425 | echo "$as_me: failed program was:" >&5 |
|
|
5426 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5427 | |
|
|
5428 | ac_header_preproc=no |
|
|
5429 | fi |
|
|
5430 | |
|
|
5431 | rm -f conftest.err conftest.$ac_ext |
|
|
5432 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
5433 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
|
|
5434 | |
|
|
5435 | # So? What about this header? |
|
|
5436 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
5437 | yes:no: ) |
|
|
5438 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
5439 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
5440 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
5441 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
5442 | ac_header_preproc=yes |
|
|
5443 | ;; |
|
|
5444 | no:yes:* ) |
|
|
5445 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
5446 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
5447 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
5448 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
5449 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
5450 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
5451 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
5452 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
5453 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
5454 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
5455 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
5456 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
5457 | |
|
|
5458 | ;; |
|
|
5459 | esac |
|
|
5460 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5461 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5462 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5464 | else |
|
|
5465 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
5466 | fi |
|
|
5467 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5468 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5469 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5470 | |
|
|
5471 | fi |
|
|
5472 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
5473 | cat >>confdefs.h <<_ACEOF |
|
|
5474 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
5475 | _ACEOF |
|
|
5476 | |
|
|
5477 | fi |
|
|
5478 | |
|
|
5479 | done |
|
|
5480 | |
|
|
5481 | |
|
|
5482 | |
|
|
5483 | |
|
|
5484 | |
|
|
5485 | |
|
|
5486 | |
|
|
5487 | |
|
|
5488 | for ac_func in inotify_init epoll_ctl kqueue port_create poll select |
|
|
5489 | do |
|
|
5490 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
5491 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
5492 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
5493 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5495 | else |
|
|
5496 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5497 | /* confdefs.h. */ |
|
|
5498 | _ACEOF |
|
|
5499 | cat confdefs.h >>conftest.$ac_ext |
|
|
5500 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5501 | /* end confdefs.h. */ |
|
|
5502 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
5503 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5504 | #define $ac_func innocuous_$ac_func |
|
|
5505 | |
|
|
5506 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5507 | which can conflict with char $ac_func (); below. |
|
|
5508 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5509 | <limits.h> exists even on freestanding compilers. */ |
|
|
5510 | |
|
|
5511 | #ifdef __STDC__ |
|
|
5512 | # include <limits.h> |
|
|
5513 | #else |
|
|
5514 | # include <assert.h> |
|
|
5515 | #endif |
|
|
5516 | |
|
|
5517 | #undef $ac_func |
|
|
5518 | |
|
|
5519 | /* Override any GCC internal prototype to avoid an error. |
|
|
5520 | Use char because int might match the return type of a GCC |
|
|
5521 | builtin and then its argument prototype would still apply. */ |
|
|
5522 | #ifdef __cplusplus |
|
|
5523 | extern "C" |
|
|
5524 | #endif |
|
|
5525 | char $ac_func (); |
|
|
5526 | /* The GNU C library defines this for functions which it implements |
|
|
5527 | to always fail with ENOSYS. Some functions are actually named |
|
|
5528 | something starting with __ and the normal name is an alias. */ |
|
|
5529 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
5530 | choke me |
|
|
5531 | #endif |
|
|
5532 | |
|
|
5533 | int |
|
|
5534 | main () |
|
|
5535 | { |
|
|
5536 | return $ac_func (); |
|
|
5537 | ; |
|
|
5538 | return 0; |
|
|
5539 | } |
|
|
5540 | _ACEOF |
|
|
5541 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5542 | if { (ac_try="$ac_link" |
|
|
5543 | case "(($ac_try" in |
|
|
5544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5545 | *) ac_try_echo=$ac_try;; |
|
|
5546 | esac |
|
|
5547 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5548 | (eval "$ac_link") 2>conftest.er1 |
|
|
5549 | ac_status=$? |
|
|
5550 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5551 | rm -f conftest.er1 |
|
|
5552 | cat conftest.err >&5 |
|
|
5553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5554 | (exit $ac_status); } && { |
|
|
5555 | test -z "$ac_cxx_werror_flag" || |
|
|
5556 | test ! -s conftest.err |
|
|
5557 | } && test -s conftest$ac_exeext && |
|
|
5558 | $as_test_x conftest$ac_exeext; then |
|
|
5559 | eval "$as_ac_var=yes" |
|
|
5560 | else |
|
|
5561 | echo "$as_me: failed program was:" >&5 |
|
|
5562 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5563 | |
|
|
5564 | eval "$as_ac_var=no" |
|
|
5565 | fi |
|
|
5566 | |
|
|
5567 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5568 | conftest$ac_exeext conftest.$ac_ext |
|
|
5569 | fi |
|
|
5570 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
5571 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5572 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5573 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
5574 | cat >>confdefs.h <<_ACEOF |
|
|
5575 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
5576 | _ACEOF |
|
|
5577 | |
|
|
5578 | fi |
|
|
5579 | done |
|
|
5580 | |
|
|
5581 | |
|
|
5582 | { echo "$as_me:$LINENO: checking for clock_gettime" >&5 |
|
|
5583 | echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6; } |
|
|
5584 | if test "${ac_cv_func_clock_gettime+set}" = set; then |
|
|
5585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5586 | else |
|
|
5587 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5588 | /* confdefs.h. */ |
|
|
5589 | _ACEOF |
|
|
5590 | cat confdefs.h >>conftest.$ac_ext |
|
|
5591 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5592 | /* end confdefs.h. */ |
|
|
5593 | /* Define clock_gettime to an innocuous variant, in case <limits.h> declares clock_gettime. |
|
|
5594 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5595 | #define clock_gettime innocuous_clock_gettime |
|
|
5596 | |
|
|
5597 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5598 | which can conflict with char clock_gettime (); below. |
|
|
5599 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5600 | <limits.h> exists even on freestanding compilers. */ |
|
|
5601 | |
|
|
5602 | #ifdef __STDC__ |
|
|
5603 | # include <limits.h> |
|
|
5604 | #else |
|
|
5605 | # include <assert.h> |
|
|
5606 | #endif |
|
|
5607 | |
|
|
5608 | #undef clock_gettime |
|
|
5609 | |
|
|
5610 | /* Override any GCC internal prototype to avoid an error. |
|
|
5611 | Use char because int might match the return type of a GCC |
|
|
5612 | builtin and then its argument prototype would still apply. */ |
|
|
5613 | #ifdef __cplusplus |
|
|
5614 | extern "C" |
|
|
5615 | #endif |
|
|
5616 | char clock_gettime (); |
|
|
5617 | /* The GNU C library defines this for functions which it implements |
|
|
5618 | to always fail with ENOSYS. Some functions are actually named |
|
|
5619 | something starting with __ and the normal name is an alias. */ |
|
|
5620 | #if defined __stub_clock_gettime || defined __stub___clock_gettime |
|
|
5621 | choke me |
|
|
5622 | #endif |
|
|
5623 | |
|
|
5624 | int |
|
|
5625 | main () |
|
|
5626 | { |
|
|
5627 | return clock_gettime (); |
|
|
5628 | ; |
|
|
5629 | return 0; |
|
|
5630 | } |
|
|
5631 | _ACEOF |
|
|
5632 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5633 | if { (ac_try="$ac_link" |
|
|
5634 | case "(($ac_try" in |
|
|
5635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5636 | *) ac_try_echo=$ac_try;; |
|
|
5637 | esac |
|
|
5638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5639 | (eval "$ac_link") 2>conftest.er1 |
|
|
5640 | ac_status=$? |
|
|
5641 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5642 | rm -f conftest.er1 |
|
|
5643 | cat conftest.err >&5 |
|
|
5644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5645 | (exit $ac_status); } && { |
|
|
5646 | test -z "$ac_cxx_werror_flag" || |
|
|
5647 | test ! -s conftest.err |
|
|
5648 | } && test -s conftest$ac_exeext && |
|
|
5649 | $as_test_x conftest$ac_exeext; then |
|
|
5650 | ac_cv_func_clock_gettime=yes |
|
|
5651 | else |
|
|
5652 | echo "$as_me: failed program was:" >&5 |
|
|
5653 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5654 | |
|
|
5655 | ac_cv_func_clock_gettime=no |
|
|
5656 | fi |
|
|
5657 | |
|
|
5658 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5659 | conftest$ac_exeext conftest.$ac_ext |
|
|
5660 | fi |
|
|
5661 | { echo "$as_me:$LINENO: result: $ac_cv_func_clock_gettime" >&5 |
|
|
5662 | echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; } |
|
|
5663 | if test $ac_cv_func_clock_gettime = yes; then |
|
|
5664 | : |
|
|
5665 | else |
|
|
5666 | |
|
|
5667 | if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
|
|
5668 | |
|
|
5669 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
|
|
5670 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } |
|
|
5671 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
|
|
5672 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5673 | else |
|
|
5674 | ac_check_lib_save_LIBS=$LIBS |
|
|
5675 | LIBS="-lrt $LIBS" |
|
|
5676 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5677 | /* confdefs.h. */ |
|
|
5678 | _ACEOF |
|
|
5679 | cat confdefs.h >>conftest.$ac_ext |
|
|
5680 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5681 | /* end confdefs.h. */ |
|
|
5682 | |
|
|
5683 | /* Override any GCC internal prototype to avoid an error. |
|
|
5684 | Use char because int might match the return type of a GCC |
|
|
5685 | builtin and then its argument prototype would still apply. */ |
|
|
5686 | #ifdef __cplusplus |
|
|
5687 | extern "C" |
|
|
5688 | #endif |
|
|
5689 | char clock_gettime (); |
|
|
5690 | int |
|
|
5691 | main () |
|
|
5692 | { |
|
|
5693 | return clock_gettime (); |
|
|
5694 | ; |
|
|
5695 | return 0; |
|
|
5696 | } |
|
|
5697 | _ACEOF |
|
|
5698 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5699 | if { (ac_try="$ac_link" |
|
|
5700 | case "(($ac_try" in |
|
|
5701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5702 | *) ac_try_echo=$ac_try;; |
|
|
5703 | esac |
|
|
5704 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5705 | (eval "$ac_link") 2>conftest.er1 |
|
|
5706 | ac_status=$? |
|
|
5707 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5708 | rm -f conftest.er1 |
|
|
5709 | cat conftest.err >&5 |
|
|
5710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5711 | (exit $ac_status); } && { |
|
|
5712 | test -z "$ac_cxx_werror_flag" || |
|
|
5713 | test ! -s conftest.err |
|
|
5714 | } && test -s conftest$ac_exeext && |
|
|
5715 | $as_test_x conftest$ac_exeext; then |
|
|
5716 | ac_cv_lib_rt_clock_gettime=yes |
|
|
5717 | else |
|
|
5718 | echo "$as_me: failed program was:" >&5 |
|
|
5719 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5720 | |
|
|
5721 | ac_cv_lib_rt_clock_gettime=no |
|
|
5722 | fi |
|
|
5723 | |
|
|
5724 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5725 | conftest$ac_exeext conftest.$ac_ext |
|
|
5726 | LIBS=$ac_check_lib_save_LIBS |
|
|
5727 | fi |
|
|
5728 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
|
|
5729 | echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; } |
|
|
5730 | if test $ac_cv_lib_rt_clock_gettime = yes; then |
|
|
5731 | cat >>confdefs.h <<_ACEOF |
|
|
5732 | #define HAVE_LIBRT 1 |
|
|
5733 | _ACEOF |
|
|
5734 | |
|
|
5735 | LIBS="-lrt $LIBS" |
|
|
5736 | |
|
|
5737 | fi |
|
|
5738 | |
|
|
5739 | unset ac_cv_func_clock_gettime |
|
|
5740 | |
|
|
5741 | for ac_func in clock_gettime |
|
|
5742 | do |
|
|
5743 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
5744 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
5745 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
5746 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5748 | else |
|
|
5749 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5750 | /* confdefs.h. */ |
|
|
5751 | _ACEOF |
|
|
5752 | cat confdefs.h >>conftest.$ac_ext |
|
|
5753 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5754 | /* end confdefs.h. */ |
|
|
5755 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
5756 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5757 | #define $ac_func innocuous_$ac_func |
|
|
5758 | |
|
|
5759 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5760 | which can conflict with char $ac_func (); below. |
|
|
5761 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5762 | <limits.h> exists even on freestanding compilers. */ |
|
|
5763 | |
|
|
5764 | #ifdef __STDC__ |
|
|
5765 | # include <limits.h> |
|
|
5766 | #else |
|
|
5767 | # include <assert.h> |
|
|
5768 | #endif |
|
|
5769 | |
|
|
5770 | #undef $ac_func |
|
|
5771 | |
|
|
5772 | /* Override any GCC internal prototype to avoid an error. |
|
|
5773 | Use char because int might match the return type of a GCC |
|
|
5774 | builtin and then its argument prototype would still apply. */ |
|
|
5775 | #ifdef __cplusplus |
|
|
5776 | extern "C" |
|
|
5777 | #endif |
|
|
5778 | char $ac_func (); |
|
|
5779 | /* The GNU C library defines this for functions which it implements |
|
|
5780 | to always fail with ENOSYS. Some functions are actually named |
|
|
5781 | something starting with __ and the normal name is an alias. */ |
|
|
5782 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
5783 | choke me |
|
|
5784 | #endif |
|
|
5785 | |
|
|
5786 | int |
|
|
5787 | main () |
|
|
5788 | { |
|
|
5789 | return $ac_func (); |
|
|
5790 | ; |
|
|
5791 | return 0; |
|
|
5792 | } |
|
|
5793 | _ACEOF |
|
|
5794 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5795 | if { (ac_try="$ac_link" |
|
|
5796 | case "(($ac_try" in |
|
|
5797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5798 | *) ac_try_echo=$ac_try;; |
|
|
5799 | esac |
|
|
5800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5801 | (eval "$ac_link") 2>conftest.er1 |
|
|
5802 | ac_status=$? |
|
|
5803 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5804 | rm -f conftest.er1 |
|
|
5805 | cat conftest.err >&5 |
|
|
5806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5807 | (exit $ac_status); } && { |
|
|
5808 | test -z "$ac_cxx_werror_flag" || |
|
|
5809 | test ! -s conftest.err |
|
|
5810 | } && test -s conftest$ac_exeext && |
|
|
5811 | $as_test_x conftest$ac_exeext; then |
|
|
5812 | eval "$as_ac_var=yes" |
|
|
5813 | else |
|
|
5814 | echo "$as_me: failed program was:" >&5 |
|
|
5815 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5816 | |
|
|
5817 | eval "$as_ac_var=no" |
|
|
5818 | fi |
|
|
5819 | |
|
|
5820 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5821 | conftest$ac_exeext conftest.$ac_ext |
|
|
5822 | fi |
|
|
5823 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
5824 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5825 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5826 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
5827 | cat >>confdefs.h <<_ACEOF |
|
|
5828 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
5829 | _ACEOF |
|
|
5830 | |
|
|
5831 | fi |
|
|
5832 | done |
|
|
5833 | |
|
|
5834 | fi |
|
|
5835 | |
|
|
5836 | fi |
|
|
5837 | |
|
|
5838 | |
|
|
5839 | { echo "$as_me:$LINENO: checking for nanosleep" >&5 |
|
|
5840 | echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; } |
|
|
5841 | if test "${ac_cv_func_nanosleep+set}" = set; then |
|
|
5842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5843 | else |
|
|
5844 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5845 | /* confdefs.h. */ |
|
|
5846 | _ACEOF |
|
|
5847 | cat confdefs.h >>conftest.$ac_ext |
|
|
5848 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5849 | /* end confdefs.h. */ |
|
|
5850 | /* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep. |
|
|
5851 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5852 | #define nanosleep innocuous_nanosleep |
|
|
5853 | |
|
|
5854 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5855 | which can conflict with char nanosleep (); below. |
|
|
5856 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5857 | <limits.h> exists even on freestanding compilers. */ |
|
|
5858 | |
|
|
5859 | #ifdef __STDC__ |
|
|
5860 | # include <limits.h> |
|
|
5861 | #else |
|
|
5862 | # include <assert.h> |
|
|
5863 | #endif |
|
|
5864 | |
|
|
5865 | #undef nanosleep |
|
|
5866 | |
|
|
5867 | /* Override any GCC internal prototype to avoid an error. |
|
|
5868 | Use char because int might match the return type of a GCC |
|
|
5869 | builtin and then its argument prototype would still apply. */ |
|
|
5870 | #ifdef __cplusplus |
|
|
5871 | extern "C" |
|
|
5872 | #endif |
|
|
5873 | char nanosleep (); |
|
|
5874 | /* The GNU C library defines this for functions which it implements |
|
|
5875 | to always fail with ENOSYS. Some functions are actually named |
|
|
5876 | something starting with __ and the normal name is an alias. */ |
|
|
5877 | #if defined __stub_nanosleep || defined __stub___nanosleep |
|
|
5878 | choke me |
|
|
5879 | #endif |
|
|
5880 | |
|
|
5881 | int |
|
|
5882 | main () |
|
|
5883 | { |
|
|
5884 | return nanosleep (); |
|
|
5885 | ; |
|
|
5886 | return 0; |
|
|
5887 | } |
|
|
5888 | _ACEOF |
|
|
5889 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5890 | if { (ac_try="$ac_link" |
|
|
5891 | case "(($ac_try" in |
|
|
5892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5893 | *) ac_try_echo=$ac_try;; |
|
|
5894 | esac |
|
|
5895 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5896 | (eval "$ac_link") 2>conftest.er1 |
|
|
5897 | ac_status=$? |
|
|
5898 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5899 | rm -f conftest.er1 |
|
|
5900 | cat conftest.err >&5 |
|
|
5901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5902 | (exit $ac_status); } && { |
|
|
5903 | test -z "$ac_cxx_werror_flag" || |
|
|
5904 | test ! -s conftest.err |
|
|
5905 | } && test -s conftest$ac_exeext && |
|
|
5906 | $as_test_x conftest$ac_exeext; then |
|
|
5907 | ac_cv_func_nanosleep=yes |
|
|
5908 | else |
|
|
5909 | echo "$as_me: failed program was:" >&5 |
|
|
5910 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5911 | |
|
|
5912 | ac_cv_func_nanosleep=no |
|
|
5913 | fi |
|
|
5914 | |
|
|
5915 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5916 | conftest$ac_exeext conftest.$ac_ext |
|
|
5917 | fi |
|
|
5918 | { echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5 |
|
|
5919 | echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; } |
|
|
5920 | if test $ac_cv_func_nanosleep = yes; then |
|
|
5921 | : |
|
|
5922 | else |
|
|
5923 | |
|
|
5924 | if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
|
|
5925 | |
|
|
5926 | { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5 |
|
|
5927 | echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; } |
|
|
5928 | if test "${ac_cv_lib_rt_nanosleep+set}" = set; then |
|
|
5929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5930 | else |
|
|
5931 | ac_check_lib_save_LIBS=$LIBS |
|
|
5932 | LIBS="-lrt $LIBS" |
|
|
5933 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5934 | /* confdefs.h. */ |
|
|
5935 | _ACEOF |
|
|
5936 | cat confdefs.h >>conftest.$ac_ext |
|
|
5937 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5938 | /* end confdefs.h. */ |
|
|
5939 | |
|
|
5940 | /* Override any GCC internal prototype to avoid an error. |
|
|
5941 | Use char because int might match the return type of a GCC |
|
|
5942 | builtin and then its argument prototype would still apply. */ |
|
|
5943 | #ifdef __cplusplus |
|
|
5944 | extern "C" |
|
|
5945 | #endif |
|
|
5946 | char nanosleep (); |
|
|
5947 | int |
|
|
5948 | main () |
|
|
5949 | { |
|
|
5950 | return nanosleep (); |
|
|
5951 | ; |
|
|
5952 | return 0; |
|
|
5953 | } |
|
|
5954 | _ACEOF |
|
|
5955 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5956 | if { (ac_try="$ac_link" |
|
|
5957 | case "(($ac_try" in |
|
|
5958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5959 | *) ac_try_echo=$ac_try;; |
|
|
5960 | esac |
|
|
5961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5962 | (eval "$ac_link") 2>conftest.er1 |
|
|
5963 | ac_status=$? |
|
|
5964 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5965 | rm -f conftest.er1 |
|
|
5966 | cat conftest.err >&5 |
|
|
5967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5968 | (exit $ac_status); } && { |
|
|
5969 | test -z "$ac_cxx_werror_flag" || |
|
|
5970 | test ! -s conftest.err |
|
|
5971 | } && test -s conftest$ac_exeext && |
|
|
5972 | $as_test_x conftest$ac_exeext; then |
|
|
5973 | ac_cv_lib_rt_nanosleep=yes |
|
|
5974 | else |
|
|
5975 | echo "$as_me: failed program was:" >&5 |
|
|
5976 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5977 | |
|
|
5978 | ac_cv_lib_rt_nanosleep=no |
|
|
5979 | fi |
|
|
5980 | |
|
|
5981 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5982 | conftest$ac_exeext conftest.$ac_ext |
|
|
5983 | LIBS=$ac_check_lib_save_LIBS |
|
|
5984 | fi |
|
|
5985 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5 |
|
|
5986 | echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; } |
|
|
5987 | if test $ac_cv_lib_rt_nanosleep = yes; then |
|
|
5988 | cat >>confdefs.h <<_ACEOF |
|
|
5989 | #define HAVE_LIBRT 1 |
|
|
5990 | _ACEOF |
|
|
5991 | |
|
|
5992 | LIBS="-lrt $LIBS" |
|
|
5993 | |
|
|
5994 | fi |
|
|
5995 | |
|
|
5996 | unset ac_cv_func_nanosleep |
|
|
5997 | |
|
|
5998 | for ac_func in nanosleep |
|
|
5999 | do |
|
|
6000 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
6001 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
6002 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
6003 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
6004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6005 | else |
|
|
6006 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6007 | /* confdefs.h. */ |
|
|
6008 | _ACEOF |
|
|
6009 | cat confdefs.h >>conftest.$ac_ext |
|
|
6010 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6011 | /* end confdefs.h. */ |
|
|
6012 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
6013 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
6014 | #define $ac_func innocuous_$ac_func |
|
|
6015 | |
|
|
6016 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
6017 | which can conflict with char $ac_func (); below. |
|
|
6018 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
6019 | <limits.h> exists even on freestanding compilers. */ |
|
|
6020 | |
|
|
6021 | #ifdef __STDC__ |
|
|
6022 | # include <limits.h> |
|
|
6023 | #else |
|
|
6024 | # include <assert.h> |
|
|
6025 | #endif |
|
|
6026 | |
|
|
6027 | #undef $ac_func |
|
|
6028 | |
|
|
6029 | /* Override any GCC internal prototype to avoid an error. |
|
|
6030 | Use char because int might match the return type of a GCC |
|
|
6031 | builtin and then its argument prototype would still apply. */ |
|
|
6032 | #ifdef __cplusplus |
|
|
6033 | extern "C" |
|
|
6034 | #endif |
|
|
6035 | char $ac_func (); |
|
|
6036 | /* The GNU C library defines this for functions which it implements |
|
|
6037 | to always fail with ENOSYS. Some functions are actually named |
|
|
6038 | something starting with __ and the normal name is an alias. */ |
|
|
6039 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
6040 | choke me |
|
|
6041 | #endif |
|
|
6042 | |
|
|
6043 | int |
|
|
6044 | main () |
|
|
6045 | { |
|
|
6046 | return $ac_func (); |
|
|
6047 | ; |
|
|
6048 | return 0; |
|
|
6049 | } |
|
|
6050 | _ACEOF |
|
|
6051 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6052 | if { (ac_try="$ac_link" |
|
|
6053 | case "(($ac_try" in |
|
|
6054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6055 | *) ac_try_echo=$ac_try;; |
|
|
6056 | esac |
|
|
6057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6058 | (eval "$ac_link") 2>conftest.er1 |
|
|
6059 | ac_status=$? |
|
|
6060 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6061 | rm -f conftest.er1 |
|
|
6062 | cat conftest.err >&5 |
|
|
6063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6064 | (exit $ac_status); } && { |
|
|
6065 | test -z "$ac_cxx_werror_flag" || |
|
|
6066 | test ! -s conftest.err |
|
|
6067 | } && test -s conftest$ac_exeext && |
|
|
6068 | $as_test_x conftest$ac_exeext; then |
|
|
6069 | eval "$as_ac_var=yes" |
|
|
6070 | else |
|
|
6071 | echo "$as_me: failed program was:" >&5 |
|
|
6072 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6073 | |
|
|
6074 | eval "$as_ac_var=no" |
|
|
6075 | fi |
|
|
6076 | |
|
|
6077 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6078 | conftest$ac_exeext conftest.$ac_ext |
|
|
6079 | fi |
|
|
6080 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
6081 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
6082 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
6083 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
6084 | cat >>confdefs.h <<_ACEOF |
|
|
6085 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
6086 | _ACEOF |
|
|
6087 | |
|
|
6088 | fi |
|
|
6089 | done |
|
|
6090 | |
|
|
6091 | fi |
|
|
6092 | |
|
|
6093 | fi |
|
|
6094 | |
|
|
6095 | |
|
|
6096 | |
|
|
6097 | { echo "$as_me:$LINENO: checking for ceil in -lm" >&5 |
|
|
6098 | echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; } |
|
|
6099 | if test "${ac_cv_lib_m_ceil+set}" = set; then |
|
|
6100 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6101 | else |
|
|
6102 | ac_check_lib_save_LIBS=$LIBS |
|
|
6103 | LIBS="-lm $LIBS" |
|
|
6104 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6105 | /* confdefs.h. */ |
|
|
6106 | _ACEOF |
|
|
6107 | cat confdefs.h >>conftest.$ac_ext |
|
|
6108 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6109 | /* end confdefs.h. */ |
|
|
6110 | |
|
|
6111 | /* Override any GCC internal prototype to avoid an error. |
|
|
6112 | Use char because int might match the return type of a GCC |
|
|
6113 | builtin and then its argument prototype would still apply. */ |
|
|
6114 | #ifdef __cplusplus |
|
|
6115 | extern "C" |
|
|
6116 | #endif |
|
|
6117 | char ceil (); |
|
|
6118 | int |
|
|
6119 | main () |
|
|
6120 | { |
|
|
6121 | return ceil (); |
|
|
6122 | ; |
|
|
6123 | return 0; |
|
|
6124 | } |
|
|
6125 | _ACEOF |
|
|
6126 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6127 | if { (ac_try="$ac_link" |
|
|
6128 | case "(($ac_try" in |
|
|
6129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6130 | *) ac_try_echo=$ac_try;; |
|
|
6131 | esac |
|
|
6132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6133 | (eval "$ac_link") 2>conftest.er1 |
|
|
6134 | ac_status=$? |
|
|
6135 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6136 | rm -f conftest.er1 |
|
|
6137 | cat conftest.err >&5 |
|
|
6138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6139 | (exit $ac_status); } && { |
|
|
6140 | test -z "$ac_cxx_werror_flag" || |
|
|
6141 | test ! -s conftest.err |
|
|
6142 | } && test -s conftest$ac_exeext && |
|
|
6143 | $as_test_x conftest$ac_exeext; then |
|
|
6144 | ac_cv_lib_m_ceil=yes |
|
|
6145 | else |
|
|
6146 | echo "$as_me: failed program was:" >&5 |
|
|
6147 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6148 | |
|
|
6149 | ac_cv_lib_m_ceil=no |
|
|
6150 | fi |
|
|
6151 | |
|
|
6152 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6153 | conftest$ac_exeext conftest.$ac_ext |
|
|
6154 | LIBS=$ac_check_lib_save_LIBS |
|
|
6155 | fi |
|
|
6156 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5 |
|
|
6157 | echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6; } |
|
|
6158 | if test $ac_cv_lib_m_ceil = yes; then |
|
|
6159 | cat >>confdefs.h <<_ACEOF |
|
|
6160 | #define HAVE_LIBM 1 |
|
|
6161 | _ACEOF |
|
|
6162 | |
|
|
6163 | LIBS="-lm $LIBS" |
|
|
6164 | |
|
|
6165 | fi |
|
|
6166 | |
|
|
6167 | |
|
|
6168 | |
|
|
6169 | |
4893 | |
6170 | |
4894 | |
6171 | |
4895 | |
6172 | |
4896 | # Extract the first word of "tic", so it can be a program name with args. |
6173 | # Extract the first word of "tic", so it can be a program name with args. |
4897 | set dummy tic; ac_word=$2 |
6174 | set dummy tic; ac_word=$2 |
… | |
… | |
4931 | else |
6208 | else |
4932 | { echo "$as_me:$LINENO: result: no" >&5 |
6209 | { echo "$as_me:$LINENO: result: no" >&5 |
4933 | echo "${ECHO_T}no" >&6; } |
6210 | echo "${ECHO_T}no" >&6; } |
4934 | fi |
6211 | fi |
4935 | |
6212 | |
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 | |
6213 | |
5166 | |
6214 | |
5167 | { echo "$as_me:$LINENO: checking for X" >&5 |
6215 | { echo "$as_me:$LINENO: checking for X" >&5 |
5168 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
6216 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
5169 | |
6217 | |
… | |
… | |
6555 | echo "${ECHO_T}no" >&6; } |
7603 | echo "${ECHO_T}no" >&6; } |
6556 | fi |
7604 | fi |
6557 | fi |
7605 | fi |
6558 | fi |
7606 | fi |
6559 | |
7607 | |
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 | |
7608 | |
6881 | |
7609 | |
6882 | |
7610 | |
6883 | |
7611 | |
6884 | |
7612 | |
6885 | |
7613 | |
6886 | |
7614 | |
6887 | for ac_header in \ |
7615 | 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 \ |
7616 | sys/byteorder.h \ |
6896 | sys/ioctl.h \ |
7617 | sys/ioctl.h \ |
6897 | sys/select.h \ |
|
|
6898 | sys/sockio.h \ |
7618 | sys/sockio.h \ |
6899 | sys/strredir.h \ |
7619 | sys/strredir.h \ |
6900 | sys/time.h \ |
|
|
6901 | stdint.h \ |
7620 | stdint.h \ |
6902 | wchar.h \ |
7621 | wchar.h \ |
6903 | cwchar \ |
7622 | cwchar \ |
6904 | clocale \ |
|
|
6905 | |
7623 | |
6906 | do |
7624 | do |
6907 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7625 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6908 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7626 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
6909 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7627 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
… | |
… | |
7040 | fi |
7758 | fi |
7041 | |
7759 | |
7042 | done |
7760 | done |
7043 | |
7761 | |
7044 | |
7762 | |
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 |
7763 | { echo "$as_me:$LINENO: checking for XPointer" >&5 |
7162 | echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } |
7764 | echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } |
7163 | if test "${rxvt_cv_xpointer+set}" = set; then |
7765 | if test "${rxvt_cv_xpointer+set}" = set; then |
7164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7766 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7165 | else |
7767 | else |
… | |
… | |
7276 | cat >>confdefs.h <<\_ACEOF |
7878 | cat >>confdefs.h <<\_ACEOF |
7277 | #define XLIB_ILLEGAL_ACCESS 1 |
7879 | #define XLIB_ILLEGAL_ACCESS 1 |
7278 | _ACEOF |
7880 | _ACEOF |
7279 | |
7881 | |
7280 | fi |
7882 | 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 | |
7883 | |
7459 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
7884 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
7460 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
7885 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
7461 | if test "${ac_cv_type_mode_t+set}" = set; then |
7886 | if test "${ac_cv_type_mode_t+set}" = set; then |
7462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
7619 | _ACEOF |
8044 | _ACEOF |
7620 | |
8045 | |
7621 | fi |
8046 | fi |
7622 | |
8047 | |
7623 | |
8048 | |
7624 | { echo "$as_me:$LINENO: checking for short" >&5 |
8049 | { echo "$as_me:$LINENO: checking for int16_t" >&5 |
7625 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
8050 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } |
7626 | if test "${ac_cv_type_short+set}" = set; then |
8051 | if test "${ac_cv_c_int16_t+set}" = set; then |
7627 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7628 | else |
8053 | else |
|
|
8054 | ac_cv_c_int16_t=no |
|
|
8055 | for ac_type in 'int16_t' 'int' 'long int' \ |
|
|
8056 | 'long long int' 'short int' 'signed char'; do |
7629 | cat >conftest.$ac_ext <<_ACEOF |
8057 | cat >conftest.$ac_ext <<_ACEOF |
7630 | /* confdefs.h. */ |
8058 | /* confdefs.h. */ |
7631 | _ACEOF |
8059 | _ACEOF |
7632 | cat confdefs.h >>conftest.$ac_ext |
8060 | cat confdefs.h >>conftest.$ac_ext |
7633 | cat >>conftest.$ac_ext <<_ACEOF |
8061 | cat >>conftest.$ac_ext <<_ACEOF |
7634 | /* end confdefs.h. */ |
8062 | /* end confdefs.h. */ |
7635 | $ac_includes_default |
8063 | $ac_includes_default |
7636 | typedef short ac__type_new_; |
|
|
7637 | int |
8064 | int |
7638 | main () |
8065 | main () |
7639 | { |
8066 | { |
7640 | if ((ac__type_new_ *) 0) |
8067 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))]; |
7641 | return 0; |
8068 | test_array [0] = 0 |
7642 | if (sizeof (ac__type_new_)) |
8069 | |
7643 | return 0; |
|
|
7644 | ; |
8070 | ; |
7645 | return 0; |
8071 | return 0; |
7646 | } |
8072 | } |
7647 | _ACEOF |
8073 | _ACEOF |
7648 | rm -f conftest.$ac_objext |
8074 | rm -f conftest.$ac_objext |
… | |
… | |
7660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7661 | (exit $ac_status); } && { |
8087 | (exit $ac_status); } && { |
7662 | test -z "$ac_cxx_werror_flag" || |
8088 | test -z "$ac_cxx_werror_flag" || |
7663 | test ! -s conftest.err |
8089 | test ! -s conftest.err |
7664 | } && test -s conftest.$ac_objext; then |
8090 | } && 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 |
8091 | cat >conftest.$ac_ext <<_ACEOF |
7690 | /* confdefs.h. */ |
8092 | /* confdefs.h. */ |
7691 | _ACEOF |
8093 | _ACEOF |
7692 | cat confdefs.h >>conftest.$ac_ext |
8094 | cat confdefs.h >>conftest.$ac_ext |
7693 | cat >>conftest.$ac_ext <<_ACEOF |
8095 | cat >>conftest.$ac_ext <<_ACEOF |
7694 | /* end confdefs.h. */ |
8096 | /* end confdefs.h. */ |
7695 | $ac_includes_default |
8097 | $ac_includes_default |
7696 | typedef short ac__type_sizeof_; |
|
|
7697 | int |
8098 | int |
7698 | main () |
8099 | main () |
7699 | { |
8100 | { |
7700 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
8101 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1) |
|
|
8102 | < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))]; |
7701 | test_array [0] = 0 |
8103 | test_array [0] = 0 |
7702 | |
8104 | |
7703 | ; |
8105 | ; |
7704 | return 0; |
8106 | return 0; |
7705 | } |
8107 | } |
… | |
… | |
7719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7720 | (exit $ac_status); } && { |
8122 | (exit $ac_status); } && { |
7721 | test -z "$ac_cxx_werror_flag" || |
8123 | test -z "$ac_cxx_werror_flag" || |
7722 | test ! -s conftest.err |
8124 | test ! -s conftest.err |
7723 | } && test -s conftest.$ac_objext; then |
8125 | } && test -s conftest.$ac_objext; then |
7724 | ac_lo=0 ac_mid=0 |
8126 | : |
7725 | while :; do |
8127 | else |
|
|
8128 | echo "$as_me: failed program was:" >&5 |
|
|
8129 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8130 | |
|
|
8131 | case $ac_type in |
|
|
8132 | int16_t) ac_cv_c_int16_t=yes ;; |
|
|
8133 | *) ac_cv_c_int16_t=$ac_type ;; |
|
|
8134 | esac |
|
|
8135 | |
|
|
8136 | fi |
|
|
8137 | |
|
|
8138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8139 | else |
|
|
8140 | echo "$as_me: failed program was:" >&5 |
|
|
8141 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8142 | |
|
|
8143 | |
|
|
8144 | fi |
|
|
8145 | |
|
|
8146 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8147 | test "$ac_cv_c_int16_t" != no && break |
|
|
8148 | done |
|
|
8149 | fi |
|
|
8150 | { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5 |
|
|
8151 | echo "${ECHO_T}$ac_cv_c_int16_t" >&6; } |
|
|
8152 | case $ac_cv_c_int16_t in #( |
|
|
8153 | no|yes) ;; #( |
|
|
8154 | *) |
|
|
8155 | |
|
|
8156 | cat >>confdefs.h <<_ACEOF |
|
|
8157 | #define int16_t $ac_cv_c_int16_t |
|
|
8158 | _ACEOF |
|
|
8159 | ;; |
|
|
8160 | esac |
|
|
8161 | |
|
|
8162 | |
|
|
8163 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 |
|
|
8164 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } |
|
|
8165 | if test "${ac_cv_c_uint16_t+set}" = set; then |
|
|
8166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8167 | else |
|
|
8168 | ac_cv_c_uint16_t=no |
|
|
8169 | for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \ |
|
|
8170 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
7726 | cat >conftest.$ac_ext <<_ACEOF |
8171 | cat >conftest.$ac_ext <<_ACEOF |
7727 | /* confdefs.h. */ |
8172 | /* confdefs.h. */ |
7728 | _ACEOF |
8173 | _ACEOF |
7729 | cat confdefs.h >>conftest.$ac_ext |
8174 | cat confdefs.h >>conftest.$ac_ext |
7730 | cat >>conftest.$ac_ext <<_ACEOF |
8175 | cat >>conftest.$ac_ext <<_ACEOF |
7731 | /* end confdefs.h. */ |
8176 | /* end confdefs.h. */ |
7732 | $ac_includes_default |
8177 | $ac_includes_default |
7733 | typedef short ac__type_sizeof_; |
|
|
7734 | int |
8178 | int |
7735 | main () |
8179 | main () |
7736 | { |
8180 | { |
7737 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
8181 | static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)]; |
7738 | test_array [0] = 0 |
8182 | test_array [0] = 0 |
7739 | |
8183 | |
7740 | ; |
8184 | ; |
7741 | return 0; |
8185 | return 0; |
7742 | } |
8186 | } |
… | |
… | |
7756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7757 | (exit $ac_status); } && { |
8201 | (exit $ac_status); } && { |
7758 | test -z "$ac_cxx_werror_flag" || |
8202 | test -z "$ac_cxx_werror_flag" || |
7759 | test ! -s conftest.err |
8203 | test ! -s conftest.err |
7760 | } && test -s conftest.$ac_objext; then |
8204 | } && test -s conftest.$ac_objext; then |
7761 | ac_hi=$ac_mid; break |
8205 | case $ac_type in |
|
|
8206 | uint16_t) ac_cv_c_uint16_t=yes ;; |
|
|
8207 | *) ac_cv_c_uint16_t=$ac_type ;; |
|
|
8208 | esac |
|
|
8209 | |
7762 | else |
8210 | else |
7763 | echo "$as_me: failed program was:" >&5 |
8211 | echo "$as_me: failed program was:" >&5 |
7764 | sed 's/^/| /' conftest.$ac_ext >&5 |
8212 | sed 's/^/| /' conftest.$ac_ext >&5 |
7765 | |
8213 | |
7766 | ac_lo=`expr $ac_mid + 1` |
8214 | |
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 |
8215 | fi |
7773 | |
8216 | |
7774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8217 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8218 | test "$ac_cv_c_uint16_t" != no && break |
7775 | done |
8219 | done |
7776 | else |
8220 | fi |
7777 | echo "$as_me: failed program was:" >&5 |
8221 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5 |
7778 | sed 's/^/| /' conftest.$ac_ext >&5 |
8222 | echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; } |
|
|
8223 | case $ac_cv_c_uint16_t in #( |
|
|
8224 | no|yes) ;; #( |
|
|
8225 | *) |
7779 | |
8226 | |
|
|
8227 | |
|
|
8228 | cat >>confdefs.h <<_ACEOF |
|
|
8229 | #define uint16_t $ac_cv_c_uint16_t |
|
|
8230 | _ACEOF |
|
|
8231 | ;; |
|
|
8232 | esac |
|
|
8233 | |
|
|
8234 | |
|
|
8235 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
|
|
8236 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
|
|
8237 | if test "${ac_cv_c_int32_t+set}" = set; then |
|
|
8238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8239 | else |
|
|
8240 | ac_cv_c_int32_t=no |
|
|
8241 | for ac_type in 'int32_t' 'int' 'long int' \ |
|
|
8242 | 'long long int' 'short int' 'signed char'; do |
7780 | cat >conftest.$ac_ext <<_ACEOF |
8243 | cat >conftest.$ac_ext <<_ACEOF |
7781 | /* confdefs.h. */ |
8244 | /* confdefs.h. */ |
7782 | _ACEOF |
8245 | _ACEOF |
7783 | cat confdefs.h >>conftest.$ac_ext |
8246 | cat confdefs.h >>conftest.$ac_ext |
7784 | cat >>conftest.$ac_ext <<_ACEOF |
8247 | cat >>conftest.$ac_ext <<_ACEOF |
7785 | /* end confdefs.h. */ |
8248 | /* end confdefs.h. */ |
7786 | $ac_includes_default |
8249 | $ac_includes_default |
7787 | typedef short ac__type_sizeof_; |
|
|
7788 | int |
8250 | int |
7789 | main () |
8251 | main () |
7790 | { |
8252 | { |
7791 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
8253 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))]; |
7792 | test_array [0] = 0 |
8254 | test_array [0] = 0 |
7793 | |
8255 | |
7794 | ; |
8256 | ; |
7795 | return 0; |
8257 | return 0; |
7796 | } |
8258 | } |
… | |
… | |
7810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7811 | (exit $ac_status); } && { |
8273 | (exit $ac_status); } && { |
7812 | test -z "$ac_cxx_werror_flag" || |
8274 | test -z "$ac_cxx_werror_flag" || |
7813 | test ! -s conftest.err |
8275 | test ! -s conftest.err |
7814 | } && test -s conftest.$ac_objext; then |
8276 | } && test -s conftest.$ac_objext; then |
7815 | ac_hi=-1 ac_mid=-1 |
|
|
7816 | while :; do |
|
|
7817 | cat >conftest.$ac_ext <<_ACEOF |
8277 | cat >conftest.$ac_ext <<_ACEOF |
7818 | /* confdefs.h. */ |
8278 | /* confdefs.h. */ |
7819 | _ACEOF |
8279 | _ACEOF |
7820 | cat confdefs.h >>conftest.$ac_ext |
8280 | cat confdefs.h >>conftest.$ac_ext |
7821 | cat >>conftest.$ac_ext <<_ACEOF |
8281 | cat >>conftest.$ac_ext <<_ACEOF |
7822 | /* end confdefs.h. */ |
8282 | /* end confdefs.h. */ |
7823 | $ac_includes_default |
8283 | $ac_includes_default |
7824 | typedef short ac__type_sizeof_; |
|
|
7825 | int |
8284 | int |
7826 | main () |
8285 | main () |
7827 | { |
8286 | { |
7828 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
8287 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1) |
|
|
8288 | < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))]; |
7829 | test_array [0] = 0 |
8289 | test_array [0] = 0 |
7830 | |
8290 | |
7831 | ; |
8291 | ; |
7832 | return 0; |
8292 | return 0; |
7833 | } |
8293 | } |
… | |
… | |
7847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7848 | (exit $ac_status); } && { |
8308 | (exit $ac_status); } && { |
7849 | test -z "$ac_cxx_werror_flag" || |
8309 | test -z "$ac_cxx_werror_flag" || |
7850 | test ! -s conftest.err |
8310 | test ! -s conftest.err |
7851 | } && test -s conftest.$ac_objext; then |
8311 | } && test -s conftest.$ac_objext; then |
7852 | ac_lo=$ac_mid; break |
8312 | : |
7853 | else |
8313 | else |
7854 | echo "$as_me: failed program was:" >&5 |
8314 | echo "$as_me: failed program was:" >&5 |
7855 | sed 's/^/| /' conftest.$ac_ext >&5 |
8315 | sed 's/^/| /' conftest.$ac_ext >&5 |
7856 | |
8316 | |
7857 | ac_hi=`expr '(' $ac_mid ')' - 1` |
8317 | case $ac_type in |
7858 | if test $ac_mid -le $ac_hi; then |
8318 | int32_t) ac_cv_c_int32_t=yes ;; |
7859 | ac_lo= ac_hi= |
8319 | *) ac_cv_c_int32_t=$ac_type ;; |
7860 | break |
8320 | esac |
7861 | fi |
8321 | |
7862 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
7863 | fi |
8322 | fi |
7864 | |
8323 | |
7865 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8324 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7866 | done |
|
|
7867 | else |
8325 | else |
7868 | echo "$as_me: failed program was:" >&5 |
8326 | echo "$as_me: failed program was:" >&5 |
7869 | sed 's/^/| /' conftest.$ac_ext >&5 |
8327 | sed 's/^/| /' conftest.$ac_ext >&5 |
7870 | |
8328 | |
7871 | ac_lo= ac_hi= |
8329 | |
7872 | fi |
8330 | fi |
7873 | |
8331 | |
7874 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8333 | test "$ac_cv_c_int32_t" != no && break |
|
|
8334 | done |
7875 | fi |
8335 | fi |
|
|
8336 | { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5 |
|
|
8337 | echo "${ECHO_T}$ac_cv_c_int32_t" >&6; } |
|
|
8338 | case $ac_cv_c_int32_t in #( |
|
|
8339 | no|yes) ;; #( |
|
|
8340 | *) |
7876 | |
8341 | |
7877 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8342 | cat >>confdefs.h <<_ACEOF |
7878 | # Binary search between lo and hi bounds. |
8343 | #define int32_t $ac_cv_c_int32_t |
7879 | while test "x$ac_lo" != "x$ac_hi"; do |
8344 | _ACEOF |
7880 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
8345 | ;; |
|
|
8346 | esac |
|
|
8347 | |
|
|
8348 | |
|
|
8349 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
|
|
8350 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
|
|
8351 | if test "${ac_cv_c_uint32_t+set}" = set; then |
|
|
8352 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8353 | else |
|
|
8354 | ac_cv_c_uint32_t=no |
|
|
8355 | for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ |
|
|
8356 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
7881 | cat >conftest.$ac_ext <<_ACEOF |
8357 | cat >conftest.$ac_ext <<_ACEOF |
7882 | /* confdefs.h. */ |
8358 | /* confdefs.h. */ |
7883 | _ACEOF |
8359 | _ACEOF |
7884 | cat confdefs.h >>conftest.$ac_ext |
8360 | cat confdefs.h >>conftest.$ac_ext |
7885 | cat >>conftest.$ac_ext <<_ACEOF |
8361 | cat >>conftest.$ac_ext <<_ACEOF |
7886 | /* end confdefs.h. */ |
8362 | /* end confdefs.h. */ |
7887 | $ac_includes_default |
8363 | $ac_includes_default |
7888 | typedef short ac__type_sizeof_; |
|
|
7889 | int |
8364 | int |
7890 | main () |
8365 | main () |
7891 | { |
8366 | { |
7892 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
8367 | static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; |
7893 | test_array [0] = 0 |
8368 | test_array [0] = 0 |
7894 | |
8369 | |
7895 | ; |
8370 | ; |
7896 | return 0; |
8371 | return 0; |
7897 | } |
8372 | } |
… | |
… | |
7911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7912 | (exit $ac_status); } && { |
8387 | (exit $ac_status); } && { |
7913 | test -z "$ac_cxx_werror_flag" || |
8388 | test -z "$ac_cxx_werror_flag" || |
7914 | test ! -s conftest.err |
8389 | test ! -s conftest.err |
7915 | } && test -s conftest.$ac_objext; then |
8390 | } && test -s conftest.$ac_objext; then |
7916 | ac_hi=$ac_mid |
8391 | case $ac_type in |
|
|
8392 | uint32_t) ac_cv_c_uint32_t=yes ;; |
|
|
8393 | *) ac_cv_c_uint32_t=$ac_type ;; |
|
|
8394 | esac |
|
|
8395 | |
7917 | else |
8396 | else |
7918 | echo "$as_me: failed program was:" >&5 |
8397 | echo "$as_me: failed program was:" >&5 |
7919 | sed 's/^/| /' conftest.$ac_ext >&5 |
8398 | sed 's/^/| /' conftest.$ac_ext >&5 |
7920 | |
8399 | |
7921 | ac_lo=`expr '(' $ac_mid ')' + 1` |
8400 | |
7922 | fi |
8401 | fi |
7923 | |
8402 | |
7924 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8403 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7925 | done |
8404 | test "$ac_cv_c_uint32_t" != no && break |
7926 | case $ac_lo in |
8405 | 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 |
8406 | 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 |
8407 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 |
8020 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
8408 | echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; } |
|
|
8409 | case $ac_cv_c_uint32_t in #( |
|
|
8410 | no|yes) ;; #( |
|
|
8411 | *) |
8021 | |
8412 | |
|
|
8413 | cat >>confdefs.h <<\_ACEOF |
|
|
8414 | #define _UINT32_T 1 |
|
|
8415 | _ACEOF |
8022 | |
8416 | |
8023 | |
8417 | |
8024 | cat >>confdefs.h <<_ACEOF |
8418 | cat >>confdefs.h <<_ACEOF |
8025 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
8419 | #define uint32_t $ac_cv_c_uint32_t |
8026 | _ACEOF |
8420 | _ACEOF |
8027 | |
8421 | ;; |
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 |
8422 | 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 | |
|
|
8075 | ac_cv_type_int=no |
|
|
8076 | fi |
|
|
8077 | |
|
|
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 | |
|
|
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 | |
8423 | |
9639 | |
8424 | |
9640 | |
8425 | |
9641 | for ac_func in unsetenv |
8426 | for ac_func in unsetenv |
9642 | do |
8427 | do |
… | |
… | |
12400 | echo "${ECHO_T}no" >&6; } |
11185 | echo "${ECHO_T}no" >&6; } |
12401 | fi |
11186 | fi |
12402 | |
11187 | |
12403 | |
11188 | |
12404 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
11189 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
12405 | LIBS="$LIBS `$PKG_CONFIG xft --libs`" |
11190 | X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS" |
12406 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
11191 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
12407 | else |
11192 | else |
12408 | # Extract the first word of "xft-config", so it can be a program name with args. |
11193 | # Extract the first word of "xft-config", so it can be a program name with args. |
12409 | set dummy xft-config; ac_word=$2 |
11194 | set dummy xft-config; ac_word=$2 |
12410 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11195 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
… | |
… | |
12445 | echo "${ECHO_T}no" >&6; } |
11230 | echo "${ECHO_T}no" >&6; } |
12446 | fi |
11231 | fi |
12447 | |
11232 | |
12448 | |
11233 | |
12449 | if test $XFT_CONFIG != no; then |
11234 | if test $XFT_CONFIG != no; then |
12450 | LIBS="$LIBS `$XFT_CONFIG --libs`" |
11235 | X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" |
12451 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
11236 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
12452 | fi |
11237 | fi |
12453 | fi |
11238 | fi |
12454 | |
11239 | |
|
|
11240 | save_LIBS="$LIBS" |
|
|
11241 | LIBS="$LIBS $X_LIBS" |
12455 | |
11242 | |
12456 | for ac_header in X11/Xft/Xft.h |
11243 | for ac_header in X11/Xft/Xft.h |
12457 | do |
11244 | do |
12458 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11245 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12459 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11246 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
… | |
… | |
12592 | support_xft=no |
11379 | support_xft=no |
12593 | fi |
11380 | fi |
12594 | |
11381 | |
12595 | done |
11382 | done |
12596 | |
11383 | |
12597 | |
|
|
12598 | { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
11384 | { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
12599 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
11385 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
12600 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
11386 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
12601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12602 | else |
11388 | else |
12603 | ac_check_lib_save_LIBS=$LIBS |
11389 | ac_check_lib_save_LIBS=$LIBS |
… | |
… | |
12655 | LIBS=$ac_check_lib_save_LIBS |
11441 | LIBS=$ac_check_lib_save_LIBS |
12656 | fi |
11442 | fi |
12657 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
11443 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
12658 | echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } |
11444 | echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } |
12659 | if test $ac_cv_lib_Xft_XftDrawString32 = yes; then |
11445 | if test $ac_cv_lib_Xft_XftDrawString32 = yes; then |
12660 | cat >>confdefs.h <<_ACEOF |
11446 | : |
12661 | #define HAVE_LIBXFT 1 |
|
|
12662 | _ACEOF |
|
|
12663 | |
|
|
12664 | LIBS="-lXft $LIBS" |
|
|
12665 | |
|
|
12666 | else |
11447 | else |
12667 | support_xft=no |
11448 | support_xft=no |
12668 | fi |
11449 | fi |
12669 | |
11450 | |
|
|
11451 | LIBS="$save_LIBS" |
12670 | |
11452 | |
12671 | if test x$support_xft = xyes; then |
11453 | if test x$support_xft = xyes; then |
12672 | |
11454 | |
12673 | cat >>confdefs.h <<\_ACEOF |
11455 | cat >>confdefs.h <<\_ACEOF |
12674 | #define XFT 1 |
11456 | #define XFT 1 |
… | |
… | |
13061 | _ACEOF |
11843 | _ACEOF |
13062 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
11844 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
13063 | rm -f conftest.sed |
11845 | rm -f conftest.sed |
13064 | |
11846 | |
13065 | |
11847 | |
13066 | |
|
|
13067 | |
|
|
13068 | |
|
|
13069 | if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13070 | include_stdint_h="#include <stdint.h>" |
|
|
13071 | else |
|
|
13072 | include_stdint_h="/* #include <stdint.h> */" |
|
|
13073 | fi |
|
|
13074 | if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13075 | include_stdarg_h="#include <cstdarg>" |
|
|
13076 | else |
|
|
13077 | include_stdarg_h="/* #include <cstdarg> */" |
|
|
13078 | fi |
|
|
13079 | if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13080 | include_stdlib_h="#include <cstdlib>" |
|
|
13081 | else |
|
|
13082 | include_stdlib_h="/* #include <cstdlib> */" |
|
|
13083 | fi |
|
|
13084 | if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13085 | include_unistd_h="#include <unistd.h>" |
|
|
13086 | else |
|
|
13087 | include_unistd_h="/* #include <unistd.h> */" |
|
|
13088 | fi |
|
|
13089 | if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13090 | include_string_h="#include <cstring>" |
|
|
13091 | else |
|
|
13092 | include_string_h="/* #include <cstring> */" |
|
|
13093 | fi |
|
|
13094 | if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13095 | include_fcntl_h="#include <fcntl.h>" |
|
|
13096 | else |
|
|
13097 | include_fcntl_h="/* #include <fcntl.h> */" |
|
|
13098 | fi |
|
|
13099 | if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13100 | include_util_h="#include <util.h>" |
|
|
13101 | else |
|
|
13102 | include_util_h="/* #include <util.h> */" |
|
|
13103 | fi |
|
|
13104 | if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13105 | include_assert_h="#include <assert.h>" |
|
|
13106 | else |
|
|
13107 | include_assert_h="/* #include <assert.h> */" |
|
|
13108 | fi |
|
|
13109 | if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13110 | include_sys_ioctl_h="#include <sys/ioctl.h>" |
|
|
13111 | else |
|
|
13112 | include_sys_ioctl_h="/* #include <sys/ioctl.h> */" |
|
|
13113 | fi |
|
|
13114 | if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13115 | include_sys_select_h="#include <sys/select.h>" |
|
|
13116 | else |
|
|
13117 | include_sys_select_h="/* #include <sys/select.h> */" |
|
|
13118 | fi |
|
|
13119 | if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13120 | include_sys_strredir_h="#include <sys/strredir.h>" |
|
|
13121 | else |
|
|
13122 | include_sys_strredir_h="/* #include <sys/strredir.h> */" |
|
|
13123 | fi |
|
|
13124 | if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13125 | include_sys_time_h="#include <sys/time.h>" |
|
|
13126 | else |
|
|
13127 | include_sys_time_h="/* #include <sys/time.h> */" |
|
|
13128 | fi |
|
|
13129 | if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then |
|
|
13130 | include_time_h="#include <time.h>" |
|
|
13131 | else |
|
|
13132 | include_time_h="/* #include <time.h> */" |
|
|
13133 | fi |
|
|
13134 | |
|
|
13135 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" |
11848 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile" |
13136 | |
11849 | |
13137 | cat >confcache <<\_ACEOF |
11850 | cat >confcache <<\_ACEOF |
13138 | # This file is a shell script that caches the results of configure |
11851 | # This file is a shell script that caches the results of configure |
13139 | # tests run on this system so they can be shared between configure |
11852 | # tests run on this system so they can be shared between configure |
13140 | # scripts and configure runs, see configure's option --config-cache. |
11853 | # scripts and configure runs, see configure's option --config-cache. |
… | |
… | |
13689 | case $ac_config_target in |
12402 | case $ac_config_target in |
13690 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; |
12403 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; |
13691 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
12404 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
13692 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
12405 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
13693 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
12406 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
13694 | "src/rxvtlib.h") CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; |
|
|
13695 | |
12407 | |
13696 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
12408 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
13697 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
12409 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
13698 | { (exit 1); exit 1; }; };; |
12410 | { (exit 1); exit 1; }; };; |
13699 | esac |
12411 | esac |
… | |
… | |
13798 | host_cpu!$host_cpu$ac_delim |
12510 | host_cpu!$host_cpu$ac_delim |
13799 | host_vendor!$host_vendor$ac_delim |
12511 | host_vendor!$host_vendor$ac_delim |
13800 | host_os!$host_os$ac_delim |
12512 | host_os!$host_os$ac_delim |
13801 | VERSION!$VERSION$ac_delim |
12513 | VERSION!$VERSION$ac_delim |
13802 | DATE!$DATE$ac_delim |
12514 | DATE!$DATE$ac_delim |
13803 | LSMDATE!$LSMDATE$ac_delim |
|
|
13804 | LIBVERSION!$LIBVERSION$ac_delim |
|
|
13805 | CC!$CC$ac_delim |
12515 | CC!$CC$ac_delim |
13806 | CFLAGS!$CFLAGS$ac_delim |
12516 | CFLAGS!$CFLAGS$ac_delim |
13807 | LDFLAGS!$LDFLAGS$ac_delim |
12517 | LDFLAGS!$LDFLAGS$ac_delim |
13808 | CPPFLAGS!$CPPFLAGS$ac_delim |
12518 | CPPFLAGS!$CPPFLAGS$ac_delim |
13809 | ac_ct_CC!$ac_ct_CC$ac_delim |
12519 | ac_ct_CC!$ac_ct_CC$ac_delim |
… | |
… | |
13817 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
12527 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
13818 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
12528 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
13819 | GREP!$GREP$ac_delim |
12529 | GREP!$GREP$ac_delim |
13820 | EGREP!$EGREP$ac_delim |
12530 | EGREP!$EGREP$ac_delim |
13821 | LINKER!$LINKER$ac_delim |
12531 | LINKER!$LINKER$ac_delim |
13822 | INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim |
|
|
13823 | RXVTNAME!$RXVTNAME$ac_delim |
12532 | RXVTNAME!$RXVTNAME$ac_delim |
|
|
12533 | CXXCPP!$CXXCPP$ac_delim |
13824 | TIC!$TIC$ac_delim |
12534 | TIC!$TIC$ac_delim |
13825 | XMKMF!$XMKMF$ac_delim |
12535 | XMKMF!$XMKMF$ac_delim |
13826 | CXXCPP!$CXXCPP$ac_delim |
|
|
13827 | X_CFLAGS!$X_CFLAGS$ac_delim |
12536 | X_CFLAGS!$X_CFLAGS$ac_delim |
13828 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
12537 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
13829 | X_LIBS!$X_LIBS$ac_delim |
12538 | X_LIBS!$X_LIBS$ac_delim |
13830 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
12539 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
13831 | afterimage_config!$afterimage_config$ac_delim |
12540 | afterimage_config!$afterimage_config$ac_delim |
13832 | rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim |
|
|
13833 | rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim |
|
|
13834 | rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim |
|
|
13835 | rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim |
|
|
13836 | rxvt_intp_define!$rxvt_intp_define$ac_delim |
|
|
13837 | rxvt_u_intp_define!$rxvt_u_intp_define$ac_delim |
|
|
13838 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
12541 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
13839 | XFT_CONFIG!$XFT_CONFIG$ac_delim |
12542 | XFT_CONFIG!$XFT_CONFIG$ac_delim |
13840 | PERL!$PERL$ac_delim |
12543 | PERL!$PERL$ac_delim |
13841 | PERLLIB!$PERLLIB$ac_delim |
12544 | PERLLIB!$PERLLIB$ac_delim |
13842 | PERLFLAGS!$PERLFLAGS$ac_delim |
12545 | PERLFLAGS!$PERLFLAGS$ac_delim |
13843 | PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim |
12546 | PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim |
13844 | IF_PERL!$IF_PERL$ac_delim |
12547 | IF_PERL!$IF_PERL$ac_delim |
13845 | PERL_O!$PERL_O$ac_delim |
12548 | PERL_O!$PERL_O$ac_delim |
13846 | AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim |
12549 | AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim |
13847 | AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim |
12550 | AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim |
13848 | include_stdint_h!$include_stdint_h$ac_delim |
12551 | LIBOBJS!$LIBOBJS$ac_delim |
13849 | include_stdarg_h!$include_stdarg_h$ac_delim |
12552 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
13850 | include_stdlib_h!$include_stdlib_h$ac_delim |
|
|
13851 | include_unistd_h!$include_unistd_h$ac_delim |
|
|
13852 | include_string_h!$include_string_h$ac_delim |
|
|
13853 | _ACEOF |
12553 | _ACEOF |
13854 | |
12554 | |
13855 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
12555 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 85; then |
13856 | break |
12556 | break |
13857 | elif $ac_last_try; then |
12557 | elif $ac_last_try; then |
13858 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
12558 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
13859 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
12559 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
13860 | { (exit 1); exit 1; }; } |
12560 | { (exit 1); exit 1; }; } |
… | |
… | |
13869 | ac_eof=`expr $ac_eof + 1` |
12569 | ac_eof=`expr $ac_eof + 1` |
13870 | fi |
12570 | fi |
13871 | |
12571 | |
13872 | cat >>$CONFIG_STATUS <<_ACEOF |
12572 | cat >>$CONFIG_STATUS <<_ACEOF |
13873 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
12573 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
13874 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
|
|
13875 | _ACEOF |
|
|
13876 | sed ' |
|
|
13877 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
|
|
13878 | s/^/s,@/; s/!/@,|#_!!_#|/ |
|
|
13879 | :n |
|
|
13880 | t n |
|
|
13881 | s/'"$ac_delim"'$/,g/; t |
|
|
13882 | s/$/\\/; p |
|
|
13883 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
|
|
13884 | ' >>$CONFIG_STATUS <conf$$subs.sed |
|
|
13885 | rm -f conf$$subs.sed |
|
|
13886 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
13887 | CEOF$ac_eof |
|
|
13888 | _ACEOF |
|
|
13889 | |
|
|
13890 | |
|
|
13891 | ac_delim='%!_!# ' |
|
|
13892 | for ac_last_try in false false false false false :; do |
|
|
13893 | cat >conf$$subs.sed <<_ACEOF |
|
|
13894 | include_fcntl_h!$include_fcntl_h$ac_delim |
|
|
13895 | include_util_h!$include_util_h$ac_delim |
|
|
13896 | include_assert_h!$include_assert_h$ac_delim |
|
|
13897 | include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim |
|
|
13898 | include_sys_select_h!$include_sys_select_h$ac_delim |
|
|
13899 | include_sys_strredir_h!$include_sys_strredir_h$ac_delim |
|
|
13900 | include_sys_time_h!$include_sys_time_h$ac_delim |
|
|
13901 | include_time_h!$include_time_h$ac_delim |
|
|
13902 | LIBOBJS!$LIBOBJS$ac_delim |
|
|
13903 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
|
|
13904 | _ACEOF |
|
|
13905 | |
|
|
13906 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then |
|
|
13907 | break |
|
|
13908 | elif $ac_last_try; then |
|
|
13909 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
|
|
13910 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
|
|
13911 | { (exit 1); exit 1; }; } |
|
|
13912 | else |
|
|
13913 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|
|
13914 | fi |
|
|
13915 | done |
|
|
13916 | |
|
|
13917 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
|
|
13918 | if test -n "$ac_eof"; then |
|
|
13919 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
|
|
13920 | ac_eof=`expr $ac_eof + 1` |
|
|
13921 | fi |
|
|
13922 | |
|
|
13923 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
13924 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
|
|
13925 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
12574 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
13926 | _ACEOF |
12575 | _ACEOF |
13927 | sed ' |
12576 | sed ' |
13928 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
12577 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
13929 | s/^/s,@/; s/!/@,|#_!!_#|/ |
12578 | s/^/s,@/; s/!/@,|#_!!_#|/ |
… | |
… | |
14182 | s&@builddir@&$ac_builddir&;t t |
12831 | s&@builddir@&$ac_builddir&;t t |
14183 | s&@abs_builddir@&$ac_abs_builddir&;t t |
12832 | s&@abs_builddir@&$ac_abs_builddir&;t t |
14184 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
12833 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
14185 | s&@INSTALL@&$ac_INSTALL&;t t |
12834 | s&@INSTALL@&$ac_INSTALL&;t t |
14186 | $ac_datarootdir_hack |
12835 | $ac_datarootdir_hack |
14187 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
12836 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out |
14188 | |
12837 | |
14189 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
12838 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
14190 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
12839 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
14191 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
12840 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
14192 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
12841 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |