… | |
… | |
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) |
… | |
… | |
1927 | echo "configuring for rxvt $VERSION" |
1903 | echo "configuring for rxvt $VERSION" |
1928 | echo "" |
1904 | echo "" |
1929 | |
1905 | |
1930 | orig_CXXFLAGS="$CXXFLAGS" |
1906 | orig_CXXFLAGS="$CXXFLAGS" |
1931 | |
1907 | |
1932 | |
|
|
1933 | ac_ext=c |
1908 | ac_ext=c |
1934 | ac_cpp='$CPP $CPPFLAGS' |
1909 | ac_cpp='$CPP $CPPFLAGS' |
1935 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1910 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1936 | 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' |
1937 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1912 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
… | |
… | |
3715 | echo "${ECHO_T}no" >&6; } |
3690 | echo "${ECHO_T}no" >&6; } |
3716 | fi |
3691 | fi |
3717 | rm -f conftest* |
3692 | rm -f conftest* |
3718 | |
3693 | |
3719 | |
3694 | |
|
|
3695 | |
|
|
3696 | cat >>confdefs.h <<\_ACEOF |
|
|
3697 | #define _GNU_SOURCE 1 |
|
|
3698 | _ACEOF |
|
|
3699 | |
|
|
3700 | |
3720 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
3701 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
3721 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } |
3702 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } |
3722 | if test "${ac_cv_search_strerror+set}" = set; then |
3703 | if test "${ac_cv_search_strerror+set}" = set; then |
3723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3704 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3724 | else |
3705 | else |
… | |
… | |
3919 | CXXFLAGS="-O" |
3900 | CXXFLAGS="-O" |
3920 | fi |
3901 | fi |
3921 | CFLAGS="$CXXFLAGS" |
3902 | CFLAGS="$CXXFLAGS" |
3922 | fi |
3903 | fi |
3923 | |
3904 | |
3924 | |
|
|
3925 | cat >>confdefs.h <<\_ACEOF |
|
|
3926 | #define _GNU_SOURCE 1 |
|
|
3927 | _ACEOF |
|
|
3928 | |
|
|
3929 | |
|
|
3930 | case $host in |
3905 | case $host in |
3931 | *-*-solaris* ) |
3906 | *-*-solaris* ) |
3932 | |
3907 | |
3933 | cat >>confdefs.h <<\_ACEOF |
3908 | cat >>confdefs.h <<\_ACEOF |
3934 | #define _XOPEN_SOURCE 500 |
3909 | #define _XOPEN_SOURCE 500 |
3935 | _ACEOF |
3910 | _ACEOF |
3936 | |
3911 | |
3937 | ;; |
3912 | ;; |
3938 | esac |
3913 | esac |
3939 | |
|
|
3940 | |
3914 | |
3941 | { echo "$as_me:$LINENO: checking for setlocale" >&5 |
3915 | { echo "$as_me:$LINENO: checking for setlocale" >&5 |
3942 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } |
3916 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } |
3943 | if test "${ac_cv_func_setlocale+set}" = set; then |
3917 | if test "${ac_cv_func_setlocale+set}" = set; then |
3944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
4391 | fi |
4365 | fi |
4392 | |
4366 | |
4393 | fi |
4367 | fi |
4394 | |
4368 | |
4395 | |
4369 | |
4396 | |
|
|
4397 | support_frills=yes |
4370 | support_frills=yes |
4398 | support_inheritpixmap=yes |
4371 | support_inheritpixmap=yes |
4399 | support_fading=yes |
4372 | support_fading=yes |
4400 | support_keepscrolling=yes |
4373 | support_keepscrolling=yes |
4401 | support_selectionscrolling=yes |
4374 | support_selectionscrolling=yes |
… | |
… | |
4404 | support_text_blink=yes |
4377 | support_text_blink=yes |
4405 | support_pointer_blank=yes |
4378 | support_pointer_blank=yes |
4406 | support_scroll_rxvt=yes |
4379 | support_scroll_rxvt=yes |
4407 | support_scroll_next=yes |
4380 | support_scroll_next=yes |
4408 | support_scroll_xterm=yes |
4381 | support_scroll_xterm=yes |
4409 | support_scroll_plain=yes |
|
|
4410 | support_xim=yes |
4382 | support_xim=yes |
4411 | support_afterimage=yes |
4383 | support_afterimage=yes |
4412 | support_afterstep=yes |
4384 | support_afterstep=yes |
4413 | support_xft=yes |
4385 | support_xft=yes |
4414 | support_unicode3=no |
4386 | support_unicode3=no |
… | |
… | |
4416 | support_8bitctrls=no |
4388 | support_8bitctrls=no |
4417 | support_iso14755=yes |
4389 | support_iso14755=yes |
4418 | support_styles=yes |
4390 | support_styles=yes |
4419 | support_perl=yes |
4391 | support_perl=yes |
4420 | codesets=all |
4392 | codesets=all |
4421 | |
|
|
4422 | |
|
|
4423 | if test "x$enable_shared" = xyes; then |
|
|
4424 | |
|
|
4425 | cat >>confdefs.h <<\_ACEOF |
|
|
4426 | #define LIBRXVT 1 |
|
|
4427 | _ACEOF |
|
|
4428 | |
|
|
4429 | INSTALL_LIBRXVT=yes |
|
|
4430 | fi |
|
|
4431 | |
4393 | |
4432 | |
4394 | |
4433 | # Check whether --enable-everything was given. |
4395 | # Check whether --enable-everything was given. |
4434 | if test "${enable_everything+set}" = set; then |
4396 | if test "${enable_everything+set}" = set; then |
4435 | enableval=$enable_everything; |
4397 | enableval=$enable_everything; |
… | |
… | |
4445 | support_text_blink=no |
4407 | support_text_blink=no |
4446 | support_pointer_blank=no |
4408 | support_pointer_blank=no |
4447 | support_scroll_rxvt=no |
4409 | support_scroll_rxvt=no |
4448 | support_scroll_next=no |
4410 | support_scroll_next=no |
4449 | support_scroll_xterm=no |
4411 | support_scroll_xterm=no |
4450 | support_scroll_plain=no |
|
|
4451 | support_utmp=no |
4412 | support_utmp=no |
4452 | support_wtmp=no |
4413 | support_wtmp=no |
4453 | support_xim=no |
4414 | support_xim=no |
4454 | support_afterimage=no |
4415 | support_afterimage=no |
4455 | support_afterstep=no |
4416 | support_afterstep=no |
… | |
… | |
4474 | support_text_blink=yes |
4435 | support_text_blink=yes |
4475 | support_pointer_blank=yes |
4436 | support_pointer_blank=yes |
4476 | support_scroll_rxvt=yes |
4437 | support_scroll_rxvt=yes |
4477 | support_scroll_next=yes |
4438 | support_scroll_next=yes |
4478 | support_scroll_xterm=yes |
4439 | support_scroll_xterm=yes |
4479 | support_scroll_plain=yes |
|
|
4480 | support_utmp=yes |
4440 | support_utmp=yes |
4481 | support_wtmp=yes |
4441 | support_wtmp=yes |
4482 | support_xim=yes |
4442 | support_xim=yes |
4483 | support_afterimage=yes |
4443 | support_afterimage=yes |
4484 | support_afterstep=yes |
4444 | support_afterstep=yes |
… | |
… | |
4645 | |
4605 | |
4646 | # Check whether --enable-perl was given. |
4606 | # Check whether --enable-perl was given. |
4647 | if test "${enable_perl+set}" = set; then |
4607 | if test "${enable_perl+set}" = set; then |
4648 | enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then |
4608 | enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then |
4649 | support_perl=$enableval |
4609 | support_perl=$enableval |
4650 | fi |
|
|
4651 | fi |
|
|
4652 | |
|
|
4653 | |
|
|
4654 | # Check whether --enable-plain-scroll was given. |
|
|
4655 | if test "${enable_plain_scroll+set}" = set; then |
|
|
4656 | enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4657 | support_scroll_plain=$enableval |
|
|
4658 | fi |
4610 | fi |
4659 | fi |
4611 | fi |
4660 | |
4612 | |
4661 | |
4613 | |
4662 | |
4614 | |
… | |
… | |
5370 | |
5322 | |
5371 | |
5323 | |
5372 | |
5324 | |
5373 | |
5325 | |
5374 | |
5326 | |
|
|
5327 | |
|
|
5328 | |
|
|
5329 | |
5375 | for ac_header in sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h |
5330 | for ac_header in sys/inotify.h sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h sys/eventfd.h sys/signalfd.h |
5376 | do |
5331 | do |
5377 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5332 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5378 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5333 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5379 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5334 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5380 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5335 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
… | |
… | |
5515 | |
5470 | |
5516 | |
5471 | |
5517 | |
5472 | |
5518 | |
5473 | |
5519 | |
5474 | |
|
|
5475 | |
|
|
5476 | |
|
|
5477 | |
5520 | for ac_func in epoll_ctl kqueue port_create poll select |
5478 | for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd signalfd |
5521 | do |
5479 | do |
5522 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5480 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5523 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
5481 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
5524 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
5482 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
5525 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
5483 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
… | |
… | |
5694 | echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; } |
5652 | echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; } |
5695 | if test $ac_cv_func_clock_gettime = yes; then |
5653 | if test $ac_cv_func_clock_gettime = yes; then |
5696 | : |
5654 | : |
5697 | else |
5655 | else |
5698 | |
5656 | |
5699 | if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
5657 | if test $(uname) = Linux; then |
|
|
5658 | { echo "$as_me:$LINENO: checking for clock_gettime syscall" >&5 |
|
|
5659 | echo $ECHO_N "checking for clock_gettime syscall... $ECHO_C" >&6; } |
|
|
5660 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5661 | /* confdefs.h. */ |
|
|
5662 | _ACEOF |
|
|
5663 | cat confdefs.h >>conftest.$ac_ext |
|
|
5664 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5665 | /* end confdefs.h. */ |
|
|
5666 | #include <syscall.h> |
|
|
5667 | #include <time.h> |
|
|
5668 | int |
|
|
5669 | main () |
|
|
5670 | { |
|
|
5671 | struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts) |
|
|
5672 | ; |
|
|
5673 | return 0; |
|
|
5674 | } |
|
|
5675 | _ACEOF |
|
|
5676 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5677 | if { (ac_try="$ac_link" |
|
|
5678 | case "(($ac_try" in |
|
|
5679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5680 | *) ac_try_echo=$ac_try;; |
|
|
5681 | esac |
|
|
5682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5683 | (eval "$ac_link") 2>conftest.er1 |
|
|
5684 | ac_status=$? |
|
|
5685 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5686 | rm -f conftest.er1 |
|
|
5687 | cat conftest.err >&5 |
|
|
5688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5689 | (exit $ac_status); } && { |
|
|
5690 | test -z "$ac_cxx_werror_flag" || |
|
|
5691 | test ! -s conftest.err |
|
|
5692 | } && test -s conftest$ac_exeext && |
|
|
5693 | $as_test_x conftest$ac_exeext; then |
|
|
5694 | ac_have_clock_syscall=1 |
|
|
5695 | |
|
|
5696 | cat >>confdefs.h <<\_ACEOF |
|
|
5697 | #define HAVE_CLOCK_SYSCALL 1 |
|
|
5698 | _ACEOF |
|
|
5699 | |
|
|
5700 | { echo "$as_me:$LINENO: result: yes" >&5 |
|
|
5701 | echo "${ECHO_T}yes" >&6; } |
|
|
5702 | else |
|
|
5703 | echo "$as_me: failed program was:" >&5 |
|
|
5704 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5705 | |
|
|
5706 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
5707 | echo "${ECHO_T}no" >&6; } |
|
|
5708 | fi |
|
|
5709 | |
|
|
5710 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5711 | conftest$ac_exeext conftest.$ac_ext |
|
|
5712 | fi |
|
|
5713 | if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then |
5700 | |
5714 | |
5701 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
5715 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
5702 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } |
5716 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } |
5703 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
5717 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
5704 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
5766 | |
5780 | |
5767 | LIBS="-lrt $LIBS" |
5781 | LIBS="-lrt $LIBS" |
5768 | |
5782 | |
5769 | fi |
5783 | fi |
5770 | |
5784 | |
|
|
5785 | unset ac_cv_func_clock_gettime |
5771 | |
5786 | |
5772 | for ac_func in clock_gettime |
5787 | for ac_func in clock_gettime |
|
|
5788 | do |
|
|
5789 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
5790 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
5791 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
5792 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5793 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5794 | else |
|
|
5795 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5796 | /* confdefs.h. */ |
|
|
5797 | _ACEOF |
|
|
5798 | cat confdefs.h >>conftest.$ac_ext |
|
|
5799 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5800 | /* end confdefs.h. */ |
|
|
5801 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
5802 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5803 | #define $ac_func innocuous_$ac_func |
|
|
5804 | |
|
|
5805 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5806 | which can conflict with char $ac_func (); below. |
|
|
5807 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5808 | <limits.h> exists even on freestanding compilers. */ |
|
|
5809 | |
|
|
5810 | #ifdef __STDC__ |
|
|
5811 | # include <limits.h> |
|
|
5812 | #else |
|
|
5813 | # include <assert.h> |
|
|
5814 | #endif |
|
|
5815 | |
|
|
5816 | #undef $ac_func |
|
|
5817 | |
|
|
5818 | /* Override any GCC internal prototype to avoid an error. |
|
|
5819 | Use char because int might match the return type of a GCC |
|
|
5820 | builtin and then its argument prototype would still apply. */ |
|
|
5821 | #ifdef __cplusplus |
|
|
5822 | extern "C" |
|
|
5823 | #endif |
|
|
5824 | char $ac_func (); |
|
|
5825 | /* The GNU C library defines this for functions which it implements |
|
|
5826 | to always fail with ENOSYS. Some functions are actually named |
|
|
5827 | something starting with __ and the normal name is an alias. */ |
|
|
5828 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
5829 | choke me |
|
|
5830 | #endif |
|
|
5831 | |
|
|
5832 | int |
|
|
5833 | main () |
|
|
5834 | { |
|
|
5835 | return $ac_func (); |
|
|
5836 | ; |
|
|
5837 | return 0; |
|
|
5838 | } |
|
|
5839 | _ACEOF |
|
|
5840 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5841 | if { (ac_try="$ac_link" |
|
|
5842 | case "(($ac_try" in |
|
|
5843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5844 | *) ac_try_echo=$ac_try;; |
|
|
5845 | esac |
|
|
5846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5847 | (eval "$ac_link") 2>conftest.er1 |
|
|
5848 | ac_status=$? |
|
|
5849 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5850 | rm -f conftest.er1 |
|
|
5851 | cat conftest.err >&5 |
|
|
5852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5853 | (exit $ac_status); } && { |
|
|
5854 | test -z "$ac_cxx_werror_flag" || |
|
|
5855 | test ! -s conftest.err |
|
|
5856 | } && test -s conftest$ac_exeext && |
|
|
5857 | $as_test_x conftest$ac_exeext; then |
|
|
5858 | eval "$as_ac_var=yes" |
|
|
5859 | else |
|
|
5860 | echo "$as_me: failed program was:" >&5 |
|
|
5861 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5862 | |
|
|
5863 | eval "$as_ac_var=no" |
|
|
5864 | fi |
|
|
5865 | |
|
|
5866 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5867 | conftest$ac_exeext conftest.$ac_ext |
|
|
5868 | fi |
|
|
5869 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
5870 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5871 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5872 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
5873 | cat >>confdefs.h <<_ACEOF |
|
|
5874 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
5875 | _ACEOF |
|
|
5876 | |
|
|
5877 | fi |
|
|
5878 | done |
|
|
5879 | |
|
|
5880 | fi |
|
|
5881 | |
|
|
5882 | fi |
|
|
5883 | |
|
|
5884 | |
|
|
5885 | { echo "$as_me:$LINENO: checking for nanosleep" >&5 |
|
|
5886 | echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; } |
|
|
5887 | if test "${ac_cv_func_nanosleep+set}" = set; then |
|
|
5888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5889 | else |
|
|
5890 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5891 | /* confdefs.h. */ |
|
|
5892 | _ACEOF |
|
|
5893 | cat confdefs.h >>conftest.$ac_ext |
|
|
5894 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5895 | /* end confdefs.h. */ |
|
|
5896 | /* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep. |
|
|
5897 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5898 | #define nanosleep innocuous_nanosleep |
|
|
5899 | |
|
|
5900 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5901 | which can conflict with char nanosleep (); below. |
|
|
5902 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5903 | <limits.h> exists even on freestanding compilers. */ |
|
|
5904 | |
|
|
5905 | #ifdef __STDC__ |
|
|
5906 | # include <limits.h> |
|
|
5907 | #else |
|
|
5908 | # include <assert.h> |
|
|
5909 | #endif |
|
|
5910 | |
|
|
5911 | #undef nanosleep |
|
|
5912 | |
|
|
5913 | /* Override any GCC internal prototype to avoid an error. |
|
|
5914 | Use char because int might match the return type of a GCC |
|
|
5915 | builtin and then its argument prototype would still apply. */ |
|
|
5916 | #ifdef __cplusplus |
|
|
5917 | extern "C" |
|
|
5918 | #endif |
|
|
5919 | char nanosleep (); |
|
|
5920 | /* The GNU C library defines this for functions which it implements |
|
|
5921 | to always fail with ENOSYS. Some functions are actually named |
|
|
5922 | something starting with __ and the normal name is an alias. */ |
|
|
5923 | #if defined __stub_nanosleep || defined __stub___nanosleep |
|
|
5924 | choke me |
|
|
5925 | #endif |
|
|
5926 | |
|
|
5927 | int |
|
|
5928 | main () |
|
|
5929 | { |
|
|
5930 | return nanosleep (); |
|
|
5931 | ; |
|
|
5932 | return 0; |
|
|
5933 | } |
|
|
5934 | _ACEOF |
|
|
5935 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5936 | if { (ac_try="$ac_link" |
|
|
5937 | case "(($ac_try" in |
|
|
5938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5939 | *) ac_try_echo=$ac_try;; |
|
|
5940 | esac |
|
|
5941 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5942 | (eval "$ac_link") 2>conftest.er1 |
|
|
5943 | ac_status=$? |
|
|
5944 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5945 | rm -f conftest.er1 |
|
|
5946 | cat conftest.err >&5 |
|
|
5947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5948 | (exit $ac_status); } && { |
|
|
5949 | test -z "$ac_cxx_werror_flag" || |
|
|
5950 | test ! -s conftest.err |
|
|
5951 | } && test -s conftest$ac_exeext && |
|
|
5952 | $as_test_x conftest$ac_exeext; then |
|
|
5953 | ac_cv_func_nanosleep=yes |
|
|
5954 | else |
|
|
5955 | echo "$as_me: failed program was:" >&5 |
|
|
5956 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5957 | |
|
|
5958 | ac_cv_func_nanosleep=no |
|
|
5959 | fi |
|
|
5960 | |
|
|
5961 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5962 | conftest$ac_exeext conftest.$ac_ext |
|
|
5963 | fi |
|
|
5964 | { echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5 |
|
|
5965 | echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; } |
|
|
5966 | if test $ac_cv_func_nanosleep = yes; then |
|
|
5967 | : |
|
|
5968 | else |
|
|
5969 | |
|
|
5970 | if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
|
|
5971 | |
|
|
5972 | { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5 |
|
|
5973 | echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; } |
|
|
5974 | if test "${ac_cv_lib_rt_nanosleep+set}" = set; then |
|
|
5975 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5976 | else |
|
|
5977 | ac_check_lib_save_LIBS=$LIBS |
|
|
5978 | LIBS="-lrt $LIBS" |
|
|
5979 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5980 | /* confdefs.h. */ |
|
|
5981 | _ACEOF |
|
|
5982 | cat confdefs.h >>conftest.$ac_ext |
|
|
5983 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5984 | /* end confdefs.h. */ |
|
|
5985 | |
|
|
5986 | /* Override any GCC internal prototype to avoid an error. |
|
|
5987 | Use char because int might match the return type of a GCC |
|
|
5988 | builtin and then its argument prototype would still apply. */ |
|
|
5989 | #ifdef __cplusplus |
|
|
5990 | extern "C" |
|
|
5991 | #endif |
|
|
5992 | char nanosleep (); |
|
|
5993 | int |
|
|
5994 | main () |
|
|
5995 | { |
|
|
5996 | return nanosleep (); |
|
|
5997 | ; |
|
|
5998 | return 0; |
|
|
5999 | } |
|
|
6000 | _ACEOF |
|
|
6001 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6002 | if { (ac_try="$ac_link" |
|
|
6003 | case "(($ac_try" in |
|
|
6004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6005 | *) ac_try_echo=$ac_try;; |
|
|
6006 | esac |
|
|
6007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6008 | (eval "$ac_link") 2>conftest.er1 |
|
|
6009 | ac_status=$? |
|
|
6010 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6011 | rm -f conftest.er1 |
|
|
6012 | cat conftest.err >&5 |
|
|
6013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6014 | (exit $ac_status); } && { |
|
|
6015 | test -z "$ac_cxx_werror_flag" || |
|
|
6016 | test ! -s conftest.err |
|
|
6017 | } && test -s conftest$ac_exeext && |
|
|
6018 | $as_test_x conftest$ac_exeext; then |
|
|
6019 | ac_cv_lib_rt_nanosleep=yes |
|
|
6020 | else |
|
|
6021 | echo "$as_me: failed program was:" >&5 |
|
|
6022 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6023 | |
|
|
6024 | ac_cv_lib_rt_nanosleep=no |
|
|
6025 | fi |
|
|
6026 | |
|
|
6027 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6028 | conftest$ac_exeext conftest.$ac_ext |
|
|
6029 | LIBS=$ac_check_lib_save_LIBS |
|
|
6030 | fi |
|
|
6031 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5 |
|
|
6032 | echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; } |
|
|
6033 | if test $ac_cv_lib_rt_nanosleep = yes; then |
|
|
6034 | cat >>confdefs.h <<_ACEOF |
|
|
6035 | #define HAVE_LIBRT 1 |
|
|
6036 | _ACEOF |
|
|
6037 | |
|
|
6038 | LIBS="-lrt $LIBS" |
|
|
6039 | |
|
|
6040 | fi |
|
|
6041 | |
|
|
6042 | unset ac_cv_func_nanosleep |
|
|
6043 | |
|
|
6044 | for ac_func in nanosleep |
5773 | do |
6045 | do |
5774 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6046 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5775 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
6047 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
5776 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
6048 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
5777 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
6049 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
… | |
… | |
5935 | _ACEOF |
6207 | _ACEOF |
5936 | |
6208 | |
5937 | LIBS="-lm $LIBS" |
6209 | LIBS="-lm $LIBS" |
5938 | |
6210 | |
5939 | fi |
6211 | fi |
5940 | |
|
|
5941 | |
|
|
5942 | |
6212 | |
5943 | |
6213 | |
5944 | |
6214 | |
5945 | |
6215 | |
5946 | |
6216 | |
… | |
… | |
5981 | echo "${ECHO_T}$TIC" >&6; } |
6251 | echo "${ECHO_T}$TIC" >&6; } |
5982 | else |
6252 | else |
5983 | { echo "$as_me:$LINENO: result: no" >&5 |
6253 | { echo "$as_me:$LINENO: result: no" >&5 |
5984 | echo "${ECHO_T}no" >&6; } |
6254 | echo "${ECHO_T}no" >&6; } |
5985 | fi |
6255 | fi |
5986 | |
|
|
5987 | |
|
|
5988 | |
6256 | |
5989 | |
6257 | |
5990 | |
6258 | |
5991 | { echo "$as_me:$LINENO: checking for X" >&5 |
6259 | { echo "$as_me:$LINENO: checking for X" >&5 |
5992 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
6260 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
… | |
… | |
7379 | echo "${ECHO_T}no" >&6; } |
7647 | echo "${ECHO_T}no" >&6; } |
7380 | fi |
7648 | fi |
7381 | fi |
7649 | fi |
7382 | fi |
7650 | fi |
7383 | |
7651 | |
7384 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
|
|
7385 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
|
|
7386 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
|
|
7387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7388 | else |
|
|
7389 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7390 | /* confdefs.h. */ |
|
|
7391 | _ACEOF |
|
|
7392 | cat confdefs.h >>conftest.$ac_ext |
|
|
7393 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7394 | /* end confdefs.h. */ |
|
|
7395 | #include <sys/types.h> |
|
|
7396 | #include <sys/wait.h> |
|
|
7397 | #ifndef WEXITSTATUS |
|
|
7398 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
|
|
7399 | #endif |
|
|
7400 | #ifndef WIFEXITED |
|
|
7401 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
|
|
7402 | #endif |
|
|
7403 | |
|
|
7404 | int |
|
|
7405 | main () |
|
|
7406 | { |
|
|
7407 | int s; |
|
|
7408 | wait (&s); |
|
|
7409 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
|
|
7410 | ; |
|
|
7411 | return 0; |
|
|
7412 | } |
|
|
7413 | _ACEOF |
|
|
7414 | rm -f conftest.$ac_objext |
|
|
7415 | if { (ac_try="$ac_compile" |
|
|
7416 | case "(($ac_try" in |
|
|
7417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7418 | *) ac_try_echo=$ac_try;; |
|
|
7419 | esac |
|
|
7420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7421 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7422 | ac_status=$? |
|
|
7423 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7424 | rm -f conftest.er1 |
|
|
7425 | cat conftest.err >&5 |
|
|
7426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7427 | (exit $ac_status); } && { |
|
|
7428 | test -z "$ac_cxx_werror_flag" || |
|
|
7429 | test ! -s conftest.err |
|
|
7430 | } && test -s conftest.$ac_objext; then |
|
|
7431 | ac_cv_header_sys_wait_h=yes |
|
|
7432 | else |
|
|
7433 | echo "$as_me: failed program was:" >&5 |
|
|
7434 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7435 | |
|
|
7436 | ac_cv_header_sys_wait_h=no |
|
|
7437 | fi |
|
|
7438 | |
|
|
7439 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7440 | fi |
|
|
7441 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
|
|
7442 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
|
|
7443 | if test $ac_cv_header_sys_wait_h = yes; then |
|
|
7444 | |
|
|
7445 | cat >>confdefs.h <<\_ACEOF |
|
|
7446 | #define HAVE_SYS_WAIT_H 1 |
|
|
7447 | _ACEOF |
|
|
7448 | |
|
|
7449 | fi |
|
|
7450 | |
|
|
7451 | |
|
|
7452 | |
|
|
7453 | |
|
|
7454 | |
|
|
7455 | |
|
|
7456 | |
|
|
7457 | |
|
|
7458 | |
|
|
7459 | |
|
|
7460 | |
|
|
7461 | |
7652 | |
7462 | |
7653 | |
7463 | |
7654 | |
7464 | |
7655 | |
7465 | |
7656 | |
7466 | |
7657 | |
7467 | |
7658 | |
7468 | for ac_header in \ |
7659 | for ac_header in \ |
7469 | assert.h \ |
|
|
7470 | fcntl.h \ |
|
|
7471 | stdarg.h \ |
|
|
7472 | stdlib.h \ |
|
|
7473 | string.h \ |
|
|
7474 | termios.h \ |
|
|
7475 | unistd.h \ |
|
|
7476 | sys/byteorder.h \ |
7660 | sys/byteorder.h \ |
7477 | sys/ioctl.h \ |
7661 | sys/ioctl.h \ |
7478 | sys/select.h \ |
|
|
7479 | sys/sockio.h \ |
7662 | sys/sockio.h \ |
7480 | sys/strredir.h \ |
7663 | sys/strredir.h \ |
7481 | sys/time.h \ |
|
|
7482 | stdint.h \ |
7664 | stdint.h \ |
7483 | wchar.h \ |
7665 | wchar.h \ |
7484 | cwchar \ |
7666 | cwchar \ |
7485 | clocale \ |
|
|
7486 | |
7667 | |
7487 | do |
7668 | do |
7488 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7669 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7489 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7670 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7490 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7671 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
… | |
… | |
7621 | fi |
7802 | fi |
7622 | |
7803 | |
7623 | done |
7804 | done |
7624 | |
7805 | |
7625 | |
7806 | |
7626 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
|
|
7627 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
|
|
7628 | if test "${ac_cv_header_time+set}" = set; then |
|
|
7629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7630 | else |
|
|
7631 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7632 | /* confdefs.h. */ |
|
|
7633 | _ACEOF |
|
|
7634 | cat confdefs.h >>conftest.$ac_ext |
|
|
7635 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7636 | /* end confdefs.h. */ |
|
|
7637 | #include <sys/types.h> |
|
|
7638 | #include <sys/time.h> |
|
|
7639 | #include <time.h> |
|
|
7640 | |
|
|
7641 | int |
|
|
7642 | main () |
|
|
7643 | { |
|
|
7644 | if ((struct tm *) 0) |
|
|
7645 | return 0; |
|
|
7646 | ; |
|
|
7647 | return 0; |
|
|
7648 | } |
|
|
7649 | _ACEOF |
|
|
7650 | rm -f conftest.$ac_objext |
|
|
7651 | if { (ac_try="$ac_compile" |
|
|
7652 | case "(($ac_try" in |
|
|
7653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7654 | *) ac_try_echo=$ac_try;; |
|
|
7655 | esac |
|
|
7656 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7657 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7658 | ac_status=$? |
|
|
7659 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7660 | rm -f conftest.er1 |
|
|
7661 | cat conftest.err >&5 |
|
|
7662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7663 | (exit $ac_status); } && { |
|
|
7664 | test -z "$ac_cxx_werror_flag" || |
|
|
7665 | test ! -s conftest.err |
|
|
7666 | } && test -s conftest.$ac_objext; then |
|
|
7667 | ac_cv_header_time=yes |
|
|
7668 | else |
|
|
7669 | echo "$as_me: failed program was:" >&5 |
|
|
7670 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7671 | |
|
|
7672 | ac_cv_header_time=no |
|
|
7673 | fi |
|
|
7674 | |
|
|
7675 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7676 | fi |
|
|
7677 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
|
|
7678 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
|
|
7679 | if test $ac_cv_header_time = yes; then |
|
|
7680 | |
|
|
7681 | cat >>confdefs.h <<\_ACEOF |
|
|
7682 | #define TIME_WITH_SYS_TIME 1 |
|
|
7683 | _ACEOF |
|
|
7684 | |
|
|
7685 | fi |
|
|
7686 | |
|
|
7687 | |
|
|
7688 | { echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5 |
|
|
7689 | echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; } |
|
|
7690 | if test "${rxvt_cv_header_sysioctl+set}" = set; then |
|
|
7691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7692 | else |
|
|
7693 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7694 | /* confdefs.h. */ |
|
|
7695 | _ACEOF |
|
|
7696 | cat confdefs.h >>conftest.$ac_ext |
|
|
7697 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7698 | /* end confdefs.h. */ |
|
|
7699 | #include <stdio.h> |
|
|
7700 | #include <sys/ioctl.h> |
|
|
7701 | #ifdef HAVE_TERMIOS_H |
|
|
7702 | #include <termios.h> |
|
|
7703 | #endif |
|
|
7704 | int |
|
|
7705 | main () |
|
|
7706 | { |
|
|
7707 | int a = ECHO; |
|
|
7708 | ; |
|
|
7709 | return 0; |
|
|
7710 | } |
|
|
7711 | _ACEOF |
|
|
7712 | rm -f conftest.$ac_objext |
|
|
7713 | if { (ac_try="$ac_compile" |
|
|
7714 | case "(($ac_try" in |
|
|
7715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7716 | *) ac_try_echo=$ac_try;; |
|
|
7717 | esac |
|
|
7718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7719 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7720 | ac_status=$? |
|
|
7721 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7722 | rm -f conftest.er1 |
|
|
7723 | cat conftest.err >&5 |
|
|
7724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7725 | (exit $ac_status); } && { |
|
|
7726 | test -z "$ac_cxx_werror_flag" || |
|
|
7727 | test ! -s conftest.err |
|
|
7728 | } && test -s conftest.$ac_objext; then |
|
|
7729 | rxvt_cv_header_sysioctl=yes |
|
|
7730 | else |
|
|
7731 | echo "$as_me: failed program was:" >&5 |
|
|
7732 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7733 | |
|
|
7734 | rxvt_cv_header_sysioctl=no |
|
|
7735 | fi |
|
|
7736 | |
|
|
7737 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7738 | fi |
|
|
7739 | { echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5 |
|
|
7740 | echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6; } |
|
|
7741 | |
|
|
7742 | { echo "$as_me:$LINENO: checking for XPointer" >&5 |
7807 | { echo "$as_me:$LINENO: checking for XPointer" >&5 |
7743 | echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } |
7808 | echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } |
7744 | if test "${rxvt_cv_xpointer+set}" = set; then |
7809 | if test "${rxvt_cv_xpointer+set}" = set; then |
7745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7746 | else |
7811 | else |
… | |
… | |
7857 | cat >>confdefs.h <<\_ACEOF |
7922 | cat >>confdefs.h <<\_ACEOF |
7858 | #define XLIB_ILLEGAL_ACCESS 1 |
7923 | #define XLIB_ILLEGAL_ACCESS 1 |
7859 | _ACEOF |
7924 | _ACEOF |
7860 | |
7925 | |
7861 | fi |
7926 | fi |
7862 | |
|
|
7863 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
|
|
7864 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
|
|
7865 | if test "${ac_cv_c_const+set}" = set; then |
|
|
7866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7867 | else |
|
|
7868 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7869 | /* confdefs.h. */ |
|
|
7870 | _ACEOF |
|
|
7871 | cat confdefs.h >>conftest.$ac_ext |
|
|
7872 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7873 | /* end confdefs.h. */ |
|
|
7874 | |
|
|
7875 | int |
|
|
7876 | main () |
|
|
7877 | { |
|
|
7878 | /* FIXME: Include the comments suggested by Paul. */ |
|
|
7879 | #ifndef __cplusplus |
|
|
7880 | /* Ultrix mips cc rejects this. */ |
|
|
7881 | typedef int charset[2]; |
|
|
7882 | const charset cs; |
|
|
7883 | /* SunOS 4.1.1 cc rejects this. */ |
|
|
7884 | char const *const *pcpcc; |
|
|
7885 | char **ppc; |
|
|
7886 | /* NEC SVR4.0.2 mips cc rejects this. */ |
|
|
7887 | struct point {int x, y;}; |
|
|
7888 | static struct point const zero = {0,0}; |
|
|
7889 | /* AIX XL C 1.02.0.0 rejects this. |
|
|
7890 | It does not let you subtract one const X* pointer from another in |
|
|
7891 | an arm of an if-expression whose if-part is not a constant |
|
|
7892 | expression */ |
|
|
7893 | const char *g = "string"; |
|
|
7894 | pcpcc = &g + (g ? g-g : 0); |
|
|
7895 | /* HPUX 7.0 cc rejects these. */ |
|
|
7896 | ++pcpcc; |
|
|
7897 | ppc = (char**) pcpcc; |
|
|
7898 | pcpcc = (char const *const *) ppc; |
|
|
7899 | { /* SCO 3.2v4 cc rejects this. */ |
|
|
7900 | char *t; |
|
|
7901 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
|
|
7902 | |
|
|
7903 | *t++ = 0; |
|
|
7904 | if (s) return 0; |
|
|
7905 | } |
|
|
7906 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
|
|
7907 | int x[] = {25, 17}; |
|
|
7908 | const int *foo = &x[0]; |
|
|
7909 | ++foo; |
|
|
7910 | } |
|
|
7911 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
|
|
7912 | typedef const int *iptr; |
|
|
7913 | iptr p = 0; |
|
|
7914 | ++p; |
|
|
7915 | } |
|
|
7916 | { /* AIX XL C 1.02.0.0 rejects this saying |
|
|
7917 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
|
|
7918 | struct s { int j; const int *ap[3]; }; |
|
|
7919 | struct s *b; b->j = 5; |
|
|
7920 | } |
|
|
7921 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
|
|
7922 | const int foo = 10; |
|
|
7923 | if (!foo) return 0; |
|
|
7924 | } |
|
|
7925 | return !cs[0] && !zero.x; |
|
|
7926 | #endif |
|
|
7927 | |
|
|
7928 | ; |
|
|
7929 | return 0; |
|
|
7930 | } |
|
|
7931 | _ACEOF |
|
|
7932 | rm -f conftest.$ac_objext |
|
|
7933 | if { (ac_try="$ac_compile" |
|
|
7934 | case "(($ac_try" in |
|
|
7935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7936 | *) ac_try_echo=$ac_try;; |
|
|
7937 | esac |
|
|
7938 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7939 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7940 | ac_status=$? |
|
|
7941 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7942 | rm -f conftest.er1 |
|
|
7943 | cat conftest.err >&5 |
|
|
7944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7945 | (exit $ac_status); } && { |
|
|
7946 | test -z "$ac_cxx_werror_flag" || |
|
|
7947 | test ! -s conftest.err |
|
|
7948 | } && test -s conftest.$ac_objext; then |
|
|
7949 | ac_cv_c_const=yes |
|
|
7950 | else |
|
|
7951 | echo "$as_me: failed program was:" >&5 |
|
|
7952 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7953 | |
|
|
7954 | ac_cv_c_const=no |
|
|
7955 | fi |
|
|
7956 | |
|
|
7957 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7958 | fi |
|
|
7959 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
|
|
7960 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
|
|
7961 | if test $ac_cv_c_const = no; then |
|
|
7962 | |
|
|
7963 | cat >>confdefs.h <<\_ACEOF |
|
|
7964 | #define const |
|
|
7965 | _ACEOF |
|
|
7966 | |
|
|
7967 | fi |
|
|
7968 | |
|
|
7969 | { echo "$as_me:$LINENO: checking for inline" >&5 |
|
|
7970 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
|
|
7971 | if test "${ac_cv_c_inline+set}" = set; then |
|
|
7972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7973 | else |
|
|
7974 | ac_cv_c_inline=no |
|
|
7975 | for ac_kw in inline __inline__ __inline; do |
|
|
7976 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7977 | /* confdefs.h. */ |
|
|
7978 | _ACEOF |
|
|
7979 | cat confdefs.h >>conftest.$ac_ext |
|
|
7980 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7981 | /* end confdefs.h. */ |
|
|
7982 | #ifndef __cplusplus |
|
|
7983 | typedef int foo_t; |
|
|
7984 | static $ac_kw foo_t static_foo () {return 0; } |
|
|
7985 | $ac_kw foo_t foo () {return 0; } |
|
|
7986 | #endif |
|
|
7987 | |
|
|
7988 | _ACEOF |
|
|
7989 | rm -f conftest.$ac_objext |
|
|
7990 | if { (ac_try="$ac_compile" |
|
|
7991 | case "(($ac_try" in |
|
|
7992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7993 | *) ac_try_echo=$ac_try;; |
|
|
7994 | esac |
|
|
7995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7996 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7997 | ac_status=$? |
|
|
7998 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7999 | rm -f conftest.er1 |
|
|
8000 | cat conftest.err >&5 |
|
|
8001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8002 | (exit $ac_status); } && { |
|
|
8003 | test -z "$ac_cxx_werror_flag" || |
|
|
8004 | test ! -s conftest.err |
|
|
8005 | } && test -s conftest.$ac_objext; then |
|
|
8006 | ac_cv_c_inline=$ac_kw |
|
|
8007 | else |
|
|
8008 | echo "$as_me: failed program was:" >&5 |
|
|
8009 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8010 | |
|
|
8011 | |
|
|
8012 | fi |
|
|
8013 | |
|
|
8014 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8015 | test "$ac_cv_c_inline" != no && break |
|
|
8016 | done |
|
|
8017 | |
|
|
8018 | fi |
|
|
8019 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
|
|
8020 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
|
|
8021 | |
|
|
8022 | |
|
|
8023 | case $ac_cv_c_inline in |
|
|
8024 | inline | yes) ;; |
|
|
8025 | *) |
|
|
8026 | case $ac_cv_c_inline in |
|
|
8027 | no) ac_val=;; |
|
|
8028 | *) ac_val=$ac_cv_c_inline;; |
|
|
8029 | esac |
|
|
8030 | cat >>confdefs.h <<_ACEOF |
|
|
8031 | #ifndef __cplusplus |
|
|
8032 | #define inline $ac_val |
|
|
8033 | #endif |
|
|
8034 | _ACEOF |
|
|
8035 | ;; |
|
|
8036 | esac |
|
|
8037 | |
|
|
8038 | |
|
|
8039 | |
7927 | |
8040 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
7928 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
8041 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
7929 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
8042 | if test "${ac_cv_type_mode_t+set}" = set; then |
7930 | if test "${ac_cv_type_mode_t+set}" = set; then |
8043 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
8200 | _ACEOF |
8088 | _ACEOF |
8201 | |
8089 | |
8202 | fi |
8090 | fi |
8203 | |
8091 | |
8204 | |
8092 | |
8205 | { echo "$as_me:$LINENO: checking for short" >&5 |
8093 | { echo "$as_me:$LINENO: checking for int16_t" >&5 |
8206 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
8094 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } |
8207 | if test "${ac_cv_type_short+set}" = set; then |
8095 | if test "${ac_cv_c_int16_t+set}" = set; then |
8208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8209 | else |
8097 | else |
|
|
8098 | ac_cv_c_int16_t=no |
|
|
8099 | for ac_type in 'int16_t' 'int' 'long int' \ |
|
|
8100 | 'long long int' 'short int' 'signed char'; do |
8210 | cat >conftest.$ac_ext <<_ACEOF |
8101 | cat >conftest.$ac_ext <<_ACEOF |
8211 | /* confdefs.h. */ |
8102 | /* confdefs.h. */ |
8212 | _ACEOF |
8103 | _ACEOF |
8213 | cat confdefs.h >>conftest.$ac_ext |
8104 | cat confdefs.h >>conftest.$ac_ext |
8214 | cat >>conftest.$ac_ext <<_ACEOF |
8105 | cat >>conftest.$ac_ext <<_ACEOF |
8215 | /* end confdefs.h. */ |
8106 | /* end confdefs.h. */ |
8216 | $ac_includes_default |
8107 | $ac_includes_default |
8217 | typedef short ac__type_new_; |
|
|
8218 | int |
8108 | int |
8219 | main () |
8109 | main () |
8220 | { |
8110 | { |
8221 | if ((ac__type_new_ *) 0) |
8111 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))]; |
8222 | return 0; |
8112 | test_array [0] = 0 |
8223 | if (sizeof (ac__type_new_)) |
8113 | |
8224 | return 0; |
|
|
8225 | ; |
8114 | ; |
8226 | return 0; |
8115 | return 0; |
8227 | } |
8116 | } |
8228 | _ACEOF |
8117 | _ACEOF |
8229 | rm -f conftest.$ac_objext |
8118 | rm -f conftest.$ac_objext |
… | |
… | |
8241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8242 | (exit $ac_status); } && { |
8131 | (exit $ac_status); } && { |
8243 | test -z "$ac_cxx_werror_flag" || |
8132 | test -z "$ac_cxx_werror_flag" || |
8244 | test ! -s conftest.err |
8133 | test ! -s conftest.err |
8245 | } && test -s conftest.$ac_objext; then |
8134 | } && test -s conftest.$ac_objext; then |
8246 | ac_cv_type_short=yes |
|
|
8247 | else |
|
|
8248 | echo "$as_me: failed program was:" >&5 |
|
|
8249 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8250 | |
|
|
8251 | ac_cv_type_short=no |
|
|
8252 | fi |
|
|
8253 | |
|
|
8254 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8255 | fi |
|
|
8256 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
|
|
8257 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
|
|
8258 | |
|
|
8259 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8260 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8261 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8262 | # This bug is HP SR number 8606223364. |
|
|
8263 | { echo "$as_me:$LINENO: checking size of short" >&5 |
|
|
8264 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
|
|
8265 | if test "${ac_cv_sizeof_short+set}" = set; then |
|
|
8266 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8267 | else |
|
|
8268 | if test "$cross_compiling" = yes; then |
|
|
8269 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8270 | cat >conftest.$ac_ext <<_ACEOF |
8135 | cat >conftest.$ac_ext <<_ACEOF |
8271 | /* confdefs.h. */ |
8136 | /* confdefs.h. */ |
8272 | _ACEOF |
8137 | _ACEOF |
8273 | cat confdefs.h >>conftest.$ac_ext |
8138 | cat confdefs.h >>conftest.$ac_ext |
8274 | cat >>conftest.$ac_ext <<_ACEOF |
8139 | cat >>conftest.$ac_ext <<_ACEOF |
8275 | /* end confdefs.h. */ |
8140 | /* end confdefs.h. */ |
8276 | $ac_includes_default |
8141 | $ac_includes_default |
8277 | typedef short ac__type_sizeof_; |
|
|
8278 | int |
8142 | int |
8279 | main () |
8143 | main () |
8280 | { |
8144 | { |
8281 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
8145 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1) |
|
|
8146 | < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))]; |
8282 | test_array [0] = 0 |
8147 | test_array [0] = 0 |
8283 | |
8148 | |
8284 | ; |
8149 | ; |
8285 | return 0; |
8150 | return 0; |
8286 | } |
8151 | } |
… | |
… | |
8300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8301 | (exit $ac_status); } && { |
8166 | (exit $ac_status); } && { |
8302 | test -z "$ac_cxx_werror_flag" || |
8167 | test -z "$ac_cxx_werror_flag" || |
8303 | test ! -s conftest.err |
8168 | test ! -s conftest.err |
8304 | } && test -s conftest.$ac_objext; then |
8169 | } && test -s conftest.$ac_objext; then |
8305 | ac_lo=0 ac_mid=0 |
8170 | : |
8306 | while :; do |
8171 | else |
|
|
8172 | echo "$as_me: failed program was:" >&5 |
|
|
8173 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8174 | |
|
|
8175 | case $ac_type in |
|
|
8176 | int16_t) ac_cv_c_int16_t=yes ;; |
|
|
8177 | *) ac_cv_c_int16_t=$ac_type ;; |
|
|
8178 | esac |
|
|
8179 | |
|
|
8180 | fi |
|
|
8181 | |
|
|
8182 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8183 | else |
|
|
8184 | echo "$as_me: failed program was:" >&5 |
|
|
8185 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8186 | |
|
|
8187 | |
|
|
8188 | fi |
|
|
8189 | |
|
|
8190 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8191 | test "$ac_cv_c_int16_t" != no && break |
|
|
8192 | done |
|
|
8193 | fi |
|
|
8194 | { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5 |
|
|
8195 | echo "${ECHO_T}$ac_cv_c_int16_t" >&6; } |
|
|
8196 | case $ac_cv_c_int16_t in #( |
|
|
8197 | no|yes) ;; #( |
|
|
8198 | *) |
|
|
8199 | |
|
|
8200 | cat >>confdefs.h <<_ACEOF |
|
|
8201 | #define int16_t $ac_cv_c_int16_t |
|
|
8202 | _ACEOF |
|
|
8203 | ;; |
|
|
8204 | esac |
|
|
8205 | |
|
|
8206 | |
|
|
8207 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 |
|
|
8208 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } |
|
|
8209 | if test "${ac_cv_c_uint16_t+set}" = set; then |
|
|
8210 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8211 | else |
|
|
8212 | ac_cv_c_uint16_t=no |
|
|
8213 | for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \ |
|
|
8214 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
8307 | cat >conftest.$ac_ext <<_ACEOF |
8215 | cat >conftest.$ac_ext <<_ACEOF |
8308 | /* confdefs.h. */ |
8216 | /* confdefs.h. */ |
8309 | _ACEOF |
8217 | _ACEOF |
8310 | cat confdefs.h >>conftest.$ac_ext |
8218 | cat confdefs.h >>conftest.$ac_ext |
8311 | cat >>conftest.$ac_ext <<_ACEOF |
8219 | cat >>conftest.$ac_ext <<_ACEOF |
8312 | /* end confdefs.h. */ |
8220 | /* end confdefs.h. */ |
8313 | $ac_includes_default |
8221 | $ac_includes_default |
8314 | typedef short ac__type_sizeof_; |
|
|
8315 | int |
8222 | int |
8316 | main () |
8223 | main () |
8317 | { |
8224 | { |
8318 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
8225 | static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)]; |
8319 | test_array [0] = 0 |
8226 | test_array [0] = 0 |
8320 | |
8227 | |
8321 | ; |
8228 | ; |
8322 | return 0; |
8229 | return 0; |
8323 | } |
8230 | } |
… | |
… | |
8337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8338 | (exit $ac_status); } && { |
8245 | (exit $ac_status); } && { |
8339 | test -z "$ac_cxx_werror_flag" || |
8246 | test -z "$ac_cxx_werror_flag" || |
8340 | test ! -s conftest.err |
8247 | test ! -s conftest.err |
8341 | } && test -s conftest.$ac_objext; then |
8248 | } && test -s conftest.$ac_objext; then |
8342 | ac_hi=$ac_mid; break |
8249 | case $ac_type in |
|
|
8250 | uint16_t) ac_cv_c_uint16_t=yes ;; |
|
|
8251 | *) ac_cv_c_uint16_t=$ac_type ;; |
|
|
8252 | esac |
|
|
8253 | |
8343 | else |
8254 | else |
8344 | echo "$as_me: failed program was:" >&5 |
8255 | echo "$as_me: failed program was:" >&5 |
8345 | sed 's/^/| /' conftest.$ac_ext >&5 |
8256 | sed 's/^/| /' conftest.$ac_ext >&5 |
8346 | |
8257 | |
8347 | ac_lo=`expr $ac_mid + 1` |
8258 | |
8348 | if test $ac_lo -le $ac_mid; then |
|
|
8349 | ac_lo= ac_hi= |
|
|
8350 | break |
|
|
8351 | fi |
|
|
8352 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8353 | fi |
8259 | fi |
8354 | |
8260 | |
8355 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8261 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8262 | test "$ac_cv_c_uint16_t" != no && break |
8356 | done |
8263 | done |
8357 | else |
8264 | fi |
8358 | echo "$as_me: failed program was:" >&5 |
8265 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5 |
8359 | sed 's/^/| /' conftest.$ac_ext >&5 |
8266 | echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; } |
|
|
8267 | case $ac_cv_c_uint16_t in #( |
|
|
8268 | no|yes) ;; #( |
|
|
8269 | *) |
8360 | |
8270 | |
|
|
8271 | |
|
|
8272 | cat >>confdefs.h <<_ACEOF |
|
|
8273 | #define uint16_t $ac_cv_c_uint16_t |
|
|
8274 | _ACEOF |
|
|
8275 | ;; |
|
|
8276 | esac |
|
|
8277 | |
|
|
8278 | |
|
|
8279 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
|
|
8280 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
|
|
8281 | if test "${ac_cv_c_int32_t+set}" = set; then |
|
|
8282 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8283 | else |
|
|
8284 | ac_cv_c_int32_t=no |
|
|
8285 | for ac_type in 'int32_t' 'int' 'long int' \ |
|
|
8286 | 'long long int' 'short int' 'signed char'; do |
8361 | cat >conftest.$ac_ext <<_ACEOF |
8287 | cat >conftest.$ac_ext <<_ACEOF |
8362 | /* confdefs.h. */ |
8288 | /* confdefs.h. */ |
8363 | _ACEOF |
8289 | _ACEOF |
8364 | cat confdefs.h >>conftest.$ac_ext |
8290 | cat confdefs.h >>conftest.$ac_ext |
8365 | cat >>conftest.$ac_ext <<_ACEOF |
8291 | cat >>conftest.$ac_ext <<_ACEOF |
8366 | /* end confdefs.h. */ |
8292 | /* end confdefs.h. */ |
8367 | $ac_includes_default |
8293 | $ac_includes_default |
8368 | typedef short ac__type_sizeof_; |
|
|
8369 | int |
8294 | int |
8370 | main () |
8295 | main () |
8371 | { |
8296 | { |
8372 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
8297 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))]; |
8373 | test_array [0] = 0 |
8298 | test_array [0] = 0 |
8374 | |
8299 | |
8375 | ; |
8300 | ; |
8376 | return 0; |
8301 | return 0; |
8377 | } |
8302 | } |
… | |
… | |
8391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8392 | (exit $ac_status); } && { |
8317 | (exit $ac_status); } && { |
8393 | test -z "$ac_cxx_werror_flag" || |
8318 | test -z "$ac_cxx_werror_flag" || |
8394 | test ! -s conftest.err |
8319 | test ! -s conftest.err |
8395 | } && test -s conftest.$ac_objext; then |
8320 | } && test -s conftest.$ac_objext; then |
8396 | ac_hi=-1 ac_mid=-1 |
|
|
8397 | while :; do |
|
|
8398 | cat >conftest.$ac_ext <<_ACEOF |
8321 | cat >conftest.$ac_ext <<_ACEOF |
8399 | /* confdefs.h. */ |
8322 | /* confdefs.h. */ |
8400 | _ACEOF |
8323 | _ACEOF |
8401 | cat confdefs.h >>conftest.$ac_ext |
8324 | cat confdefs.h >>conftest.$ac_ext |
8402 | cat >>conftest.$ac_ext <<_ACEOF |
8325 | cat >>conftest.$ac_ext <<_ACEOF |
8403 | /* end confdefs.h. */ |
8326 | /* end confdefs.h. */ |
8404 | $ac_includes_default |
8327 | $ac_includes_default |
8405 | typedef short ac__type_sizeof_; |
|
|
8406 | int |
8328 | int |
8407 | main () |
8329 | main () |
8408 | { |
8330 | { |
8409 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
8331 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1) |
|
|
8332 | < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))]; |
8410 | test_array [0] = 0 |
8333 | test_array [0] = 0 |
8411 | |
8334 | |
8412 | ; |
8335 | ; |
8413 | return 0; |
8336 | return 0; |
8414 | } |
8337 | } |
… | |
… | |
8428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8429 | (exit $ac_status); } && { |
8352 | (exit $ac_status); } && { |
8430 | test -z "$ac_cxx_werror_flag" || |
8353 | test -z "$ac_cxx_werror_flag" || |
8431 | test ! -s conftest.err |
8354 | test ! -s conftest.err |
8432 | } && test -s conftest.$ac_objext; then |
8355 | } && test -s conftest.$ac_objext; then |
8433 | ac_lo=$ac_mid; break |
8356 | : |
8434 | else |
8357 | else |
8435 | echo "$as_me: failed program was:" >&5 |
8358 | echo "$as_me: failed program was:" >&5 |
8436 | sed 's/^/| /' conftest.$ac_ext >&5 |
8359 | sed 's/^/| /' conftest.$ac_ext >&5 |
8437 | |
8360 | |
8438 | ac_hi=`expr '(' $ac_mid ')' - 1` |
8361 | case $ac_type in |
8439 | if test $ac_mid -le $ac_hi; then |
8362 | int32_t) ac_cv_c_int32_t=yes ;; |
8440 | ac_lo= ac_hi= |
8363 | *) ac_cv_c_int32_t=$ac_type ;; |
8441 | break |
8364 | esac |
8442 | fi |
8365 | |
8443 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
8444 | fi |
8366 | fi |
8445 | |
8367 | |
8446 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8368 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8447 | done |
|
|
8448 | else |
8369 | else |
8449 | echo "$as_me: failed program was:" >&5 |
8370 | echo "$as_me: failed program was:" >&5 |
8450 | sed 's/^/| /' conftest.$ac_ext >&5 |
8371 | sed 's/^/| /' conftest.$ac_ext >&5 |
8451 | |
8372 | |
8452 | ac_lo= ac_hi= |
8373 | |
8453 | fi |
8374 | fi |
8454 | |
8375 | |
8455 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8376 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8377 | test "$ac_cv_c_int32_t" != no && break |
|
|
8378 | done |
8456 | fi |
8379 | fi |
|
|
8380 | { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5 |
|
|
8381 | echo "${ECHO_T}$ac_cv_c_int32_t" >&6; } |
|
|
8382 | case $ac_cv_c_int32_t in #( |
|
|
8383 | no|yes) ;; #( |
|
|
8384 | *) |
8457 | |
8385 | |
8458 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8386 | cat >>confdefs.h <<_ACEOF |
8459 | # Binary search between lo and hi bounds. |
8387 | #define int32_t $ac_cv_c_int32_t |
8460 | while test "x$ac_lo" != "x$ac_hi"; do |
8388 | _ACEOF |
8461 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
8389 | ;; |
|
|
8390 | esac |
|
|
8391 | |
|
|
8392 | |
|
|
8393 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
|
|
8394 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
|
|
8395 | if test "${ac_cv_c_uint32_t+set}" = set; then |
|
|
8396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8397 | else |
|
|
8398 | ac_cv_c_uint32_t=no |
|
|
8399 | for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ |
|
|
8400 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
8462 | cat >conftest.$ac_ext <<_ACEOF |
8401 | cat >conftest.$ac_ext <<_ACEOF |
8463 | /* confdefs.h. */ |
8402 | /* confdefs.h. */ |
8464 | _ACEOF |
8403 | _ACEOF |
8465 | cat confdefs.h >>conftest.$ac_ext |
8404 | cat confdefs.h >>conftest.$ac_ext |
8466 | cat >>conftest.$ac_ext <<_ACEOF |
8405 | cat >>conftest.$ac_ext <<_ACEOF |
8467 | /* end confdefs.h. */ |
8406 | /* end confdefs.h. */ |
8468 | $ac_includes_default |
8407 | $ac_includes_default |
8469 | typedef short ac__type_sizeof_; |
|
|
8470 | int |
8408 | int |
8471 | main () |
8409 | main () |
8472 | { |
8410 | { |
8473 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
8411 | static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; |
8474 | test_array [0] = 0 |
8412 | test_array [0] = 0 |
8475 | |
8413 | |
8476 | ; |
8414 | ; |
8477 | return 0; |
8415 | return 0; |
8478 | } |
8416 | } |
… | |
… | |
8492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8493 | (exit $ac_status); } && { |
8431 | (exit $ac_status); } && { |
8494 | test -z "$ac_cxx_werror_flag" || |
8432 | test -z "$ac_cxx_werror_flag" || |
8495 | test ! -s conftest.err |
8433 | test ! -s conftest.err |
8496 | } && test -s conftest.$ac_objext; then |
8434 | } && test -s conftest.$ac_objext; then |
8497 | ac_hi=$ac_mid |
8435 | case $ac_type in |
|
|
8436 | uint32_t) ac_cv_c_uint32_t=yes ;; |
|
|
8437 | *) ac_cv_c_uint32_t=$ac_type ;; |
|
|
8438 | esac |
|
|
8439 | |
8498 | else |
8440 | else |
8499 | echo "$as_me: failed program was:" >&5 |
8441 | echo "$as_me: failed program was:" >&5 |
8500 | sed 's/^/| /' conftest.$ac_ext >&5 |
8442 | sed 's/^/| /' conftest.$ac_ext >&5 |
8501 | |
8443 | |
8502 | ac_lo=`expr '(' $ac_mid ')' + 1` |
8444 | |
8503 | fi |
8445 | fi |
8504 | |
8446 | |
8505 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8447 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8506 | done |
8448 | test "$ac_cv_c_uint32_t" != no && break |
8507 | case $ac_lo in |
8449 | done |
8508 | ?*) ac_cv_sizeof_short=$ac_lo;; |
|
|
8509 | '') if test "$ac_cv_type_short" = yes; then |
|
|
8510 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
|
|
8511 | See \`config.log' for more details." >&5 |
|
|
8512 | echo "$as_me: error: cannot compute sizeof (short) |
|
|
8513 | See \`config.log' for more details." >&2;} |
|
|
8514 | { (exit 77); exit 77; }; } |
|
|
8515 | else |
|
|
8516 | ac_cv_sizeof_short=0 |
|
|
8517 | fi ;; |
|
|
8518 | esac |
|
|
8519 | else |
|
|
8520 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8521 | /* confdefs.h. */ |
|
|
8522 | _ACEOF |
|
|
8523 | cat confdefs.h >>conftest.$ac_ext |
|
|
8524 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8525 | /* end confdefs.h. */ |
|
|
8526 | $ac_includes_default |
|
|
8527 | typedef short ac__type_sizeof_; |
|
|
8528 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8529 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8530 | #include <stdio.h> |
|
|
8531 | #include <stdlib.h> |
|
|
8532 | int |
|
|
8533 | main () |
|
|
8534 | { |
|
|
8535 | |
|
|
8536 | FILE *f = fopen ("conftest.val", "w"); |
|
|
8537 | if (! f) |
|
|
8538 | return 1; |
|
|
8539 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
8540 | { |
|
|
8541 | long int i = longval (); |
|
|
8542 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8543 | return 1; |
|
|
8544 | fprintf (f, "%ld\n", i); |
|
|
8545 | } |
|
|
8546 | else |
|
|
8547 | { |
|
|
8548 | unsigned long int i = ulongval (); |
|
|
8549 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8550 | return 1; |
|
|
8551 | fprintf (f, "%lu\n", i); |
|
|
8552 | } |
|
|
8553 | return ferror (f) || fclose (f) != 0; |
|
|
8554 | |
|
|
8555 | ; |
|
|
8556 | return 0; |
|
|
8557 | } |
|
|
8558 | _ACEOF |
|
|
8559 | rm -f conftest$ac_exeext |
|
|
8560 | if { (ac_try="$ac_link" |
|
|
8561 | case "(($ac_try" in |
|
|
8562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8563 | *) ac_try_echo=$ac_try;; |
|
|
8564 | esac |
|
|
8565 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8566 | (eval "$ac_link") 2>&5 |
|
|
8567 | ac_status=$? |
|
|
8568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8569 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
8570 | { (case "(($ac_try" in |
|
|
8571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8572 | *) ac_try_echo=$ac_try;; |
|
|
8573 | esac |
|
|
8574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8575 | (eval "$ac_try") 2>&5 |
|
|
8576 | ac_status=$? |
|
|
8577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8578 | (exit $ac_status); }; }; then |
|
|
8579 | ac_cv_sizeof_short=`cat conftest.val` |
|
|
8580 | else |
|
|
8581 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
8582 | echo "$as_me: failed program was:" >&5 |
|
|
8583 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8584 | |
|
|
8585 | ( exit $ac_status ) |
|
|
8586 | if test "$ac_cv_type_short" = yes; then |
|
|
8587 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
|
|
8588 | See \`config.log' for more details." >&5 |
|
|
8589 | echo "$as_me: error: cannot compute sizeof (short) |
|
|
8590 | See \`config.log' for more details." >&2;} |
|
|
8591 | { (exit 77); exit 77; }; } |
|
|
8592 | else |
|
|
8593 | ac_cv_sizeof_short=0 |
|
|
8594 | fi |
|
|
8595 | fi |
8450 | fi |
8596 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
8597 | fi |
|
|
8598 | rm -f conftest.val |
|
|
8599 | fi |
|
|
8600 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
8451 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 |
8601 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
8452 | echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; } |
|
|
8453 | case $ac_cv_c_uint32_t in #( |
|
|
8454 | no|yes) ;; #( |
|
|
8455 | *) |
8602 | |
8456 | |
|
|
8457 | cat >>confdefs.h <<\_ACEOF |
|
|
8458 | #define _UINT32_T 1 |
|
|
8459 | _ACEOF |
8603 | |
8460 | |
8604 | |
8461 | |
8605 | cat >>confdefs.h <<_ACEOF |
8462 | cat >>confdefs.h <<_ACEOF |
8606 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
8463 | #define uint32_t $ac_cv_c_uint32_t |
8607 | _ACEOF |
8464 | _ACEOF |
8608 | |
8465 | ;; |
8609 | |
|
|
8610 | { echo "$as_me:$LINENO: checking for int" >&5 |
|
|
8611 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
|
|
8612 | if test "${ac_cv_type_int+set}" = set; then |
|
|
8613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8614 | else |
|
|
8615 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8616 | /* confdefs.h. */ |
|
|
8617 | _ACEOF |
|
|
8618 | cat confdefs.h >>conftest.$ac_ext |
|
|
8619 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8620 | /* end confdefs.h. */ |
|
|
8621 | $ac_includes_default |
|
|
8622 | typedef int ac__type_new_; |
|
|
8623 | int |
|
|
8624 | main () |
|
|
8625 | { |
|
|
8626 | if ((ac__type_new_ *) 0) |
|
|
8627 | return 0; |
|
|
8628 | if (sizeof (ac__type_new_)) |
|
|
8629 | return 0; |
|
|
8630 | ; |
|
|
8631 | return 0; |
|
|
8632 | } |
|
|
8633 | _ACEOF |
|
|
8634 | rm -f conftest.$ac_objext |
|
|
8635 | if { (ac_try="$ac_compile" |
|
|
8636 | case "(($ac_try" in |
|
|
8637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8638 | *) ac_try_echo=$ac_try;; |
|
|
8639 | esac |
8466 | esac |
8640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8641 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8642 | ac_status=$? |
|
|
8643 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8644 | rm -f conftest.er1 |
|
|
8645 | cat conftest.err >&5 |
|
|
8646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8647 | (exit $ac_status); } && { |
|
|
8648 | test -z "$ac_cxx_werror_flag" || |
|
|
8649 | test ! -s conftest.err |
|
|
8650 | } && test -s conftest.$ac_objext; then |
|
|
8651 | ac_cv_type_int=yes |
|
|
8652 | else |
|
|
8653 | echo "$as_me: failed program was:" >&5 |
|
|
8654 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8655 | |
|
|
8656 | ac_cv_type_int=no |
|
|
8657 | fi |
|
|
8658 | |
|
|
8659 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8660 | fi |
|
|
8661 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
|
|
8662 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
|
|
8663 | |
|
|
8664 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8665 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8666 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8667 | # This bug is HP SR number 8606223364. |
|
|
8668 | { echo "$as_me:$LINENO: checking size of int" >&5 |
|
|
8669 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
|
|
8670 | if test "${ac_cv_sizeof_int+set}" = set; then |
|
|
8671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8672 | else |
|
|
8673 | if test "$cross_compiling" = yes; then |
|
|
8674 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8675 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8676 | /* confdefs.h. */ |
|
|
8677 | _ACEOF |
|
|
8678 | cat confdefs.h >>conftest.$ac_ext |
|
|
8679 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8680 | /* end confdefs.h. */ |
|
|
8681 | $ac_includes_default |
|
|
8682 | typedef int ac__type_sizeof_; |
|
|
8683 | int |
|
|
8684 | main () |
|
|
8685 | { |
|
|
8686 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
8687 | test_array [0] = 0 |
|
|
8688 | |
|
|
8689 | ; |
|
|
8690 | return 0; |
|
|
8691 | } |
|
|
8692 | _ACEOF |
|
|
8693 | rm -f conftest.$ac_objext |
|
|
8694 | if { (ac_try="$ac_compile" |
|
|
8695 | case "(($ac_try" in |
|
|
8696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8697 | *) ac_try_echo=$ac_try;; |
|
|
8698 | esac |
|
|
8699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8700 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8701 | ac_status=$? |
|
|
8702 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8703 | rm -f conftest.er1 |
|
|
8704 | cat conftest.err >&5 |
|
|
8705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8706 | (exit $ac_status); } && { |
|
|
8707 | test -z "$ac_cxx_werror_flag" || |
|
|
8708 | test ! -s conftest.err |
|
|
8709 | } && test -s conftest.$ac_objext; then |
|
|
8710 | ac_lo=0 ac_mid=0 |
|
|
8711 | while :; do |
|
|
8712 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8713 | /* confdefs.h. */ |
|
|
8714 | _ACEOF |
|
|
8715 | cat confdefs.h >>conftest.$ac_ext |
|
|
8716 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8717 | /* end confdefs.h. */ |
|
|
8718 | $ac_includes_default |
|
|
8719 | typedef int ac__type_sizeof_; |
|
|
8720 | int |
|
|
8721 | main () |
|
|
8722 | { |
|
|
8723 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8724 | test_array [0] = 0 |
|
|
8725 | |
|
|
8726 | ; |
|
|
8727 | return 0; |
|
|
8728 | } |
|
|
8729 | _ACEOF |
|
|
8730 | rm -f conftest.$ac_objext |
|
|
8731 | if { (ac_try="$ac_compile" |
|
|
8732 | case "(($ac_try" in |
|
|
8733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8734 | *) ac_try_echo=$ac_try;; |
|
|
8735 | esac |
|
|
8736 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8737 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8738 | ac_status=$? |
|
|
8739 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8740 | rm -f conftest.er1 |
|
|
8741 | cat conftest.err >&5 |
|
|
8742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8743 | (exit $ac_status); } && { |
|
|
8744 | test -z "$ac_cxx_werror_flag" || |
|
|
8745 | test ! -s conftest.err |
|
|
8746 | } && test -s conftest.$ac_objext; then |
|
|
8747 | ac_hi=$ac_mid; break |
|
|
8748 | else |
|
|
8749 | echo "$as_me: failed program was:" >&5 |
|
|
8750 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8751 | |
|
|
8752 | ac_lo=`expr $ac_mid + 1` |
|
|
8753 | if test $ac_lo -le $ac_mid; then |
|
|
8754 | ac_lo= ac_hi= |
|
|
8755 | break |
|
|
8756 | fi |
|
|
8757 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8758 | fi |
|
|
8759 | |
|
|
8760 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8761 | done |
|
|
8762 | else |
|
|
8763 | echo "$as_me: failed program was:" >&5 |
|
|
8764 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8765 | |
|
|
8766 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8767 | /* confdefs.h. */ |
|
|
8768 | _ACEOF |
|
|
8769 | cat confdefs.h >>conftest.$ac_ext |
|
|
8770 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8771 | /* end confdefs.h. */ |
|
|
8772 | $ac_includes_default |
|
|
8773 | typedef int ac__type_sizeof_; |
|
|
8774 | int |
|
|
8775 | main () |
|
|
8776 | { |
|
|
8777 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
8778 | test_array [0] = 0 |
|
|
8779 | |
|
|
8780 | ; |
|
|
8781 | return 0; |
|
|
8782 | } |
|
|
8783 | _ACEOF |
|
|
8784 | rm -f conftest.$ac_objext |
|
|
8785 | if { (ac_try="$ac_compile" |
|
|
8786 | case "(($ac_try" in |
|
|
8787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8788 | *) ac_try_echo=$ac_try;; |
|
|
8789 | esac |
|
|
8790 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8791 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8792 | ac_status=$? |
|
|
8793 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8794 | rm -f conftest.er1 |
|
|
8795 | cat conftest.err >&5 |
|
|
8796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8797 | (exit $ac_status); } && { |
|
|
8798 | test -z "$ac_cxx_werror_flag" || |
|
|
8799 | test ! -s conftest.err |
|
|
8800 | } && test -s conftest.$ac_objext; then |
|
|
8801 | ac_hi=-1 ac_mid=-1 |
|
|
8802 | while :; do |
|
|
8803 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8804 | /* confdefs.h. */ |
|
|
8805 | _ACEOF |
|
|
8806 | cat confdefs.h >>conftest.$ac_ext |
|
|
8807 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8808 | /* end confdefs.h. */ |
|
|
8809 | $ac_includes_default |
|
|
8810 | typedef int ac__type_sizeof_; |
|
|
8811 | int |
|
|
8812 | main () |
|
|
8813 | { |
|
|
8814 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
8815 | test_array [0] = 0 |
|
|
8816 | |
|
|
8817 | ; |
|
|
8818 | return 0; |
|
|
8819 | } |
|
|
8820 | _ACEOF |
|
|
8821 | rm -f conftest.$ac_objext |
|
|
8822 | if { (ac_try="$ac_compile" |
|
|
8823 | case "(($ac_try" in |
|
|
8824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8825 | *) ac_try_echo=$ac_try;; |
|
|
8826 | esac |
|
|
8827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8828 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8829 | ac_status=$? |
|
|
8830 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8831 | rm -f conftest.er1 |
|
|
8832 | cat conftest.err >&5 |
|
|
8833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8834 | (exit $ac_status); } && { |
|
|
8835 | test -z "$ac_cxx_werror_flag" || |
|
|
8836 | test ! -s conftest.err |
|
|
8837 | } && test -s conftest.$ac_objext; then |
|
|
8838 | ac_lo=$ac_mid; break |
|
|
8839 | else |
|
|
8840 | echo "$as_me: failed program was:" >&5 |
|
|
8841 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8842 | |
|
|
8843 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
8844 | if test $ac_mid -le $ac_hi; then |
|
|
8845 | ac_lo= ac_hi= |
|
|
8846 | break |
|
|
8847 | fi |
|
|
8848 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
8849 | fi |
|
|
8850 | |
|
|
8851 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8852 | done |
|
|
8853 | else |
|
|
8854 | echo "$as_me: failed program was:" >&5 |
|
|
8855 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8856 | |
|
|
8857 | ac_lo= ac_hi= |
|
|
8858 | fi |
|
|
8859 | |
|
|
8860 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8861 | fi |
|
|
8862 | |
|
|
8863 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8864 | # Binary search between lo and hi bounds. |
|
|
8865 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
8866 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
8867 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8868 | /* confdefs.h. */ |
|
|
8869 | _ACEOF |
|
|
8870 | cat confdefs.h >>conftest.$ac_ext |
|
|
8871 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8872 | /* end confdefs.h. */ |
|
|
8873 | $ac_includes_default |
|
|
8874 | typedef int ac__type_sizeof_; |
|
|
8875 | int |
|
|
8876 | main () |
|
|
8877 | { |
|
|
8878 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8879 | test_array [0] = 0 |
|
|
8880 | |
|
|
8881 | ; |
|
|
8882 | return 0; |
|
|
8883 | } |
|
|
8884 | _ACEOF |
|
|
8885 | rm -f conftest.$ac_objext |
|
|
8886 | if { (ac_try="$ac_compile" |
|
|
8887 | case "(($ac_try" in |
|
|
8888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8889 | *) ac_try_echo=$ac_try;; |
|
|
8890 | esac |
|
|
8891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8892 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8893 | ac_status=$? |
|
|
8894 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8895 | rm -f conftest.er1 |
|
|
8896 | cat conftest.err >&5 |
|
|
8897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8898 | (exit $ac_status); } && { |
|
|
8899 | test -z "$ac_cxx_werror_flag" || |
|
|
8900 | test ! -s conftest.err |
|
|
8901 | } && test -s conftest.$ac_objext; then |
|
|
8902 | ac_hi=$ac_mid |
|
|
8903 | else |
|
|
8904 | echo "$as_me: failed program was:" >&5 |
|
|
8905 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8906 | |
|
|
8907 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
8908 | fi |
|
|
8909 | |
|
|
8910 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8911 | done |
|
|
8912 | case $ac_lo in |
|
|
8913 | ?*) ac_cv_sizeof_int=$ac_lo;; |
|
|
8914 | '') if test "$ac_cv_type_int" = yes; then |
|
|
8915 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
|
|
8916 | See \`config.log' for more details." >&5 |
|
|
8917 | echo "$as_me: error: cannot compute sizeof (int) |
|
|
8918 | See \`config.log' for more details." >&2;} |
|
|
8919 | { (exit 77); exit 77; }; } |
|
|
8920 | else |
|
|
8921 | ac_cv_sizeof_int=0 |
|
|
8922 | fi ;; |
|
|
8923 | esac |
|
|
8924 | else |
|
|
8925 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8926 | /* confdefs.h. */ |
|
|
8927 | _ACEOF |
|
|
8928 | cat confdefs.h >>conftest.$ac_ext |
|
|
8929 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8930 | /* end confdefs.h. */ |
|
|
8931 | $ac_includes_default |
|
|
8932 | typedef int ac__type_sizeof_; |
|
|
8933 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8934 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8935 | #include <stdio.h> |
|
|
8936 | #include <stdlib.h> |
|
|
8937 | int |
|
|
8938 | main () |
|
|
8939 | { |
|
|
8940 | |
|
|
8941 | FILE *f = fopen ("conftest.val", "w"); |
|
|
8942 | if (! f) |
|
|
8943 | return 1; |
|
|
8944 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
8945 | { |
|
|
8946 | long int i = longval (); |
|
|
8947 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8948 | return 1; |
|
|
8949 | fprintf (f, "%ld\n", i); |
|
|
8950 | } |
|
|
8951 | else |
|
|
8952 | { |
|
|
8953 | unsigned long int i = ulongval (); |
|
|
8954 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8955 | return 1; |
|
|
8956 | fprintf (f, "%lu\n", i); |
|
|
8957 | } |
|
|
8958 | return ferror (f) || fclose (f) != 0; |
|
|
8959 | |
|
|
8960 | ; |
|
|
8961 | return 0; |
|
|
8962 | } |
|
|
8963 | _ACEOF |
|
|
8964 | rm -f conftest$ac_exeext |
|
|
8965 | if { (ac_try="$ac_link" |
|
|
8966 | case "(($ac_try" in |
|
|
8967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8968 | *) ac_try_echo=$ac_try;; |
|
|
8969 | esac |
|
|
8970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8971 | (eval "$ac_link") 2>&5 |
|
|
8972 | ac_status=$? |
|
|
8973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8974 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
8975 | { (case "(($ac_try" in |
|
|
8976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8977 | *) ac_try_echo=$ac_try;; |
|
|
8978 | esac |
|
|
8979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8980 | (eval "$ac_try") 2>&5 |
|
|
8981 | ac_status=$? |
|
|
8982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8983 | (exit $ac_status); }; }; then |
|
|
8984 | ac_cv_sizeof_int=`cat conftest.val` |
|
|
8985 | else |
|
|
8986 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
8987 | echo "$as_me: failed program was:" >&5 |
|
|
8988 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8989 | |
|
|
8990 | ( exit $ac_status ) |
|
|
8991 | if test "$ac_cv_type_int" = yes; then |
|
|
8992 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
|
|
8993 | See \`config.log' for more details." >&5 |
|
|
8994 | echo "$as_me: error: cannot compute sizeof (int) |
|
|
8995 | See \`config.log' for more details." >&2;} |
|
|
8996 | { (exit 77); exit 77; }; } |
|
|
8997 | else |
|
|
8998 | ac_cv_sizeof_int=0 |
|
|
8999 | fi |
|
|
9000 | fi |
|
|
9001 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
9002 | fi |
|
|
9003 | rm -f conftest.val |
|
|
9004 | fi |
|
|
9005 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
|
|
9006 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
|
|
9007 | |
|
|
9008 | |
|
|
9009 | |
|
|
9010 | cat >>confdefs.h <<_ACEOF |
|
|
9011 | #define SIZEOF_INT $ac_cv_sizeof_int |
|
|
9012 | _ACEOF |
|
|
9013 | |
|
|
9014 | |
|
|
9015 | { echo "$as_me:$LINENO: checking for long long" >&5 |
|
|
9016 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
|
|
9017 | if test "${ac_cv_type_long_long+set}" = set; then |
|
|
9018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9019 | else |
|
|
9020 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9021 | /* confdefs.h. */ |
|
|
9022 | _ACEOF |
|
|
9023 | cat confdefs.h >>conftest.$ac_ext |
|
|
9024 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9025 | /* end confdefs.h. */ |
|
|
9026 | $ac_includes_default |
|
|
9027 | typedef long long ac__type_new_; |
|
|
9028 | int |
|
|
9029 | main () |
|
|
9030 | { |
|
|
9031 | if ((ac__type_new_ *) 0) |
|
|
9032 | return 0; |
|
|
9033 | if (sizeof (ac__type_new_)) |
|
|
9034 | return 0; |
|
|
9035 | ; |
|
|
9036 | return 0; |
|
|
9037 | } |
|
|
9038 | _ACEOF |
|
|
9039 | rm -f conftest.$ac_objext |
|
|
9040 | if { (ac_try="$ac_compile" |
|
|
9041 | case "(($ac_try" in |
|
|
9042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9043 | *) ac_try_echo=$ac_try;; |
|
|
9044 | esac |
|
|
9045 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9046 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9047 | ac_status=$? |
|
|
9048 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9049 | rm -f conftest.er1 |
|
|
9050 | cat conftest.err >&5 |
|
|
9051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9052 | (exit $ac_status); } && { |
|
|
9053 | test -z "$ac_cxx_werror_flag" || |
|
|
9054 | test ! -s conftest.err |
|
|
9055 | } && test -s conftest.$ac_objext; then |
|
|
9056 | ac_cv_type_long_long=yes |
|
|
9057 | else |
|
|
9058 | echo "$as_me: failed program was:" >&5 |
|
|
9059 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9060 | |
|
|
9061 | ac_cv_type_long_long=no |
|
|
9062 | fi |
|
|
9063 | |
|
|
9064 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9065 | fi |
|
|
9066 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
|
|
9067 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
|
|
9068 | |
|
|
9069 | # The cast to long int works around a bug in the HP C Compiler |
|
|
9070 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
9071 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
9072 | # This bug is HP SR number 8606223364. |
|
|
9073 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
|
|
9074 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } |
|
|
9075 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
|
|
9076 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9077 | else |
|
|
9078 | if test "$cross_compiling" = yes; then |
|
|
9079 | # Depending upon the size, compute the lo and hi bounds. |
|
|
9080 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9081 | /* confdefs.h. */ |
|
|
9082 | _ACEOF |
|
|
9083 | cat confdefs.h >>conftest.$ac_ext |
|
|
9084 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9085 | /* end confdefs.h. */ |
|
|
9086 | $ac_includes_default |
|
|
9087 | typedef long long ac__type_sizeof_; |
|
|
9088 | int |
|
|
9089 | main () |
|
|
9090 | { |
|
|
9091 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
9092 | test_array [0] = 0 |
|
|
9093 | |
|
|
9094 | ; |
|
|
9095 | return 0; |
|
|
9096 | } |
|
|
9097 | _ACEOF |
|
|
9098 | rm -f conftest.$ac_objext |
|
|
9099 | if { (ac_try="$ac_compile" |
|
|
9100 | case "(($ac_try" in |
|
|
9101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9102 | *) ac_try_echo=$ac_try;; |
|
|
9103 | esac |
|
|
9104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9105 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9106 | ac_status=$? |
|
|
9107 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9108 | rm -f conftest.er1 |
|
|
9109 | cat conftest.err >&5 |
|
|
9110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9111 | (exit $ac_status); } && { |
|
|
9112 | test -z "$ac_cxx_werror_flag" || |
|
|
9113 | test ! -s conftest.err |
|
|
9114 | } && test -s conftest.$ac_objext; then |
|
|
9115 | ac_lo=0 ac_mid=0 |
|
|
9116 | while :; do |
|
|
9117 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9118 | /* confdefs.h. */ |
|
|
9119 | _ACEOF |
|
|
9120 | cat confdefs.h >>conftest.$ac_ext |
|
|
9121 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9122 | /* end confdefs.h. */ |
|
|
9123 | $ac_includes_default |
|
|
9124 | typedef long long ac__type_sizeof_; |
|
|
9125 | int |
|
|
9126 | main () |
|
|
9127 | { |
|
|
9128 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9129 | test_array [0] = 0 |
|
|
9130 | |
|
|
9131 | ; |
|
|
9132 | return 0; |
|
|
9133 | } |
|
|
9134 | _ACEOF |
|
|
9135 | rm -f conftest.$ac_objext |
|
|
9136 | if { (ac_try="$ac_compile" |
|
|
9137 | case "(($ac_try" in |
|
|
9138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9139 | *) ac_try_echo=$ac_try;; |
|
|
9140 | esac |
|
|
9141 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9142 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9143 | ac_status=$? |
|
|
9144 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9145 | rm -f conftest.er1 |
|
|
9146 | cat conftest.err >&5 |
|
|
9147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9148 | (exit $ac_status); } && { |
|
|
9149 | test -z "$ac_cxx_werror_flag" || |
|
|
9150 | test ! -s conftest.err |
|
|
9151 | } && test -s conftest.$ac_objext; then |
|
|
9152 | ac_hi=$ac_mid; break |
|
|
9153 | else |
|
|
9154 | echo "$as_me: failed program was:" >&5 |
|
|
9155 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9156 | |
|
|
9157 | ac_lo=`expr $ac_mid + 1` |
|
|
9158 | if test $ac_lo -le $ac_mid; then |
|
|
9159 | ac_lo= ac_hi= |
|
|
9160 | break |
|
|
9161 | fi |
|
|
9162 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
9163 | fi |
|
|
9164 | |
|
|
9165 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9166 | done |
|
|
9167 | else |
|
|
9168 | echo "$as_me: failed program was:" >&5 |
|
|
9169 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9170 | |
|
|
9171 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9172 | /* confdefs.h. */ |
|
|
9173 | _ACEOF |
|
|
9174 | cat confdefs.h >>conftest.$ac_ext |
|
|
9175 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9176 | /* end confdefs.h. */ |
|
|
9177 | $ac_includes_default |
|
|
9178 | typedef long long ac__type_sizeof_; |
|
|
9179 | int |
|
|
9180 | main () |
|
|
9181 | { |
|
|
9182 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
9183 | test_array [0] = 0 |
|
|
9184 | |
|
|
9185 | ; |
|
|
9186 | return 0; |
|
|
9187 | } |
|
|
9188 | _ACEOF |
|
|
9189 | rm -f conftest.$ac_objext |
|
|
9190 | if { (ac_try="$ac_compile" |
|
|
9191 | case "(($ac_try" in |
|
|
9192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9193 | *) ac_try_echo=$ac_try;; |
|
|
9194 | esac |
|
|
9195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9196 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9197 | ac_status=$? |
|
|
9198 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9199 | rm -f conftest.er1 |
|
|
9200 | cat conftest.err >&5 |
|
|
9201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9202 | (exit $ac_status); } && { |
|
|
9203 | test -z "$ac_cxx_werror_flag" || |
|
|
9204 | test ! -s conftest.err |
|
|
9205 | } && test -s conftest.$ac_objext; then |
|
|
9206 | ac_hi=-1 ac_mid=-1 |
|
|
9207 | while :; do |
|
|
9208 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9209 | /* confdefs.h. */ |
|
|
9210 | _ACEOF |
|
|
9211 | cat confdefs.h >>conftest.$ac_ext |
|
|
9212 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9213 | /* end confdefs.h. */ |
|
|
9214 | $ac_includes_default |
|
|
9215 | typedef long long ac__type_sizeof_; |
|
|
9216 | int |
|
|
9217 | main () |
|
|
9218 | { |
|
|
9219 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
9220 | test_array [0] = 0 |
|
|
9221 | |
|
|
9222 | ; |
|
|
9223 | return 0; |
|
|
9224 | } |
|
|
9225 | _ACEOF |
|
|
9226 | rm -f conftest.$ac_objext |
|
|
9227 | if { (ac_try="$ac_compile" |
|
|
9228 | case "(($ac_try" in |
|
|
9229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9230 | *) ac_try_echo=$ac_try;; |
|
|
9231 | esac |
|
|
9232 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9233 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9234 | ac_status=$? |
|
|
9235 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9236 | rm -f conftest.er1 |
|
|
9237 | cat conftest.err >&5 |
|
|
9238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9239 | (exit $ac_status); } && { |
|
|
9240 | test -z "$ac_cxx_werror_flag" || |
|
|
9241 | test ! -s conftest.err |
|
|
9242 | } && test -s conftest.$ac_objext; then |
|
|
9243 | ac_lo=$ac_mid; break |
|
|
9244 | else |
|
|
9245 | echo "$as_me: failed program was:" >&5 |
|
|
9246 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9247 | |
|
|
9248 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
9249 | if test $ac_mid -le $ac_hi; then |
|
|
9250 | ac_lo= ac_hi= |
|
|
9251 | break |
|
|
9252 | fi |
|
|
9253 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
9254 | fi |
|
|
9255 | |
|
|
9256 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9257 | done |
|
|
9258 | else |
|
|
9259 | echo "$as_me: failed program was:" >&5 |
|
|
9260 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9261 | |
|
|
9262 | ac_lo= ac_hi= |
|
|
9263 | fi |
|
|
9264 | |
|
|
9265 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9266 | fi |
|
|
9267 | |
|
|
9268 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9269 | # Binary search between lo and hi bounds. |
|
|
9270 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
9271 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
9272 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9273 | /* confdefs.h. */ |
|
|
9274 | _ACEOF |
|
|
9275 | cat confdefs.h >>conftest.$ac_ext |
|
|
9276 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9277 | /* end confdefs.h. */ |
|
|
9278 | $ac_includes_default |
|
|
9279 | typedef long long ac__type_sizeof_; |
|
|
9280 | int |
|
|
9281 | main () |
|
|
9282 | { |
|
|
9283 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9284 | test_array [0] = 0 |
|
|
9285 | |
|
|
9286 | ; |
|
|
9287 | return 0; |
|
|
9288 | } |
|
|
9289 | _ACEOF |
|
|
9290 | rm -f conftest.$ac_objext |
|
|
9291 | if { (ac_try="$ac_compile" |
|
|
9292 | case "(($ac_try" in |
|
|
9293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9294 | *) ac_try_echo=$ac_try;; |
|
|
9295 | esac |
|
|
9296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9297 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9298 | ac_status=$? |
|
|
9299 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9300 | rm -f conftest.er1 |
|
|
9301 | cat conftest.err >&5 |
|
|
9302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9303 | (exit $ac_status); } && { |
|
|
9304 | test -z "$ac_cxx_werror_flag" || |
|
|
9305 | test ! -s conftest.err |
|
|
9306 | } && test -s conftest.$ac_objext; then |
|
|
9307 | ac_hi=$ac_mid |
|
|
9308 | else |
|
|
9309 | echo "$as_me: failed program was:" >&5 |
|
|
9310 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9311 | |
|
|
9312 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
9313 | fi |
|
|
9314 | |
|
|
9315 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9316 | done |
|
|
9317 | case $ac_lo in |
|
|
9318 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
|
|
9319 | '') if test "$ac_cv_type_long_long" = yes; then |
|
|
9320 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
|
|
9321 | See \`config.log' for more details." >&5 |
|
|
9322 | echo "$as_me: error: cannot compute sizeof (long long) |
|
|
9323 | See \`config.log' for more details." >&2;} |
|
|
9324 | { (exit 77); exit 77; }; } |
|
|
9325 | else |
|
|
9326 | ac_cv_sizeof_long_long=0 |
|
|
9327 | fi ;; |
|
|
9328 | esac |
|
|
9329 | else |
|
|
9330 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9331 | /* confdefs.h. */ |
|
|
9332 | _ACEOF |
|
|
9333 | cat confdefs.h >>conftest.$ac_ext |
|
|
9334 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9335 | /* end confdefs.h. */ |
|
|
9336 | $ac_includes_default |
|
|
9337 | typedef long long ac__type_sizeof_; |
|
|
9338 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9339 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9340 | #include <stdio.h> |
|
|
9341 | #include <stdlib.h> |
|
|
9342 | int |
|
|
9343 | main () |
|
|
9344 | { |
|
|
9345 | |
|
|
9346 | FILE *f = fopen ("conftest.val", "w"); |
|
|
9347 | if (! f) |
|
|
9348 | return 1; |
|
|
9349 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
9350 | { |
|
|
9351 | long int i = longval (); |
|
|
9352 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9353 | return 1; |
|
|
9354 | fprintf (f, "%ld\n", i); |
|
|
9355 | } |
|
|
9356 | else |
|
|
9357 | { |
|
|
9358 | unsigned long int i = ulongval (); |
|
|
9359 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9360 | return 1; |
|
|
9361 | fprintf (f, "%lu\n", i); |
|
|
9362 | } |
|
|
9363 | return ferror (f) || fclose (f) != 0; |
|
|
9364 | |
|
|
9365 | ; |
|
|
9366 | return 0; |
|
|
9367 | } |
|
|
9368 | _ACEOF |
|
|
9369 | rm -f conftest$ac_exeext |
|
|
9370 | if { (ac_try="$ac_link" |
|
|
9371 | case "(($ac_try" in |
|
|
9372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9373 | *) ac_try_echo=$ac_try;; |
|
|
9374 | esac |
|
|
9375 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9376 | (eval "$ac_link") 2>&5 |
|
|
9377 | ac_status=$? |
|
|
9378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9379 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
9380 | { (case "(($ac_try" in |
|
|
9381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9382 | *) ac_try_echo=$ac_try;; |
|
|
9383 | esac |
|
|
9384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9385 | (eval "$ac_try") 2>&5 |
|
|
9386 | ac_status=$? |
|
|
9387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9388 | (exit $ac_status); }; }; then |
|
|
9389 | ac_cv_sizeof_long_long=`cat conftest.val` |
|
|
9390 | else |
|
|
9391 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
9392 | echo "$as_me: failed program was:" >&5 |
|
|
9393 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9394 | |
|
|
9395 | ( exit $ac_status ) |
|
|
9396 | if test "$ac_cv_type_long_long" = yes; then |
|
|
9397 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
|
|
9398 | See \`config.log' for more details." >&5 |
|
|
9399 | echo "$as_me: error: cannot compute sizeof (long long) |
|
|
9400 | See \`config.log' for more details." >&2;} |
|
|
9401 | { (exit 77); exit 77; }; } |
|
|
9402 | else |
|
|
9403 | ac_cv_sizeof_long_long=0 |
|
|
9404 | fi |
|
|
9405 | fi |
|
|
9406 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
9407 | fi |
|
|
9408 | rm -f conftest.val |
|
|
9409 | fi |
|
|
9410 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
|
|
9411 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
|
|
9412 | |
|
|
9413 | |
|
|
9414 | |
|
|
9415 | cat >>confdefs.h <<_ACEOF |
|
|
9416 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
|
|
9417 | _ACEOF |
|
|
9418 | |
|
|
9419 | |
|
|
9420 | { echo "$as_me:$LINENO: checking for int *" >&5 |
|
|
9421 | echo $ECHO_N "checking for int *... $ECHO_C" >&6; } |
|
|
9422 | if test "${ac_cv_type_int_p+set}" = set; then |
|
|
9423 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9424 | else |
|
|
9425 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9426 | /* confdefs.h. */ |
|
|
9427 | _ACEOF |
|
|
9428 | cat confdefs.h >>conftest.$ac_ext |
|
|
9429 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9430 | /* end confdefs.h. */ |
|
|
9431 | $ac_includes_default |
|
|
9432 | typedef int * ac__type_new_; |
|
|
9433 | int |
|
|
9434 | main () |
|
|
9435 | { |
|
|
9436 | if ((ac__type_new_ *) 0) |
|
|
9437 | return 0; |
|
|
9438 | if (sizeof (ac__type_new_)) |
|
|
9439 | return 0; |
|
|
9440 | ; |
|
|
9441 | return 0; |
|
|
9442 | } |
|
|
9443 | _ACEOF |
|
|
9444 | rm -f conftest.$ac_objext |
|
|
9445 | if { (ac_try="$ac_compile" |
|
|
9446 | case "(($ac_try" in |
|
|
9447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9448 | *) ac_try_echo=$ac_try;; |
|
|
9449 | esac |
|
|
9450 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9451 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9452 | ac_status=$? |
|
|
9453 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9454 | rm -f conftest.er1 |
|
|
9455 | cat conftest.err >&5 |
|
|
9456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9457 | (exit $ac_status); } && { |
|
|
9458 | test -z "$ac_cxx_werror_flag" || |
|
|
9459 | test ! -s conftest.err |
|
|
9460 | } && test -s conftest.$ac_objext; then |
|
|
9461 | ac_cv_type_int_p=yes |
|
|
9462 | else |
|
|
9463 | echo "$as_me: failed program was:" >&5 |
|
|
9464 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9465 | |
|
|
9466 | ac_cv_type_int_p=no |
|
|
9467 | fi |
|
|
9468 | |
|
|
9469 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9470 | fi |
|
|
9471 | { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5 |
|
|
9472 | echo "${ECHO_T}$ac_cv_type_int_p" >&6; } |
|
|
9473 | |
|
|
9474 | # The cast to long int works around a bug in the HP C Compiler |
|
|
9475 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
9476 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
9477 | # This bug is HP SR number 8606223364. |
|
|
9478 | { echo "$as_me:$LINENO: checking size of int *" >&5 |
|
|
9479 | echo $ECHO_N "checking size of int *... $ECHO_C" >&6; } |
|
|
9480 | if test "${ac_cv_sizeof_int_p+set}" = set; then |
|
|
9481 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9482 | else |
|
|
9483 | if test "$cross_compiling" = yes; then |
|
|
9484 | # Depending upon the size, compute the lo and hi bounds. |
|
|
9485 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9486 | /* confdefs.h. */ |
|
|
9487 | _ACEOF |
|
|
9488 | cat confdefs.h >>conftest.$ac_ext |
|
|
9489 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9490 | /* end confdefs.h. */ |
|
|
9491 | $ac_includes_default |
|
|
9492 | typedef int * ac__type_sizeof_; |
|
|
9493 | int |
|
|
9494 | main () |
|
|
9495 | { |
|
|
9496 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
9497 | test_array [0] = 0 |
|
|
9498 | |
|
|
9499 | ; |
|
|
9500 | return 0; |
|
|
9501 | } |
|
|
9502 | _ACEOF |
|
|
9503 | rm -f conftest.$ac_objext |
|
|
9504 | if { (ac_try="$ac_compile" |
|
|
9505 | case "(($ac_try" in |
|
|
9506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9507 | *) ac_try_echo=$ac_try;; |
|
|
9508 | esac |
|
|
9509 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9510 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9511 | ac_status=$? |
|
|
9512 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9513 | rm -f conftest.er1 |
|
|
9514 | cat conftest.err >&5 |
|
|
9515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9516 | (exit $ac_status); } && { |
|
|
9517 | test -z "$ac_cxx_werror_flag" || |
|
|
9518 | test ! -s conftest.err |
|
|
9519 | } && test -s conftest.$ac_objext; then |
|
|
9520 | ac_lo=0 ac_mid=0 |
|
|
9521 | while :; do |
|
|
9522 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9523 | /* confdefs.h. */ |
|
|
9524 | _ACEOF |
|
|
9525 | cat confdefs.h >>conftest.$ac_ext |
|
|
9526 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9527 | /* end confdefs.h. */ |
|
|
9528 | $ac_includes_default |
|
|
9529 | typedef int * ac__type_sizeof_; |
|
|
9530 | int |
|
|
9531 | main () |
|
|
9532 | { |
|
|
9533 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9534 | test_array [0] = 0 |
|
|
9535 | |
|
|
9536 | ; |
|
|
9537 | return 0; |
|
|
9538 | } |
|
|
9539 | _ACEOF |
|
|
9540 | rm -f conftest.$ac_objext |
|
|
9541 | if { (ac_try="$ac_compile" |
|
|
9542 | case "(($ac_try" in |
|
|
9543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9544 | *) ac_try_echo=$ac_try;; |
|
|
9545 | esac |
|
|
9546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9547 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9548 | ac_status=$? |
|
|
9549 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9550 | rm -f conftest.er1 |
|
|
9551 | cat conftest.err >&5 |
|
|
9552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9553 | (exit $ac_status); } && { |
|
|
9554 | test -z "$ac_cxx_werror_flag" || |
|
|
9555 | test ! -s conftest.err |
|
|
9556 | } && test -s conftest.$ac_objext; then |
|
|
9557 | ac_hi=$ac_mid; break |
|
|
9558 | else |
|
|
9559 | echo "$as_me: failed program was:" >&5 |
|
|
9560 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9561 | |
|
|
9562 | ac_lo=`expr $ac_mid + 1` |
|
|
9563 | if test $ac_lo -le $ac_mid; then |
|
|
9564 | ac_lo= ac_hi= |
|
|
9565 | break |
|
|
9566 | fi |
|
|
9567 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
9568 | fi |
|
|
9569 | |
|
|
9570 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9571 | done |
|
|
9572 | else |
|
|
9573 | echo "$as_me: failed program was:" >&5 |
|
|
9574 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9575 | |
|
|
9576 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9577 | /* confdefs.h. */ |
|
|
9578 | _ACEOF |
|
|
9579 | cat confdefs.h >>conftest.$ac_ext |
|
|
9580 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9581 | /* end confdefs.h. */ |
|
|
9582 | $ac_includes_default |
|
|
9583 | typedef int * ac__type_sizeof_; |
|
|
9584 | int |
|
|
9585 | main () |
|
|
9586 | { |
|
|
9587 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
9588 | test_array [0] = 0 |
|
|
9589 | |
|
|
9590 | ; |
|
|
9591 | return 0; |
|
|
9592 | } |
|
|
9593 | _ACEOF |
|
|
9594 | rm -f conftest.$ac_objext |
|
|
9595 | if { (ac_try="$ac_compile" |
|
|
9596 | case "(($ac_try" in |
|
|
9597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9598 | *) ac_try_echo=$ac_try;; |
|
|
9599 | esac |
|
|
9600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9601 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9602 | ac_status=$? |
|
|
9603 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9604 | rm -f conftest.er1 |
|
|
9605 | cat conftest.err >&5 |
|
|
9606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9607 | (exit $ac_status); } && { |
|
|
9608 | test -z "$ac_cxx_werror_flag" || |
|
|
9609 | test ! -s conftest.err |
|
|
9610 | } && test -s conftest.$ac_objext; then |
|
|
9611 | ac_hi=-1 ac_mid=-1 |
|
|
9612 | while :; do |
|
|
9613 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9614 | /* confdefs.h. */ |
|
|
9615 | _ACEOF |
|
|
9616 | cat confdefs.h >>conftest.$ac_ext |
|
|
9617 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9618 | /* end confdefs.h. */ |
|
|
9619 | $ac_includes_default |
|
|
9620 | typedef int * ac__type_sizeof_; |
|
|
9621 | int |
|
|
9622 | main () |
|
|
9623 | { |
|
|
9624 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
9625 | test_array [0] = 0 |
|
|
9626 | |
|
|
9627 | ; |
|
|
9628 | return 0; |
|
|
9629 | } |
|
|
9630 | _ACEOF |
|
|
9631 | rm -f conftest.$ac_objext |
|
|
9632 | if { (ac_try="$ac_compile" |
|
|
9633 | case "(($ac_try" in |
|
|
9634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9635 | *) ac_try_echo=$ac_try;; |
|
|
9636 | esac |
|
|
9637 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9638 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9639 | ac_status=$? |
|
|
9640 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9641 | rm -f conftest.er1 |
|
|
9642 | cat conftest.err >&5 |
|
|
9643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9644 | (exit $ac_status); } && { |
|
|
9645 | test -z "$ac_cxx_werror_flag" || |
|
|
9646 | test ! -s conftest.err |
|
|
9647 | } && test -s conftest.$ac_objext; then |
|
|
9648 | ac_lo=$ac_mid; break |
|
|
9649 | else |
|
|
9650 | echo "$as_me: failed program was:" >&5 |
|
|
9651 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9652 | |
|
|
9653 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
9654 | if test $ac_mid -le $ac_hi; then |
|
|
9655 | ac_lo= ac_hi= |
|
|
9656 | break |
|
|
9657 | fi |
|
|
9658 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
9659 | fi |
|
|
9660 | |
|
|
9661 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9662 | done |
|
|
9663 | else |
|
|
9664 | echo "$as_me: failed program was:" >&5 |
|
|
9665 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9666 | |
|
|
9667 | ac_lo= ac_hi= |
|
|
9668 | fi |
|
|
9669 | |
|
|
9670 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9671 | fi |
|
|
9672 | |
|
|
9673 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9674 | # Binary search between lo and hi bounds. |
|
|
9675 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
9676 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
9677 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9678 | /* confdefs.h. */ |
|
|
9679 | _ACEOF |
|
|
9680 | cat confdefs.h >>conftest.$ac_ext |
|
|
9681 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9682 | /* end confdefs.h. */ |
|
|
9683 | $ac_includes_default |
|
|
9684 | typedef int * ac__type_sizeof_; |
|
|
9685 | int |
|
|
9686 | main () |
|
|
9687 | { |
|
|
9688 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9689 | test_array [0] = 0 |
|
|
9690 | |
|
|
9691 | ; |
|
|
9692 | return 0; |
|
|
9693 | } |
|
|
9694 | _ACEOF |
|
|
9695 | rm -f conftest.$ac_objext |
|
|
9696 | if { (ac_try="$ac_compile" |
|
|
9697 | case "(($ac_try" in |
|
|
9698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9699 | *) ac_try_echo=$ac_try;; |
|
|
9700 | esac |
|
|
9701 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9702 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9703 | ac_status=$? |
|
|
9704 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9705 | rm -f conftest.er1 |
|
|
9706 | cat conftest.err >&5 |
|
|
9707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9708 | (exit $ac_status); } && { |
|
|
9709 | test -z "$ac_cxx_werror_flag" || |
|
|
9710 | test ! -s conftest.err |
|
|
9711 | } && test -s conftest.$ac_objext; then |
|
|
9712 | ac_hi=$ac_mid |
|
|
9713 | else |
|
|
9714 | echo "$as_me: failed program was:" >&5 |
|
|
9715 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9716 | |
|
|
9717 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
9718 | fi |
|
|
9719 | |
|
|
9720 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9721 | done |
|
|
9722 | case $ac_lo in |
|
|
9723 | ?*) ac_cv_sizeof_int_p=$ac_lo;; |
|
|
9724 | '') if test "$ac_cv_type_int_p" = yes; then |
|
|
9725 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *) |
|
|
9726 | See \`config.log' for more details." >&5 |
|
|
9727 | echo "$as_me: error: cannot compute sizeof (int *) |
|
|
9728 | See \`config.log' for more details." >&2;} |
|
|
9729 | { (exit 77); exit 77; }; } |
|
|
9730 | else |
|
|
9731 | ac_cv_sizeof_int_p=0 |
|
|
9732 | fi ;; |
|
|
9733 | esac |
|
|
9734 | else |
|
|
9735 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9736 | /* confdefs.h. */ |
|
|
9737 | _ACEOF |
|
|
9738 | cat confdefs.h >>conftest.$ac_ext |
|
|
9739 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9740 | /* end confdefs.h. */ |
|
|
9741 | $ac_includes_default |
|
|
9742 | typedef int * ac__type_sizeof_; |
|
|
9743 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9744 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9745 | #include <stdio.h> |
|
|
9746 | #include <stdlib.h> |
|
|
9747 | int |
|
|
9748 | main () |
|
|
9749 | { |
|
|
9750 | |
|
|
9751 | FILE *f = fopen ("conftest.val", "w"); |
|
|
9752 | if (! f) |
|
|
9753 | return 1; |
|
|
9754 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
9755 | { |
|
|
9756 | long int i = longval (); |
|
|
9757 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9758 | return 1; |
|
|
9759 | fprintf (f, "%ld\n", i); |
|
|
9760 | } |
|
|
9761 | else |
|
|
9762 | { |
|
|
9763 | unsigned long int i = ulongval (); |
|
|
9764 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9765 | return 1; |
|
|
9766 | fprintf (f, "%lu\n", i); |
|
|
9767 | } |
|
|
9768 | return ferror (f) || fclose (f) != 0; |
|
|
9769 | |
|
|
9770 | ; |
|
|
9771 | return 0; |
|
|
9772 | } |
|
|
9773 | _ACEOF |
|
|
9774 | rm -f conftest$ac_exeext |
|
|
9775 | if { (ac_try="$ac_link" |
|
|
9776 | case "(($ac_try" in |
|
|
9777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9778 | *) ac_try_echo=$ac_try;; |
|
|
9779 | esac |
|
|
9780 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9781 | (eval "$ac_link") 2>&5 |
|
|
9782 | ac_status=$? |
|
|
9783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9784 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
9785 | { (case "(($ac_try" in |
|
|
9786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9787 | *) ac_try_echo=$ac_try;; |
|
|
9788 | esac |
|
|
9789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9790 | (eval "$ac_try") 2>&5 |
|
|
9791 | ac_status=$? |
|
|
9792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9793 | (exit $ac_status); }; }; then |
|
|
9794 | ac_cv_sizeof_int_p=`cat conftest.val` |
|
|
9795 | else |
|
|
9796 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
9797 | echo "$as_me: failed program was:" >&5 |
|
|
9798 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9799 | |
|
|
9800 | ( exit $ac_status ) |
|
|
9801 | if test "$ac_cv_type_int_p" = yes; then |
|
|
9802 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *) |
|
|
9803 | See \`config.log' for more details." >&5 |
|
|
9804 | echo "$as_me: error: cannot compute sizeof (int *) |
|
|
9805 | See \`config.log' for more details." >&2;} |
|
|
9806 | { (exit 77); exit 77; }; } |
|
|
9807 | else |
|
|
9808 | ac_cv_sizeof_int_p=0 |
|
|
9809 | fi |
|
|
9810 | fi |
|
|
9811 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
9812 | fi |
|
|
9813 | rm -f conftest.val |
|
|
9814 | fi |
|
|
9815 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5 |
|
|
9816 | echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; } |
|
|
9817 | |
|
|
9818 | |
|
|
9819 | |
|
|
9820 | cat >>confdefs.h <<_ACEOF |
|
|
9821 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p |
|
|
9822 | _ACEOF |
|
|
9823 | |
|
|
9824 | |
|
|
9825 | |
|
|
9826 | |
|
|
9827 | { echo "$as_me:$LINENO: checking for int16_t" >&5 |
|
|
9828 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } |
|
|
9829 | if test "${rxvt_cv_int16_t+set}" = set; then |
|
|
9830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9831 | else |
|
|
9832 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9833 | /* confdefs.h. */ |
|
|
9834 | _ACEOF |
|
|
9835 | cat confdefs.h >>conftest.$ac_ext |
|
|
9836 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9837 | /* end confdefs.h. */ |
|
|
9838 | #include <stdint.h> |
|
|
9839 | int |
|
|
9840 | main () |
|
|
9841 | { |
|
|
9842 | int16_t dummy; |
|
|
9843 | ; |
|
|
9844 | return 0; |
|
|
9845 | } |
|
|
9846 | _ACEOF |
|
|
9847 | rm -f conftest.$ac_objext |
|
|
9848 | if { (ac_try="$ac_compile" |
|
|
9849 | case "(($ac_try" in |
|
|
9850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9851 | *) ac_try_echo=$ac_try;; |
|
|
9852 | esac |
|
|
9853 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9854 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9855 | ac_status=$? |
|
|
9856 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9857 | rm -f conftest.er1 |
|
|
9858 | cat conftest.err >&5 |
|
|
9859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9860 | (exit $ac_status); } && { |
|
|
9861 | test -z "$ac_cxx_werror_flag" || |
|
|
9862 | test ! -s conftest.err |
|
|
9863 | } && test -s conftest.$ac_objext; then |
|
|
9864 | rxvt_cv_int16_t=yes |
|
|
9865 | else |
|
|
9866 | echo "$as_me: failed program was:" >&5 |
|
|
9867 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9868 | |
|
|
9869 | if test "$ac_cv_sizeof_char" -ge 2; then |
|
|
9870 | rxvt_cv_int16_t=" char" |
|
|
9871 | else |
|
|
9872 | if test "$ac_cv_sizeof_short" -ge 2; then |
|
|
9873 | rxvt_cv_int16_t=" short" |
|
|
9874 | else |
|
|
9875 | if test "$ac_cv_sizeof_int" -ge 2; then |
|
|
9876 | rxvt_cv_int16_t=" int" |
|
|
9877 | else |
|
|
9878 | if test "$ac_cv_sizeof_long" -ge 2; then |
|
|
9879 | rxvt_cv_int16_t=" long" |
|
|
9880 | else |
|
|
9881 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
|
|
9882 | rxvt_cv_int16_t=" long long" |
|
|
9883 | else |
|
|
9884 | rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default |
|
|
9885 | fi |
|
|
9886 | fi |
|
|
9887 | fi |
|
|
9888 | fi |
|
|
9889 | fi |
|
|
9890 | fi |
|
|
9891 | |
|
|
9892 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9893 | fi |
|
|
9894 | { echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5 |
|
|
9895 | echo "${ECHO_T}$rxvt_cv_int16_t" >&6; } |
|
|
9896 | if test x"$rxvt_cv_int16_t" != xyes; then |
|
|
9897 | rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;" |
|
|
9898 | else |
|
|
9899 | if test x"" = x; then |
|
|
9900 | rxvt_int16_typedef="/* typedef short int16_t; */" |
|
|
9901 | else |
|
|
9902 | rxvt_int16_typedef="/* typedef short int16_t; */" |
|
|
9903 | fi |
|
|
9904 | fi |
|
|
9905 | |
|
|
9906 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 |
|
|
9907 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } |
|
|
9908 | if test "${rxvt_cv_uint16_t+set}" = set; then |
|
|
9909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9910 | else |
|
|
9911 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9912 | /* confdefs.h. */ |
|
|
9913 | _ACEOF |
|
|
9914 | cat confdefs.h >>conftest.$ac_ext |
|
|
9915 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9916 | /* end confdefs.h. */ |
|
|
9917 | #include <stdint.h> |
|
|
9918 | int |
|
|
9919 | main () |
|
|
9920 | { |
|
|
9921 | uint16_t dummy; |
|
|
9922 | ; |
|
|
9923 | return 0; |
|
|
9924 | } |
|
|
9925 | _ACEOF |
|
|
9926 | rm -f conftest.$ac_objext |
|
|
9927 | if { (ac_try="$ac_compile" |
|
|
9928 | case "(($ac_try" in |
|
|
9929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9930 | *) ac_try_echo=$ac_try;; |
|
|
9931 | esac |
|
|
9932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9933 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9934 | ac_status=$? |
|
|
9935 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9936 | rm -f conftest.er1 |
|
|
9937 | cat conftest.err >&5 |
|
|
9938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9939 | (exit $ac_status); } && { |
|
|
9940 | test -z "$ac_cxx_werror_flag" || |
|
|
9941 | test ! -s conftest.err |
|
|
9942 | } && test -s conftest.$ac_objext; then |
|
|
9943 | rxvt_cv_uint16_t=yes |
|
|
9944 | else |
|
|
9945 | echo "$as_me: failed program was:" >&5 |
|
|
9946 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9947 | |
|
|
9948 | if test "$ac_cv_sizeof_char" -ge 2; then |
|
|
9949 | rxvt_cv_uint16_t="unsigned char" |
|
|
9950 | else |
|
|
9951 | if test "$ac_cv_sizeof_short" -ge 2; then |
|
|
9952 | rxvt_cv_uint16_t="unsigned short" |
|
|
9953 | else |
|
|
9954 | if test "$ac_cv_sizeof_int" -ge 2; then |
|
|
9955 | rxvt_cv_uint16_t="unsigned int" |
|
|
9956 | else |
|
|
9957 | if test "$ac_cv_sizeof_long" -ge 2; then |
|
|
9958 | rxvt_cv_uint16_t="unsigned long" |
|
|
9959 | else |
|
|
9960 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
|
|
9961 | rxvt_cv_uint16_t="unsigned long long" |
|
|
9962 | else |
|
|
9963 | rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default |
|
|
9964 | fi |
|
|
9965 | fi |
|
|
9966 | fi |
|
|
9967 | fi |
|
|
9968 | fi |
|
|
9969 | fi |
|
|
9970 | |
|
|
9971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9972 | fi |
|
|
9973 | { echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5 |
|
|
9974 | echo "${ECHO_T}$rxvt_cv_uint16_t" >&6; } |
|
|
9975 | if test x"$rxvt_cv_uint16_t" != xyes; then |
|
|
9976 | rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;" |
|
|
9977 | else |
|
|
9978 | if test x"unsigned" = x; then |
|
|
9979 | rxvt_uint16_typedef="/* typedef short uint16_t; */" |
|
|
9980 | else |
|
|
9981 | rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */" |
|
|
9982 | fi |
|
|
9983 | fi |
|
|
9984 | |
|
|
9985 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
|
|
9986 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
|
|
9987 | if test "${rxvt_cv_int32_t+set}" = set; then |
|
|
9988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9989 | else |
|
|
9990 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9991 | /* confdefs.h. */ |
|
|
9992 | _ACEOF |
|
|
9993 | cat confdefs.h >>conftest.$ac_ext |
|
|
9994 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9995 | /* end confdefs.h. */ |
|
|
9996 | #include <stdint.h> |
|
|
9997 | int |
|
|
9998 | main () |
|
|
9999 | { |
|
|
10000 | int32_t dummy; |
|
|
10001 | ; |
|
|
10002 | return 0; |
|
|
10003 | } |
|
|
10004 | _ACEOF |
|
|
10005 | rm -f conftest.$ac_objext |
|
|
10006 | if { (ac_try="$ac_compile" |
|
|
10007 | case "(($ac_try" in |
|
|
10008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10009 | *) ac_try_echo=$ac_try;; |
|
|
10010 | esac |
|
|
10011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10012 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10013 | ac_status=$? |
|
|
10014 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10015 | rm -f conftest.er1 |
|
|
10016 | cat conftest.err >&5 |
|
|
10017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10018 | (exit $ac_status); } && { |
|
|
10019 | test -z "$ac_cxx_werror_flag" || |
|
|
10020 | test ! -s conftest.err |
|
|
10021 | } && test -s conftest.$ac_objext; then |
|
|
10022 | rxvt_cv_int32_t=yes |
|
|
10023 | else |
|
|
10024 | echo "$as_me: failed program was:" >&5 |
|
|
10025 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10026 | |
|
|
10027 | if test "$ac_cv_sizeof_char" -ge 4; then |
|
|
10028 | rxvt_cv_int32_t=" char" |
|
|
10029 | else |
|
|
10030 | if test "$ac_cv_sizeof_short" -ge 4; then |
|
|
10031 | rxvt_cv_int32_t=" short" |
|
|
10032 | else |
|
|
10033 | if test "$ac_cv_sizeof_int" -ge 4; then |
|
|
10034 | rxvt_cv_int32_t=" int" |
|
|
10035 | else |
|
|
10036 | if test "$ac_cv_sizeof_long" -ge 4; then |
|
|
10037 | rxvt_cv_int32_t=" long" |
|
|
10038 | else |
|
|
10039 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
|
|
10040 | rxvt_cv_int32_t=" long long" |
|
|
10041 | else |
|
|
10042 | rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default |
|
|
10043 | fi |
|
|
10044 | fi |
|
|
10045 | fi |
|
|
10046 | fi |
|
|
10047 | fi |
|
|
10048 | fi |
|
|
10049 | |
|
|
10050 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10051 | fi |
|
|
10052 | { echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5 |
|
|
10053 | echo "${ECHO_T}$rxvt_cv_int32_t" >&6; } |
|
|
10054 | if test x"$rxvt_cv_int32_t" != xyes; then |
|
|
10055 | rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;" |
|
|
10056 | else |
|
|
10057 | if test x"" = x; then |
|
|
10058 | rxvt_int32_typedef="/* typedef int int32_t; */" |
|
|
10059 | else |
|
|
10060 | rxvt_int32_typedef="/* typedef int int32_t; */" |
|
|
10061 | fi |
|
|
10062 | fi |
|
|
10063 | |
|
|
10064 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
|
|
10065 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
|
|
10066 | if test "${rxvt_cv_uint32_t+set}" = set; then |
|
|
10067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10068 | else |
|
|
10069 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10070 | /* confdefs.h. */ |
|
|
10071 | _ACEOF |
|
|
10072 | cat confdefs.h >>conftest.$ac_ext |
|
|
10073 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10074 | /* end confdefs.h. */ |
|
|
10075 | #include <stdint.h> |
|
|
10076 | int |
|
|
10077 | main () |
|
|
10078 | { |
|
|
10079 | uint32_t dummy; |
|
|
10080 | ; |
|
|
10081 | return 0; |
|
|
10082 | } |
|
|
10083 | _ACEOF |
|
|
10084 | rm -f conftest.$ac_objext |
|
|
10085 | if { (ac_try="$ac_compile" |
|
|
10086 | case "(($ac_try" in |
|
|
10087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10088 | *) ac_try_echo=$ac_try;; |
|
|
10089 | esac |
|
|
10090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10091 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10092 | ac_status=$? |
|
|
10093 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10094 | rm -f conftest.er1 |
|
|
10095 | cat conftest.err >&5 |
|
|
10096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10097 | (exit $ac_status); } && { |
|
|
10098 | test -z "$ac_cxx_werror_flag" || |
|
|
10099 | test ! -s conftest.err |
|
|
10100 | } && test -s conftest.$ac_objext; then |
|
|
10101 | rxvt_cv_uint32_t=yes |
|
|
10102 | else |
|
|
10103 | echo "$as_me: failed program was:" >&5 |
|
|
10104 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10105 | |
|
|
10106 | if test "$ac_cv_sizeof_char" -ge 4; then |
|
|
10107 | rxvt_cv_uint32_t="unsigned char" |
|
|
10108 | else |
|
|
10109 | if test "$ac_cv_sizeof_short" -ge 4; then |
|
|
10110 | rxvt_cv_uint32_t="unsigned short" |
|
|
10111 | else |
|
|
10112 | if test "$ac_cv_sizeof_int" -ge 4; then |
|
|
10113 | rxvt_cv_uint32_t="unsigned int" |
|
|
10114 | else |
|
|
10115 | if test "$ac_cv_sizeof_long" -ge 4; then |
|
|
10116 | rxvt_cv_uint32_t="unsigned long" |
|
|
10117 | else |
|
|
10118 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
|
|
10119 | rxvt_cv_uint32_t="unsigned long long" |
|
|
10120 | else |
|
|
10121 | rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default |
|
|
10122 | fi |
|
|
10123 | fi |
|
|
10124 | fi |
|
|
10125 | fi |
|
|
10126 | fi |
|
|
10127 | fi |
|
|
10128 | |
|
|
10129 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10130 | fi |
|
|
10131 | { echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5 |
|
|
10132 | echo "${ECHO_T}$rxvt_cv_uint32_t" >&6; } |
|
|
10133 | if test x"$rxvt_cv_uint32_t" != xyes; then |
|
|
10134 | rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;" |
|
|
10135 | else |
|
|
10136 | if test x"unsigned" = x; then |
|
|
10137 | rxvt_uint32_typedef="/* typedef int uint32_t; */" |
|
|
10138 | else |
|
|
10139 | rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" |
|
|
10140 | fi |
|
|
10141 | fi |
|
|
10142 | |
|
|
10143 | if test "$ac_cv_sizeof_int_p" -eq 8; then |
|
|
10144 | rxvt_intp_define="#define intp_t int64_t" |
|
|
10145 | rxvt_u_intp_define="#define u_intp_t u_int64_t" |
|
|
10146 | else |
|
|
10147 | if test "$ac_cv_sizeof_int_p" -eq 4; then |
|
|
10148 | rxvt_intp_define="#define intp_t int32_t" |
|
|
10149 | rxvt_u_intp_define="#define u_intp_t u_int32_t" |
|
|
10150 | else |
|
|
10151 | if test "$ac_cv_sizeof_int_p" -eq 2; then |
|
|
10152 | rxvt_intp_define="#define intp_t int16_t" |
|
|
10153 | rxvt_u_intp_define="#define u_intp_t u_int16_t" |
|
|
10154 | else |
|
|
10155 | rxvt_intp_define="#error set intp_t" |
|
|
10156 | rxvt_u_intp_define="#error set u_intp_t" |
|
|
10157 | fi |
|
|
10158 | fi |
|
|
10159 | fi |
|
|
10160 | |
|
|
10161 | |
|
|
10162 | |
|
|
10163 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
|
|
10164 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } |
|
|
10165 | if test "${ac_cv_type_signal+set}" = set; then |
|
|
10166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10167 | else |
|
|
10168 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10169 | /* confdefs.h. */ |
|
|
10170 | _ACEOF |
|
|
10171 | cat confdefs.h >>conftest.$ac_ext |
|
|
10172 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10173 | /* end confdefs.h. */ |
|
|
10174 | #include <sys/types.h> |
|
|
10175 | #include <signal.h> |
|
|
10176 | |
|
|
10177 | int |
|
|
10178 | main () |
|
|
10179 | { |
|
|
10180 | return *(signal (0, 0)) (0) == 1; |
|
|
10181 | ; |
|
|
10182 | return 0; |
|
|
10183 | } |
|
|
10184 | _ACEOF |
|
|
10185 | rm -f conftest.$ac_objext |
|
|
10186 | if { (ac_try="$ac_compile" |
|
|
10187 | case "(($ac_try" in |
|
|
10188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10189 | *) ac_try_echo=$ac_try;; |
|
|
10190 | esac |
|
|
10191 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10192 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10193 | ac_status=$? |
|
|
10194 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10195 | rm -f conftest.er1 |
|
|
10196 | cat conftest.err >&5 |
|
|
10197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10198 | (exit $ac_status); } && { |
|
|
10199 | test -z "$ac_cxx_werror_flag" || |
|
|
10200 | test ! -s conftest.err |
|
|
10201 | } && test -s conftest.$ac_objext; then |
|
|
10202 | ac_cv_type_signal=int |
|
|
10203 | else |
|
|
10204 | echo "$as_me: failed program was:" >&5 |
|
|
10205 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10206 | |
|
|
10207 | ac_cv_type_signal=void |
|
|
10208 | fi |
|
|
10209 | |
|
|
10210 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10211 | fi |
|
|
10212 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
|
|
10213 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
|
|
10214 | |
|
|
10215 | cat >>confdefs.h <<_ACEOF |
|
|
10216 | #define RETSIGTYPE $ac_cv_type_signal |
|
|
10217 | _ACEOF |
|
|
10218 | |
|
|
10219 | |
8467 | |
10220 | |
8468 | |
10221 | |
8469 | |
10222 | for ac_func in unsetenv |
8470 | for ac_func in unsetenv |
10223 | do |
8471 | do |
… | |
… | |
10464 | fi |
8712 | fi |
10465 | done |
8713 | done |
10466 | |
8714 | |
10467 | |
8715 | |
10468 | |
8716 | |
10469 | |
|
|
10470 | |
|
|
10471 | for ac_header in \ |
8717 | for ac_header in lastlog.h |
10472 | utmp.h \ |
|
|
10473 | utmpx.h \ |
|
|
10474 | lastlog.h \ |
|
|
10475 | |
|
|
10476 | do |
8718 | do |
10477 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
8719 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10478 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8720 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10479 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8721 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10480 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
8722 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
… | |
… | |
10611 | |
8853 | |
10612 | done |
8854 | done |
10613 | |
8855 | |
10614 | |
8856 | |
10615 | |
8857 | |
10616 | if test "${ac_cv_header_utmp_h+set}" = set; then |
8858 | |
|
|
8859 | for ac_header in utmp.h |
|
|
8860 | do |
|
|
8861 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
8862 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10617 | { echo "$as_me:$LINENO: checking for utmp.h" >&5 |
8863 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10618 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } |
8864 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10619 | if test "${ac_cv_header_utmp_h+set}" = set; then |
8865 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10620 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10621 | fi |
8867 | fi |
|
|
8868 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10622 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
8869 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
10623 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } |
8870 | echo "${ECHO_T}$ac_res" >&6; } |
10624 | else |
8871 | else |
10625 | # Is the header compilable? |
8872 | # Is the header compilable? |
10626 | { echo "$as_me:$LINENO: checking utmp.h usability" >&5 |
8873 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10627 | echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6; } |
8874 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
10628 | cat >conftest.$ac_ext <<_ACEOF |
8875 | cat >conftest.$ac_ext <<_ACEOF |
10629 | /* confdefs.h. */ |
8876 | /* confdefs.h. */ |
10630 | _ACEOF |
8877 | _ACEOF |
10631 | cat confdefs.h >>conftest.$ac_ext |
8878 | cat confdefs.h >>conftest.$ac_ext |
10632 | cat >>conftest.$ac_ext <<_ACEOF |
8879 | cat >>conftest.$ac_ext <<_ACEOF |
10633 | /* end confdefs.h. */ |
8880 | /* end confdefs.h. */ |
10634 | $ac_includes_default |
8881 | $ac_includes_default |
10635 | #include <utmp.h> |
8882 | #include <$ac_header> |
10636 | _ACEOF |
8883 | _ACEOF |
10637 | rm -f conftest.$ac_objext |
8884 | rm -f conftest.$ac_objext |
10638 | if { (ac_try="$ac_compile" |
8885 | if { (ac_try="$ac_compile" |
10639 | case "(($ac_try" in |
8886 | case "(($ac_try" in |
10640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
… | |
… | |
10662 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8909 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10663 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8910 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10664 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
8911 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
10665 | |
8912 | |
10666 | # Is the header present? |
8913 | # Is the header present? |
10667 | { echo "$as_me:$LINENO: checking utmp.h presence" >&5 |
8914 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10668 | echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6; } |
8915 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
10669 | cat >conftest.$ac_ext <<_ACEOF |
8916 | cat >conftest.$ac_ext <<_ACEOF |
10670 | /* confdefs.h. */ |
8917 | /* confdefs.h. */ |
10671 | _ACEOF |
8918 | _ACEOF |
10672 | cat confdefs.h >>conftest.$ac_ext |
8919 | cat confdefs.h >>conftest.$ac_ext |
10673 | cat >>conftest.$ac_ext <<_ACEOF |
8920 | cat >>conftest.$ac_ext <<_ACEOF |
10674 | /* end confdefs.h. */ |
8921 | /* end confdefs.h. */ |
10675 | #include <utmp.h> |
8922 | #include <$ac_header> |
10676 | _ACEOF |
8923 | _ACEOF |
10677 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8924 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10678 | case "(($ac_try" in |
8925 | case "(($ac_try" in |
10679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10680 | *) ac_try_echo=$ac_try;; |
8927 | *) ac_try_echo=$ac_try;; |
… | |
… | |
10703 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
8950 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
10704 | |
8951 | |
10705 | # So? What about this header? |
8952 | # So? What about this header? |
10706 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
8953 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
10707 | yes:no: ) |
8954 | yes:no: ) |
10708 | { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
8955 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10709 | echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
8956 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
10710 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5 |
8957 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10711 | echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;} |
8958 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
10712 | ac_header_preproc=yes |
8959 | ac_header_preproc=yes |
10713 | ;; |
8960 | ;; |
10714 | no:yes:* ) |
8961 | no:yes:* ) |
10715 | { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5 |
8962 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10716 | echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;} |
8963 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
10717 | { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5 |
8964 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10718 | echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;} |
8965 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
10719 | { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5 |
8966 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
10720 | echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;} |
8967 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
10721 | { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5 |
8968 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
10722 | echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;} |
8969 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
10723 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5 |
8970 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10724 | echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;} |
8971 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
10725 | { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5 |
8972 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10726 | echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;} |
8973 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
10727 | |
8974 | |
10728 | ;; |
8975 | ;; |
10729 | esac |
8976 | esac |
10730 | { echo "$as_me:$LINENO: checking for utmp.h" >&5 |
8977 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10731 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } |
8978 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10732 | if test "${ac_cv_header_utmp_h+set}" = set; then |
8979 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10734 | else |
8981 | else |
10735 | ac_cv_header_utmp_h=$ac_header_preproc |
8982 | eval "$as_ac_Header=\$ac_header_preproc" |
10736 | fi |
8983 | fi |
|
|
8984 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10737 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
8985 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
10738 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } |
8986 | echo "${ECHO_T}$ac_res" >&6; } |
10739 | |
8987 | |
10740 | fi |
8988 | fi |
10741 | if test $ac_cv_header_utmp_h = yes; then |
8989 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
8990 | cat >>confdefs.h <<_ACEOF |
|
|
8991 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
8992 | _ACEOF |
10742 | { echo "$as_me:$LINENO: checking for struct utmp" >&5 |
8993 | { echo "$as_me:$LINENO: checking for struct utmp" >&5 |
10743 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; } |
8994 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; } |
10744 | if test "${struct_utmp+set}" = set; then |
8995 | if test "${struct_utmp+set}" = set; then |
10745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10746 | else |
8997 | else |
10747 | cat >conftest.$ac_ext <<_ACEOF |
8998 | cat >conftest.$ac_ext <<_ACEOF |
… | |
… | |
10914 | |
9165 | |
10915 | fi |
9166 | fi |
10916 | |
9167 | |
10917 | fi |
9168 | fi |
10918 | |
9169 | |
|
|
9170 | done |
10919 | |
9171 | |
10920 | |
9172 | |
10921 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
9173 | |
|
|
9174 | for ac_header in utmpx.h |
|
|
9175 | do |
|
|
9176 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
9177 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10922 | { echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
9178 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10923 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } |
9179 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10924 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
9180 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10926 | fi |
9182 | fi |
|
|
9183 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10927 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
9184 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
10928 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } |
9185 | echo "${ECHO_T}$ac_res" >&6; } |
10929 | else |
9186 | else |
10930 | # Is the header compilable? |
9187 | # Is the header compilable? |
10931 | { echo "$as_me:$LINENO: checking utmpx.h usability" >&5 |
9188 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10932 | echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6; } |
9189 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
10933 | cat >conftest.$ac_ext <<_ACEOF |
9190 | cat >conftest.$ac_ext <<_ACEOF |
10934 | /* confdefs.h. */ |
9191 | /* confdefs.h. */ |
10935 | _ACEOF |
9192 | _ACEOF |
10936 | cat confdefs.h >>conftest.$ac_ext |
9193 | cat confdefs.h >>conftest.$ac_ext |
10937 | cat >>conftest.$ac_ext <<_ACEOF |
9194 | cat >>conftest.$ac_ext <<_ACEOF |
10938 | /* end confdefs.h. */ |
9195 | /* end confdefs.h. */ |
10939 | $ac_includes_default |
9196 | $ac_includes_default |
10940 | #include <utmpx.h> |
9197 | #include <$ac_header> |
10941 | _ACEOF |
9198 | _ACEOF |
10942 | rm -f conftest.$ac_objext |
9199 | rm -f conftest.$ac_objext |
10943 | if { (ac_try="$ac_compile" |
9200 | if { (ac_try="$ac_compile" |
10944 | case "(($ac_try" in |
9201 | case "(($ac_try" in |
10945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
… | |
… | |
10967 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9224 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10968 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9225 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10969 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
9226 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
10970 | |
9227 | |
10971 | # Is the header present? |
9228 | # Is the header present? |
10972 | { echo "$as_me:$LINENO: checking utmpx.h presence" >&5 |
9229 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10973 | echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6; } |
9230 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
10974 | cat >conftest.$ac_ext <<_ACEOF |
9231 | cat >conftest.$ac_ext <<_ACEOF |
10975 | /* confdefs.h. */ |
9232 | /* confdefs.h. */ |
10976 | _ACEOF |
9233 | _ACEOF |
10977 | cat confdefs.h >>conftest.$ac_ext |
9234 | cat confdefs.h >>conftest.$ac_ext |
10978 | cat >>conftest.$ac_ext <<_ACEOF |
9235 | cat >>conftest.$ac_ext <<_ACEOF |
10979 | /* end confdefs.h. */ |
9236 | /* end confdefs.h. */ |
10980 | #include <utmpx.h> |
9237 | #include <$ac_header> |
10981 | _ACEOF |
9238 | _ACEOF |
10982 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9239 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10983 | case "(($ac_try" in |
9240 | case "(($ac_try" in |
10984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10985 | *) ac_try_echo=$ac_try;; |
9242 | *) ac_try_echo=$ac_try;; |
… | |
… | |
11008 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
9265 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
11009 | |
9266 | |
11010 | # So? What about this header? |
9267 | # So? What about this header? |
11011 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
9268 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
11012 | yes:no: ) |
9269 | yes:no: ) |
11013 | { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
9270 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11014 | echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
9271 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
11015 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5 |
9272 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
11016 | echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;} |
9273 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
11017 | ac_header_preproc=yes |
9274 | ac_header_preproc=yes |
11018 | ;; |
9275 | ;; |
11019 | no:yes:* ) |
9276 | no:yes:* ) |
11020 | { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5 |
9277 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11021 | echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;} |
9278 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
11022 | { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5 |
9279 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
11023 | echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;} |
9280 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
11024 | { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5 |
9281 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
11025 | echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;} |
9282 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
11026 | { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5 |
9283 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
11027 | echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;} |
9284 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
11028 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5 |
9285 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
11029 | echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;} |
9286 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
11030 | { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5 |
9287 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
11031 | echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;} |
9288 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
11032 | |
9289 | |
11033 | ;; |
9290 | ;; |
11034 | esac |
9291 | esac |
11035 | { echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
9292 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11036 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } |
9293 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
11037 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
9294 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9295 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11039 | else |
9296 | else |
11040 | ac_cv_header_utmpx_h=$ac_header_preproc |
9297 | eval "$as_ac_Header=\$ac_header_preproc" |
11041 | fi |
9298 | fi |
|
|
9299 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11042 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
9300 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
11043 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } |
9301 | echo "${ECHO_T}$ac_res" >&6; } |
11044 | |
9302 | |
11045 | fi |
9303 | fi |
11046 | if test $ac_cv_header_utmpx_h = yes; then |
9304 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
9305 | cat >>confdefs.h <<_ACEOF |
|
|
9306 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
9307 | _ACEOF |
11047 | { echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
9308 | { echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
11048 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; } |
9309 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; } |
11049 | if test "${struct_utmpx+set}" = set; then |
9310 | if test "${struct_utmpx+set}" = set; then |
11050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9311 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11051 | else |
9312 | else |
11052 | cat >conftest.$ac_ext <<_ACEOF |
9313 | cat >conftest.$ac_ext <<_ACEOF |
… | |
… | |
11219 | |
9480 | |
11220 | fi |
9481 | fi |
11221 | |
9482 | |
11222 | fi |
9483 | fi |
11223 | |
9484 | |
|
|
9485 | done |
11224 | |
9486 | |
11225 | { echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
9487 | { echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
11226 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } |
9488 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } |
11227 | if test "${struct_lastlog+set}" = set; then |
9489 | if test "${struct_lastlog+set}" = set; then |
11228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9490 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
12298 | |
10560 | |
12299 | |
10561 | |
12300 | |
10562 | |
12301 | |
10563 | |
12302 | |
10564 | |
|
|
10565 | |
12303 | for ac_header in \ |
10566 | for ac_header in \ |
12304 | pty.h \ |
10567 | pty.h \ |
12305 | util.h \ |
10568 | util.h \ |
12306 | libutil.h \ |
10569 | libutil.h \ |
12307 | sys/ioctl.h \ |
10570 | sys/ioctl.h \ |
12308 | sys/stropts.h \ |
10571 | sys/stropts.h \ |
|
|
10572 | stropts.h \ |
12309 | |
10573 | |
12310 | do |
10574 | do |
12311 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10575 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12312 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10576 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
12313 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10577 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
… | |
… | |
13336 | _ACEOF |
11600 | _ACEOF |
13337 | |
11601 | |
13338 | fi |
11602 | fi |
13339 | |
11603 | |
13340 | |
11604 | |
|
|
11605 | scrolltypes=plain |
|
|
11606 | |
|
|
11607 | cat >>confdefs.h <<\_ACEOF |
|
|
11608 | #define PLAIN_SCROLLBAR 1 |
|
|
11609 | _ACEOF |
|
|
11610 | |
|
|
11611 | |
13341 | if test x$support_scroll_rxvt = xyes; then |
11612 | if test x$support_scroll_rxvt = xyes; then |
13342 | |
11613 | |
13343 | cat >>confdefs.h <<\_ACEOF |
11614 | cat >>confdefs.h <<\_ACEOF |
13344 | #define RXVT_SCROLLBAR 1 |
11615 | #define RXVT_SCROLLBAR 1 |
13345 | _ACEOF |
11616 | _ACEOF |
13346 | |
11617 | |
13347 | scrolltypes="rxvt" |
11618 | scrolltypes="$scrolltypes rxvt" |
13348 | fi |
11619 | fi |
13349 | if test x$support_scroll_next = xyes; then |
11620 | if test x$support_scroll_next = xyes; then |
13350 | |
11621 | |
13351 | cat >>confdefs.h <<\_ACEOF |
11622 | cat >>confdefs.h <<\_ACEOF |
13352 | #define NEXT_SCROLLBAR 1 |
11623 | #define NEXT_SCROLLBAR 1 |
… | |
… | |
13359 | cat >>confdefs.h <<\_ACEOF |
11630 | cat >>confdefs.h <<\_ACEOF |
13360 | #define XTERM_SCROLLBAR 1 |
11631 | #define XTERM_SCROLLBAR 1 |
13361 | _ACEOF |
11632 | _ACEOF |
13362 | |
11633 | |
13363 | scrolltypes="$scrolltypes xterm" |
11634 | scrolltypes="$scrolltypes xterm" |
13364 | fi |
|
|
13365 | if test x$support_scroll_plain = xyes; then |
|
|
13366 | |
|
|
13367 | cat >>confdefs.h <<\_ACEOF |
|
|
13368 | #define PLAIN_SCROLLBAR 1 |
|
|
13369 | _ACEOF |
|
|
13370 | |
|
|
13371 | scrolltypes="$scrolltypes plain" |
|
|
13372 | fi |
11635 | fi |
13373 | if test x$support_pointer_blank = xyes; then |
11636 | if test x$support_pointer_blank = xyes; then |
13374 | |
11637 | |
13375 | cat >>confdefs.h <<\_ACEOF |
11638 | cat >>confdefs.h <<\_ACEOF |
13376 | #define POINTER_BLANK 1 |
11639 | #define POINTER_BLANK 1 |
… | |
… | |
13639 | _ACEOF |
11902 | _ACEOF |
13640 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
11903 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
13641 | rm -f conftest.sed |
11904 | rm -f conftest.sed |
13642 | |
11905 | |
13643 | |
11906 | |
13644 | |
|
|
13645 | |
|
|
13646 | |
|
|
13647 | if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13648 | include_stdint_h="#include <stdint.h>" |
|
|
13649 | else |
|
|
13650 | include_stdint_h="/* #include <stdint.h> */" |
|
|
13651 | fi |
|
|
13652 | if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13653 | include_stdarg_h="#include <cstdarg>" |
|
|
13654 | else |
|
|
13655 | include_stdarg_h="/* #include <cstdarg> */" |
|
|
13656 | fi |
|
|
13657 | if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13658 | include_stdlib_h="#include <cstdlib>" |
|
|
13659 | else |
|
|
13660 | include_stdlib_h="/* #include <cstdlib> */" |
|
|
13661 | fi |
|
|
13662 | if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13663 | include_unistd_h="#include <unistd.h>" |
|
|
13664 | else |
|
|
13665 | include_unistd_h="/* #include <unistd.h> */" |
|
|
13666 | fi |
|
|
13667 | if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13668 | include_string_h="#include <cstring>" |
|
|
13669 | else |
|
|
13670 | include_string_h="/* #include <cstring> */" |
|
|
13671 | fi |
|
|
13672 | if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13673 | include_fcntl_h="#include <fcntl.h>" |
|
|
13674 | else |
|
|
13675 | include_fcntl_h="/* #include <fcntl.h> */" |
|
|
13676 | fi |
|
|
13677 | if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13678 | include_util_h="#include <util.h>" |
|
|
13679 | else |
|
|
13680 | include_util_h="/* #include <util.h> */" |
|
|
13681 | fi |
|
|
13682 | if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13683 | include_assert_h="#include <assert.h>" |
|
|
13684 | else |
|
|
13685 | include_assert_h="/* #include <assert.h> */" |
|
|
13686 | fi |
|
|
13687 | if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13688 | include_sys_ioctl_h="#include <sys/ioctl.h>" |
|
|
13689 | else |
|
|
13690 | include_sys_ioctl_h="/* #include <sys/ioctl.h> */" |
|
|
13691 | fi |
|
|
13692 | if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13693 | include_sys_select_h="#include <sys/select.h>" |
|
|
13694 | else |
|
|
13695 | include_sys_select_h="/* #include <sys/select.h> */" |
|
|
13696 | fi |
|
|
13697 | if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13698 | include_sys_strredir_h="#include <sys/strredir.h>" |
|
|
13699 | else |
|
|
13700 | include_sys_strredir_h="/* #include <sys/strredir.h> */" |
|
|
13701 | fi |
|
|
13702 | if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13703 | include_sys_time_h="#include <sys/time.h>" |
|
|
13704 | else |
|
|
13705 | include_sys_time_h="/* #include <sys/time.h> */" |
|
|
13706 | fi |
|
|
13707 | if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then |
|
|
13708 | include_time_h="#include <time.h>" |
|
|
13709 | else |
|
|
13710 | include_time_h="/* #include <time.h> */" |
|
|
13711 | fi |
|
|
13712 | |
|
|
13713 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" |
11907 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile" |
13714 | |
11908 | |
13715 | cat >confcache <<\_ACEOF |
11909 | cat >confcache <<\_ACEOF |
13716 | # This file is a shell script that caches the results of configure |
11910 | # This file is a shell script that caches the results of configure |
13717 | # tests run on this system so they can be shared between configure |
11911 | # tests run on this system so they can be shared between configure |
13718 | # scripts and configure runs, see configure's option --config-cache. |
11912 | # scripts and configure runs, see configure's option --config-cache. |
… | |
… | |
14267 | case $ac_config_target in |
12461 | case $ac_config_target in |
14268 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; |
12462 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; |
14269 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
12463 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
14270 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
12464 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
14271 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
12465 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
14272 | "src/rxvtlib.h") CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; |
|
|
14273 | |
12466 | |
14274 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
12467 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
14275 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
12468 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
14276 | { (exit 1); exit 1; }; };; |
12469 | { (exit 1); exit 1; }; };; |
14277 | esac |
12470 | esac |
… | |
… | |
14376 | host_cpu!$host_cpu$ac_delim |
12569 | host_cpu!$host_cpu$ac_delim |
14377 | host_vendor!$host_vendor$ac_delim |
12570 | host_vendor!$host_vendor$ac_delim |
14378 | host_os!$host_os$ac_delim |
12571 | host_os!$host_os$ac_delim |
14379 | VERSION!$VERSION$ac_delim |
12572 | VERSION!$VERSION$ac_delim |
14380 | DATE!$DATE$ac_delim |
12573 | DATE!$DATE$ac_delim |
14381 | LSMDATE!$LSMDATE$ac_delim |
|
|
14382 | LIBVERSION!$LIBVERSION$ac_delim |
|
|
14383 | CC!$CC$ac_delim |
12574 | CC!$CC$ac_delim |
14384 | CFLAGS!$CFLAGS$ac_delim |
12575 | CFLAGS!$CFLAGS$ac_delim |
14385 | LDFLAGS!$LDFLAGS$ac_delim |
12576 | LDFLAGS!$LDFLAGS$ac_delim |
14386 | CPPFLAGS!$CPPFLAGS$ac_delim |
12577 | CPPFLAGS!$CPPFLAGS$ac_delim |
14387 | ac_ct_CC!$ac_ct_CC$ac_delim |
12578 | ac_ct_CC!$ac_ct_CC$ac_delim |
… | |
… | |
14395 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
12586 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
14396 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
12587 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
14397 | GREP!$GREP$ac_delim |
12588 | GREP!$GREP$ac_delim |
14398 | EGREP!$EGREP$ac_delim |
12589 | EGREP!$EGREP$ac_delim |
14399 | LINKER!$LINKER$ac_delim |
12590 | LINKER!$LINKER$ac_delim |
14400 | INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim |
|
|
14401 | RXVTNAME!$RXVTNAME$ac_delim |
12591 | RXVTNAME!$RXVTNAME$ac_delim |
14402 | CXXCPP!$CXXCPP$ac_delim |
12592 | CXXCPP!$CXXCPP$ac_delim |
14403 | TIC!$TIC$ac_delim |
12593 | TIC!$TIC$ac_delim |
14404 | XMKMF!$XMKMF$ac_delim |
12594 | XMKMF!$XMKMF$ac_delim |
14405 | X_CFLAGS!$X_CFLAGS$ac_delim |
12595 | X_CFLAGS!$X_CFLAGS$ac_delim |
14406 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
12596 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
14407 | X_LIBS!$X_LIBS$ac_delim |
12597 | X_LIBS!$X_LIBS$ac_delim |
14408 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
12598 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
14409 | afterimage_config!$afterimage_config$ac_delim |
12599 | afterimage_config!$afterimage_config$ac_delim |
14410 | rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim |
|
|
14411 | rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim |
|
|
14412 | rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim |
|
|
14413 | rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim |
|
|
14414 | rxvt_intp_define!$rxvt_intp_define$ac_delim |
|
|
14415 | rxvt_u_intp_define!$rxvt_u_intp_define$ac_delim |
|
|
14416 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
12600 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
14417 | XFT_CONFIG!$XFT_CONFIG$ac_delim |
12601 | XFT_CONFIG!$XFT_CONFIG$ac_delim |
14418 | PERL!$PERL$ac_delim |
12602 | PERL!$PERL$ac_delim |
14419 | PERLLIB!$PERLLIB$ac_delim |
12603 | PERLLIB!$PERLLIB$ac_delim |
14420 | PERLFLAGS!$PERLFLAGS$ac_delim |
12604 | PERLFLAGS!$PERLFLAGS$ac_delim |
14421 | PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim |
12605 | PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim |
14422 | IF_PERL!$IF_PERL$ac_delim |
12606 | IF_PERL!$IF_PERL$ac_delim |
14423 | PERL_O!$PERL_O$ac_delim |
12607 | PERL_O!$PERL_O$ac_delim |
14424 | AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim |
12608 | AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim |
14425 | AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim |
12609 | AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim |
14426 | include_stdint_h!$include_stdint_h$ac_delim |
12610 | LIBOBJS!$LIBOBJS$ac_delim |
14427 | include_stdarg_h!$include_stdarg_h$ac_delim |
12611 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
14428 | include_stdlib_h!$include_stdlib_h$ac_delim |
|
|
14429 | include_unistd_h!$include_unistd_h$ac_delim |
|
|
14430 | include_string_h!$include_string_h$ac_delim |
|
|
14431 | _ACEOF |
12612 | _ACEOF |
14432 | |
12613 | |
14433 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
12614 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 85; then |
14434 | break |
12615 | break |
14435 | elif $ac_last_try; then |
12616 | elif $ac_last_try; then |
14436 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
12617 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
14437 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
12618 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
14438 | { (exit 1); exit 1; }; } |
12619 | { (exit 1); exit 1; }; } |
… | |
… | |
14447 | ac_eof=`expr $ac_eof + 1` |
12628 | ac_eof=`expr $ac_eof + 1` |
14448 | fi |
12629 | fi |
14449 | |
12630 | |
14450 | cat >>$CONFIG_STATUS <<_ACEOF |
12631 | cat >>$CONFIG_STATUS <<_ACEOF |
14451 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
12632 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
14452 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
|
|
14453 | _ACEOF |
|
|
14454 | sed ' |
|
|
14455 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
|
|
14456 | s/^/s,@/; s/!/@,|#_!!_#|/ |
|
|
14457 | :n |
|
|
14458 | t n |
|
|
14459 | s/'"$ac_delim"'$/,g/; t |
|
|
14460 | s/$/\\/; p |
|
|
14461 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
|
|
14462 | ' >>$CONFIG_STATUS <conf$$subs.sed |
|
|
14463 | rm -f conf$$subs.sed |
|
|
14464 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
14465 | CEOF$ac_eof |
|
|
14466 | _ACEOF |
|
|
14467 | |
|
|
14468 | |
|
|
14469 | ac_delim='%!_!# ' |
|
|
14470 | for ac_last_try in false false false false false :; do |
|
|
14471 | cat >conf$$subs.sed <<_ACEOF |
|
|
14472 | include_fcntl_h!$include_fcntl_h$ac_delim |
|
|
14473 | include_util_h!$include_util_h$ac_delim |
|
|
14474 | include_assert_h!$include_assert_h$ac_delim |
|
|
14475 | include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim |
|
|
14476 | include_sys_select_h!$include_sys_select_h$ac_delim |
|
|
14477 | include_sys_strredir_h!$include_sys_strredir_h$ac_delim |
|
|
14478 | include_sys_time_h!$include_sys_time_h$ac_delim |
|
|
14479 | include_time_h!$include_time_h$ac_delim |
|
|
14480 | LIBOBJS!$LIBOBJS$ac_delim |
|
|
14481 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
|
|
14482 | _ACEOF |
|
|
14483 | |
|
|
14484 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then |
|
|
14485 | break |
|
|
14486 | elif $ac_last_try; then |
|
|
14487 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
|
|
14488 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
|
|
14489 | { (exit 1); exit 1; }; } |
|
|
14490 | else |
|
|
14491 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|
|
14492 | fi |
|
|
14493 | done |
|
|
14494 | |
|
|
14495 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
|
|
14496 | if test -n "$ac_eof"; then |
|
|
14497 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
|
|
14498 | ac_eof=`expr $ac_eof + 1` |
|
|
14499 | fi |
|
|
14500 | |
|
|
14501 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
14502 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
|
|
14503 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
12633 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
14504 | _ACEOF |
12634 | _ACEOF |
14505 | sed ' |
12635 | sed ' |
14506 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
12636 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
14507 | s/^/s,@/; s/!/@,|#_!!_#|/ |
12637 | s/^/s,@/; s/!/@,|#_!!_#|/ |
… | |
… | |
14760 | s&@builddir@&$ac_builddir&;t t |
12890 | s&@builddir@&$ac_builddir&;t t |
14761 | s&@abs_builddir@&$ac_abs_builddir&;t t |
12891 | s&@abs_builddir@&$ac_abs_builddir&;t t |
14762 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
12892 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
14763 | s&@INSTALL@&$ac_INSTALL&;t t |
12893 | s&@INSTALL@&$ac_INSTALL&;t t |
14764 | $ac_datarootdir_hack |
12894 | $ac_datarootdir_hack |
14765 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
12895 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out |
14766 | |
12896 | |
14767 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
12897 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
14768 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
12898 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
14769 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
12899 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
14770 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
12900 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |