… | |
… | |
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 |
684 | CXXCPP |
681 | CXXCPP |
685 | TIC |
682 | TIC |
686 | XMKMF |
683 | XMKMF |
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 |
… | |
… | |
1315 | |
1293 | |
1316 | Optional Features: |
1294 | Optional Features: |
1317 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1295 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1318 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1296 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1319 | --enable-everything enable standard non-multichoice features |
1297 | --enable-everything enable standard non-multichoice features |
1320 | NOTE: this option is order dependent |
1298 | NOTE: this option is order dependent |
1321 | NOTE: automatically enabled with --enable-shared |
|
|
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 |
1327 | --enable-afterimage enable integration with libAfterImage for background images |
1304 | --enable-afterimage enable integration with libAfterImage for background images |
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 |
1333 | --enable-perl enable embedded perl interpreter |
1310 | --enable-perl enable embedded perl interpreter |
1334 | --enable-plain-scroll enable plain style scrollbar |
|
|
1335 | --enable-xim XIM (X Input Method) protocol support |
1311 | --enable-xim XIM (X Input Method) protocol support |
1336 | --disable-backspace-key disable handling of the backspace key |
1312 | --disable-backspace-key disable handling of the backspace key |
1337 | --disable-delete-key disable handling of the delete key |
1313 | --disable-delete-key disable handling of the delete key |
1338 | --disable-resources disable all resource checking |
1314 | --disable-resources disable all resource checking |
1339 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
1315 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
… | |
… | |
1920 | |
1896 | |
1921 | |
1897 | |
1922 | |
1898 | |
1923 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1899 | 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` |
1900 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
|
|
1901 | |
1925 | echo "" |
1902 | echo "" |
1926 | echo "configuring for rxvt $VERSION" |
1903 | echo "configuring for rxvt $VERSION" |
1927 | echo "" |
1904 | echo "" |
1928 | |
1905 | |
1929 | orig_CXXFLAGS="$CXXFLAGS" |
1906 | orig_CXXFLAGS="$CXXFLAGS" |
1930 | |
|
|
1931 | |
1907 | |
1932 | ac_ext=c |
1908 | ac_ext=c |
1933 | ac_cpp='$CPP $CPPFLAGS' |
1909 | ac_cpp='$CPP $CPPFLAGS' |
1934 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1910 | 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' |
1911 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
… | |
… | |
3714 | echo "${ECHO_T}no" >&6; } |
3690 | echo "${ECHO_T}no" >&6; } |
3715 | fi |
3691 | fi |
3716 | rm -f conftest* |
3692 | rm -f conftest* |
3717 | |
3693 | |
3718 | |
3694 | |
|
|
3695 | |
|
|
3696 | cat >>confdefs.h <<\_ACEOF |
|
|
3697 | #define _GNU_SOURCE 1 |
|
|
3698 | _ACEOF |
|
|
3699 | |
|
|
3700 | |
3719 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
3701 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
3720 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } |
3702 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } |
3721 | if test "${ac_cv_search_strerror+set}" = set; then |
3703 | if test "${ac_cv_search_strerror+set}" = set; then |
3722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3704 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3723 | else |
3705 | else |
… | |
… | |
3870 | LINKER=$LINKER |
3852 | LINKER=$LINKER |
3871 | |
3853 | |
3872 | |
3854 | |
3873 | if test -z "$orig_CXXFLAGS"; then |
3855 | if test -z "$orig_CXXFLAGS"; then |
3874 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
3856 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
3875 | CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" |
3857 | CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs" |
3876 | cat >conftest.$ac_ext <<_ACEOF |
3858 | cat >conftest.$ac_ext <<_ACEOF |
3877 | /* confdefs.h. */ |
3859 | /* confdefs.h. */ |
3878 | _ACEOF |
3860 | _ACEOF |
3879 | cat confdefs.h >>conftest.$ac_ext |
3861 | cat confdefs.h >>conftest.$ac_ext |
3880 | cat >>conftest.$ac_ext <<_ACEOF |
3862 | cat >>conftest.$ac_ext <<_ACEOF |
… | |
… | |
3918 | CXXFLAGS="-O" |
3900 | CXXFLAGS="-O" |
3919 | fi |
3901 | fi |
3920 | CFLAGS="$CXXFLAGS" |
3902 | CFLAGS="$CXXFLAGS" |
3921 | fi |
3903 | fi |
3922 | |
3904 | |
3923 | |
|
|
3924 | cat >>confdefs.h <<\_ACEOF |
|
|
3925 | #define _GNU_SOURCE 1 |
|
|
3926 | _ACEOF |
|
|
3927 | |
|
|
3928 | |
|
|
3929 | case $host in |
3905 | case $host in |
3930 | *-*-solaris* ) |
3906 | *-*-solaris* ) |
3931 | |
3907 | |
3932 | cat >>confdefs.h <<\_ACEOF |
3908 | cat >>confdefs.h <<\_ACEOF |
3933 | #define _XOPEN_SOURCE 500 |
3909 | #define _XOPEN_SOURCE 500 |
3934 | _ACEOF |
3910 | _ACEOF |
3935 | |
3911 | |
3936 | ;; |
3912 | ;; |
3937 | esac |
3913 | esac |
3938 | |
|
|
3939 | |
3914 | |
3940 | { echo "$as_me:$LINENO: checking for setlocale" >&5 |
3915 | { echo "$as_me:$LINENO: checking for setlocale" >&5 |
3941 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } |
3916 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } |
3942 | if test "${ac_cv_func_setlocale+set}" = set; then |
3917 | if test "${ac_cv_func_setlocale+set}" = set; then |
3943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
4390 | fi |
4365 | fi |
4391 | |
4366 | |
4392 | fi |
4367 | fi |
4393 | |
4368 | |
4394 | |
4369 | |
4395 | |
|
|
4396 | support_frills=yes |
4370 | support_frills=yes |
4397 | support_inheritpixmap=yes |
4371 | support_inheritpixmap=yes |
4398 | support_fading=yes |
4372 | support_fading=yes |
4399 | support_keepscrolling=yes |
4373 | support_keepscrolling=yes |
4400 | support_selectionscrolling=yes |
4374 | support_selectionscrolling=yes |
… | |
… | |
4403 | support_text_blink=yes |
4377 | support_text_blink=yes |
4404 | support_pointer_blank=yes |
4378 | support_pointer_blank=yes |
4405 | support_scroll_rxvt=yes |
4379 | support_scroll_rxvt=yes |
4406 | support_scroll_next=yes |
4380 | support_scroll_next=yes |
4407 | support_scroll_xterm=yes |
4381 | support_scroll_xterm=yes |
4408 | support_scroll_plain=yes |
|
|
4409 | support_xim=yes |
4382 | support_xim=yes |
4410 | support_afterimage=yes |
4383 | support_afterimage=yes |
4411 | support_afterstep=yes |
4384 | support_afterstep=yes |
4412 | support_xft=yes |
4385 | support_xft=yes |
4413 | support_unicode3=no |
4386 | support_unicode3=no |
… | |
… | |
4415 | support_8bitctrls=no |
4388 | support_8bitctrls=no |
4416 | support_iso14755=yes |
4389 | support_iso14755=yes |
4417 | support_styles=yes |
4390 | support_styles=yes |
4418 | support_perl=yes |
4391 | support_perl=yes |
4419 | codesets=all |
4392 | codesets=all |
4420 | |
|
|
4421 | |
|
|
4422 | if test "x$enable_shared" = xyes; then |
|
|
4423 | |
|
|
4424 | cat >>confdefs.h <<\_ACEOF |
|
|
4425 | #define LIBRXVT 1 |
|
|
4426 | _ACEOF |
|
|
4427 | |
|
|
4428 | INSTALL_LIBRXVT=yes |
|
|
4429 | fi |
|
|
4430 | |
4393 | |
4431 | |
4394 | |
4432 | # Check whether --enable-everything was given. |
4395 | # Check whether --enable-everything was given. |
4433 | if test "${enable_everything+set}" = set; then |
4396 | if test "${enable_everything+set}" = set; then |
4434 | enableval=$enable_everything; |
4397 | enableval=$enable_everything; |
… | |
… | |
4444 | support_text_blink=no |
4407 | support_text_blink=no |
4445 | support_pointer_blank=no |
4408 | support_pointer_blank=no |
4446 | support_scroll_rxvt=no |
4409 | support_scroll_rxvt=no |
4447 | support_scroll_next=no |
4410 | support_scroll_next=no |
4448 | support_scroll_xterm=no |
4411 | support_scroll_xterm=no |
4449 | support_scroll_plain=no |
|
|
4450 | support_utmp=no |
4412 | support_utmp=no |
4451 | support_wtmp=no |
4413 | support_wtmp=no |
4452 | support_xim=no |
4414 | support_xim=no |
4453 | support_afterimage=no |
4415 | support_afterimage=no |
4454 | support_afterstep=no |
4416 | support_afterstep=no |
… | |
… | |
4473 | support_text_blink=yes |
4435 | support_text_blink=yes |
4474 | support_pointer_blank=yes |
4436 | support_pointer_blank=yes |
4475 | support_scroll_rxvt=yes |
4437 | support_scroll_rxvt=yes |
4476 | support_scroll_next=yes |
4438 | support_scroll_next=yes |
4477 | support_scroll_xterm=yes |
4439 | support_scroll_xterm=yes |
4478 | support_scroll_plain=yes |
|
|
4479 | support_utmp=yes |
4440 | support_utmp=yes |
4480 | support_wtmp=yes |
4441 | support_wtmp=yes |
4481 | support_xim=yes |
4442 | support_xim=yes |
4482 | support_afterimage=yes |
4443 | support_afterimage=yes |
4483 | support_afterstep=yes |
4444 | support_afterstep=yes |
… | |
… | |
4648 | support_perl=$enableval |
4609 | support_perl=$enableval |
4649 | fi |
4610 | fi |
4650 | fi |
4611 | fi |
4651 | |
4612 | |
4652 | |
4613 | |
4653 | # Check whether --enable-plain-scroll was given. |
|
|
4654 | if test "${enable_plain_scroll+set}" = set; then |
|
|
4655 | enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4656 | support_scroll_plain=$enableval |
|
|
4657 | fi |
|
|
4658 | fi |
|
|
4659 | |
|
|
4660 | |
|
|
4661 | |
4614 | |
4662 | # Check whether --with-codesets was given. |
4615 | # Check whether --with-codesets was given. |
4663 | if test "${with_codesets+set}" = set; then |
4616 | if test "${with_codesets+set}" = set; then |
4664 | withval=$with_codesets; codesets="$withval" |
4617 | withval=$with_codesets; codesets="$withval" |
4665 | fi |
4618 | fi |
… | |
… | |
4891 | fi |
4844 | fi |
4892 | fi |
4845 | fi |
4893 | |
4846 | |
4894 | |
4847 | |
4895 | |
4848 | |
|
|
4849 | LIBEV_M4_AVOID_LIBRT=1 |
4896 | |
4850 | |
4897 | ac_ext=cpp |
4851 | ac_ext=cpp |
4898 | ac_cpp='$CXXCPP $CPPFLAGS' |
4852 | ac_cpp='$CXXCPP $CPPFLAGS' |
4899 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4853 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4900 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4854 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
… | |
… | |
5365 | |
5319 | |
5366 | |
5320 | |
5367 | |
5321 | |
5368 | |
5322 | |
5369 | |
5323 | |
5370 | for ac_header in sys/epoll.h sys/event.h sys/queue.h |
5324 | |
|
|
5325 | |
|
|
5326 | |
|
|
5327 | |
|
|
5328 | |
|
|
5329 | for ac_header in sys/inotify.h sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h sys/eventfd.h |
5371 | do |
5330 | do |
5372 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5331 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5373 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5332 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5374 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5333 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5375 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5334 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
… | |
… | |
5507 | done |
5466 | done |
5508 | |
5467 | |
5509 | |
5468 | |
5510 | |
5469 | |
5511 | |
5470 | |
5512 | for ac_func in epoll_ctl kqueue |
5471 | |
|
|
5472 | |
|
|
5473 | |
|
|
5474 | |
|
|
5475 | |
|
|
5476 | for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd |
5513 | do |
5477 | do |
5514 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5478 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5515 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
5479 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
5516 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
5480 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
5517 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
5481 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
… | |
… | |
5686 | echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; } |
5650 | echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; } |
5687 | if test $ac_cv_func_clock_gettime = yes; then |
5651 | if test $ac_cv_func_clock_gettime = yes; then |
5688 | : |
5652 | : |
5689 | else |
5653 | else |
5690 | |
5654 | |
|
|
5655 | if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
5691 | |
5656 | |
5692 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
5657 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
5693 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } |
5658 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } |
5694 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
5659 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
5695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
5757 | |
5722 | |
5758 | LIBS="-lrt $LIBS" |
5723 | LIBS="-lrt $LIBS" |
5759 | |
5724 | |
5760 | fi |
5725 | fi |
5761 | |
5726 | |
|
|
5727 | unset ac_cv_func_clock_gettime |
5762 | |
5728 | |
5763 | for ac_func in clock_gettime |
5729 | for ac_func in clock_gettime |
5764 | do |
5730 | do |
5765 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5731 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5766 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
5732 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
… | |
… | |
5851 | _ACEOF |
5817 | _ACEOF |
5852 | |
5818 | |
5853 | fi |
5819 | fi |
5854 | done |
5820 | done |
5855 | |
5821 | |
|
|
5822 | fi |
|
|
5823 | |
|
|
5824 | fi |
|
|
5825 | |
|
|
5826 | |
|
|
5827 | { echo "$as_me:$LINENO: checking for nanosleep" >&5 |
|
|
5828 | echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; } |
|
|
5829 | if test "${ac_cv_func_nanosleep+set}" = set; then |
|
|
5830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5831 | else |
|
|
5832 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5833 | /* confdefs.h. */ |
|
|
5834 | _ACEOF |
|
|
5835 | cat confdefs.h >>conftest.$ac_ext |
|
|
5836 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5837 | /* end confdefs.h. */ |
|
|
5838 | /* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep. |
|
|
5839 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5840 | #define nanosleep innocuous_nanosleep |
|
|
5841 | |
|
|
5842 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5843 | which can conflict with char nanosleep (); below. |
|
|
5844 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5845 | <limits.h> exists even on freestanding compilers. */ |
|
|
5846 | |
|
|
5847 | #ifdef __STDC__ |
|
|
5848 | # include <limits.h> |
|
|
5849 | #else |
|
|
5850 | # include <assert.h> |
|
|
5851 | #endif |
|
|
5852 | |
|
|
5853 | #undef nanosleep |
|
|
5854 | |
|
|
5855 | /* Override any GCC internal prototype to avoid an error. |
|
|
5856 | Use char because int might match the return type of a GCC |
|
|
5857 | builtin and then its argument prototype would still apply. */ |
|
|
5858 | #ifdef __cplusplus |
|
|
5859 | extern "C" |
|
|
5860 | #endif |
|
|
5861 | char nanosleep (); |
|
|
5862 | /* The GNU C library defines this for functions which it implements |
|
|
5863 | to always fail with ENOSYS. Some functions are actually named |
|
|
5864 | something starting with __ and the normal name is an alias. */ |
|
|
5865 | #if defined __stub_nanosleep || defined __stub___nanosleep |
|
|
5866 | choke me |
|
|
5867 | #endif |
|
|
5868 | |
|
|
5869 | int |
|
|
5870 | main () |
|
|
5871 | { |
|
|
5872 | return nanosleep (); |
|
|
5873 | ; |
|
|
5874 | return 0; |
|
|
5875 | } |
|
|
5876 | _ACEOF |
|
|
5877 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5878 | if { (ac_try="$ac_link" |
|
|
5879 | case "(($ac_try" in |
|
|
5880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5881 | *) ac_try_echo=$ac_try;; |
|
|
5882 | esac |
|
|
5883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5884 | (eval "$ac_link") 2>conftest.er1 |
|
|
5885 | ac_status=$? |
|
|
5886 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5887 | rm -f conftest.er1 |
|
|
5888 | cat conftest.err >&5 |
|
|
5889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5890 | (exit $ac_status); } && { |
|
|
5891 | test -z "$ac_cxx_werror_flag" || |
|
|
5892 | test ! -s conftest.err |
|
|
5893 | } && test -s conftest$ac_exeext && |
|
|
5894 | $as_test_x conftest$ac_exeext; then |
|
|
5895 | ac_cv_func_nanosleep=yes |
|
|
5896 | else |
|
|
5897 | echo "$as_me: failed program was:" >&5 |
|
|
5898 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5899 | |
|
|
5900 | ac_cv_func_nanosleep=no |
|
|
5901 | fi |
|
|
5902 | |
|
|
5903 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5904 | conftest$ac_exeext conftest.$ac_ext |
|
|
5905 | fi |
|
|
5906 | { echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5 |
|
|
5907 | echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; } |
|
|
5908 | if test $ac_cv_func_nanosleep = yes; then |
|
|
5909 | : |
|
|
5910 | else |
|
|
5911 | |
|
|
5912 | if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
|
|
5913 | |
|
|
5914 | { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5 |
|
|
5915 | echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; } |
|
|
5916 | if test "${ac_cv_lib_rt_nanosleep+set}" = set; then |
|
|
5917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5918 | else |
|
|
5919 | ac_check_lib_save_LIBS=$LIBS |
|
|
5920 | LIBS="-lrt $LIBS" |
|
|
5921 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5922 | /* confdefs.h. */ |
|
|
5923 | _ACEOF |
|
|
5924 | cat confdefs.h >>conftest.$ac_ext |
|
|
5925 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5926 | /* end confdefs.h. */ |
|
|
5927 | |
|
|
5928 | /* Override any GCC internal prototype to avoid an error. |
|
|
5929 | Use char because int might match the return type of a GCC |
|
|
5930 | builtin and then its argument prototype would still apply. */ |
|
|
5931 | #ifdef __cplusplus |
|
|
5932 | extern "C" |
|
|
5933 | #endif |
|
|
5934 | char nanosleep (); |
|
|
5935 | int |
|
|
5936 | main () |
|
|
5937 | { |
|
|
5938 | return nanosleep (); |
|
|
5939 | ; |
|
|
5940 | return 0; |
|
|
5941 | } |
|
|
5942 | _ACEOF |
|
|
5943 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5944 | if { (ac_try="$ac_link" |
|
|
5945 | case "(($ac_try" in |
|
|
5946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5947 | *) ac_try_echo=$ac_try;; |
|
|
5948 | esac |
|
|
5949 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5950 | (eval "$ac_link") 2>conftest.er1 |
|
|
5951 | ac_status=$? |
|
|
5952 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5953 | rm -f conftest.er1 |
|
|
5954 | cat conftest.err >&5 |
|
|
5955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5956 | (exit $ac_status); } && { |
|
|
5957 | test -z "$ac_cxx_werror_flag" || |
|
|
5958 | test ! -s conftest.err |
|
|
5959 | } && test -s conftest$ac_exeext && |
|
|
5960 | $as_test_x conftest$ac_exeext; then |
|
|
5961 | ac_cv_lib_rt_nanosleep=yes |
|
|
5962 | else |
|
|
5963 | echo "$as_me: failed program was:" >&5 |
|
|
5964 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5965 | |
|
|
5966 | ac_cv_lib_rt_nanosleep=no |
|
|
5967 | fi |
|
|
5968 | |
|
|
5969 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5970 | conftest$ac_exeext conftest.$ac_ext |
|
|
5971 | LIBS=$ac_check_lib_save_LIBS |
|
|
5972 | fi |
|
|
5973 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5 |
|
|
5974 | echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; } |
|
|
5975 | if test $ac_cv_lib_rt_nanosleep = yes; then |
|
|
5976 | cat >>confdefs.h <<_ACEOF |
|
|
5977 | #define HAVE_LIBRT 1 |
|
|
5978 | _ACEOF |
|
|
5979 | |
|
|
5980 | LIBS="-lrt $LIBS" |
|
|
5981 | |
|
|
5982 | fi |
|
|
5983 | |
|
|
5984 | unset ac_cv_func_nanosleep |
|
|
5985 | |
|
|
5986 | for ac_func in nanosleep |
|
|
5987 | do |
|
|
5988 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
5989 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
5990 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
5991 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5992 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5993 | else |
|
|
5994 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5995 | /* confdefs.h. */ |
|
|
5996 | _ACEOF |
|
|
5997 | cat confdefs.h >>conftest.$ac_ext |
|
|
5998 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5999 | /* end confdefs.h. */ |
|
|
6000 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
6001 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
6002 | #define $ac_func innocuous_$ac_func |
|
|
6003 | |
|
|
6004 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
6005 | which can conflict with char $ac_func (); below. |
|
|
6006 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
6007 | <limits.h> exists even on freestanding compilers. */ |
|
|
6008 | |
|
|
6009 | #ifdef __STDC__ |
|
|
6010 | # include <limits.h> |
|
|
6011 | #else |
|
|
6012 | # include <assert.h> |
|
|
6013 | #endif |
|
|
6014 | |
|
|
6015 | #undef $ac_func |
|
|
6016 | |
|
|
6017 | /* Override any GCC internal prototype to avoid an error. |
|
|
6018 | Use char because int might match the return type of a GCC |
|
|
6019 | builtin and then its argument prototype would still apply. */ |
|
|
6020 | #ifdef __cplusplus |
|
|
6021 | extern "C" |
|
|
6022 | #endif |
|
|
6023 | char $ac_func (); |
|
|
6024 | /* The GNU C library defines this for functions which it implements |
|
|
6025 | to always fail with ENOSYS. Some functions are actually named |
|
|
6026 | something starting with __ and the normal name is an alias. */ |
|
|
6027 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
6028 | choke me |
|
|
6029 | #endif |
|
|
6030 | |
|
|
6031 | int |
|
|
6032 | main () |
|
|
6033 | { |
|
|
6034 | return $ac_func (); |
|
|
6035 | ; |
|
|
6036 | return 0; |
|
|
6037 | } |
|
|
6038 | _ACEOF |
|
|
6039 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6040 | if { (ac_try="$ac_link" |
|
|
6041 | case "(($ac_try" in |
|
|
6042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6043 | *) ac_try_echo=$ac_try;; |
|
|
6044 | esac |
|
|
6045 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6046 | (eval "$ac_link") 2>conftest.er1 |
|
|
6047 | ac_status=$? |
|
|
6048 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6049 | rm -f conftest.er1 |
|
|
6050 | cat conftest.err >&5 |
|
|
6051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6052 | (exit $ac_status); } && { |
|
|
6053 | test -z "$ac_cxx_werror_flag" || |
|
|
6054 | test ! -s conftest.err |
|
|
6055 | } && test -s conftest$ac_exeext && |
|
|
6056 | $as_test_x conftest$ac_exeext; then |
|
|
6057 | eval "$as_ac_var=yes" |
|
|
6058 | else |
|
|
6059 | echo "$as_me: failed program was:" >&5 |
|
|
6060 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6061 | |
|
|
6062 | eval "$as_ac_var=no" |
|
|
6063 | fi |
|
|
6064 | |
|
|
6065 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6066 | conftest$ac_exeext conftest.$ac_ext |
|
|
6067 | fi |
|
|
6068 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
6069 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
6070 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
6071 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
6072 | cat >>confdefs.h <<_ACEOF |
|
|
6073 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
6074 | _ACEOF |
|
|
6075 | |
|
|
6076 | fi |
|
|
6077 | done |
|
|
6078 | |
|
|
6079 | fi |
5856 | |
6080 | |
5857 | fi |
6081 | fi |
5858 | |
6082 | |
5859 | |
6083 | |
5860 | |
6084 | |
… | |
… | |
5971 | echo "${ECHO_T}$TIC" >&6; } |
6195 | echo "${ECHO_T}$TIC" >&6; } |
5972 | else |
6196 | else |
5973 | { echo "$as_me:$LINENO: result: no" >&5 |
6197 | { echo "$as_me:$LINENO: result: no" >&5 |
5974 | echo "${ECHO_T}no" >&6; } |
6198 | echo "${ECHO_T}no" >&6; } |
5975 | fi |
6199 | fi |
5976 | |
|
|
5977 | |
|
|
5978 | |
6200 | |
5979 | |
6201 | |
5980 | |
6202 | |
5981 | { echo "$as_me:$LINENO: checking for X" >&5 |
6203 | { echo "$as_me:$LINENO: checking for X" >&5 |
5982 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
6204 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
… | |
… | |
7369 | echo "${ECHO_T}no" >&6; } |
7591 | echo "${ECHO_T}no" >&6; } |
7370 | fi |
7592 | fi |
7371 | fi |
7593 | fi |
7372 | fi |
7594 | fi |
7373 | |
7595 | |
7374 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
|
|
7375 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
|
|
7376 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
|
|
7377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7378 | else |
|
|
7379 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7380 | /* confdefs.h. */ |
|
|
7381 | _ACEOF |
|
|
7382 | cat confdefs.h >>conftest.$ac_ext |
|
|
7383 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7384 | /* end confdefs.h. */ |
|
|
7385 | #include <sys/types.h> |
|
|
7386 | #include <sys/wait.h> |
|
|
7387 | #ifndef WEXITSTATUS |
|
|
7388 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
|
|
7389 | #endif |
|
|
7390 | #ifndef WIFEXITED |
|
|
7391 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
|
|
7392 | #endif |
|
|
7393 | |
|
|
7394 | int |
|
|
7395 | main () |
|
|
7396 | { |
|
|
7397 | int s; |
|
|
7398 | wait (&s); |
|
|
7399 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
|
|
7400 | ; |
|
|
7401 | return 0; |
|
|
7402 | } |
|
|
7403 | _ACEOF |
|
|
7404 | rm -f conftest.$ac_objext |
|
|
7405 | if { (ac_try="$ac_compile" |
|
|
7406 | case "(($ac_try" in |
|
|
7407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7408 | *) ac_try_echo=$ac_try;; |
|
|
7409 | esac |
|
|
7410 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7411 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7412 | ac_status=$? |
|
|
7413 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7414 | rm -f conftest.er1 |
|
|
7415 | cat conftest.err >&5 |
|
|
7416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7417 | (exit $ac_status); } && { |
|
|
7418 | test -z "$ac_cxx_werror_flag" || |
|
|
7419 | test ! -s conftest.err |
|
|
7420 | } && test -s conftest.$ac_objext; then |
|
|
7421 | ac_cv_header_sys_wait_h=yes |
|
|
7422 | else |
|
|
7423 | echo "$as_me: failed program was:" >&5 |
|
|
7424 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7425 | |
|
|
7426 | ac_cv_header_sys_wait_h=no |
|
|
7427 | fi |
|
|
7428 | |
|
|
7429 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7430 | fi |
|
|
7431 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
|
|
7432 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
|
|
7433 | if test $ac_cv_header_sys_wait_h = yes; then |
|
|
7434 | |
|
|
7435 | cat >>confdefs.h <<\_ACEOF |
|
|
7436 | #define HAVE_SYS_WAIT_H 1 |
|
|
7437 | _ACEOF |
|
|
7438 | |
|
|
7439 | fi |
|
|
7440 | |
|
|
7441 | |
|
|
7442 | |
|
|
7443 | |
|
|
7444 | |
|
|
7445 | |
|
|
7446 | |
|
|
7447 | |
|
|
7448 | |
|
|
7449 | |
|
|
7450 | |
|
|
7451 | |
7596 | |
7452 | |
7597 | |
7453 | |
7598 | |
7454 | |
7599 | |
7455 | |
7600 | |
7456 | |
7601 | |
7457 | |
7602 | |
7458 | for ac_header in \ |
7603 | for ac_header in \ |
7459 | assert.h \ |
|
|
7460 | fcntl.h \ |
|
|
7461 | stdarg.h \ |
|
|
7462 | stdlib.h \ |
|
|
7463 | string.h \ |
|
|
7464 | termios.h \ |
|
|
7465 | unistd.h \ |
|
|
7466 | sys/byteorder.h \ |
7604 | sys/byteorder.h \ |
7467 | sys/ioctl.h \ |
7605 | sys/ioctl.h \ |
7468 | sys/select.h \ |
|
|
7469 | sys/sockio.h \ |
7606 | sys/sockio.h \ |
7470 | sys/strredir.h \ |
7607 | sys/strredir.h \ |
7471 | sys/time.h \ |
|
|
7472 | stdint.h \ |
7608 | stdint.h \ |
7473 | wchar.h \ |
7609 | wchar.h \ |
7474 | cwchar \ |
7610 | cwchar \ |
7475 | clocale \ |
|
|
7476 | |
7611 | |
7477 | do |
7612 | do |
7478 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7613 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7479 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7614 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7480 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7615 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
… | |
… | |
7611 | fi |
7746 | fi |
7612 | |
7747 | |
7613 | done |
7748 | done |
7614 | |
7749 | |
7615 | |
7750 | |
7616 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
|
|
7617 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
|
|
7618 | if test "${ac_cv_header_time+set}" = set; then |
|
|
7619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7620 | else |
|
|
7621 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7622 | /* confdefs.h. */ |
|
|
7623 | _ACEOF |
|
|
7624 | cat confdefs.h >>conftest.$ac_ext |
|
|
7625 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7626 | /* end confdefs.h. */ |
|
|
7627 | #include <sys/types.h> |
|
|
7628 | #include <sys/time.h> |
|
|
7629 | #include <time.h> |
|
|
7630 | |
|
|
7631 | int |
|
|
7632 | main () |
|
|
7633 | { |
|
|
7634 | if ((struct tm *) 0) |
|
|
7635 | return 0; |
|
|
7636 | ; |
|
|
7637 | return 0; |
|
|
7638 | } |
|
|
7639 | _ACEOF |
|
|
7640 | rm -f conftest.$ac_objext |
|
|
7641 | if { (ac_try="$ac_compile" |
|
|
7642 | case "(($ac_try" in |
|
|
7643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7644 | *) ac_try_echo=$ac_try;; |
|
|
7645 | esac |
|
|
7646 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7647 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7648 | ac_status=$? |
|
|
7649 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7650 | rm -f conftest.er1 |
|
|
7651 | cat conftest.err >&5 |
|
|
7652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7653 | (exit $ac_status); } && { |
|
|
7654 | test -z "$ac_cxx_werror_flag" || |
|
|
7655 | test ! -s conftest.err |
|
|
7656 | } && test -s conftest.$ac_objext; then |
|
|
7657 | ac_cv_header_time=yes |
|
|
7658 | else |
|
|
7659 | echo "$as_me: failed program was:" >&5 |
|
|
7660 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7661 | |
|
|
7662 | ac_cv_header_time=no |
|
|
7663 | fi |
|
|
7664 | |
|
|
7665 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7666 | fi |
|
|
7667 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
|
|
7668 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
|
|
7669 | if test $ac_cv_header_time = yes; then |
|
|
7670 | |
|
|
7671 | cat >>confdefs.h <<\_ACEOF |
|
|
7672 | #define TIME_WITH_SYS_TIME 1 |
|
|
7673 | _ACEOF |
|
|
7674 | |
|
|
7675 | fi |
|
|
7676 | |
|
|
7677 | |
|
|
7678 | { echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5 |
|
|
7679 | echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; } |
|
|
7680 | if test "${rxvt_cv_header_sysioctl+set}" = set; then |
|
|
7681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7682 | else |
|
|
7683 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7684 | /* confdefs.h. */ |
|
|
7685 | _ACEOF |
|
|
7686 | cat confdefs.h >>conftest.$ac_ext |
|
|
7687 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7688 | /* end confdefs.h. */ |
|
|
7689 | #include <stdio.h> |
|
|
7690 | #include <sys/ioctl.h> |
|
|
7691 | #ifdef HAVE_TERMIOS_H |
|
|
7692 | #include <termios.h> |
|
|
7693 | #endif |
|
|
7694 | int |
|
|
7695 | main () |
|
|
7696 | { |
|
|
7697 | int a = ECHO; |
|
|
7698 | ; |
|
|
7699 | return 0; |
|
|
7700 | } |
|
|
7701 | _ACEOF |
|
|
7702 | rm -f conftest.$ac_objext |
|
|
7703 | if { (ac_try="$ac_compile" |
|
|
7704 | case "(($ac_try" in |
|
|
7705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7706 | *) ac_try_echo=$ac_try;; |
|
|
7707 | esac |
|
|
7708 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7709 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7710 | ac_status=$? |
|
|
7711 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7712 | rm -f conftest.er1 |
|
|
7713 | cat conftest.err >&5 |
|
|
7714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7715 | (exit $ac_status); } && { |
|
|
7716 | test -z "$ac_cxx_werror_flag" || |
|
|
7717 | test ! -s conftest.err |
|
|
7718 | } && test -s conftest.$ac_objext; then |
|
|
7719 | rxvt_cv_header_sysioctl=yes |
|
|
7720 | else |
|
|
7721 | echo "$as_me: failed program was:" >&5 |
|
|
7722 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7723 | |
|
|
7724 | rxvt_cv_header_sysioctl=no |
|
|
7725 | fi |
|
|
7726 | |
|
|
7727 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7728 | fi |
|
|
7729 | { echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5 |
|
|
7730 | echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6; } |
|
|
7731 | |
|
|
7732 | { echo "$as_me:$LINENO: checking for XPointer" >&5 |
7751 | { echo "$as_me:$LINENO: checking for XPointer" >&5 |
7733 | echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } |
7752 | echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } |
7734 | if test "${rxvt_cv_xpointer+set}" = set; then |
7753 | if test "${rxvt_cv_xpointer+set}" = set; then |
7735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7736 | else |
7755 | else |
… | |
… | |
7847 | cat >>confdefs.h <<\_ACEOF |
7866 | cat >>confdefs.h <<\_ACEOF |
7848 | #define XLIB_ILLEGAL_ACCESS 1 |
7867 | #define XLIB_ILLEGAL_ACCESS 1 |
7849 | _ACEOF |
7868 | _ACEOF |
7850 | |
7869 | |
7851 | fi |
7870 | fi |
7852 | |
|
|
7853 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
|
|
7854 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
|
|
7855 | if test "${ac_cv_c_const+set}" = set; then |
|
|
7856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7857 | else |
|
|
7858 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7859 | /* confdefs.h. */ |
|
|
7860 | _ACEOF |
|
|
7861 | cat confdefs.h >>conftest.$ac_ext |
|
|
7862 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7863 | /* end confdefs.h. */ |
|
|
7864 | |
|
|
7865 | int |
|
|
7866 | main () |
|
|
7867 | { |
|
|
7868 | /* FIXME: Include the comments suggested by Paul. */ |
|
|
7869 | #ifndef __cplusplus |
|
|
7870 | /* Ultrix mips cc rejects this. */ |
|
|
7871 | typedef int charset[2]; |
|
|
7872 | const charset cs; |
|
|
7873 | /* SunOS 4.1.1 cc rejects this. */ |
|
|
7874 | char const *const *pcpcc; |
|
|
7875 | char **ppc; |
|
|
7876 | /* NEC SVR4.0.2 mips cc rejects this. */ |
|
|
7877 | struct point {int x, y;}; |
|
|
7878 | static struct point const zero = {0,0}; |
|
|
7879 | /* AIX XL C 1.02.0.0 rejects this. |
|
|
7880 | It does not let you subtract one const X* pointer from another in |
|
|
7881 | an arm of an if-expression whose if-part is not a constant |
|
|
7882 | expression */ |
|
|
7883 | const char *g = "string"; |
|
|
7884 | pcpcc = &g + (g ? g-g : 0); |
|
|
7885 | /* HPUX 7.0 cc rejects these. */ |
|
|
7886 | ++pcpcc; |
|
|
7887 | ppc = (char**) pcpcc; |
|
|
7888 | pcpcc = (char const *const *) ppc; |
|
|
7889 | { /* SCO 3.2v4 cc rejects this. */ |
|
|
7890 | char *t; |
|
|
7891 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
|
|
7892 | |
|
|
7893 | *t++ = 0; |
|
|
7894 | if (s) return 0; |
|
|
7895 | } |
|
|
7896 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
|
|
7897 | int x[] = {25, 17}; |
|
|
7898 | const int *foo = &x[0]; |
|
|
7899 | ++foo; |
|
|
7900 | } |
|
|
7901 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
|
|
7902 | typedef const int *iptr; |
|
|
7903 | iptr p = 0; |
|
|
7904 | ++p; |
|
|
7905 | } |
|
|
7906 | { /* AIX XL C 1.02.0.0 rejects this saying |
|
|
7907 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
|
|
7908 | struct s { int j; const int *ap[3]; }; |
|
|
7909 | struct s *b; b->j = 5; |
|
|
7910 | } |
|
|
7911 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
|
|
7912 | const int foo = 10; |
|
|
7913 | if (!foo) return 0; |
|
|
7914 | } |
|
|
7915 | return !cs[0] && !zero.x; |
|
|
7916 | #endif |
|
|
7917 | |
|
|
7918 | ; |
|
|
7919 | return 0; |
|
|
7920 | } |
|
|
7921 | _ACEOF |
|
|
7922 | rm -f conftest.$ac_objext |
|
|
7923 | if { (ac_try="$ac_compile" |
|
|
7924 | case "(($ac_try" in |
|
|
7925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7926 | *) ac_try_echo=$ac_try;; |
|
|
7927 | esac |
|
|
7928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7929 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7930 | ac_status=$? |
|
|
7931 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7932 | rm -f conftest.er1 |
|
|
7933 | cat conftest.err >&5 |
|
|
7934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7935 | (exit $ac_status); } && { |
|
|
7936 | test -z "$ac_cxx_werror_flag" || |
|
|
7937 | test ! -s conftest.err |
|
|
7938 | } && test -s conftest.$ac_objext; then |
|
|
7939 | ac_cv_c_const=yes |
|
|
7940 | else |
|
|
7941 | echo "$as_me: failed program was:" >&5 |
|
|
7942 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7943 | |
|
|
7944 | ac_cv_c_const=no |
|
|
7945 | fi |
|
|
7946 | |
|
|
7947 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7948 | fi |
|
|
7949 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
|
|
7950 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
|
|
7951 | if test $ac_cv_c_const = no; then |
|
|
7952 | |
|
|
7953 | cat >>confdefs.h <<\_ACEOF |
|
|
7954 | #define const |
|
|
7955 | _ACEOF |
|
|
7956 | |
|
|
7957 | fi |
|
|
7958 | |
|
|
7959 | { echo "$as_me:$LINENO: checking for inline" >&5 |
|
|
7960 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
|
|
7961 | if test "${ac_cv_c_inline+set}" = set; then |
|
|
7962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7963 | else |
|
|
7964 | ac_cv_c_inline=no |
|
|
7965 | for ac_kw in inline __inline__ __inline; do |
|
|
7966 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7967 | /* confdefs.h. */ |
|
|
7968 | _ACEOF |
|
|
7969 | cat confdefs.h >>conftest.$ac_ext |
|
|
7970 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7971 | /* end confdefs.h. */ |
|
|
7972 | #ifndef __cplusplus |
|
|
7973 | typedef int foo_t; |
|
|
7974 | static $ac_kw foo_t static_foo () {return 0; } |
|
|
7975 | $ac_kw foo_t foo () {return 0; } |
|
|
7976 | #endif |
|
|
7977 | |
|
|
7978 | _ACEOF |
|
|
7979 | rm -f conftest.$ac_objext |
|
|
7980 | if { (ac_try="$ac_compile" |
|
|
7981 | case "(($ac_try" in |
|
|
7982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7983 | *) ac_try_echo=$ac_try;; |
|
|
7984 | esac |
|
|
7985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7986 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7987 | ac_status=$? |
|
|
7988 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7989 | rm -f conftest.er1 |
|
|
7990 | cat conftest.err >&5 |
|
|
7991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7992 | (exit $ac_status); } && { |
|
|
7993 | test -z "$ac_cxx_werror_flag" || |
|
|
7994 | test ! -s conftest.err |
|
|
7995 | } && test -s conftest.$ac_objext; then |
|
|
7996 | ac_cv_c_inline=$ac_kw |
|
|
7997 | else |
|
|
7998 | echo "$as_me: failed program was:" >&5 |
|
|
7999 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8000 | |
|
|
8001 | |
|
|
8002 | fi |
|
|
8003 | |
|
|
8004 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8005 | test "$ac_cv_c_inline" != no && break |
|
|
8006 | done |
|
|
8007 | |
|
|
8008 | fi |
|
|
8009 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
|
|
8010 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
|
|
8011 | |
|
|
8012 | |
|
|
8013 | case $ac_cv_c_inline in |
|
|
8014 | inline | yes) ;; |
|
|
8015 | *) |
|
|
8016 | case $ac_cv_c_inline in |
|
|
8017 | no) ac_val=;; |
|
|
8018 | *) ac_val=$ac_cv_c_inline;; |
|
|
8019 | esac |
|
|
8020 | cat >>confdefs.h <<_ACEOF |
|
|
8021 | #ifndef __cplusplus |
|
|
8022 | #define inline $ac_val |
|
|
8023 | #endif |
|
|
8024 | _ACEOF |
|
|
8025 | ;; |
|
|
8026 | esac |
|
|
8027 | |
|
|
8028 | |
|
|
8029 | |
7871 | |
8030 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
7872 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
8031 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
7873 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
8032 | if test "${ac_cv_type_mode_t+set}" = set; then |
7874 | if test "${ac_cv_type_mode_t+set}" = set; then |
8033 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
8190 | _ACEOF |
8032 | _ACEOF |
8191 | |
8033 | |
8192 | fi |
8034 | fi |
8193 | |
8035 | |
8194 | |
8036 | |
8195 | { echo "$as_me:$LINENO: checking for short" >&5 |
8037 | { echo "$as_me:$LINENO: checking for int16_t" >&5 |
8196 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
8038 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } |
8197 | if test "${ac_cv_type_short+set}" = set; then |
8039 | if test "${ac_cv_c_int16_t+set}" = set; then |
8198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8199 | else |
8041 | else |
|
|
8042 | ac_cv_c_int16_t=no |
|
|
8043 | for ac_type in 'int16_t' 'int' 'long int' \ |
|
|
8044 | 'long long int' 'short int' 'signed char'; do |
8200 | cat >conftest.$ac_ext <<_ACEOF |
8045 | cat >conftest.$ac_ext <<_ACEOF |
8201 | /* confdefs.h. */ |
8046 | /* confdefs.h. */ |
8202 | _ACEOF |
8047 | _ACEOF |
8203 | cat confdefs.h >>conftest.$ac_ext |
8048 | cat confdefs.h >>conftest.$ac_ext |
8204 | cat >>conftest.$ac_ext <<_ACEOF |
8049 | cat >>conftest.$ac_ext <<_ACEOF |
8205 | /* end confdefs.h. */ |
8050 | /* end confdefs.h. */ |
8206 | $ac_includes_default |
8051 | $ac_includes_default |
8207 | typedef short ac__type_new_; |
|
|
8208 | int |
8052 | int |
8209 | main () |
8053 | main () |
8210 | { |
8054 | { |
8211 | if ((ac__type_new_ *) 0) |
8055 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))]; |
8212 | return 0; |
8056 | test_array [0] = 0 |
8213 | if (sizeof (ac__type_new_)) |
8057 | |
8214 | return 0; |
|
|
8215 | ; |
8058 | ; |
8216 | return 0; |
8059 | return 0; |
8217 | } |
8060 | } |
8218 | _ACEOF |
8061 | _ACEOF |
8219 | rm -f conftest.$ac_objext |
8062 | rm -f conftest.$ac_objext |
… | |
… | |
8231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8232 | (exit $ac_status); } && { |
8075 | (exit $ac_status); } && { |
8233 | test -z "$ac_cxx_werror_flag" || |
8076 | test -z "$ac_cxx_werror_flag" || |
8234 | test ! -s conftest.err |
8077 | test ! -s conftest.err |
8235 | } && test -s conftest.$ac_objext; then |
8078 | } && test -s conftest.$ac_objext; then |
8236 | ac_cv_type_short=yes |
|
|
8237 | else |
|
|
8238 | echo "$as_me: failed program was:" >&5 |
|
|
8239 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8240 | |
|
|
8241 | ac_cv_type_short=no |
|
|
8242 | fi |
|
|
8243 | |
|
|
8244 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8245 | fi |
|
|
8246 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
|
|
8247 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
|
|
8248 | |
|
|
8249 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8250 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8251 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8252 | # This bug is HP SR number 8606223364. |
|
|
8253 | { echo "$as_me:$LINENO: checking size of short" >&5 |
|
|
8254 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
|
|
8255 | if test "${ac_cv_sizeof_short+set}" = set; then |
|
|
8256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8257 | else |
|
|
8258 | if test "$cross_compiling" = yes; then |
|
|
8259 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8260 | cat >conftest.$ac_ext <<_ACEOF |
8079 | cat >conftest.$ac_ext <<_ACEOF |
8261 | /* confdefs.h. */ |
8080 | /* confdefs.h. */ |
8262 | _ACEOF |
8081 | _ACEOF |
8263 | cat confdefs.h >>conftest.$ac_ext |
8082 | cat confdefs.h >>conftest.$ac_ext |
8264 | cat >>conftest.$ac_ext <<_ACEOF |
8083 | cat >>conftest.$ac_ext <<_ACEOF |
8265 | /* end confdefs.h. */ |
8084 | /* end confdefs.h. */ |
8266 | $ac_includes_default |
8085 | $ac_includes_default |
8267 | typedef short ac__type_sizeof_; |
|
|
8268 | int |
8086 | int |
8269 | main () |
8087 | main () |
8270 | { |
8088 | { |
8271 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
8089 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1) |
|
|
8090 | < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))]; |
8272 | test_array [0] = 0 |
8091 | test_array [0] = 0 |
8273 | |
8092 | |
8274 | ; |
8093 | ; |
8275 | return 0; |
8094 | return 0; |
8276 | } |
8095 | } |
… | |
… | |
8290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8291 | (exit $ac_status); } && { |
8110 | (exit $ac_status); } && { |
8292 | test -z "$ac_cxx_werror_flag" || |
8111 | test -z "$ac_cxx_werror_flag" || |
8293 | test ! -s conftest.err |
8112 | test ! -s conftest.err |
8294 | } && test -s conftest.$ac_objext; then |
8113 | } && test -s conftest.$ac_objext; then |
8295 | ac_lo=0 ac_mid=0 |
8114 | : |
8296 | while :; do |
8115 | else |
|
|
8116 | echo "$as_me: failed program was:" >&5 |
|
|
8117 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8118 | |
|
|
8119 | case $ac_type in |
|
|
8120 | int16_t) ac_cv_c_int16_t=yes ;; |
|
|
8121 | *) ac_cv_c_int16_t=$ac_type ;; |
|
|
8122 | esac |
|
|
8123 | |
|
|
8124 | fi |
|
|
8125 | |
|
|
8126 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8127 | else |
|
|
8128 | echo "$as_me: failed program was:" >&5 |
|
|
8129 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8130 | |
|
|
8131 | |
|
|
8132 | fi |
|
|
8133 | |
|
|
8134 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8135 | test "$ac_cv_c_int16_t" != no && break |
|
|
8136 | done |
|
|
8137 | fi |
|
|
8138 | { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5 |
|
|
8139 | echo "${ECHO_T}$ac_cv_c_int16_t" >&6; } |
|
|
8140 | case $ac_cv_c_int16_t in #( |
|
|
8141 | no|yes) ;; #( |
|
|
8142 | *) |
|
|
8143 | |
|
|
8144 | cat >>confdefs.h <<_ACEOF |
|
|
8145 | #define int16_t $ac_cv_c_int16_t |
|
|
8146 | _ACEOF |
|
|
8147 | ;; |
|
|
8148 | esac |
|
|
8149 | |
|
|
8150 | |
|
|
8151 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 |
|
|
8152 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } |
|
|
8153 | if test "${ac_cv_c_uint16_t+set}" = set; then |
|
|
8154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8155 | else |
|
|
8156 | ac_cv_c_uint16_t=no |
|
|
8157 | for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \ |
|
|
8158 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
8297 | cat >conftest.$ac_ext <<_ACEOF |
8159 | cat >conftest.$ac_ext <<_ACEOF |
8298 | /* confdefs.h. */ |
8160 | /* confdefs.h. */ |
8299 | _ACEOF |
8161 | _ACEOF |
8300 | cat confdefs.h >>conftest.$ac_ext |
8162 | cat confdefs.h >>conftest.$ac_ext |
8301 | cat >>conftest.$ac_ext <<_ACEOF |
8163 | cat >>conftest.$ac_ext <<_ACEOF |
8302 | /* end confdefs.h. */ |
8164 | /* end confdefs.h. */ |
8303 | $ac_includes_default |
8165 | $ac_includes_default |
8304 | typedef short ac__type_sizeof_; |
|
|
8305 | int |
8166 | int |
8306 | main () |
8167 | main () |
8307 | { |
8168 | { |
8308 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
8169 | static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)]; |
8309 | test_array [0] = 0 |
8170 | test_array [0] = 0 |
8310 | |
8171 | |
8311 | ; |
8172 | ; |
8312 | return 0; |
8173 | return 0; |
8313 | } |
8174 | } |
… | |
… | |
8327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8328 | (exit $ac_status); } && { |
8189 | (exit $ac_status); } && { |
8329 | test -z "$ac_cxx_werror_flag" || |
8190 | test -z "$ac_cxx_werror_flag" || |
8330 | test ! -s conftest.err |
8191 | test ! -s conftest.err |
8331 | } && test -s conftest.$ac_objext; then |
8192 | } && test -s conftest.$ac_objext; then |
8332 | ac_hi=$ac_mid; break |
8193 | case $ac_type in |
|
|
8194 | uint16_t) ac_cv_c_uint16_t=yes ;; |
|
|
8195 | *) ac_cv_c_uint16_t=$ac_type ;; |
|
|
8196 | esac |
|
|
8197 | |
8333 | else |
8198 | else |
8334 | echo "$as_me: failed program was:" >&5 |
8199 | echo "$as_me: failed program was:" >&5 |
8335 | sed 's/^/| /' conftest.$ac_ext >&5 |
8200 | sed 's/^/| /' conftest.$ac_ext >&5 |
8336 | |
8201 | |
8337 | ac_lo=`expr $ac_mid + 1` |
8202 | |
8338 | if test $ac_lo -le $ac_mid; then |
|
|
8339 | ac_lo= ac_hi= |
|
|
8340 | break |
|
|
8341 | fi |
|
|
8342 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8343 | fi |
8203 | fi |
8344 | |
8204 | |
8345 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8205 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8206 | test "$ac_cv_c_uint16_t" != no && break |
8346 | done |
8207 | done |
8347 | else |
8208 | fi |
8348 | echo "$as_me: failed program was:" >&5 |
8209 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5 |
8349 | sed 's/^/| /' conftest.$ac_ext >&5 |
8210 | echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; } |
|
|
8211 | case $ac_cv_c_uint16_t in #( |
|
|
8212 | no|yes) ;; #( |
|
|
8213 | *) |
8350 | |
8214 | |
|
|
8215 | |
|
|
8216 | cat >>confdefs.h <<_ACEOF |
|
|
8217 | #define uint16_t $ac_cv_c_uint16_t |
|
|
8218 | _ACEOF |
|
|
8219 | ;; |
|
|
8220 | esac |
|
|
8221 | |
|
|
8222 | |
|
|
8223 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
|
|
8224 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
|
|
8225 | if test "${ac_cv_c_int32_t+set}" = set; then |
|
|
8226 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8227 | else |
|
|
8228 | ac_cv_c_int32_t=no |
|
|
8229 | for ac_type in 'int32_t' 'int' 'long int' \ |
|
|
8230 | 'long long int' 'short int' 'signed char'; do |
8351 | cat >conftest.$ac_ext <<_ACEOF |
8231 | cat >conftest.$ac_ext <<_ACEOF |
8352 | /* confdefs.h. */ |
8232 | /* confdefs.h. */ |
8353 | _ACEOF |
8233 | _ACEOF |
8354 | cat confdefs.h >>conftest.$ac_ext |
8234 | cat confdefs.h >>conftest.$ac_ext |
8355 | cat >>conftest.$ac_ext <<_ACEOF |
8235 | cat >>conftest.$ac_ext <<_ACEOF |
8356 | /* end confdefs.h. */ |
8236 | /* end confdefs.h. */ |
8357 | $ac_includes_default |
8237 | $ac_includes_default |
8358 | typedef short ac__type_sizeof_; |
|
|
8359 | int |
8238 | int |
8360 | main () |
8239 | main () |
8361 | { |
8240 | { |
8362 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
8241 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))]; |
8363 | test_array [0] = 0 |
8242 | test_array [0] = 0 |
8364 | |
8243 | |
8365 | ; |
8244 | ; |
8366 | return 0; |
8245 | return 0; |
8367 | } |
8246 | } |
… | |
… | |
8381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8382 | (exit $ac_status); } && { |
8261 | (exit $ac_status); } && { |
8383 | test -z "$ac_cxx_werror_flag" || |
8262 | test -z "$ac_cxx_werror_flag" || |
8384 | test ! -s conftest.err |
8263 | test ! -s conftest.err |
8385 | } && test -s conftest.$ac_objext; then |
8264 | } && test -s conftest.$ac_objext; then |
8386 | ac_hi=-1 ac_mid=-1 |
|
|
8387 | while :; do |
|
|
8388 | cat >conftest.$ac_ext <<_ACEOF |
8265 | cat >conftest.$ac_ext <<_ACEOF |
8389 | /* confdefs.h. */ |
8266 | /* confdefs.h. */ |
8390 | _ACEOF |
8267 | _ACEOF |
8391 | cat confdefs.h >>conftest.$ac_ext |
8268 | cat confdefs.h >>conftest.$ac_ext |
8392 | cat >>conftest.$ac_ext <<_ACEOF |
8269 | cat >>conftest.$ac_ext <<_ACEOF |
8393 | /* end confdefs.h. */ |
8270 | /* end confdefs.h. */ |
8394 | $ac_includes_default |
8271 | $ac_includes_default |
8395 | typedef short ac__type_sizeof_; |
|
|
8396 | int |
8272 | int |
8397 | main () |
8273 | main () |
8398 | { |
8274 | { |
8399 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
8275 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1) |
|
|
8276 | < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))]; |
8400 | test_array [0] = 0 |
8277 | test_array [0] = 0 |
8401 | |
8278 | |
8402 | ; |
8279 | ; |
8403 | return 0; |
8280 | return 0; |
8404 | } |
8281 | } |
… | |
… | |
8418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8419 | (exit $ac_status); } && { |
8296 | (exit $ac_status); } && { |
8420 | test -z "$ac_cxx_werror_flag" || |
8297 | test -z "$ac_cxx_werror_flag" || |
8421 | test ! -s conftest.err |
8298 | test ! -s conftest.err |
8422 | } && test -s conftest.$ac_objext; then |
8299 | } && test -s conftest.$ac_objext; then |
8423 | ac_lo=$ac_mid; break |
8300 | : |
8424 | else |
8301 | else |
8425 | echo "$as_me: failed program was:" >&5 |
8302 | echo "$as_me: failed program was:" >&5 |
8426 | sed 's/^/| /' conftest.$ac_ext >&5 |
8303 | sed 's/^/| /' conftest.$ac_ext >&5 |
8427 | |
8304 | |
8428 | ac_hi=`expr '(' $ac_mid ')' - 1` |
8305 | case $ac_type in |
8429 | if test $ac_mid -le $ac_hi; then |
8306 | int32_t) ac_cv_c_int32_t=yes ;; |
8430 | ac_lo= ac_hi= |
8307 | *) ac_cv_c_int32_t=$ac_type ;; |
8431 | break |
8308 | esac |
8432 | fi |
8309 | |
8433 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
8434 | fi |
8310 | fi |
8435 | |
8311 | |
8436 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8312 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8437 | done |
|
|
8438 | else |
8313 | else |
8439 | echo "$as_me: failed program was:" >&5 |
8314 | echo "$as_me: failed program was:" >&5 |
8440 | sed 's/^/| /' conftest.$ac_ext >&5 |
8315 | sed 's/^/| /' conftest.$ac_ext >&5 |
8441 | |
8316 | |
8442 | ac_lo= ac_hi= |
8317 | |
8443 | fi |
8318 | fi |
8444 | |
8319 | |
8445 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8320 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8321 | test "$ac_cv_c_int32_t" != no && break |
|
|
8322 | done |
8446 | fi |
8323 | fi |
|
|
8324 | { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5 |
|
|
8325 | echo "${ECHO_T}$ac_cv_c_int32_t" >&6; } |
|
|
8326 | case $ac_cv_c_int32_t in #( |
|
|
8327 | no|yes) ;; #( |
|
|
8328 | *) |
8447 | |
8329 | |
8448 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8330 | cat >>confdefs.h <<_ACEOF |
8449 | # Binary search between lo and hi bounds. |
8331 | #define int32_t $ac_cv_c_int32_t |
8450 | while test "x$ac_lo" != "x$ac_hi"; do |
8332 | _ACEOF |
8451 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
8333 | ;; |
|
|
8334 | esac |
|
|
8335 | |
|
|
8336 | |
|
|
8337 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
|
|
8338 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
|
|
8339 | if test "${ac_cv_c_uint32_t+set}" = set; then |
|
|
8340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8341 | else |
|
|
8342 | ac_cv_c_uint32_t=no |
|
|
8343 | for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ |
|
|
8344 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
8452 | cat >conftest.$ac_ext <<_ACEOF |
8345 | cat >conftest.$ac_ext <<_ACEOF |
8453 | /* confdefs.h. */ |
8346 | /* confdefs.h. */ |
8454 | _ACEOF |
8347 | _ACEOF |
8455 | cat confdefs.h >>conftest.$ac_ext |
8348 | cat confdefs.h >>conftest.$ac_ext |
8456 | cat >>conftest.$ac_ext <<_ACEOF |
8349 | cat >>conftest.$ac_ext <<_ACEOF |
8457 | /* end confdefs.h. */ |
8350 | /* end confdefs.h. */ |
8458 | $ac_includes_default |
8351 | $ac_includes_default |
8459 | typedef short ac__type_sizeof_; |
|
|
8460 | int |
8352 | int |
8461 | main () |
8353 | main () |
8462 | { |
8354 | { |
8463 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
8355 | static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; |
8464 | test_array [0] = 0 |
8356 | test_array [0] = 0 |
8465 | |
8357 | |
8466 | ; |
8358 | ; |
8467 | return 0; |
8359 | return 0; |
8468 | } |
8360 | } |
… | |
… | |
8482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8483 | (exit $ac_status); } && { |
8375 | (exit $ac_status); } && { |
8484 | test -z "$ac_cxx_werror_flag" || |
8376 | test -z "$ac_cxx_werror_flag" || |
8485 | test ! -s conftest.err |
8377 | test ! -s conftest.err |
8486 | } && test -s conftest.$ac_objext; then |
8378 | } && test -s conftest.$ac_objext; then |
8487 | ac_hi=$ac_mid |
8379 | case $ac_type in |
|
|
8380 | uint32_t) ac_cv_c_uint32_t=yes ;; |
|
|
8381 | *) ac_cv_c_uint32_t=$ac_type ;; |
|
|
8382 | esac |
|
|
8383 | |
8488 | else |
8384 | else |
8489 | echo "$as_me: failed program was:" >&5 |
8385 | echo "$as_me: failed program was:" >&5 |
8490 | sed 's/^/| /' conftest.$ac_ext >&5 |
8386 | sed 's/^/| /' conftest.$ac_ext >&5 |
8491 | |
8387 | |
8492 | ac_lo=`expr '(' $ac_mid ')' + 1` |
8388 | |
8493 | fi |
8389 | fi |
8494 | |
8390 | |
8495 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8391 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8496 | done |
8392 | test "$ac_cv_c_uint32_t" != no && break |
8497 | case $ac_lo in |
8393 | done |
8498 | ?*) ac_cv_sizeof_short=$ac_lo;; |
|
|
8499 | '') if test "$ac_cv_type_short" = yes; then |
|
|
8500 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
|
|
8501 | See \`config.log' for more details." >&5 |
|
|
8502 | echo "$as_me: error: cannot compute sizeof (short) |
|
|
8503 | See \`config.log' for more details." >&2;} |
|
|
8504 | { (exit 77); exit 77; }; } |
|
|
8505 | else |
|
|
8506 | ac_cv_sizeof_short=0 |
|
|
8507 | fi ;; |
|
|
8508 | esac |
|
|
8509 | else |
|
|
8510 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8511 | /* confdefs.h. */ |
|
|
8512 | _ACEOF |
|
|
8513 | cat confdefs.h >>conftest.$ac_ext |
|
|
8514 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8515 | /* end confdefs.h. */ |
|
|
8516 | $ac_includes_default |
|
|
8517 | typedef short ac__type_sizeof_; |
|
|
8518 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8519 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8520 | #include <stdio.h> |
|
|
8521 | #include <stdlib.h> |
|
|
8522 | int |
|
|
8523 | main () |
|
|
8524 | { |
|
|
8525 | |
|
|
8526 | FILE *f = fopen ("conftest.val", "w"); |
|
|
8527 | if (! f) |
|
|
8528 | return 1; |
|
|
8529 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
8530 | { |
|
|
8531 | long int i = longval (); |
|
|
8532 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8533 | return 1; |
|
|
8534 | fprintf (f, "%ld\n", i); |
|
|
8535 | } |
|
|
8536 | else |
|
|
8537 | { |
|
|
8538 | unsigned long int i = ulongval (); |
|
|
8539 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8540 | return 1; |
|
|
8541 | fprintf (f, "%lu\n", i); |
|
|
8542 | } |
|
|
8543 | return ferror (f) || fclose (f) != 0; |
|
|
8544 | |
|
|
8545 | ; |
|
|
8546 | return 0; |
|
|
8547 | } |
|
|
8548 | _ACEOF |
|
|
8549 | rm -f conftest$ac_exeext |
|
|
8550 | if { (ac_try="$ac_link" |
|
|
8551 | case "(($ac_try" in |
|
|
8552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8553 | *) ac_try_echo=$ac_try;; |
|
|
8554 | esac |
|
|
8555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8556 | (eval "$ac_link") 2>&5 |
|
|
8557 | ac_status=$? |
|
|
8558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8559 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
8560 | { (case "(($ac_try" in |
|
|
8561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8562 | *) ac_try_echo=$ac_try;; |
|
|
8563 | esac |
|
|
8564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8565 | (eval "$ac_try") 2>&5 |
|
|
8566 | ac_status=$? |
|
|
8567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8568 | (exit $ac_status); }; }; then |
|
|
8569 | ac_cv_sizeof_short=`cat conftest.val` |
|
|
8570 | else |
|
|
8571 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
8572 | echo "$as_me: failed program was:" >&5 |
|
|
8573 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8574 | |
|
|
8575 | ( exit $ac_status ) |
|
|
8576 | if test "$ac_cv_type_short" = yes; then |
|
|
8577 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
|
|
8578 | See \`config.log' for more details." >&5 |
|
|
8579 | echo "$as_me: error: cannot compute sizeof (short) |
|
|
8580 | See \`config.log' for more details." >&2;} |
|
|
8581 | { (exit 77); exit 77; }; } |
|
|
8582 | else |
|
|
8583 | ac_cv_sizeof_short=0 |
|
|
8584 | fi |
|
|
8585 | fi |
8394 | fi |
8586 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
8587 | fi |
|
|
8588 | rm -f conftest.val |
|
|
8589 | fi |
|
|
8590 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
8395 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 |
8591 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
8396 | echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; } |
|
|
8397 | case $ac_cv_c_uint32_t in #( |
|
|
8398 | no|yes) ;; #( |
|
|
8399 | *) |
8592 | |
8400 | |
|
|
8401 | cat >>confdefs.h <<\_ACEOF |
|
|
8402 | #define _UINT32_T 1 |
|
|
8403 | _ACEOF |
8593 | |
8404 | |
8594 | |
8405 | |
8595 | cat >>confdefs.h <<_ACEOF |
8406 | cat >>confdefs.h <<_ACEOF |
8596 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
8407 | #define uint32_t $ac_cv_c_uint32_t |
8597 | _ACEOF |
8408 | _ACEOF |
8598 | |
8409 | ;; |
8599 | |
|
|
8600 | { echo "$as_me:$LINENO: checking for int" >&5 |
|
|
8601 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
|
|
8602 | if test "${ac_cv_type_int+set}" = set; then |
|
|
8603 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8604 | else |
|
|
8605 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8606 | /* confdefs.h. */ |
|
|
8607 | _ACEOF |
|
|
8608 | cat confdefs.h >>conftest.$ac_ext |
|
|
8609 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8610 | /* end confdefs.h. */ |
|
|
8611 | $ac_includes_default |
|
|
8612 | typedef int ac__type_new_; |
|
|
8613 | int |
|
|
8614 | main () |
|
|
8615 | { |
|
|
8616 | if ((ac__type_new_ *) 0) |
|
|
8617 | return 0; |
|
|
8618 | if (sizeof (ac__type_new_)) |
|
|
8619 | return 0; |
|
|
8620 | ; |
|
|
8621 | return 0; |
|
|
8622 | } |
|
|
8623 | _ACEOF |
|
|
8624 | rm -f conftest.$ac_objext |
|
|
8625 | if { (ac_try="$ac_compile" |
|
|
8626 | case "(($ac_try" in |
|
|
8627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8628 | *) ac_try_echo=$ac_try;; |
|
|
8629 | esac |
8410 | esac |
8630 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8631 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8632 | ac_status=$? |
|
|
8633 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8634 | rm -f conftest.er1 |
|
|
8635 | cat conftest.err >&5 |
|
|
8636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8637 | (exit $ac_status); } && { |
|
|
8638 | test -z "$ac_cxx_werror_flag" || |
|
|
8639 | test ! -s conftest.err |
|
|
8640 | } && test -s conftest.$ac_objext; then |
|
|
8641 | ac_cv_type_int=yes |
|
|
8642 | else |
|
|
8643 | echo "$as_me: failed program was:" >&5 |
|
|
8644 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8645 | |
|
|
8646 | ac_cv_type_int=no |
|
|
8647 | fi |
|
|
8648 | |
|
|
8649 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8650 | fi |
|
|
8651 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
|
|
8652 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
|
|
8653 | |
|
|
8654 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8655 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8656 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8657 | # This bug is HP SR number 8606223364. |
|
|
8658 | { echo "$as_me:$LINENO: checking size of int" >&5 |
|
|
8659 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
|
|
8660 | if test "${ac_cv_sizeof_int+set}" = set; then |
|
|
8661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8662 | else |
|
|
8663 | if test "$cross_compiling" = yes; then |
|
|
8664 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8665 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8666 | /* confdefs.h. */ |
|
|
8667 | _ACEOF |
|
|
8668 | cat confdefs.h >>conftest.$ac_ext |
|
|
8669 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8670 | /* end confdefs.h. */ |
|
|
8671 | $ac_includes_default |
|
|
8672 | typedef int ac__type_sizeof_; |
|
|
8673 | int |
|
|
8674 | main () |
|
|
8675 | { |
|
|
8676 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
8677 | test_array [0] = 0 |
|
|
8678 | |
|
|
8679 | ; |
|
|
8680 | return 0; |
|
|
8681 | } |
|
|
8682 | _ACEOF |
|
|
8683 | rm -f conftest.$ac_objext |
|
|
8684 | if { (ac_try="$ac_compile" |
|
|
8685 | case "(($ac_try" in |
|
|
8686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8687 | *) ac_try_echo=$ac_try;; |
|
|
8688 | esac |
|
|
8689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8690 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8691 | ac_status=$? |
|
|
8692 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8693 | rm -f conftest.er1 |
|
|
8694 | cat conftest.err >&5 |
|
|
8695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8696 | (exit $ac_status); } && { |
|
|
8697 | test -z "$ac_cxx_werror_flag" || |
|
|
8698 | test ! -s conftest.err |
|
|
8699 | } && test -s conftest.$ac_objext; then |
|
|
8700 | ac_lo=0 ac_mid=0 |
|
|
8701 | while :; do |
|
|
8702 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8703 | /* confdefs.h. */ |
|
|
8704 | _ACEOF |
|
|
8705 | cat confdefs.h >>conftest.$ac_ext |
|
|
8706 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8707 | /* end confdefs.h. */ |
|
|
8708 | $ac_includes_default |
|
|
8709 | typedef int ac__type_sizeof_; |
|
|
8710 | int |
|
|
8711 | main () |
|
|
8712 | { |
|
|
8713 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8714 | test_array [0] = 0 |
|
|
8715 | |
|
|
8716 | ; |
|
|
8717 | return 0; |
|
|
8718 | } |
|
|
8719 | _ACEOF |
|
|
8720 | rm -f conftest.$ac_objext |
|
|
8721 | if { (ac_try="$ac_compile" |
|
|
8722 | case "(($ac_try" in |
|
|
8723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8724 | *) ac_try_echo=$ac_try;; |
|
|
8725 | esac |
|
|
8726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8727 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8728 | ac_status=$? |
|
|
8729 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8730 | rm -f conftest.er1 |
|
|
8731 | cat conftest.err >&5 |
|
|
8732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8733 | (exit $ac_status); } && { |
|
|
8734 | test -z "$ac_cxx_werror_flag" || |
|
|
8735 | test ! -s conftest.err |
|
|
8736 | } && test -s conftest.$ac_objext; then |
|
|
8737 | ac_hi=$ac_mid; break |
|
|
8738 | else |
|
|
8739 | echo "$as_me: failed program was:" >&5 |
|
|
8740 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8741 | |
|
|
8742 | ac_lo=`expr $ac_mid + 1` |
|
|
8743 | if test $ac_lo -le $ac_mid; then |
|
|
8744 | ac_lo= ac_hi= |
|
|
8745 | break |
|
|
8746 | fi |
|
|
8747 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8748 | fi |
|
|
8749 | |
|
|
8750 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8751 | done |
|
|
8752 | else |
|
|
8753 | echo "$as_me: failed program was:" >&5 |
|
|
8754 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8755 | |
|
|
8756 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8757 | /* confdefs.h. */ |
|
|
8758 | _ACEOF |
|
|
8759 | cat confdefs.h >>conftest.$ac_ext |
|
|
8760 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8761 | /* end confdefs.h. */ |
|
|
8762 | $ac_includes_default |
|
|
8763 | typedef int ac__type_sizeof_; |
|
|
8764 | int |
|
|
8765 | main () |
|
|
8766 | { |
|
|
8767 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
8768 | test_array [0] = 0 |
|
|
8769 | |
|
|
8770 | ; |
|
|
8771 | return 0; |
|
|
8772 | } |
|
|
8773 | _ACEOF |
|
|
8774 | rm -f conftest.$ac_objext |
|
|
8775 | if { (ac_try="$ac_compile" |
|
|
8776 | case "(($ac_try" in |
|
|
8777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8778 | *) ac_try_echo=$ac_try;; |
|
|
8779 | esac |
|
|
8780 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8781 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8782 | ac_status=$? |
|
|
8783 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8784 | rm -f conftest.er1 |
|
|
8785 | cat conftest.err >&5 |
|
|
8786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8787 | (exit $ac_status); } && { |
|
|
8788 | test -z "$ac_cxx_werror_flag" || |
|
|
8789 | test ! -s conftest.err |
|
|
8790 | } && test -s conftest.$ac_objext; then |
|
|
8791 | ac_hi=-1 ac_mid=-1 |
|
|
8792 | while :; do |
|
|
8793 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8794 | /* confdefs.h. */ |
|
|
8795 | _ACEOF |
|
|
8796 | cat confdefs.h >>conftest.$ac_ext |
|
|
8797 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8798 | /* end confdefs.h. */ |
|
|
8799 | $ac_includes_default |
|
|
8800 | typedef int ac__type_sizeof_; |
|
|
8801 | int |
|
|
8802 | main () |
|
|
8803 | { |
|
|
8804 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
8805 | test_array [0] = 0 |
|
|
8806 | |
|
|
8807 | ; |
|
|
8808 | return 0; |
|
|
8809 | } |
|
|
8810 | _ACEOF |
|
|
8811 | rm -f conftest.$ac_objext |
|
|
8812 | if { (ac_try="$ac_compile" |
|
|
8813 | case "(($ac_try" in |
|
|
8814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8815 | *) ac_try_echo=$ac_try;; |
|
|
8816 | esac |
|
|
8817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8818 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8819 | ac_status=$? |
|
|
8820 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8821 | rm -f conftest.er1 |
|
|
8822 | cat conftest.err >&5 |
|
|
8823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8824 | (exit $ac_status); } && { |
|
|
8825 | test -z "$ac_cxx_werror_flag" || |
|
|
8826 | test ! -s conftest.err |
|
|
8827 | } && test -s conftest.$ac_objext; then |
|
|
8828 | ac_lo=$ac_mid; break |
|
|
8829 | else |
|
|
8830 | echo "$as_me: failed program was:" >&5 |
|
|
8831 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8832 | |
|
|
8833 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
8834 | if test $ac_mid -le $ac_hi; then |
|
|
8835 | ac_lo= ac_hi= |
|
|
8836 | break |
|
|
8837 | fi |
|
|
8838 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
8839 | fi |
|
|
8840 | |
|
|
8841 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8842 | done |
|
|
8843 | else |
|
|
8844 | echo "$as_me: failed program was:" >&5 |
|
|
8845 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8846 | |
|
|
8847 | ac_lo= ac_hi= |
|
|
8848 | fi |
|
|
8849 | |
|
|
8850 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8851 | fi |
|
|
8852 | |
|
|
8853 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8854 | # Binary search between lo and hi bounds. |
|
|
8855 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
8856 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
8857 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8858 | /* confdefs.h. */ |
|
|
8859 | _ACEOF |
|
|
8860 | cat confdefs.h >>conftest.$ac_ext |
|
|
8861 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8862 | /* end confdefs.h. */ |
|
|
8863 | $ac_includes_default |
|
|
8864 | typedef int ac__type_sizeof_; |
|
|
8865 | int |
|
|
8866 | main () |
|
|
8867 | { |
|
|
8868 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8869 | test_array [0] = 0 |
|
|
8870 | |
|
|
8871 | ; |
|
|
8872 | return 0; |
|
|
8873 | } |
|
|
8874 | _ACEOF |
|
|
8875 | rm -f conftest.$ac_objext |
|
|
8876 | if { (ac_try="$ac_compile" |
|
|
8877 | case "(($ac_try" in |
|
|
8878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8879 | *) ac_try_echo=$ac_try;; |
|
|
8880 | esac |
|
|
8881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8882 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8883 | ac_status=$? |
|
|
8884 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8885 | rm -f conftest.er1 |
|
|
8886 | cat conftest.err >&5 |
|
|
8887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8888 | (exit $ac_status); } && { |
|
|
8889 | test -z "$ac_cxx_werror_flag" || |
|
|
8890 | test ! -s conftest.err |
|
|
8891 | } && test -s conftest.$ac_objext; then |
|
|
8892 | ac_hi=$ac_mid |
|
|
8893 | else |
|
|
8894 | echo "$as_me: failed program was:" >&5 |
|
|
8895 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8896 | |
|
|
8897 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
8898 | fi |
|
|
8899 | |
|
|
8900 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8901 | done |
|
|
8902 | case $ac_lo in |
|
|
8903 | ?*) ac_cv_sizeof_int=$ac_lo;; |
|
|
8904 | '') if test "$ac_cv_type_int" = yes; then |
|
|
8905 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
|
|
8906 | See \`config.log' for more details." >&5 |
|
|
8907 | echo "$as_me: error: cannot compute sizeof (int) |
|
|
8908 | See \`config.log' for more details." >&2;} |
|
|
8909 | { (exit 77); exit 77; }; } |
|
|
8910 | else |
|
|
8911 | ac_cv_sizeof_int=0 |
|
|
8912 | fi ;; |
|
|
8913 | esac |
|
|
8914 | else |
|
|
8915 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8916 | /* confdefs.h. */ |
|
|
8917 | _ACEOF |
|
|
8918 | cat confdefs.h >>conftest.$ac_ext |
|
|
8919 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8920 | /* end confdefs.h. */ |
|
|
8921 | $ac_includes_default |
|
|
8922 | typedef int ac__type_sizeof_; |
|
|
8923 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8924 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8925 | #include <stdio.h> |
|
|
8926 | #include <stdlib.h> |
|
|
8927 | int |
|
|
8928 | main () |
|
|
8929 | { |
|
|
8930 | |
|
|
8931 | FILE *f = fopen ("conftest.val", "w"); |
|
|
8932 | if (! f) |
|
|
8933 | return 1; |
|
|
8934 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
8935 | { |
|
|
8936 | long int i = longval (); |
|
|
8937 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8938 | return 1; |
|
|
8939 | fprintf (f, "%ld\n", i); |
|
|
8940 | } |
|
|
8941 | else |
|
|
8942 | { |
|
|
8943 | unsigned long int i = ulongval (); |
|
|
8944 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8945 | return 1; |
|
|
8946 | fprintf (f, "%lu\n", i); |
|
|
8947 | } |
|
|
8948 | return ferror (f) || fclose (f) != 0; |
|
|
8949 | |
|
|
8950 | ; |
|
|
8951 | return 0; |
|
|
8952 | } |
|
|
8953 | _ACEOF |
|
|
8954 | rm -f conftest$ac_exeext |
|
|
8955 | if { (ac_try="$ac_link" |
|
|
8956 | case "(($ac_try" in |
|
|
8957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8958 | *) ac_try_echo=$ac_try;; |
|
|
8959 | esac |
|
|
8960 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8961 | (eval "$ac_link") 2>&5 |
|
|
8962 | ac_status=$? |
|
|
8963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8964 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
8965 | { (case "(($ac_try" in |
|
|
8966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8967 | *) ac_try_echo=$ac_try;; |
|
|
8968 | esac |
|
|
8969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8970 | (eval "$ac_try") 2>&5 |
|
|
8971 | ac_status=$? |
|
|
8972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8973 | (exit $ac_status); }; }; then |
|
|
8974 | ac_cv_sizeof_int=`cat conftest.val` |
|
|
8975 | else |
|
|
8976 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
8977 | echo "$as_me: failed program was:" >&5 |
|
|
8978 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8979 | |
|
|
8980 | ( exit $ac_status ) |
|
|
8981 | if test "$ac_cv_type_int" = yes; then |
|
|
8982 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
|
|
8983 | See \`config.log' for more details." >&5 |
|
|
8984 | echo "$as_me: error: cannot compute sizeof (int) |
|
|
8985 | See \`config.log' for more details." >&2;} |
|
|
8986 | { (exit 77); exit 77; }; } |
|
|
8987 | else |
|
|
8988 | ac_cv_sizeof_int=0 |
|
|
8989 | fi |
|
|
8990 | fi |
|
|
8991 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
8992 | fi |
|
|
8993 | rm -f conftest.val |
|
|
8994 | fi |
|
|
8995 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
|
|
8996 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
|
|
8997 | |
|
|
8998 | |
|
|
8999 | |
|
|
9000 | cat >>confdefs.h <<_ACEOF |
|
|
9001 | #define SIZEOF_INT $ac_cv_sizeof_int |
|
|
9002 | _ACEOF |
|
|
9003 | |
|
|
9004 | |
|
|
9005 | { echo "$as_me:$LINENO: checking for long long" >&5 |
|
|
9006 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
|
|
9007 | if test "${ac_cv_type_long_long+set}" = set; then |
|
|
9008 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9009 | else |
|
|
9010 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9011 | /* confdefs.h. */ |
|
|
9012 | _ACEOF |
|
|
9013 | cat confdefs.h >>conftest.$ac_ext |
|
|
9014 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9015 | /* end confdefs.h. */ |
|
|
9016 | $ac_includes_default |
|
|
9017 | typedef long long ac__type_new_; |
|
|
9018 | int |
|
|
9019 | main () |
|
|
9020 | { |
|
|
9021 | if ((ac__type_new_ *) 0) |
|
|
9022 | return 0; |
|
|
9023 | if (sizeof (ac__type_new_)) |
|
|
9024 | return 0; |
|
|
9025 | ; |
|
|
9026 | return 0; |
|
|
9027 | } |
|
|
9028 | _ACEOF |
|
|
9029 | rm -f conftest.$ac_objext |
|
|
9030 | if { (ac_try="$ac_compile" |
|
|
9031 | case "(($ac_try" in |
|
|
9032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9033 | *) ac_try_echo=$ac_try;; |
|
|
9034 | esac |
|
|
9035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9036 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9037 | ac_status=$? |
|
|
9038 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9039 | rm -f conftest.er1 |
|
|
9040 | cat conftest.err >&5 |
|
|
9041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9042 | (exit $ac_status); } && { |
|
|
9043 | test -z "$ac_cxx_werror_flag" || |
|
|
9044 | test ! -s conftest.err |
|
|
9045 | } && test -s conftest.$ac_objext; then |
|
|
9046 | ac_cv_type_long_long=yes |
|
|
9047 | else |
|
|
9048 | echo "$as_me: failed program was:" >&5 |
|
|
9049 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9050 | |
|
|
9051 | ac_cv_type_long_long=no |
|
|
9052 | fi |
|
|
9053 | |
|
|
9054 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9055 | fi |
|
|
9056 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
|
|
9057 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
|
|
9058 | |
|
|
9059 | # The cast to long int works around a bug in the HP C Compiler |
|
|
9060 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
9061 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
9062 | # This bug is HP SR number 8606223364. |
|
|
9063 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
|
|
9064 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } |
|
|
9065 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
|
|
9066 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9067 | else |
|
|
9068 | if test "$cross_compiling" = yes; then |
|
|
9069 | # Depending upon the size, compute the lo and hi bounds. |
|
|
9070 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9071 | /* confdefs.h. */ |
|
|
9072 | _ACEOF |
|
|
9073 | cat confdefs.h >>conftest.$ac_ext |
|
|
9074 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9075 | /* end confdefs.h. */ |
|
|
9076 | $ac_includes_default |
|
|
9077 | typedef long long ac__type_sizeof_; |
|
|
9078 | int |
|
|
9079 | main () |
|
|
9080 | { |
|
|
9081 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
9082 | test_array [0] = 0 |
|
|
9083 | |
|
|
9084 | ; |
|
|
9085 | return 0; |
|
|
9086 | } |
|
|
9087 | _ACEOF |
|
|
9088 | rm -f conftest.$ac_objext |
|
|
9089 | if { (ac_try="$ac_compile" |
|
|
9090 | case "(($ac_try" in |
|
|
9091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9092 | *) ac_try_echo=$ac_try;; |
|
|
9093 | esac |
|
|
9094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9095 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9096 | ac_status=$? |
|
|
9097 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9098 | rm -f conftest.er1 |
|
|
9099 | cat conftest.err >&5 |
|
|
9100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9101 | (exit $ac_status); } && { |
|
|
9102 | test -z "$ac_cxx_werror_flag" || |
|
|
9103 | test ! -s conftest.err |
|
|
9104 | } && test -s conftest.$ac_objext; then |
|
|
9105 | ac_lo=0 ac_mid=0 |
|
|
9106 | while :; do |
|
|
9107 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9108 | /* confdefs.h. */ |
|
|
9109 | _ACEOF |
|
|
9110 | cat confdefs.h >>conftest.$ac_ext |
|
|
9111 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9112 | /* end confdefs.h. */ |
|
|
9113 | $ac_includes_default |
|
|
9114 | typedef long long ac__type_sizeof_; |
|
|
9115 | int |
|
|
9116 | main () |
|
|
9117 | { |
|
|
9118 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9119 | test_array [0] = 0 |
|
|
9120 | |
|
|
9121 | ; |
|
|
9122 | return 0; |
|
|
9123 | } |
|
|
9124 | _ACEOF |
|
|
9125 | rm -f conftest.$ac_objext |
|
|
9126 | if { (ac_try="$ac_compile" |
|
|
9127 | case "(($ac_try" in |
|
|
9128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9129 | *) ac_try_echo=$ac_try;; |
|
|
9130 | esac |
|
|
9131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9132 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9133 | ac_status=$? |
|
|
9134 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9135 | rm -f conftest.er1 |
|
|
9136 | cat conftest.err >&5 |
|
|
9137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9138 | (exit $ac_status); } && { |
|
|
9139 | test -z "$ac_cxx_werror_flag" || |
|
|
9140 | test ! -s conftest.err |
|
|
9141 | } && test -s conftest.$ac_objext; then |
|
|
9142 | ac_hi=$ac_mid; break |
|
|
9143 | else |
|
|
9144 | echo "$as_me: failed program was:" >&5 |
|
|
9145 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9146 | |
|
|
9147 | ac_lo=`expr $ac_mid + 1` |
|
|
9148 | if test $ac_lo -le $ac_mid; then |
|
|
9149 | ac_lo= ac_hi= |
|
|
9150 | break |
|
|
9151 | fi |
|
|
9152 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
9153 | fi |
|
|
9154 | |
|
|
9155 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9156 | done |
|
|
9157 | else |
|
|
9158 | echo "$as_me: failed program was:" >&5 |
|
|
9159 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9160 | |
|
|
9161 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9162 | /* confdefs.h. */ |
|
|
9163 | _ACEOF |
|
|
9164 | cat confdefs.h >>conftest.$ac_ext |
|
|
9165 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9166 | /* end confdefs.h. */ |
|
|
9167 | $ac_includes_default |
|
|
9168 | typedef long long ac__type_sizeof_; |
|
|
9169 | int |
|
|
9170 | main () |
|
|
9171 | { |
|
|
9172 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
9173 | test_array [0] = 0 |
|
|
9174 | |
|
|
9175 | ; |
|
|
9176 | return 0; |
|
|
9177 | } |
|
|
9178 | _ACEOF |
|
|
9179 | rm -f conftest.$ac_objext |
|
|
9180 | if { (ac_try="$ac_compile" |
|
|
9181 | case "(($ac_try" in |
|
|
9182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9183 | *) ac_try_echo=$ac_try;; |
|
|
9184 | esac |
|
|
9185 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9186 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9187 | ac_status=$? |
|
|
9188 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9189 | rm -f conftest.er1 |
|
|
9190 | cat conftest.err >&5 |
|
|
9191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9192 | (exit $ac_status); } && { |
|
|
9193 | test -z "$ac_cxx_werror_flag" || |
|
|
9194 | test ! -s conftest.err |
|
|
9195 | } && test -s conftest.$ac_objext; then |
|
|
9196 | ac_hi=-1 ac_mid=-1 |
|
|
9197 | while :; do |
|
|
9198 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9199 | /* confdefs.h. */ |
|
|
9200 | _ACEOF |
|
|
9201 | cat confdefs.h >>conftest.$ac_ext |
|
|
9202 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9203 | /* end confdefs.h. */ |
|
|
9204 | $ac_includes_default |
|
|
9205 | typedef long long ac__type_sizeof_; |
|
|
9206 | int |
|
|
9207 | main () |
|
|
9208 | { |
|
|
9209 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
9210 | test_array [0] = 0 |
|
|
9211 | |
|
|
9212 | ; |
|
|
9213 | return 0; |
|
|
9214 | } |
|
|
9215 | _ACEOF |
|
|
9216 | rm -f conftest.$ac_objext |
|
|
9217 | if { (ac_try="$ac_compile" |
|
|
9218 | case "(($ac_try" in |
|
|
9219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9220 | *) ac_try_echo=$ac_try;; |
|
|
9221 | esac |
|
|
9222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9223 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9224 | ac_status=$? |
|
|
9225 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9226 | rm -f conftest.er1 |
|
|
9227 | cat conftest.err >&5 |
|
|
9228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9229 | (exit $ac_status); } && { |
|
|
9230 | test -z "$ac_cxx_werror_flag" || |
|
|
9231 | test ! -s conftest.err |
|
|
9232 | } && test -s conftest.$ac_objext; then |
|
|
9233 | ac_lo=$ac_mid; break |
|
|
9234 | else |
|
|
9235 | echo "$as_me: failed program was:" >&5 |
|
|
9236 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9237 | |
|
|
9238 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
9239 | if test $ac_mid -le $ac_hi; then |
|
|
9240 | ac_lo= ac_hi= |
|
|
9241 | break |
|
|
9242 | fi |
|
|
9243 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
9244 | fi |
|
|
9245 | |
|
|
9246 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9247 | done |
|
|
9248 | else |
|
|
9249 | echo "$as_me: failed program was:" >&5 |
|
|
9250 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9251 | |
|
|
9252 | ac_lo= ac_hi= |
|
|
9253 | fi |
|
|
9254 | |
|
|
9255 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9256 | fi |
|
|
9257 | |
|
|
9258 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9259 | # Binary search between lo and hi bounds. |
|
|
9260 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
9261 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
9262 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9263 | /* confdefs.h. */ |
|
|
9264 | _ACEOF |
|
|
9265 | cat confdefs.h >>conftest.$ac_ext |
|
|
9266 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9267 | /* end confdefs.h. */ |
|
|
9268 | $ac_includes_default |
|
|
9269 | typedef long long ac__type_sizeof_; |
|
|
9270 | int |
|
|
9271 | main () |
|
|
9272 | { |
|
|
9273 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9274 | test_array [0] = 0 |
|
|
9275 | |
|
|
9276 | ; |
|
|
9277 | return 0; |
|
|
9278 | } |
|
|
9279 | _ACEOF |
|
|
9280 | rm -f conftest.$ac_objext |
|
|
9281 | if { (ac_try="$ac_compile" |
|
|
9282 | case "(($ac_try" in |
|
|
9283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9284 | *) ac_try_echo=$ac_try;; |
|
|
9285 | esac |
|
|
9286 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9287 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9288 | ac_status=$? |
|
|
9289 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9290 | rm -f conftest.er1 |
|
|
9291 | cat conftest.err >&5 |
|
|
9292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9293 | (exit $ac_status); } && { |
|
|
9294 | test -z "$ac_cxx_werror_flag" || |
|
|
9295 | test ! -s conftest.err |
|
|
9296 | } && test -s conftest.$ac_objext; then |
|
|
9297 | ac_hi=$ac_mid |
|
|
9298 | else |
|
|
9299 | echo "$as_me: failed program was:" >&5 |
|
|
9300 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9301 | |
|
|
9302 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
9303 | fi |
|
|
9304 | |
|
|
9305 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9306 | done |
|
|
9307 | case $ac_lo in |
|
|
9308 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
|
|
9309 | '') if test "$ac_cv_type_long_long" = yes; then |
|
|
9310 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
|
|
9311 | See \`config.log' for more details." >&5 |
|
|
9312 | echo "$as_me: error: cannot compute sizeof (long long) |
|
|
9313 | See \`config.log' for more details." >&2;} |
|
|
9314 | { (exit 77); exit 77; }; } |
|
|
9315 | else |
|
|
9316 | ac_cv_sizeof_long_long=0 |
|
|
9317 | fi ;; |
|
|
9318 | esac |
|
|
9319 | else |
|
|
9320 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9321 | /* confdefs.h. */ |
|
|
9322 | _ACEOF |
|
|
9323 | cat confdefs.h >>conftest.$ac_ext |
|
|
9324 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9325 | /* end confdefs.h. */ |
|
|
9326 | $ac_includes_default |
|
|
9327 | typedef long long ac__type_sizeof_; |
|
|
9328 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9329 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9330 | #include <stdio.h> |
|
|
9331 | #include <stdlib.h> |
|
|
9332 | int |
|
|
9333 | main () |
|
|
9334 | { |
|
|
9335 | |
|
|
9336 | FILE *f = fopen ("conftest.val", "w"); |
|
|
9337 | if (! f) |
|
|
9338 | return 1; |
|
|
9339 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
9340 | { |
|
|
9341 | long int i = longval (); |
|
|
9342 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9343 | return 1; |
|
|
9344 | fprintf (f, "%ld\n", i); |
|
|
9345 | } |
|
|
9346 | else |
|
|
9347 | { |
|
|
9348 | unsigned long int i = ulongval (); |
|
|
9349 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9350 | return 1; |
|
|
9351 | fprintf (f, "%lu\n", i); |
|
|
9352 | } |
|
|
9353 | return ferror (f) || fclose (f) != 0; |
|
|
9354 | |
|
|
9355 | ; |
|
|
9356 | return 0; |
|
|
9357 | } |
|
|
9358 | _ACEOF |
|
|
9359 | rm -f conftest$ac_exeext |
|
|
9360 | if { (ac_try="$ac_link" |
|
|
9361 | case "(($ac_try" in |
|
|
9362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9363 | *) ac_try_echo=$ac_try;; |
|
|
9364 | esac |
|
|
9365 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9366 | (eval "$ac_link") 2>&5 |
|
|
9367 | ac_status=$? |
|
|
9368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9369 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
9370 | { (case "(($ac_try" in |
|
|
9371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9372 | *) ac_try_echo=$ac_try;; |
|
|
9373 | esac |
|
|
9374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9375 | (eval "$ac_try") 2>&5 |
|
|
9376 | ac_status=$? |
|
|
9377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9378 | (exit $ac_status); }; }; then |
|
|
9379 | ac_cv_sizeof_long_long=`cat conftest.val` |
|
|
9380 | else |
|
|
9381 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
9382 | echo "$as_me: failed program was:" >&5 |
|
|
9383 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9384 | |
|
|
9385 | ( exit $ac_status ) |
|
|
9386 | if test "$ac_cv_type_long_long" = yes; then |
|
|
9387 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
|
|
9388 | See \`config.log' for more details." >&5 |
|
|
9389 | echo "$as_me: error: cannot compute sizeof (long long) |
|
|
9390 | See \`config.log' for more details." >&2;} |
|
|
9391 | { (exit 77); exit 77; }; } |
|
|
9392 | else |
|
|
9393 | ac_cv_sizeof_long_long=0 |
|
|
9394 | fi |
|
|
9395 | fi |
|
|
9396 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
9397 | fi |
|
|
9398 | rm -f conftest.val |
|
|
9399 | fi |
|
|
9400 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
|
|
9401 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
|
|
9402 | |
|
|
9403 | |
|
|
9404 | |
|
|
9405 | cat >>confdefs.h <<_ACEOF |
|
|
9406 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
|
|
9407 | _ACEOF |
|
|
9408 | |
|
|
9409 | |
|
|
9410 | { echo "$as_me:$LINENO: checking for int *" >&5 |
|
|
9411 | echo $ECHO_N "checking for int *... $ECHO_C" >&6; } |
|
|
9412 | if test "${ac_cv_type_int_p+set}" = set; then |
|
|
9413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9414 | else |
|
|
9415 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9416 | /* confdefs.h. */ |
|
|
9417 | _ACEOF |
|
|
9418 | cat confdefs.h >>conftest.$ac_ext |
|
|
9419 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9420 | /* end confdefs.h. */ |
|
|
9421 | $ac_includes_default |
|
|
9422 | typedef int * ac__type_new_; |
|
|
9423 | int |
|
|
9424 | main () |
|
|
9425 | { |
|
|
9426 | if ((ac__type_new_ *) 0) |
|
|
9427 | return 0; |
|
|
9428 | if (sizeof (ac__type_new_)) |
|
|
9429 | return 0; |
|
|
9430 | ; |
|
|
9431 | return 0; |
|
|
9432 | } |
|
|
9433 | _ACEOF |
|
|
9434 | rm -f conftest.$ac_objext |
|
|
9435 | if { (ac_try="$ac_compile" |
|
|
9436 | case "(($ac_try" in |
|
|
9437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9438 | *) ac_try_echo=$ac_try;; |
|
|
9439 | esac |
|
|
9440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9441 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9442 | ac_status=$? |
|
|
9443 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9444 | rm -f conftest.er1 |
|
|
9445 | cat conftest.err >&5 |
|
|
9446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9447 | (exit $ac_status); } && { |
|
|
9448 | test -z "$ac_cxx_werror_flag" || |
|
|
9449 | test ! -s conftest.err |
|
|
9450 | } && test -s conftest.$ac_objext; then |
|
|
9451 | ac_cv_type_int_p=yes |
|
|
9452 | else |
|
|
9453 | echo "$as_me: failed program was:" >&5 |
|
|
9454 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9455 | |
|
|
9456 | ac_cv_type_int_p=no |
|
|
9457 | fi |
|
|
9458 | |
|
|
9459 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9460 | fi |
|
|
9461 | { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5 |
|
|
9462 | echo "${ECHO_T}$ac_cv_type_int_p" >&6; } |
|
|
9463 | |
|
|
9464 | # The cast to long int works around a bug in the HP C Compiler |
|
|
9465 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
9466 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
9467 | # This bug is HP SR number 8606223364. |
|
|
9468 | { echo "$as_me:$LINENO: checking size of int *" >&5 |
|
|
9469 | echo $ECHO_N "checking size of int *... $ECHO_C" >&6; } |
|
|
9470 | if test "${ac_cv_sizeof_int_p+set}" = set; then |
|
|
9471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9472 | else |
|
|
9473 | if test "$cross_compiling" = yes; then |
|
|
9474 | # Depending upon the size, compute the lo and hi bounds. |
|
|
9475 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9476 | /* confdefs.h. */ |
|
|
9477 | _ACEOF |
|
|
9478 | cat confdefs.h >>conftest.$ac_ext |
|
|
9479 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9480 | /* end confdefs.h. */ |
|
|
9481 | $ac_includes_default |
|
|
9482 | typedef int * ac__type_sizeof_; |
|
|
9483 | int |
|
|
9484 | main () |
|
|
9485 | { |
|
|
9486 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
9487 | test_array [0] = 0 |
|
|
9488 | |
|
|
9489 | ; |
|
|
9490 | return 0; |
|
|
9491 | } |
|
|
9492 | _ACEOF |
|
|
9493 | rm -f conftest.$ac_objext |
|
|
9494 | if { (ac_try="$ac_compile" |
|
|
9495 | case "(($ac_try" in |
|
|
9496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9497 | *) ac_try_echo=$ac_try;; |
|
|
9498 | esac |
|
|
9499 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9500 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9501 | ac_status=$? |
|
|
9502 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9503 | rm -f conftest.er1 |
|
|
9504 | cat conftest.err >&5 |
|
|
9505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9506 | (exit $ac_status); } && { |
|
|
9507 | test -z "$ac_cxx_werror_flag" || |
|
|
9508 | test ! -s conftest.err |
|
|
9509 | } && test -s conftest.$ac_objext; then |
|
|
9510 | ac_lo=0 ac_mid=0 |
|
|
9511 | while :; do |
|
|
9512 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9513 | /* confdefs.h. */ |
|
|
9514 | _ACEOF |
|
|
9515 | cat confdefs.h >>conftest.$ac_ext |
|
|
9516 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9517 | /* end confdefs.h. */ |
|
|
9518 | $ac_includes_default |
|
|
9519 | typedef int * ac__type_sizeof_; |
|
|
9520 | int |
|
|
9521 | main () |
|
|
9522 | { |
|
|
9523 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9524 | test_array [0] = 0 |
|
|
9525 | |
|
|
9526 | ; |
|
|
9527 | return 0; |
|
|
9528 | } |
|
|
9529 | _ACEOF |
|
|
9530 | rm -f conftest.$ac_objext |
|
|
9531 | if { (ac_try="$ac_compile" |
|
|
9532 | case "(($ac_try" in |
|
|
9533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9534 | *) ac_try_echo=$ac_try;; |
|
|
9535 | esac |
|
|
9536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9537 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9538 | ac_status=$? |
|
|
9539 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9540 | rm -f conftest.er1 |
|
|
9541 | cat conftest.err >&5 |
|
|
9542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9543 | (exit $ac_status); } && { |
|
|
9544 | test -z "$ac_cxx_werror_flag" || |
|
|
9545 | test ! -s conftest.err |
|
|
9546 | } && test -s conftest.$ac_objext; then |
|
|
9547 | ac_hi=$ac_mid; break |
|
|
9548 | else |
|
|
9549 | echo "$as_me: failed program was:" >&5 |
|
|
9550 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9551 | |
|
|
9552 | ac_lo=`expr $ac_mid + 1` |
|
|
9553 | if test $ac_lo -le $ac_mid; then |
|
|
9554 | ac_lo= ac_hi= |
|
|
9555 | break |
|
|
9556 | fi |
|
|
9557 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
9558 | fi |
|
|
9559 | |
|
|
9560 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9561 | done |
|
|
9562 | else |
|
|
9563 | echo "$as_me: failed program was:" >&5 |
|
|
9564 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9565 | |
|
|
9566 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9567 | /* confdefs.h. */ |
|
|
9568 | _ACEOF |
|
|
9569 | cat confdefs.h >>conftest.$ac_ext |
|
|
9570 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9571 | /* end confdefs.h. */ |
|
|
9572 | $ac_includes_default |
|
|
9573 | typedef int * ac__type_sizeof_; |
|
|
9574 | int |
|
|
9575 | main () |
|
|
9576 | { |
|
|
9577 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
9578 | test_array [0] = 0 |
|
|
9579 | |
|
|
9580 | ; |
|
|
9581 | return 0; |
|
|
9582 | } |
|
|
9583 | _ACEOF |
|
|
9584 | rm -f conftest.$ac_objext |
|
|
9585 | if { (ac_try="$ac_compile" |
|
|
9586 | case "(($ac_try" in |
|
|
9587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9588 | *) ac_try_echo=$ac_try;; |
|
|
9589 | esac |
|
|
9590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9591 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9592 | ac_status=$? |
|
|
9593 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9594 | rm -f conftest.er1 |
|
|
9595 | cat conftest.err >&5 |
|
|
9596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9597 | (exit $ac_status); } && { |
|
|
9598 | test -z "$ac_cxx_werror_flag" || |
|
|
9599 | test ! -s conftest.err |
|
|
9600 | } && test -s conftest.$ac_objext; then |
|
|
9601 | ac_hi=-1 ac_mid=-1 |
|
|
9602 | while :; do |
|
|
9603 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9604 | /* confdefs.h. */ |
|
|
9605 | _ACEOF |
|
|
9606 | cat confdefs.h >>conftest.$ac_ext |
|
|
9607 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9608 | /* end confdefs.h. */ |
|
|
9609 | $ac_includes_default |
|
|
9610 | typedef int * ac__type_sizeof_; |
|
|
9611 | int |
|
|
9612 | main () |
|
|
9613 | { |
|
|
9614 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
9615 | test_array [0] = 0 |
|
|
9616 | |
|
|
9617 | ; |
|
|
9618 | return 0; |
|
|
9619 | } |
|
|
9620 | _ACEOF |
|
|
9621 | rm -f conftest.$ac_objext |
|
|
9622 | if { (ac_try="$ac_compile" |
|
|
9623 | case "(($ac_try" in |
|
|
9624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9625 | *) ac_try_echo=$ac_try;; |
|
|
9626 | esac |
|
|
9627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9628 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9629 | ac_status=$? |
|
|
9630 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9631 | rm -f conftest.er1 |
|
|
9632 | cat conftest.err >&5 |
|
|
9633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9634 | (exit $ac_status); } && { |
|
|
9635 | test -z "$ac_cxx_werror_flag" || |
|
|
9636 | test ! -s conftest.err |
|
|
9637 | } && test -s conftest.$ac_objext; then |
|
|
9638 | ac_lo=$ac_mid; break |
|
|
9639 | else |
|
|
9640 | echo "$as_me: failed program was:" >&5 |
|
|
9641 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9642 | |
|
|
9643 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
9644 | if test $ac_mid -le $ac_hi; then |
|
|
9645 | ac_lo= ac_hi= |
|
|
9646 | break |
|
|
9647 | fi |
|
|
9648 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
9649 | fi |
|
|
9650 | |
|
|
9651 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9652 | done |
|
|
9653 | else |
|
|
9654 | echo "$as_me: failed program was:" >&5 |
|
|
9655 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9656 | |
|
|
9657 | ac_lo= ac_hi= |
|
|
9658 | fi |
|
|
9659 | |
|
|
9660 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9661 | fi |
|
|
9662 | |
|
|
9663 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9664 | # Binary search between lo and hi bounds. |
|
|
9665 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
9666 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
9667 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9668 | /* confdefs.h. */ |
|
|
9669 | _ACEOF |
|
|
9670 | cat confdefs.h >>conftest.$ac_ext |
|
|
9671 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9672 | /* end confdefs.h. */ |
|
|
9673 | $ac_includes_default |
|
|
9674 | typedef int * ac__type_sizeof_; |
|
|
9675 | int |
|
|
9676 | main () |
|
|
9677 | { |
|
|
9678 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9679 | test_array [0] = 0 |
|
|
9680 | |
|
|
9681 | ; |
|
|
9682 | return 0; |
|
|
9683 | } |
|
|
9684 | _ACEOF |
|
|
9685 | rm -f conftest.$ac_objext |
|
|
9686 | if { (ac_try="$ac_compile" |
|
|
9687 | case "(($ac_try" in |
|
|
9688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9689 | *) ac_try_echo=$ac_try;; |
|
|
9690 | esac |
|
|
9691 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9692 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9693 | ac_status=$? |
|
|
9694 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9695 | rm -f conftest.er1 |
|
|
9696 | cat conftest.err >&5 |
|
|
9697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9698 | (exit $ac_status); } && { |
|
|
9699 | test -z "$ac_cxx_werror_flag" || |
|
|
9700 | test ! -s conftest.err |
|
|
9701 | } && test -s conftest.$ac_objext; then |
|
|
9702 | ac_hi=$ac_mid |
|
|
9703 | else |
|
|
9704 | echo "$as_me: failed program was:" >&5 |
|
|
9705 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9706 | |
|
|
9707 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
9708 | fi |
|
|
9709 | |
|
|
9710 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9711 | done |
|
|
9712 | case $ac_lo in |
|
|
9713 | ?*) ac_cv_sizeof_int_p=$ac_lo;; |
|
|
9714 | '') if test "$ac_cv_type_int_p" = yes; then |
|
|
9715 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *) |
|
|
9716 | See \`config.log' for more details." >&5 |
|
|
9717 | echo "$as_me: error: cannot compute sizeof (int *) |
|
|
9718 | See \`config.log' for more details." >&2;} |
|
|
9719 | { (exit 77); exit 77; }; } |
|
|
9720 | else |
|
|
9721 | ac_cv_sizeof_int_p=0 |
|
|
9722 | fi ;; |
|
|
9723 | esac |
|
|
9724 | else |
|
|
9725 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9726 | /* confdefs.h. */ |
|
|
9727 | _ACEOF |
|
|
9728 | cat confdefs.h >>conftest.$ac_ext |
|
|
9729 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9730 | /* end confdefs.h. */ |
|
|
9731 | $ac_includes_default |
|
|
9732 | typedef int * ac__type_sizeof_; |
|
|
9733 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9734 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9735 | #include <stdio.h> |
|
|
9736 | #include <stdlib.h> |
|
|
9737 | int |
|
|
9738 | main () |
|
|
9739 | { |
|
|
9740 | |
|
|
9741 | FILE *f = fopen ("conftest.val", "w"); |
|
|
9742 | if (! f) |
|
|
9743 | return 1; |
|
|
9744 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
9745 | { |
|
|
9746 | long int i = longval (); |
|
|
9747 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9748 | return 1; |
|
|
9749 | fprintf (f, "%ld\n", i); |
|
|
9750 | } |
|
|
9751 | else |
|
|
9752 | { |
|
|
9753 | unsigned long int i = ulongval (); |
|
|
9754 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9755 | return 1; |
|
|
9756 | fprintf (f, "%lu\n", i); |
|
|
9757 | } |
|
|
9758 | return ferror (f) || fclose (f) != 0; |
|
|
9759 | |
|
|
9760 | ; |
|
|
9761 | return 0; |
|
|
9762 | } |
|
|
9763 | _ACEOF |
|
|
9764 | rm -f conftest$ac_exeext |
|
|
9765 | if { (ac_try="$ac_link" |
|
|
9766 | case "(($ac_try" in |
|
|
9767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9768 | *) ac_try_echo=$ac_try;; |
|
|
9769 | esac |
|
|
9770 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9771 | (eval "$ac_link") 2>&5 |
|
|
9772 | ac_status=$? |
|
|
9773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9774 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
9775 | { (case "(($ac_try" in |
|
|
9776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9777 | *) ac_try_echo=$ac_try;; |
|
|
9778 | esac |
|
|
9779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9780 | (eval "$ac_try") 2>&5 |
|
|
9781 | ac_status=$? |
|
|
9782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9783 | (exit $ac_status); }; }; then |
|
|
9784 | ac_cv_sizeof_int_p=`cat conftest.val` |
|
|
9785 | else |
|
|
9786 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
9787 | echo "$as_me: failed program was:" >&5 |
|
|
9788 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9789 | |
|
|
9790 | ( exit $ac_status ) |
|
|
9791 | if test "$ac_cv_type_int_p" = yes; then |
|
|
9792 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *) |
|
|
9793 | See \`config.log' for more details." >&5 |
|
|
9794 | echo "$as_me: error: cannot compute sizeof (int *) |
|
|
9795 | See \`config.log' for more details." >&2;} |
|
|
9796 | { (exit 77); exit 77; }; } |
|
|
9797 | else |
|
|
9798 | ac_cv_sizeof_int_p=0 |
|
|
9799 | fi |
|
|
9800 | fi |
|
|
9801 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
9802 | fi |
|
|
9803 | rm -f conftest.val |
|
|
9804 | fi |
|
|
9805 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5 |
|
|
9806 | echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; } |
|
|
9807 | |
|
|
9808 | |
|
|
9809 | |
|
|
9810 | cat >>confdefs.h <<_ACEOF |
|
|
9811 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p |
|
|
9812 | _ACEOF |
|
|
9813 | |
|
|
9814 | |
|
|
9815 | |
|
|
9816 | |
|
|
9817 | { echo "$as_me:$LINENO: checking for int16_t" >&5 |
|
|
9818 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } |
|
|
9819 | if test "${rxvt_cv_int16_t+set}" = set; then |
|
|
9820 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9821 | else |
|
|
9822 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9823 | /* confdefs.h. */ |
|
|
9824 | _ACEOF |
|
|
9825 | cat confdefs.h >>conftest.$ac_ext |
|
|
9826 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9827 | /* end confdefs.h. */ |
|
|
9828 | #include <stdint.h> |
|
|
9829 | int |
|
|
9830 | main () |
|
|
9831 | { |
|
|
9832 | int16_t dummy; |
|
|
9833 | ; |
|
|
9834 | return 0; |
|
|
9835 | } |
|
|
9836 | _ACEOF |
|
|
9837 | rm -f conftest.$ac_objext |
|
|
9838 | if { (ac_try="$ac_compile" |
|
|
9839 | case "(($ac_try" in |
|
|
9840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9841 | *) ac_try_echo=$ac_try;; |
|
|
9842 | esac |
|
|
9843 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9844 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9845 | ac_status=$? |
|
|
9846 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9847 | rm -f conftest.er1 |
|
|
9848 | cat conftest.err >&5 |
|
|
9849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9850 | (exit $ac_status); } && { |
|
|
9851 | test -z "$ac_cxx_werror_flag" || |
|
|
9852 | test ! -s conftest.err |
|
|
9853 | } && test -s conftest.$ac_objext; then |
|
|
9854 | rxvt_cv_int16_t=yes |
|
|
9855 | else |
|
|
9856 | echo "$as_me: failed program was:" >&5 |
|
|
9857 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9858 | |
|
|
9859 | if test "$ac_cv_sizeof_char" -ge 2; then |
|
|
9860 | rxvt_cv_int16_t=" char" |
|
|
9861 | else |
|
|
9862 | if test "$ac_cv_sizeof_short" -ge 2; then |
|
|
9863 | rxvt_cv_int16_t=" short" |
|
|
9864 | else |
|
|
9865 | if test "$ac_cv_sizeof_int" -ge 2; then |
|
|
9866 | rxvt_cv_int16_t=" int" |
|
|
9867 | else |
|
|
9868 | if test "$ac_cv_sizeof_long" -ge 2; then |
|
|
9869 | rxvt_cv_int16_t=" long" |
|
|
9870 | else |
|
|
9871 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
|
|
9872 | rxvt_cv_int16_t=" long long" |
|
|
9873 | else |
|
|
9874 | rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default |
|
|
9875 | fi |
|
|
9876 | fi |
|
|
9877 | fi |
|
|
9878 | fi |
|
|
9879 | fi |
|
|
9880 | fi |
|
|
9881 | |
|
|
9882 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9883 | fi |
|
|
9884 | { echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5 |
|
|
9885 | echo "${ECHO_T}$rxvt_cv_int16_t" >&6; } |
|
|
9886 | if test x"$rxvt_cv_int16_t" != xyes; then |
|
|
9887 | rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;" |
|
|
9888 | else |
|
|
9889 | if test x"" = x; then |
|
|
9890 | rxvt_int16_typedef="/* typedef short int16_t; */" |
|
|
9891 | else |
|
|
9892 | rxvt_int16_typedef="/* typedef short int16_t; */" |
|
|
9893 | fi |
|
|
9894 | fi |
|
|
9895 | |
|
|
9896 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 |
|
|
9897 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } |
|
|
9898 | if test "${rxvt_cv_uint16_t+set}" = set; then |
|
|
9899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9900 | else |
|
|
9901 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9902 | /* confdefs.h. */ |
|
|
9903 | _ACEOF |
|
|
9904 | cat confdefs.h >>conftest.$ac_ext |
|
|
9905 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9906 | /* end confdefs.h. */ |
|
|
9907 | #include <stdint.h> |
|
|
9908 | int |
|
|
9909 | main () |
|
|
9910 | { |
|
|
9911 | uint16_t dummy; |
|
|
9912 | ; |
|
|
9913 | return 0; |
|
|
9914 | } |
|
|
9915 | _ACEOF |
|
|
9916 | rm -f conftest.$ac_objext |
|
|
9917 | if { (ac_try="$ac_compile" |
|
|
9918 | case "(($ac_try" in |
|
|
9919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9920 | *) ac_try_echo=$ac_try;; |
|
|
9921 | esac |
|
|
9922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9923 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9924 | ac_status=$? |
|
|
9925 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9926 | rm -f conftest.er1 |
|
|
9927 | cat conftest.err >&5 |
|
|
9928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9929 | (exit $ac_status); } && { |
|
|
9930 | test -z "$ac_cxx_werror_flag" || |
|
|
9931 | test ! -s conftest.err |
|
|
9932 | } && test -s conftest.$ac_objext; then |
|
|
9933 | rxvt_cv_uint16_t=yes |
|
|
9934 | else |
|
|
9935 | echo "$as_me: failed program was:" >&5 |
|
|
9936 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9937 | |
|
|
9938 | if test "$ac_cv_sizeof_char" -ge 2; then |
|
|
9939 | rxvt_cv_uint16_t="unsigned char" |
|
|
9940 | else |
|
|
9941 | if test "$ac_cv_sizeof_short" -ge 2; then |
|
|
9942 | rxvt_cv_uint16_t="unsigned short" |
|
|
9943 | else |
|
|
9944 | if test "$ac_cv_sizeof_int" -ge 2; then |
|
|
9945 | rxvt_cv_uint16_t="unsigned int" |
|
|
9946 | else |
|
|
9947 | if test "$ac_cv_sizeof_long" -ge 2; then |
|
|
9948 | rxvt_cv_uint16_t="unsigned long" |
|
|
9949 | else |
|
|
9950 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
|
|
9951 | rxvt_cv_uint16_t="unsigned long long" |
|
|
9952 | else |
|
|
9953 | rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default |
|
|
9954 | fi |
|
|
9955 | fi |
|
|
9956 | fi |
|
|
9957 | fi |
|
|
9958 | fi |
|
|
9959 | fi |
|
|
9960 | |
|
|
9961 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9962 | fi |
|
|
9963 | { echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5 |
|
|
9964 | echo "${ECHO_T}$rxvt_cv_uint16_t" >&6; } |
|
|
9965 | if test x"$rxvt_cv_uint16_t" != xyes; then |
|
|
9966 | rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;" |
|
|
9967 | else |
|
|
9968 | if test x"unsigned" = x; then |
|
|
9969 | rxvt_uint16_typedef="/* typedef short uint16_t; */" |
|
|
9970 | else |
|
|
9971 | rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */" |
|
|
9972 | fi |
|
|
9973 | fi |
|
|
9974 | |
|
|
9975 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
|
|
9976 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
|
|
9977 | if test "${rxvt_cv_int32_t+set}" = set; then |
|
|
9978 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9979 | else |
|
|
9980 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9981 | /* confdefs.h. */ |
|
|
9982 | _ACEOF |
|
|
9983 | cat confdefs.h >>conftest.$ac_ext |
|
|
9984 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9985 | /* end confdefs.h. */ |
|
|
9986 | #include <stdint.h> |
|
|
9987 | int |
|
|
9988 | main () |
|
|
9989 | { |
|
|
9990 | int32_t dummy; |
|
|
9991 | ; |
|
|
9992 | return 0; |
|
|
9993 | } |
|
|
9994 | _ACEOF |
|
|
9995 | rm -f conftest.$ac_objext |
|
|
9996 | if { (ac_try="$ac_compile" |
|
|
9997 | case "(($ac_try" in |
|
|
9998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9999 | *) ac_try_echo=$ac_try;; |
|
|
10000 | esac |
|
|
10001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10002 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10003 | ac_status=$? |
|
|
10004 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10005 | rm -f conftest.er1 |
|
|
10006 | cat conftest.err >&5 |
|
|
10007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10008 | (exit $ac_status); } && { |
|
|
10009 | test -z "$ac_cxx_werror_flag" || |
|
|
10010 | test ! -s conftest.err |
|
|
10011 | } && test -s conftest.$ac_objext; then |
|
|
10012 | rxvt_cv_int32_t=yes |
|
|
10013 | else |
|
|
10014 | echo "$as_me: failed program was:" >&5 |
|
|
10015 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10016 | |
|
|
10017 | if test "$ac_cv_sizeof_char" -ge 4; then |
|
|
10018 | rxvt_cv_int32_t=" char" |
|
|
10019 | else |
|
|
10020 | if test "$ac_cv_sizeof_short" -ge 4; then |
|
|
10021 | rxvt_cv_int32_t=" short" |
|
|
10022 | else |
|
|
10023 | if test "$ac_cv_sizeof_int" -ge 4; then |
|
|
10024 | rxvt_cv_int32_t=" int" |
|
|
10025 | else |
|
|
10026 | if test "$ac_cv_sizeof_long" -ge 4; then |
|
|
10027 | rxvt_cv_int32_t=" long" |
|
|
10028 | else |
|
|
10029 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
|
|
10030 | rxvt_cv_int32_t=" long long" |
|
|
10031 | else |
|
|
10032 | rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default |
|
|
10033 | fi |
|
|
10034 | fi |
|
|
10035 | fi |
|
|
10036 | fi |
|
|
10037 | fi |
|
|
10038 | fi |
|
|
10039 | |
|
|
10040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10041 | fi |
|
|
10042 | { echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5 |
|
|
10043 | echo "${ECHO_T}$rxvt_cv_int32_t" >&6; } |
|
|
10044 | if test x"$rxvt_cv_int32_t" != xyes; then |
|
|
10045 | rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;" |
|
|
10046 | else |
|
|
10047 | if test x"" = x; then |
|
|
10048 | rxvt_int32_typedef="/* typedef int int32_t; */" |
|
|
10049 | else |
|
|
10050 | rxvt_int32_typedef="/* typedef int int32_t; */" |
|
|
10051 | fi |
|
|
10052 | fi |
|
|
10053 | |
|
|
10054 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
|
|
10055 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
|
|
10056 | if test "${rxvt_cv_uint32_t+set}" = set; then |
|
|
10057 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10058 | else |
|
|
10059 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10060 | /* confdefs.h. */ |
|
|
10061 | _ACEOF |
|
|
10062 | cat confdefs.h >>conftest.$ac_ext |
|
|
10063 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10064 | /* end confdefs.h. */ |
|
|
10065 | #include <stdint.h> |
|
|
10066 | int |
|
|
10067 | main () |
|
|
10068 | { |
|
|
10069 | uint32_t dummy; |
|
|
10070 | ; |
|
|
10071 | return 0; |
|
|
10072 | } |
|
|
10073 | _ACEOF |
|
|
10074 | rm -f conftest.$ac_objext |
|
|
10075 | if { (ac_try="$ac_compile" |
|
|
10076 | case "(($ac_try" in |
|
|
10077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10078 | *) ac_try_echo=$ac_try;; |
|
|
10079 | esac |
|
|
10080 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10081 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10082 | ac_status=$? |
|
|
10083 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10084 | rm -f conftest.er1 |
|
|
10085 | cat conftest.err >&5 |
|
|
10086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10087 | (exit $ac_status); } && { |
|
|
10088 | test -z "$ac_cxx_werror_flag" || |
|
|
10089 | test ! -s conftest.err |
|
|
10090 | } && test -s conftest.$ac_objext; then |
|
|
10091 | rxvt_cv_uint32_t=yes |
|
|
10092 | else |
|
|
10093 | echo "$as_me: failed program was:" >&5 |
|
|
10094 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10095 | |
|
|
10096 | if test "$ac_cv_sizeof_char" -ge 4; then |
|
|
10097 | rxvt_cv_uint32_t="unsigned char" |
|
|
10098 | else |
|
|
10099 | if test "$ac_cv_sizeof_short" -ge 4; then |
|
|
10100 | rxvt_cv_uint32_t="unsigned short" |
|
|
10101 | else |
|
|
10102 | if test "$ac_cv_sizeof_int" -ge 4; then |
|
|
10103 | rxvt_cv_uint32_t="unsigned int" |
|
|
10104 | else |
|
|
10105 | if test "$ac_cv_sizeof_long" -ge 4; then |
|
|
10106 | rxvt_cv_uint32_t="unsigned long" |
|
|
10107 | else |
|
|
10108 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
|
|
10109 | rxvt_cv_uint32_t="unsigned long long" |
|
|
10110 | else |
|
|
10111 | rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default |
|
|
10112 | fi |
|
|
10113 | fi |
|
|
10114 | fi |
|
|
10115 | fi |
|
|
10116 | fi |
|
|
10117 | fi |
|
|
10118 | |
|
|
10119 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10120 | fi |
|
|
10121 | { echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5 |
|
|
10122 | echo "${ECHO_T}$rxvt_cv_uint32_t" >&6; } |
|
|
10123 | if test x"$rxvt_cv_uint32_t" != xyes; then |
|
|
10124 | rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;" |
|
|
10125 | else |
|
|
10126 | if test x"unsigned" = x; then |
|
|
10127 | rxvt_uint32_typedef="/* typedef int uint32_t; */" |
|
|
10128 | else |
|
|
10129 | rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" |
|
|
10130 | fi |
|
|
10131 | fi |
|
|
10132 | |
|
|
10133 | if test "$ac_cv_sizeof_int_p" -eq 8; then |
|
|
10134 | rxvt_intp_define="#define intp_t int64_t" |
|
|
10135 | rxvt_u_intp_define="#define u_intp_t u_int64_t" |
|
|
10136 | else |
|
|
10137 | if test "$ac_cv_sizeof_int_p" -eq 4; then |
|
|
10138 | rxvt_intp_define="#define intp_t int32_t" |
|
|
10139 | rxvt_u_intp_define="#define u_intp_t u_int32_t" |
|
|
10140 | else |
|
|
10141 | if test "$ac_cv_sizeof_int_p" -eq 2; then |
|
|
10142 | rxvt_intp_define="#define intp_t int16_t" |
|
|
10143 | rxvt_u_intp_define="#define u_intp_t u_int16_t" |
|
|
10144 | else |
|
|
10145 | rxvt_intp_define="#error set intp_t" |
|
|
10146 | rxvt_u_intp_define="#error set u_intp_t" |
|
|
10147 | fi |
|
|
10148 | fi |
|
|
10149 | fi |
|
|
10150 | |
|
|
10151 | |
|
|
10152 | |
|
|
10153 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
|
|
10154 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } |
|
|
10155 | if test "${ac_cv_type_signal+set}" = set; then |
|
|
10156 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10157 | else |
|
|
10158 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10159 | /* confdefs.h. */ |
|
|
10160 | _ACEOF |
|
|
10161 | cat confdefs.h >>conftest.$ac_ext |
|
|
10162 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10163 | /* end confdefs.h. */ |
|
|
10164 | #include <sys/types.h> |
|
|
10165 | #include <signal.h> |
|
|
10166 | |
|
|
10167 | int |
|
|
10168 | main () |
|
|
10169 | { |
|
|
10170 | return *(signal (0, 0)) (0) == 1; |
|
|
10171 | ; |
|
|
10172 | return 0; |
|
|
10173 | } |
|
|
10174 | _ACEOF |
|
|
10175 | rm -f conftest.$ac_objext |
|
|
10176 | if { (ac_try="$ac_compile" |
|
|
10177 | case "(($ac_try" in |
|
|
10178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10179 | *) ac_try_echo=$ac_try;; |
|
|
10180 | esac |
|
|
10181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10182 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10183 | ac_status=$? |
|
|
10184 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10185 | rm -f conftest.er1 |
|
|
10186 | cat conftest.err >&5 |
|
|
10187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10188 | (exit $ac_status); } && { |
|
|
10189 | test -z "$ac_cxx_werror_flag" || |
|
|
10190 | test ! -s conftest.err |
|
|
10191 | } && test -s conftest.$ac_objext; then |
|
|
10192 | ac_cv_type_signal=int |
|
|
10193 | else |
|
|
10194 | echo "$as_me: failed program was:" >&5 |
|
|
10195 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10196 | |
|
|
10197 | ac_cv_type_signal=void |
|
|
10198 | fi |
|
|
10199 | |
|
|
10200 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10201 | fi |
|
|
10202 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
|
|
10203 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
|
|
10204 | |
|
|
10205 | cat >>confdefs.h <<_ACEOF |
|
|
10206 | #define RETSIGTYPE $ac_cv_type_signal |
|
|
10207 | _ACEOF |
|
|
10208 | |
|
|
10209 | |
8411 | |
10210 | |
8412 | |
10211 | |
8413 | |
10212 | for ac_func in unsetenv |
8414 | for ac_func in unsetenv |
10213 | do |
8415 | do |
… | |
… | |
10356 | |
8558 | |
10357 | |
8559 | |
10358 | |
8560 | |
10359 | |
8561 | |
10360 | for ac_func in \ |
8562 | for ac_func in \ |
|
|
8563 | ttyslot \ |
10361 | updwtmp \ |
8564 | updwtmp \ |
10362 | updwtmpx \ |
8565 | updwtmpx \ |
10363 | updlastlogx \ |
|
|
10364 | |
8566 | |
10365 | do |
8567 | do |
10366 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8568 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10367 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8569 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10368 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
8570 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
… | |
… | |
11789 | |
9991 | |
11790 | cat >>confdefs.h <<_ACEOF |
9992 | cat >>confdefs.h <<_ACEOF |
11791 | #define LASTLOG_FILE "$path_lastlog" |
9993 | #define LASTLOG_FILE "$path_lastlog" |
11792 | _ACEOF |
9994 | _ACEOF |
11793 | |
9995 | |
|
|
9996 | if test -d "$path_lastlog"; then |
|
|
9997 | |
|
|
9998 | cat >>confdefs.h <<\_ACEOF |
|
|
9999 | #define LASTLOG_IS_DIR 1 |
|
|
10000 | _ACEOF |
|
|
10001 | |
|
|
10002 | fi |
11794 | fi |
10003 | fi |
11795 | |
10004 | |
11796 | { echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
10005 | { echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
11797 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } |
10006 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } |
11798 | if test "${path_lastlogx+set}" = set; then |
10007 | if test "${path_lastlogx+set}" = set; then |
… | |
… | |
12288 | |
10497 | |
12289 | |
10498 | |
12290 | |
10499 | |
12291 | |
10500 | |
12292 | |
10501 | |
|
|
10502 | |
12293 | for ac_header in \ |
10503 | for ac_header in \ |
12294 | pty.h \ |
10504 | pty.h \ |
12295 | util.h \ |
10505 | util.h \ |
12296 | libutil.h \ |
10506 | libutil.h \ |
12297 | sys/ioctl.h \ |
10507 | sys/ioctl.h \ |
12298 | sys/stropts.h \ |
10508 | sys/stropts.h \ |
|
|
10509 | stropts.h \ |
12299 | |
10510 | |
12300 | do |
10511 | do |
12301 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10512 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12302 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10513 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
12303 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10514 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
… | |
… | |
12971 | echo "${ECHO_T}no" >&6; } |
11182 | echo "${ECHO_T}no" >&6; } |
12972 | fi |
11183 | fi |
12973 | |
11184 | |
12974 | |
11185 | |
12975 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
11186 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
12976 | LIBS="$LIBS `$PKG_CONFIG xft --libs`" |
11187 | X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS" |
12977 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
11188 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
12978 | else |
11189 | else |
12979 | # Extract the first word of "xft-config", so it can be a program name with args. |
11190 | # Extract the first word of "xft-config", so it can be a program name with args. |
12980 | set dummy xft-config; ac_word=$2 |
11191 | set dummy xft-config; ac_word=$2 |
12981 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11192 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
… | |
… | |
13016 | echo "${ECHO_T}no" >&6; } |
11227 | echo "${ECHO_T}no" >&6; } |
13017 | fi |
11228 | fi |
13018 | |
11229 | |
13019 | |
11230 | |
13020 | if test $XFT_CONFIG != no; then |
11231 | if test $XFT_CONFIG != no; then |
13021 | LIBS="$LIBS `$XFT_CONFIG --libs`" |
11232 | X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" |
13022 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
11233 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
13023 | fi |
11234 | fi |
13024 | fi |
11235 | fi |
13025 | |
11236 | |
|
|
11237 | save_LIBS="$LIBS" |
|
|
11238 | LIBS="$LIBS $X_LIBS" |
13026 | |
11239 | |
13027 | for ac_header in X11/Xft/Xft.h |
11240 | for ac_header in X11/Xft/Xft.h |
13028 | do |
11241 | do |
13029 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11242 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13030 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11243 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
… | |
… | |
13163 | support_xft=no |
11376 | support_xft=no |
13164 | fi |
11377 | fi |
13165 | |
11378 | |
13166 | done |
11379 | done |
13167 | |
11380 | |
13168 | |
|
|
13169 | { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
11381 | { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
13170 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
11382 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
13171 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
11383 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
13172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13173 | else |
11385 | else |
13174 | ac_check_lib_save_LIBS=$LIBS |
11386 | ac_check_lib_save_LIBS=$LIBS |
… | |
… | |
13226 | LIBS=$ac_check_lib_save_LIBS |
11438 | LIBS=$ac_check_lib_save_LIBS |
13227 | fi |
11439 | fi |
13228 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
11440 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
13229 | echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } |
11441 | echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } |
13230 | if test $ac_cv_lib_Xft_XftDrawString32 = yes; then |
11442 | if test $ac_cv_lib_Xft_XftDrawString32 = yes; then |
13231 | cat >>confdefs.h <<_ACEOF |
11443 | : |
13232 | #define HAVE_LIBXFT 1 |
|
|
13233 | _ACEOF |
|
|
13234 | |
|
|
13235 | LIBS="-lXft $LIBS" |
|
|
13236 | |
|
|
13237 | else |
11444 | else |
13238 | support_xft=no |
11445 | support_xft=no |
13239 | fi |
11446 | fi |
13240 | |
11447 | |
|
|
11448 | LIBS="$save_LIBS" |
13241 | |
11449 | |
13242 | if test x$support_xft = xyes; then |
11450 | if test x$support_xft = xyes; then |
13243 | |
11451 | |
13244 | cat >>confdefs.h <<\_ACEOF |
11452 | cat >>confdefs.h <<\_ACEOF |
13245 | #define XFT 1 |
11453 | #define XFT 1 |
… | |
… | |
13329 | _ACEOF |
11537 | _ACEOF |
13330 | |
11538 | |
13331 | fi |
11539 | fi |
13332 | |
11540 | |
13333 | |
11541 | |
|
|
11542 | scrolltypes=plain |
|
|
11543 | |
|
|
11544 | cat >>confdefs.h <<\_ACEOF |
|
|
11545 | #define PLAIN_SCROLLBAR 1 |
|
|
11546 | _ACEOF |
|
|
11547 | |
|
|
11548 | |
13334 | if test x$support_scroll_rxvt = xyes; then |
11549 | if test x$support_scroll_rxvt = xyes; then |
13335 | |
11550 | |
13336 | cat >>confdefs.h <<\_ACEOF |
11551 | cat >>confdefs.h <<\_ACEOF |
13337 | #define RXVT_SCROLLBAR 1 |
11552 | #define RXVT_SCROLLBAR 1 |
13338 | _ACEOF |
11553 | _ACEOF |
13339 | |
11554 | |
13340 | scrolltypes="rxvt" |
11555 | scrolltypes="$scrolltypes rxvt" |
13341 | fi |
11556 | fi |
13342 | if test x$support_scroll_next = xyes; then |
11557 | if test x$support_scroll_next = xyes; then |
13343 | |
11558 | |
13344 | cat >>confdefs.h <<\_ACEOF |
11559 | cat >>confdefs.h <<\_ACEOF |
13345 | #define NEXT_SCROLLBAR 1 |
11560 | #define NEXT_SCROLLBAR 1 |
… | |
… | |
13352 | cat >>confdefs.h <<\_ACEOF |
11567 | cat >>confdefs.h <<\_ACEOF |
13353 | #define XTERM_SCROLLBAR 1 |
11568 | #define XTERM_SCROLLBAR 1 |
13354 | _ACEOF |
11569 | _ACEOF |
13355 | |
11570 | |
13356 | scrolltypes="$scrolltypes xterm" |
11571 | scrolltypes="$scrolltypes xterm" |
13357 | fi |
|
|
13358 | if test x$support_scroll_plain = xyes; then |
|
|
13359 | |
|
|
13360 | cat >>confdefs.h <<\_ACEOF |
|
|
13361 | #define PLAIN_SCROLLBAR 1 |
|
|
13362 | _ACEOF |
|
|
13363 | |
|
|
13364 | scrolltypes="$scrolltypes plain" |
|
|
13365 | fi |
11572 | fi |
13366 | if test x$support_pointer_blank = xyes; then |
11573 | if test x$support_pointer_blank = xyes; then |
13367 | |
11574 | |
13368 | cat >>confdefs.h <<\_ACEOF |
11575 | cat >>confdefs.h <<\_ACEOF |
13369 | #define POINTER_BLANK 1 |
11576 | #define POINTER_BLANK 1 |
… | |
… | |
13632 | _ACEOF |
11839 | _ACEOF |
13633 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
11840 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
13634 | rm -f conftest.sed |
11841 | rm -f conftest.sed |
13635 | |
11842 | |
13636 | |
11843 | |
13637 | |
|
|
13638 | |
|
|
13639 | |
|
|
13640 | if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13641 | include_stdint_h="#include <stdint.h>" |
|
|
13642 | else |
|
|
13643 | include_stdint_h="/* #include <stdint.h> */" |
|
|
13644 | fi |
|
|
13645 | if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13646 | include_stdarg_h="#include <cstdarg>" |
|
|
13647 | else |
|
|
13648 | include_stdarg_h="/* #include <cstdarg> */" |
|
|
13649 | fi |
|
|
13650 | if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13651 | include_stdlib_h="#include <cstdlib>" |
|
|
13652 | else |
|
|
13653 | include_stdlib_h="/* #include <cstdlib> */" |
|
|
13654 | fi |
|
|
13655 | if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13656 | include_unistd_h="#include <unistd.h>" |
|
|
13657 | else |
|
|
13658 | include_unistd_h="/* #include <unistd.h> */" |
|
|
13659 | fi |
|
|
13660 | if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13661 | include_string_h="#include <cstring>" |
|
|
13662 | else |
|
|
13663 | include_string_h="/* #include <cstring> */" |
|
|
13664 | fi |
|
|
13665 | if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13666 | include_fcntl_h="#include <fcntl.h>" |
|
|
13667 | else |
|
|
13668 | include_fcntl_h="/* #include <fcntl.h> */" |
|
|
13669 | fi |
|
|
13670 | if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13671 | include_util_h="#include <util.h>" |
|
|
13672 | else |
|
|
13673 | include_util_h="/* #include <util.h> */" |
|
|
13674 | fi |
|
|
13675 | if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13676 | include_assert_h="#include <assert.h>" |
|
|
13677 | else |
|
|
13678 | include_assert_h="/* #include <assert.h> */" |
|
|
13679 | fi |
|
|
13680 | if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13681 | include_sys_ioctl_h="#include <sys/ioctl.h>" |
|
|
13682 | else |
|
|
13683 | include_sys_ioctl_h="/* #include <sys/ioctl.h> */" |
|
|
13684 | fi |
|
|
13685 | if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13686 | include_sys_select_h="#include <sys/select.h>" |
|
|
13687 | else |
|
|
13688 | include_sys_select_h="/* #include <sys/select.h> */" |
|
|
13689 | fi |
|
|
13690 | if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13691 | include_sys_strredir_h="#include <sys/strredir.h>" |
|
|
13692 | else |
|
|
13693 | include_sys_strredir_h="/* #include <sys/strredir.h> */" |
|
|
13694 | fi |
|
|
13695 | if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13696 | include_sys_time_h="#include <sys/time.h>" |
|
|
13697 | else |
|
|
13698 | include_sys_time_h="/* #include <sys/time.h> */" |
|
|
13699 | fi |
|
|
13700 | if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then |
|
|
13701 | include_time_h="#include <time.h>" |
|
|
13702 | else |
|
|
13703 | include_time_h="/* #include <time.h> */" |
|
|
13704 | fi |
|
|
13705 | |
|
|
13706 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" |
11844 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile" |
13707 | |
11845 | |
13708 | cat >confcache <<\_ACEOF |
11846 | cat >confcache <<\_ACEOF |
13709 | # This file is a shell script that caches the results of configure |
11847 | # This file is a shell script that caches the results of configure |
13710 | # tests run on this system so they can be shared between configure |
11848 | # tests run on this system so they can be shared between configure |
13711 | # scripts and configure runs, see configure's option --config-cache. |
11849 | # scripts and configure runs, see configure's option --config-cache. |
… | |
… | |
14260 | case $ac_config_target in |
12398 | case $ac_config_target in |
14261 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; |
12399 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; |
14262 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
12400 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
14263 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
12401 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
14264 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
12402 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
14265 | "src/rxvtlib.h") CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; |
|
|
14266 | |
12403 | |
14267 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
12404 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
14268 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
12405 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
14269 | { (exit 1); exit 1; }; };; |
12406 | { (exit 1); exit 1; }; };; |
14270 | esac |
12407 | esac |
… | |
… | |
14369 | host_cpu!$host_cpu$ac_delim |
12506 | host_cpu!$host_cpu$ac_delim |
14370 | host_vendor!$host_vendor$ac_delim |
12507 | host_vendor!$host_vendor$ac_delim |
14371 | host_os!$host_os$ac_delim |
12508 | host_os!$host_os$ac_delim |
14372 | VERSION!$VERSION$ac_delim |
12509 | VERSION!$VERSION$ac_delim |
14373 | DATE!$DATE$ac_delim |
12510 | DATE!$DATE$ac_delim |
14374 | LSMDATE!$LSMDATE$ac_delim |
|
|
14375 | LIBVERSION!$LIBVERSION$ac_delim |
|
|
14376 | CC!$CC$ac_delim |
12511 | CC!$CC$ac_delim |
14377 | CFLAGS!$CFLAGS$ac_delim |
12512 | CFLAGS!$CFLAGS$ac_delim |
14378 | LDFLAGS!$LDFLAGS$ac_delim |
12513 | LDFLAGS!$LDFLAGS$ac_delim |
14379 | CPPFLAGS!$CPPFLAGS$ac_delim |
12514 | CPPFLAGS!$CPPFLAGS$ac_delim |
14380 | ac_ct_CC!$ac_ct_CC$ac_delim |
12515 | ac_ct_CC!$ac_ct_CC$ac_delim |
… | |
… | |
14388 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
12523 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
14389 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
12524 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
14390 | GREP!$GREP$ac_delim |
12525 | GREP!$GREP$ac_delim |
14391 | EGREP!$EGREP$ac_delim |
12526 | EGREP!$EGREP$ac_delim |
14392 | LINKER!$LINKER$ac_delim |
12527 | LINKER!$LINKER$ac_delim |
14393 | INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim |
|
|
14394 | RXVTNAME!$RXVTNAME$ac_delim |
12528 | RXVTNAME!$RXVTNAME$ac_delim |
14395 | CXXCPP!$CXXCPP$ac_delim |
12529 | CXXCPP!$CXXCPP$ac_delim |
14396 | TIC!$TIC$ac_delim |
12530 | TIC!$TIC$ac_delim |
14397 | XMKMF!$XMKMF$ac_delim |
12531 | XMKMF!$XMKMF$ac_delim |
14398 | X_CFLAGS!$X_CFLAGS$ac_delim |
12532 | X_CFLAGS!$X_CFLAGS$ac_delim |
14399 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
12533 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
14400 | X_LIBS!$X_LIBS$ac_delim |
12534 | X_LIBS!$X_LIBS$ac_delim |
14401 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
12535 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
14402 | afterimage_config!$afterimage_config$ac_delim |
12536 | afterimage_config!$afterimage_config$ac_delim |
14403 | rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim |
|
|
14404 | rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim |
|
|
14405 | rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim |
|
|
14406 | rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim |
|
|
14407 | rxvt_intp_define!$rxvt_intp_define$ac_delim |
|
|
14408 | rxvt_u_intp_define!$rxvt_u_intp_define$ac_delim |
|
|
14409 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
12537 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
14410 | XFT_CONFIG!$XFT_CONFIG$ac_delim |
12538 | XFT_CONFIG!$XFT_CONFIG$ac_delim |
14411 | PERL!$PERL$ac_delim |
12539 | PERL!$PERL$ac_delim |
14412 | PERLLIB!$PERLLIB$ac_delim |
12540 | PERLLIB!$PERLLIB$ac_delim |
14413 | PERLFLAGS!$PERLFLAGS$ac_delim |
12541 | PERLFLAGS!$PERLFLAGS$ac_delim |
14414 | PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim |
12542 | PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim |
14415 | IF_PERL!$IF_PERL$ac_delim |
12543 | IF_PERL!$IF_PERL$ac_delim |
14416 | PERL_O!$PERL_O$ac_delim |
12544 | PERL_O!$PERL_O$ac_delim |
14417 | AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim |
12545 | AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim |
14418 | AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim |
12546 | AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim |
14419 | include_stdint_h!$include_stdint_h$ac_delim |
12547 | LIBOBJS!$LIBOBJS$ac_delim |
14420 | include_stdarg_h!$include_stdarg_h$ac_delim |
12548 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
14421 | include_stdlib_h!$include_stdlib_h$ac_delim |
|
|
14422 | include_unistd_h!$include_unistd_h$ac_delim |
|
|
14423 | include_string_h!$include_string_h$ac_delim |
|
|
14424 | _ACEOF |
12549 | _ACEOF |
14425 | |
12550 | |
14426 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
12551 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 85; then |
14427 | break |
12552 | break |
14428 | elif $ac_last_try; then |
12553 | elif $ac_last_try; then |
14429 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
12554 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
14430 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
12555 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
14431 | { (exit 1); exit 1; }; } |
12556 | { (exit 1); exit 1; }; } |
… | |
… | |
14440 | ac_eof=`expr $ac_eof + 1` |
12565 | ac_eof=`expr $ac_eof + 1` |
14441 | fi |
12566 | fi |
14442 | |
12567 | |
14443 | cat >>$CONFIG_STATUS <<_ACEOF |
12568 | cat >>$CONFIG_STATUS <<_ACEOF |
14444 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
12569 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
14445 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
|
|
14446 | _ACEOF |
|
|
14447 | sed ' |
|
|
14448 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
|
|
14449 | s/^/s,@/; s/!/@,|#_!!_#|/ |
|
|
14450 | :n |
|
|
14451 | t n |
|
|
14452 | s/'"$ac_delim"'$/,g/; t |
|
|
14453 | s/$/\\/; p |
|
|
14454 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
|
|
14455 | ' >>$CONFIG_STATUS <conf$$subs.sed |
|
|
14456 | rm -f conf$$subs.sed |
|
|
14457 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
14458 | CEOF$ac_eof |
|
|
14459 | _ACEOF |
|
|
14460 | |
|
|
14461 | |
|
|
14462 | ac_delim='%!_!# ' |
|
|
14463 | for ac_last_try in false false false false false :; do |
|
|
14464 | cat >conf$$subs.sed <<_ACEOF |
|
|
14465 | include_fcntl_h!$include_fcntl_h$ac_delim |
|
|
14466 | include_util_h!$include_util_h$ac_delim |
|
|
14467 | include_assert_h!$include_assert_h$ac_delim |
|
|
14468 | include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim |
|
|
14469 | include_sys_select_h!$include_sys_select_h$ac_delim |
|
|
14470 | include_sys_strredir_h!$include_sys_strredir_h$ac_delim |
|
|
14471 | include_sys_time_h!$include_sys_time_h$ac_delim |
|
|
14472 | include_time_h!$include_time_h$ac_delim |
|
|
14473 | LIBOBJS!$LIBOBJS$ac_delim |
|
|
14474 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
|
|
14475 | _ACEOF |
|
|
14476 | |
|
|
14477 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then |
|
|
14478 | break |
|
|
14479 | elif $ac_last_try; then |
|
|
14480 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
|
|
14481 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
|
|
14482 | { (exit 1); exit 1; }; } |
|
|
14483 | else |
|
|
14484 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|
|
14485 | fi |
|
|
14486 | done |
|
|
14487 | |
|
|
14488 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
|
|
14489 | if test -n "$ac_eof"; then |
|
|
14490 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
|
|
14491 | ac_eof=`expr $ac_eof + 1` |
|
|
14492 | fi |
|
|
14493 | |
|
|
14494 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
14495 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
|
|
14496 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
12570 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
14497 | _ACEOF |
12571 | _ACEOF |
14498 | sed ' |
12572 | sed ' |
14499 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
12573 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
14500 | s/^/s,@/; s/!/@,|#_!!_#|/ |
12574 | s/^/s,@/; s/!/@,|#_!!_#|/ |
… | |
… | |
14753 | s&@builddir@&$ac_builddir&;t t |
12827 | s&@builddir@&$ac_builddir&;t t |
14754 | s&@abs_builddir@&$ac_abs_builddir&;t t |
12828 | s&@abs_builddir@&$ac_abs_builddir&;t t |
14755 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
12829 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
14756 | s&@INSTALL@&$ac_INSTALL&;t t |
12830 | s&@INSTALL@&$ac_INSTALL&;t t |
14757 | $ac_datarootdir_hack |
12831 | $ac_datarootdir_hack |
14758 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
12832 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out |
14759 | |
12833 | |
14760 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
12834 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
14761 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
12835 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
14762 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
12836 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
14763 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
12837 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |