… | |
… | |
658 | host_cpu |
658 | host_cpu |
659 | host_vendor |
659 | host_vendor |
660 | host_os |
660 | host_os |
661 | VERSION |
661 | VERSION |
662 | DATE |
662 | DATE |
663 | LSMDATE |
|
|
664 | LIBVERSION |
|
|
665 | CC |
663 | CC |
666 | CFLAGS |
664 | CFLAGS |
667 | LDFLAGS |
665 | LDFLAGS |
668 | CPPFLAGS |
666 | CPPFLAGS |
669 | ac_ct_CC |
667 | ac_ct_CC |
… | |
… | |
677 | INSTALL_SCRIPT |
675 | INSTALL_SCRIPT |
678 | INSTALL_DATA |
676 | INSTALL_DATA |
679 | GREP |
677 | GREP |
680 | EGREP |
678 | EGREP |
681 | LINKER |
679 | LINKER |
682 | INSTALL_LIBRXVT |
|
|
683 | RXVTNAME |
680 | RXVTNAME |
|
|
681 | CXXCPP |
684 | TIC |
682 | TIC |
685 | XMKMF |
683 | XMKMF |
686 | CXXCPP |
|
|
687 | X_CFLAGS |
684 | X_CFLAGS |
688 | X_PRE_LIBS |
685 | X_PRE_LIBS |
689 | X_LIBS |
686 | X_LIBS |
690 | X_EXTRA_LIBS |
687 | X_EXTRA_LIBS |
691 | afterimage_config |
688 | afterimage_config |
692 | XPM_CPPFLAGS |
|
|
693 | XPM_CFLAGS |
|
|
694 | XPM_LIBS |
|
|
695 | rxvt_int16_typedef |
|
|
696 | rxvt_uint16_typedef |
|
|
697 | rxvt_int32_typedef |
|
|
698 | rxvt_uint32_typedef |
|
|
699 | rxvt_intp_define |
|
|
700 | rxvt_u_intp_define |
|
|
701 | PKG_CONFIG |
689 | PKG_CONFIG |
702 | XFT_CONFIG |
690 | XFT_CONFIG |
703 | PERL |
691 | PERL |
704 | PERLLIB |
692 | PERLLIB |
705 | PERLFLAGS |
693 | PERLFLAGS |
706 | PERLPRIVLIBEXP |
694 | PERLPRIVLIBEXP |
707 | IF_PERL |
695 | IF_PERL |
708 | PERL_O |
696 | PERL_O |
709 | AFTERIMAGE_CFLAGS |
697 | AFTERIMAGE_CFLAGS |
710 | AFTERIMAGE_LIBS |
698 | AFTERIMAGE_LIBS |
711 | include_stdint_h |
|
|
712 | include_stdarg_h |
|
|
713 | include_stdlib_h |
|
|
714 | include_unistd_h |
|
|
715 | include_string_h |
|
|
716 | include_fcntl_h |
|
|
717 | include_util_h |
|
|
718 | include_assert_h |
|
|
719 | include_sys_ioctl_h |
|
|
720 | include_sys_select_h |
|
|
721 | include_sys_strredir_h |
|
|
722 | include_sys_time_h |
|
|
723 | include_time_h |
|
|
724 | LIBOBJS |
699 | LIBOBJS |
725 | LTLIBOBJS' |
700 | LTLIBOBJS' |
726 | ac_subst_files='' |
701 | ac_subst_files='' |
727 | ac_precious_vars='build_alias |
702 | ac_precious_vars='build_alias |
728 | host_alias |
703 | host_alias |
… | |
… | |
734 | CPPFLAGS |
709 | CPPFLAGS |
735 | CXX |
710 | CXX |
736 | CXXFLAGS |
711 | CXXFLAGS |
737 | CCC |
712 | CCC |
738 | CPP |
713 | CPP |
739 | XMKMF |
|
|
740 | CXXCPP' |
714 | CXXCPP |
|
|
715 | XMKMF' |
741 | |
716 | |
742 | |
717 | |
743 | # Initialize some variables set by options. |
718 | # Initialize some variables set by options. |
744 | ac_init_help= |
719 | ac_init_help= |
745 | ac_init_version=false |
720 | ac_init_version=false |
… | |
… | |
1318 | |
1293 | |
1319 | Optional Features: |
1294 | Optional Features: |
1320 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1295 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1321 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1296 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1322 | --enable-everything enable standard non-multichoice features |
1297 | --enable-everything enable standard non-multichoice features |
1323 | NOTE: this option is order dependent |
1298 | NOTE: this option is order dependent |
1324 | NOTE: automatically enabled with --enable-shared |
1299 | --enable-assert enable assertions |
|
|
1300 | --enable-warnings turn on g++ warnings |
1325 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1301 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1326 | --enable-combining enable composition of base and combining characters |
1302 | --enable-combining enable composition of base and combining characters |
1327 | --enable-xft enable xft support on systems that have it |
1303 | --enable-xft enable xft support on systems that have it |
1328 | --enable-font-styles enable bold and italic support |
1304 | --enable-font-styles enable bold and italic support |
1329 | --enable-xpm-background enable background pixmaps |
|
|
1330 | --enable-afterimage enable integration with libAfterImage for background images |
1305 | --enable-afterimage enable integration with libAfterImage for background images |
1331 | --enable-transparency enable transparent backgrounds |
1306 | --enable-transparency enable transparent backgrounds |
1332 | --enable-tinting enable tinting of transparent bg |
|
|
1333 | --enable-fading enable colors fading when off focus |
1307 | --enable-fading enable colors fading when off focus |
1334 | --enable-rxvt-scroll enable rxvt style scrollbar |
1308 | --enable-rxvt-scroll enable rxvt style scrollbar |
1335 | --enable-next-scroll enable NeXT style scrollbar |
1309 | --enable-next-scroll enable NeXT style scrollbar |
1336 | --enable-xterm-scroll enable Xterm style scrollbar |
1310 | --enable-xterm-scroll enable Xterm style scrollbar |
1337 | --enable-perl enable embedded perl interpreter |
1311 | --enable-perl enable embedded perl interpreter |
1338 | --enable-plain-scroll enable plain style scrollbar |
|
|
1339 | --enable-xim XIM (X Input Method) protocol support |
1312 | --enable-xim XIM (X Input Method) protocol support |
1340 | --disable-backspace-key disable handling of the backspace key |
1313 | --disable-backspace-key disable handling of the backspace key |
1341 | --disable-delete-key disable handling of the delete key |
1314 | --disable-delete-key disable handling of the delete key |
1342 | --disable-resources disable all resource checking |
1315 | --disable-resources disable all resource checking |
1343 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
1316 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
1344 | --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
1317 | --enable-fallback[=CLASS] fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
1345 | --disable-swapscreen disable swap screen support |
1318 | --disable-swapscreen disable swap screen support |
1346 | --enable-iso14755 enable support for extended ISO 14755 modes |
1319 | --enable-iso14755 enable support for extended ISO 14755 modes |
1347 | --enable-frills enable support for rarely used features |
1320 | --enable-frills enable support for rarely used features |
1348 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
1321 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
1349 | --enable-selectionscrolling enable scrolling during selections |
1322 | --enable-selectionscrolling enable scrolling during selections |
1350 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1323 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1351 | --enable-slipwheeling enable slip wheel scrolling (requires previous) |
1324 | --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel) |
1352 | --enable-smart-resize enable smart growth/shrink behaviour |
1325 | --enable-smart-resize enable smart growth/shrink behaviour |
1353 | --enable-text-blink enable blinking text |
1326 | --enable-text-blink enable blinking text |
1354 | --enable-pointer-blank enable pointer blank when typing or inactive pointer |
1327 | --enable-pointer-blank enable pointer blank when typing or inactive pointer |
1355 | --enable-utmp enable utmp (utmpx) support |
1328 | --enable-utmp enable utmp (utmpx) support |
1356 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
1329 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
… | |
… | |
1358 | |
1331 | |
1359 | Optional Packages: |
1332 | Optional Packages: |
1360 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1333 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1361 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1334 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1362 | --with-afterimage-config=DIR use libAfterImage config script in DIR |
1335 | --with-afterimage-config=DIR use libAfterImage config script in DIR |
1363 | --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) |
1336 | --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) |
1364 | --with-res-name=NAME use this as default resource name (default: urxvt) |
1337 | --with-res-name=NAME use this as default resource name (default: urxvt) |
1365 | --with-res-class=CLASS use this as the resource class (default: URxvt) |
1338 | --with-res-class=CLASS use this as the resource class (default: URxvt) |
1366 | --with-name=NAME set the basename for the installed binaries (default: urxvt) |
1339 | --with-name=NAME set the basename for the installed binaries (default: urxvt) |
1367 | --with-term=NAME set the terminal to NAME (default: rxvt) |
1340 | --with-term=NAME set the terminal to NAME (default: rxvt) |
1368 | --with-terminfo=PATH set the path to the terminfo tree to PATH |
1341 | --with-terminfo=PATH set the path to the terminfo tree to PATH |
1369 | --with-x use the X Window System |
1342 | --with-x use the X Window System |
1370 | --with-xpm-includes=DIR use XPM includes in DIR |
|
|
1371 | --with-xpm-library=DIR use XPM library in DIR |
|
|
1372 | --with-xpm use XPM |
|
|
1373 | |
1343 | |
1374 | Some influential environment variables: |
1344 | Some influential environment variables: |
1375 | CC C compiler command |
1345 | CC C compiler command |
1376 | CFLAGS C compiler flags |
1346 | CFLAGS C compiler flags |
1377 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1347 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
… | |
… | |
1380 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1350 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1381 | you have headers in a nonstandard directory <include dir> |
1351 | you have headers in a nonstandard directory <include dir> |
1382 | CXX C++ compiler command |
1352 | CXX C++ compiler command |
1383 | CXXFLAGS C++ compiler flags |
1353 | CXXFLAGS C++ compiler flags |
1384 | CPP C preprocessor |
1354 | CPP C preprocessor |
|
|
1355 | CXXCPP C++ preprocessor |
1385 | XMKMF Path to xmkmf, Makefile generator for X Window System |
1356 | XMKMF Path to xmkmf, Makefile generator for X Window System |
1386 | CXXCPP C++ preprocessor |
|
|
1387 | |
1357 | |
1388 | Use these variables to override the choices made by `configure' or to help |
1358 | Use these variables to override the choices made by `configure' or to help |
1389 | it to find libraries and programs with nonstandard names/locations. |
1359 | it to find libraries and programs with nonstandard names/locations. |
1390 | |
1360 | |
1391 | _ACEOF |
1361 | _ACEOF |
… | |
… | |
1927 | |
1897 | |
1928 | |
1898 | |
1929 | |
1899 | |
1930 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1900 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1931 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1901 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
|
|
1902 | |
1932 | echo "" |
1903 | echo "" |
1933 | echo "configuring for rxvt $VERSION" |
1904 | echo "configuring for rxvt $VERSION" |
1934 | echo "" |
1905 | echo "" |
1935 | |
1906 | |
1936 | orig_CXXFLAGS="$CXXFLAGS" |
1907 | orig_CXXFLAGS="$CXXFLAGS" |
1937 | |
|
|
1938 | |
1908 | |
1939 | ac_ext=c |
1909 | ac_ext=c |
1940 | ac_cpp='$CPP $CPPFLAGS' |
1910 | ac_cpp='$CPP $CPPFLAGS' |
1941 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1911 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1942 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1912 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
… | |
… | |
3721 | echo "${ECHO_T}no" >&6; } |
3691 | echo "${ECHO_T}no" >&6; } |
3722 | fi |
3692 | fi |
3723 | rm -f conftest* |
3693 | rm -f conftest* |
3724 | |
3694 | |
3725 | |
3695 | |
|
|
3696 | |
|
|
3697 | cat >>confdefs.h <<\_ACEOF |
|
|
3698 | #define _GNU_SOURCE 1 |
|
|
3699 | _ACEOF |
|
|
3700 | |
|
|
3701 | |
3726 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
3702 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
3727 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } |
3703 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } |
3728 | if test "${ac_cv_search_strerror+set}" = set; then |
3704 | if test "${ac_cv_search_strerror+set}" = set; then |
3729 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3730 | else |
3706 | else |
… | |
… | |
3877 | LINKER=$LINKER |
3853 | LINKER=$LINKER |
3878 | |
3854 | |
3879 | |
3855 | |
3880 | if test -z "$orig_CXXFLAGS"; then |
3856 | if test -z "$orig_CXXFLAGS"; then |
3881 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
3857 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
3882 | CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" |
3858 | CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs" |
3883 | cat >conftest.$ac_ext <<_ACEOF |
3859 | cat >conftest.$ac_ext <<_ACEOF |
3884 | /* confdefs.h. */ |
3860 | /* confdefs.h. */ |
3885 | _ACEOF |
3861 | _ACEOF |
3886 | cat confdefs.h >>conftest.$ac_ext |
3862 | cat confdefs.h >>conftest.$ac_ext |
3887 | cat >>conftest.$ac_ext <<_ACEOF |
3863 | cat >>conftest.$ac_ext <<_ACEOF |
… | |
… | |
3925 | CXXFLAGS="-O" |
3901 | CXXFLAGS="-O" |
3926 | fi |
3902 | fi |
3927 | CFLAGS="$CXXFLAGS" |
3903 | CFLAGS="$CXXFLAGS" |
3928 | fi |
3904 | fi |
3929 | |
3905 | |
3930 | |
|
|
3931 | cat >>confdefs.h <<\_ACEOF |
|
|
3932 | #define _GNU_SOURCE 1 |
|
|
3933 | _ACEOF |
|
|
3934 | |
|
|
3935 | |
|
|
3936 | case $host in |
3906 | case $host in |
3937 | *-*-solaris* ) |
3907 | *-*-solaris* ) |
3938 | |
3908 | |
3939 | cat >>confdefs.h <<\_ACEOF |
3909 | cat >>confdefs.h <<\_ACEOF |
3940 | #define _XOPEN_SOURCE 500 |
3910 | #define _XOPEN_SOURCE 500 |
3941 | _ACEOF |
3911 | _ACEOF |
3942 | |
3912 | |
3943 | ;; |
3913 | ;; |
3944 | esac |
3914 | esac |
3945 | |
|
|
3946 | |
3915 | |
3947 | { echo "$as_me:$LINENO: checking for setlocale" >&5 |
3916 | { echo "$as_me:$LINENO: checking for setlocale" >&5 |
3948 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } |
3917 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } |
3949 | if test "${ac_cv_func_setlocale+set}" = set; then |
3918 | if test "${ac_cv_func_setlocale+set}" = set; then |
3950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
4397 | fi |
4366 | fi |
4398 | |
4367 | |
4399 | fi |
4368 | fi |
4400 | |
4369 | |
4401 | |
4370 | |
4402 | |
|
|
4403 | support_frills=yes |
4371 | support_frills=yes |
4404 | support_inheritpixmap=yes |
4372 | support_inheritpixmap=yes |
4405 | support_tinting=yes |
|
|
4406 | support_fading=yes |
4373 | support_fading=yes |
4407 | support_keepscrolling=yes |
4374 | support_keepscrolling=yes |
4408 | support_selectionscrolling=yes |
4375 | support_selectionscrolling=yes |
4409 | support_mousewheel=yes |
4376 | support_mousewheel=yes |
4410 | support_mouseslipwheel=yes |
4377 | support_mouseslipwheel=yes |
4411 | support_text_blink=yes |
4378 | support_text_blink=yes |
4412 | support_pointer_blank=yes |
4379 | support_pointer_blank=yes |
4413 | support_scroll_rxvt=yes |
4380 | support_scroll_rxvt=yes |
4414 | support_scroll_next=yes |
4381 | support_scroll_next=yes |
4415 | support_scroll_xterm=yes |
4382 | support_scroll_xterm=yes |
4416 | support_scroll_plain=yes |
|
|
4417 | support_xim=yes |
4383 | support_xim=yes |
4418 | support_xpm=yes |
|
|
4419 | support_afterimage=yes |
4384 | support_afterimage=yes |
4420 | support_afterstep=yes |
4385 | support_afterstep=yes |
4421 | support_xft=yes |
4386 | support_xft=yes |
4422 | support_unicode3=no |
4387 | support_unicode3=no |
4423 | support_combining=yes |
4388 | support_combining=yes |
… | |
… | |
4426 | support_styles=yes |
4391 | support_styles=yes |
4427 | support_perl=yes |
4392 | support_perl=yes |
4428 | codesets=all |
4393 | codesets=all |
4429 | |
4394 | |
4430 | |
4395 | |
4431 | if test "x$enable_shared" = xyes; then |
|
|
4432 | |
|
|
4433 | cat >>confdefs.h <<\_ACEOF |
|
|
4434 | #define LIBRXVT 1 |
|
|
4435 | _ACEOF |
|
|
4436 | |
|
|
4437 | INSTALL_LIBRXVT=yes |
|
|
4438 | fi |
|
|
4439 | |
|
|
4440 | |
|
|
4441 | # Check whether --enable-everything was given. |
4396 | # Check whether --enable-everything was given. |
4442 | if test "${enable_everything+set}" = set; then |
4397 | if test "${enable_everything+set}" = set; then |
4443 | enableval=$enable_everything; |
4398 | enableval=$enable_everything; |
4444 | if test x$enableval = xno; then |
4399 | if test x$enableval = xno; then |
4445 | support_frills=no |
4400 | support_frills=no |
4446 | support_inheritpixmap=no |
4401 | support_inheritpixmap=no |
4447 | support_tinting=no |
|
|
4448 | support_fading=no |
4402 | support_fading=no |
4449 | support_keepscrolling=no |
4403 | support_keepscrolling=no |
4450 | support_selectionscrolling=no |
4404 | support_selectionscrolling=no |
4451 | support_lastlog=no |
4405 | support_lastlog=no |
4452 | support_mousewheel=no |
4406 | support_mousewheel=no |
… | |
… | |
4454 | support_text_blink=no |
4408 | support_text_blink=no |
4455 | support_pointer_blank=no |
4409 | support_pointer_blank=no |
4456 | support_scroll_rxvt=no |
4410 | support_scroll_rxvt=no |
4457 | support_scroll_next=no |
4411 | support_scroll_next=no |
4458 | support_scroll_xterm=no |
4412 | support_scroll_xterm=no |
4459 | support_scroll_plain=no |
|
|
4460 | support_utmp=no |
4413 | support_utmp=no |
4461 | support_wtmp=no |
4414 | support_wtmp=no |
4462 | support_xim=no |
4415 | support_xim=no |
4463 | support_xpm=no |
|
|
4464 | support_afterimage=no |
4416 | support_afterimage=no |
4465 | support_afterstep=no |
4417 | support_afterstep=no |
4466 | support_xft=no |
4418 | support_xft=no |
4467 | support_unicode3=no |
4419 | support_unicode3=no |
4468 | support_combining=no |
4420 | support_combining=no |
… | |
… | |
4473 | codesets= |
4425 | codesets= |
4474 | fi |
4426 | fi |
4475 | if test x$enableval = xyes; then |
4427 | if test x$enableval = xyes; then |
4476 | support_frills=yes |
4428 | support_frills=yes |
4477 | support_inheritpixmap=yes |
4429 | support_inheritpixmap=yes |
4478 | support_tinting=yes |
|
|
4479 | support_fading=yes |
4430 | support_fading=yes |
4480 | support_keepscrolling=yes |
4431 | support_keepscrolling=yes |
4481 | support_selectionscrolling=yes |
4432 | support_selectionscrolling=yes |
4482 | support_lastlog=yes |
4433 | support_lastlog=yes |
4483 | support_mousewheel=yes |
4434 | support_mousewheel=yes |
… | |
… | |
4485 | support_text_blink=yes |
4436 | support_text_blink=yes |
4486 | support_pointer_blank=yes |
4437 | support_pointer_blank=yes |
4487 | support_scroll_rxvt=yes |
4438 | support_scroll_rxvt=yes |
4488 | support_scroll_next=yes |
4439 | support_scroll_next=yes |
4489 | support_scroll_xterm=yes |
4440 | support_scroll_xterm=yes |
4490 | support_scroll_plain=yes |
|
|
4491 | support_utmp=yes |
4441 | support_utmp=yes |
4492 | support_wtmp=yes |
4442 | support_wtmp=yes |
4493 | support_xim=yes |
4443 | support_xim=yes |
4494 | support_xpm=yes |
|
|
4495 | support_afterimage=yes |
4444 | support_afterimage=yes |
4496 | support_afterstep=yes |
4445 | support_afterstep=yes |
4497 | support_xft=yes |
4446 | support_xft=yes |
4498 | support_unicode3=yes |
4447 | support_unicode3=yes |
4499 | support_combining=yes |
4448 | support_combining=yes |
… | |
… | |
4505 | fi |
4454 | fi |
4506 | |
4455 | |
4507 | fi |
4456 | fi |
4508 | |
4457 | |
4509 | |
4458 | |
|
|
4459 | ASSERTIONS=no |
|
|
4460 | # Check whether --enable-assert was given. |
|
|
4461 | if test "${enable_assert+set}" = set; then |
|
|
4462 | enableval=$enable_assert; if test x$enableval = xyes; then |
|
|
4463 | ASSERTIONS=yes |
|
|
4464 | fi |
|
|
4465 | fi |
|
|
4466 | |
|
|
4467 | if test x$ASSERTIONS = xno; then |
|
|
4468 | |
|
|
4469 | cat >>confdefs.h <<\_ACEOF |
|
|
4470 | #define NDEBUG 1 |
|
|
4471 | _ACEOF |
|
|
4472 | |
|
|
4473 | fi |
|
|
4474 | |
|
|
4475 | WARNINGS=no |
|
|
4476 | # Check whether --enable-warnings was given. |
|
|
4477 | if test "${enable_warnings+set}" = set; then |
|
|
4478 | enableval=$enable_warnings; if test x$enableval = xyes; then |
|
|
4479 | WARNINGS=yes |
|
|
4480 | fi |
|
|
4481 | fi |
|
|
4482 | |
|
|
4483 | if test x$GXX = xyes; then |
|
|
4484 | if test $WARNINGS = yes; then |
|
|
4485 | save_CXXFLAGS="$CXXFLAGS" |
|
|
4486 | CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-non-virtual-dtor" |
|
|
4487 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4488 | /* confdefs.h. */ |
|
|
4489 | _ACEOF |
|
|
4490 | cat confdefs.h >>conftest.$ac_ext |
|
|
4491 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4492 | /* end confdefs.h. */ |
|
|
4493 | |
|
|
4494 | int |
|
|
4495 | main () |
|
|
4496 | { |
|
|
4497 | |
|
|
4498 | ; |
|
|
4499 | return 0; |
|
|
4500 | } |
|
|
4501 | _ACEOF |
|
|
4502 | rm -f conftest.$ac_objext |
|
|
4503 | if { (ac_try="$ac_compile" |
|
|
4504 | case "(($ac_try" in |
|
|
4505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4506 | *) ac_try_echo=$ac_try;; |
|
|
4507 | esac |
|
|
4508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4509 | (eval "$ac_compile") 2>conftest.er1 |
|
|
4510 | ac_status=$? |
|
|
4511 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4512 | rm -f conftest.er1 |
|
|
4513 | cat conftest.err >&5 |
|
|
4514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4515 | (exit $ac_status); } && { |
|
|
4516 | test -z "$ac_cxx_werror_flag" || |
|
|
4517 | test ! -s conftest.err |
|
|
4518 | } && test -s conftest.$ac_objext; then |
|
|
4519 | : |
|
|
4520 | else |
|
|
4521 | echo "$as_me: failed program was:" >&5 |
|
|
4522 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4523 | |
|
|
4524 | CXXFLAGS="$save_CXXFLAGS" |
|
|
4525 | fi |
|
|
4526 | |
|
|
4527 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4528 | else |
|
|
4529 | CXXFLAGS="$CXXFLAGS -w" |
|
|
4530 | fi |
|
|
4531 | fi |
|
|
4532 | |
4510 | # Check whether --enable-unicode3 was given. |
4533 | # Check whether --enable-unicode3 was given. |
4511 | if test "${enable_unicode3+set}" = set; then |
4534 | if test "${enable_unicode3+set}" = set; then |
4512 | enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then |
4535 | enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then |
4513 | support_unicode3=$enableval |
4536 | support_unicode3=$enableval |
4514 | fi |
4537 | fi |
… | |
… | |
4537 | support_styles=$enableval |
4560 | support_styles=$enableval |
4538 | fi |
4561 | fi |
4539 | fi |
4562 | fi |
4540 | |
4563 | |
4541 | |
4564 | |
4542 | # Check whether --enable-xpm-background was given. |
|
|
4543 | if test "${enable_xpm_background+set}" = set; then |
|
|
4544 | enableval=$enable_xpm_background; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4545 | support_xpm=$enableval |
|
|
4546 | fi |
|
|
4547 | fi |
|
|
4548 | |
|
|
4549 | |
|
|
4550 | # Check whether --enable-afterimage was given. |
4565 | # Check whether --enable-afterimage was given. |
4551 | if test "${enable_afterimage+set}" = set; then |
4566 | if test "${enable_afterimage+set}" = set; then |
4552 | enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then |
4567 | enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then |
4553 | support_afterimage=$enableval |
4568 | support_afterimage=$enableval |
4554 | fi |
4569 | fi |
… | |
… | |
4571 | support_inheritpixmap=$enableval |
4586 | support_inheritpixmap=$enableval |
4572 | fi |
4587 | fi |
4573 | fi |
4588 | fi |
4574 | |
4589 | |
4575 | |
4590 | |
4576 | # Check whether --enable-tinting was given. |
|
|
4577 | if test "${enable_tinting+set}" = set; then |
|
|
4578 | enableval=$enable_tinting; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4579 | support_tinting=$enableval |
|
|
4580 | fi |
|
|
4581 | fi |
|
|
4582 | |
|
|
4583 | |
|
|
4584 | # Check whether --enable-fading was given. |
4591 | # Check whether --enable-fading was given. |
4585 | if test "${enable_fading+set}" = set; then |
4592 | if test "${enable_fading+set}" = set; then |
4586 | enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then |
4593 | enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then |
4587 | support_fading=$enableval |
4594 | support_fading=$enableval |
4588 | fi |
4595 | fi |
… | |
… | |
4615 | |
4622 | |
4616 | # Check whether --enable-perl was given. |
4623 | # Check whether --enable-perl was given. |
4617 | if test "${enable_perl+set}" = set; then |
4624 | if test "${enable_perl+set}" = set; then |
4618 | enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then |
4625 | enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then |
4619 | support_perl=$enableval |
4626 | support_perl=$enableval |
4620 | fi |
|
|
4621 | fi |
|
|
4622 | |
|
|
4623 | |
|
|
4624 | # Check whether --enable-plain-scroll was given. |
|
|
4625 | if test "${enable_plain_scroll+set}" = set; then |
|
|
4626 | enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4627 | support_scroll_plain=$enableval |
|
|
4628 | fi |
4627 | fi |
4629 | fi |
4628 | fi |
4630 | |
4629 | |
4631 | |
4630 | |
4632 | |
4631 | |
… | |
… | |
4859 | #define RXVT_TERMINFO "$withval" |
4858 | #define RXVT_TERMINFO "$withval" |
4860 | _ACEOF |
4859 | _ACEOF |
4861 | terminfo="$withval" |
4860 | terminfo="$withval" |
4862 | fi |
4861 | fi |
4863 | fi |
4862 | fi |
|
|
4863 | |
|
|
4864 | |
|
|
4865 | |
|
|
4866 | LIBEV_M4_AVOID_LIBRT=1 |
|
|
4867 | |
|
|
4868 | ac_ext=cpp |
|
|
4869 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
4870 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4871 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4872 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
4873 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
4874 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
|
|
4875 | if test -z "$CXXCPP"; then |
|
|
4876 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
|
4877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4878 | else |
|
|
4879 | # Double quotes because CXXCPP needs to be expanded |
|
|
4880 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
4881 | do |
|
|
4882 | ac_preproc_ok=false |
|
|
4883 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4884 | do |
|
|
4885 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4886 | # with a fresh cross-compiler works. |
|
|
4887 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4888 | # <limits.h> exists even on freestanding compilers. |
|
|
4889 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4890 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4891 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4892 | /* confdefs.h. */ |
|
|
4893 | _ACEOF |
|
|
4894 | cat confdefs.h >>conftest.$ac_ext |
|
|
4895 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4896 | /* end confdefs.h. */ |
|
|
4897 | #ifdef __STDC__ |
|
|
4898 | # include <limits.h> |
|
|
4899 | #else |
|
|
4900 | # include <assert.h> |
|
|
4901 | #endif |
|
|
4902 | Syntax error |
|
|
4903 | _ACEOF |
|
|
4904 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4905 | case "(($ac_try" in |
|
|
4906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4907 | *) ac_try_echo=$ac_try;; |
|
|
4908 | esac |
|
|
4909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4910 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4911 | ac_status=$? |
|
|
4912 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4913 | rm -f conftest.er1 |
|
|
4914 | cat conftest.err >&5 |
|
|
4915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4916 | (exit $ac_status); } >/dev/null && { |
|
|
4917 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4918 | test ! -s conftest.err |
|
|
4919 | }; then |
|
|
4920 | : |
|
|
4921 | else |
|
|
4922 | echo "$as_me: failed program was:" >&5 |
|
|
4923 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4924 | |
|
|
4925 | # Broken: fails on valid input. |
|
|
4926 | continue |
|
|
4927 | fi |
|
|
4928 | |
|
|
4929 | rm -f conftest.err conftest.$ac_ext |
|
|
4930 | |
|
|
4931 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
4932 | # can be detected and how. |
|
|
4933 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4934 | /* confdefs.h. */ |
|
|
4935 | _ACEOF |
|
|
4936 | cat confdefs.h >>conftest.$ac_ext |
|
|
4937 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4938 | /* end confdefs.h. */ |
|
|
4939 | #include <ac_nonexistent.h> |
|
|
4940 | _ACEOF |
|
|
4941 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4942 | case "(($ac_try" in |
|
|
4943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4944 | *) ac_try_echo=$ac_try;; |
|
|
4945 | esac |
|
|
4946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4947 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4948 | ac_status=$? |
|
|
4949 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4950 | rm -f conftest.er1 |
|
|
4951 | cat conftest.err >&5 |
|
|
4952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4953 | (exit $ac_status); } >/dev/null && { |
|
|
4954 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4955 | test ! -s conftest.err |
|
|
4956 | }; then |
|
|
4957 | # Broken: success on invalid input. |
|
|
4958 | continue |
|
|
4959 | else |
|
|
4960 | echo "$as_me: failed program was:" >&5 |
|
|
4961 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4962 | |
|
|
4963 | # Passes both tests. |
|
|
4964 | ac_preproc_ok=: |
|
|
4965 | break |
|
|
4966 | fi |
|
|
4967 | |
|
|
4968 | rm -f conftest.err conftest.$ac_ext |
|
|
4969 | |
|
|
4970 | done |
|
|
4971 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
4972 | rm -f conftest.err conftest.$ac_ext |
|
|
4973 | if $ac_preproc_ok; then |
|
|
4974 | break |
|
|
4975 | fi |
|
|
4976 | |
|
|
4977 | done |
|
|
4978 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
4979 | |
|
|
4980 | fi |
|
|
4981 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
4982 | else |
|
|
4983 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
4984 | fi |
|
|
4985 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
4986 | echo "${ECHO_T}$CXXCPP" >&6; } |
|
|
4987 | ac_preproc_ok=false |
|
|
4988 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4989 | do |
|
|
4990 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4991 | # with a fresh cross-compiler works. |
|
|
4992 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4993 | # <limits.h> exists even on freestanding compilers. |
|
|
4994 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4995 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4996 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4997 | /* confdefs.h. */ |
|
|
4998 | _ACEOF |
|
|
4999 | cat confdefs.h >>conftest.$ac_ext |
|
|
5000 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5001 | /* end confdefs.h. */ |
|
|
5002 | #ifdef __STDC__ |
|
|
5003 | # include <limits.h> |
|
|
5004 | #else |
|
|
5005 | # include <assert.h> |
|
|
5006 | #endif |
|
|
5007 | Syntax error |
|
|
5008 | _ACEOF |
|
|
5009 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5010 | case "(($ac_try" in |
|
|
5011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5012 | *) ac_try_echo=$ac_try;; |
|
|
5013 | esac |
|
|
5014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5015 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5016 | ac_status=$? |
|
|
5017 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5018 | rm -f conftest.er1 |
|
|
5019 | cat conftest.err >&5 |
|
|
5020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5021 | (exit $ac_status); } >/dev/null && { |
|
|
5022 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5023 | test ! -s conftest.err |
|
|
5024 | }; then |
|
|
5025 | : |
|
|
5026 | else |
|
|
5027 | echo "$as_me: failed program was:" >&5 |
|
|
5028 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5029 | |
|
|
5030 | # Broken: fails on valid input. |
|
|
5031 | continue |
|
|
5032 | fi |
|
|
5033 | |
|
|
5034 | rm -f conftest.err conftest.$ac_ext |
|
|
5035 | |
|
|
5036 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
5037 | # can be detected and how. |
|
|
5038 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5039 | /* confdefs.h. */ |
|
|
5040 | _ACEOF |
|
|
5041 | cat confdefs.h >>conftest.$ac_ext |
|
|
5042 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5043 | /* end confdefs.h. */ |
|
|
5044 | #include <ac_nonexistent.h> |
|
|
5045 | _ACEOF |
|
|
5046 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5047 | case "(($ac_try" in |
|
|
5048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5049 | *) ac_try_echo=$ac_try;; |
|
|
5050 | esac |
|
|
5051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5052 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5053 | ac_status=$? |
|
|
5054 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5055 | rm -f conftest.er1 |
|
|
5056 | cat conftest.err >&5 |
|
|
5057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5058 | (exit $ac_status); } >/dev/null && { |
|
|
5059 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5060 | test ! -s conftest.err |
|
|
5061 | }; then |
|
|
5062 | # Broken: success on invalid input. |
|
|
5063 | continue |
|
|
5064 | else |
|
|
5065 | echo "$as_me: failed program was:" >&5 |
|
|
5066 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5067 | |
|
|
5068 | # Passes both tests. |
|
|
5069 | ac_preproc_ok=: |
|
|
5070 | break |
|
|
5071 | fi |
|
|
5072 | |
|
|
5073 | rm -f conftest.err conftest.$ac_ext |
|
|
5074 | |
|
|
5075 | done |
|
|
5076 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5077 | rm -f conftest.err conftest.$ac_ext |
|
|
5078 | if $ac_preproc_ok; then |
|
|
5079 | : |
|
|
5080 | else |
|
|
5081 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5082 | See \`config.log' for more details." >&5 |
|
|
5083 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5084 | See \`config.log' for more details." >&2;} |
|
|
5085 | { (exit 1); exit 1; }; } |
|
|
5086 | fi |
|
|
5087 | |
|
|
5088 | ac_ext=cpp |
|
|
5089 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5090 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5091 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5092 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
5093 | |
|
|
5094 | |
|
|
5095 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
5096 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
|
|
5097 | if test "${ac_cv_header_stdc+set}" = set; then |
|
|
5098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5099 | else |
|
|
5100 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5101 | /* confdefs.h. */ |
|
|
5102 | _ACEOF |
|
|
5103 | cat confdefs.h >>conftest.$ac_ext |
|
|
5104 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5105 | /* end confdefs.h. */ |
|
|
5106 | #include <stdlib.h> |
|
|
5107 | #include <stdarg.h> |
|
|
5108 | #include <string.h> |
|
|
5109 | #include <float.h> |
|
|
5110 | |
|
|
5111 | int |
|
|
5112 | main () |
|
|
5113 | { |
|
|
5114 | |
|
|
5115 | ; |
|
|
5116 | return 0; |
|
|
5117 | } |
|
|
5118 | _ACEOF |
|
|
5119 | rm -f conftest.$ac_objext |
|
|
5120 | if { (ac_try="$ac_compile" |
|
|
5121 | case "(($ac_try" in |
|
|
5122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5123 | *) ac_try_echo=$ac_try;; |
|
|
5124 | esac |
|
|
5125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5126 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5127 | ac_status=$? |
|
|
5128 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5129 | rm -f conftest.er1 |
|
|
5130 | cat conftest.err >&5 |
|
|
5131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5132 | (exit $ac_status); } && { |
|
|
5133 | test -z "$ac_cxx_werror_flag" || |
|
|
5134 | test ! -s conftest.err |
|
|
5135 | } && test -s conftest.$ac_objext; then |
|
|
5136 | ac_cv_header_stdc=yes |
|
|
5137 | else |
|
|
5138 | echo "$as_me: failed program was:" >&5 |
|
|
5139 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5140 | |
|
|
5141 | ac_cv_header_stdc=no |
|
|
5142 | fi |
|
|
5143 | |
|
|
5144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5145 | |
|
|
5146 | if test $ac_cv_header_stdc = yes; then |
|
|
5147 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
5148 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5149 | /* confdefs.h. */ |
|
|
5150 | _ACEOF |
|
|
5151 | cat confdefs.h >>conftest.$ac_ext |
|
|
5152 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5153 | /* end confdefs.h. */ |
|
|
5154 | #include <string.h> |
|
|
5155 | |
|
|
5156 | _ACEOF |
|
|
5157 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
5158 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
5159 | : |
|
|
5160 | else |
|
|
5161 | ac_cv_header_stdc=no |
|
|
5162 | fi |
|
|
5163 | rm -f conftest* |
|
|
5164 | |
|
|
5165 | fi |
|
|
5166 | |
|
|
5167 | if test $ac_cv_header_stdc = yes; then |
|
|
5168 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
5169 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5170 | /* confdefs.h. */ |
|
|
5171 | _ACEOF |
|
|
5172 | cat confdefs.h >>conftest.$ac_ext |
|
|
5173 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5174 | /* end confdefs.h. */ |
|
|
5175 | #include <stdlib.h> |
|
|
5176 | |
|
|
5177 | _ACEOF |
|
|
5178 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
5179 | $EGREP "free" >/dev/null 2>&1; then |
|
|
5180 | : |
|
|
5181 | else |
|
|
5182 | ac_cv_header_stdc=no |
|
|
5183 | fi |
|
|
5184 | rm -f conftest* |
|
|
5185 | |
|
|
5186 | fi |
|
|
5187 | |
|
|
5188 | if test $ac_cv_header_stdc = yes; then |
|
|
5189 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
5190 | if test "$cross_compiling" = yes; then |
|
|
5191 | : |
|
|
5192 | else |
|
|
5193 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5194 | /* confdefs.h. */ |
|
|
5195 | _ACEOF |
|
|
5196 | cat confdefs.h >>conftest.$ac_ext |
|
|
5197 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5198 | /* end confdefs.h. */ |
|
|
5199 | #include <ctype.h> |
|
|
5200 | #include <stdlib.h> |
|
|
5201 | #if ((' ' & 0x0FF) == 0x020) |
|
|
5202 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
5203 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
5204 | #else |
|
|
5205 | # define ISLOWER(c) \ |
|
|
5206 | (('a' <= (c) && (c) <= 'i') \ |
|
|
5207 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
5208 | || ('s' <= (c) && (c) <= 'z')) |
|
|
5209 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
5210 | #endif |
|
|
5211 | |
|
|
5212 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
5213 | int |
|
|
5214 | main () |
|
|
5215 | { |
|
|
5216 | int i; |
|
|
5217 | for (i = 0; i < 256; i++) |
|
|
5218 | if (XOR (islower (i), ISLOWER (i)) |
|
|
5219 | || toupper (i) != TOUPPER (i)) |
|
|
5220 | return 2; |
|
|
5221 | return 0; |
|
|
5222 | } |
|
|
5223 | _ACEOF |
|
|
5224 | rm -f conftest$ac_exeext |
|
|
5225 | if { (ac_try="$ac_link" |
|
|
5226 | case "(($ac_try" in |
|
|
5227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5228 | *) ac_try_echo=$ac_try;; |
|
|
5229 | esac |
|
|
5230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5231 | (eval "$ac_link") 2>&5 |
|
|
5232 | ac_status=$? |
|
|
5233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5234 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
5235 | { (case "(($ac_try" in |
|
|
5236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5237 | *) ac_try_echo=$ac_try;; |
|
|
5238 | esac |
|
|
5239 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5240 | (eval "$ac_try") 2>&5 |
|
|
5241 | ac_status=$? |
|
|
5242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5243 | (exit $ac_status); }; }; then |
|
|
5244 | : |
|
|
5245 | else |
|
|
5246 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
5247 | echo "$as_me: failed program was:" >&5 |
|
|
5248 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5249 | |
|
|
5250 | ( exit $ac_status ) |
|
|
5251 | ac_cv_header_stdc=no |
|
|
5252 | fi |
|
|
5253 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
5254 | fi |
|
|
5255 | |
|
|
5256 | |
|
|
5257 | fi |
|
|
5258 | fi |
|
|
5259 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
5260 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
|
|
5261 | if test $ac_cv_header_stdc = yes; then |
|
|
5262 | |
|
|
5263 | cat >>confdefs.h <<\_ACEOF |
|
|
5264 | #define STDC_HEADERS 1 |
|
|
5265 | _ACEOF |
|
|
5266 | |
|
|
5267 | fi |
|
|
5268 | |
|
|
5269 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
5270 | |
|
|
5271 | |
|
|
5272 | |
|
|
5273 | |
|
|
5274 | |
|
|
5275 | |
|
|
5276 | |
|
|
5277 | |
|
|
5278 | |
|
|
5279 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
5280 | inttypes.h stdint.h unistd.h |
|
|
5281 | do |
|
|
5282 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
5283 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5284 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5285 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5287 | else |
|
|
5288 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5289 | /* confdefs.h. */ |
|
|
5290 | _ACEOF |
|
|
5291 | cat confdefs.h >>conftest.$ac_ext |
|
|
5292 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5293 | /* end confdefs.h. */ |
|
|
5294 | $ac_includes_default |
|
|
5295 | |
|
|
5296 | #include <$ac_header> |
|
|
5297 | _ACEOF |
|
|
5298 | rm -f conftest.$ac_objext |
|
|
5299 | if { (ac_try="$ac_compile" |
|
|
5300 | case "(($ac_try" in |
|
|
5301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5302 | *) ac_try_echo=$ac_try;; |
|
|
5303 | esac |
|
|
5304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5305 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5306 | ac_status=$? |
|
|
5307 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5308 | rm -f conftest.er1 |
|
|
5309 | cat conftest.err >&5 |
|
|
5310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5311 | (exit $ac_status); } && { |
|
|
5312 | test -z "$ac_cxx_werror_flag" || |
|
|
5313 | test ! -s conftest.err |
|
|
5314 | } && test -s conftest.$ac_objext; then |
|
|
5315 | eval "$as_ac_Header=yes" |
|
|
5316 | else |
|
|
5317 | echo "$as_me: failed program was:" >&5 |
|
|
5318 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5319 | |
|
|
5320 | eval "$as_ac_Header=no" |
|
|
5321 | fi |
|
|
5322 | |
|
|
5323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5324 | fi |
|
|
5325 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5326 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5327 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5328 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
5329 | cat >>confdefs.h <<_ACEOF |
|
|
5330 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
5331 | _ACEOF |
|
|
5332 | |
|
|
5333 | fi |
|
|
5334 | |
|
|
5335 | done |
|
|
5336 | |
|
|
5337 | |
|
|
5338 | |
|
|
5339 | |
|
|
5340 | |
|
|
5341 | |
|
|
5342 | |
|
|
5343 | |
|
|
5344 | |
|
|
5345 | |
|
|
5346 | |
|
|
5347 | for ac_header in sys/inotify.h sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h sys/eventfd.h sys/signalfd.h |
|
|
5348 | do |
|
|
5349 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
5350 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5351 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5352 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5353 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5355 | fi |
|
|
5356 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5357 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5358 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5359 | else |
|
|
5360 | # Is the header compilable? |
|
|
5361 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
5362 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
|
|
5363 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5364 | /* confdefs.h. */ |
|
|
5365 | _ACEOF |
|
|
5366 | cat confdefs.h >>conftest.$ac_ext |
|
|
5367 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5368 | /* end confdefs.h. */ |
|
|
5369 | $ac_includes_default |
|
|
5370 | #include <$ac_header> |
|
|
5371 | _ACEOF |
|
|
5372 | rm -f conftest.$ac_objext |
|
|
5373 | if { (ac_try="$ac_compile" |
|
|
5374 | case "(($ac_try" in |
|
|
5375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5376 | *) ac_try_echo=$ac_try;; |
|
|
5377 | esac |
|
|
5378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5379 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5380 | ac_status=$? |
|
|
5381 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5382 | rm -f conftest.er1 |
|
|
5383 | cat conftest.err >&5 |
|
|
5384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5385 | (exit $ac_status); } && { |
|
|
5386 | test -z "$ac_cxx_werror_flag" || |
|
|
5387 | test ! -s conftest.err |
|
|
5388 | } && test -s conftest.$ac_objext; then |
|
|
5389 | ac_header_compiler=yes |
|
|
5390 | else |
|
|
5391 | echo "$as_me: failed program was:" >&5 |
|
|
5392 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5393 | |
|
|
5394 | ac_header_compiler=no |
|
|
5395 | fi |
|
|
5396 | |
|
|
5397 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5398 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
5399 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
|
|
5400 | |
|
|
5401 | # Is the header present? |
|
|
5402 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
5403 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
|
|
5404 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5405 | /* confdefs.h. */ |
|
|
5406 | _ACEOF |
|
|
5407 | cat confdefs.h >>conftest.$ac_ext |
|
|
5408 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5409 | /* end confdefs.h. */ |
|
|
5410 | #include <$ac_header> |
|
|
5411 | _ACEOF |
|
|
5412 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5413 | case "(($ac_try" in |
|
|
5414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5415 | *) ac_try_echo=$ac_try;; |
|
|
5416 | esac |
|
|
5417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5418 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5419 | ac_status=$? |
|
|
5420 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5421 | rm -f conftest.er1 |
|
|
5422 | cat conftest.err >&5 |
|
|
5423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5424 | (exit $ac_status); } >/dev/null && { |
|
|
5425 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5426 | test ! -s conftest.err |
|
|
5427 | }; then |
|
|
5428 | ac_header_preproc=yes |
|
|
5429 | else |
|
|
5430 | echo "$as_me: failed program was:" >&5 |
|
|
5431 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5432 | |
|
|
5433 | ac_header_preproc=no |
|
|
5434 | fi |
|
|
5435 | |
|
|
5436 | rm -f conftest.err conftest.$ac_ext |
|
|
5437 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
5438 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
|
|
5439 | |
|
|
5440 | # So? What about this header? |
|
|
5441 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
5442 | yes:no: ) |
|
|
5443 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
5444 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
5445 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
5446 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
5447 | ac_header_preproc=yes |
|
|
5448 | ;; |
|
|
5449 | no:yes:* ) |
|
|
5450 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
5451 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
5452 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
5453 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
5454 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
5455 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
5456 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
5457 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
5458 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
5459 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
5460 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
5461 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
5462 | |
|
|
5463 | ;; |
|
|
5464 | esac |
|
|
5465 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5466 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5467 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5469 | else |
|
|
5470 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
5471 | fi |
|
|
5472 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5473 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5474 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5475 | |
|
|
5476 | fi |
|
|
5477 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
5478 | cat >>confdefs.h <<_ACEOF |
|
|
5479 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
5480 | _ACEOF |
|
|
5481 | |
|
|
5482 | fi |
|
|
5483 | |
|
|
5484 | done |
|
|
5485 | |
|
|
5486 | |
|
|
5487 | |
|
|
5488 | |
|
|
5489 | |
|
|
5490 | |
|
|
5491 | |
|
|
5492 | |
|
|
5493 | |
|
|
5494 | |
|
|
5495 | for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd signalfd |
|
|
5496 | do |
|
|
5497 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
5498 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
5499 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
5500 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5502 | else |
|
|
5503 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5504 | /* confdefs.h. */ |
|
|
5505 | _ACEOF |
|
|
5506 | cat confdefs.h >>conftest.$ac_ext |
|
|
5507 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5508 | /* end confdefs.h. */ |
|
|
5509 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
5510 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5511 | #define $ac_func innocuous_$ac_func |
|
|
5512 | |
|
|
5513 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5514 | which can conflict with char $ac_func (); below. |
|
|
5515 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5516 | <limits.h> exists even on freestanding compilers. */ |
|
|
5517 | |
|
|
5518 | #ifdef __STDC__ |
|
|
5519 | # include <limits.h> |
|
|
5520 | #else |
|
|
5521 | # include <assert.h> |
|
|
5522 | #endif |
|
|
5523 | |
|
|
5524 | #undef $ac_func |
|
|
5525 | |
|
|
5526 | /* Override any GCC internal prototype to avoid an error. |
|
|
5527 | Use char because int might match the return type of a GCC |
|
|
5528 | builtin and then its argument prototype would still apply. */ |
|
|
5529 | #ifdef __cplusplus |
|
|
5530 | extern "C" |
|
|
5531 | #endif |
|
|
5532 | char $ac_func (); |
|
|
5533 | /* The GNU C library defines this for functions which it implements |
|
|
5534 | to always fail with ENOSYS. Some functions are actually named |
|
|
5535 | something starting with __ and the normal name is an alias. */ |
|
|
5536 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
5537 | choke me |
|
|
5538 | #endif |
|
|
5539 | |
|
|
5540 | int |
|
|
5541 | main () |
|
|
5542 | { |
|
|
5543 | return $ac_func (); |
|
|
5544 | ; |
|
|
5545 | return 0; |
|
|
5546 | } |
|
|
5547 | _ACEOF |
|
|
5548 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5549 | if { (ac_try="$ac_link" |
|
|
5550 | case "(($ac_try" in |
|
|
5551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5552 | *) ac_try_echo=$ac_try;; |
|
|
5553 | esac |
|
|
5554 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5555 | (eval "$ac_link") 2>conftest.er1 |
|
|
5556 | ac_status=$? |
|
|
5557 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5558 | rm -f conftest.er1 |
|
|
5559 | cat conftest.err >&5 |
|
|
5560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5561 | (exit $ac_status); } && { |
|
|
5562 | test -z "$ac_cxx_werror_flag" || |
|
|
5563 | test ! -s conftest.err |
|
|
5564 | } && test -s conftest$ac_exeext && |
|
|
5565 | $as_test_x conftest$ac_exeext; then |
|
|
5566 | eval "$as_ac_var=yes" |
|
|
5567 | else |
|
|
5568 | echo "$as_me: failed program was:" >&5 |
|
|
5569 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5570 | |
|
|
5571 | eval "$as_ac_var=no" |
|
|
5572 | fi |
|
|
5573 | |
|
|
5574 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5575 | conftest$ac_exeext conftest.$ac_ext |
|
|
5576 | fi |
|
|
5577 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
5578 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5579 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5580 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
5581 | cat >>confdefs.h <<_ACEOF |
|
|
5582 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
5583 | _ACEOF |
|
|
5584 | |
|
|
5585 | fi |
|
|
5586 | done |
|
|
5587 | |
|
|
5588 | |
|
|
5589 | { echo "$as_me:$LINENO: checking for clock_gettime" >&5 |
|
|
5590 | echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6; } |
|
|
5591 | if test "${ac_cv_func_clock_gettime+set}" = set; then |
|
|
5592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5593 | else |
|
|
5594 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5595 | /* confdefs.h. */ |
|
|
5596 | _ACEOF |
|
|
5597 | cat confdefs.h >>conftest.$ac_ext |
|
|
5598 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5599 | /* end confdefs.h. */ |
|
|
5600 | /* Define clock_gettime to an innocuous variant, in case <limits.h> declares clock_gettime. |
|
|
5601 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5602 | #define clock_gettime innocuous_clock_gettime |
|
|
5603 | |
|
|
5604 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5605 | which can conflict with char clock_gettime (); below. |
|
|
5606 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5607 | <limits.h> exists even on freestanding compilers. */ |
|
|
5608 | |
|
|
5609 | #ifdef __STDC__ |
|
|
5610 | # include <limits.h> |
|
|
5611 | #else |
|
|
5612 | # include <assert.h> |
|
|
5613 | #endif |
|
|
5614 | |
|
|
5615 | #undef clock_gettime |
|
|
5616 | |
|
|
5617 | /* Override any GCC internal prototype to avoid an error. |
|
|
5618 | Use char because int might match the return type of a GCC |
|
|
5619 | builtin and then its argument prototype would still apply. */ |
|
|
5620 | #ifdef __cplusplus |
|
|
5621 | extern "C" |
|
|
5622 | #endif |
|
|
5623 | char clock_gettime (); |
|
|
5624 | /* The GNU C library defines this for functions which it implements |
|
|
5625 | to always fail with ENOSYS. Some functions are actually named |
|
|
5626 | something starting with __ and the normal name is an alias. */ |
|
|
5627 | #if defined __stub_clock_gettime || defined __stub___clock_gettime |
|
|
5628 | choke me |
|
|
5629 | #endif |
|
|
5630 | |
|
|
5631 | int |
|
|
5632 | main () |
|
|
5633 | { |
|
|
5634 | return clock_gettime (); |
|
|
5635 | ; |
|
|
5636 | return 0; |
|
|
5637 | } |
|
|
5638 | _ACEOF |
|
|
5639 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5640 | if { (ac_try="$ac_link" |
|
|
5641 | case "(($ac_try" in |
|
|
5642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5643 | *) ac_try_echo=$ac_try;; |
|
|
5644 | esac |
|
|
5645 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5646 | (eval "$ac_link") 2>conftest.er1 |
|
|
5647 | ac_status=$? |
|
|
5648 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5649 | rm -f conftest.er1 |
|
|
5650 | cat conftest.err >&5 |
|
|
5651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5652 | (exit $ac_status); } && { |
|
|
5653 | test -z "$ac_cxx_werror_flag" || |
|
|
5654 | test ! -s conftest.err |
|
|
5655 | } && test -s conftest$ac_exeext && |
|
|
5656 | $as_test_x conftest$ac_exeext; then |
|
|
5657 | ac_cv_func_clock_gettime=yes |
|
|
5658 | else |
|
|
5659 | echo "$as_me: failed program was:" >&5 |
|
|
5660 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5661 | |
|
|
5662 | ac_cv_func_clock_gettime=no |
|
|
5663 | fi |
|
|
5664 | |
|
|
5665 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5666 | conftest$ac_exeext conftest.$ac_ext |
|
|
5667 | fi |
|
|
5668 | { echo "$as_me:$LINENO: result: $ac_cv_func_clock_gettime" >&5 |
|
|
5669 | echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; } |
|
|
5670 | if test $ac_cv_func_clock_gettime = yes; then |
|
|
5671 | : |
|
|
5672 | else |
|
|
5673 | |
|
|
5674 | if test $(uname) = Linux; then |
|
|
5675 | { echo "$as_me:$LINENO: checking for clock_gettime syscall" >&5 |
|
|
5676 | echo $ECHO_N "checking for clock_gettime syscall... $ECHO_C" >&6; } |
|
|
5677 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5678 | /* confdefs.h. */ |
|
|
5679 | _ACEOF |
|
|
5680 | cat confdefs.h >>conftest.$ac_ext |
|
|
5681 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5682 | /* end confdefs.h. */ |
|
|
5683 | #include <syscall.h> |
|
|
5684 | #include <time.h> |
|
|
5685 | int |
|
|
5686 | main () |
|
|
5687 | { |
|
|
5688 | struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts) |
|
|
5689 | ; |
|
|
5690 | return 0; |
|
|
5691 | } |
|
|
5692 | _ACEOF |
|
|
5693 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5694 | if { (ac_try="$ac_link" |
|
|
5695 | case "(($ac_try" in |
|
|
5696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5697 | *) ac_try_echo=$ac_try;; |
|
|
5698 | esac |
|
|
5699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5700 | (eval "$ac_link") 2>conftest.er1 |
|
|
5701 | ac_status=$? |
|
|
5702 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5703 | rm -f conftest.er1 |
|
|
5704 | cat conftest.err >&5 |
|
|
5705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5706 | (exit $ac_status); } && { |
|
|
5707 | test -z "$ac_cxx_werror_flag" || |
|
|
5708 | test ! -s conftest.err |
|
|
5709 | } && test -s conftest$ac_exeext && |
|
|
5710 | $as_test_x conftest$ac_exeext; then |
|
|
5711 | ac_have_clock_syscall=1 |
|
|
5712 | |
|
|
5713 | cat >>confdefs.h <<\_ACEOF |
|
|
5714 | #define HAVE_CLOCK_SYSCALL 1 |
|
|
5715 | _ACEOF |
|
|
5716 | |
|
|
5717 | { echo "$as_me:$LINENO: result: yes" >&5 |
|
|
5718 | echo "${ECHO_T}yes" >&6; } |
|
|
5719 | else |
|
|
5720 | echo "$as_me: failed program was:" >&5 |
|
|
5721 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5722 | |
|
|
5723 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
5724 | echo "${ECHO_T}no" >&6; } |
|
|
5725 | fi |
|
|
5726 | |
|
|
5727 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5728 | conftest$ac_exeext conftest.$ac_ext |
|
|
5729 | fi |
|
|
5730 | if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then |
|
|
5731 | |
|
|
5732 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
|
|
5733 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } |
|
|
5734 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
|
|
5735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5736 | else |
|
|
5737 | ac_check_lib_save_LIBS=$LIBS |
|
|
5738 | LIBS="-lrt $LIBS" |
|
|
5739 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5740 | /* confdefs.h. */ |
|
|
5741 | _ACEOF |
|
|
5742 | cat confdefs.h >>conftest.$ac_ext |
|
|
5743 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5744 | /* end confdefs.h. */ |
|
|
5745 | |
|
|
5746 | /* Override any GCC internal prototype to avoid an error. |
|
|
5747 | Use char because int might match the return type of a GCC |
|
|
5748 | builtin and then its argument prototype would still apply. */ |
|
|
5749 | #ifdef __cplusplus |
|
|
5750 | extern "C" |
|
|
5751 | #endif |
|
|
5752 | char clock_gettime (); |
|
|
5753 | int |
|
|
5754 | main () |
|
|
5755 | { |
|
|
5756 | return clock_gettime (); |
|
|
5757 | ; |
|
|
5758 | return 0; |
|
|
5759 | } |
|
|
5760 | _ACEOF |
|
|
5761 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5762 | if { (ac_try="$ac_link" |
|
|
5763 | case "(($ac_try" in |
|
|
5764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5765 | *) ac_try_echo=$ac_try;; |
|
|
5766 | esac |
|
|
5767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5768 | (eval "$ac_link") 2>conftest.er1 |
|
|
5769 | ac_status=$? |
|
|
5770 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5771 | rm -f conftest.er1 |
|
|
5772 | cat conftest.err >&5 |
|
|
5773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5774 | (exit $ac_status); } && { |
|
|
5775 | test -z "$ac_cxx_werror_flag" || |
|
|
5776 | test ! -s conftest.err |
|
|
5777 | } && test -s conftest$ac_exeext && |
|
|
5778 | $as_test_x conftest$ac_exeext; then |
|
|
5779 | ac_cv_lib_rt_clock_gettime=yes |
|
|
5780 | else |
|
|
5781 | echo "$as_me: failed program was:" >&5 |
|
|
5782 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5783 | |
|
|
5784 | ac_cv_lib_rt_clock_gettime=no |
|
|
5785 | fi |
|
|
5786 | |
|
|
5787 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5788 | conftest$ac_exeext conftest.$ac_ext |
|
|
5789 | LIBS=$ac_check_lib_save_LIBS |
|
|
5790 | fi |
|
|
5791 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
|
|
5792 | echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; } |
|
|
5793 | if test $ac_cv_lib_rt_clock_gettime = yes; then |
|
|
5794 | cat >>confdefs.h <<_ACEOF |
|
|
5795 | #define HAVE_LIBRT 1 |
|
|
5796 | _ACEOF |
|
|
5797 | |
|
|
5798 | LIBS="-lrt $LIBS" |
|
|
5799 | |
|
|
5800 | fi |
|
|
5801 | |
|
|
5802 | unset ac_cv_func_clock_gettime |
|
|
5803 | |
|
|
5804 | for ac_func in clock_gettime |
|
|
5805 | do |
|
|
5806 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
5807 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
5808 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
5809 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5811 | else |
|
|
5812 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5813 | /* confdefs.h. */ |
|
|
5814 | _ACEOF |
|
|
5815 | cat confdefs.h >>conftest.$ac_ext |
|
|
5816 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5817 | /* end confdefs.h. */ |
|
|
5818 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
5819 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5820 | #define $ac_func innocuous_$ac_func |
|
|
5821 | |
|
|
5822 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5823 | which can conflict with char $ac_func (); below. |
|
|
5824 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5825 | <limits.h> exists even on freestanding compilers. */ |
|
|
5826 | |
|
|
5827 | #ifdef __STDC__ |
|
|
5828 | # include <limits.h> |
|
|
5829 | #else |
|
|
5830 | # include <assert.h> |
|
|
5831 | #endif |
|
|
5832 | |
|
|
5833 | #undef $ac_func |
|
|
5834 | |
|
|
5835 | /* Override any GCC internal prototype to avoid an error. |
|
|
5836 | Use char because int might match the return type of a GCC |
|
|
5837 | builtin and then its argument prototype would still apply. */ |
|
|
5838 | #ifdef __cplusplus |
|
|
5839 | extern "C" |
|
|
5840 | #endif |
|
|
5841 | char $ac_func (); |
|
|
5842 | /* The GNU C library defines this for functions which it implements |
|
|
5843 | to always fail with ENOSYS. Some functions are actually named |
|
|
5844 | something starting with __ and the normal name is an alias. */ |
|
|
5845 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
5846 | choke me |
|
|
5847 | #endif |
|
|
5848 | |
|
|
5849 | int |
|
|
5850 | main () |
|
|
5851 | { |
|
|
5852 | return $ac_func (); |
|
|
5853 | ; |
|
|
5854 | return 0; |
|
|
5855 | } |
|
|
5856 | _ACEOF |
|
|
5857 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5858 | if { (ac_try="$ac_link" |
|
|
5859 | case "(($ac_try" in |
|
|
5860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5861 | *) ac_try_echo=$ac_try;; |
|
|
5862 | esac |
|
|
5863 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5864 | (eval "$ac_link") 2>conftest.er1 |
|
|
5865 | ac_status=$? |
|
|
5866 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5867 | rm -f conftest.er1 |
|
|
5868 | cat conftest.err >&5 |
|
|
5869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5870 | (exit $ac_status); } && { |
|
|
5871 | test -z "$ac_cxx_werror_flag" || |
|
|
5872 | test ! -s conftest.err |
|
|
5873 | } && test -s conftest$ac_exeext && |
|
|
5874 | $as_test_x conftest$ac_exeext; then |
|
|
5875 | eval "$as_ac_var=yes" |
|
|
5876 | else |
|
|
5877 | echo "$as_me: failed program was:" >&5 |
|
|
5878 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5879 | |
|
|
5880 | eval "$as_ac_var=no" |
|
|
5881 | fi |
|
|
5882 | |
|
|
5883 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5884 | conftest$ac_exeext conftest.$ac_ext |
|
|
5885 | fi |
|
|
5886 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
5887 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5888 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5889 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
5890 | cat >>confdefs.h <<_ACEOF |
|
|
5891 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
5892 | _ACEOF |
|
|
5893 | |
|
|
5894 | fi |
|
|
5895 | done |
|
|
5896 | |
|
|
5897 | fi |
|
|
5898 | |
|
|
5899 | fi |
|
|
5900 | |
|
|
5901 | |
|
|
5902 | { echo "$as_me:$LINENO: checking for nanosleep" >&5 |
|
|
5903 | echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; } |
|
|
5904 | if test "${ac_cv_func_nanosleep+set}" = set; then |
|
|
5905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5906 | else |
|
|
5907 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5908 | /* confdefs.h. */ |
|
|
5909 | _ACEOF |
|
|
5910 | cat confdefs.h >>conftest.$ac_ext |
|
|
5911 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5912 | /* end confdefs.h. */ |
|
|
5913 | /* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep. |
|
|
5914 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5915 | #define nanosleep innocuous_nanosleep |
|
|
5916 | |
|
|
5917 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5918 | which can conflict with char nanosleep (); below. |
|
|
5919 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5920 | <limits.h> exists even on freestanding compilers. */ |
|
|
5921 | |
|
|
5922 | #ifdef __STDC__ |
|
|
5923 | # include <limits.h> |
|
|
5924 | #else |
|
|
5925 | # include <assert.h> |
|
|
5926 | #endif |
|
|
5927 | |
|
|
5928 | #undef nanosleep |
|
|
5929 | |
|
|
5930 | /* Override any GCC internal prototype to avoid an error. |
|
|
5931 | Use char because int might match the return type of a GCC |
|
|
5932 | builtin and then its argument prototype would still apply. */ |
|
|
5933 | #ifdef __cplusplus |
|
|
5934 | extern "C" |
|
|
5935 | #endif |
|
|
5936 | char nanosleep (); |
|
|
5937 | /* The GNU C library defines this for functions which it implements |
|
|
5938 | to always fail with ENOSYS. Some functions are actually named |
|
|
5939 | something starting with __ and the normal name is an alias. */ |
|
|
5940 | #if defined __stub_nanosleep || defined __stub___nanosleep |
|
|
5941 | choke me |
|
|
5942 | #endif |
|
|
5943 | |
|
|
5944 | int |
|
|
5945 | main () |
|
|
5946 | { |
|
|
5947 | return nanosleep (); |
|
|
5948 | ; |
|
|
5949 | return 0; |
|
|
5950 | } |
|
|
5951 | _ACEOF |
|
|
5952 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5953 | if { (ac_try="$ac_link" |
|
|
5954 | case "(($ac_try" in |
|
|
5955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5956 | *) ac_try_echo=$ac_try;; |
|
|
5957 | esac |
|
|
5958 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5959 | (eval "$ac_link") 2>conftest.er1 |
|
|
5960 | ac_status=$? |
|
|
5961 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5962 | rm -f conftest.er1 |
|
|
5963 | cat conftest.err >&5 |
|
|
5964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5965 | (exit $ac_status); } && { |
|
|
5966 | test -z "$ac_cxx_werror_flag" || |
|
|
5967 | test ! -s conftest.err |
|
|
5968 | } && test -s conftest$ac_exeext && |
|
|
5969 | $as_test_x conftest$ac_exeext; then |
|
|
5970 | ac_cv_func_nanosleep=yes |
|
|
5971 | else |
|
|
5972 | echo "$as_me: failed program was:" >&5 |
|
|
5973 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5974 | |
|
|
5975 | ac_cv_func_nanosleep=no |
|
|
5976 | fi |
|
|
5977 | |
|
|
5978 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5979 | conftest$ac_exeext conftest.$ac_ext |
|
|
5980 | fi |
|
|
5981 | { echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5 |
|
|
5982 | echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; } |
|
|
5983 | if test $ac_cv_func_nanosleep = yes; then |
|
|
5984 | : |
|
|
5985 | else |
|
|
5986 | |
|
|
5987 | if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
|
|
5988 | |
|
|
5989 | { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5 |
|
|
5990 | echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; } |
|
|
5991 | if test "${ac_cv_lib_rt_nanosleep+set}" = set; then |
|
|
5992 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5993 | else |
|
|
5994 | ac_check_lib_save_LIBS=$LIBS |
|
|
5995 | LIBS="-lrt $LIBS" |
|
|
5996 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5997 | /* confdefs.h. */ |
|
|
5998 | _ACEOF |
|
|
5999 | cat confdefs.h >>conftest.$ac_ext |
|
|
6000 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6001 | /* end confdefs.h. */ |
|
|
6002 | |
|
|
6003 | /* Override any GCC internal prototype to avoid an error. |
|
|
6004 | Use char because int might match the return type of a GCC |
|
|
6005 | builtin and then its argument prototype would still apply. */ |
|
|
6006 | #ifdef __cplusplus |
|
|
6007 | extern "C" |
|
|
6008 | #endif |
|
|
6009 | char nanosleep (); |
|
|
6010 | int |
|
|
6011 | main () |
|
|
6012 | { |
|
|
6013 | return nanosleep (); |
|
|
6014 | ; |
|
|
6015 | return 0; |
|
|
6016 | } |
|
|
6017 | _ACEOF |
|
|
6018 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6019 | if { (ac_try="$ac_link" |
|
|
6020 | case "(($ac_try" in |
|
|
6021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6022 | *) ac_try_echo=$ac_try;; |
|
|
6023 | esac |
|
|
6024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6025 | (eval "$ac_link") 2>conftest.er1 |
|
|
6026 | ac_status=$? |
|
|
6027 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6028 | rm -f conftest.er1 |
|
|
6029 | cat conftest.err >&5 |
|
|
6030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6031 | (exit $ac_status); } && { |
|
|
6032 | test -z "$ac_cxx_werror_flag" || |
|
|
6033 | test ! -s conftest.err |
|
|
6034 | } && test -s conftest$ac_exeext && |
|
|
6035 | $as_test_x conftest$ac_exeext; then |
|
|
6036 | ac_cv_lib_rt_nanosleep=yes |
|
|
6037 | else |
|
|
6038 | echo "$as_me: failed program was:" >&5 |
|
|
6039 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6040 | |
|
|
6041 | ac_cv_lib_rt_nanosleep=no |
|
|
6042 | fi |
|
|
6043 | |
|
|
6044 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6045 | conftest$ac_exeext conftest.$ac_ext |
|
|
6046 | LIBS=$ac_check_lib_save_LIBS |
|
|
6047 | fi |
|
|
6048 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5 |
|
|
6049 | echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; } |
|
|
6050 | if test $ac_cv_lib_rt_nanosleep = yes; then |
|
|
6051 | cat >>confdefs.h <<_ACEOF |
|
|
6052 | #define HAVE_LIBRT 1 |
|
|
6053 | _ACEOF |
|
|
6054 | |
|
|
6055 | LIBS="-lrt $LIBS" |
|
|
6056 | |
|
|
6057 | fi |
|
|
6058 | |
|
|
6059 | unset ac_cv_func_nanosleep |
|
|
6060 | |
|
|
6061 | for ac_func in nanosleep |
|
|
6062 | do |
|
|
6063 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
6064 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
6065 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
6066 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
6067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6068 | else |
|
|
6069 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6070 | /* confdefs.h. */ |
|
|
6071 | _ACEOF |
|
|
6072 | cat confdefs.h >>conftest.$ac_ext |
|
|
6073 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6074 | /* end confdefs.h. */ |
|
|
6075 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
6076 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
6077 | #define $ac_func innocuous_$ac_func |
|
|
6078 | |
|
|
6079 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
6080 | which can conflict with char $ac_func (); below. |
|
|
6081 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
6082 | <limits.h> exists even on freestanding compilers. */ |
|
|
6083 | |
|
|
6084 | #ifdef __STDC__ |
|
|
6085 | # include <limits.h> |
|
|
6086 | #else |
|
|
6087 | # include <assert.h> |
|
|
6088 | #endif |
|
|
6089 | |
|
|
6090 | #undef $ac_func |
|
|
6091 | |
|
|
6092 | /* Override any GCC internal prototype to avoid an error. |
|
|
6093 | Use char because int might match the return type of a GCC |
|
|
6094 | builtin and then its argument prototype would still apply. */ |
|
|
6095 | #ifdef __cplusplus |
|
|
6096 | extern "C" |
|
|
6097 | #endif |
|
|
6098 | char $ac_func (); |
|
|
6099 | /* The GNU C library defines this for functions which it implements |
|
|
6100 | to always fail with ENOSYS. Some functions are actually named |
|
|
6101 | something starting with __ and the normal name is an alias. */ |
|
|
6102 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
6103 | choke me |
|
|
6104 | #endif |
|
|
6105 | |
|
|
6106 | int |
|
|
6107 | main () |
|
|
6108 | { |
|
|
6109 | return $ac_func (); |
|
|
6110 | ; |
|
|
6111 | return 0; |
|
|
6112 | } |
|
|
6113 | _ACEOF |
|
|
6114 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6115 | if { (ac_try="$ac_link" |
|
|
6116 | case "(($ac_try" in |
|
|
6117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6118 | *) ac_try_echo=$ac_try;; |
|
|
6119 | esac |
|
|
6120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6121 | (eval "$ac_link") 2>conftest.er1 |
|
|
6122 | ac_status=$? |
|
|
6123 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6124 | rm -f conftest.er1 |
|
|
6125 | cat conftest.err >&5 |
|
|
6126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6127 | (exit $ac_status); } && { |
|
|
6128 | test -z "$ac_cxx_werror_flag" || |
|
|
6129 | test ! -s conftest.err |
|
|
6130 | } && test -s conftest$ac_exeext && |
|
|
6131 | $as_test_x conftest$ac_exeext; then |
|
|
6132 | eval "$as_ac_var=yes" |
|
|
6133 | else |
|
|
6134 | echo "$as_me: failed program was:" >&5 |
|
|
6135 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6136 | |
|
|
6137 | eval "$as_ac_var=no" |
|
|
6138 | fi |
|
|
6139 | |
|
|
6140 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6141 | conftest$ac_exeext conftest.$ac_ext |
|
|
6142 | fi |
|
|
6143 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
6144 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
6145 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
6146 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
6147 | cat >>confdefs.h <<_ACEOF |
|
|
6148 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
6149 | _ACEOF |
|
|
6150 | |
|
|
6151 | fi |
|
|
6152 | done |
|
|
6153 | |
|
|
6154 | fi |
|
|
6155 | |
|
|
6156 | fi |
|
|
6157 | |
|
|
6158 | |
|
|
6159 | |
|
|
6160 | { echo "$as_me:$LINENO: checking for ceil in -lm" >&5 |
|
|
6161 | echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; } |
|
|
6162 | if test "${ac_cv_lib_m_ceil+set}" = set; then |
|
|
6163 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6164 | else |
|
|
6165 | ac_check_lib_save_LIBS=$LIBS |
|
|
6166 | LIBS="-lm $LIBS" |
|
|
6167 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6168 | /* confdefs.h. */ |
|
|
6169 | _ACEOF |
|
|
6170 | cat confdefs.h >>conftest.$ac_ext |
|
|
6171 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6172 | /* end confdefs.h. */ |
|
|
6173 | |
|
|
6174 | /* Override any GCC internal prototype to avoid an error. |
|
|
6175 | Use char because int might match the return type of a GCC |
|
|
6176 | builtin and then its argument prototype would still apply. */ |
|
|
6177 | #ifdef __cplusplus |
|
|
6178 | extern "C" |
|
|
6179 | #endif |
|
|
6180 | char ceil (); |
|
|
6181 | int |
|
|
6182 | main () |
|
|
6183 | { |
|
|
6184 | return ceil (); |
|
|
6185 | ; |
|
|
6186 | return 0; |
|
|
6187 | } |
|
|
6188 | _ACEOF |
|
|
6189 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6190 | if { (ac_try="$ac_link" |
|
|
6191 | case "(($ac_try" in |
|
|
6192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6193 | *) ac_try_echo=$ac_try;; |
|
|
6194 | esac |
|
|
6195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6196 | (eval "$ac_link") 2>conftest.er1 |
|
|
6197 | ac_status=$? |
|
|
6198 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6199 | rm -f conftest.er1 |
|
|
6200 | cat conftest.err >&5 |
|
|
6201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6202 | (exit $ac_status); } && { |
|
|
6203 | test -z "$ac_cxx_werror_flag" || |
|
|
6204 | test ! -s conftest.err |
|
|
6205 | } && test -s conftest$ac_exeext && |
|
|
6206 | $as_test_x conftest$ac_exeext; then |
|
|
6207 | ac_cv_lib_m_ceil=yes |
|
|
6208 | else |
|
|
6209 | echo "$as_me: failed program was:" >&5 |
|
|
6210 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6211 | |
|
|
6212 | ac_cv_lib_m_ceil=no |
|
|
6213 | fi |
|
|
6214 | |
|
|
6215 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6216 | conftest$ac_exeext conftest.$ac_ext |
|
|
6217 | LIBS=$ac_check_lib_save_LIBS |
|
|
6218 | fi |
|
|
6219 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5 |
|
|
6220 | echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6; } |
|
|
6221 | if test $ac_cv_lib_m_ceil = yes; then |
|
|
6222 | cat >>confdefs.h <<_ACEOF |
|
|
6223 | #define HAVE_LIBM 1 |
|
|
6224 | _ACEOF |
|
|
6225 | |
|
|
6226 | LIBS="-lm $LIBS" |
|
|
6227 | |
|
|
6228 | fi |
|
|
6229 | |
|
|
6230 | |
4864 | |
6231 | |
4865 | |
6232 | |
4866 | |
6233 | |
4867 | # Extract the first word of "tic", so it can be a program name with args. |
6234 | # Extract the first word of "tic", so it can be a program name with args. |
4868 | set dummy tic; ac_word=$2 |
6235 | set dummy tic; ac_word=$2 |
… | |
… | |
4889 | fi |
6256 | fi |
4890 | done |
6257 | done |
4891 | done |
6258 | done |
4892 | IFS=$as_save_IFS |
6259 | IFS=$as_save_IFS |
4893 | |
6260 | |
|
|
6261 | test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":" |
4894 | ;; |
6262 | ;; |
4895 | esac |
6263 | esac |
4896 | fi |
6264 | fi |
4897 | TIC=$ac_cv_path_TIC |
6265 | TIC=$ac_cv_path_TIC |
4898 | if test -n "$TIC"; then |
6266 | if test -n "$TIC"; then |
… | |
… | |
4901 | else |
6269 | else |
4902 | { echo "$as_me:$LINENO: result: no" >&5 |
6270 | { echo "$as_me:$LINENO: result: no" >&5 |
4903 | echo "${ECHO_T}no" >&6; } |
6271 | echo "${ECHO_T}no" >&6; } |
4904 | fi |
6272 | fi |
4905 | |
6273 | |
4906 | |
|
|
4907 | |
|
|
4908 | |
|
|
4909 | |
|
|
4910 | ac_ext=cpp |
|
|
4911 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
4912 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4913 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4914 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
4915 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
4916 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
|
|
4917 | if test -z "$CXXCPP"; then |
|
|
4918 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
|
4919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4920 | else |
|
|
4921 | # Double quotes because CXXCPP needs to be expanded |
|
|
4922 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
4923 | do |
|
|
4924 | ac_preproc_ok=false |
|
|
4925 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4926 | do |
|
|
4927 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4928 | # with a fresh cross-compiler works. |
|
|
4929 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4930 | # <limits.h> exists even on freestanding compilers. |
|
|
4931 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4932 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4933 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4934 | /* confdefs.h. */ |
|
|
4935 | _ACEOF |
|
|
4936 | cat confdefs.h >>conftest.$ac_ext |
|
|
4937 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4938 | /* end confdefs.h. */ |
|
|
4939 | #ifdef __STDC__ |
|
|
4940 | # include <limits.h> |
|
|
4941 | #else |
|
|
4942 | # include <assert.h> |
|
|
4943 | #endif |
|
|
4944 | Syntax error |
|
|
4945 | _ACEOF |
|
|
4946 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4947 | case "(($ac_try" in |
|
|
4948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4949 | *) ac_try_echo=$ac_try;; |
|
|
4950 | esac |
|
|
4951 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4952 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4953 | ac_status=$? |
|
|
4954 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4955 | rm -f conftest.er1 |
|
|
4956 | cat conftest.err >&5 |
|
|
4957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4958 | (exit $ac_status); } >/dev/null && { |
|
|
4959 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4960 | test ! -s conftest.err |
|
|
4961 | }; then |
|
|
4962 | : |
|
|
4963 | else |
|
|
4964 | echo "$as_me: failed program was:" >&5 |
|
|
4965 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4966 | |
|
|
4967 | # Broken: fails on valid input. |
|
|
4968 | continue |
|
|
4969 | fi |
|
|
4970 | |
|
|
4971 | rm -f conftest.err conftest.$ac_ext |
|
|
4972 | |
|
|
4973 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
4974 | # can be detected and how. |
|
|
4975 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4976 | /* confdefs.h. */ |
|
|
4977 | _ACEOF |
|
|
4978 | cat confdefs.h >>conftest.$ac_ext |
|
|
4979 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4980 | /* end confdefs.h. */ |
|
|
4981 | #include <ac_nonexistent.h> |
|
|
4982 | _ACEOF |
|
|
4983 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4984 | case "(($ac_try" in |
|
|
4985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4986 | *) ac_try_echo=$ac_try;; |
|
|
4987 | esac |
|
|
4988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4989 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4990 | ac_status=$? |
|
|
4991 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4992 | rm -f conftest.er1 |
|
|
4993 | cat conftest.err >&5 |
|
|
4994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4995 | (exit $ac_status); } >/dev/null && { |
|
|
4996 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4997 | test ! -s conftest.err |
|
|
4998 | }; then |
|
|
4999 | # Broken: success on invalid input. |
|
|
5000 | continue |
|
|
5001 | else |
|
|
5002 | echo "$as_me: failed program was:" >&5 |
|
|
5003 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5004 | |
|
|
5005 | # Passes both tests. |
|
|
5006 | ac_preproc_ok=: |
|
|
5007 | break |
|
|
5008 | fi |
|
|
5009 | |
|
|
5010 | rm -f conftest.err conftest.$ac_ext |
|
|
5011 | |
|
|
5012 | done |
|
|
5013 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5014 | rm -f conftest.err conftest.$ac_ext |
|
|
5015 | if $ac_preproc_ok; then |
|
|
5016 | break |
|
|
5017 | fi |
|
|
5018 | |
|
|
5019 | done |
|
|
5020 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5021 | |
|
|
5022 | fi |
|
|
5023 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
5024 | else |
|
|
5025 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5026 | fi |
|
|
5027 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
5028 | echo "${ECHO_T}$CXXCPP" >&6; } |
|
|
5029 | ac_preproc_ok=false |
|
|
5030 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
5031 | do |
|
|
5032 | # Use a header file that comes with gcc, so configuring glibc |
|
|
5033 | # with a fresh cross-compiler works. |
|
|
5034 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5035 | # <limits.h> exists even on freestanding compilers. |
|
|
5036 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
5037 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
5038 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5039 | /* confdefs.h. */ |
|
|
5040 | _ACEOF |
|
|
5041 | cat confdefs.h >>conftest.$ac_ext |
|
|
5042 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5043 | /* end confdefs.h. */ |
|
|
5044 | #ifdef __STDC__ |
|
|
5045 | # include <limits.h> |
|
|
5046 | #else |
|
|
5047 | # include <assert.h> |
|
|
5048 | #endif |
|
|
5049 | Syntax error |
|
|
5050 | _ACEOF |
|
|
5051 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5052 | case "(($ac_try" in |
|
|
5053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5054 | *) ac_try_echo=$ac_try;; |
|
|
5055 | esac |
|
|
5056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5057 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5058 | ac_status=$? |
|
|
5059 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5060 | rm -f conftest.er1 |
|
|
5061 | cat conftest.err >&5 |
|
|
5062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5063 | (exit $ac_status); } >/dev/null && { |
|
|
5064 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5065 | test ! -s conftest.err |
|
|
5066 | }; then |
|
|
5067 | : |
|
|
5068 | else |
|
|
5069 | echo "$as_me: failed program was:" >&5 |
|
|
5070 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5071 | |
|
|
5072 | # Broken: fails on valid input. |
|
|
5073 | continue |
|
|
5074 | fi |
|
|
5075 | |
|
|
5076 | rm -f conftest.err conftest.$ac_ext |
|
|
5077 | |
|
|
5078 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
5079 | # can be detected and how. |
|
|
5080 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5081 | /* confdefs.h. */ |
|
|
5082 | _ACEOF |
|
|
5083 | cat confdefs.h >>conftest.$ac_ext |
|
|
5084 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5085 | /* end confdefs.h. */ |
|
|
5086 | #include <ac_nonexistent.h> |
|
|
5087 | _ACEOF |
|
|
5088 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5089 | case "(($ac_try" in |
|
|
5090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5091 | *) ac_try_echo=$ac_try;; |
|
|
5092 | esac |
|
|
5093 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5094 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5095 | ac_status=$? |
|
|
5096 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5097 | rm -f conftest.er1 |
|
|
5098 | cat conftest.err >&5 |
|
|
5099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5100 | (exit $ac_status); } >/dev/null && { |
|
|
5101 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5102 | test ! -s conftest.err |
|
|
5103 | }; then |
|
|
5104 | # Broken: success on invalid input. |
|
|
5105 | continue |
|
|
5106 | else |
|
|
5107 | echo "$as_me: failed program was:" >&5 |
|
|
5108 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5109 | |
|
|
5110 | # Passes both tests. |
|
|
5111 | ac_preproc_ok=: |
|
|
5112 | break |
|
|
5113 | fi |
|
|
5114 | |
|
|
5115 | rm -f conftest.err conftest.$ac_ext |
|
|
5116 | |
|
|
5117 | done |
|
|
5118 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5119 | rm -f conftest.err conftest.$ac_ext |
|
|
5120 | if $ac_preproc_ok; then |
|
|
5121 | : |
|
|
5122 | else |
|
|
5123 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5124 | See \`config.log' for more details." >&5 |
|
|
5125 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5126 | See \`config.log' for more details." >&2;} |
|
|
5127 | { (exit 1); exit 1; }; } |
|
|
5128 | fi |
|
|
5129 | |
|
|
5130 | ac_ext=cpp |
|
|
5131 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5132 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5133 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5134 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
5135 | |
6274 | |
5136 | |
6275 | |
5137 | { echo "$as_me:$LINENO: checking for X" >&5 |
6276 | { echo "$as_me:$LINENO: checking for X" >&5 |
5138 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
6277 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
5139 | |
6278 | |
… | |
… | |
6445 | fi |
7584 | fi |
6446 | |
7585 | |
6447 | LDFLAGS=$ac_save_LDFLAGS |
7586 | LDFLAGS=$ac_save_LDFLAGS |
6448 | |
7587 | |
6449 | fi |
7588 | fi |
6450 | |
|
|
6451 | |
7589 | |
6452 | |
7590 | |
6453 | AFTERIMAGE_CFLAGS= |
7591 | AFTERIMAGE_CFLAGS= |
6454 | AFTERIMAGE_LIBS= |
7592 | AFTERIMAGE_LIBS= |
6455 | AFTERIMAGE_VERSION= |
7593 | AFTERIMAGE_VERSION= |
… | |
… | |
6526 | echo "${ECHO_T}no" >&6; } |
7664 | echo "${ECHO_T}no" >&6; } |
6527 | fi |
7665 | fi |
6528 | fi |
7666 | fi |
6529 | fi |
7667 | fi |
6530 | |
7668 | |
6531 | if test x$support_afterimage != xyes -a x$support_xpm = xyes ; then |
|
|
6532 | |
|
|
6533 | |
|
|
6534 | |
|
|
6535 | # Initialize some more variables set by options. |
|
|
6536 | # The variables have the same names as the options, with |
|
|
6537 | # dashes changed to underlines. |
|
|
6538 | |
|
|
6539 | # If we find XPM, set shell vars xpm_includes and xpm_libraries to the |
|
|
6540 | # paths, otherwise set no_xpm=yes. |
|
|
6541 | # Uses ac_ vars as temps to allow command line to override cache and checks. |
|
|
6542 | { echo "$as_me:$LINENO: checking for libXpm" >&5 |
|
|
6543 | echo $ECHO_N "checking for libXpm... $ECHO_C" >&6; } |
|
|
6544 | |
|
|
6545 | |
|
|
6546 | # Check whether --with-xpm_includes was given. |
|
|
6547 | if test "${with_xpm_includes+set}" = set; then |
|
|
6548 | withval=$with_xpm_includes; xpm_includes="$withval" |
|
|
6549 | else |
|
|
6550 | xpm_includes=NO |
|
|
6551 | fi |
|
|
6552 | |
|
|
6553 | |
|
|
6554 | # Check whether --with-xpm_library was given. |
|
|
6555 | if test "${with_xpm_library+set}" = set; then |
|
|
6556 | withval=$with_xpm_library; xpm_libraries="$withval" |
|
|
6557 | else |
|
|
6558 | xpm_libraries=NO |
|
|
6559 | fi |
|
|
6560 | |
|
|
6561 | |
|
|
6562 | # --without-xpm overrides everything else, but does not touch the cache. |
|
|
6563 | |
|
|
6564 | # Check whether --with-xpm was given. |
|
|
6565 | if test "${with_xpm+set}" = set; then |
|
|
6566 | withval=$with_xpm; |
|
|
6567 | fi |
|
|
6568 | |
|
|
6569 | if test "$with_xpm" = no; then |
|
|
6570 | have_xpm=disabled |
|
|
6571 | else |
|
|
6572 | if test "${ac_cv_have_xpm+set}" = set; then |
|
|
6573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6574 | else |
|
|
6575 | |
|
|
6576 | vt_xpm_include_X11=no |
|
|
6577 | if test -n "$xpm_includes"; then |
|
|
6578 | vt_xpm_includes=$xpm_includes |
|
|
6579 | else |
|
|
6580 | vt_xpm_includes=NO |
|
|
6581 | fi |
|
|
6582 | if test -n "$xpm_libraries"; then |
|
|
6583 | vt_xpm_libraries=$xpm_libraries |
|
|
6584 | else |
|
|
6585 | vt_xpm_libraries=NO |
|
|
6586 | fi |
|
|
6587 | |
|
|
6588 | if test "$vt_xpm_includes" = NO; then |
|
|
6589 | # Guess where to find xpm.h |
|
|
6590 | |
|
|
6591 | ac_save_CPPFLAGS="$CPPFLAGS" |
|
|
6592 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
|
|
6593 | |
|
|
6594 | # First, try using that file with no special directory specified. |
|
|
6595 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6596 | /* confdefs.h. */ |
|
|
6597 | _ACEOF |
|
|
6598 | cat confdefs.h >>conftest.$ac_ext |
|
|
6599 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6600 | /* end confdefs.h. */ |
|
|
6601 | #include <X11/xpm.h> |
|
|
6602 | _ACEOF |
|
|
6603 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
6604 | case "(($ac_try" in |
|
|
6605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6606 | *) ac_try_echo=$ac_try;; |
|
|
6607 | esac |
|
|
6608 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6609 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
6610 | ac_status=$? |
|
|
6611 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6612 | rm -f conftest.er1 |
|
|
6613 | cat conftest.err >&5 |
|
|
6614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6615 | (exit $ac_status); } >/dev/null && { |
|
|
6616 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
6617 | test ! -s conftest.err |
|
|
6618 | }; then |
|
|
6619 | # We can compile using X headers with no special include directory. |
|
|
6620 | vt_xpm_includes= |
|
|
6621 | vt_xpm_include_X11=yes |
|
|
6622 | else |
|
|
6623 | echo "$as_me: failed program was:" >&5 |
|
|
6624 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6625 | |
|
|
6626 | CPPFLAGS="$ac_save_CPPFLAGS" |
|
|
6627 | # Look for the header file in a standard set of common directories. |
|
|
6628 | for ac_dir in \ |
|
|
6629 | /usr/X11/include \ |
|
|
6630 | /usr/X11R6/include \ |
|
|
6631 | /usr/X11R5/include \ |
|
|
6632 | /usr/X11R4/include \ |
|
|
6633 | \ |
|
|
6634 | /usr/include/X11 \ |
|
|
6635 | /usr/include/X11R6 \ |
|
|
6636 | /usr/include/X11R5 \ |
|
|
6637 | /usr/include/X11R4 \ |
|
|
6638 | \ |
|
|
6639 | /usr/local/X11/include \ |
|
|
6640 | /usr/local/X11R6/include \ |
|
|
6641 | /usr/local/X11R5/include \ |
|
|
6642 | /usr/local/X11R4/include \ |
|
|
6643 | \ |
|
|
6644 | /usr/local/include/X11 \ |
|
|
6645 | /usr/local/include/X11R6 \ |
|
|
6646 | /usr/local/include/X11R5 \ |
|
|
6647 | /usr/local/include/X11R4 \ |
|
|
6648 | \ |
|
|
6649 | /usr/X386/include \ |
|
|
6650 | /usr/x386/include \ |
|
|
6651 | /usr/XFree86/include/X11 \ |
|
|
6652 | \ |
|
|
6653 | /usr/include \ |
|
|
6654 | /usr/local/include \ |
|
|
6655 | /usr/unsupported/include \ |
|
|
6656 | /usr/athena/include \ |
|
|
6657 | /usr/local/x11r5/include \ |
|
|
6658 | /usr/lpp/Xamples/include \ |
|
|
6659 | \ |
|
|
6660 | /usr/openwin/include \ |
|
|
6661 | /usr/openwin/share/include \ |
|
|
6662 | ; \ |
|
|
6663 | do |
|
|
6664 | if test -r "$ac_dir/X11/xpm.h"; then |
|
|
6665 | vt_xpm_includes="$ac_dir" |
|
|
6666 | vt_xpm_include_X11=yes |
|
|
6667 | break |
|
|
6668 | else |
|
|
6669 | if test -r "$ac_dir/xpm.h"; then |
|
|
6670 | vt_xpm_includes=$ac_dir |
|
|
6671 | break |
|
|
6672 | fi |
|
|
6673 | fi |
|
|
6674 | done |
|
|
6675 | fi |
|
|
6676 | |
|
|
6677 | rm -f conftest.err conftest.$ac_ext |
|
|
6678 | fi |
|
|
6679 | |
|
|
6680 | if test "$vt_xpm_libraries" = NO; then |
|
|
6681 | # Check for the libraries. |
|
|
6682 | |
|
|
6683 | # See if we find them without any special options. |
|
|
6684 | # Don't add to $LIBS permanently. |
|
|
6685 | ac_save_LIBS="$LIBS" |
|
|
6686 | LIBS="$LIBS $X_LIBS -lXpm -lX11" |
|
|
6687 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6688 | /* confdefs.h. */ |
|
|
6689 | _ACEOF |
|
|
6690 | cat confdefs.h >>conftest.$ac_ext |
|
|
6691 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6692 | /* end confdefs.h. */ |
|
|
6693 | |
|
|
6694 | int |
|
|
6695 | main () |
|
|
6696 | { |
|
|
6697 | XpmReadFileToPixmap() |
|
|
6698 | ; |
|
|
6699 | return 0; |
|
|
6700 | } |
|
|
6701 | _ACEOF |
|
|
6702 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6703 | if { (ac_try="$ac_link" |
|
|
6704 | case "(($ac_try" in |
|
|
6705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6706 | *) ac_try_echo=$ac_try;; |
|
|
6707 | esac |
|
|
6708 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6709 | (eval "$ac_link") 2>conftest.er1 |
|
|
6710 | ac_status=$? |
|
|
6711 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6712 | rm -f conftest.er1 |
|
|
6713 | cat conftest.err >&5 |
|
|
6714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6715 | (exit $ac_status); } && { |
|
|
6716 | test -z "$ac_cxx_werror_flag" || |
|
|
6717 | test ! -s conftest.err |
|
|
6718 | } && test -s conftest$ac_exeext && |
|
|
6719 | $as_test_x conftest$ac_exeext; then |
|
|
6720 | LIBS="$ac_save_LIBS" |
|
|
6721 | # We can link libXpm with no special library path. |
|
|
6722 | vt_xpm_libraries= |
|
|
6723 | else |
|
|
6724 | echo "$as_me: failed program was:" >&5 |
|
|
6725 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6726 | |
|
|
6727 | LIBS="$ac_save_LIBS" |
|
|
6728 | # First see if replacing the include by lib works. |
|
|
6729 | for ac_dir in \ |
|
|
6730 | `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \ |
|
|
6731 | /usr/X11/lib \ |
|
|
6732 | /usr/X11R6/lib \ |
|
|
6733 | /usr/X11R5/lib \ |
|
|
6734 | /usr/X11R4/lib \ |
|
|
6735 | \ |
|
|
6736 | /usr/lib/X11 \ |
|
|
6737 | /usr/lib/X11R6 \ |
|
|
6738 | /usr/lib/X11R5 \ |
|
|
6739 | /usr/lib/X11R4 \ |
|
|
6740 | \ |
|
|
6741 | /usr/local/X11/lib \ |
|
|
6742 | /usr/local/X11R6/lib \ |
|
|
6743 | /usr/local/X11R5/lib \ |
|
|
6744 | /usr/local/X11R4/lib \ |
|
|
6745 | \ |
|
|
6746 | /usr/local/lib/X11 \ |
|
|
6747 | /usr/local/lib/X11R6 \ |
|
|
6748 | /usr/local/lib/X11R5 \ |
|
|
6749 | /usr/local/lib/X11R4 \ |
|
|
6750 | \ |
|
|
6751 | /usr/X386/lib \ |
|
|
6752 | /usr/x386/lib \ |
|
|
6753 | /usr/XFree86/lib/X11 \ |
|
|
6754 | \ |
|
|
6755 | /usr/lib \ |
|
|
6756 | /usr/local/lib \ |
|
|
6757 | /usr/unsupported/lib \ |
|
|
6758 | /usr/athena/lib \ |
|
|
6759 | /usr/local/x11r5/lib \ |
|
|
6760 | /usr/lpp/Xamples/lib \ |
|
|
6761 | \ |
|
|
6762 | /usr/openwin/lib \ |
|
|
6763 | /usr/openwin/share/lib \ |
|
|
6764 | ; \ |
|
|
6765 | do |
|
|
6766 | for ac_extension in a so sl; do |
|
|
6767 | if test -r $ac_dir/libXpm.$ac_extension; then |
|
|
6768 | vt_xpm_libraries=$ac_dir |
|
|
6769 | break 2 |
|
|
6770 | fi |
|
|
6771 | done |
|
|
6772 | done |
|
|
6773 | fi |
|
|
6774 | |
|
|
6775 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6776 | conftest$ac_exeext conftest.$ac_ext |
|
|
6777 | fi |
|
|
6778 | |
|
|
6779 | |
|
|
6780 | if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then |
|
|
6781 | ac_cv_have_xpm="have_xpm=no" |
|
|
6782 | else |
|
|
6783 | ac_cv_have_xpm="have_xpm=yes \ |
|
|
6784 | vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \ |
|
|
6785 | vt_xpm_include_X11=$vt_xpm_include_X11" |
|
|
6786 | fi |
|
|
6787 | fi |
|
|
6788 | eval "$ac_cv_have_xpm" |
|
|
6789 | fi |
|
|
6790 | |
|
|
6791 | if test "$have_xpm" != yes; then |
|
|
6792 | { echo "$as_me:$LINENO: result: $have_xpm" >&5 |
|
|
6793 | echo "${ECHO_T}$have_xpm" >&6; } |
|
|
6794 | no_xpm=yes |
|
|
6795 | else |
|
|
6796 | if test "$xpm_includes" != NO; then |
|
|
6797 | if test "$xpm_includes" = "$vt_xpm_includes"; then |
|
|
6798 | if test -r "$xpm_includes/X11/xpm.h"; then |
|
|
6799 | vt_xpm_include_X11=yes |
|
|
6800 | fi |
|
|
6801 | else |
|
|
6802 | vt_xpm_include_X11=no |
|
|
6803 | if test -z "$xpm_includes"; then |
|
|
6804 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6805 | /* confdefs.h. */ |
|
|
6806 | _ACEOF |
|
|
6807 | cat confdefs.h >>conftest.$ac_ext |
|
|
6808 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6809 | /* end confdefs.h. */ |
|
|
6810 | #include <X11/xpm.h> |
|
|
6811 | _ACEOF |
|
|
6812 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
6813 | case "(($ac_try" in |
|
|
6814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6815 | *) ac_try_echo=$ac_try;; |
|
|
6816 | esac |
|
|
6817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6818 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
6819 | ac_status=$? |
|
|
6820 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6821 | rm -f conftest.er1 |
|
|
6822 | cat conftest.err >&5 |
|
|
6823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6824 | (exit $ac_status); } >/dev/null && { |
|
|
6825 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
6826 | test ! -s conftest.err |
|
|
6827 | }; then |
|
|
6828 | vt_xpm_include_X11=yes |
|
|
6829 | else |
|
|
6830 | echo "$as_me: failed program was:" >&5 |
|
|
6831 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6832 | |
|
|
6833 | |
|
|
6834 | fi |
|
|
6835 | |
|
|
6836 | rm -f conftest.err conftest.$ac_ext |
|
|
6837 | else |
|
|
6838 | if test -r "$xpm_includes/X11/xpm.h"; then |
|
|
6839 | vt_xpm_include_X11=yes |
|
|
6840 | fi |
|
|
6841 | fi |
|
|
6842 | fi |
|
|
6843 | vt_xpm_includes=$xpm_includes |
|
|
6844 | fi |
|
|
6845 | if test "x$xpm_libraries" != xNO; then |
|
|
6846 | vt_xpm_libraries=$xpm_libraries |
|
|
6847 | fi |
|
|
6848 | # Update the cache value to reflect the command line values. |
|
|
6849 | ac_cv_have_xpm="have_xpm=yes \ |
|
|
6850 | vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \ |
|
|
6851 | vt_xpm_include_X11=$vt_xpm_include_X11" |
|
|
6852 | eval "$ac_cv_have_xpm" |
|
|
6853 | { echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5 |
|
|
6854 | echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6; } |
|
|
6855 | if test -n "$vt_xpm_includes"; then |
|
|
6856 | XPM_CPPFLAGS="-DHAVE_LIBXPM" |
|
|
6857 | fi |
|
|
6858 | if test -n "$vt_xpm_includes"; then |
|
|
6859 | XPM_CFLAGS="-I$vt_xpm_includes" |
|
|
6860 | fi |
|
|
6861 | XPM_LIBS="-lXpm" |
|
|
6862 | if test -n "$vt_xpm_libraries"; then |
|
|
6863 | XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS" |
|
|
6864 | fi |
|
|
6865 | if test "x$vt_xpm_include_X11" = xyes; then |
|
|
6866 | |
|
|
6867 | cat >>confdefs.h <<\_ACEOF |
|
|
6868 | #define XPM_INC_X11 1 |
|
|
6869 | _ACEOF |
|
|
6870 | |
|
|
6871 | fi |
|
|
6872 | fi |
|
|
6873 | |
|
|
6874 | |
|
|
6875 | |
|
|
6876 | |
|
|
6877 | |
|
|
6878 | if test x$no_xpm = xyes; then |
|
|
6879 | support_xpm=needsmanualspecification |
|
|
6880 | fi |
|
|
6881 | fi |
|
|
6882 | |
|
|
6883 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
|
|
6884 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
|
|
6885 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
|
|
6886 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6887 | else |
|
|
6888 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6889 | /* confdefs.h. */ |
|
|
6890 | _ACEOF |
|
|
6891 | cat confdefs.h >>conftest.$ac_ext |
|
|
6892 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6893 | /* end confdefs.h. */ |
|
|
6894 | #include <sys/types.h> |
|
|
6895 | #include <sys/wait.h> |
|
|
6896 | #ifndef WEXITSTATUS |
|
|
6897 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
|
|
6898 | #endif |
|
|
6899 | #ifndef WIFEXITED |
|
|
6900 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
|
|
6901 | #endif |
|
|
6902 | |
|
|
6903 | int |
|
|
6904 | main () |
|
|
6905 | { |
|
|
6906 | int s; |
|
|
6907 | wait (&s); |
|
|
6908 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
|
|
6909 | ; |
|
|
6910 | return 0; |
|
|
6911 | } |
|
|
6912 | _ACEOF |
|
|
6913 | rm -f conftest.$ac_objext |
|
|
6914 | if { (ac_try="$ac_compile" |
|
|
6915 | case "(($ac_try" in |
|
|
6916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6917 | *) ac_try_echo=$ac_try;; |
|
|
6918 | esac |
|
|
6919 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6920 | (eval "$ac_compile") 2>conftest.er1 |
|
|
6921 | ac_status=$? |
|
|
6922 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6923 | rm -f conftest.er1 |
|
|
6924 | cat conftest.err >&5 |
|
|
6925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6926 | (exit $ac_status); } && { |
|
|
6927 | test -z "$ac_cxx_werror_flag" || |
|
|
6928 | test ! -s conftest.err |
|
|
6929 | } && test -s conftest.$ac_objext; then |
|
|
6930 | ac_cv_header_sys_wait_h=yes |
|
|
6931 | else |
|
|
6932 | echo "$as_me: failed program was:" >&5 |
|
|
6933 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6934 | |
|
|
6935 | ac_cv_header_sys_wait_h=no |
|
|
6936 | fi |
|
|
6937 | |
|
|
6938 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6939 | fi |
|
|
6940 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
|
|
6941 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
|
|
6942 | if test $ac_cv_header_sys_wait_h = yes; then |
|
|
6943 | |
|
|
6944 | cat >>confdefs.h <<\_ACEOF |
|
|
6945 | #define HAVE_SYS_WAIT_H 1 |
|
|
6946 | _ACEOF |
|
|
6947 | |
|
|
6948 | fi |
|
|
6949 | |
|
|
6950 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
6951 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
|
|
6952 | if test "${ac_cv_header_stdc+set}" = set; then |
|
|
6953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6954 | else |
|
|
6955 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6956 | /* confdefs.h. */ |
|
|
6957 | _ACEOF |
|
|
6958 | cat confdefs.h >>conftest.$ac_ext |
|
|
6959 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6960 | /* end confdefs.h. */ |
|
|
6961 | #include <stdlib.h> |
|
|
6962 | #include <stdarg.h> |
|
|
6963 | #include <string.h> |
|
|
6964 | #include <float.h> |
|
|
6965 | |
|
|
6966 | int |
|
|
6967 | main () |
|
|
6968 | { |
|
|
6969 | |
|
|
6970 | ; |
|
|
6971 | return 0; |
|
|
6972 | } |
|
|
6973 | _ACEOF |
|
|
6974 | rm -f conftest.$ac_objext |
|
|
6975 | if { (ac_try="$ac_compile" |
|
|
6976 | case "(($ac_try" in |
|
|
6977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6978 | *) ac_try_echo=$ac_try;; |
|
|
6979 | esac |
|
|
6980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6981 | (eval "$ac_compile") 2>conftest.er1 |
|
|
6982 | ac_status=$? |
|
|
6983 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6984 | rm -f conftest.er1 |
|
|
6985 | cat conftest.err >&5 |
|
|
6986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6987 | (exit $ac_status); } && { |
|
|
6988 | test -z "$ac_cxx_werror_flag" || |
|
|
6989 | test ! -s conftest.err |
|
|
6990 | } && test -s conftest.$ac_objext; then |
|
|
6991 | ac_cv_header_stdc=yes |
|
|
6992 | else |
|
|
6993 | echo "$as_me: failed program was:" >&5 |
|
|
6994 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6995 | |
|
|
6996 | ac_cv_header_stdc=no |
|
|
6997 | fi |
|
|
6998 | |
|
|
6999 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7000 | |
|
|
7001 | if test $ac_cv_header_stdc = yes; then |
|
|
7002 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
7003 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7004 | /* confdefs.h. */ |
|
|
7005 | _ACEOF |
|
|
7006 | cat confdefs.h >>conftest.$ac_ext |
|
|
7007 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7008 | /* end confdefs.h. */ |
|
|
7009 | #include <string.h> |
|
|
7010 | |
|
|
7011 | _ACEOF |
|
|
7012 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
7013 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
7014 | : |
|
|
7015 | else |
|
|
7016 | ac_cv_header_stdc=no |
|
|
7017 | fi |
|
|
7018 | rm -f conftest* |
|
|
7019 | |
|
|
7020 | fi |
|
|
7021 | |
|
|
7022 | if test $ac_cv_header_stdc = yes; then |
|
|
7023 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
7024 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7025 | /* confdefs.h. */ |
|
|
7026 | _ACEOF |
|
|
7027 | cat confdefs.h >>conftest.$ac_ext |
|
|
7028 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7029 | /* end confdefs.h. */ |
|
|
7030 | #include <stdlib.h> |
|
|
7031 | |
|
|
7032 | _ACEOF |
|
|
7033 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
7034 | $EGREP "free" >/dev/null 2>&1; then |
|
|
7035 | : |
|
|
7036 | else |
|
|
7037 | ac_cv_header_stdc=no |
|
|
7038 | fi |
|
|
7039 | rm -f conftest* |
|
|
7040 | |
|
|
7041 | fi |
|
|
7042 | |
|
|
7043 | if test $ac_cv_header_stdc = yes; then |
|
|
7044 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
7045 | if test "$cross_compiling" = yes; then |
|
|
7046 | : |
|
|
7047 | else |
|
|
7048 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7049 | /* confdefs.h. */ |
|
|
7050 | _ACEOF |
|
|
7051 | cat confdefs.h >>conftest.$ac_ext |
|
|
7052 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7053 | /* end confdefs.h. */ |
|
|
7054 | #include <ctype.h> |
|
|
7055 | #include <stdlib.h> |
|
|
7056 | #if ((' ' & 0x0FF) == 0x020) |
|
|
7057 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
7058 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
7059 | #else |
|
|
7060 | # define ISLOWER(c) \ |
|
|
7061 | (('a' <= (c) && (c) <= 'i') \ |
|
|
7062 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
7063 | || ('s' <= (c) && (c) <= 'z')) |
|
|
7064 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
7065 | #endif |
|
|
7066 | |
|
|
7067 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
7068 | int |
|
|
7069 | main () |
|
|
7070 | { |
|
|
7071 | int i; |
|
|
7072 | for (i = 0; i < 256; i++) |
|
|
7073 | if (XOR (islower (i), ISLOWER (i)) |
|
|
7074 | || toupper (i) != TOUPPER (i)) |
|
|
7075 | return 2; |
|
|
7076 | return 0; |
|
|
7077 | } |
|
|
7078 | _ACEOF |
|
|
7079 | rm -f conftest$ac_exeext |
|
|
7080 | if { (ac_try="$ac_link" |
|
|
7081 | case "(($ac_try" in |
|
|
7082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7083 | *) ac_try_echo=$ac_try;; |
|
|
7084 | esac |
|
|
7085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7086 | (eval "$ac_link") 2>&5 |
|
|
7087 | ac_status=$? |
|
|
7088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7089 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
7090 | { (case "(($ac_try" in |
|
|
7091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7092 | *) ac_try_echo=$ac_try;; |
|
|
7093 | esac |
|
|
7094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7095 | (eval "$ac_try") 2>&5 |
|
|
7096 | ac_status=$? |
|
|
7097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7098 | (exit $ac_status); }; }; then |
|
|
7099 | : |
|
|
7100 | else |
|
|
7101 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
7102 | echo "$as_me: failed program was:" >&5 |
|
|
7103 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7104 | |
|
|
7105 | ( exit $ac_status ) |
|
|
7106 | ac_cv_header_stdc=no |
|
|
7107 | fi |
|
|
7108 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
7109 | fi |
|
|
7110 | |
|
|
7111 | |
|
|
7112 | fi |
|
|
7113 | fi |
|
|
7114 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
7115 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
|
|
7116 | if test $ac_cv_header_stdc = yes; then |
|
|
7117 | |
|
|
7118 | cat >>confdefs.h <<\_ACEOF |
|
|
7119 | #define STDC_HEADERS 1 |
|
|
7120 | _ACEOF |
|
|
7121 | |
|
|
7122 | fi |
|
|
7123 | |
|
|
7124 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
7125 | |
|
|
7126 | |
|
|
7127 | |
|
|
7128 | |
|
|
7129 | |
|
|
7130 | |
|
|
7131 | |
|
|
7132 | |
|
|
7133 | |
|
|
7134 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
7135 | inttypes.h stdint.h unistd.h |
|
|
7136 | do |
|
|
7137 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
7138 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
7139 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
7140 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
7141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7142 | else |
|
|
7143 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7144 | /* confdefs.h. */ |
|
|
7145 | _ACEOF |
|
|
7146 | cat confdefs.h >>conftest.$ac_ext |
|
|
7147 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7148 | /* end confdefs.h. */ |
|
|
7149 | $ac_includes_default |
|
|
7150 | |
|
|
7151 | #include <$ac_header> |
|
|
7152 | _ACEOF |
|
|
7153 | rm -f conftest.$ac_objext |
|
|
7154 | if { (ac_try="$ac_compile" |
|
|
7155 | case "(($ac_try" in |
|
|
7156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7157 | *) ac_try_echo=$ac_try;; |
|
|
7158 | esac |
|
|
7159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7160 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7161 | ac_status=$? |
|
|
7162 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7163 | rm -f conftest.er1 |
|
|
7164 | cat conftest.err >&5 |
|
|
7165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7166 | (exit $ac_status); } && { |
|
|
7167 | test -z "$ac_cxx_werror_flag" || |
|
|
7168 | test ! -s conftest.err |
|
|
7169 | } && test -s conftest.$ac_objext; then |
|
|
7170 | eval "$as_ac_Header=yes" |
|
|
7171 | else |
|
|
7172 | echo "$as_me: failed program was:" >&5 |
|
|
7173 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7174 | |
|
|
7175 | eval "$as_ac_Header=no" |
|
|
7176 | fi |
|
|
7177 | |
|
|
7178 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7179 | fi |
|
|
7180 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
7181 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
7182 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
7183 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
7184 | cat >>confdefs.h <<_ACEOF |
|
|
7185 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
7186 | _ACEOF |
|
|
7187 | |
|
|
7188 | fi |
|
|
7189 | |
|
|
7190 | done |
|
|
7191 | |
|
|
7192 | |
|
|
7193 | |
|
|
7194 | |
|
|
7195 | |
|
|
7196 | |
|
|
7197 | |
|
|
7198 | |
|
|
7199 | |
|
|
7200 | |
|
|
7201 | |
|
|
7202 | |
|
|
7203 | |
7669 | |
7204 | |
7670 | |
7205 | |
7671 | |
7206 | |
7672 | |
7207 | |
7673 | |
7208 | |
7674 | |
7209 | |
7675 | |
7210 | for ac_header in \ |
7676 | for ac_header in \ |
7211 | assert.h \ |
|
|
7212 | fcntl.h \ |
|
|
7213 | stdarg.h \ |
|
|
7214 | stdlib.h \ |
|
|
7215 | string.h \ |
|
|
7216 | termios.h \ |
|
|
7217 | unistd.h \ |
|
|
7218 | sys/byteorder.h \ |
7677 | sys/byteorder.h \ |
7219 | sys/ioctl.h \ |
7678 | sys/ioctl.h \ |
7220 | sys/select.h \ |
|
|
7221 | sys/sockio.h \ |
7679 | sys/sockio.h \ |
7222 | sys/strredir.h \ |
7680 | sys/strredir.h \ |
7223 | sys/time.h \ |
|
|
7224 | stdint.h \ |
7681 | stdint.h \ |
7225 | wchar.h \ |
7682 | wchar.h \ |
7226 | cwchar \ |
7683 | cwchar \ |
7227 | clocale \ |
|
|
7228 | |
7684 | |
7229 | do |
7685 | do |
7230 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7686 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7231 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7687 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7232 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7688 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
… | |
… | |
7363 | fi |
7819 | fi |
7364 | |
7820 | |
7365 | done |
7821 | done |
7366 | |
7822 | |
7367 | |
7823 | |
7368 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
|
|
7369 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
|
|
7370 | if test "${ac_cv_header_time+set}" = set; then |
|
|
7371 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7372 | else |
|
|
7373 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7374 | /* confdefs.h. */ |
|
|
7375 | _ACEOF |
|
|
7376 | cat confdefs.h >>conftest.$ac_ext |
|
|
7377 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7378 | /* end confdefs.h. */ |
|
|
7379 | #include <sys/types.h> |
|
|
7380 | #include <sys/time.h> |
|
|
7381 | #include <time.h> |
|
|
7382 | |
|
|
7383 | int |
|
|
7384 | main () |
|
|
7385 | { |
|
|
7386 | if ((struct tm *) 0) |
|
|
7387 | return 0; |
|
|
7388 | ; |
|
|
7389 | return 0; |
|
|
7390 | } |
|
|
7391 | _ACEOF |
|
|
7392 | rm -f conftest.$ac_objext |
|
|
7393 | if { (ac_try="$ac_compile" |
|
|
7394 | case "(($ac_try" in |
|
|
7395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7396 | *) ac_try_echo=$ac_try;; |
|
|
7397 | esac |
|
|
7398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7399 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7400 | ac_status=$? |
|
|
7401 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7402 | rm -f conftest.er1 |
|
|
7403 | cat conftest.err >&5 |
|
|
7404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7405 | (exit $ac_status); } && { |
|
|
7406 | test -z "$ac_cxx_werror_flag" || |
|
|
7407 | test ! -s conftest.err |
|
|
7408 | } && test -s conftest.$ac_objext; then |
|
|
7409 | ac_cv_header_time=yes |
|
|
7410 | else |
|
|
7411 | echo "$as_me: failed program was:" >&5 |
|
|
7412 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7413 | |
|
|
7414 | ac_cv_header_time=no |
|
|
7415 | fi |
|
|
7416 | |
|
|
7417 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7418 | fi |
|
|
7419 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
|
|
7420 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
|
|
7421 | if test $ac_cv_header_time = yes; then |
|
|
7422 | |
|
|
7423 | cat >>confdefs.h <<\_ACEOF |
|
|
7424 | #define TIME_WITH_SYS_TIME 1 |
|
|
7425 | _ACEOF |
|
|
7426 | |
|
|
7427 | fi |
|
|
7428 | |
|
|
7429 | |
|
|
7430 | { echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5 |
|
|
7431 | echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; } |
|
|
7432 | if test "${rxvt_cv_header_sysioctl+set}" = set; then |
|
|
7433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7434 | else |
|
|
7435 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7436 | /* confdefs.h. */ |
|
|
7437 | _ACEOF |
|
|
7438 | cat confdefs.h >>conftest.$ac_ext |
|
|
7439 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7440 | /* end confdefs.h. */ |
|
|
7441 | #include <stdio.h> |
|
|
7442 | #include <sys/ioctl.h> |
|
|
7443 | #ifdef HAVE_TERMIOS_H |
|
|
7444 | #include <termios.h> |
|
|
7445 | #endif |
|
|
7446 | int |
|
|
7447 | main () |
|
|
7448 | { |
|
|
7449 | int a = ECHO; |
|
|
7450 | ; |
|
|
7451 | return 0; |
|
|
7452 | } |
|
|
7453 | _ACEOF |
|
|
7454 | rm -f conftest.$ac_objext |
|
|
7455 | if { (ac_try="$ac_compile" |
|
|
7456 | case "(($ac_try" in |
|
|
7457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7458 | *) ac_try_echo=$ac_try;; |
|
|
7459 | esac |
|
|
7460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7461 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7462 | ac_status=$? |
|
|
7463 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7464 | rm -f conftest.er1 |
|
|
7465 | cat conftest.err >&5 |
|
|
7466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7467 | (exit $ac_status); } && { |
|
|
7468 | test -z "$ac_cxx_werror_flag" || |
|
|
7469 | test ! -s conftest.err |
|
|
7470 | } && test -s conftest.$ac_objext; then |
|
|
7471 | rxvt_cv_header_sysioctl=yes |
|
|
7472 | else |
|
|
7473 | echo "$as_me: failed program was:" >&5 |
|
|
7474 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7475 | |
|
|
7476 | rxvt_cv_header_sysioctl=no |
|
|
7477 | fi |
|
|
7478 | |
|
|
7479 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7480 | fi |
|
|
7481 | { echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5 |
|
|
7482 | echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6; } |
|
|
7483 | |
|
|
7484 | { echo "$as_me:$LINENO: checking for XPointer" >&5 |
7824 | { echo "$as_me:$LINENO: checking for XPointer" >&5 |
7485 | echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } |
7825 | echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } |
7486 | if test "${rxvt_cv_xpointer+set}" = set; then |
7826 | if test "${rxvt_cv_xpointer+set}" = set; then |
7487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7488 | else |
7828 | else |
… | |
… | |
7599 | cat >>confdefs.h <<\_ACEOF |
7939 | cat >>confdefs.h <<\_ACEOF |
7600 | #define XLIB_ILLEGAL_ACCESS 1 |
7940 | #define XLIB_ILLEGAL_ACCESS 1 |
7601 | _ACEOF |
7941 | _ACEOF |
7602 | |
7942 | |
7603 | fi |
7943 | fi |
7604 | |
|
|
7605 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
|
|
7606 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
|
|
7607 | if test "${ac_cv_c_const+set}" = set; then |
|
|
7608 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7609 | else |
|
|
7610 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7611 | /* confdefs.h. */ |
|
|
7612 | _ACEOF |
|
|
7613 | cat confdefs.h >>conftest.$ac_ext |
|
|
7614 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7615 | /* end confdefs.h. */ |
|
|
7616 | |
|
|
7617 | int |
|
|
7618 | main () |
|
|
7619 | { |
|
|
7620 | /* FIXME: Include the comments suggested by Paul. */ |
|
|
7621 | #ifndef __cplusplus |
|
|
7622 | /* Ultrix mips cc rejects this. */ |
|
|
7623 | typedef int charset[2]; |
|
|
7624 | const charset cs; |
|
|
7625 | /* SunOS 4.1.1 cc rejects this. */ |
|
|
7626 | char const *const *pcpcc; |
|
|
7627 | char **ppc; |
|
|
7628 | /* NEC SVR4.0.2 mips cc rejects this. */ |
|
|
7629 | struct point {int x, y;}; |
|
|
7630 | static struct point const zero = {0,0}; |
|
|
7631 | /* AIX XL C 1.02.0.0 rejects this. |
|
|
7632 | It does not let you subtract one const X* pointer from another in |
|
|
7633 | an arm of an if-expression whose if-part is not a constant |
|
|
7634 | expression */ |
|
|
7635 | const char *g = "string"; |
|
|
7636 | pcpcc = &g + (g ? g-g : 0); |
|
|
7637 | /* HPUX 7.0 cc rejects these. */ |
|
|
7638 | ++pcpcc; |
|
|
7639 | ppc = (char**) pcpcc; |
|
|
7640 | pcpcc = (char const *const *) ppc; |
|
|
7641 | { /* SCO 3.2v4 cc rejects this. */ |
|
|
7642 | char *t; |
|
|
7643 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
|
|
7644 | |
|
|
7645 | *t++ = 0; |
|
|
7646 | if (s) return 0; |
|
|
7647 | } |
|
|
7648 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
|
|
7649 | int x[] = {25, 17}; |
|
|
7650 | const int *foo = &x[0]; |
|
|
7651 | ++foo; |
|
|
7652 | } |
|
|
7653 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
|
|
7654 | typedef const int *iptr; |
|
|
7655 | iptr p = 0; |
|
|
7656 | ++p; |
|
|
7657 | } |
|
|
7658 | { /* AIX XL C 1.02.0.0 rejects this saying |
|
|
7659 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
|
|
7660 | struct s { int j; const int *ap[3]; }; |
|
|
7661 | struct s *b; b->j = 5; |
|
|
7662 | } |
|
|
7663 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
|
|
7664 | const int foo = 10; |
|
|
7665 | if (!foo) return 0; |
|
|
7666 | } |
|
|
7667 | return !cs[0] && !zero.x; |
|
|
7668 | #endif |
|
|
7669 | |
|
|
7670 | ; |
|
|
7671 | return 0; |
|
|
7672 | } |
|
|
7673 | _ACEOF |
|
|
7674 | rm -f conftest.$ac_objext |
|
|
7675 | if { (ac_try="$ac_compile" |
|
|
7676 | case "(($ac_try" in |
|
|
7677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7678 | *) ac_try_echo=$ac_try;; |
|
|
7679 | esac |
|
|
7680 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7681 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7682 | ac_status=$? |
|
|
7683 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7684 | rm -f conftest.er1 |
|
|
7685 | cat conftest.err >&5 |
|
|
7686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7687 | (exit $ac_status); } && { |
|
|
7688 | test -z "$ac_cxx_werror_flag" || |
|
|
7689 | test ! -s conftest.err |
|
|
7690 | } && test -s conftest.$ac_objext; then |
|
|
7691 | ac_cv_c_const=yes |
|
|
7692 | else |
|
|
7693 | echo "$as_me: failed program was:" >&5 |
|
|
7694 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7695 | |
|
|
7696 | ac_cv_c_const=no |
|
|
7697 | fi |
|
|
7698 | |
|
|
7699 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7700 | fi |
|
|
7701 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
|
|
7702 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
|
|
7703 | if test $ac_cv_c_const = no; then |
|
|
7704 | |
|
|
7705 | cat >>confdefs.h <<\_ACEOF |
|
|
7706 | #define const |
|
|
7707 | _ACEOF |
|
|
7708 | |
|
|
7709 | fi |
|
|
7710 | |
|
|
7711 | { echo "$as_me:$LINENO: checking for inline" >&5 |
|
|
7712 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
|
|
7713 | if test "${ac_cv_c_inline+set}" = set; then |
|
|
7714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7715 | else |
|
|
7716 | ac_cv_c_inline=no |
|
|
7717 | for ac_kw in inline __inline__ __inline; do |
|
|
7718 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7719 | /* confdefs.h. */ |
|
|
7720 | _ACEOF |
|
|
7721 | cat confdefs.h >>conftest.$ac_ext |
|
|
7722 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7723 | /* end confdefs.h. */ |
|
|
7724 | #ifndef __cplusplus |
|
|
7725 | typedef int foo_t; |
|
|
7726 | static $ac_kw foo_t static_foo () {return 0; } |
|
|
7727 | $ac_kw foo_t foo () {return 0; } |
|
|
7728 | #endif |
|
|
7729 | |
|
|
7730 | _ACEOF |
|
|
7731 | rm -f conftest.$ac_objext |
|
|
7732 | if { (ac_try="$ac_compile" |
|
|
7733 | case "(($ac_try" in |
|
|
7734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7735 | *) ac_try_echo=$ac_try;; |
|
|
7736 | esac |
|
|
7737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7738 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7739 | ac_status=$? |
|
|
7740 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7741 | rm -f conftest.er1 |
|
|
7742 | cat conftest.err >&5 |
|
|
7743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7744 | (exit $ac_status); } && { |
|
|
7745 | test -z "$ac_cxx_werror_flag" || |
|
|
7746 | test ! -s conftest.err |
|
|
7747 | } && test -s conftest.$ac_objext; then |
|
|
7748 | ac_cv_c_inline=$ac_kw |
|
|
7749 | else |
|
|
7750 | echo "$as_me: failed program was:" >&5 |
|
|
7751 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7752 | |
|
|
7753 | |
|
|
7754 | fi |
|
|
7755 | |
|
|
7756 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7757 | test "$ac_cv_c_inline" != no && break |
|
|
7758 | done |
|
|
7759 | |
|
|
7760 | fi |
|
|
7761 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
|
|
7762 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
|
|
7763 | |
|
|
7764 | |
|
|
7765 | case $ac_cv_c_inline in |
|
|
7766 | inline | yes) ;; |
|
|
7767 | *) |
|
|
7768 | case $ac_cv_c_inline in |
|
|
7769 | no) ac_val=;; |
|
|
7770 | *) ac_val=$ac_cv_c_inline;; |
|
|
7771 | esac |
|
|
7772 | cat >>confdefs.h <<_ACEOF |
|
|
7773 | #ifndef __cplusplus |
|
|
7774 | #define inline $ac_val |
|
|
7775 | #endif |
|
|
7776 | _ACEOF |
|
|
7777 | ;; |
|
|
7778 | esac |
|
|
7779 | |
|
|
7780 | |
|
|
7781 | |
7944 | |
7782 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
7945 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
7783 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
7946 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
7784 | if test "${ac_cv_type_mode_t+set}" = set; then |
7947 | if test "${ac_cv_type_mode_t+set}" = set; then |
7785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7948 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
7942 | _ACEOF |
8105 | _ACEOF |
7943 | |
8106 | |
7944 | fi |
8107 | fi |
7945 | |
8108 | |
7946 | |
8109 | |
7947 | { echo "$as_me:$LINENO: checking for short" >&5 |
8110 | { echo "$as_me:$LINENO: checking for int16_t" >&5 |
7948 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
8111 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } |
7949 | if test "${ac_cv_type_short+set}" = set; then |
8112 | if test "${ac_cv_c_int16_t+set}" = set; then |
7950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7951 | else |
8114 | else |
|
|
8115 | ac_cv_c_int16_t=no |
|
|
8116 | for ac_type in 'int16_t' 'int' 'long int' \ |
|
|
8117 | 'long long int' 'short int' 'signed char'; do |
7952 | cat >conftest.$ac_ext <<_ACEOF |
8118 | cat >conftest.$ac_ext <<_ACEOF |
7953 | /* confdefs.h. */ |
8119 | /* confdefs.h. */ |
7954 | _ACEOF |
8120 | _ACEOF |
7955 | cat confdefs.h >>conftest.$ac_ext |
8121 | cat confdefs.h >>conftest.$ac_ext |
7956 | cat >>conftest.$ac_ext <<_ACEOF |
8122 | cat >>conftest.$ac_ext <<_ACEOF |
7957 | /* end confdefs.h. */ |
8123 | /* end confdefs.h. */ |
7958 | $ac_includes_default |
8124 | $ac_includes_default |
7959 | typedef short ac__type_new_; |
|
|
7960 | int |
8125 | int |
7961 | main () |
8126 | main () |
7962 | { |
8127 | { |
7963 | if ((ac__type_new_ *) 0) |
8128 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))]; |
7964 | return 0; |
8129 | test_array [0] = 0 |
7965 | if (sizeof (ac__type_new_)) |
8130 | |
7966 | return 0; |
|
|
7967 | ; |
8131 | ; |
7968 | return 0; |
8132 | return 0; |
7969 | } |
8133 | } |
7970 | _ACEOF |
8134 | _ACEOF |
7971 | rm -f conftest.$ac_objext |
8135 | rm -f conftest.$ac_objext |
… | |
… | |
7983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7984 | (exit $ac_status); } && { |
8148 | (exit $ac_status); } && { |
7985 | test -z "$ac_cxx_werror_flag" || |
8149 | test -z "$ac_cxx_werror_flag" || |
7986 | test ! -s conftest.err |
8150 | test ! -s conftest.err |
7987 | } && test -s conftest.$ac_objext; then |
8151 | } && test -s conftest.$ac_objext; then |
7988 | ac_cv_type_short=yes |
|
|
7989 | else |
|
|
7990 | echo "$as_me: failed program was:" >&5 |
|
|
7991 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7992 | |
|
|
7993 | ac_cv_type_short=no |
|
|
7994 | fi |
|
|
7995 | |
|
|
7996 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7997 | fi |
|
|
7998 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
|
|
7999 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
|
|
8000 | |
|
|
8001 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8002 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8003 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8004 | # This bug is HP SR number 8606223364. |
|
|
8005 | { echo "$as_me:$LINENO: checking size of short" >&5 |
|
|
8006 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
|
|
8007 | if test "${ac_cv_sizeof_short+set}" = set; then |
|
|
8008 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8009 | else |
|
|
8010 | if test "$cross_compiling" = yes; then |
|
|
8011 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8012 | cat >conftest.$ac_ext <<_ACEOF |
8152 | cat >conftest.$ac_ext <<_ACEOF |
8013 | /* confdefs.h. */ |
8153 | /* confdefs.h. */ |
8014 | _ACEOF |
8154 | _ACEOF |
8015 | cat confdefs.h >>conftest.$ac_ext |
8155 | cat confdefs.h >>conftest.$ac_ext |
8016 | cat >>conftest.$ac_ext <<_ACEOF |
8156 | cat >>conftest.$ac_ext <<_ACEOF |
8017 | /* end confdefs.h. */ |
8157 | /* end confdefs.h. */ |
8018 | $ac_includes_default |
8158 | $ac_includes_default |
8019 | typedef short ac__type_sizeof_; |
|
|
8020 | int |
8159 | int |
8021 | main () |
8160 | main () |
8022 | { |
8161 | { |
8023 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
8162 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1) |
|
|
8163 | < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))]; |
8024 | test_array [0] = 0 |
8164 | test_array [0] = 0 |
8025 | |
8165 | |
8026 | ; |
8166 | ; |
8027 | return 0; |
8167 | return 0; |
8028 | } |
8168 | } |
… | |
… | |
8042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8043 | (exit $ac_status); } && { |
8183 | (exit $ac_status); } && { |
8044 | test -z "$ac_cxx_werror_flag" || |
8184 | test -z "$ac_cxx_werror_flag" || |
8045 | test ! -s conftest.err |
8185 | test ! -s conftest.err |
8046 | } && test -s conftest.$ac_objext; then |
8186 | } && test -s conftest.$ac_objext; then |
8047 | ac_lo=0 ac_mid=0 |
8187 | : |
8048 | while :; do |
8188 | else |
|
|
8189 | echo "$as_me: failed program was:" >&5 |
|
|
8190 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8191 | |
|
|
8192 | case $ac_type in |
|
|
8193 | int16_t) ac_cv_c_int16_t=yes ;; |
|
|
8194 | *) ac_cv_c_int16_t=$ac_type ;; |
|
|
8195 | esac |
|
|
8196 | |
|
|
8197 | fi |
|
|
8198 | |
|
|
8199 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8200 | else |
|
|
8201 | echo "$as_me: failed program was:" >&5 |
|
|
8202 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8203 | |
|
|
8204 | |
|
|
8205 | fi |
|
|
8206 | |
|
|
8207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8208 | test "$ac_cv_c_int16_t" != no && break |
|
|
8209 | done |
|
|
8210 | fi |
|
|
8211 | { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5 |
|
|
8212 | echo "${ECHO_T}$ac_cv_c_int16_t" >&6; } |
|
|
8213 | case $ac_cv_c_int16_t in #( |
|
|
8214 | no|yes) ;; #( |
|
|
8215 | *) |
|
|
8216 | |
|
|
8217 | cat >>confdefs.h <<_ACEOF |
|
|
8218 | #define int16_t $ac_cv_c_int16_t |
|
|
8219 | _ACEOF |
|
|
8220 | ;; |
|
|
8221 | esac |
|
|
8222 | |
|
|
8223 | |
|
|
8224 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 |
|
|
8225 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } |
|
|
8226 | if test "${ac_cv_c_uint16_t+set}" = set; then |
|
|
8227 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8228 | else |
|
|
8229 | ac_cv_c_uint16_t=no |
|
|
8230 | for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \ |
|
|
8231 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
8049 | cat >conftest.$ac_ext <<_ACEOF |
8232 | cat >conftest.$ac_ext <<_ACEOF |
8050 | /* confdefs.h. */ |
8233 | /* confdefs.h. */ |
8051 | _ACEOF |
8234 | _ACEOF |
8052 | cat confdefs.h >>conftest.$ac_ext |
8235 | cat confdefs.h >>conftest.$ac_ext |
8053 | cat >>conftest.$ac_ext <<_ACEOF |
8236 | cat >>conftest.$ac_ext <<_ACEOF |
8054 | /* end confdefs.h. */ |
8237 | /* end confdefs.h. */ |
8055 | $ac_includes_default |
8238 | $ac_includes_default |
8056 | typedef short ac__type_sizeof_; |
|
|
8057 | int |
8239 | int |
8058 | main () |
8240 | main () |
8059 | { |
8241 | { |
8060 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
8242 | static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)]; |
8061 | test_array [0] = 0 |
8243 | test_array [0] = 0 |
8062 | |
8244 | |
8063 | ; |
8245 | ; |
8064 | return 0; |
8246 | return 0; |
8065 | } |
8247 | } |
… | |
… | |
8079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8080 | (exit $ac_status); } && { |
8262 | (exit $ac_status); } && { |
8081 | test -z "$ac_cxx_werror_flag" || |
8263 | test -z "$ac_cxx_werror_flag" || |
8082 | test ! -s conftest.err |
8264 | test ! -s conftest.err |
8083 | } && test -s conftest.$ac_objext; then |
8265 | } && test -s conftest.$ac_objext; then |
8084 | ac_hi=$ac_mid; break |
8266 | case $ac_type in |
|
|
8267 | uint16_t) ac_cv_c_uint16_t=yes ;; |
|
|
8268 | *) ac_cv_c_uint16_t=$ac_type ;; |
|
|
8269 | esac |
|
|
8270 | |
8085 | else |
8271 | else |
8086 | echo "$as_me: failed program was:" >&5 |
8272 | echo "$as_me: failed program was:" >&5 |
8087 | sed 's/^/| /' conftest.$ac_ext >&5 |
8273 | sed 's/^/| /' conftest.$ac_ext >&5 |
8088 | |
8274 | |
8089 | ac_lo=`expr $ac_mid + 1` |
8275 | |
8090 | if test $ac_lo -le $ac_mid; then |
|
|
8091 | ac_lo= ac_hi= |
|
|
8092 | break |
|
|
8093 | fi |
|
|
8094 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8095 | fi |
8276 | fi |
8096 | |
8277 | |
8097 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8278 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8279 | test "$ac_cv_c_uint16_t" != no && break |
8098 | done |
8280 | done |
8099 | else |
8281 | fi |
8100 | echo "$as_me: failed program was:" >&5 |
8282 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5 |
8101 | sed 's/^/| /' conftest.$ac_ext >&5 |
8283 | echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; } |
|
|
8284 | case $ac_cv_c_uint16_t in #( |
|
|
8285 | no|yes) ;; #( |
|
|
8286 | *) |
8102 | |
8287 | |
|
|
8288 | |
|
|
8289 | cat >>confdefs.h <<_ACEOF |
|
|
8290 | #define uint16_t $ac_cv_c_uint16_t |
|
|
8291 | _ACEOF |
|
|
8292 | ;; |
|
|
8293 | esac |
|
|
8294 | |
|
|
8295 | |
|
|
8296 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
|
|
8297 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
|
|
8298 | if test "${ac_cv_c_int32_t+set}" = set; then |
|
|
8299 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8300 | else |
|
|
8301 | ac_cv_c_int32_t=no |
|
|
8302 | for ac_type in 'int32_t' 'int' 'long int' \ |
|
|
8303 | 'long long int' 'short int' 'signed char'; do |
8103 | cat >conftest.$ac_ext <<_ACEOF |
8304 | cat >conftest.$ac_ext <<_ACEOF |
8104 | /* confdefs.h. */ |
8305 | /* confdefs.h. */ |
8105 | _ACEOF |
8306 | _ACEOF |
8106 | cat confdefs.h >>conftest.$ac_ext |
8307 | cat confdefs.h >>conftest.$ac_ext |
8107 | cat >>conftest.$ac_ext <<_ACEOF |
8308 | cat >>conftest.$ac_ext <<_ACEOF |
8108 | /* end confdefs.h. */ |
8309 | /* end confdefs.h. */ |
8109 | $ac_includes_default |
8310 | $ac_includes_default |
8110 | typedef short ac__type_sizeof_; |
|
|
8111 | int |
8311 | int |
8112 | main () |
8312 | main () |
8113 | { |
8313 | { |
8114 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
8314 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))]; |
8115 | test_array [0] = 0 |
8315 | test_array [0] = 0 |
8116 | |
8316 | |
8117 | ; |
8317 | ; |
8118 | return 0; |
8318 | return 0; |
8119 | } |
8319 | } |
… | |
… | |
8133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8134 | (exit $ac_status); } && { |
8334 | (exit $ac_status); } && { |
8135 | test -z "$ac_cxx_werror_flag" || |
8335 | test -z "$ac_cxx_werror_flag" || |
8136 | test ! -s conftest.err |
8336 | test ! -s conftest.err |
8137 | } && test -s conftest.$ac_objext; then |
8337 | } && test -s conftest.$ac_objext; then |
8138 | ac_hi=-1 ac_mid=-1 |
|
|
8139 | while :; do |
|
|
8140 | cat >conftest.$ac_ext <<_ACEOF |
8338 | cat >conftest.$ac_ext <<_ACEOF |
8141 | /* confdefs.h. */ |
8339 | /* confdefs.h. */ |
8142 | _ACEOF |
8340 | _ACEOF |
8143 | cat confdefs.h >>conftest.$ac_ext |
8341 | cat confdefs.h >>conftest.$ac_ext |
8144 | cat >>conftest.$ac_ext <<_ACEOF |
8342 | cat >>conftest.$ac_ext <<_ACEOF |
8145 | /* end confdefs.h. */ |
8343 | /* end confdefs.h. */ |
8146 | $ac_includes_default |
8344 | $ac_includes_default |
8147 | typedef short ac__type_sizeof_; |
|
|
8148 | int |
8345 | int |
8149 | main () |
8346 | main () |
8150 | { |
8347 | { |
8151 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
8348 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1) |
|
|
8349 | < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))]; |
8152 | test_array [0] = 0 |
8350 | test_array [0] = 0 |
8153 | |
8351 | |
8154 | ; |
8352 | ; |
8155 | return 0; |
8353 | return 0; |
8156 | } |
8354 | } |
… | |
… | |
8170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8171 | (exit $ac_status); } && { |
8369 | (exit $ac_status); } && { |
8172 | test -z "$ac_cxx_werror_flag" || |
8370 | test -z "$ac_cxx_werror_flag" || |
8173 | test ! -s conftest.err |
8371 | test ! -s conftest.err |
8174 | } && test -s conftest.$ac_objext; then |
8372 | } && test -s conftest.$ac_objext; then |
8175 | ac_lo=$ac_mid; break |
8373 | : |
8176 | else |
8374 | else |
8177 | echo "$as_me: failed program was:" >&5 |
8375 | echo "$as_me: failed program was:" >&5 |
8178 | sed 's/^/| /' conftest.$ac_ext >&5 |
8376 | sed 's/^/| /' conftest.$ac_ext >&5 |
8179 | |
8377 | |
8180 | ac_hi=`expr '(' $ac_mid ')' - 1` |
8378 | case $ac_type in |
8181 | if test $ac_mid -le $ac_hi; then |
8379 | int32_t) ac_cv_c_int32_t=yes ;; |
8182 | ac_lo= ac_hi= |
8380 | *) ac_cv_c_int32_t=$ac_type ;; |
8183 | break |
8381 | esac |
8184 | fi |
8382 | |
8185 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
8186 | fi |
8383 | fi |
8187 | |
8384 | |
8188 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8385 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8189 | done |
|
|
8190 | else |
8386 | else |
8191 | echo "$as_me: failed program was:" >&5 |
8387 | echo "$as_me: failed program was:" >&5 |
8192 | sed 's/^/| /' conftest.$ac_ext >&5 |
8388 | sed 's/^/| /' conftest.$ac_ext >&5 |
8193 | |
8389 | |
8194 | ac_lo= ac_hi= |
8390 | |
8195 | fi |
8391 | fi |
8196 | |
8392 | |
8197 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8393 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8394 | test "$ac_cv_c_int32_t" != no && break |
|
|
8395 | done |
8198 | fi |
8396 | fi |
|
|
8397 | { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5 |
|
|
8398 | echo "${ECHO_T}$ac_cv_c_int32_t" >&6; } |
|
|
8399 | case $ac_cv_c_int32_t in #( |
|
|
8400 | no|yes) ;; #( |
|
|
8401 | *) |
8199 | |
8402 | |
8200 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8403 | cat >>confdefs.h <<_ACEOF |
8201 | # Binary search between lo and hi bounds. |
8404 | #define int32_t $ac_cv_c_int32_t |
8202 | while test "x$ac_lo" != "x$ac_hi"; do |
8405 | _ACEOF |
8203 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
8406 | ;; |
|
|
8407 | esac |
|
|
8408 | |
|
|
8409 | |
|
|
8410 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
|
|
8411 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
|
|
8412 | if test "${ac_cv_c_uint32_t+set}" = set; then |
|
|
8413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8414 | else |
|
|
8415 | ac_cv_c_uint32_t=no |
|
|
8416 | for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ |
|
|
8417 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
8204 | cat >conftest.$ac_ext <<_ACEOF |
8418 | cat >conftest.$ac_ext <<_ACEOF |
8205 | /* confdefs.h. */ |
8419 | /* confdefs.h. */ |
8206 | _ACEOF |
8420 | _ACEOF |
8207 | cat confdefs.h >>conftest.$ac_ext |
8421 | cat confdefs.h >>conftest.$ac_ext |
8208 | cat >>conftest.$ac_ext <<_ACEOF |
8422 | cat >>conftest.$ac_ext <<_ACEOF |
8209 | /* end confdefs.h. */ |
8423 | /* end confdefs.h. */ |
8210 | $ac_includes_default |
8424 | $ac_includes_default |
8211 | typedef short ac__type_sizeof_; |
|
|
8212 | int |
8425 | int |
8213 | main () |
8426 | main () |
8214 | { |
8427 | { |
8215 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
8428 | static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; |
8216 | test_array [0] = 0 |
8429 | test_array [0] = 0 |
8217 | |
8430 | |
8218 | ; |
8431 | ; |
8219 | return 0; |
8432 | return 0; |
8220 | } |
8433 | } |
… | |
… | |
8234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8235 | (exit $ac_status); } && { |
8448 | (exit $ac_status); } && { |
8236 | test -z "$ac_cxx_werror_flag" || |
8449 | test -z "$ac_cxx_werror_flag" || |
8237 | test ! -s conftest.err |
8450 | test ! -s conftest.err |
8238 | } && test -s conftest.$ac_objext; then |
8451 | } && test -s conftest.$ac_objext; then |
8239 | ac_hi=$ac_mid |
8452 | case $ac_type in |
|
|
8453 | uint32_t) ac_cv_c_uint32_t=yes ;; |
|
|
8454 | *) ac_cv_c_uint32_t=$ac_type ;; |
|
|
8455 | esac |
|
|
8456 | |
8240 | else |
8457 | else |
8241 | echo "$as_me: failed program was:" >&5 |
8458 | echo "$as_me: failed program was:" >&5 |
8242 | sed 's/^/| /' conftest.$ac_ext >&5 |
8459 | sed 's/^/| /' conftest.$ac_ext >&5 |
8243 | |
8460 | |
8244 | ac_lo=`expr '(' $ac_mid ')' + 1` |
8461 | |
8245 | fi |
8462 | fi |
8246 | |
8463 | |
8247 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8464 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8248 | done |
8465 | test "$ac_cv_c_uint32_t" != no && break |
8249 | case $ac_lo in |
8466 | done |
8250 | ?*) ac_cv_sizeof_short=$ac_lo;; |
|
|
8251 | '') if test "$ac_cv_type_short" = yes; then |
|
|
8252 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
|
|
8253 | See \`config.log' for more details." >&5 |
|
|
8254 | echo "$as_me: error: cannot compute sizeof (short) |
|
|
8255 | See \`config.log' for more details." >&2;} |
|
|
8256 | { (exit 77); exit 77; }; } |
|
|
8257 | else |
|
|
8258 | ac_cv_sizeof_short=0 |
|
|
8259 | fi ;; |
|
|
8260 | esac |
|
|
8261 | else |
|
|
8262 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8263 | /* confdefs.h. */ |
|
|
8264 | _ACEOF |
|
|
8265 | cat confdefs.h >>conftest.$ac_ext |
|
|
8266 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8267 | /* end confdefs.h. */ |
|
|
8268 | $ac_includes_default |
|
|
8269 | typedef short ac__type_sizeof_; |
|
|
8270 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8271 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8272 | #include <stdio.h> |
|
|
8273 | #include <stdlib.h> |
|
|
8274 | int |
|
|
8275 | main () |
|
|
8276 | { |
|
|
8277 | |
|
|
8278 | FILE *f = fopen ("conftest.val", "w"); |
|
|
8279 | if (! f) |
|
|
8280 | return 1; |
|
|
8281 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
8282 | { |
|
|
8283 | long int i = longval (); |
|
|
8284 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8285 | return 1; |
|
|
8286 | fprintf (f, "%ld\n", i); |
|
|
8287 | } |
|
|
8288 | else |
|
|
8289 | { |
|
|
8290 | unsigned long int i = ulongval (); |
|
|
8291 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8292 | return 1; |
|
|
8293 | fprintf (f, "%lu\n", i); |
|
|
8294 | } |
|
|
8295 | return ferror (f) || fclose (f) != 0; |
|
|
8296 | |
|
|
8297 | ; |
|
|
8298 | return 0; |
|
|
8299 | } |
|
|
8300 | _ACEOF |
|
|
8301 | rm -f conftest$ac_exeext |
|
|
8302 | if { (ac_try="$ac_link" |
|
|
8303 | case "(($ac_try" in |
|
|
8304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8305 | *) ac_try_echo=$ac_try;; |
|
|
8306 | esac |
|
|
8307 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8308 | (eval "$ac_link") 2>&5 |
|
|
8309 | ac_status=$? |
|
|
8310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8311 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
8312 | { (case "(($ac_try" in |
|
|
8313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8314 | *) ac_try_echo=$ac_try;; |
|
|
8315 | esac |
|
|
8316 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8317 | (eval "$ac_try") 2>&5 |
|
|
8318 | ac_status=$? |
|
|
8319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8320 | (exit $ac_status); }; }; then |
|
|
8321 | ac_cv_sizeof_short=`cat conftest.val` |
|
|
8322 | else |
|
|
8323 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
8324 | echo "$as_me: failed program was:" >&5 |
|
|
8325 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8326 | |
|
|
8327 | ( exit $ac_status ) |
|
|
8328 | if test "$ac_cv_type_short" = yes; then |
|
|
8329 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
|
|
8330 | See \`config.log' for more details." >&5 |
|
|
8331 | echo "$as_me: error: cannot compute sizeof (short) |
|
|
8332 | See \`config.log' for more details." >&2;} |
|
|
8333 | { (exit 77); exit 77; }; } |
|
|
8334 | else |
|
|
8335 | ac_cv_sizeof_short=0 |
|
|
8336 | fi |
|
|
8337 | fi |
8467 | fi |
8338 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
8339 | fi |
|
|
8340 | rm -f conftest.val |
|
|
8341 | fi |
|
|
8342 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
8468 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 |
8343 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
8469 | echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; } |
|
|
8470 | case $ac_cv_c_uint32_t in #( |
|
|
8471 | no|yes) ;; #( |
|
|
8472 | *) |
8344 | |
8473 | |
|
|
8474 | cat >>confdefs.h <<\_ACEOF |
|
|
8475 | #define _UINT32_T 1 |
|
|
8476 | _ACEOF |
8345 | |
8477 | |
8346 | |
8478 | |
8347 | cat >>confdefs.h <<_ACEOF |
8479 | cat >>confdefs.h <<_ACEOF |
8348 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
8480 | #define uint32_t $ac_cv_c_uint32_t |
8349 | _ACEOF |
8481 | _ACEOF |
8350 | |
8482 | ;; |
8351 | |
|
|
8352 | { echo "$as_me:$LINENO: checking for int" >&5 |
|
|
8353 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
|
|
8354 | if test "${ac_cv_type_int+set}" = set; then |
|
|
8355 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8356 | else |
|
|
8357 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8358 | /* confdefs.h. */ |
|
|
8359 | _ACEOF |
|
|
8360 | cat confdefs.h >>conftest.$ac_ext |
|
|
8361 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8362 | /* end confdefs.h. */ |
|
|
8363 | $ac_includes_default |
|
|
8364 | typedef int ac__type_new_; |
|
|
8365 | int |
|
|
8366 | main () |
|
|
8367 | { |
|
|
8368 | if ((ac__type_new_ *) 0) |
|
|
8369 | return 0; |
|
|
8370 | if (sizeof (ac__type_new_)) |
|
|
8371 | return 0; |
|
|
8372 | ; |
|
|
8373 | return 0; |
|
|
8374 | } |
|
|
8375 | _ACEOF |
|
|
8376 | rm -f conftest.$ac_objext |
|
|
8377 | if { (ac_try="$ac_compile" |
|
|
8378 | case "(($ac_try" in |
|
|
8379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8380 | *) ac_try_echo=$ac_try;; |
|
|
8381 | esac |
8483 | esac |
8382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8383 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8384 | ac_status=$? |
|
|
8385 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8386 | rm -f conftest.er1 |
|
|
8387 | cat conftest.err >&5 |
|
|
8388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8389 | (exit $ac_status); } && { |
|
|
8390 | test -z "$ac_cxx_werror_flag" || |
|
|
8391 | test ! -s conftest.err |
|
|
8392 | } && test -s conftest.$ac_objext; then |
|
|
8393 | ac_cv_type_int=yes |
|
|
8394 | else |
|
|
8395 | echo "$as_me: failed program was:" >&5 |
|
|
8396 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8397 | |
8484 | |
8398 | ac_cv_type_int=no |
|
|
8399 | fi |
|
|
8400 | |
8485 | |
8401 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8402 | fi |
|
|
8403 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
|
|
8404 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
|
|
8405 | |
8486 | |
8406 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8407 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8408 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8409 | # This bug is HP SR number 8606223364. |
|
|
8410 | { echo "$as_me:$LINENO: checking size of int" >&5 |
|
|
8411 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
|
|
8412 | if test "${ac_cv_sizeof_int+set}" = set; then |
|
|
8413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8414 | else |
|
|
8415 | if test "$cross_compiling" = yes; then |
|
|
8416 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8417 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8418 | /* confdefs.h. */ |
|
|
8419 | _ACEOF |
|
|
8420 | cat confdefs.h >>conftest.$ac_ext |
|
|
8421 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8422 | /* end confdefs.h. */ |
|
|
8423 | $ac_includes_default |
|
|
8424 | typedef int ac__type_sizeof_; |
|
|
8425 | int |
|
|
8426 | main () |
|
|
8427 | { |
|
|
8428 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
8429 | test_array [0] = 0 |
|
|
8430 | |
|
|
8431 | ; |
|
|
8432 | return 0; |
|
|
8433 | } |
|
|
8434 | _ACEOF |
|
|
8435 | rm -f conftest.$ac_objext |
|
|
8436 | if { (ac_try="$ac_compile" |
|
|
8437 | case "(($ac_try" in |
|
|
8438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8439 | *) ac_try_echo=$ac_try;; |
|
|
8440 | esac |
|
|
8441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8442 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8443 | ac_status=$? |
|
|
8444 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8445 | rm -f conftest.er1 |
|
|
8446 | cat conftest.err >&5 |
|
|
8447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8448 | (exit $ac_status); } && { |
|
|
8449 | test -z "$ac_cxx_werror_flag" || |
|
|
8450 | test ! -s conftest.err |
|
|
8451 | } && test -s conftest.$ac_objext; then |
|
|
8452 | ac_lo=0 ac_mid=0 |
|
|
8453 | while :; do |
|
|
8454 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8455 | /* confdefs.h. */ |
|
|
8456 | _ACEOF |
|
|
8457 | cat confdefs.h >>conftest.$ac_ext |
|
|
8458 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8459 | /* end confdefs.h. */ |
|
|
8460 | $ac_includes_default |
|
|
8461 | typedef int ac__type_sizeof_; |
|
|
8462 | int |
|
|
8463 | main () |
|
|
8464 | { |
|
|
8465 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8466 | test_array [0] = 0 |
|
|
8467 | |
|
|
8468 | ; |
|
|
8469 | return 0; |
|
|
8470 | } |
|
|
8471 | _ACEOF |
|
|
8472 | rm -f conftest.$ac_objext |
|
|
8473 | if { (ac_try="$ac_compile" |
|
|
8474 | case "(($ac_try" in |
|
|
8475 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8476 | *) ac_try_echo=$ac_try;; |
|
|
8477 | esac |
|
|
8478 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8479 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8480 | ac_status=$? |
|
|
8481 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8482 | rm -f conftest.er1 |
|
|
8483 | cat conftest.err >&5 |
|
|
8484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8485 | (exit $ac_status); } && { |
|
|
8486 | test -z "$ac_cxx_werror_flag" || |
|
|
8487 | test ! -s conftest.err |
|
|
8488 | } && test -s conftest.$ac_objext; then |
|
|
8489 | ac_hi=$ac_mid; break |
|
|
8490 | else |
|
|
8491 | echo "$as_me: failed program was:" >&5 |
|
|
8492 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8493 | |
|
|
8494 | ac_lo=`expr $ac_mid + 1` |
|
|
8495 | if test $ac_lo -le $ac_mid; then |
|
|
8496 | ac_lo= ac_hi= |
|
|
8497 | break |
|
|
8498 | fi |
|
|
8499 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8500 | fi |
|
|
8501 | |
|
|
8502 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8503 | done |
|
|
8504 | else |
|
|
8505 | echo "$as_me: failed program was:" >&5 |
|
|
8506 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8507 | |
|
|
8508 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8509 | /* confdefs.h. */ |
|
|
8510 | _ACEOF |
|
|
8511 | cat confdefs.h >>conftest.$ac_ext |
|
|
8512 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8513 | /* end confdefs.h. */ |
|
|
8514 | $ac_includes_default |
|
|
8515 | typedef int ac__type_sizeof_; |
|
|
8516 | int |
|
|
8517 | main () |
|
|
8518 | { |
|
|
8519 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
8520 | test_array [0] = 0 |
|
|
8521 | |
|
|
8522 | ; |
|
|
8523 | return 0; |
|
|
8524 | } |
|
|
8525 | _ACEOF |
|
|
8526 | rm -f conftest.$ac_objext |
|
|
8527 | if { (ac_try="$ac_compile" |
|
|
8528 | case "(($ac_try" in |
|
|
8529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8530 | *) ac_try_echo=$ac_try;; |
|
|
8531 | esac |
|
|
8532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8533 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8534 | ac_status=$? |
|
|
8535 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8536 | rm -f conftest.er1 |
|
|
8537 | cat conftest.err >&5 |
|
|
8538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8539 | (exit $ac_status); } && { |
|
|
8540 | test -z "$ac_cxx_werror_flag" || |
|
|
8541 | test ! -s conftest.err |
|
|
8542 | } && test -s conftest.$ac_objext; then |
|
|
8543 | ac_hi=-1 ac_mid=-1 |
|
|
8544 | while :; do |
|
|
8545 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8546 | /* confdefs.h. */ |
|
|
8547 | _ACEOF |
|
|
8548 | cat confdefs.h >>conftest.$ac_ext |
|
|
8549 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8550 | /* end confdefs.h. */ |
|
|
8551 | $ac_includes_default |
|
|
8552 | typedef int ac__type_sizeof_; |
|
|
8553 | int |
|
|
8554 | main () |
|
|
8555 | { |
|
|
8556 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
8557 | test_array [0] = 0 |
|
|
8558 | |
|
|
8559 | ; |
|
|
8560 | return 0; |
|
|
8561 | } |
|
|
8562 | _ACEOF |
|
|
8563 | rm -f conftest.$ac_objext |
|
|
8564 | if { (ac_try="$ac_compile" |
|
|
8565 | case "(($ac_try" in |
|
|
8566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8567 | *) ac_try_echo=$ac_try;; |
|
|
8568 | esac |
|
|
8569 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8570 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8571 | ac_status=$? |
|
|
8572 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8573 | rm -f conftest.er1 |
|
|
8574 | cat conftest.err >&5 |
|
|
8575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8576 | (exit $ac_status); } && { |
|
|
8577 | test -z "$ac_cxx_werror_flag" || |
|
|
8578 | test ! -s conftest.err |
|
|
8579 | } && test -s conftest.$ac_objext; then |
|
|
8580 | ac_lo=$ac_mid; break |
|
|
8581 | else |
|
|
8582 | echo "$as_me: failed program was:" >&5 |
|
|
8583 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8584 | |
|
|
8585 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
8586 | if test $ac_mid -le $ac_hi; then |
|
|
8587 | ac_lo= ac_hi= |
|
|
8588 | break |
|
|
8589 | fi |
|
|
8590 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
8591 | fi |
|
|
8592 | |
|
|
8593 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8594 | done |
|
|
8595 | else |
|
|
8596 | echo "$as_me: failed program was:" >&5 |
|
|
8597 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8598 | |
|
|
8599 | ac_lo= ac_hi= |
|
|
8600 | fi |
|
|
8601 | |
|
|
8602 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8603 | fi |
|
|
8604 | |
|
|
8605 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8606 | # Binary search between lo and hi bounds. |
|
|
8607 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
8608 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
8609 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8610 | /* confdefs.h. */ |
|
|
8611 | _ACEOF |
|
|
8612 | cat confdefs.h >>conftest.$ac_ext |
|
|
8613 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8614 | /* end confdefs.h. */ |
|
|
8615 | $ac_includes_default |
|
|
8616 | typedef int ac__type_sizeof_; |
|
|
8617 | int |
|
|
8618 | main () |
|
|
8619 | { |
|
|
8620 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8621 | test_array [0] = 0 |
|
|
8622 | |
|
|
8623 | ; |
|
|
8624 | return 0; |
|
|
8625 | } |
|
|
8626 | _ACEOF |
|
|
8627 | rm -f conftest.$ac_objext |
|
|
8628 | if { (ac_try="$ac_compile" |
|
|
8629 | case "(($ac_try" in |
|
|
8630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8631 | *) ac_try_echo=$ac_try;; |
|
|
8632 | esac |
|
|
8633 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8634 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8635 | ac_status=$? |
|
|
8636 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8637 | rm -f conftest.er1 |
|
|
8638 | cat conftest.err >&5 |
|
|
8639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8640 | (exit $ac_status); } && { |
|
|
8641 | test -z "$ac_cxx_werror_flag" || |
|
|
8642 | test ! -s conftest.err |
|
|
8643 | } && test -s conftest.$ac_objext; then |
|
|
8644 | ac_hi=$ac_mid |
|
|
8645 | else |
|
|
8646 | echo "$as_me: failed program was:" >&5 |
|
|
8647 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8648 | |
|
|
8649 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
8650 | fi |
|
|
8651 | |
|
|
8652 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8653 | done |
|
|
8654 | case $ac_lo in |
|
|
8655 | ?*) ac_cv_sizeof_int=$ac_lo;; |
|
|
8656 | '') if test "$ac_cv_type_int" = yes; then |
|
|
8657 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
|
|
8658 | See \`config.log' for more details." >&5 |
|
|
8659 | echo "$as_me: error: cannot compute sizeof (int) |
|
|
8660 | See \`config.log' for more details." >&2;} |
|
|
8661 | { (exit 77); exit 77; }; } |
|
|
8662 | else |
|
|
8663 | ac_cv_sizeof_int=0 |
|
|
8664 | fi ;; |
|
|
8665 | esac |
|
|
8666 | else |
|
|
8667 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8668 | /* confdefs.h. */ |
|
|
8669 | _ACEOF |
|
|
8670 | cat confdefs.h >>conftest.$ac_ext |
|
|
8671 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8672 | /* end confdefs.h. */ |
|
|
8673 | $ac_includes_default |
|
|
8674 | typedef int ac__type_sizeof_; |
|
|
8675 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8676 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8677 | #include <stdio.h> |
|
|
8678 | #include <stdlib.h> |
|
|
8679 | int |
|
|
8680 | main () |
|
|
8681 | { |
|
|
8682 | |
|
|
8683 | FILE *f = fopen ("conftest.val", "w"); |
|
|
8684 | if (! f) |
|
|
8685 | return 1; |
|
|
8686 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
8687 | { |
|
|
8688 | long int i = longval (); |
|
|
8689 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8690 | return 1; |
|
|
8691 | fprintf (f, "%ld\n", i); |
|
|
8692 | } |
|
|
8693 | else |
|
|
8694 | { |
|
|
8695 | unsigned long int i = ulongval (); |
|
|
8696 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8697 | return 1; |
|
|
8698 | fprintf (f, "%lu\n", i); |
|
|
8699 | } |
|
|
8700 | return ferror (f) || fclose (f) != 0; |
|
|
8701 | |
|
|
8702 | ; |
|
|
8703 | return 0; |
|
|
8704 | } |
|
|
8705 | _ACEOF |
|
|
8706 | rm -f conftest$ac_exeext |
|
|
8707 | if { (ac_try="$ac_link" |
|
|
8708 | case "(($ac_try" in |
|
|
8709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8710 | *) ac_try_echo=$ac_try;; |
|
|
8711 | esac |
|
|
8712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8713 | (eval "$ac_link") 2>&5 |
|
|
8714 | ac_status=$? |
|
|
8715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8716 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
8717 | { (case "(($ac_try" in |
|
|
8718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8719 | *) ac_try_echo=$ac_try;; |
|
|
8720 | esac |
|
|
8721 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8722 | (eval "$ac_try") 2>&5 |
|
|
8723 | ac_status=$? |
|
|
8724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8725 | (exit $ac_status); }; }; then |
|
|
8726 | ac_cv_sizeof_int=`cat conftest.val` |
|
|
8727 | else |
|
|
8728 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
8729 | echo "$as_me: failed program was:" >&5 |
|
|
8730 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8731 | |
|
|
8732 | ( exit $ac_status ) |
|
|
8733 | if test "$ac_cv_type_int" = yes; then |
|
|
8734 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
|
|
8735 | See \`config.log' for more details." >&5 |
|
|
8736 | echo "$as_me: error: cannot compute sizeof (int) |
|
|
8737 | See \`config.log' for more details." >&2;} |
|
|
8738 | { (exit 77); exit 77; }; } |
|
|
8739 | else |
|
|
8740 | ac_cv_sizeof_int=0 |
|
|
8741 | fi |
|
|
8742 | fi |
|
|
8743 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
8744 | fi |
|
|
8745 | rm -f conftest.val |
|
|
8746 | fi |
|
|
8747 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
|
|
8748 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
|
|
8749 | |
|
|
8750 | |
|
|
8751 | |
|
|
8752 | cat >>confdefs.h <<_ACEOF |
|
|
8753 | #define SIZEOF_INT $ac_cv_sizeof_int |
|
|
8754 | _ACEOF |
|
|
8755 | |
|
|
8756 | |
|
|
8757 | { echo "$as_me:$LINENO: checking for long long" >&5 |
|
|
8758 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
|
|
8759 | if test "${ac_cv_type_long_long+set}" = set; then |
|
|
8760 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8761 | else |
|
|
8762 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8763 | /* confdefs.h. */ |
|
|
8764 | _ACEOF |
|
|
8765 | cat confdefs.h >>conftest.$ac_ext |
|
|
8766 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8767 | /* end confdefs.h. */ |
|
|
8768 | $ac_includes_default |
|
|
8769 | typedef long long ac__type_new_; |
|
|
8770 | int |
|
|
8771 | main () |
|
|
8772 | { |
|
|
8773 | if ((ac__type_new_ *) 0) |
|
|
8774 | return 0; |
|
|
8775 | if (sizeof (ac__type_new_)) |
|
|
8776 | return 0; |
|
|
8777 | ; |
|
|
8778 | return 0; |
|
|
8779 | } |
|
|
8780 | _ACEOF |
|
|
8781 | rm -f conftest.$ac_objext |
|
|
8782 | if { (ac_try="$ac_compile" |
|
|
8783 | case "(($ac_try" in |
|
|
8784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8785 | *) ac_try_echo=$ac_try;; |
|
|
8786 | esac |
|
|
8787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8788 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8789 | ac_status=$? |
|
|
8790 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8791 | rm -f conftest.er1 |
|
|
8792 | cat conftest.err >&5 |
|
|
8793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8794 | (exit $ac_status); } && { |
|
|
8795 | test -z "$ac_cxx_werror_flag" || |
|
|
8796 | test ! -s conftest.err |
|
|
8797 | } && test -s conftest.$ac_objext; then |
|
|
8798 | ac_cv_type_long_long=yes |
|
|
8799 | else |
|
|
8800 | echo "$as_me: failed program was:" >&5 |
|
|
8801 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8802 | |
|
|
8803 | ac_cv_type_long_long=no |
|
|
8804 | fi |
|
|
8805 | |
|
|
8806 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8807 | fi |
|
|
8808 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
|
|
8809 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
|
|
8810 | |
|
|
8811 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8812 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8813 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8814 | # This bug is HP SR number 8606223364. |
|
|
8815 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
|
|
8816 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } |
|
|
8817 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
|
|
8818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8819 | else |
|
|
8820 | if test "$cross_compiling" = yes; then |
|
|
8821 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8822 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8823 | /* confdefs.h. */ |
|
|
8824 | _ACEOF |
|
|
8825 | cat confdefs.h >>conftest.$ac_ext |
|
|
8826 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8827 | /* end confdefs.h. */ |
|
|
8828 | $ac_includes_default |
|
|
8829 | typedef long long ac__type_sizeof_; |
|
|
8830 | int |
|
|
8831 | main () |
|
|
8832 | { |
|
|
8833 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
8834 | test_array [0] = 0 |
|
|
8835 | |
|
|
8836 | ; |
|
|
8837 | return 0; |
|
|
8838 | } |
|
|
8839 | _ACEOF |
|
|
8840 | rm -f conftest.$ac_objext |
|
|
8841 | if { (ac_try="$ac_compile" |
|
|
8842 | case "(($ac_try" in |
|
|
8843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8844 | *) ac_try_echo=$ac_try;; |
|
|
8845 | esac |
|
|
8846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8847 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8848 | ac_status=$? |
|
|
8849 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8850 | rm -f conftest.er1 |
|
|
8851 | cat conftest.err >&5 |
|
|
8852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8853 | (exit $ac_status); } && { |
|
|
8854 | test -z "$ac_cxx_werror_flag" || |
|
|
8855 | test ! -s conftest.err |
|
|
8856 | } && test -s conftest.$ac_objext; then |
|
|
8857 | ac_lo=0 ac_mid=0 |
|
|
8858 | while :; do |
|
|
8859 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8860 | /* confdefs.h. */ |
|
|
8861 | _ACEOF |
|
|
8862 | cat confdefs.h >>conftest.$ac_ext |
|
|
8863 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8864 | /* end confdefs.h. */ |
|
|
8865 | $ac_includes_default |
|
|
8866 | typedef long long ac__type_sizeof_; |
|
|
8867 | int |
|
|
8868 | main () |
|
|
8869 | { |
|
|
8870 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8871 | test_array [0] = 0 |
|
|
8872 | |
|
|
8873 | ; |
|
|
8874 | return 0; |
|
|
8875 | } |
|
|
8876 | _ACEOF |
|
|
8877 | rm -f conftest.$ac_objext |
|
|
8878 | if { (ac_try="$ac_compile" |
|
|
8879 | case "(($ac_try" in |
|
|
8880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8881 | *) ac_try_echo=$ac_try;; |
|
|
8882 | esac |
|
|
8883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8884 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8885 | ac_status=$? |
|
|
8886 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8887 | rm -f conftest.er1 |
|
|
8888 | cat conftest.err >&5 |
|
|
8889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8890 | (exit $ac_status); } && { |
|
|
8891 | test -z "$ac_cxx_werror_flag" || |
|
|
8892 | test ! -s conftest.err |
|
|
8893 | } && test -s conftest.$ac_objext; then |
|
|
8894 | ac_hi=$ac_mid; break |
|
|
8895 | else |
|
|
8896 | echo "$as_me: failed program was:" >&5 |
|
|
8897 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8898 | |
|
|
8899 | ac_lo=`expr $ac_mid + 1` |
|
|
8900 | if test $ac_lo -le $ac_mid; then |
|
|
8901 | ac_lo= ac_hi= |
|
|
8902 | break |
|
|
8903 | fi |
|
|
8904 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8905 | fi |
|
|
8906 | |
|
|
8907 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8908 | done |
|
|
8909 | else |
|
|
8910 | echo "$as_me: failed program was:" >&5 |
|
|
8911 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8912 | |
|
|
8913 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8914 | /* confdefs.h. */ |
|
|
8915 | _ACEOF |
|
|
8916 | cat confdefs.h >>conftest.$ac_ext |
|
|
8917 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8918 | /* end confdefs.h. */ |
|
|
8919 | $ac_includes_default |
|
|
8920 | typedef long long ac__type_sizeof_; |
|
|
8921 | int |
|
|
8922 | main () |
|
|
8923 | { |
|
|
8924 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
8925 | test_array [0] = 0 |
|
|
8926 | |
|
|
8927 | ; |
|
|
8928 | return 0; |
|
|
8929 | } |
|
|
8930 | _ACEOF |
|
|
8931 | rm -f conftest.$ac_objext |
|
|
8932 | if { (ac_try="$ac_compile" |
|
|
8933 | case "(($ac_try" in |
|
|
8934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8935 | *) ac_try_echo=$ac_try;; |
|
|
8936 | esac |
|
|
8937 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8938 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8939 | ac_status=$? |
|
|
8940 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8941 | rm -f conftest.er1 |
|
|
8942 | cat conftest.err >&5 |
|
|
8943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8944 | (exit $ac_status); } && { |
|
|
8945 | test -z "$ac_cxx_werror_flag" || |
|
|
8946 | test ! -s conftest.err |
|
|
8947 | } && test -s conftest.$ac_objext; then |
|
|
8948 | ac_hi=-1 ac_mid=-1 |
|
|
8949 | while :; do |
|
|
8950 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8951 | /* confdefs.h. */ |
|
|
8952 | _ACEOF |
|
|
8953 | cat confdefs.h >>conftest.$ac_ext |
|
|
8954 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8955 | /* end confdefs.h. */ |
|
|
8956 | $ac_includes_default |
|
|
8957 | typedef long long ac__type_sizeof_; |
|
|
8958 | int |
|
|
8959 | main () |
|
|
8960 | { |
|
|
8961 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
8962 | test_array [0] = 0 |
|
|
8963 | |
|
|
8964 | ; |
|
|
8965 | return 0; |
|
|
8966 | } |
|
|
8967 | _ACEOF |
|
|
8968 | rm -f conftest.$ac_objext |
|
|
8969 | if { (ac_try="$ac_compile" |
|
|
8970 | case "(($ac_try" in |
|
|
8971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8972 | *) ac_try_echo=$ac_try;; |
|
|
8973 | esac |
|
|
8974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8975 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8976 | ac_status=$? |
|
|
8977 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8978 | rm -f conftest.er1 |
|
|
8979 | cat conftest.err >&5 |
|
|
8980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8981 | (exit $ac_status); } && { |
|
|
8982 | test -z "$ac_cxx_werror_flag" || |
|
|
8983 | test ! -s conftest.err |
|
|
8984 | } && test -s conftest.$ac_objext; then |
|
|
8985 | ac_lo=$ac_mid; break |
|
|
8986 | else |
|
|
8987 | echo "$as_me: failed program was:" >&5 |
|
|
8988 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8989 | |
|
|
8990 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
8991 | if test $ac_mid -le $ac_hi; then |
|
|
8992 | ac_lo= ac_hi= |
|
|
8993 | break |
|
|
8994 | fi |
|
|
8995 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
8996 | fi |
|
|
8997 | |
|
|
8998 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8999 | done |
|
|
9000 | else |
|
|
9001 | echo "$as_me: failed program was:" >&5 |
|
|
9002 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9003 | |
|
|
9004 | ac_lo= ac_hi= |
|
|
9005 | fi |
|
|
9006 | |
|
|
9007 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9008 | fi |
|
|
9009 | |
|
|
9010 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9011 | # Binary search between lo and hi bounds. |
|
|
9012 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
9013 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
9014 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9015 | /* confdefs.h. */ |
|
|
9016 | _ACEOF |
|
|
9017 | cat confdefs.h >>conftest.$ac_ext |
|
|
9018 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9019 | /* end confdefs.h. */ |
|
|
9020 | $ac_includes_default |
|
|
9021 | typedef long long ac__type_sizeof_; |
|
|
9022 | int |
|
|
9023 | main () |
|
|
9024 | { |
|
|
9025 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9026 | test_array [0] = 0 |
|
|
9027 | |
|
|
9028 | ; |
|
|
9029 | return 0; |
|
|
9030 | } |
|
|
9031 | _ACEOF |
|
|
9032 | rm -f conftest.$ac_objext |
|
|
9033 | if { (ac_try="$ac_compile" |
|
|
9034 | case "(($ac_try" in |
|
|
9035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9036 | *) ac_try_echo=$ac_try;; |
|
|
9037 | esac |
|
|
9038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9039 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9040 | ac_status=$? |
|
|
9041 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9042 | rm -f conftest.er1 |
|
|
9043 | cat conftest.err >&5 |
|
|
9044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9045 | (exit $ac_status); } && { |
|
|
9046 | test -z "$ac_cxx_werror_flag" || |
|
|
9047 | test ! -s conftest.err |
|
|
9048 | } && test -s conftest.$ac_objext; then |
|
|
9049 | ac_hi=$ac_mid |
|
|
9050 | else |
|
|
9051 | echo "$as_me: failed program was:" >&5 |
|
|
9052 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9053 | |
|
|
9054 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
9055 | fi |
|
|
9056 | |
|
|
9057 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9058 | done |
|
|
9059 | case $ac_lo in |
|
|
9060 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
|
|
9061 | '') if test "$ac_cv_type_long_long" = yes; then |
|
|
9062 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
|
|
9063 | See \`config.log' for more details." >&5 |
|
|
9064 | echo "$as_me: error: cannot compute sizeof (long long) |
|
|
9065 | See \`config.log' for more details." >&2;} |
|
|
9066 | { (exit 77); exit 77; }; } |
|
|
9067 | else |
|
|
9068 | ac_cv_sizeof_long_long=0 |
|
|
9069 | fi ;; |
|
|
9070 | esac |
|
|
9071 | else |
|
|
9072 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9073 | /* confdefs.h. */ |
|
|
9074 | _ACEOF |
|
|
9075 | cat confdefs.h >>conftest.$ac_ext |
|
|
9076 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9077 | /* end confdefs.h. */ |
|
|
9078 | $ac_includes_default |
|
|
9079 | typedef long long ac__type_sizeof_; |
|
|
9080 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9081 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9082 | #include <stdio.h> |
|
|
9083 | #include <stdlib.h> |
|
|
9084 | int |
|
|
9085 | main () |
|
|
9086 | { |
|
|
9087 | |
|
|
9088 | FILE *f = fopen ("conftest.val", "w"); |
|
|
9089 | if (! f) |
|
|
9090 | return 1; |
|
|
9091 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
9092 | { |
|
|
9093 | long int i = longval (); |
|
|
9094 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9095 | return 1; |
|
|
9096 | fprintf (f, "%ld\n", i); |
|
|
9097 | } |
|
|
9098 | else |
|
|
9099 | { |
|
|
9100 | unsigned long int i = ulongval (); |
|
|
9101 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9102 | return 1; |
|
|
9103 | fprintf (f, "%lu\n", i); |
|
|
9104 | } |
|
|
9105 | return ferror (f) || fclose (f) != 0; |
|
|
9106 | |
|
|
9107 | ; |
|
|
9108 | return 0; |
|
|
9109 | } |
|
|
9110 | _ACEOF |
|
|
9111 | rm -f conftest$ac_exeext |
|
|
9112 | if { (ac_try="$ac_link" |
|
|
9113 | case "(($ac_try" in |
|
|
9114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9115 | *) ac_try_echo=$ac_try;; |
|
|
9116 | esac |
|
|
9117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9118 | (eval "$ac_link") 2>&5 |
|
|
9119 | ac_status=$? |
|
|
9120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9121 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
9122 | { (case "(($ac_try" in |
|
|
9123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9124 | *) ac_try_echo=$ac_try;; |
|
|
9125 | esac |
|
|
9126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9127 | (eval "$ac_try") 2>&5 |
|
|
9128 | ac_status=$? |
|
|
9129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9130 | (exit $ac_status); }; }; then |
|
|
9131 | ac_cv_sizeof_long_long=`cat conftest.val` |
|
|
9132 | else |
|
|
9133 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
9134 | echo "$as_me: failed program was:" >&5 |
|
|
9135 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9136 | |
|
|
9137 | ( exit $ac_status ) |
|
|
9138 | if test "$ac_cv_type_long_long" = yes; then |
|
|
9139 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
|
|
9140 | See \`config.log' for more details." >&5 |
|
|
9141 | echo "$as_me: error: cannot compute sizeof (long long) |
|
|
9142 | See \`config.log' for more details." >&2;} |
|
|
9143 | { (exit 77); exit 77; }; } |
|
|
9144 | else |
|
|
9145 | ac_cv_sizeof_long_long=0 |
|
|
9146 | fi |
|
|
9147 | fi |
|
|
9148 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
9149 | fi |
|
|
9150 | rm -f conftest.val |
|
|
9151 | fi |
|
|
9152 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
|
|
9153 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
|
|
9154 | |
|
|
9155 | |
|
|
9156 | |
|
|
9157 | cat >>confdefs.h <<_ACEOF |
|
|
9158 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
|
|
9159 | _ACEOF |
|
|
9160 | |
|
|
9161 | |
|
|
9162 | { echo "$as_me:$LINENO: checking for int *" >&5 |
|
|
9163 | echo $ECHO_N "checking for int *... $ECHO_C" >&6; } |
|
|
9164 | if test "${ac_cv_type_int_p+set}" = set; then |
|
|
9165 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9166 | else |
|
|
9167 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9168 | /* confdefs.h. */ |
|
|
9169 | _ACEOF |
|
|
9170 | cat confdefs.h >>conftest.$ac_ext |
|
|
9171 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9172 | /* end confdefs.h. */ |
|
|
9173 | $ac_includes_default |
|
|
9174 | typedef int * ac__type_new_; |
|
|
9175 | int |
|
|
9176 | main () |
|
|
9177 | { |
|
|
9178 | if ((ac__type_new_ *) 0) |
|
|
9179 | return 0; |
|
|
9180 | if (sizeof (ac__type_new_)) |
|
|
9181 | return 0; |
|
|
9182 | ; |
|
|
9183 | return 0; |
|
|
9184 | } |
|
|
9185 | _ACEOF |
|
|
9186 | rm -f conftest.$ac_objext |
|
|
9187 | if { (ac_try="$ac_compile" |
|
|
9188 | case "(($ac_try" in |
|
|
9189 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9190 | *) ac_try_echo=$ac_try;; |
|
|
9191 | esac |
|
|
9192 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9193 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9194 | ac_status=$? |
|
|
9195 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9196 | rm -f conftest.er1 |
|
|
9197 | cat conftest.err >&5 |
|
|
9198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9199 | (exit $ac_status); } && { |
|
|
9200 | test -z "$ac_cxx_werror_flag" || |
|
|
9201 | test ! -s conftest.err |
|
|
9202 | } && test -s conftest.$ac_objext; then |
|
|
9203 | ac_cv_type_int_p=yes |
|
|
9204 | else |
|
|
9205 | echo "$as_me: failed program was:" >&5 |
|
|
9206 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9207 | |
|
|
9208 | ac_cv_type_int_p=no |
|
|
9209 | fi |
|
|
9210 | |
|
|
9211 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9212 | fi |
|
|
9213 | { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5 |
|
|
9214 | echo "${ECHO_T}$ac_cv_type_int_p" >&6; } |
|
|
9215 | |
|
|
9216 | # The cast to long int works around a bug in the HP C Compiler |
|
|
9217 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
9218 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
9219 | # This bug is HP SR number 8606223364. |
|
|
9220 | { echo "$as_me:$LINENO: checking size of int *" >&5 |
|
|
9221 | echo $ECHO_N "checking size of int *... $ECHO_C" >&6; } |
|
|
9222 | if test "${ac_cv_sizeof_int_p+set}" = set; then |
|
|
9223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9224 | else |
|
|
9225 | if test "$cross_compiling" = yes; then |
|
|
9226 | # Depending upon the size, compute the lo and hi bounds. |
|
|
9227 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9228 | /* confdefs.h. */ |
|
|
9229 | _ACEOF |
|
|
9230 | cat confdefs.h >>conftest.$ac_ext |
|
|
9231 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9232 | /* end confdefs.h. */ |
|
|
9233 | $ac_includes_default |
|
|
9234 | typedef int * ac__type_sizeof_; |
|
|
9235 | int |
|
|
9236 | main () |
|
|
9237 | { |
|
|
9238 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
9239 | test_array [0] = 0 |
|
|
9240 | |
|
|
9241 | ; |
|
|
9242 | return 0; |
|
|
9243 | } |
|
|
9244 | _ACEOF |
|
|
9245 | rm -f conftest.$ac_objext |
|
|
9246 | if { (ac_try="$ac_compile" |
|
|
9247 | case "(($ac_try" in |
|
|
9248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9249 | *) ac_try_echo=$ac_try;; |
|
|
9250 | esac |
|
|
9251 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9252 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9253 | ac_status=$? |
|
|
9254 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9255 | rm -f conftest.er1 |
|
|
9256 | cat conftest.err >&5 |
|
|
9257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9258 | (exit $ac_status); } && { |
|
|
9259 | test -z "$ac_cxx_werror_flag" || |
|
|
9260 | test ! -s conftest.err |
|
|
9261 | } && test -s conftest.$ac_objext; then |
|
|
9262 | ac_lo=0 ac_mid=0 |
|
|
9263 | while :; do |
|
|
9264 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9265 | /* confdefs.h. */ |
|
|
9266 | _ACEOF |
|
|
9267 | cat confdefs.h >>conftest.$ac_ext |
|
|
9268 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9269 | /* end confdefs.h. */ |
|
|
9270 | $ac_includes_default |
|
|
9271 | typedef int * ac__type_sizeof_; |
|
|
9272 | int |
|
|
9273 | main () |
|
|
9274 | { |
|
|
9275 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9276 | test_array [0] = 0 |
|
|
9277 | |
|
|
9278 | ; |
|
|
9279 | return 0; |
|
|
9280 | } |
|
|
9281 | _ACEOF |
|
|
9282 | rm -f conftest.$ac_objext |
|
|
9283 | if { (ac_try="$ac_compile" |
|
|
9284 | case "(($ac_try" in |
|
|
9285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9286 | *) ac_try_echo=$ac_try;; |
|
|
9287 | esac |
|
|
9288 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9289 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9290 | ac_status=$? |
|
|
9291 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9292 | rm -f conftest.er1 |
|
|
9293 | cat conftest.err >&5 |
|
|
9294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9295 | (exit $ac_status); } && { |
|
|
9296 | test -z "$ac_cxx_werror_flag" || |
|
|
9297 | test ! -s conftest.err |
|
|
9298 | } && test -s conftest.$ac_objext; then |
|
|
9299 | ac_hi=$ac_mid; break |
|
|
9300 | else |
|
|
9301 | echo "$as_me: failed program was:" >&5 |
|
|
9302 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9303 | |
|
|
9304 | ac_lo=`expr $ac_mid + 1` |
|
|
9305 | if test $ac_lo -le $ac_mid; then |
|
|
9306 | ac_lo= ac_hi= |
|
|
9307 | break |
|
|
9308 | fi |
|
|
9309 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
9310 | fi |
|
|
9311 | |
|
|
9312 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9313 | done |
|
|
9314 | else |
|
|
9315 | echo "$as_me: failed program was:" >&5 |
|
|
9316 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9317 | |
|
|
9318 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9319 | /* confdefs.h. */ |
|
|
9320 | _ACEOF |
|
|
9321 | cat confdefs.h >>conftest.$ac_ext |
|
|
9322 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9323 | /* end confdefs.h. */ |
|
|
9324 | $ac_includes_default |
|
|
9325 | typedef int * ac__type_sizeof_; |
|
|
9326 | int |
|
|
9327 | main () |
|
|
9328 | { |
|
|
9329 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
9330 | test_array [0] = 0 |
|
|
9331 | |
|
|
9332 | ; |
|
|
9333 | return 0; |
|
|
9334 | } |
|
|
9335 | _ACEOF |
|
|
9336 | rm -f conftest.$ac_objext |
|
|
9337 | if { (ac_try="$ac_compile" |
|
|
9338 | case "(($ac_try" in |
|
|
9339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9340 | *) ac_try_echo=$ac_try;; |
|
|
9341 | esac |
|
|
9342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9343 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9344 | ac_status=$? |
|
|
9345 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9346 | rm -f conftest.er1 |
|
|
9347 | cat conftest.err >&5 |
|
|
9348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9349 | (exit $ac_status); } && { |
|
|
9350 | test -z "$ac_cxx_werror_flag" || |
|
|
9351 | test ! -s conftest.err |
|
|
9352 | } && test -s conftest.$ac_objext; then |
|
|
9353 | ac_hi=-1 ac_mid=-1 |
|
|
9354 | while :; do |
|
|
9355 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9356 | /* confdefs.h. */ |
|
|
9357 | _ACEOF |
|
|
9358 | cat confdefs.h >>conftest.$ac_ext |
|
|
9359 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9360 | /* end confdefs.h. */ |
|
|
9361 | $ac_includes_default |
|
|
9362 | typedef int * ac__type_sizeof_; |
|
|
9363 | int |
|
|
9364 | main () |
|
|
9365 | { |
|
|
9366 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
9367 | test_array [0] = 0 |
|
|
9368 | |
|
|
9369 | ; |
|
|
9370 | return 0; |
|
|
9371 | } |
|
|
9372 | _ACEOF |
|
|
9373 | rm -f conftest.$ac_objext |
|
|
9374 | if { (ac_try="$ac_compile" |
|
|
9375 | case "(($ac_try" in |
|
|
9376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9377 | *) ac_try_echo=$ac_try;; |
|
|
9378 | esac |
|
|
9379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9380 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9381 | ac_status=$? |
|
|
9382 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9383 | rm -f conftest.er1 |
|
|
9384 | cat conftest.err >&5 |
|
|
9385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9386 | (exit $ac_status); } && { |
|
|
9387 | test -z "$ac_cxx_werror_flag" || |
|
|
9388 | test ! -s conftest.err |
|
|
9389 | } && test -s conftest.$ac_objext; then |
|
|
9390 | ac_lo=$ac_mid; break |
|
|
9391 | else |
|
|
9392 | echo "$as_me: failed program was:" >&5 |
|
|
9393 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9394 | |
|
|
9395 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
9396 | if test $ac_mid -le $ac_hi; then |
|
|
9397 | ac_lo= ac_hi= |
|
|
9398 | break |
|
|
9399 | fi |
|
|
9400 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
9401 | fi |
|
|
9402 | |
|
|
9403 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9404 | done |
|
|
9405 | else |
|
|
9406 | echo "$as_me: failed program was:" >&5 |
|
|
9407 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9408 | |
|
|
9409 | ac_lo= ac_hi= |
|
|
9410 | fi |
|
|
9411 | |
|
|
9412 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9413 | fi |
|
|
9414 | |
|
|
9415 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9416 | # Binary search between lo and hi bounds. |
|
|
9417 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
9418 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
9419 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9420 | /* confdefs.h. */ |
|
|
9421 | _ACEOF |
|
|
9422 | cat confdefs.h >>conftest.$ac_ext |
|
|
9423 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9424 | /* end confdefs.h. */ |
|
|
9425 | $ac_includes_default |
|
|
9426 | typedef int * ac__type_sizeof_; |
|
|
9427 | int |
|
|
9428 | main () |
|
|
9429 | { |
|
|
9430 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9431 | test_array [0] = 0 |
|
|
9432 | |
|
|
9433 | ; |
|
|
9434 | return 0; |
|
|
9435 | } |
|
|
9436 | _ACEOF |
|
|
9437 | rm -f conftest.$ac_objext |
|
|
9438 | if { (ac_try="$ac_compile" |
|
|
9439 | case "(($ac_try" in |
|
|
9440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9441 | *) ac_try_echo=$ac_try;; |
|
|
9442 | esac |
|
|
9443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9444 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9445 | ac_status=$? |
|
|
9446 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9447 | rm -f conftest.er1 |
|
|
9448 | cat conftest.err >&5 |
|
|
9449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9450 | (exit $ac_status); } && { |
|
|
9451 | test -z "$ac_cxx_werror_flag" || |
|
|
9452 | test ! -s conftest.err |
|
|
9453 | } && test -s conftest.$ac_objext; then |
|
|
9454 | ac_hi=$ac_mid |
|
|
9455 | else |
|
|
9456 | echo "$as_me: failed program was:" >&5 |
|
|
9457 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9458 | |
|
|
9459 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
9460 | fi |
|
|
9461 | |
|
|
9462 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9463 | done |
|
|
9464 | case $ac_lo in |
|
|
9465 | ?*) ac_cv_sizeof_int_p=$ac_lo;; |
|
|
9466 | '') if test "$ac_cv_type_int_p" = yes; then |
|
|
9467 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *) |
|
|
9468 | See \`config.log' for more details." >&5 |
|
|
9469 | echo "$as_me: error: cannot compute sizeof (int *) |
|
|
9470 | See \`config.log' for more details." >&2;} |
|
|
9471 | { (exit 77); exit 77; }; } |
|
|
9472 | else |
|
|
9473 | ac_cv_sizeof_int_p=0 |
|
|
9474 | fi ;; |
|
|
9475 | esac |
|
|
9476 | else |
|
|
9477 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9478 | /* confdefs.h. */ |
|
|
9479 | _ACEOF |
|
|
9480 | cat confdefs.h >>conftest.$ac_ext |
|
|
9481 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9482 | /* end confdefs.h. */ |
|
|
9483 | $ac_includes_default |
|
|
9484 | typedef int * ac__type_sizeof_; |
|
|
9485 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9486 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9487 | #include <stdio.h> |
|
|
9488 | #include <stdlib.h> |
|
|
9489 | int |
|
|
9490 | main () |
|
|
9491 | { |
|
|
9492 | |
|
|
9493 | FILE *f = fopen ("conftest.val", "w"); |
|
|
9494 | if (! f) |
|
|
9495 | return 1; |
|
|
9496 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
9497 | { |
|
|
9498 | long int i = longval (); |
|
|
9499 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9500 | return 1; |
|
|
9501 | fprintf (f, "%ld\n", i); |
|
|
9502 | } |
|
|
9503 | else |
|
|
9504 | { |
|
|
9505 | unsigned long int i = ulongval (); |
|
|
9506 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9507 | return 1; |
|
|
9508 | fprintf (f, "%lu\n", i); |
|
|
9509 | } |
|
|
9510 | return ferror (f) || fclose (f) != 0; |
|
|
9511 | |
|
|
9512 | ; |
|
|
9513 | return 0; |
|
|
9514 | } |
|
|
9515 | _ACEOF |
|
|
9516 | rm -f conftest$ac_exeext |
|
|
9517 | if { (ac_try="$ac_link" |
|
|
9518 | case "(($ac_try" in |
|
|
9519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9520 | *) ac_try_echo=$ac_try;; |
|
|
9521 | esac |
|
|
9522 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9523 | (eval "$ac_link") 2>&5 |
|
|
9524 | ac_status=$? |
|
|
9525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9526 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
9527 | { (case "(($ac_try" in |
|
|
9528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9529 | *) ac_try_echo=$ac_try;; |
|
|
9530 | esac |
|
|
9531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9532 | (eval "$ac_try") 2>&5 |
|
|
9533 | ac_status=$? |
|
|
9534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9535 | (exit $ac_status); }; }; then |
|
|
9536 | ac_cv_sizeof_int_p=`cat conftest.val` |
|
|
9537 | else |
|
|
9538 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
9539 | echo "$as_me: failed program was:" >&5 |
|
|
9540 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9541 | |
|
|
9542 | ( exit $ac_status ) |
|
|
9543 | if test "$ac_cv_type_int_p" = yes; then |
|
|
9544 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *) |
|
|
9545 | See \`config.log' for more details." >&5 |
|
|
9546 | echo "$as_me: error: cannot compute sizeof (int *) |
|
|
9547 | See \`config.log' for more details." >&2;} |
|
|
9548 | { (exit 77); exit 77; }; } |
|
|
9549 | else |
|
|
9550 | ac_cv_sizeof_int_p=0 |
|
|
9551 | fi |
|
|
9552 | fi |
|
|
9553 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
9554 | fi |
|
|
9555 | rm -f conftest.val |
|
|
9556 | fi |
|
|
9557 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5 |
|
|
9558 | echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; } |
|
|
9559 | |
|
|
9560 | |
|
|
9561 | |
|
|
9562 | cat >>confdefs.h <<_ACEOF |
|
|
9563 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p |
|
|
9564 | _ACEOF |
|
|
9565 | |
|
|
9566 | |
|
|
9567 | |
|
|
9568 | |
|
|
9569 | { echo "$as_me:$LINENO: checking for int16_t" >&5 |
|
|
9570 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } |
|
|
9571 | if test "${rxvt_cv_int16_t+set}" = set; then |
|
|
9572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9573 | else |
|
|
9574 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9575 | /* confdefs.h. */ |
|
|
9576 | _ACEOF |
|
|
9577 | cat confdefs.h >>conftest.$ac_ext |
|
|
9578 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9579 | /* end confdefs.h. */ |
|
|
9580 | #include <stdint.h> |
|
|
9581 | int |
|
|
9582 | main () |
|
|
9583 | { |
|
|
9584 | int16_t dummy; |
|
|
9585 | ; |
|
|
9586 | return 0; |
|
|
9587 | } |
|
|
9588 | _ACEOF |
|
|
9589 | rm -f conftest.$ac_objext |
|
|
9590 | if { (ac_try="$ac_compile" |
|
|
9591 | case "(($ac_try" in |
|
|
9592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9593 | *) ac_try_echo=$ac_try;; |
|
|
9594 | esac |
|
|
9595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9596 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9597 | ac_status=$? |
|
|
9598 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9599 | rm -f conftest.er1 |
|
|
9600 | cat conftest.err >&5 |
|
|
9601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9602 | (exit $ac_status); } && { |
|
|
9603 | test -z "$ac_cxx_werror_flag" || |
|
|
9604 | test ! -s conftest.err |
|
|
9605 | } && test -s conftest.$ac_objext; then |
|
|
9606 | rxvt_cv_int16_t=yes |
|
|
9607 | else |
|
|
9608 | echo "$as_me: failed program was:" >&5 |
|
|
9609 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9610 | |
|
|
9611 | if test "$ac_cv_sizeof_char" -ge 2; then |
|
|
9612 | rxvt_cv_int16_t=" char" |
|
|
9613 | else |
|
|
9614 | if test "$ac_cv_sizeof_short" -ge 2; then |
|
|
9615 | rxvt_cv_int16_t=" short" |
|
|
9616 | else |
|
|
9617 | if test "$ac_cv_sizeof_int" -ge 2; then |
|
|
9618 | rxvt_cv_int16_t=" int" |
|
|
9619 | else |
|
|
9620 | if test "$ac_cv_sizeof_long" -ge 2; then |
|
|
9621 | rxvt_cv_int16_t=" long" |
|
|
9622 | else |
|
|
9623 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
|
|
9624 | rxvt_cv_int16_t=" long long" |
|
|
9625 | else |
|
|
9626 | rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default |
|
|
9627 | fi |
|
|
9628 | fi |
|
|
9629 | fi |
|
|
9630 | fi |
|
|
9631 | fi |
|
|
9632 | fi |
|
|
9633 | |
|
|
9634 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9635 | fi |
|
|
9636 | { echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5 |
|
|
9637 | echo "${ECHO_T}$rxvt_cv_int16_t" >&6; } |
|
|
9638 | if test x"$rxvt_cv_int16_t" != xyes; then |
|
|
9639 | rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;" |
|
|
9640 | else |
|
|
9641 | if test x"" = x; then |
|
|
9642 | rxvt_int16_typedef="/* typedef short int16_t; */" |
|
|
9643 | else |
|
|
9644 | rxvt_int16_typedef="/* typedef short int16_t; */" |
|
|
9645 | fi |
|
|
9646 | fi |
|
|
9647 | |
|
|
9648 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 |
|
|
9649 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } |
|
|
9650 | if test "${rxvt_cv_uint16_t+set}" = set; then |
|
|
9651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9652 | else |
|
|
9653 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9654 | /* confdefs.h. */ |
|
|
9655 | _ACEOF |
|
|
9656 | cat confdefs.h >>conftest.$ac_ext |
|
|
9657 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9658 | /* end confdefs.h. */ |
|
|
9659 | #include <stdint.h> |
|
|
9660 | int |
|
|
9661 | main () |
|
|
9662 | { |
|
|
9663 | uint16_t dummy; |
|
|
9664 | ; |
|
|
9665 | return 0; |
|
|
9666 | } |
|
|
9667 | _ACEOF |
|
|
9668 | rm -f conftest.$ac_objext |
|
|
9669 | if { (ac_try="$ac_compile" |
|
|
9670 | case "(($ac_try" in |
|
|
9671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9672 | *) ac_try_echo=$ac_try;; |
|
|
9673 | esac |
|
|
9674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9675 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9676 | ac_status=$? |
|
|
9677 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9678 | rm -f conftest.er1 |
|
|
9679 | cat conftest.err >&5 |
|
|
9680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9681 | (exit $ac_status); } && { |
|
|
9682 | test -z "$ac_cxx_werror_flag" || |
|
|
9683 | test ! -s conftest.err |
|
|
9684 | } && test -s conftest.$ac_objext; then |
|
|
9685 | rxvt_cv_uint16_t=yes |
|
|
9686 | else |
|
|
9687 | echo "$as_me: failed program was:" >&5 |
|
|
9688 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9689 | |
|
|
9690 | if test "$ac_cv_sizeof_char" -ge 2; then |
|
|
9691 | rxvt_cv_uint16_t="unsigned char" |
|
|
9692 | else |
|
|
9693 | if test "$ac_cv_sizeof_short" -ge 2; then |
|
|
9694 | rxvt_cv_uint16_t="unsigned short" |
|
|
9695 | else |
|
|
9696 | if test "$ac_cv_sizeof_int" -ge 2; then |
|
|
9697 | rxvt_cv_uint16_t="unsigned int" |
|
|
9698 | else |
|
|
9699 | if test "$ac_cv_sizeof_long" -ge 2; then |
|
|
9700 | rxvt_cv_uint16_t="unsigned long" |
|
|
9701 | else |
|
|
9702 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
|
|
9703 | rxvt_cv_uint16_t="unsigned long long" |
|
|
9704 | else |
|
|
9705 | rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default |
|
|
9706 | fi |
|
|
9707 | fi |
|
|
9708 | fi |
|
|
9709 | fi |
|
|
9710 | fi |
|
|
9711 | fi |
|
|
9712 | |
|
|
9713 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9714 | fi |
|
|
9715 | { echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5 |
|
|
9716 | echo "${ECHO_T}$rxvt_cv_uint16_t" >&6; } |
|
|
9717 | if test x"$rxvt_cv_uint16_t" != xyes; then |
|
|
9718 | rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;" |
|
|
9719 | else |
|
|
9720 | if test x"unsigned" = x; then |
|
|
9721 | rxvt_uint16_typedef="/* typedef short uint16_t; */" |
|
|
9722 | else |
|
|
9723 | rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */" |
|
|
9724 | fi |
|
|
9725 | fi |
|
|
9726 | |
|
|
9727 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
|
|
9728 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
|
|
9729 | if test "${rxvt_cv_int32_t+set}" = set; then |
|
|
9730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9731 | else |
|
|
9732 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9733 | /* confdefs.h. */ |
|
|
9734 | _ACEOF |
|
|
9735 | cat confdefs.h >>conftest.$ac_ext |
|
|
9736 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9737 | /* end confdefs.h. */ |
|
|
9738 | #include <stdint.h> |
|
|
9739 | int |
|
|
9740 | main () |
|
|
9741 | { |
|
|
9742 | int32_t dummy; |
|
|
9743 | ; |
|
|
9744 | return 0; |
|
|
9745 | } |
|
|
9746 | _ACEOF |
|
|
9747 | rm -f conftest.$ac_objext |
|
|
9748 | if { (ac_try="$ac_compile" |
|
|
9749 | case "(($ac_try" in |
|
|
9750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9751 | *) ac_try_echo=$ac_try;; |
|
|
9752 | esac |
|
|
9753 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9754 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9755 | ac_status=$? |
|
|
9756 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9757 | rm -f conftest.er1 |
|
|
9758 | cat conftest.err >&5 |
|
|
9759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9760 | (exit $ac_status); } && { |
|
|
9761 | test -z "$ac_cxx_werror_flag" || |
|
|
9762 | test ! -s conftest.err |
|
|
9763 | } && test -s conftest.$ac_objext; then |
|
|
9764 | rxvt_cv_int32_t=yes |
|
|
9765 | else |
|
|
9766 | echo "$as_me: failed program was:" >&5 |
|
|
9767 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9768 | |
|
|
9769 | if test "$ac_cv_sizeof_char" -ge 4; then |
|
|
9770 | rxvt_cv_int32_t=" char" |
|
|
9771 | else |
|
|
9772 | if test "$ac_cv_sizeof_short" -ge 4; then |
|
|
9773 | rxvt_cv_int32_t=" short" |
|
|
9774 | else |
|
|
9775 | if test "$ac_cv_sizeof_int" -ge 4; then |
|
|
9776 | rxvt_cv_int32_t=" int" |
|
|
9777 | else |
|
|
9778 | if test "$ac_cv_sizeof_long" -ge 4; then |
|
|
9779 | rxvt_cv_int32_t=" long" |
|
|
9780 | else |
|
|
9781 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
|
|
9782 | rxvt_cv_int32_t=" long long" |
|
|
9783 | else |
|
|
9784 | rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default |
|
|
9785 | fi |
|
|
9786 | fi |
|
|
9787 | fi |
|
|
9788 | fi |
|
|
9789 | fi |
|
|
9790 | fi |
|
|
9791 | |
|
|
9792 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9793 | fi |
|
|
9794 | { echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5 |
|
|
9795 | echo "${ECHO_T}$rxvt_cv_int32_t" >&6; } |
|
|
9796 | if test x"$rxvt_cv_int32_t" != xyes; then |
|
|
9797 | rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;" |
|
|
9798 | else |
|
|
9799 | if test x"" = x; then |
|
|
9800 | rxvt_int32_typedef="/* typedef int int32_t; */" |
|
|
9801 | else |
|
|
9802 | rxvt_int32_typedef="/* typedef int int32_t; */" |
|
|
9803 | fi |
|
|
9804 | fi |
|
|
9805 | |
|
|
9806 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
|
|
9807 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
|
|
9808 | if test "${rxvt_cv_uint32_t+set}" = set; then |
|
|
9809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9810 | else |
|
|
9811 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9812 | /* confdefs.h. */ |
|
|
9813 | _ACEOF |
|
|
9814 | cat confdefs.h >>conftest.$ac_ext |
|
|
9815 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9816 | /* end confdefs.h. */ |
|
|
9817 | #include <stdint.h> |
|
|
9818 | int |
|
|
9819 | main () |
|
|
9820 | { |
|
|
9821 | uint32_t dummy; |
|
|
9822 | ; |
|
|
9823 | return 0; |
|
|
9824 | } |
|
|
9825 | _ACEOF |
|
|
9826 | rm -f conftest.$ac_objext |
|
|
9827 | if { (ac_try="$ac_compile" |
|
|
9828 | case "(($ac_try" in |
|
|
9829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9830 | *) ac_try_echo=$ac_try;; |
|
|
9831 | esac |
|
|
9832 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9833 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9834 | ac_status=$? |
|
|
9835 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9836 | rm -f conftest.er1 |
|
|
9837 | cat conftest.err >&5 |
|
|
9838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9839 | (exit $ac_status); } && { |
|
|
9840 | test -z "$ac_cxx_werror_flag" || |
|
|
9841 | test ! -s conftest.err |
|
|
9842 | } && test -s conftest.$ac_objext; then |
|
|
9843 | rxvt_cv_uint32_t=yes |
|
|
9844 | else |
|
|
9845 | echo "$as_me: failed program was:" >&5 |
|
|
9846 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9847 | |
|
|
9848 | if test "$ac_cv_sizeof_char" -ge 4; then |
|
|
9849 | rxvt_cv_uint32_t="unsigned char" |
|
|
9850 | else |
|
|
9851 | if test "$ac_cv_sizeof_short" -ge 4; then |
|
|
9852 | rxvt_cv_uint32_t="unsigned short" |
|
|
9853 | else |
|
|
9854 | if test "$ac_cv_sizeof_int" -ge 4; then |
|
|
9855 | rxvt_cv_uint32_t="unsigned int" |
|
|
9856 | else |
|
|
9857 | if test "$ac_cv_sizeof_long" -ge 4; then |
|
|
9858 | rxvt_cv_uint32_t="unsigned long" |
|
|
9859 | else |
|
|
9860 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
|
|
9861 | rxvt_cv_uint32_t="unsigned long long" |
|
|
9862 | else |
|
|
9863 | rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default |
|
|
9864 | fi |
|
|
9865 | fi |
|
|
9866 | fi |
|
|
9867 | fi |
|
|
9868 | fi |
|
|
9869 | fi |
|
|
9870 | |
|
|
9871 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9872 | fi |
|
|
9873 | { echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5 |
|
|
9874 | echo "${ECHO_T}$rxvt_cv_uint32_t" >&6; } |
|
|
9875 | if test x"$rxvt_cv_uint32_t" != xyes; then |
|
|
9876 | rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;" |
|
|
9877 | else |
|
|
9878 | if test x"unsigned" = x; then |
|
|
9879 | rxvt_uint32_typedef="/* typedef int uint32_t; */" |
|
|
9880 | else |
|
|
9881 | rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" |
|
|
9882 | fi |
|
|
9883 | fi |
|
|
9884 | |
|
|
9885 | if test "$ac_cv_sizeof_int_p" -eq 8; then |
|
|
9886 | rxvt_intp_define="#define intp_t int64_t" |
|
|
9887 | rxvt_u_intp_define="#define u_intp_t u_int64_t" |
|
|
9888 | else |
|
|
9889 | if test "$ac_cv_sizeof_int_p" -eq 4; then |
|
|
9890 | rxvt_intp_define="#define intp_t int32_t" |
|
|
9891 | rxvt_u_intp_define="#define u_intp_t u_int32_t" |
|
|
9892 | else |
|
|
9893 | if test "$ac_cv_sizeof_int_p" -eq 2; then |
|
|
9894 | rxvt_intp_define="#define intp_t int16_t" |
|
|
9895 | rxvt_u_intp_define="#define u_intp_t u_int16_t" |
|
|
9896 | else |
|
|
9897 | rxvt_intp_define="#error set intp_t" |
|
|
9898 | rxvt_u_intp_define="#error set u_intp_t" |
|
|
9899 | fi |
|
|
9900 | fi |
|
|
9901 | fi |
|
|
9902 | |
|
|
9903 | |
|
|
9904 | |
|
|
9905 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
|
|
9906 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } |
|
|
9907 | if test "${ac_cv_type_signal+set}" = set; then |
|
|
9908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9909 | else |
|
|
9910 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9911 | /* confdefs.h. */ |
|
|
9912 | _ACEOF |
|
|
9913 | cat confdefs.h >>conftest.$ac_ext |
|
|
9914 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9915 | /* end confdefs.h. */ |
|
|
9916 | #include <sys/types.h> |
|
|
9917 | #include <signal.h> |
|
|
9918 | |
|
|
9919 | int |
|
|
9920 | main () |
|
|
9921 | { |
|
|
9922 | return *(signal (0, 0)) (0) == 1; |
|
|
9923 | ; |
|
|
9924 | return 0; |
|
|
9925 | } |
|
|
9926 | _ACEOF |
|
|
9927 | rm -f conftest.$ac_objext |
|
|
9928 | if { (ac_try="$ac_compile" |
|
|
9929 | case "(($ac_try" in |
|
|
9930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9931 | *) ac_try_echo=$ac_try;; |
|
|
9932 | esac |
|
|
9933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9934 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9935 | ac_status=$? |
|
|
9936 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9937 | rm -f conftest.er1 |
|
|
9938 | cat conftest.err >&5 |
|
|
9939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9940 | (exit $ac_status); } && { |
|
|
9941 | test -z "$ac_cxx_werror_flag" || |
|
|
9942 | test ! -s conftest.err |
|
|
9943 | } && test -s conftest.$ac_objext; then |
|
|
9944 | ac_cv_type_signal=int |
|
|
9945 | else |
|
|
9946 | echo "$as_me: failed program was:" >&5 |
|
|
9947 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9948 | |
|
|
9949 | ac_cv_type_signal=void |
|
|
9950 | fi |
|
|
9951 | |
|
|
9952 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9953 | fi |
|
|
9954 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
|
|
9955 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
|
|
9956 | |
|
|
9957 | cat >>confdefs.h <<_ACEOF |
|
|
9958 | #define RETSIGTYPE $ac_cv_type_signal |
|
|
9959 | _ACEOF |
|
|
9960 | |
|
|
9961 | |
|
|
9962 | |
|
|
9963 | |
|
|
9964 | |
|
|
9965 | |
|
|
9966 | for ac_func in \ |
8487 | for ac_func in unsetenv |
9967 | unsetenv \ |
|
|
9968 | setutent \ |
|
|
9969 | on_exit \ |
|
|
9970 | |
|
|
9971 | do |
8488 | do |
9972 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8489 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9973 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8490 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9974 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
8491 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
9975 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
8492 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
… | |
… | |
10114 | |
8631 | |
10115 | |
8632 | |
10116 | |
8633 | |
10117 | |
8634 | |
10118 | for ac_func in \ |
8635 | for ac_func in \ |
10119 | ttyslot \ |
|
|
10120 | updwtmp \ |
8636 | updwtmp \ |
10121 | updwtmpx \ |
8637 | updwtmpx \ |
|
|
8638 | updlastlogx \ |
10122 | |
8639 | |
10123 | do |
8640 | do |
10124 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8641 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10125 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8642 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10126 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
8643 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
… | |
… | |
10212 | fi |
8729 | fi |
10213 | done |
8730 | done |
10214 | |
8731 | |
10215 | |
8732 | |
10216 | |
8733 | |
10217 | |
|
|
10218 | |
|
|
10219 | for ac_header in \ |
8734 | for ac_header in lastlog.h |
10220 | utmp.h \ |
|
|
10221 | utmpx.h \ |
|
|
10222 | lastlog.h \ |
|
|
10223 | |
|
|
10224 | do |
8735 | do |
10225 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
8736 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10226 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8737 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10227 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8738 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10228 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
8739 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
… | |
… | |
10359 | |
8870 | |
10360 | done |
8871 | done |
10361 | |
8872 | |
10362 | |
8873 | |
10363 | |
8874 | |
10364 | if test "${ac_cv_header_utmp_h+set}" = set; then |
8875 | |
|
|
8876 | for ac_header in utmp.h |
|
|
8877 | do |
|
|
8878 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
8879 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10365 | { echo "$as_me:$LINENO: checking for utmp.h" >&5 |
8880 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10366 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } |
8881 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10367 | if test "${ac_cv_header_utmp_h+set}" = set; then |
8882 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10369 | fi |
8884 | fi |
|
|
8885 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10370 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
8886 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
10371 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } |
8887 | echo "${ECHO_T}$ac_res" >&6; } |
10372 | else |
8888 | else |
10373 | # Is the header compilable? |
8889 | # Is the header compilable? |
10374 | { echo "$as_me:$LINENO: checking utmp.h usability" >&5 |
8890 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10375 | echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6; } |
8891 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
10376 | cat >conftest.$ac_ext <<_ACEOF |
8892 | cat >conftest.$ac_ext <<_ACEOF |
10377 | /* confdefs.h. */ |
8893 | /* confdefs.h. */ |
10378 | _ACEOF |
8894 | _ACEOF |
10379 | cat confdefs.h >>conftest.$ac_ext |
8895 | cat confdefs.h >>conftest.$ac_ext |
10380 | cat >>conftest.$ac_ext <<_ACEOF |
8896 | cat >>conftest.$ac_ext <<_ACEOF |
10381 | /* end confdefs.h. */ |
8897 | /* end confdefs.h. */ |
10382 | $ac_includes_default |
8898 | $ac_includes_default |
10383 | #include <utmp.h> |
8899 | #include <$ac_header> |
10384 | _ACEOF |
8900 | _ACEOF |
10385 | rm -f conftest.$ac_objext |
8901 | rm -f conftest.$ac_objext |
10386 | if { (ac_try="$ac_compile" |
8902 | if { (ac_try="$ac_compile" |
10387 | case "(($ac_try" in |
8903 | case "(($ac_try" in |
10388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
… | |
… | |
10410 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8926 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10411 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8927 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10412 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
8928 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
10413 | |
8929 | |
10414 | # Is the header present? |
8930 | # Is the header present? |
10415 | { echo "$as_me:$LINENO: checking utmp.h presence" >&5 |
8931 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10416 | echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6; } |
8932 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
10417 | cat >conftest.$ac_ext <<_ACEOF |
8933 | cat >conftest.$ac_ext <<_ACEOF |
10418 | /* confdefs.h. */ |
8934 | /* confdefs.h. */ |
10419 | _ACEOF |
8935 | _ACEOF |
10420 | cat confdefs.h >>conftest.$ac_ext |
8936 | cat confdefs.h >>conftest.$ac_ext |
10421 | cat >>conftest.$ac_ext <<_ACEOF |
8937 | cat >>conftest.$ac_ext <<_ACEOF |
10422 | /* end confdefs.h. */ |
8938 | /* end confdefs.h. */ |
10423 | #include <utmp.h> |
8939 | #include <$ac_header> |
10424 | _ACEOF |
8940 | _ACEOF |
10425 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8941 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10426 | case "(($ac_try" in |
8942 | case "(($ac_try" in |
10427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10428 | *) ac_try_echo=$ac_try;; |
8944 | *) ac_try_echo=$ac_try;; |
… | |
… | |
10451 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
8967 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
10452 | |
8968 | |
10453 | # So? What about this header? |
8969 | # So? What about this header? |
10454 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
8970 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
10455 | yes:no: ) |
8971 | yes:no: ) |
10456 | { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
8972 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10457 | echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
8973 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
10458 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5 |
8974 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10459 | echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;} |
8975 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
10460 | ac_header_preproc=yes |
8976 | ac_header_preproc=yes |
10461 | ;; |
8977 | ;; |
10462 | no:yes:* ) |
8978 | no:yes:* ) |
10463 | { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5 |
8979 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10464 | echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;} |
8980 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
10465 | { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5 |
8981 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10466 | echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;} |
8982 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
10467 | { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5 |
8983 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
10468 | echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;} |
8984 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
10469 | { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5 |
8985 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
10470 | echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;} |
8986 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
10471 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5 |
8987 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10472 | echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;} |
8988 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
10473 | { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5 |
8989 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10474 | echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;} |
8990 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
10475 | |
8991 | |
10476 | ;; |
8992 | ;; |
10477 | esac |
8993 | esac |
10478 | { echo "$as_me:$LINENO: checking for utmp.h" >&5 |
8994 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10479 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } |
8995 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10480 | if test "${ac_cv_header_utmp_h+set}" = set; then |
8996 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10481 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10482 | else |
8998 | else |
10483 | ac_cv_header_utmp_h=$ac_header_preproc |
8999 | eval "$as_ac_Header=\$ac_header_preproc" |
10484 | fi |
9000 | fi |
|
|
9001 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10485 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
9002 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
10486 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } |
9003 | echo "${ECHO_T}$ac_res" >&6; } |
10487 | |
9004 | |
10488 | fi |
9005 | fi |
10489 | if test $ac_cv_header_utmp_h = yes; then |
9006 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
9007 | cat >>confdefs.h <<_ACEOF |
|
|
9008 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
9009 | _ACEOF |
10490 | { echo "$as_me:$LINENO: checking for struct utmp" >&5 |
9010 | { echo "$as_me:$LINENO: checking for struct utmp" >&5 |
10491 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; } |
9011 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; } |
10492 | if test "${struct_utmp+set}" = set; then |
9012 | if test "${struct_utmp+set}" = set; then |
10493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10494 | else |
9014 | else |
10495 | cat >conftest.$ac_ext <<_ACEOF |
9015 | cat >conftest.$ac_ext <<_ACEOF |
… | |
… | |
10662 | |
9182 | |
10663 | fi |
9183 | fi |
10664 | |
9184 | |
10665 | fi |
9185 | fi |
10666 | |
9186 | |
|
|
9187 | done |
10667 | |
9188 | |
10668 | |
9189 | |
10669 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
9190 | |
|
|
9191 | for ac_header in utmpx.h |
|
|
9192 | do |
|
|
9193 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
9194 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10670 | { echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
9195 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10671 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } |
9196 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10672 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
9197 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10674 | fi |
9199 | fi |
|
|
9200 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10675 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
9201 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
10676 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } |
9202 | echo "${ECHO_T}$ac_res" >&6; } |
10677 | else |
9203 | else |
10678 | # Is the header compilable? |
9204 | # Is the header compilable? |
10679 | { echo "$as_me:$LINENO: checking utmpx.h usability" >&5 |
9205 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10680 | echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6; } |
9206 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
10681 | cat >conftest.$ac_ext <<_ACEOF |
9207 | cat >conftest.$ac_ext <<_ACEOF |
10682 | /* confdefs.h. */ |
9208 | /* confdefs.h. */ |
10683 | _ACEOF |
9209 | _ACEOF |
10684 | cat confdefs.h >>conftest.$ac_ext |
9210 | cat confdefs.h >>conftest.$ac_ext |
10685 | cat >>conftest.$ac_ext <<_ACEOF |
9211 | cat >>conftest.$ac_ext <<_ACEOF |
10686 | /* end confdefs.h. */ |
9212 | /* end confdefs.h. */ |
10687 | $ac_includes_default |
9213 | $ac_includes_default |
10688 | #include <utmpx.h> |
9214 | #include <$ac_header> |
10689 | _ACEOF |
9215 | _ACEOF |
10690 | rm -f conftest.$ac_objext |
9216 | rm -f conftest.$ac_objext |
10691 | if { (ac_try="$ac_compile" |
9217 | if { (ac_try="$ac_compile" |
10692 | case "(($ac_try" in |
9218 | case "(($ac_try" in |
10693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
… | |
… | |
10715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9241 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10716 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9242 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10717 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
9243 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
10718 | |
9244 | |
10719 | # Is the header present? |
9245 | # Is the header present? |
10720 | { echo "$as_me:$LINENO: checking utmpx.h presence" >&5 |
9246 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10721 | echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6; } |
9247 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
10722 | cat >conftest.$ac_ext <<_ACEOF |
9248 | cat >conftest.$ac_ext <<_ACEOF |
10723 | /* confdefs.h. */ |
9249 | /* confdefs.h. */ |
10724 | _ACEOF |
9250 | _ACEOF |
10725 | cat confdefs.h >>conftest.$ac_ext |
9251 | cat confdefs.h >>conftest.$ac_ext |
10726 | cat >>conftest.$ac_ext <<_ACEOF |
9252 | cat >>conftest.$ac_ext <<_ACEOF |
10727 | /* end confdefs.h. */ |
9253 | /* end confdefs.h. */ |
10728 | #include <utmpx.h> |
9254 | #include <$ac_header> |
10729 | _ACEOF |
9255 | _ACEOF |
10730 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9256 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10731 | case "(($ac_try" in |
9257 | case "(($ac_try" in |
10732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10733 | *) ac_try_echo=$ac_try;; |
9259 | *) ac_try_echo=$ac_try;; |
… | |
… | |
10756 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
9282 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
10757 | |
9283 | |
10758 | # So? What about this header? |
9284 | # So? What about this header? |
10759 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
9285 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
10760 | yes:no: ) |
9286 | yes:no: ) |
10761 | { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
9287 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10762 | echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
9288 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
10763 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5 |
9289 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10764 | echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;} |
9290 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
10765 | ac_header_preproc=yes |
9291 | ac_header_preproc=yes |
10766 | ;; |
9292 | ;; |
10767 | no:yes:* ) |
9293 | no:yes:* ) |
10768 | { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5 |
9294 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10769 | echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;} |
9295 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
10770 | { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5 |
9296 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10771 | echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;} |
9297 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
10772 | { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5 |
9298 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
10773 | echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;} |
9299 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
10774 | { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5 |
9300 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
10775 | echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;} |
9301 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
10776 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5 |
9302 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10777 | echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;} |
9303 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
10778 | { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5 |
9304 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10779 | echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;} |
9305 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
10780 | |
9306 | |
10781 | ;; |
9307 | ;; |
10782 | esac |
9308 | esac |
10783 | { echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
9309 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10784 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } |
9310 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10785 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
9311 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10786 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10787 | else |
9313 | else |
10788 | ac_cv_header_utmpx_h=$ac_header_preproc |
9314 | eval "$as_ac_Header=\$ac_header_preproc" |
10789 | fi |
9315 | fi |
|
|
9316 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10790 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
9317 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
10791 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } |
9318 | echo "${ECHO_T}$ac_res" >&6; } |
10792 | |
9319 | |
10793 | fi |
9320 | fi |
10794 | if test $ac_cv_header_utmpx_h = yes; then |
9321 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
9322 | cat >>confdefs.h <<_ACEOF |
|
|
9323 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
9324 | _ACEOF |
10795 | { echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
9325 | { echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
10796 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; } |
9326 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; } |
10797 | if test "${struct_utmpx+set}" = set; then |
9327 | if test "${struct_utmpx+set}" = set; then |
10798 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10799 | else |
9329 | else |
10800 | cat >conftest.$ac_ext <<_ACEOF |
9330 | cat >conftest.$ac_ext <<_ACEOF |
… | |
… | |
10967 | |
9497 | |
10968 | fi |
9498 | fi |
10969 | |
9499 | |
10970 | fi |
9500 | fi |
10971 | |
9501 | |
|
|
9502 | done |
10972 | |
9503 | |
10973 | { echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
9504 | { echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
10974 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } |
9505 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } |
10975 | if test "${struct_lastlog+set}" = set; then |
9506 | if test "${struct_lastlog+set}" = set; then |
10976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
11547 | |
10078 | |
11548 | cat >>confdefs.h <<_ACEOF |
10079 | cat >>confdefs.h <<_ACEOF |
11549 | #define LASTLOG_FILE "$path_lastlog" |
10080 | #define LASTLOG_FILE "$path_lastlog" |
11550 | _ACEOF |
10081 | _ACEOF |
11551 | |
10082 | |
11552 | if test -d "$path_lastlog"; then |
|
|
11553 | |
|
|
11554 | cat >>confdefs.h <<\_ACEOF |
|
|
11555 | #define LASTLOG_IS_DIR 1 |
|
|
11556 | _ACEOF |
|
|
11557 | |
|
|
11558 | fi |
|
|
11559 | fi |
10083 | fi |
11560 | |
10084 | |
11561 | { echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
10085 | { echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
11562 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } |
10086 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } |
11563 | if test "${path_lastlogx+set}" = set; then |
10087 | if test "${path_lastlogx+set}" = set; then |
… | |
… | |
11645 | |
10169 | |
11646 | fi |
10170 | fi |
11647 | |
10171 | |
11648 | |
10172 | |
11649 | |
10173 | |
11650 | { echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 |
|
|
11651 | echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6; } |
|
|
11652 | if test "${rxvt_cv_path_ttytab+set}" = set; then |
|
|
11653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11654 | else |
|
|
11655 | for ttys_file in /etc/ttys /etc/ttytab; |
|
|
11656 | do |
|
|
11657 | if test -f "$ttys_file" ; then |
|
|
11658 | rxvt_cv_path_ttytab=$ttys_file |
|
|
11659 | break |
|
|
11660 | fi |
|
|
11661 | done |
|
|
11662 | |
10174 | |
11663 | fi |
|
|
11664 | { echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5 |
|
|
11665 | echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6; } |
|
|
11666 | if test x$rxvt_cv_path_ttytab != x; then |
|
|
11667 | |
|
|
11668 | cat >>confdefs.h <<_ACEOF |
|
|
11669 | #define TTYTAB_FILENAME "$rxvt_cv_path_ttytab" |
|
|
11670 | _ACEOF |
|
|
11671 | |
|
|
11672 | fi |
|
|
11673 | |
|
|
11674 | |
|
|
11675 | ac_save_LIBS=$LIBS |
10175 | save_LIBS=$LIBS |
11676 | ac_save_CFLAGS=$CFLAGS |
10176 | save_CFLAGS=$CFLAGS |
11677 | CFLAGS="$CFLAGS $X_CFLAGS" |
10177 | CFLAGS="$CFLAGS $X_CFLAGS" |
11678 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
10178 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
|
|
10179 | if test x$support_xim = xyes; then |
11679 | { echo "$as_me:$LINENO: checking for working Xlocale" >&5 |
10180 | { echo "$as_me:$LINENO: checking for working Xlocale" >&5 |
11680 | echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } |
10181 | echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } |
11681 | if test "${rxvt_cv_func_xlocale+set}" = set; then |
10182 | if test "${rxvt_cv_func_xlocale+set}" = set; then |
11682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11683 | else |
10184 | else |
11684 | if test "$cross_compiling" = yes; then |
10185 | if test "$cross_compiling" = yes; then |
11685 | : |
10186 | : |
11686 | else |
10187 | else |
11687 | cat >conftest.$ac_ext <<_ACEOF |
10188 | cat >conftest.$ac_ext <<_ACEOF |
11688 | /* confdefs.h. */ |
10189 | /* confdefs.h. */ |
11689 | _ACEOF |
10190 | _ACEOF |
11690 | cat confdefs.h >>conftest.$ac_ext |
10191 | cat confdefs.h >>conftest.$ac_ext |
11691 | cat >>conftest.$ac_ext <<_ACEOF |
10192 | cat >>conftest.$ac_ext <<_ACEOF |
11692 | /* end confdefs.h. */ |
10193 | /* end confdefs.h. */ |
11693 | #include <X11/Xlib.h> |
10194 | #include <X11/Xlib.h> |
11694 | #include <stdlib.h> |
10195 | #include <stdlib.h> |
11695 | main() { |
10196 | main() { |
11696 | char *p; |
10197 | char *p; |
11697 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
10198 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
11698 | exit (XSupportsLocale() ? 0 : 1); |
10199 | exit (XSupportsLocale() ? 0 : 1); |
11699 | else |
10200 | else |
11700 | exit (1);} |
10201 | exit (1);} |
11701 | _ACEOF |
10202 | _ACEOF |
11702 | rm -f conftest$ac_exeext |
10203 | rm -f conftest$ac_exeext |
11703 | if { (ac_try="$ac_link" |
10204 | if { (ac_try="$ac_link" |
11704 | case "(($ac_try" in |
10205 | case "(($ac_try" in |
11705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
… | |
… | |
11717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10218 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11718 | (eval "$ac_try") 2>&5 |
10219 | (eval "$ac_try") 2>&5 |
11719 | ac_status=$? |
10220 | ac_status=$? |
11720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11721 | (exit $ac_status); }; }; then |
10222 | (exit $ac_status); }; }; then |
11722 | rxvt_cv_func_xlocale=yes |
10223 | rxvt_cv_func_xlocale=yes |
11723 | else |
10224 | else |
11724 | echo "$as_me: program exited with status $ac_status" >&5 |
10225 | echo "$as_me: program exited with status $ac_status" >&5 |
11725 | echo "$as_me: failed program was:" >&5 |
10226 | echo "$as_me: failed program was:" >&5 |
11726 | sed 's/^/| /' conftest.$ac_ext >&5 |
10227 | sed 's/^/| /' conftest.$ac_ext >&5 |
11727 | |
10228 | |
… | |
… | |
11733 | |
10234 | |
11734 | |
10235 | |
11735 | fi |
10236 | fi |
11736 | { echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 |
10237 | { echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 |
11737 | echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; } |
10238 | echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; } |
11738 | if test x$support_xim = xyes; then |
|
|
11739 | if test x$rxvt_cv_func_xlocale = xyes; then |
10239 | if test x$rxvt_cv_func_xlocale = xyes; then |
11740 | |
10240 | |
11741 | cat >>confdefs.h <<\_ACEOF |
10241 | cat >>confdefs.h <<\_ACEOF |
11742 | #define USE_XIM 1 |
10242 | #define USE_XIM 1 |
11743 | _ACEOF |
10243 | _ACEOF |
11744 | |
10244 | |
|
|
10245 | { echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
|
|
10246 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; } |
|
|
10247 | if test "${rxvt_broken_ximcb+set}" = set; then |
|
|
10248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10249 | else |
|
|
10250 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10251 | |
|
|
10252 | #include <X11/Xlib.h> |
|
|
10253 | |
|
|
10254 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
|
|
10255 | |
|
|
10256 | void f() { |
|
|
10257 | XIMCallback cb; |
|
|
10258 | cb.callback = im_destroy_cb; |
|
|
10259 | } |
|
|
10260 | |
|
|
10261 | _ACEOF |
|
|
10262 | rm -f conftest.$ac_objext |
|
|
10263 | if { (ac_try="$ac_compile" |
|
|
10264 | case "(($ac_try" in |
|
|
10265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10266 | *) ac_try_echo=$ac_try;; |
|
|
10267 | esac |
|
|
10268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10269 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10270 | ac_status=$? |
|
|
10271 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10272 | rm -f conftest.er1 |
|
|
10273 | cat conftest.err >&5 |
|
|
10274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10275 | (exit $ac_status); } && { |
|
|
10276 | test -z "$ac_cxx_werror_flag" || |
|
|
10277 | test ! -s conftest.err |
|
|
10278 | } && test -s conftest.$ac_objext; then |
|
|
10279 | rxvt_broken_ximcb=yes |
|
|
10280 | else |
|
|
10281 | echo "$as_me: failed program was:" >&5 |
|
|
10282 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10283 | |
|
|
10284 | rxvt_broken_ximcb=no |
|
|
10285 | fi |
|
|
10286 | |
|
|
10287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10288 | fi |
|
|
10289 | { echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5 |
|
|
10290 | echo "${ECHO_T}$rxvt_broken_ximcb" >&6; } |
|
|
10291 | |
|
|
10292 | if test x$rxvt_broken_ximcb = xyes; then |
|
|
10293 | |
|
|
10294 | cat >>confdefs.h <<\_ACEOF |
|
|
10295 | #define XIMCB_PROTO_BROKEN 1 |
|
|
10296 | _ACEOF |
|
|
10297 | |
|
|
10298 | fi |
11745 | fi |
10299 | fi |
11746 | fi |
10300 | fi |
11747 | |
10301 | |
11748 | { echo "$as_me:$LINENO: checking for working X setlocale" >&5 |
10302 | { echo "$as_me:$LINENO: checking for working X setlocale" >&5 |
11749 | echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; } |
10303 | echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; } |
… | |
… | |
11802 | cat >>confdefs.h <<\_ACEOF |
10356 | cat >>confdefs.h <<\_ACEOF |
11803 | #define HAVE_XSETLOCALE 1 |
10357 | #define HAVE_XSETLOCALE 1 |
11804 | _ACEOF |
10358 | _ACEOF |
11805 | |
10359 | |
11806 | fi |
10360 | fi |
11807 | LIBS=$ac_save_LIBS |
10361 | LIBS=$save_LIBS |
11808 | CFLAGS=$ac_save_CFLAGS |
10362 | CFLAGS=$save_CFLAGS |
11809 | |
10363 | |
11810 | { echo "$as_me:$LINENO: checking for working plain setlocale" >&5 |
10364 | { echo "$as_me:$LINENO: checking for working plain setlocale" >&5 |
11811 | echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } |
10365 | echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } |
11812 | if test "${rxvt_cv_func_setlocale+set}" = set; then |
10366 | if test "${rxvt_cv_func_setlocale+set}" = set; then |
11813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
12017 | echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} |
10571 | echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} |
12018 | { (exit 1); exit 1; }; } |
10572 | { (exit 1); exit 1; }; } |
12019 | fi |
10573 | fi |
12020 | |
10574 | |
12021 | |
10575 | |
12022 | { echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
|
|
12023 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; } |
|
|
12024 | if test "${rxvt_broken_ximcb+set}" = set; then |
|
|
12025 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12026 | else |
|
|
12027 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12028 | |
|
|
12029 | #include <X11/Xlib.h> |
|
|
12030 | |
|
|
12031 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
|
|
12032 | |
|
|
12033 | void f() { |
|
|
12034 | XIMCallback cb; |
|
|
12035 | cb.callback = im_destroy_cb; |
|
|
12036 | } |
|
|
12037 | |
|
|
12038 | _ACEOF |
|
|
12039 | rm -f conftest.$ac_objext |
|
|
12040 | if { (ac_try="$ac_compile" |
|
|
12041 | case "(($ac_try" in |
|
|
12042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
12043 | *) ac_try_echo=$ac_try;; |
|
|
12044 | esac |
|
|
12045 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
12046 | (eval "$ac_compile") 2>conftest.er1 |
|
|
12047 | ac_status=$? |
|
|
12048 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12049 | rm -f conftest.er1 |
|
|
12050 | cat conftest.err >&5 |
|
|
12051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12052 | (exit $ac_status); } && { |
|
|
12053 | test -z "$ac_cxx_werror_flag" || |
|
|
12054 | test ! -s conftest.err |
|
|
12055 | } && test -s conftest.$ac_objext; then |
|
|
12056 | rxvt_broken_ximcb=yes |
|
|
12057 | else |
|
|
12058 | echo "$as_me: failed program was:" >&5 |
|
|
12059 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12060 | |
|
|
12061 | rxvt_broken_ximcb=no |
|
|
12062 | fi |
|
|
12063 | |
|
|
12064 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
12065 | fi |
|
|
12066 | { echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5 |
|
|
12067 | echo "${ECHO_T}$rxvt_broken_ximcb" >&6; } |
|
|
12068 | |
|
|
12069 | if test x$rxvt_broken_ximcb = xyes; then |
|
|
12070 | |
|
|
12071 | cat >>confdefs.h <<\_ACEOF |
|
|
12072 | #define XIMCB_PROTO_BROKEN 1 |
|
|
12073 | _ACEOF |
|
|
12074 | |
|
|
12075 | fi |
|
|
12076 | |
10576 | |
12077 | |
10577 | |
12078 | |
10578 | |
12079 | |
10579 | |
12080 | |
10580 | |
… | |
… | |
12084 | pty.h \ |
10584 | pty.h \ |
12085 | util.h \ |
10585 | util.h \ |
12086 | libutil.h \ |
10586 | libutil.h \ |
12087 | sys/ioctl.h \ |
10587 | sys/ioctl.h \ |
12088 | sys/stropts.h \ |
10588 | sys/stropts.h \ |
|
|
10589 | stropts.h \ |
12089 | |
10590 | |
12090 | do |
10591 | do |
12091 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10592 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12092 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10593 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
12093 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10594 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
… | |
… | |
12761 | echo "${ECHO_T}no" >&6; } |
11262 | echo "${ECHO_T}no" >&6; } |
12762 | fi |
11263 | fi |
12763 | |
11264 | |
12764 | |
11265 | |
12765 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
11266 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
12766 | LIBS="$LIBS `$PKG_CONFIG xft --libs`" |
11267 | X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS" |
12767 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
11268 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
12768 | else |
11269 | else |
12769 | # Extract the first word of "xft-config", so it can be a program name with args. |
11270 | # Extract the first word of "xft-config", so it can be a program name with args. |
12770 | set dummy xft-config; ac_word=$2 |
11271 | set dummy xft-config; ac_word=$2 |
12771 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11272 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
… | |
… | |
12806 | echo "${ECHO_T}no" >&6; } |
11307 | echo "${ECHO_T}no" >&6; } |
12807 | fi |
11308 | fi |
12808 | |
11309 | |
12809 | |
11310 | |
12810 | if test $XFT_CONFIG != no; then |
11311 | if test $XFT_CONFIG != no; then |
12811 | LIBS="$LIBS `$XFT_CONFIG --libs`" |
11312 | X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" |
12812 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
11313 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
12813 | fi |
11314 | fi |
12814 | fi |
11315 | fi |
12815 | |
11316 | |
|
|
11317 | save_LIBS="$LIBS" |
|
|
11318 | LIBS="$LIBS $X_LIBS" |
12816 | |
11319 | |
12817 | for ac_header in X11/Xft/Xft.h |
11320 | for ac_header in X11/Xft/Xft.h |
12818 | do |
11321 | do |
12819 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11322 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12820 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11323 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
… | |
… | |
12953 | support_xft=no |
11456 | support_xft=no |
12954 | fi |
11457 | fi |
12955 | |
11458 | |
12956 | done |
11459 | done |
12957 | |
11460 | |
12958 | |
|
|
12959 | { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
11461 | { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
12960 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
11462 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
12961 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
11463 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
12962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12963 | else |
11465 | else |
12964 | ac_check_lib_save_LIBS=$LIBS |
11466 | ac_check_lib_save_LIBS=$LIBS |
… | |
… | |
13016 | LIBS=$ac_check_lib_save_LIBS |
11518 | LIBS=$ac_check_lib_save_LIBS |
13017 | fi |
11519 | fi |
13018 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
11520 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
13019 | echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } |
11521 | echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } |
13020 | if test $ac_cv_lib_Xft_XftDrawString32 = yes; then |
11522 | if test $ac_cv_lib_Xft_XftDrawString32 = yes; then |
13021 | cat >>confdefs.h <<_ACEOF |
11523 | : |
13022 | #define HAVE_LIBXFT 1 |
|
|
13023 | _ACEOF |
|
|
13024 | |
|
|
13025 | LIBS="-lXft $LIBS" |
|
|
13026 | |
|
|
13027 | else |
11524 | else |
13028 | support_xft=no |
11525 | support_xft=no |
13029 | fi |
11526 | fi |
13030 | |
11527 | |
|
|
11528 | LIBS="$save_LIBS" |
13031 | |
11529 | |
13032 | if test x$support_xft = xyes; then |
11530 | if test x$support_xft = xyes; then |
13033 | |
11531 | |
13034 | cat >>confdefs.h <<\_ACEOF |
11532 | cat >>confdefs.h <<\_ACEOF |
13035 | #define XFT 1 |
11533 | #define XFT 1 |
… | |
… | |
13063 | cat >>confdefs.h <<\_ACEOF |
11561 | cat >>confdefs.h <<\_ACEOF |
13064 | #define OFF_FOCUS_FADING 1 |
11562 | #define OFF_FOCUS_FADING 1 |
13065 | _ACEOF |
11563 | _ACEOF |
13066 | |
11564 | |
13067 | fi |
11565 | fi |
13068 | if test x$support_tinting = xyes; then |
|
|
13069 | |
|
|
13070 | cat >>confdefs.h <<\_ACEOF |
|
|
13071 | #define TINTING 1 |
|
|
13072 | _ACEOF |
|
|
13073 | |
|
|
13074 | fi |
|
|
13075 | if test x$support_inheritpixmap = xyes; then |
11566 | if test x$support_inheritpixmap = xyes; then |
13076 | |
11567 | |
13077 | cat >>confdefs.h <<\_ACEOF |
11568 | cat >>confdefs.h <<\_ACEOF |
13078 | #define ENABLE_TRANSPARENCY 1 |
11569 | #define ENABLE_TRANSPARENCY 1 |
13079 | _ACEOF |
11570 | _ACEOF |
… | |
… | |
13091 | cat >>confdefs.h <<\_ACEOF |
11582 | cat >>confdefs.h <<\_ACEOF |
13092 | #define SELECTION_SCROLLING 1 |
11583 | #define SELECTION_SCROLLING 1 |
13093 | _ACEOF |
11584 | _ACEOF |
13094 | |
11585 | |
13095 | fi |
11586 | fi |
|
|
11587 | if test x$support_frills = xyes; then |
|
|
11588 | |
|
|
11589 | cat >>confdefs.h <<\_ACEOF |
|
|
11590 | #define ENABLE_FRILLS 1 |
|
|
11591 | _ACEOF |
|
|
11592 | |
|
|
11593 | fi |
13096 | if test x$support_mousewheel = xyes; then |
11594 | if test x$support_mousewheel = xyes; then |
13097 | |
11595 | |
13098 | cat >>confdefs.h <<\_ACEOF |
11596 | cat >>confdefs.h <<\_ACEOF |
13099 | #define MOUSE_WHEEL 1 |
11597 | #define MOUSE_WHEEL 1 |
13100 | _ACEOF |
11598 | _ACEOF |
… | |
… | |
13105 | cat >>confdefs.h <<\_ACEOF |
11603 | cat >>confdefs.h <<\_ACEOF |
13106 | #define MOUSE_SLIP_WHEELING 1 |
11604 | #define MOUSE_SLIP_WHEELING 1 |
13107 | _ACEOF |
11605 | _ACEOF |
13108 | |
11606 | |
13109 | fi |
11607 | fi |
13110 | if test x$support_xpm = xyes -o x$support_afterimage = xyes ; then |
|
|
13111 | |
|
|
13112 | cat >>confdefs.h <<\_ACEOF |
|
|
13113 | #define XPM_BACKGROUND 1 |
|
|
13114 | _ACEOF |
|
|
13115 | |
|
|
13116 | fi |
|
|
13117 | |
|
|
13118 | if test x$support_afterimage = xyes; then |
11608 | if test x$support_afterimage = xyes; then |
13119 | |
11609 | |
13120 | cat >>confdefs.h <<\_ACEOF |
11610 | cat >>confdefs.h <<\_ACEOF |
13121 | #define HAVE_AFTERIMAGE 1 |
11611 | #define HAVE_AFTERIMAGE 1 |
13122 | _ACEOF |
11612 | _ACEOF |
13123 | |
11613 | |
|
|
11614 | |
|
|
11615 | cat >>confdefs.h <<\_ACEOF |
|
|
11616 | #define BG_IMAGE_FROM_FILE 1 |
|
|
11617 | _ACEOF |
|
|
11618 | |
13124 | fi |
11619 | fi |
|
|
11620 | |
|
|
11621 | |
|
|
11622 | scrolltypes=plain |
|
|
11623 | |
|
|
11624 | cat >>confdefs.h <<\_ACEOF |
|
|
11625 | #define PLAIN_SCROLLBAR 1 |
|
|
11626 | _ACEOF |
13125 | |
11627 | |
13126 | |
11628 | |
13127 | if test x$support_scroll_rxvt = xyes; then |
11629 | if test x$support_scroll_rxvt = xyes; then |
13128 | |
11630 | |
13129 | cat >>confdefs.h <<\_ACEOF |
11631 | cat >>confdefs.h <<\_ACEOF |
13130 | #define RXVT_SCROLLBAR 1 |
11632 | #define RXVT_SCROLLBAR 1 |
13131 | _ACEOF |
11633 | _ACEOF |
13132 | |
11634 | |
13133 | scrolltypes="rxvt" |
11635 | scrolltypes="$scrolltypes rxvt" |
13134 | fi |
11636 | fi |
13135 | if test x$support_scroll_next = xyes; then |
11637 | if test x$support_scroll_next = xyes; then |
13136 | |
11638 | |
13137 | cat >>confdefs.h <<\_ACEOF |
11639 | cat >>confdefs.h <<\_ACEOF |
13138 | #define NEXT_SCROLLBAR 1 |
11640 | #define NEXT_SCROLLBAR 1 |
… | |
… | |
13145 | cat >>confdefs.h <<\_ACEOF |
11647 | cat >>confdefs.h <<\_ACEOF |
13146 | #define XTERM_SCROLLBAR 1 |
11648 | #define XTERM_SCROLLBAR 1 |
13147 | _ACEOF |
11649 | _ACEOF |
13148 | |
11650 | |
13149 | scrolltypes="$scrolltypes xterm" |
11651 | scrolltypes="$scrolltypes xterm" |
13150 | fi |
|
|
13151 | if test x$support_scroll_plain = xyes; then |
|
|
13152 | |
|
|
13153 | cat >>confdefs.h <<\_ACEOF |
|
|
13154 | #define PLAIN_SCROLLBAR 1 |
|
|
13155 | _ACEOF |
|
|
13156 | |
|
|
13157 | scrolltypes="$scrolltypes plain" |
|
|
13158 | fi |
11652 | fi |
13159 | if test x$support_pointer_blank = xyes; then |
11653 | if test x$support_pointer_blank = xyes; then |
13160 | |
11654 | |
13161 | cat >>confdefs.h <<\_ACEOF |
11655 | cat >>confdefs.h <<\_ACEOF |
13162 | #define POINTER_BLANK 1 |
11656 | #define POINTER_BLANK 1 |
… | |
… | |
13399 | |
11893 | |
13400 | |
11894 | |
13401 | |
11895 | |
13402 | |
11896 | |
13403 | |
11897 | |
13404 | if test x$support_perl = xyes; then |
|
|
13405 | support_frills=yes |
|
|
13406 | fi |
|
|
13407 | |
|
|
13408 | if test x$support_frills = xyes; then |
|
|
13409 | |
|
|
13410 | cat >>confdefs.h <<\_ACEOF |
|
|
13411 | #define ENABLE_FRILLS 1 |
|
|
13412 | _ACEOF |
|
|
13413 | |
|
|
13414 | fi |
|
|
13415 | |
|
|
13416 | |
11898 | |
13417 | |
11899 | |
13418 | |
11900 | |
13419 | |
11901 | |
13420 | |
11902 | |
… | |
… | |
13437 | _ACEOF |
11919 | _ACEOF |
13438 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
11920 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
13439 | rm -f conftest.sed |
11921 | rm -f conftest.sed |
13440 | |
11922 | |
13441 | |
11923 | |
13442 | |
|
|
13443 | |
|
|
13444 | |
|
|
13445 | if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13446 | include_stdint_h="#include <stdint.h>" |
|
|
13447 | else |
|
|
13448 | include_stdint_h="/* #include <stdint.h> */" |
|
|
13449 | fi |
|
|
13450 | if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13451 | include_stdarg_h="#include <cstdarg>" |
|
|
13452 | else |
|
|
13453 | include_stdarg_h="/* #include <cstdarg> */" |
|
|
13454 | fi |
|
|
13455 | if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13456 | include_stdlib_h="#include <cstdlib>" |
|
|
13457 | else |
|
|
13458 | include_stdlib_h="/* #include <cstdlib> */" |
|
|
13459 | fi |
|
|
13460 | if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13461 | include_unistd_h="#include <unistd.h>" |
|
|
13462 | else |
|
|
13463 | include_unistd_h="/* #include <unistd.h> */" |
|
|
13464 | fi |
|
|
13465 | if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13466 | include_string_h="#include <cstring>" |
|
|
13467 | else |
|
|
13468 | include_string_h="/* #include <cstring> */" |
|
|
13469 | fi |
|
|
13470 | if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13471 | include_fcntl_h="#include <fcntl.h>" |
|
|
13472 | else |
|
|
13473 | include_fcntl_h="/* #include <fcntl.h> */" |
|
|
13474 | fi |
|
|
13475 | if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13476 | include_util_h="#include <util.h>" |
|
|
13477 | else |
|
|
13478 | include_util_h="/* #include <util.h> */" |
|
|
13479 | fi |
|
|
13480 | if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13481 | include_assert_h="#include <assert.h>" |
|
|
13482 | else |
|
|
13483 | include_assert_h="/* #include <assert.h> */" |
|
|
13484 | fi |
|
|
13485 | if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13486 | include_sys_ioctl_h="#include <sys/ioctl.h>" |
|
|
13487 | else |
|
|
13488 | include_sys_ioctl_h="/* #include <sys/ioctl.h> */" |
|
|
13489 | fi |
|
|
13490 | if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13491 | include_sys_select_h="#include <sys/select.h>" |
|
|
13492 | else |
|
|
13493 | include_sys_select_h="/* #include <sys/select.h> */" |
|
|
13494 | fi |
|
|
13495 | if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13496 | include_sys_strredir_h="#include <sys/strredir.h>" |
|
|
13497 | else |
|
|
13498 | include_sys_strredir_h="/* #include <sys/strredir.h> */" |
|
|
13499 | fi |
|
|
13500 | if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13501 | include_sys_time_h="#include <sys/time.h>" |
|
|
13502 | else |
|
|
13503 | include_sys_time_h="/* #include <sys/time.h> */" |
|
|
13504 | fi |
|
|
13505 | if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then |
|
|
13506 | include_time_h="#include <time.h>" |
|
|
13507 | else |
|
|
13508 | include_time_h="/* #include <time.h> */" |
|
|
13509 | fi |
|
|
13510 | |
|
|
13511 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" |
11924 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile" |
13512 | |
11925 | |
13513 | cat >confcache <<\_ACEOF |
11926 | cat >confcache <<\_ACEOF |
13514 | # This file is a shell script that caches the results of configure |
11927 | # This file is a shell script that caches the results of configure |
13515 | # tests run on this system so they can be shared between configure |
11928 | # tests run on this system so they can be shared between configure |
13516 | # scripts and configure runs, see configure's option --config-cache. |
11929 | # scripts and configure runs, see configure's option --config-cache. |
… | |
… | |
14065 | case $ac_config_target in |
12478 | case $ac_config_target in |
14066 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; |
12479 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; |
14067 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
12480 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
14068 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
12481 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
14069 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
12482 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
14070 | "src/rxvtlib.h") CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; |
|
|
14071 | |
12483 | |
14072 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
12484 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
14073 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
12485 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
14074 | { (exit 1); exit 1; }; };; |
12486 | { (exit 1); exit 1; }; };; |
14075 | esac |
12487 | esac |
… | |
… | |
14174 | host_cpu!$host_cpu$ac_delim |
12586 | host_cpu!$host_cpu$ac_delim |
14175 | host_vendor!$host_vendor$ac_delim |
12587 | host_vendor!$host_vendor$ac_delim |
14176 | host_os!$host_os$ac_delim |
12588 | host_os!$host_os$ac_delim |
14177 | VERSION!$VERSION$ac_delim |
12589 | VERSION!$VERSION$ac_delim |
14178 | DATE!$DATE$ac_delim |
12590 | DATE!$DATE$ac_delim |
14179 | LSMDATE!$LSMDATE$ac_delim |
|
|
14180 | LIBVERSION!$LIBVERSION$ac_delim |
|
|
14181 | CC!$CC$ac_delim |
12591 | CC!$CC$ac_delim |
14182 | CFLAGS!$CFLAGS$ac_delim |
12592 | CFLAGS!$CFLAGS$ac_delim |
14183 | LDFLAGS!$LDFLAGS$ac_delim |
12593 | LDFLAGS!$LDFLAGS$ac_delim |
14184 | CPPFLAGS!$CPPFLAGS$ac_delim |
12594 | CPPFLAGS!$CPPFLAGS$ac_delim |
14185 | ac_ct_CC!$ac_ct_CC$ac_delim |
12595 | ac_ct_CC!$ac_ct_CC$ac_delim |
… | |
… | |
14193 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
12603 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
14194 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
12604 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
14195 | GREP!$GREP$ac_delim |
12605 | GREP!$GREP$ac_delim |
14196 | EGREP!$EGREP$ac_delim |
12606 | EGREP!$EGREP$ac_delim |
14197 | LINKER!$LINKER$ac_delim |
12607 | LINKER!$LINKER$ac_delim |
14198 | INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim |
|
|
14199 | RXVTNAME!$RXVTNAME$ac_delim |
12608 | RXVTNAME!$RXVTNAME$ac_delim |
|
|
12609 | CXXCPP!$CXXCPP$ac_delim |
14200 | TIC!$TIC$ac_delim |
12610 | TIC!$TIC$ac_delim |
14201 | XMKMF!$XMKMF$ac_delim |
12611 | XMKMF!$XMKMF$ac_delim |
14202 | CXXCPP!$CXXCPP$ac_delim |
|
|
14203 | X_CFLAGS!$X_CFLAGS$ac_delim |
12612 | X_CFLAGS!$X_CFLAGS$ac_delim |
14204 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
12613 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
14205 | X_LIBS!$X_LIBS$ac_delim |
12614 | X_LIBS!$X_LIBS$ac_delim |
14206 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
12615 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
14207 | afterimage_config!$afterimage_config$ac_delim |
12616 | afterimage_config!$afterimage_config$ac_delim |
14208 | XPM_CPPFLAGS!$XPM_CPPFLAGS$ac_delim |
|
|
14209 | XPM_CFLAGS!$XPM_CFLAGS$ac_delim |
|
|
14210 | XPM_LIBS!$XPM_LIBS$ac_delim |
|
|
14211 | rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim |
|
|
14212 | rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim |
|
|
14213 | rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim |
|
|
14214 | rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim |
|
|
14215 | rxvt_intp_define!$rxvt_intp_define$ac_delim |
|
|
14216 | rxvt_u_intp_define!$rxvt_u_intp_define$ac_delim |
|
|
14217 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
12617 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
14218 | XFT_CONFIG!$XFT_CONFIG$ac_delim |
12618 | XFT_CONFIG!$XFT_CONFIG$ac_delim |
14219 | PERL!$PERL$ac_delim |
12619 | PERL!$PERL$ac_delim |
14220 | PERLLIB!$PERLLIB$ac_delim |
12620 | PERLLIB!$PERLLIB$ac_delim |
14221 | PERLFLAGS!$PERLFLAGS$ac_delim |
12621 | PERLFLAGS!$PERLFLAGS$ac_delim |
14222 | PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim |
12622 | PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim |
14223 | IF_PERL!$IF_PERL$ac_delim |
12623 | IF_PERL!$IF_PERL$ac_delim |
14224 | PERL_O!$PERL_O$ac_delim |
12624 | PERL_O!$PERL_O$ac_delim |
14225 | AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim |
12625 | AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim |
14226 | AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim |
12626 | AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim |
14227 | include_stdint_h!$include_stdint_h$ac_delim |
12627 | LIBOBJS!$LIBOBJS$ac_delim |
14228 | include_stdarg_h!$include_stdarg_h$ac_delim |
12628 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
14229 | _ACEOF |
12629 | _ACEOF |
14230 | |
12630 | |
14231 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
12631 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 85; then |
14232 | break |
12632 | break |
14233 | elif $ac_last_try; then |
12633 | elif $ac_last_try; then |
14234 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
12634 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
14235 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
12635 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
14236 | { (exit 1); exit 1; }; } |
12636 | { (exit 1); exit 1; }; } |
… | |
… | |
14245 | ac_eof=`expr $ac_eof + 1` |
12645 | ac_eof=`expr $ac_eof + 1` |
14246 | fi |
12646 | fi |
14247 | |
12647 | |
14248 | cat >>$CONFIG_STATUS <<_ACEOF |
12648 | cat >>$CONFIG_STATUS <<_ACEOF |
14249 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
12649 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
14250 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
|
|
14251 | _ACEOF |
|
|
14252 | sed ' |
|
|
14253 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
|
|
14254 | s/^/s,@/; s/!/@,|#_!!_#|/ |
|
|
14255 | :n |
|
|
14256 | t n |
|
|
14257 | s/'"$ac_delim"'$/,g/; t |
|
|
14258 | s/$/\\/; p |
|
|
14259 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
|
|
14260 | ' >>$CONFIG_STATUS <conf$$subs.sed |
|
|
14261 | rm -f conf$$subs.sed |
|
|
14262 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
14263 | CEOF$ac_eof |
|
|
14264 | _ACEOF |
|
|
14265 | |
|
|
14266 | |
|
|
14267 | ac_delim='%!_!# ' |
|
|
14268 | for ac_last_try in false false false false false :; do |
|
|
14269 | cat >conf$$subs.sed <<_ACEOF |
|
|
14270 | include_stdlib_h!$include_stdlib_h$ac_delim |
|
|
14271 | include_unistd_h!$include_unistd_h$ac_delim |
|
|
14272 | include_string_h!$include_string_h$ac_delim |
|
|
14273 | include_fcntl_h!$include_fcntl_h$ac_delim |
|
|
14274 | include_util_h!$include_util_h$ac_delim |
|
|
14275 | include_assert_h!$include_assert_h$ac_delim |
|
|
14276 | include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim |
|
|
14277 | include_sys_select_h!$include_sys_select_h$ac_delim |
|
|
14278 | include_sys_strredir_h!$include_sys_strredir_h$ac_delim |
|
|
14279 | include_sys_time_h!$include_sys_time_h$ac_delim |
|
|
14280 | include_time_h!$include_time_h$ac_delim |
|
|
14281 | LIBOBJS!$LIBOBJS$ac_delim |
|
|
14282 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
|
|
14283 | _ACEOF |
|
|
14284 | |
|
|
14285 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then |
|
|
14286 | break |
|
|
14287 | elif $ac_last_try; then |
|
|
14288 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
|
|
14289 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
|
|
14290 | { (exit 1); exit 1; }; } |
|
|
14291 | else |
|
|
14292 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|
|
14293 | fi |
|
|
14294 | done |
|
|
14295 | |
|
|
14296 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
|
|
14297 | if test -n "$ac_eof"; then |
|
|
14298 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
|
|
14299 | ac_eof=`expr $ac_eof + 1` |
|
|
14300 | fi |
|
|
14301 | |
|
|
14302 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
14303 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
|
|
14304 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
12650 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
14305 | _ACEOF |
12651 | _ACEOF |
14306 | sed ' |
12652 | sed ' |
14307 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
12653 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
14308 | s/^/s,@/; s/!/@,|#_!!_#|/ |
12654 | s/^/s,@/; s/!/@,|#_!!_#|/ |
… | |
… | |
14561 | s&@builddir@&$ac_builddir&;t t |
12907 | s&@builddir@&$ac_builddir&;t t |
14562 | s&@abs_builddir@&$ac_abs_builddir&;t t |
12908 | s&@abs_builddir@&$ac_abs_builddir&;t t |
14563 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
12909 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
14564 | s&@INSTALL@&$ac_INSTALL&;t t |
12910 | s&@INSTALL@&$ac_INSTALL&;t t |
14565 | $ac_datarootdir_hack |
12911 | $ac_datarootdir_hack |
14566 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
12912 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out |
14567 | |
12913 | |
14568 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
12914 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
14569 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
12915 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
14570 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
12916 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
14571 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
12917 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
… | |
… | |
14719 | Install path: ${prefix}/bin |
13065 | Install path: ${prefix}/bin |
14720 | Compiler: $CXX |
13066 | Compiler: $CXX |
14721 | Compiler flags: $CXXFLAGS |
13067 | Compiler flags: $CXXFLAGS |
14722 | Linker: $LINKER" |
13068 | Linker: $LINKER" |
14723 | |
13069 | |
14724 | if test x$support_xpm = xyes; then |
|
|
14725 | echo " Xpm library: $XPM_LIBS" |
|
|
14726 | fi |
|
|
14727 | |
|
|
14728 | if test x$support_afterimage = xyes; then |
|
|
14729 | echo " AfterImage support: yes" |
|
|
14730 | fi |
|
|
14731 | |
|
|
14732 | |
|
|
14733 | if test x$term != x; then |
13070 | if test x$term != x; then |
14734 | echo " set TERM to: $term" |
13071 | echo " set TERM to: $term" |
14735 | fi |
13072 | fi |
14736 | if test x$terminfo != x; then |
13073 | if test x$terminfo != x; then |
14737 | echo " set TERMINFO to: $terminfo" |
13074 | echo " set TERMINFO to: $terminfo" |
… | |
… | |
14743 | fi |
13080 | fi |
14744 | echo |
13081 | echo |
14745 | echo " embedded perl: $support_perl" |
13082 | echo " embedded perl: $support_perl" |
14746 | echo " libafterimage: $support_afterimage" |
13083 | echo " libafterimage: $support_afterimage" |
14747 | echo |
13084 | echo |
14748 | if test x$support_xpm = xneedsmanualspecification; then |
|
|
14749 | echo ".----------------------------------------------------------------." |
|
|
14750 | echo ". WARNING: --enable-xpm-background was specified however the ." |
|
|
14751 | echo ". XPM includes files and libraries could not be found. ." |
|
|
14752 | echo ". XPM backgrounds are now being DISABLED! If you want ." |
|
|
14753 | echo ". to use them you should rerun configure with the ." |
|
|
14754 | echo ". appropriate --with-xpm-includes=/path/to/xpm/includes ." |
|
|
14755 | echo ". and --with-xpm-library=/path/to/xpm/library lines. ." |
|
|
14756 | echo ".----------------------------------------------------------------." |
|
|
14757 | fi |
|
|
14758 | if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then |
13085 | if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then |
14759 | echo ".----------------------------------------------------------------." |
13086 | echo ".----------------------------------------------------------------." |
14760 | echo ". WARNING: --enable-xim was specified however the locale support ." |
13087 | echo ". WARNING: --enable-xim was specified however the locale support ." |
14761 | echo ". functions could not be found. ." |
13088 | echo ". functions could not be found. ." |
14762 | echo ". XIM is now being DISABLED! ." |
13089 | echo ". XIM is now being DISABLED! ." |