… | |
… | |
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 |
… | |
… | |
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 |
699 | 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 |
700 | include_sys_ioctl_h |
720 | include_sys_select_h |
|
|
721 | include_sys_strredir_h |
701 | include_sys_strredir_h |
722 | include_sys_time_h |
|
|
723 | include_time_h |
|
|
724 | LIBOBJS |
702 | LIBOBJS |
725 | LTLIBOBJS' |
703 | LTLIBOBJS' |
726 | ac_subst_files='' |
704 | ac_subst_files='' |
727 | ac_precious_vars='build_alias |
705 | ac_precious_vars='build_alias |
728 | host_alias |
706 | host_alias |
… | |
… | |
734 | CPPFLAGS |
712 | CPPFLAGS |
735 | CXX |
713 | CXX |
736 | CXXFLAGS |
714 | CXXFLAGS |
737 | CCC |
715 | CCC |
738 | CPP |
716 | CPP |
739 | XMKMF |
|
|
740 | CXXCPP' |
717 | CXXCPP |
|
|
718 | XMKMF' |
741 | |
719 | |
742 | |
720 | |
743 | # Initialize some variables set by options. |
721 | # Initialize some variables set by options. |
744 | ac_init_help= |
722 | ac_init_help= |
745 | ac_init_version=false |
723 | ac_init_version=false |
… | |
… | |
1319 | Optional Features: |
1297 | Optional Features: |
1320 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1298 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1321 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1299 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1322 | --enable-everything enable standard non-multichoice features |
1300 | --enable-everything enable standard non-multichoice features |
1323 | NOTE: this option is order dependent |
1301 | NOTE: this option is order dependent |
1324 | NOTE: automatically enabled with --enable-shared |
1302 | --enable-warnings turn on g++ warnings |
1325 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1303 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1326 | --enable-combining enable composition of base and combining characters |
1304 | --enable-combining enable composition of base and combining characters |
1327 | --enable-xft enable xft support on systems that have it |
1305 | --enable-xft enable xft support on systems that have it |
1328 | --enable-font-styles enable bold and italic support |
1306 | --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 |
1307 | --enable-afterimage enable integration with libAfterImage for background images |
1331 | --enable-transparency enable transparent backgrounds |
1308 | --enable-transparency enable transparent backgrounds |
1332 | --enable-tinting enable tinting of transparent bg |
|
|
1333 | --enable-fading enable colors fading when off focus |
1309 | --enable-fading enable colors fading when off focus |
1334 | --enable-rxvt-scroll enable rxvt style scrollbar |
1310 | --enable-rxvt-scroll enable rxvt style scrollbar |
1335 | --enable-next-scroll enable NeXT style scrollbar |
1311 | --enable-next-scroll enable NeXT style scrollbar |
1336 | --enable-xterm-scroll enable Xterm style scrollbar |
1312 | --enable-xterm-scroll enable Xterm style scrollbar |
|
|
1313 | --enable-plain-scroll enable plain style scrollbar |
1337 | --enable-perl enable embedded perl interpreter |
1314 | --enable-perl enable embedded perl interpreter |
1338 | --enable-plain-scroll enable plain style scrollbar |
|
|
1339 | --enable-xim XIM (X Input Method) protocol support |
1315 | --enable-xim XIM (X Input Method) protocol support |
1340 | --disable-backspace-key disable handling of the backspace key |
1316 | --disable-backspace-key disable handling of the backspace key |
1341 | --disable-delete-key disable handling of the delete key |
1317 | --disable-delete-key disable handling of the delete key |
1342 | --disable-resources disable all resource checking |
1318 | --disable-resources disable all resource checking |
1343 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
1319 | --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) |
1320 | --enable-fallback[=CLASS] fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
1345 | --disable-swapscreen disable swap screen support |
1321 | --disable-swapscreen disable swap screen support |
1346 | --enable-iso14755 enable support for extended ISO 14755 modes |
1322 | --enable-iso14755 enable support for extended ISO 14755 modes |
1347 | --enable-frills enable support for rarely used features |
1323 | --enable-frills enable support for rarely used features |
1348 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
1324 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
1349 | --enable-selectionscrolling enable scrolling during selections |
1325 | --enable-selectionscrolling enable scrolling during selections |
1350 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1326 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1351 | --enable-slipwheeling enable slip wheel scrolling (requires previous) |
1327 | --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel) |
1352 | --enable-smart-resize enable smart growth/shrink behaviour |
1328 | --enable-smart-resize enable smart growth/shrink behaviour |
1353 | --enable-text-blink enable blinking text |
1329 | --enable-text-blink enable blinking text |
1354 | --enable-pointer-blank enable pointer blank when typing or inactive pointer |
1330 | --enable-pointer-blank enable pointer blank when typing or inactive pointer |
1355 | --enable-utmp enable utmp (utmpx) support |
1331 | --enable-utmp enable utmp (utmpx) support |
1356 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
1332 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
… | |
… | |
1358 | |
1334 | |
1359 | Optional Packages: |
1335 | Optional Packages: |
1360 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1336 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1361 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1337 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1362 | --with-afterimage-config=DIR use libAfterImage config script in DIR |
1338 | --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) |
1339 | --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) |
1340 | --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) |
1341 | --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) |
1342 | --with-name=NAME set the basename for the installed binaries (default: urxvt) |
1367 | --with-term=NAME set the terminal to NAME (default: rxvt) |
1343 | --with-term=NAME set the terminal to NAME (default: rxvt) |
1368 | --with-terminfo=PATH set the path to the terminfo tree to PATH |
1344 | --with-terminfo=PATH set the path to the terminfo tree to PATH |
1369 | --with-x use the X Window System |
1345 | --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 | |
1346 | |
1374 | Some influential environment variables: |
1347 | Some influential environment variables: |
1375 | CC C compiler command |
1348 | CC C compiler command |
1376 | CFLAGS C compiler flags |
1349 | CFLAGS C compiler flags |
1377 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1350 | 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 |
1353 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1381 | you have headers in a nonstandard directory <include dir> |
1354 | you have headers in a nonstandard directory <include dir> |
1382 | CXX C++ compiler command |
1355 | CXX C++ compiler command |
1383 | CXXFLAGS C++ compiler flags |
1356 | CXXFLAGS C++ compiler flags |
1384 | CPP C preprocessor |
1357 | CPP C preprocessor |
|
|
1358 | CXXCPP C++ preprocessor |
1385 | XMKMF Path to xmkmf, Makefile generator for X Window System |
1359 | XMKMF Path to xmkmf, Makefile generator for X Window System |
1386 | CXXCPP C++ preprocessor |
|
|
1387 | |
1360 | |
1388 | Use these variables to override the choices made by `configure' or to help |
1361 | Use these variables to override the choices made by `configure' or to help |
1389 | it to find libraries and programs with nonstandard names/locations. |
1362 | it to find libraries and programs with nonstandard names/locations. |
1390 | |
1363 | |
1391 | _ACEOF |
1364 | _ACEOF |
… | |
… | |
1927 | |
1900 | |
1928 | |
1901 | |
1929 | |
1902 | |
1930 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1903 | 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` |
1904 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
|
|
1905 | |
1932 | echo "" |
1906 | echo "" |
1933 | echo "configuring for rxvt $VERSION" |
1907 | echo "configuring for rxvt $VERSION" |
1934 | echo "" |
1908 | echo "" |
1935 | |
1909 | |
1936 | orig_CXXFLAGS="$CXXFLAGS" |
1910 | orig_CXXFLAGS="$CXXFLAGS" |
1937 | |
|
|
1938 | |
1911 | |
1939 | ac_ext=c |
1912 | ac_ext=c |
1940 | ac_cpp='$CPP $CPPFLAGS' |
1913 | ac_cpp='$CPP $CPPFLAGS' |
1941 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1914 | 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' |
1915 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
… | |
… | |
3721 | echo "${ECHO_T}no" >&6; } |
3694 | echo "${ECHO_T}no" >&6; } |
3722 | fi |
3695 | fi |
3723 | rm -f conftest* |
3696 | rm -f conftest* |
3724 | |
3697 | |
3725 | |
3698 | |
|
|
3699 | |
|
|
3700 | cat >>confdefs.h <<\_ACEOF |
|
|
3701 | #define _GNU_SOURCE 1 |
|
|
3702 | _ACEOF |
|
|
3703 | |
|
|
3704 | |
3726 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
3705 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
3727 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } |
3706 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } |
3728 | if test "${ac_cv_search_strerror+set}" = set; then |
3707 | if test "${ac_cv_search_strerror+set}" = set; then |
3729 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3730 | else |
3709 | else |
… | |
… | |
3877 | LINKER=$LINKER |
3856 | LINKER=$LINKER |
3878 | |
3857 | |
3879 | |
3858 | |
3880 | if test -z "$orig_CXXFLAGS"; then |
3859 | if test -z "$orig_CXXFLAGS"; then |
3881 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
3860 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
3882 | CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" |
3861 | CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs" |
3883 | cat >conftest.$ac_ext <<_ACEOF |
3862 | cat >conftest.$ac_ext <<_ACEOF |
3884 | /* confdefs.h. */ |
3863 | /* confdefs.h. */ |
3885 | _ACEOF |
3864 | _ACEOF |
3886 | cat confdefs.h >>conftest.$ac_ext |
3865 | cat confdefs.h >>conftest.$ac_ext |
3887 | cat >>conftest.$ac_ext <<_ACEOF |
3866 | cat >>conftest.$ac_ext <<_ACEOF |
… | |
… | |
3925 | CXXFLAGS="-O" |
3904 | CXXFLAGS="-O" |
3926 | fi |
3905 | fi |
3927 | CFLAGS="$CXXFLAGS" |
3906 | CFLAGS="$CXXFLAGS" |
3928 | fi |
3907 | fi |
3929 | |
3908 | |
3930 | |
|
|
3931 | cat >>confdefs.h <<\_ACEOF |
|
|
3932 | #define _GNU_SOURCE 1 |
|
|
3933 | _ACEOF |
|
|
3934 | |
|
|
3935 | |
|
|
3936 | case $host in |
3909 | case $host in |
3937 | *-*-solaris* ) |
3910 | *-*-solaris* ) |
3938 | |
3911 | |
3939 | cat >>confdefs.h <<\_ACEOF |
3912 | cat >>confdefs.h <<\_ACEOF |
3940 | #define _XOPEN_SOURCE 500 |
3913 | #define _XOPEN_SOURCE 500 |
3941 | _ACEOF |
3914 | _ACEOF |
3942 | |
3915 | |
3943 | ;; |
3916 | ;; |
3944 | esac |
3917 | esac |
3945 | |
|
|
3946 | |
3918 | |
3947 | { echo "$as_me:$LINENO: checking for setlocale" >&5 |
3919 | { echo "$as_me:$LINENO: checking for setlocale" >&5 |
3948 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } |
3920 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } |
3949 | if test "${ac_cv_func_setlocale+set}" = set; then |
3921 | if test "${ac_cv_func_setlocale+set}" = set; then |
3950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
4400 | |
4372 | |
4401 | |
4373 | |
4402 | |
4374 | |
4403 | support_frills=yes |
4375 | support_frills=yes |
4404 | support_inheritpixmap=yes |
4376 | support_inheritpixmap=yes |
4405 | support_tinting=yes |
|
|
4406 | support_fading=yes |
4377 | support_fading=yes |
4407 | support_keepscrolling=yes |
4378 | support_keepscrolling=yes |
4408 | support_selectionscrolling=yes |
4379 | support_selectionscrolling=yes |
4409 | support_mousewheel=yes |
4380 | support_mousewheel=yes |
4410 | support_mouseslipwheel=yes |
4381 | support_mouseslipwheel=yes |
… | |
… | |
4413 | support_scroll_rxvt=yes |
4384 | support_scroll_rxvt=yes |
4414 | support_scroll_next=yes |
4385 | support_scroll_next=yes |
4415 | support_scroll_xterm=yes |
4386 | support_scroll_xterm=yes |
4416 | support_scroll_plain=yes |
4387 | support_scroll_plain=yes |
4417 | support_xim=yes |
4388 | support_xim=yes |
4418 | support_xpm=yes |
|
|
4419 | support_afterimage=yes |
4389 | support_afterimage=yes |
4420 | support_afterstep=yes |
4390 | support_afterstep=yes |
4421 | support_xft=yes |
4391 | support_xft=yes |
4422 | support_unicode3=no |
4392 | support_unicode3=no |
4423 | support_combining=yes |
4393 | support_combining=yes |
… | |
… | |
4426 | support_styles=yes |
4396 | support_styles=yes |
4427 | support_perl=yes |
4397 | support_perl=yes |
4428 | codesets=all |
4398 | codesets=all |
4429 | |
4399 | |
4430 | |
4400 | |
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 | |
4401 | |
4441 | # Check whether --enable-everything was given. |
4402 | # Check whether --enable-everything was given. |
4442 | if test "${enable_everything+set}" = set; then |
4403 | if test "${enable_everything+set}" = set; then |
4443 | enableval=$enable_everything; |
4404 | enableval=$enable_everything; |
4444 | if test x$enableval = xno; then |
4405 | if test x$enableval = xno; then |
4445 | support_frills=no |
4406 | support_frills=no |
4446 | support_inheritpixmap=no |
4407 | support_inheritpixmap=no |
4447 | support_tinting=no |
|
|
4448 | support_fading=no |
4408 | support_fading=no |
4449 | support_keepscrolling=no |
4409 | support_keepscrolling=no |
4450 | support_selectionscrolling=no |
4410 | support_selectionscrolling=no |
4451 | support_lastlog=no |
4411 | support_lastlog=no |
4452 | support_mousewheel=no |
4412 | support_mousewheel=no |
… | |
… | |
4458 | support_scroll_xterm=no |
4418 | support_scroll_xterm=no |
4459 | support_scroll_plain=no |
4419 | support_scroll_plain=no |
4460 | support_utmp=no |
4420 | support_utmp=no |
4461 | support_wtmp=no |
4421 | support_wtmp=no |
4462 | support_xim=no |
4422 | support_xim=no |
4463 | support_xpm=no |
|
|
4464 | support_afterimage=no |
4423 | support_afterimage=no |
4465 | support_afterstep=no |
4424 | support_afterstep=no |
4466 | support_xft=no |
4425 | support_xft=no |
4467 | support_unicode3=no |
4426 | support_unicode3=no |
4468 | support_combining=no |
4427 | support_combining=no |
… | |
… | |
4473 | codesets= |
4432 | codesets= |
4474 | fi |
4433 | fi |
4475 | if test x$enableval = xyes; then |
4434 | if test x$enableval = xyes; then |
4476 | support_frills=yes |
4435 | support_frills=yes |
4477 | support_inheritpixmap=yes |
4436 | support_inheritpixmap=yes |
4478 | support_tinting=yes |
|
|
4479 | support_fading=yes |
4437 | support_fading=yes |
4480 | support_keepscrolling=yes |
4438 | support_keepscrolling=yes |
4481 | support_selectionscrolling=yes |
4439 | support_selectionscrolling=yes |
4482 | support_lastlog=yes |
4440 | support_lastlog=yes |
4483 | support_mousewheel=yes |
4441 | support_mousewheel=yes |
… | |
… | |
4489 | support_scroll_xterm=yes |
4447 | support_scroll_xterm=yes |
4490 | support_scroll_plain=yes |
4448 | support_scroll_plain=yes |
4491 | support_utmp=yes |
4449 | support_utmp=yes |
4492 | support_wtmp=yes |
4450 | support_wtmp=yes |
4493 | support_xim=yes |
4451 | support_xim=yes |
4494 | support_xpm=yes |
|
|
4495 | support_afterimage=yes |
4452 | support_afterimage=yes |
4496 | support_afterstep=yes |
4453 | support_afterstep=yes |
4497 | support_xft=yes |
4454 | support_xft=yes |
4498 | support_unicode3=yes |
4455 | support_unicode3=yes |
4499 | support_combining=yes |
4456 | support_combining=yes |
… | |
… | |
4505 | fi |
4462 | fi |
4506 | |
4463 | |
4507 | fi |
4464 | fi |
4508 | |
4465 | |
4509 | |
4466 | |
|
|
4467 | WARNINGS=no |
|
|
4468 | # Check whether --enable-warnings was given. |
|
|
4469 | if test "${enable_warnings+set}" = set; then |
|
|
4470 | enableval=$enable_warnings; if test x$enableval = xyes; then |
|
|
4471 | WARNINGS=yes |
|
|
4472 | fi |
|
|
4473 | fi |
|
|
4474 | |
|
|
4475 | if test x$GXX = xyes; then |
|
|
4476 | if test $WARNINGS = yes; then |
|
|
4477 | save_CXXFLAGS="$CXXFLAGS" |
|
|
4478 | CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-non-virtual-dtor" |
|
|
4479 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4480 | /* confdefs.h. */ |
|
|
4481 | _ACEOF |
|
|
4482 | cat confdefs.h >>conftest.$ac_ext |
|
|
4483 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4484 | /* end confdefs.h. */ |
|
|
4485 | |
|
|
4486 | int |
|
|
4487 | main () |
|
|
4488 | { |
|
|
4489 | |
|
|
4490 | ; |
|
|
4491 | return 0; |
|
|
4492 | } |
|
|
4493 | _ACEOF |
|
|
4494 | rm -f conftest.$ac_objext |
|
|
4495 | if { (ac_try="$ac_compile" |
|
|
4496 | case "(($ac_try" in |
|
|
4497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4498 | *) ac_try_echo=$ac_try;; |
|
|
4499 | esac |
|
|
4500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4501 | (eval "$ac_compile") 2>conftest.er1 |
|
|
4502 | ac_status=$? |
|
|
4503 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4504 | rm -f conftest.er1 |
|
|
4505 | cat conftest.err >&5 |
|
|
4506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4507 | (exit $ac_status); } && { |
|
|
4508 | test -z "$ac_cxx_werror_flag" || |
|
|
4509 | test ! -s conftest.err |
|
|
4510 | } && test -s conftest.$ac_objext; then |
|
|
4511 | : |
|
|
4512 | else |
|
|
4513 | echo "$as_me: failed program was:" >&5 |
|
|
4514 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4515 | |
|
|
4516 | CXXFLAGS="$save_CXXFLAGS" |
|
|
4517 | fi |
|
|
4518 | |
|
|
4519 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4520 | else |
|
|
4521 | CXXFLAGS="$CXXFLAGS -w" |
|
|
4522 | fi |
|
|
4523 | fi |
|
|
4524 | |
4510 | # Check whether --enable-unicode3 was given. |
4525 | # Check whether --enable-unicode3 was given. |
4511 | if test "${enable_unicode3+set}" = set; then |
4526 | if test "${enable_unicode3+set}" = set; then |
4512 | enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then |
4527 | enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then |
4513 | support_unicode3=$enableval |
4528 | support_unicode3=$enableval |
4514 | fi |
4529 | fi |
… | |
… | |
4537 | support_styles=$enableval |
4552 | support_styles=$enableval |
4538 | fi |
4553 | fi |
4539 | fi |
4554 | fi |
4540 | |
4555 | |
4541 | |
4556 | |
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. |
4557 | # Check whether --enable-afterimage was given. |
4551 | if test "${enable_afterimage+set}" = set; then |
4558 | if test "${enable_afterimage+set}" = set; then |
4552 | enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then |
4559 | enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then |
4553 | support_afterimage=$enableval |
4560 | support_afterimage=$enableval |
4554 | fi |
4561 | fi |
… | |
… | |
4571 | support_inheritpixmap=$enableval |
4578 | support_inheritpixmap=$enableval |
4572 | fi |
4579 | fi |
4573 | fi |
4580 | fi |
4574 | |
4581 | |
4575 | |
4582 | |
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. |
4583 | # Check whether --enable-fading was given. |
4585 | if test "${enable_fading+set}" = set; then |
4584 | if test "${enable_fading+set}" = set; then |
4586 | enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then |
4585 | enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then |
4587 | support_fading=$enableval |
4586 | support_fading=$enableval |
4588 | fi |
4587 | fi |
… | |
… | |
4611 | support_scroll_xterm=$enableval |
4610 | support_scroll_xterm=$enableval |
4612 | fi |
4611 | fi |
4613 | fi |
4612 | fi |
4614 | |
4613 | |
4615 | |
4614 | |
|
|
4615 | # Check whether --enable-plain-scroll was given. |
|
|
4616 | if test "${enable_plain_scroll+set}" = set; then |
|
|
4617 | enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4618 | support_scroll_plain=$enableval |
|
|
4619 | fi |
|
|
4620 | fi |
|
|
4621 | |
|
|
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 | for ac_header in sys/inotify.h sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h |
|
|
5346 | do |
|
|
5347 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
5348 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5349 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5350 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5351 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5352 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5353 | fi |
|
|
5354 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5355 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5356 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5357 | else |
|
|
5358 | # Is the header compilable? |
|
|
5359 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
5360 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
|
|
5361 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5362 | /* confdefs.h. */ |
|
|
5363 | _ACEOF |
|
|
5364 | cat confdefs.h >>conftest.$ac_ext |
|
|
5365 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5366 | /* end confdefs.h. */ |
|
|
5367 | $ac_includes_default |
|
|
5368 | #include <$ac_header> |
|
|
5369 | _ACEOF |
|
|
5370 | rm -f conftest.$ac_objext |
|
|
5371 | if { (ac_try="$ac_compile" |
|
|
5372 | case "(($ac_try" in |
|
|
5373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5374 | *) ac_try_echo=$ac_try;; |
|
|
5375 | esac |
|
|
5376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5377 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5378 | ac_status=$? |
|
|
5379 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5380 | rm -f conftest.er1 |
|
|
5381 | cat conftest.err >&5 |
|
|
5382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5383 | (exit $ac_status); } && { |
|
|
5384 | test -z "$ac_cxx_werror_flag" || |
|
|
5385 | test ! -s conftest.err |
|
|
5386 | } && test -s conftest.$ac_objext; then |
|
|
5387 | ac_header_compiler=yes |
|
|
5388 | else |
|
|
5389 | echo "$as_me: failed program was:" >&5 |
|
|
5390 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5391 | |
|
|
5392 | ac_header_compiler=no |
|
|
5393 | fi |
|
|
5394 | |
|
|
5395 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5396 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
5397 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
|
|
5398 | |
|
|
5399 | # Is the header present? |
|
|
5400 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
5401 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
|
|
5402 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5403 | /* confdefs.h. */ |
|
|
5404 | _ACEOF |
|
|
5405 | cat confdefs.h >>conftest.$ac_ext |
|
|
5406 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5407 | /* end confdefs.h. */ |
|
|
5408 | #include <$ac_header> |
|
|
5409 | _ACEOF |
|
|
5410 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5411 | case "(($ac_try" in |
|
|
5412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5413 | *) ac_try_echo=$ac_try;; |
|
|
5414 | esac |
|
|
5415 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5416 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5417 | ac_status=$? |
|
|
5418 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5419 | rm -f conftest.er1 |
|
|
5420 | cat conftest.err >&5 |
|
|
5421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5422 | (exit $ac_status); } >/dev/null && { |
|
|
5423 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5424 | test ! -s conftest.err |
|
|
5425 | }; then |
|
|
5426 | ac_header_preproc=yes |
|
|
5427 | else |
|
|
5428 | echo "$as_me: failed program was:" >&5 |
|
|
5429 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5430 | |
|
|
5431 | ac_header_preproc=no |
|
|
5432 | fi |
|
|
5433 | |
|
|
5434 | rm -f conftest.err conftest.$ac_ext |
|
|
5435 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
5436 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
|
|
5437 | |
|
|
5438 | # So? What about this header? |
|
|
5439 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
5440 | yes:no: ) |
|
|
5441 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
5442 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
5443 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
5444 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
5445 | ac_header_preproc=yes |
|
|
5446 | ;; |
|
|
5447 | no:yes:* ) |
|
|
5448 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
5449 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
5450 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
5451 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
5452 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
5453 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
5454 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
5455 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
5456 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
5457 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
5458 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
5459 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
5460 | |
|
|
5461 | ;; |
|
|
5462 | esac |
|
|
5463 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5464 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5465 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5467 | else |
|
|
5468 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
5469 | fi |
|
|
5470 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5471 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5472 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5473 | |
|
|
5474 | fi |
|
|
5475 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
5476 | cat >>confdefs.h <<_ACEOF |
|
|
5477 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
5478 | _ACEOF |
|
|
5479 | |
|
|
5480 | fi |
|
|
5481 | |
|
|
5482 | done |
|
|
5483 | |
|
|
5484 | |
|
|
5485 | |
|
|
5486 | |
|
|
5487 | |
|
|
5488 | |
|
|
5489 | |
|
|
5490 | |
|
|
5491 | for ac_func in inotify_init epoll_ctl kqueue port_create poll select |
|
|
5492 | do |
|
|
5493 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
5494 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
5495 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
5496 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5498 | else |
|
|
5499 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5500 | /* confdefs.h. */ |
|
|
5501 | _ACEOF |
|
|
5502 | cat confdefs.h >>conftest.$ac_ext |
|
|
5503 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5504 | /* end confdefs.h. */ |
|
|
5505 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
5506 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5507 | #define $ac_func innocuous_$ac_func |
|
|
5508 | |
|
|
5509 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5510 | which can conflict with char $ac_func (); below. |
|
|
5511 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5512 | <limits.h> exists even on freestanding compilers. */ |
|
|
5513 | |
|
|
5514 | #ifdef __STDC__ |
|
|
5515 | # include <limits.h> |
|
|
5516 | #else |
|
|
5517 | # include <assert.h> |
|
|
5518 | #endif |
|
|
5519 | |
|
|
5520 | #undef $ac_func |
|
|
5521 | |
|
|
5522 | /* Override any GCC internal prototype to avoid an error. |
|
|
5523 | Use char because int might match the return type of a GCC |
|
|
5524 | builtin and then its argument prototype would still apply. */ |
|
|
5525 | #ifdef __cplusplus |
|
|
5526 | extern "C" |
|
|
5527 | #endif |
|
|
5528 | char $ac_func (); |
|
|
5529 | /* The GNU C library defines this for functions which it implements |
|
|
5530 | to always fail with ENOSYS. Some functions are actually named |
|
|
5531 | something starting with __ and the normal name is an alias. */ |
|
|
5532 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
5533 | choke me |
|
|
5534 | #endif |
|
|
5535 | |
|
|
5536 | int |
|
|
5537 | main () |
|
|
5538 | { |
|
|
5539 | return $ac_func (); |
|
|
5540 | ; |
|
|
5541 | return 0; |
|
|
5542 | } |
|
|
5543 | _ACEOF |
|
|
5544 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5545 | if { (ac_try="$ac_link" |
|
|
5546 | case "(($ac_try" in |
|
|
5547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5548 | *) ac_try_echo=$ac_try;; |
|
|
5549 | esac |
|
|
5550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5551 | (eval "$ac_link") 2>conftest.er1 |
|
|
5552 | ac_status=$? |
|
|
5553 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5554 | rm -f conftest.er1 |
|
|
5555 | cat conftest.err >&5 |
|
|
5556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5557 | (exit $ac_status); } && { |
|
|
5558 | test -z "$ac_cxx_werror_flag" || |
|
|
5559 | test ! -s conftest.err |
|
|
5560 | } && test -s conftest$ac_exeext && |
|
|
5561 | $as_test_x conftest$ac_exeext; then |
|
|
5562 | eval "$as_ac_var=yes" |
|
|
5563 | else |
|
|
5564 | echo "$as_me: failed program was:" >&5 |
|
|
5565 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5566 | |
|
|
5567 | eval "$as_ac_var=no" |
|
|
5568 | fi |
|
|
5569 | |
|
|
5570 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5571 | conftest$ac_exeext conftest.$ac_ext |
|
|
5572 | fi |
|
|
5573 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
5574 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5575 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5576 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
5577 | cat >>confdefs.h <<_ACEOF |
|
|
5578 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
5579 | _ACEOF |
|
|
5580 | |
|
|
5581 | fi |
|
|
5582 | done |
|
|
5583 | |
|
|
5584 | |
|
|
5585 | { echo "$as_me:$LINENO: checking for clock_gettime" >&5 |
|
|
5586 | echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6; } |
|
|
5587 | if test "${ac_cv_func_clock_gettime+set}" = set; then |
|
|
5588 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5589 | else |
|
|
5590 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5591 | /* confdefs.h. */ |
|
|
5592 | _ACEOF |
|
|
5593 | cat confdefs.h >>conftest.$ac_ext |
|
|
5594 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5595 | /* end confdefs.h. */ |
|
|
5596 | /* Define clock_gettime to an innocuous variant, in case <limits.h> declares clock_gettime. |
|
|
5597 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5598 | #define clock_gettime innocuous_clock_gettime |
|
|
5599 | |
|
|
5600 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5601 | which can conflict with char clock_gettime (); below. |
|
|
5602 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5603 | <limits.h> exists even on freestanding compilers. */ |
|
|
5604 | |
|
|
5605 | #ifdef __STDC__ |
|
|
5606 | # include <limits.h> |
|
|
5607 | #else |
|
|
5608 | # include <assert.h> |
|
|
5609 | #endif |
|
|
5610 | |
|
|
5611 | #undef clock_gettime |
|
|
5612 | |
|
|
5613 | /* Override any GCC internal prototype to avoid an error. |
|
|
5614 | Use char because int might match the return type of a GCC |
|
|
5615 | builtin and then its argument prototype would still apply. */ |
|
|
5616 | #ifdef __cplusplus |
|
|
5617 | extern "C" |
|
|
5618 | #endif |
|
|
5619 | char clock_gettime (); |
|
|
5620 | /* The GNU C library defines this for functions which it implements |
|
|
5621 | to always fail with ENOSYS. Some functions are actually named |
|
|
5622 | something starting with __ and the normal name is an alias. */ |
|
|
5623 | #if defined __stub_clock_gettime || defined __stub___clock_gettime |
|
|
5624 | choke me |
|
|
5625 | #endif |
|
|
5626 | |
|
|
5627 | int |
|
|
5628 | main () |
|
|
5629 | { |
|
|
5630 | return clock_gettime (); |
|
|
5631 | ; |
|
|
5632 | return 0; |
|
|
5633 | } |
|
|
5634 | _ACEOF |
|
|
5635 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5636 | if { (ac_try="$ac_link" |
|
|
5637 | case "(($ac_try" in |
|
|
5638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5639 | *) ac_try_echo=$ac_try;; |
|
|
5640 | esac |
|
|
5641 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5642 | (eval "$ac_link") 2>conftest.er1 |
|
|
5643 | ac_status=$? |
|
|
5644 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5645 | rm -f conftest.er1 |
|
|
5646 | cat conftest.err >&5 |
|
|
5647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5648 | (exit $ac_status); } && { |
|
|
5649 | test -z "$ac_cxx_werror_flag" || |
|
|
5650 | test ! -s conftest.err |
|
|
5651 | } && test -s conftest$ac_exeext && |
|
|
5652 | $as_test_x conftest$ac_exeext; then |
|
|
5653 | ac_cv_func_clock_gettime=yes |
|
|
5654 | else |
|
|
5655 | echo "$as_me: failed program was:" >&5 |
|
|
5656 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5657 | |
|
|
5658 | ac_cv_func_clock_gettime=no |
|
|
5659 | fi |
|
|
5660 | |
|
|
5661 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5662 | conftest$ac_exeext conftest.$ac_ext |
|
|
5663 | fi |
|
|
5664 | { echo "$as_me:$LINENO: result: $ac_cv_func_clock_gettime" >&5 |
|
|
5665 | echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; } |
|
|
5666 | if test $ac_cv_func_clock_gettime = yes; then |
|
|
5667 | : |
|
|
5668 | else |
|
|
5669 | |
|
|
5670 | if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
|
|
5671 | |
|
|
5672 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
|
|
5673 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } |
|
|
5674 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
|
|
5675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5676 | else |
|
|
5677 | ac_check_lib_save_LIBS=$LIBS |
|
|
5678 | LIBS="-lrt $LIBS" |
|
|
5679 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5680 | /* confdefs.h. */ |
|
|
5681 | _ACEOF |
|
|
5682 | cat confdefs.h >>conftest.$ac_ext |
|
|
5683 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5684 | /* end confdefs.h. */ |
|
|
5685 | |
|
|
5686 | /* Override any GCC internal prototype to avoid an error. |
|
|
5687 | Use char because int might match the return type of a GCC |
|
|
5688 | builtin and then its argument prototype would still apply. */ |
|
|
5689 | #ifdef __cplusplus |
|
|
5690 | extern "C" |
|
|
5691 | #endif |
|
|
5692 | char clock_gettime (); |
|
|
5693 | int |
|
|
5694 | main () |
|
|
5695 | { |
|
|
5696 | return clock_gettime (); |
|
|
5697 | ; |
|
|
5698 | return 0; |
|
|
5699 | } |
|
|
5700 | _ACEOF |
|
|
5701 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5702 | if { (ac_try="$ac_link" |
|
|
5703 | case "(($ac_try" in |
|
|
5704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5705 | *) ac_try_echo=$ac_try;; |
|
|
5706 | esac |
|
|
5707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5708 | (eval "$ac_link") 2>conftest.er1 |
|
|
5709 | ac_status=$? |
|
|
5710 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5711 | rm -f conftest.er1 |
|
|
5712 | cat conftest.err >&5 |
|
|
5713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5714 | (exit $ac_status); } && { |
|
|
5715 | test -z "$ac_cxx_werror_flag" || |
|
|
5716 | test ! -s conftest.err |
|
|
5717 | } && test -s conftest$ac_exeext && |
|
|
5718 | $as_test_x conftest$ac_exeext; then |
|
|
5719 | ac_cv_lib_rt_clock_gettime=yes |
|
|
5720 | else |
|
|
5721 | echo "$as_me: failed program was:" >&5 |
|
|
5722 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5723 | |
|
|
5724 | ac_cv_lib_rt_clock_gettime=no |
|
|
5725 | fi |
|
|
5726 | |
|
|
5727 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5728 | conftest$ac_exeext conftest.$ac_ext |
|
|
5729 | LIBS=$ac_check_lib_save_LIBS |
|
|
5730 | fi |
|
|
5731 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
|
|
5732 | echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; } |
|
|
5733 | if test $ac_cv_lib_rt_clock_gettime = yes; then |
|
|
5734 | cat >>confdefs.h <<_ACEOF |
|
|
5735 | #define HAVE_LIBRT 1 |
|
|
5736 | _ACEOF |
|
|
5737 | |
|
|
5738 | LIBS="-lrt $LIBS" |
|
|
5739 | |
|
|
5740 | fi |
|
|
5741 | |
|
|
5742 | unset ac_cv_func_clock_gettime |
|
|
5743 | |
|
|
5744 | for ac_func in clock_gettime |
|
|
5745 | do |
|
|
5746 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
5747 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
5748 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
5749 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5751 | else |
|
|
5752 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5753 | /* confdefs.h. */ |
|
|
5754 | _ACEOF |
|
|
5755 | cat confdefs.h >>conftest.$ac_ext |
|
|
5756 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5757 | /* end confdefs.h. */ |
|
|
5758 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
5759 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5760 | #define $ac_func innocuous_$ac_func |
|
|
5761 | |
|
|
5762 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5763 | which can conflict with char $ac_func (); below. |
|
|
5764 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5765 | <limits.h> exists even on freestanding compilers. */ |
|
|
5766 | |
|
|
5767 | #ifdef __STDC__ |
|
|
5768 | # include <limits.h> |
|
|
5769 | #else |
|
|
5770 | # include <assert.h> |
|
|
5771 | #endif |
|
|
5772 | |
|
|
5773 | #undef $ac_func |
|
|
5774 | |
|
|
5775 | /* Override any GCC internal prototype to avoid an error. |
|
|
5776 | Use char because int might match the return type of a GCC |
|
|
5777 | builtin and then its argument prototype would still apply. */ |
|
|
5778 | #ifdef __cplusplus |
|
|
5779 | extern "C" |
|
|
5780 | #endif |
|
|
5781 | char $ac_func (); |
|
|
5782 | /* The GNU C library defines this for functions which it implements |
|
|
5783 | to always fail with ENOSYS. Some functions are actually named |
|
|
5784 | something starting with __ and the normal name is an alias. */ |
|
|
5785 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
5786 | choke me |
|
|
5787 | #endif |
|
|
5788 | |
|
|
5789 | int |
|
|
5790 | main () |
|
|
5791 | { |
|
|
5792 | return $ac_func (); |
|
|
5793 | ; |
|
|
5794 | return 0; |
|
|
5795 | } |
|
|
5796 | _ACEOF |
|
|
5797 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5798 | if { (ac_try="$ac_link" |
|
|
5799 | case "(($ac_try" in |
|
|
5800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5801 | *) ac_try_echo=$ac_try;; |
|
|
5802 | esac |
|
|
5803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5804 | (eval "$ac_link") 2>conftest.er1 |
|
|
5805 | ac_status=$? |
|
|
5806 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5807 | rm -f conftest.er1 |
|
|
5808 | cat conftest.err >&5 |
|
|
5809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5810 | (exit $ac_status); } && { |
|
|
5811 | test -z "$ac_cxx_werror_flag" || |
|
|
5812 | test ! -s conftest.err |
|
|
5813 | } && test -s conftest$ac_exeext && |
|
|
5814 | $as_test_x conftest$ac_exeext; then |
|
|
5815 | eval "$as_ac_var=yes" |
|
|
5816 | else |
|
|
5817 | echo "$as_me: failed program was:" >&5 |
|
|
5818 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5819 | |
|
|
5820 | eval "$as_ac_var=no" |
|
|
5821 | fi |
|
|
5822 | |
|
|
5823 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5824 | conftest$ac_exeext conftest.$ac_ext |
|
|
5825 | fi |
|
|
5826 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
5827 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5828 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5829 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
5830 | cat >>confdefs.h <<_ACEOF |
|
|
5831 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
5832 | _ACEOF |
|
|
5833 | |
|
|
5834 | fi |
|
|
5835 | done |
|
|
5836 | |
|
|
5837 | fi |
|
|
5838 | |
|
|
5839 | fi |
|
|
5840 | |
|
|
5841 | |
|
|
5842 | |
|
|
5843 | { echo "$as_me:$LINENO: checking for ceil in -lm" >&5 |
|
|
5844 | echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; } |
|
|
5845 | if test "${ac_cv_lib_m_ceil+set}" = set; then |
|
|
5846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5847 | else |
|
|
5848 | ac_check_lib_save_LIBS=$LIBS |
|
|
5849 | LIBS="-lm $LIBS" |
|
|
5850 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5851 | /* confdefs.h. */ |
|
|
5852 | _ACEOF |
|
|
5853 | cat confdefs.h >>conftest.$ac_ext |
|
|
5854 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5855 | /* end confdefs.h. */ |
|
|
5856 | |
|
|
5857 | /* Override any GCC internal prototype to avoid an error. |
|
|
5858 | Use char because int might match the return type of a GCC |
|
|
5859 | builtin and then its argument prototype would still apply. */ |
|
|
5860 | #ifdef __cplusplus |
|
|
5861 | extern "C" |
|
|
5862 | #endif |
|
|
5863 | char ceil (); |
|
|
5864 | int |
|
|
5865 | main () |
|
|
5866 | { |
|
|
5867 | return ceil (); |
|
|
5868 | ; |
|
|
5869 | return 0; |
|
|
5870 | } |
|
|
5871 | _ACEOF |
|
|
5872 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5873 | if { (ac_try="$ac_link" |
|
|
5874 | case "(($ac_try" in |
|
|
5875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5876 | *) ac_try_echo=$ac_try;; |
|
|
5877 | esac |
|
|
5878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5879 | (eval "$ac_link") 2>conftest.er1 |
|
|
5880 | ac_status=$? |
|
|
5881 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5882 | rm -f conftest.er1 |
|
|
5883 | cat conftest.err >&5 |
|
|
5884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5885 | (exit $ac_status); } && { |
|
|
5886 | test -z "$ac_cxx_werror_flag" || |
|
|
5887 | test ! -s conftest.err |
|
|
5888 | } && test -s conftest$ac_exeext && |
|
|
5889 | $as_test_x conftest$ac_exeext; then |
|
|
5890 | ac_cv_lib_m_ceil=yes |
|
|
5891 | else |
|
|
5892 | echo "$as_me: failed program was:" >&5 |
|
|
5893 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5894 | |
|
|
5895 | ac_cv_lib_m_ceil=no |
|
|
5896 | fi |
|
|
5897 | |
|
|
5898 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5899 | conftest$ac_exeext conftest.$ac_ext |
|
|
5900 | LIBS=$ac_check_lib_save_LIBS |
|
|
5901 | fi |
|
|
5902 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5 |
|
|
5903 | echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6; } |
|
|
5904 | if test $ac_cv_lib_m_ceil = yes; then |
|
|
5905 | cat >>confdefs.h <<_ACEOF |
|
|
5906 | #define HAVE_LIBM 1 |
|
|
5907 | _ACEOF |
|
|
5908 | |
|
|
5909 | LIBS="-lm $LIBS" |
|
|
5910 | |
|
|
5911 | fi |
|
|
5912 | |
|
|
5913 | |
|
|
5914 | |
|
|
5915 | |
4864 | |
5916 | |
4865 | |
5917 | |
4866 | |
5918 | |
4867 | # Extract the first word of "tic", so it can be a program name with args. |
5919 | # Extract the first word of "tic", so it can be a program name with args. |
4868 | set dummy tic; ac_word=$2 |
5920 | set dummy tic; ac_word=$2 |
… | |
… | |
4889 | fi |
5941 | fi |
4890 | done |
5942 | done |
4891 | done |
5943 | done |
4892 | IFS=$as_save_IFS |
5944 | IFS=$as_save_IFS |
4893 | |
5945 | |
|
|
5946 | test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":" |
4894 | ;; |
5947 | ;; |
4895 | esac |
5948 | esac |
4896 | fi |
5949 | fi |
4897 | TIC=$ac_cv_path_TIC |
5950 | TIC=$ac_cv_path_TIC |
4898 | if test -n "$TIC"; then |
5951 | if test -n "$TIC"; then |
… | |
… | |
4901 | else |
5954 | else |
4902 | { echo "$as_me:$LINENO: result: no" >&5 |
5955 | { echo "$as_me:$LINENO: result: no" >&5 |
4903 | echo "${ECHO_T}no" >&6; } |
5956 | echo "${ECHO_T}no" >&6; } |
4904 | fi |
5957 | fi |
4905 | |
5958 | |
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 | |
5959 | |
5136 | |
5960 | |
5137 | { echo "$as_me:$LINENO: checking for X" >&5 |
5961 | { echo "$as_me:$LINENO: checking for X" >&5 |
5138 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
5962 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
5139 | |
5963 | |
… | |
… | |
6445 | fi |
7269 | fi |
6446 | |
7270 | |
6447 | LDFLAGS=$ac_save_LDFLAGS |
7271 | LDFLAGS=$ac_save_LDFLAGS |
6448 | |
7272 | |
6449 | fi |
7273 | fi |
6450 | |
|
|
6451 | |
7274 | |
6452 | |
7275 | |
6453 | AFTERIMAGE_CFLAGS= |
7276 | AFTERIMAGE_CFLAGS= |
6454 | AFTERIMAGE_LIBS= |
7277 | AFTERIMAGE_LIBS= |
6455 | AFTERIMAGE_VERSION= |
7278 | AFTERIMAGE_VERSION= |
… | |
… | |
6526 | echo "${ECHO_T}no" >&6; } |
7349 | echo "${ECHO_T}no" >&6; } |
6527 | fi |
7350 | fi |
6528 | fi |
7351 | fi |
6529 | fi |
7352 | fi |
6530 | |
7353 | |
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 | |
7354 | |
7203 | |
7355 | |
7204 | |
7356 | |
7205 | |
7357 | |
7206 | |
7358 | |
7207 | |
7359 | |
7208 | |
7360 | |
7209 | |
7361 | |
7210 | for ac_header in \ |
7362 | 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 \ |
7363 | sys/byteorder.h \ |
7219 | sys/ioctl.h \ |
7364 | sys/ioctl.h \ |
7220 | sys/select.h \ |
|
|
7221 | sys/sockio.h \ |
7365 | sys/sockio.h \ |
7222 | sys/strredir.h \ |
7366 | sys/strredir.h \ |
7223 | sys/time.h \ |
|
|
7224 | stdint.h \ |
7367 | stdint.h \ |
7225 | wchar.h \ |
7368 | wchar.h \ |
7226 | cwchar \ |
7369 | cwchar \ |
7227 | clocale \ |
7370 | clocale \ |
7228 | |
7371 | |
… | |
… | |
7363 | fi |
7506 | fi |
7364 | |
7507 | |
7365 | done |
7508 | done |
7366 | |
7509 | |
7367 | |
7510 | |
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 |
7511 | { 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; } |
7512 | 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 |
7513 | if test "${rxvt_cv_header_sysioctl+set}" = set; then |
7433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7434 | else |
7515 | else |
… | |
… | |
7438 | cat confdefs.h >>conftest.$ac_ext |
7519 | cat confdefs.h >>conftest.$ac_ext |
7439 | cat >>conftest.$ac_ext <<_ACEOF |
7520 | cat >>conftest.$ac_ext <<_ACEOF |
7440 | /* end confdefs.h. */ |
7521 | /* end confdefs.h. */ |
7441 | #include <stdio.h> |
7522 | #include <stdio.h> |
7442 | #include <sys/ioctl.h> |
7523 | #include <sys/ioctl.h> |
7443 | #ifdef HAVE_TERMIOS_H |
|
|
7444 | #include <termios.h> |
7524 | #include <termios.h> |
7445 | #endif |
7525 | |
7446 | int |
7526 | int |
7447 | main () |
7527 | main () |
7448 | { |
7528 | { |
7449 | int a = ECHO; |
7529 | int a = ECHO; |
7450 | ; |
7530 | ; |
… | |
… | |
7599 | cat >>confdefs.h <<\_ACEOF |
7679 | cat >>confdefs.h <<\_ACEOF |
7600 | #define XLIB_ILLEGAL_ACCESS 1 |
7680 | #define XLIB_ILLEGAL_ACCESS 1 |
7601 | _ACEOF |
7681 | _ACEOF |
7602 | |
7682 | |
7603 | fi |
7683 | 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 | |
7684 | |
7782 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
7685 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
7783 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
7686 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
7784 | if test "${ac_cv_type_mode_t+set}" = set; then |
7687 | if test "${ac_cv_type_mode_t+set}" = set; then |
7785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
7942 | _ACEOF |
7845 | _ACEOF |
7943 | |
7846 | |
7944 | fi |
7847 | fi |
7945 | |
7848 | |
7946 | |
7849 | |
7947 | { echo "$as_me:$LINENO: checking for short" >&5 |
7850 | { echo "$as_me:$LINENO: checking for int16_t" >&5 |
7948 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
7851 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } |
7949 | if test "${ac_cv_type_short+set}" = set; then |
7852 | if test "${ac_cv_c_int16_t+set}" = set; then |
7950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7951 | else |
7854 | else |
|
|
7855 | ac_cv_c_int16_t=no |
|
|
7856 | for ac_type in 'int16_t' 'int' 'long int' \ |
|
|
7857 | 'long long int' 'short int' 'signed char'; do |
7952 | cat >conftest.$ac_ext <<_ACEOF |
7858 | cat >conftest.$ac_ext <<_ACEOF |
7953 | /* confdefs.h. */ |
7859 | /* confdefs.h. */ |
7954 | _ACEOF |
7860 | _ACEOF |
7955 | cat confdefs.h >>conftest.$ac_ext |
7861 | cat confdefs.h >>conftest.$ac_ext |
7956 | cat >>conftest.$ac_ext <<_ACEOF |
7862 | cat >>conftest.$ac_ext <<_ACEOF |
7957 | /* end confdefs.h. */ |
7863 | /* end confdefs.h. */ |
7958 | $ac_includes_default |
7864 | $ac_includes_default |
7959 | typedef short ac__type_new_; |
|
|
7960 | int |
7865 | int |
7961 | main () |
7866 | main () |
7962 | { |
7867 | { |
7963 | if ((ac__type_new_ *) 0) |
7868 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))]; |
7964 | return 0; |
7869 | test_array [0] = 0 |
7965 | if (sizeof (ac__type_new_)) |
7870 | |
7966 | return 0; |
|
|
7967 | ; |
7871 | ; |
7968 | return 0; |
7872 | return 0; |
7969 | } |
7873 | } |
7970 | _ACEOF |
7874 | _ACEOF |
7971 | rm -f conftest.$ac_objext |
7875 | rm -f conftest.$ac_objext |
… | |
… | |
7983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7984 | (exit $ac_status); } && { |
7888 | (exit $ac_status); } && { |
7985 | test -z "$ac_cxx_werror_flag" || |
7889 | test -z "$ac_cxx_werror_flag" || |
7986 | test ! -s conftest.err |
7890 | test ! -s conftest.err |
7987 | } && test -s conftest.$ac_objext; then |
7891 | } && 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 |
7892 | cat >conftest.$ac_ext <<_ACEOF |
8013 | /* confdefs.h. */ |
7893 | /* confdefs.h. */ |
8014 | _ACEOF |
7894 | _ACEOF |
8015 | cat confdefs.h >>conftest.$ac_ext |
7895 | cat confdefs.h >>conftest.$ac_ext |
8016 | cat >>conftest.$ac_ext <<_ACEOF |
7896 | cat >>conftest.$ac_ext <<_ACEOF |
8017 | /* end confdefs.h. */ |
7897 | /* end confdefs.h. */ |
8018 | $ac_includes_default |
7898 | $ac_includes_default |
8019 | typedef short ac__type_sizeof_; |
|
|
8020 | int |
7899 | int |
8021 | main () |
7900 | main () |
8022 | { |
7901 | { |
8023 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
7902 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1) |
|
|
7903 | < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))]; |
8024 | test_array [0] = 0 |
7904 | test_array [0] = 0 |
8025 | |
7905 | |
8026 | ; |
7906 | ; |
8027 | return 0; |
7907 | return 0; |
8028 | } |
7908 | } |
… | |
… | |
8042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8043 | (exit $ac_status); } && { |
7923 | (exit $ac_status); } && { |
8044 | test -z "$ac_cxx_werror_flag" || |
7924 | test -z "$ac_cxx_werror_flag" || |
8045 | test ! -s conftest.err |
7925 | test ! -s conftest.err |
8046 | } && test -s conftest.$ac_objext; then |
7926 | } && test -s conftest.$ac_objext; then |
8047 | ac_lo=0 ac_mid=0 |
7927 | : |
8048 | while :; do |
7928 | else |
|
|
7929 | echo "$as_me: failed program was:" >&5 |
|
|
7930 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7931 | |
|
|
7932 | case $ac_type in |
|
|
7933 | int16_t) ac_cv_c_int16_t=yes ;; |
|
|
7934 | *) ac_cv_c_int16_t=$ac_type ;; |
|
|
7935 | esac |
|
|
7936 | |
|
|
7937 | fi |
|
|
7938 | |
|
|
7939 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7940 | else |
|
|
7941 | echo "$as_me: failed program was:" >&5 |
|
|
7942 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7943 | |
|
|
7944 | |
|
|
7945 | fi |
|
|
7946 | |
|
|
7947 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7948 | test "$ac_cv_c_int16_t" != no && break |
|
|
7949 | done |
|
|
7950 | fi |
|
|
7951 | { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5 |
|
|
7952 | echo "${ECHO_T}$ac_cv_c_int16_t" >&6; } |
|
|
7953 | case $ac_cv_c_int16_t in #( |
|
|
7954 | no|yes) ;; #( |
|
|
7955 | *) |
|
|
7956 | |
|
|
7957 | cat >>confdefs.h <<_ACEOF |
|
|
7958 | #define int16_t $ac_cv_c_int16_t |
|
|
7959 | _ACEOF |
|
|
7960 | ;; |
|
|
7961 | esac |
|
|
7962 | |
|
|
7963 | |
|
|
7964 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 |
|
|
7965 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } |
|
|
7966 | if test "${ac_cv_c_uint16_t+set}" = set; then |
|
|
7967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7968 | else |
|
|
7969 | ac_cv_c_uint16_t=no |
|
|
7970 | for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \ |
|
|
7971 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
8049 | cat >conftest.$ac_ext <<_ACEOF |
7972 | cat >conftest.$ac_ext <<_ACEOF |
8050 | /* confdefs.h. */ |
7973 | /* confdefs.h. */ |
8051 | _ACEOF |
7974 | _ACEOF |
8052 | cat confdefs.h >>conftest.$ac_ext |
7975 | cat confdefs.h >>conftest.$ac_ext |
8053 | cat >>conftest.$ac_ext <<_ACEOF |
7976 | cat >>conftest.$ac_ext <<_ACEOF |
8054 | /* end confdefs.h. */ |
7977 | /* end confdefs.h. */ |
8055 | $ac_includes_default |
7978 | $ac_includes_default |
8056 | typedef short ac__type_sizeof_; |
|
|
8057 | int |
7979 | int |
8058 | main () |
7980 | main () |
8059 | { |
7981 | { |
8060 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
7982 | static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)]; |
8061 | test_array [0] = 0 |
7983 | test_array [0] = 0 |
8062 | |
7984 | |
8063 | ; |
7985 | ; |
8064 | return 0; |
7986 | return 0; |
8065 | } |
7987 | } |
… | |
… | |
8079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8080 | (exit $ac_status); } && { |
8002 | (exit $ac_status); } && { |
8081 | test -z "$ac_cxx_werror_flag" || |
8003 | test -z "$ac_cxx_werror_flag" || |
8082 | test ! -s conftest.err |
8004 | test ! -s conftest.err |
8083 | } && test -s conftest.$ac_objext; then |
8005 | } && test -s conftest.$ac_objext; then |
8084 | ac_hi=$ac_mid; break |
8006 | case $ac_type in |
|
|
8007 | uint16_t) ac_cv_c_uint16_t=yes ;; |
|
|
8008 | *) ac_cv_c_uint16_t=$ac_type ;; |
|
|
8009 | esac |
|
|
8010 | |
8085 | else |
8011 | else |
8086 | echo "$as_me: failed program was:" >&5 |
8012 | echo "$as_me: failed program was:" >&5 |
8087 | sed 's/^/| /' conftest.$ac_ext >&5 |
8013 | sed 's/^/| /' conftest.$ac_ext >&5 |
8088 | |
8014 | |
8089 | ac_lo=`expr $ac_mid + 1` |
8015 | |
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 |
8016 | fi |
8096 | |
8017 | |
8097 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8018 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8019 | test "$ac_cv_c_uint16_t" != no && break |
8098 | done |
8020 | done |
8099 | else |
8021 | fi |
8100 | echo "$as_me: failed program was:" >&5 |
8022 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5 |
8101 | sed 's/^/| /' conftest.$ac_ext >&5 |
8023 | echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; } |
|
|
8024 | case $ac_cv_c_uint16_t in #( |
|
|
8025 | no|yes) ;; #( |
|
|
8026 | *) |
8102 | |
8027 | |
|
|
8028 | |
|
|
8029 | cat >>confdefs.h <<_ACEOF |
|
|
8030 | #define uint16_t $ac_cv_c_uint16_t |
|
|
8031 | _ACEOF |
|
|
8032 | ;; |
|
|
8033 | esac |
|
|
8034 | |
|
|
8035 | |
|
|
8036 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
|
|
8037 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
|
|
8038 | if test "${ac_cv_c_int32_t+set}" = set; then |
|
|
8039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8040 | else |
|
|
8041 | ac_cv_c_int32_t=no |
|
|
8042 | for ac_type in 'int32_t' 'int' 'long int' \ |
|
|
8043 | 'long long int' 'short int' 'signed char'; do |
8103 | cat >conftest.$ac_ext <<_ACEOF |
8044 | cat >conftest.$ac_ext <<_ACEOF |
8104 | /* confdefs.h. */ |
8045 | /* confdefs.h. */ |
8105 | _ACEOF |
8046 | _ACEOF |
8106 | cat confdefs.h >>conftest.$ac_ext |
8047 | cat confdefs.h >>conftest.$ac_ext |
8107 | cat >>conftest.$ac_ext <<_ACEOF |
8048 | cat >>conftest.$ac_ext <<_ACEOF |
8108 | /* end confdefs.h. */ |
8049 | /* end confdefs.h. */ |
8109 | $ac_includes_default |
8050 | $ac_includes_default |
8110 | typedef short ac__type_sizeof_; |
|
|
8111 | int |
8051 | int |
8112 | main () |
8052 | main () |
8113 | { |
8053 | { |
8114 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
8054 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))]; |
8115 | test_array [0] = 0 |
8055 | test_array [0] = 0 |
8116 | |
8056 | |
8117 | ; |
8057 | ; |
8118 | return 0; |
8058 | return 0; |
8119 | } |
8059 | } |
… | |
… | |
8133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8134 | (exit $ac_status); } && { |
8074 | (exit $ac_status); } && { |
8135 | test -z "$ac_cxx_werror_flag" || |
8075 | test -z "$ac_cxx_werror_flag" || |
8136 | test ! -s conftest.err |
8076 | test ! -s conftest.err |
8137 | } && test -s conftest.$ac_objext; then |
8077 | } && test -s conftest.$ac_objext; then |
8138 | ac_hi=-1 ac_mid=-1 |
|
|
8139 | while :; do |
|
|
8140 | cat >conftest.$ac_ext <<_ACEOF |
8078 | cat >conftest.$ac_ext <<_ACEOF |
8141 | /* confdefs.h. */ |
8079 | /* confdefs.h. */ |
8142 | _ACEOF |
8080 | _ACEOF |
8143 | cat confdefs.h >>conftest.$ac_ext |
8081 | cat confdefs.h >>conftest.$ac_ext |
8144 | cat >>conftest.$ac_ext <<_ACEOF |
8082 | cat >>conftest.$ac_ext <<_ACEOF |
8145 | /* end confdefs.h. */ |
8083 | /* end confdefs.h. */ |
8146 | $ac_includes_default |
8084 | $ac_includes_default |
8147 | typedef short ac__type_sizeof_; |
|
|
8148 | int |
8085 | int |
8149 | main () |
8086 | main () |
8150 | { |
8087 | { |
8151 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
8088 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1) |
|
|
8089 | < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))]; |
8152 | test_array [0] = 0 |
8090 | test_array [0] = 0 |
8153 | |
8091 | |
8154 | ; |
8092 | ; |
8155 | return 0; |
8093 | return 0; |
8156 | } |
8094 | } |
… | |
… | |
8170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8171 | (exit $ac_status); } && { |
8109 | (exit $ac_status); } && { |
8172 | test -z "$ac_cxx_werror_flag" || |
8110 | test -z "$ac_cxx_werror_flag" || |
8173 | test ! -s conftest.err |
8111 | test ! -s conftest.err |
8174 | } && test -s conftest.$ac_objext; then |
8112 | } && test -s conftest.$ac_objext; then |
8175 | ac_lo=$ac_mid; break |
8113 | : |
8176 | else |
8114 | else |
8177 | echo "$as_me: failed program was:" >&5 |
8115 | echo "$as_me: failed program was:" >&5 |
8178 | sed 's/^/| /' conftest.$ac_ext >&5 |
8116 | sed 's/^/| /' conftest.$ac_ext >&5 |
8179 | |
8117 | |
8180 | ac_hi=`expr '(' $ac_mid ')' - 1` |
8118 | case $ac_type in |
8181 | if test $ac_mid -le $ac_hi; then |
8119 | int32_t) ac_cv_c_int32_t=yes ;; |
8182 | ac_lo= ac_hi= |
8120 | *) ac_cv_c_int32_t=$ac_type ;; |
8183 | break |
8121 | esac |
8184 | fi |
8122 | |
8185 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
8186 | fi |
8123 | fi |
8187 | |
8124 | |
8188 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8125 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8189 | done |
|
|
8190 | else |
8126 | else |
8191 | echo "$as_me: failed program was:" >&5 |
8127 | echo "$as_me: failed program was:" >&5 |
8192 | sed 's/^/| /' conftest.$ac_ext >&5 |
8128 | sed 's/^/| /' conftest.$ac_ext >&5 |
8193 | |
8129 | |
8194 | ac_lo= ac_hi= |
8130 | |
8195 | fi |
8131 | fi |
8196 | |
8132 | |
8197 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8133 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8134 | test "$ac_cv_c_int32_t" != no && break |
|
|
8135 | done |
8198 | fi |
8136 | fi |
|
|
8137 | { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5 |
|
|
8138 | echo "${ECHO_T}$ac_cv_c_int32_t" >&6; } |
|
|
8139 | case $ac_cv_c_int32_t in #( |
|
|
8140 | no|yes) ;; #( |
|
|
8141 | *) |
8199 | |
8142 | |
8200 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8143 | cat >>confdefs.h <<_ACEOF |
8201 | # Binary search between lo and hi bounds. |
8144 | #define int32_t $ac_cv_c_int32_t |
8202 | while test "x$ac_lo" != "x$ac_hi"; do |
8145 | _ACEOF |
8203 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
8146 | ;; |
|
|
8147 | esac |
|
|
8148 | |
|
|
8149 | |
|
|
8150 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
|
|
8151 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
|
|
8152 | if test "${ac_cv_c_uint32_t+set}" = set; then |
|
|
8153 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8154 | else |
|
|
8155 | ac_cv_c_uint32_t=no |
|
|
8156 | for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ |
|
|
8157 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
8204 | cat >conftest.$ac_ext <<_ACEOF |
8158 | cat >conftest.$ac_ext <<_ACEOF |
8205 | /* confdefs.h. */ |
8159 | /* confdefs.h. */ |
8206 | _ACEOF |
8160 | _ACEOF |
8207 | cat confdefs.h >>conftest.$ac_ext |
8161 | cat confdefs.h >>conftest.$ac_ext |
8208 | cat >>conftest.$ac_ext <<_ACEOF |
8162 | cat >>conftest.$ac_ext <<_ACEOF |
8209 | /* end confdefs.h. */ |
8163 | /* end confdefs.h. */ |
8210 | $ac_includes_default |
8164 | $ac_includes_default |
8211 | typedef short ac__type_sizeof_; |
|
|
8212 | int |
8165 | int |
8213 | main () |
8166 | main () |
8214 | { |
8167 | { |
8215 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
8168 | static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; |
8216 | test_array [0] = 0 |
8169 | test_array [0] = 0 |
8217 | |
8170 | |
8218 | ; |
8171 | ; |
8219 | return 0; |
8172 | return 0; |
8220 | } |
8173 | } |
… | |
… | |
8234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8235 | (exit $ac_status); } && { |
8188 | (exit $ac_status); } && { |
8236 | test -z "$ac_cxx_werror_flag" || |
8189 | test -z "$ac_cxx_werror_flag" || |
8237 | test ! -s conftest.err |
8190 | test ! -s conftest.err |
8238 | } && test -s conftest.$ac_objext; then |
8191 | } && test -s conftest.$ac_objext; then |
8239 | ac_hi=$ac_mid |
8192 | case $ac_type in |
|
|
8193 | uint32_t) ac_cv_c_uint32_t=yes ;; |
|
|
8194 | *) ac_cv_c_uint32_t=$ac_type ;; |
|
|
8195 | esac |
|
|
8196 | |
8240 | else |
8197 | else |
8241 | echo "$as_me: failed program was:" >&5 |
8198 | echo "$as_me: failed program was:" >&5 |
8242 | sed 's/^/| /' conftest.$ac_ext >&5 |
8199 | sed 's/^/| /' conftest.$ac_ext >&5 |
8243 | |
8200 | |
8244 | ac_lo=`expr '(' $ac_mid ')' + 1` |
8201 | |
8245 | fi |
8202 | fi |
8246 | |
8203 | |
8247 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8204 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8248 | done |
8205 | test "$ac_cv_c_uint32_t" != no && break |
8249 | case $ac_lo in |
8206 | 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 |
8207 | 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 |
8208 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 |
8343 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
8209 | echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; } |
|
|
8210 | case $ac_cv_c_uint32_t in #( |
|
|
8211 | no|yes) ;; #( |
|
|
8212 | *) |
8344 | |
8213 | |
|
|
8214 | cat >>confdefs.h <<\_ACEOF |
|
|
8215 | #define _UINT32_T 1 |
|
|
8216 | _ACEOF |
8345 | |
8217 | |
8346 | |
8218 | |
8347 | cat >>confdefs.h <<_ACEOF |
8219 | cat >>confdefs.h <<_ACEOF |
8348 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
8220 | #define uint32_t $ac_cv_c_uint32_t |
8349 | _ACEOF |
8221 | _ACEOF |
8350 | |
8222 | ;; |
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 |
8223 | 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 | |
8224 | |
8398 | ac_cv_type_int=no |
|
|
8399 | fi |
|
|
8400 | |
8225 | |
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 | |
8226 | |
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 \ |
8227 | for ac_func in unsetenv |
9967 | unsetenv \ |
|
|
9968 | setutent \ |
|
|
9969 | on_exit \ |
|
|
9970 | |
|
|
9971 | do |
8228 | do |
9972 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8229 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9973 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8230 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9974 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
8231 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
9975 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
8232 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
… | |
… | |
10114 | |
8371 | |
10115 | |
8372 | |
10116 | |
8373 | |
10117 | |
8374 | |
10118 | for ac_func in \ |
8375 | for ac_func in \ |
10119 | ttyslot \ |
|
|
10120 | updwtmp \ |
8376 | updwtmp \ |
10121 | updwtmpx \ |
8377 | updwtmpx \ |
|
|
8378 | updlastlogx \ |
10122 | |
8379 | |
10123 | do |
8380 | do |
10124 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8381 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10125 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8382 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10126 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
8383 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
… | |
… | |
10212 | fi |
8469 | fi |
10213 | done |
8470 | done |
10214 | |
8471 | |
10215 | |
8472 | |
10216 | |
8473 | |
10217 | |
|
|
10218 | |
|
|
10219 | for ac_header in \ |
8474 | for ac_header in lastlog.h |
10220 | utmp.h \ |
|
|
10221 | utmpx.h \ |
|
|
10222 | lastlog.h \ |
|
|
10223 | |
|
|
10224 | do |
8475 | do |
10225 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
8476 | 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 |
8477 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10227 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8478 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10228 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
8479 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
… | |
… | |
10359 | |
8610 | |
10360 | done |
8611 | done |
10361 | |
8612 | |
10362 | |
8613 | |
10363 | |
8614 | |
10364 | if test "${ac_cv_header_utmp_h+set}" = set; then |
8615 | |
|
|
8616 | for ac_header in utmp.h |
|
|
8617 | do |
|
|
8618 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
8619 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10365 | { echo "$as_me:$LINENO: checking for utmp.h" >&5 |
8620 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10366 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } |
8621 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10367 | if test "${ac_cv_header_utmp_h+set}" = set; then |
8622 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10369 | fi |
8624 | fi |
|
|
8625 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10370 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
8626 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
10371 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } |
8627 | echo "${ECHO_T}$ac_res" >&6; } |
10372 | else |
8628 | else |
10373 | # Is the header compilable? |
8629 | # Is the header compilable? |
10374 | { echo "$as_me:$LINENO: checking utmp.h usability" >&5 |
8630 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10375 | echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6; } |
8631 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
10376 | cat >conftest.$ac_ext <<_ACEOF |
8632 | cat >conftest.$ac_ext <<_ACEOF |
10377 | /* confdefs.h. */ |
8633 | /* confdefs.h. */ |
10378 | _ACEOF |
8634 | _ACEOF |
10379 | cat confdefs.h >>conftest.$ac_ext |
8635 | cat confdefs.h >>conftest.$ac_ext |
10380 | cat >>conftest.$ac_ext <<_ACEOF |
8636 | cat >>conftest.$ac_ext <<_ACEOF |
10381 | /* end confdefs.h. */ |
8637 | /* end confdefs.h. */ |
10382 | $ac_includes_default |
8638 | $ac_includes_default |
10383 | #include <utmp.h> |
8639 | #include <$ac_header> |
10384 | _ACEOF |
8640 | _ACEOF |
10385 | rm -f conftest.$ac_objext |
8641 | rm -f conftest.$ac_objext |
10386 | if { (ac_try="$ac_compile" |
8642 | if { (ac_try="$ac_compile" |
10387 | case "(($ac_try" in |
8643 | case "(($ac_try" in |
10388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
… | |
… | |
10410 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8666 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10411 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8667 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10412 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
8668 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
10413 | |
8669 | |
10414 | # Is the header present? |
8670 | # Is the header present? |
10415 | { echo "$as_me:$LINENO: checking utmp.h presence" >&5 |
8671 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10416 | echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6; } |
8672 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
10417 | cat >conftest.$ac_ext <<_ACEOF |
8673 | cat >conftest.$ac_ext <<_ACEOF |
10418 | /* confdefs.h. */ |
8674 | /* confdefs.h. */ |
10419 | _ACEOF |
8675 | _ACEOF |
10420 | cat confdefs.h >>conftest.$ac_ext |
8676 | cat confdefs.h >>conftest.$ac_ext |
10421 | cat >>conftest.$ac_ext <<_ACEOF |
8677 | cat >>conftest.$ac_ext <<_ACEOF |
10422 | /* end confdefs.h. */ |
8678 | /* end confdefs.h. */ |
10423 | #include <utmp.h> |
8679 | #include <$ac_header> |
10424 | _ACEOF |
8680 | _ACEOF |
10425 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8681 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10426 | case "(($ac_try" in |
8682 | case "(($ac_try" in |
10427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10428 | *) ac_try_echo=$ac_try;; |
8684 | *) ac_try_echo=$ac_try;; |
… | |
… | |
10451 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
8707 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
10452 | |
8708 | |
10453 | # So? What about this header? |
8709 | # So? What about this header? |
10454 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
8710 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
10455 | yes:no: ) |
8711 | yes:no: ) |
10456 | { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
8712 | { 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;} |
8713 | 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 |
8714 | { 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;} |
8715 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
10460 | ac_header_preproc=yes |
8716 | ac_header_preproc=yes |
10461 | ;; |
8717 | ;; |
10462 | no:yes:* ) |
8718 | no:yes:* ) |
10463 | { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5 |
8719 | { 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;} |
8720 | 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 |
8721 | { 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;} |
8722 | 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 |
8723 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
10468 | echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;} |
8724 | 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 |
8725 | { 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;} |
8726 | 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 |
8727 | { 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;} |
8728 | 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 |
8729 | { 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;} |
8730 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
10475 | |
8731 | |
10476 | ;; |
8732 | ;; |
10477 | esac |
8733 | esac |
10478 | { echo "$as_me:$LINENO: checking for utmp.h" >&5 |
8734 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10479 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } |
8735 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10480 | if test "${ac_cv_header_utmp_h+set}" = set; then |
8736 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10481 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8737 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10482 | else |
8738 | else |
10483 | ac_cv_header_utmp_h=$ac_header_preproc |
8739 | eval "$as_ac_Header=\$ac_header_preproc" |
10484 | fi |
8740 | fi |
|
|
8741 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10485 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
8742 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
10486 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } |
8743 | echo "${ECHO_T}$ac_res" >&6; } |
10487 | |
8744 | |
10488 | fi |
8745 | fi |
10489 | if test $ac_cv_header_utmp_h = yes; then |
8746 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
8747 | cat >>confdefs.h <<_ACEOF |
|
|
8748 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
8749 | _ACEOF |
10490 | { echo "$as_me:$LINENO: checking for struct utmp" >&5 |
8750 | { echo "$as_me:$LINENO: checking for struct utmp" >&5 |
10491 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; } |
8751 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; } |
10492 | if test "${struct_utmp+set}" = set; then |
8752 | if test "${struct_utmp+set}" = set; then |
10493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8753 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10494 | else |
8754 | else |
10495 | cat >conftest.$ac_ext <<_ACEOF |
8755 | cat >conftest.$ac_ext <<_ACEOF |
… | |
… | |
10662 | |
8922 | |
10663 | fi |
8923 | fi |
10664 | |
8924 | |
10665 | fi |
8925 | fi |
10666 | |
8926 | |
|
|
8927 | done |
10667 | |
8928 | |
10668 | |
8929 | |
10669 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
8930 | |
|
|
8931 | for ac_header in utmpx.h |
|
|
8932 | do |
|
|
8933 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
8934 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10670 | { echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
8935 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10671 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } |
8936 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10672 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
8937 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10674 | fi |
8939 | fi |
|
|
8940 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10675 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
8941 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
10676 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } |
8942 | echo "${ECHO_T}$ac_res" >&6; } |
10677 | else |
8943 | else |
10678 | # Is the header compilable? |
8944 | # Is the header compilable? |
10679 | { echo "$as_me:$LINENO: checking utmpx.h usability" >&5 |
8945 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10680 | echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6; } |
8946 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
10681 | cat >conftest.$ac_ext <<_ACEOF |
8947 | cat >conftest.$ac_ext <<_ACEOF |
10682 | /* confdefs.h. */ |
8948 | /* confdefs.h. */ |
10683 | _ACEOF |
8949 | _ACEOF |
10684 | cat confdefs.h >>conftest.$ac_ext |
8950 | cat confdefs.h >>conftest.$ac_ext |
10685 | cat >>conftest.$ac_ext <<_ACEOF |
8951 | cat >>conftest.$ac_ext <<_ACEOF |
10686 | /* end confdefs.h. */ |
8952 | /* end confdefs.h. */ |
10687 | $ac_includes_default |
8953 | $ac_includes_default |
10688 | #include <utmpx.h> |
8954 | #include <$ac_header> |
10689 | _ACEOF |
8955 | _ACEOF |
10690 | rm -f conftest.$ac_objext |
8956 | rm -f conftest.$ac_objext |
10691 | if { (ac_try="$ac_compile" |
8957 | if { (ac_try="$ac_compile" |
10692 | case "(($ac_try" in |
8958 | case "(($ac_try" in |
10693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
… | |
… | |
10715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8981 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10716 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8982 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10717 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
8983 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
10718 | |
8984 | |
10719 | # Is the header present? |
8985 | # Is the header present? |
10720 | { echo "$as_me:$LINENO: checking utmpx.h presence" >&5 |
8986 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10721 | echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6; } |
8987 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
10722 | cat >conftest.$ac_ext <<_ACEOF |
8988 | cat >conftest.$ac_ext <<_ACEOF |
10723 | /* confdefs.h. */ |
8989 | /* confdefs.h. */ |
10724 | _ACEOF |
8990 | _ACEOF |
10725 | cat confdefs.h >>conftest.$ac_ext |
8991 | cat confdefs.h >>conftest.$ac_ext |
10726 | cat >>conftest.$ac_ext <<_ACEOF |
8992 | cat >>conftest.$ac_ext <<_ACEOF |
10727 | /* end confdefs.h. */ |
8993 | /* end confdefs.h. */ |
10728 | #include <utmpx.h> |
8994 | #include <$ac_header> |
10729 | _ACEOF |
8995 | _ACEOF |
10730 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8996 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10731 | case "(($ac_try" in |
8997 | case "(($ac_try" in |
10732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10733 | *) ac_try_echo=$ac_try;; |
8999 | *) ac_try_echo=$ac_try;; |
… | |
… | |
10756 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
9022 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
10757 | |
9023 | |
10758 | # So? What about this header? |
9024 | # So? What about this header? |
10759 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
9025 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
10760 | yes:no: ) |
9026 | yes:no: ) |
10761 | { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
9027 | { 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;} |
9028 | 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 |
9029 | { 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;} |
9030 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
10765 | ac_header_preproc=yes |
9031 | ac_header_preproc=yes |
10766 | ;; |
9032 | ;; |
10767 | no:yes:* ) |
9033 | no:yes:* ) |
10768 | { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5 |
9034 | { 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;} |
9035 | 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 |
9036 | { 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;} |
9037 | 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 |
9038 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
10773 | echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;} |
9039 | 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 |
9040 | { 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;} |
9041 | 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 |
9042 | { 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;} |
9043 | 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 |
9044 | { 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;} |
9045 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
10780 | |
9046 | |
10781 | ;; |
9047 | ;; |
10782 | esac |
9048 | esac |
10783 | { echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
9049 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10784 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } |
9050 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10785 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
9051 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10786 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10787 | else |
9053 | else |
10788 | ac_cv_header_utmpx_h=$ac_header_preproc |
9054 | eval "$as_ac_Header=\$ac_header_preproc" |
10789 | fi |
9055 | fi |
|
|
9056 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10790 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
9057 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
10791 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } |
9058 | echo "${ECHO_T}$ac_res" >&6; } |
10792 | |
9059 | |
10793 | fi |
9060 | fi |
10794 | if test $ac_cv_header_utmpx_h = yes; then |
9061 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
9062 | cat >>confdefs.h <<_ACEOF |
|
|
9063 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
9064 | _ACEOF |
10795 | { echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
9065 | { echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
10796 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; } |
9066 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; } |
10797 | if test "${struct_utmpx+set}" = set; then |
9067 | if test "${struct_utmpx+set}" = set; then |
10798 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10799 | else |
9069 | else |
10800 | cat >conftest.$ac_ext <<_ACEOF |
9070 | cat >conftest.$ac_ext <<_ACEOF |
… | |
… | |
10967 | |
9237 | |
10968 | fi |
9238 | fi |
10969 | |
9239 | |
10970 | fi |
9240 | fi |
10971 | |
9241 | |
|
|
9242 | done |
10972 | |
9243 | |
10973 | { echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
9244 | { echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
10974 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } |
9245 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } |
10975 | if test "${struct_lastlog+set}" = set; then |
9246 | if test "${struct_lastlog+set}" = set; then |
10976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
11547 | |
9818 | |
11548 | cat >>confdefs.h <<_ACEOF |
9819 | cat >>confdefs.h <<_ACEOF |
11549 | #define LASTLOG_FILE "$path_lastlog" |
9820 | #define LASTLOG_FILE "$path_lastlog" |
11550 | _ACEOF |
9821 | _ACEOF |
11551 | |
9822 | |
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 |
9823 | fi |
11560 | |
9824 | |
11561 | { echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
9825 | { echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
11562 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } |
9826 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } |
11563 | if test "${path_lastlogx+set}" = set; then |
9827 | if test "${path_lastlogx+set}" = set; then |
… | |
… | |
11645 | |
9909 | |
11646 | fi |
9910 | fi |
11647 | |
9911 | |
11648 | |
9912 | |
11649 | |
9913 | |
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 | |
9914 | |
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 |
9915 | save_LIBS=$LIBS |
11676 | ac_save_CFLAGS=$CFLAGS |
9916 | save_CFLAGS=$CFLAGS |
11677 | CFLAGS="$CFLAGS $X_CFLAGS" |
9917 | CFLAGS="$CFLAGS $X_CFLAGS" |
11678 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
9918 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
|
|
9919 | if test x$support_xim = xyes; then |
11679 | { echo "$as_me:$LINENO: checking for working Xlocale" >&5 |
9920 | { echo "$as_me:$LINENO: checking for working Xlocale" >&5 |
11680 | echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } |
9921 | echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } |
11681 | if test "${rxvt_cv_func_xlocale+set}" = set; then |
9922 | if test "${rxvt_cv_func_xlocale+set}" = set; then |
11682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11683 | else |
9924 | else |
11684 | if test "$cross_compiling" = yes; then |
9925 | if test "$cross_compiling" = yes; then |
11685 | : |
9926 | : |
11686 | else |
9927 | else |
11687 | cat >conftest.$ac_ext <<_ACEOF |
9928 | cat >conftest.$ac_ext <<_ACEOF |
11688 | /* confdefs.h. */ |
9929 | /* confdefs.h. */ |
11689 | _ACEOF |
9930 | _ACEOF |
11690 | cat confdefs.h >>conftest.$ac_ext |
9931 | cat confdefs.h >>conftest.$ac_ext |
11691 | cat >>conftest.$ac_ext <<_ACEOF |
9932 | cat >>conftest.$ac_ext <<_ACEOF |
11692 | /* end confdefs.h. */ |
9933 | /* end confdefs.h. */ |
11693 | #include <X11/Xlib.h> |
9934 | #include <X11/Xlib.h> |
11694 | #include <stdlib.h> |
9935 | #include <stdlib.h> |
11695 | main() { |
9936 | main() { |
11696 | char *p; |
9937 | char *p; |
11697 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
9938 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
11698 | exit (XSupportsLocale() ? 0 : 1); |
9939 | exit (XSupportsLocale() ? 0 : 1); |
11699 | else |
9940 | else |
11700 | exit (1);} |
9941 | exit (1);} |
11701 | _ACEOF |
9942 | _ACEOF |
11702 | rm -f conftest$ac_exeext |
9943 | rm -f conftest$ac_exeext |
11703 | if { (ac_try="$ac_link" |
9944 | if { (ac_try="$ac_link" |
11704 | case "(($ac_try" in |
9945 | case "(($ac_try" in |
11705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
… | |
… | |
11717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9958 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11718 | (eval "$ac_try") 2>&5 |
9959 | (eval "$ac_try") 2>&5 |
11719 | ac_status=$? |
9960 | ac_status=$? |
11720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11721 | (exit $ac_status); }; }; then |
9962 | (exit $ac_status); }; }; then |
11722 | rxvt_cv_func_xlocale=yes |
9963 | rxvt_cv_func_xlocale=yes |
11723 | else |
9964 | else |
11724 | echo "$as_me: program exited with status $ac_status" >&5 |
9965 | echo "$as_me: program exited with status $ac_status" >&5 |
11725 | echo "$as_me: failed program was:" >&5 |
9966 | echo "$as_me: failed program was:" >&5 |
11726 | sed 's/^/| /' conftest.$ac_ext >&5 |
9967 | sed 's/^/| /' conftest.$ac_ext >&5 |
11727 | |
9968 | |
… | |
… | |
11733 | |
9974 | |
11734 | |
9975 | |
11735 | fi |
9976 | fi |
11736 | { echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 |
9977 | { echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 |
11737 | echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; } |
9978 | 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 |
9979 | if test x$rxvt_cv_func_xlocale = xyes; then |
11740 | |
9980 | |
11741 | cat >>confdefs.h <<\_ACEOF |
9981 | cat >>confdefs.h <<\_ACEOF |
11742 | #define USE_XIM 1 |
9982 | #define USE_XIM 1 |
11743 | _ACEOF |
9983 | _ACEOF |
11744 | |
9984 | |
|
|
9985 | { echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
|
|
9986 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; } |
|
|
9987 | if test "${rxvt_broken_ximcb+set}" = set; then |
|
|
9988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9989 | else |
|
|
9990 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9991 | |
|
|
9992 | #include <X11/Xlib.h> |
|
|
9993 | |
|
|
9994 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
|
|
9995 | |
|
|
9996 | void f() { |
|
|
9997 | XIMCallback cb; |
|
|
9998 | cb.callback = im_destroy_cb; |
|
|
9999 | } |
|
|
10000 | |
|
|
10001 | _ACEOF |
|
|
10002 | rm -f conftest.$ac_objext |
|
|
10003 | if { (ac_try="$ac_compile" |
|
|
10004 | case "(($ac_try" in |
|
|
10005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10006 | *) ac_try_echo=$ac_try;; |
|
|
10007 | esac |
|
|
10008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10009 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10010 | ac_status=$? |
|
|
10011 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10012 | rm -f conftest.er1 |
|
|
10013 | cat conftest.err >&5 |
|
|
10014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10015 | (exit $ac_status); } && { |
|
|
10016 | test -z "$ac_cxx_werror_flag" || |
|
|
10017 | test ! -s conftest.err |
|
|
10018 | } && test -s conftest.$ac_objext; then |
|
|
10019 | rxvt_broken_ximcb=yes |
|
|
10020 | else |
|
|
10021 | echo "$as_me: failed program was:" >&5 |
|
|
10022 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10023 | |
|
|
10024 | rxvt_broken_ximcb=no |
|
|
10025 | fi |
|
|
10026 | |
|
|
10027 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10028 | fi |
|
|
10029 | { echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5 |
|
|
10030 | echo "${ECHO_T}$rxvt_broken_ximcb" >&6; } |
|
|
10031 | |
|
|
10032 | if test x$rxvt_broken_ximcb = xyes; then |
|
|
10033 | |
|
|
10034 | cat >>confdefs.h <<\_ACEOF |
|
|
10035 | #define XIMCB_PROTO_BROKEN 1 |
|
|
10036 | _ACEOF |
|
|
10037 | |
|
|
10038 | fi |
11745 | fi |
10039 | fi |
11746 | fi |
10040 | fi |
11747 | |
10041 | |
11748 | { echo "$as_me:$LINENO: checking for working X setlocale" >&5 |
10042 | { echo "$as_me:$LINENO: checking for working X setlocale" >&5 |
11749 | echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; } |
10043 | echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; } |
… | |
… | |
11802 | cat >>confdefs.h <<\_ACEOF |
10096 | cat >>confdefs.h <<\_ACEOF |
11803 | #define HAVE_XSETLOCALE 1 |
10097 | #define HAVE_XSETLOCALE 1 |
11804 | _ACEOF |
10098 | _ACEOF |
11805 | |
10099 | |
11806 | fi |
10100 | fi |
11807 | LIBS=$ac_save_LIBS |
10101 | LIBS=$save_LIBS |
11808 | CFLAGS=$ac_save_CFLAGS |
10102 | CFLAGS=$save_CFLAGS |
11809 | |
10103 | |
11810 | { echo "$as_me:$LINENO: checking for working plain setlocale" >&5 |
10104 | { echo "$as_me:$LINENO: checking for working plain setlocale" >&5 |
11811 | echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } |
10105 | echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } |
11812 | if test "${rxvt_cv_func_setlocale+set}" = set; then |
10106 | if test "${rxvt_cv_func_setlocale+set}" = set; then |
11813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
12016 | { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5 |
10310 | { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5 |
12017 | echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} |
10311 | echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} |
12018 | { (exit 1); exit 1; }; } |
10312 | { (exit 1); exit 1; }; } |
12019 | fi |
10313 | fi |
12020 | |
10314 | |
12021 | |
|
|
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 | |
10315 | |
12077 | |
10316 | |
12078 | |
10317 | |
12079 | |
10318 | |
12080 | |
10319 | |
… | |
… | |
12761 | echo "${ECHO_T}no" >&6; } |
11000 | echo "${ECHO_T}no" >&6; } |
12762 | fi |
11001 | fi |
12763 | |
11002 | |
12764 | |
11003 | |
12765 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
11004 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
12766 | LIBS="$LIBS `$PKG_CONFIG xft --libs`" |
11005 | X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS" |
12767 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
11006 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
12768 | else |
11007 | else |
12769 | # Extract the first word of "xft-config", so it can be a program name with args. |
11008 | # Extract the first word of "xft-config", so it can be a program name with args. |
12770 | set dummy xft-config; ac_word=$2 |
11009 | set dummy xft-config; ac_word=$2 |
12771 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11010 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
… | |
… | |
12806 | echo "${ECHO_T}no" >&6; } |
11045 | echo "${ECHO_T}no" >&6; } |
12807 | fi |
11046 | fi |
12808 | |
11047 | |
12809 | |
11048 | |
12810 | if test $XFT_CONFIG != no; then |
11049 | if test $XFT_CONFIG != no; then |
12811 | LIBS="$LIBS `$XFT_CONFIG --libs`" |
11050 | X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" |
12812 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
11051 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
12813 | fi |
11052 | fi |
12814 | fi |
11053 | fi |
12815 | |
11054 | |
|
|
11055 | save_LIBS="$LIBS" |
|
|
11056 | LIBS="$LIBS $X_LIBS" |
12816 | |
11057 | |
12817 | for ac_header in X11/Xft/Xft.h |
11058 | for ac_header in X11/Xft/Xft.h |
12818 | do |
11059 | do |
12819 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11060 | 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 |
11061 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
… | |
… | |
12953 | support_xft=no |
11194 | support_xft=no |
12954 | fi |
11195 | fi |
12955 | |
11196 | |
12956 | done |
11197 | done |
12957 | |
11198 | |
12958 | |
|
|
12959 | { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
11199 | { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
12960 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
11200 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
12961 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
11201 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
12962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11202 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12963 | else |
11203 | else |
12964 | ac_check_lib_save_LIBS=$LIBS |
11204 | ac_check_lib_save_LIBS=$LIBS |
… | |
… | |
13016 | LIBS=$ac_check_lib_save_LIBS |
11256 | LIBS=$ac_check_lib_save_LIBS |
13017 | fi |
11257 | fi |
13018 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
11258 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
13019 | echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } |
11259 | echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } |
13020 | if test $ac_cv_lib_Xft_XftDrawString32 = yes; then |
11260 | if test $ac_cv_lib_Xft_XftDrawString32 = yes; then |
13021 | cat >>confdefs.h <<_ACEOF |
11261 | : |
13022 | #define HAVE_LIBXFT 1 |
|
|
13023 | _ACEOF |
|
|
13024 | |
|
|
13025 | LIBS="-lXft $LIBS" |
|
|
13026 | |
|
|
13027 | else |
11262 | else |
13028 | support_xft=no |
11263 | support_xft=no |
13029 | fi |
11264 | fi |
13030 | |
11265 | |
|
|
11266 | LIBS="$save_LIBS" |
13031 | |
11267 | |
13032 | if test x$support_xft = xyes; then |
11268 | if test x$support_xft = xyes; then |
13033 | |
11269 | |
13034 | cat >>confdefs.h <<\_ACEOF |
11270 | cat >>confdefs.h <<\_ACEOF |
13035 | #define XFT 1 |
11271 | #define XFT 1 |
… | |
… | |
13063 | cat >>confdefs.h <<\_ACEOF |
11299 | cat >>confdefs.h <<\_ACEOF |
13064 | #define OFF_FOCUS_FADING 1 |
11300 | #define OFF_FOCUS_FADING 1 |
13065 | _ACEOF |
11301 | _ACEOF |
13066 | |
11302 | |
13067 | fi |
11303 | 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 |
11304 | if test x$support_inheritpixmap = xyes; then |
13076 | |
11305 | |
13077 | cat >>confdefs.h <<\_ACEOF |
11306 | cat >>confdefs.h <<\_ACEOF |
13078 | #define ENABLE_TRANSPARENCY 1 |
11307 | #define ENABLE_TRANSPARENCY 1 |
13079 | _ACEOF |
11308 | _ACEOF |
… | |
… | |
13091 | cat >>confdefs.h <<\_ACEOF |
11320 | cat >>confdefs.h <<\_ACEOF |
13092 | #define SELECTION_SCROLLING 1 |
11321 | #define SELECTION_SCROLLING 1 |
13093 | _ACEOF |
11322 | _ACEOF |
13094 | |
11323 | |
13095 | fi |
11324 | fi |
|
|
11325 | if test x$support_frills = xyes; then |
|
|
11326 | |
|
|
11327 | cat >>confdefs.h <<\_ACEOF |
|
|
11328 | #define ENABLE_FRILLS 1 |
|
|
11329 | _ACEOF |
|
|
11330 | |
|
|
11331 | fi |
13096 | if test x$support_mousewheel = xyes; then |
11332 | if test x$support_mousewheel = xyes; then |
13097 | |
11333 | |
13098 | cat >>confdefs.h <<\_ACEOF |
11334 | cat >>confdefs.h <<\_ACEOF |
13099 | #define MOUSE_WHEEL 1 |
11335 | #define MOUSE_WHEEL 1 |
13100 | _ACEOF |
11336 | _ACEOF |
… | |
… | |
13105 | cat >>confdefs.h <<\_ACEOF |
11341 | cat >>confdefs.h <<\_ACEOF |
13106 | #define MOUSE_SLIP_WHEELING 1 |
11342 | #define MOUSE_SLIP_WHEELING 1 |
13107 | _ACEOF |
11343 | _ACEOF |
13108 | |
11344 | |
13109 | fi |
11345 | 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 |
11346 | if test x$support_afterimage = xyes; then |
13119 | |
11347 | |
13120 | cat >>confdefs.h <<\_ACEOF |
11348 | cat >>confdefs.h <<\_ACEOF |
13121 | #define HAVE_AFTERIMAGE 1 |
11349 | #define HAVE_AFTERIMAGE 1 |
|
|
11350 | _ACEOF |
|
|
11351 | |
|
|
11352 | |
|
|
11353 | cat >>confdefs.h <<\_ACEOF |
|
|
11354 | #define BG_IMAGE_FROM_FILE 1 |
13122 | _ACEOF |
11355 | _ACEOF |
13123 | |
11356 | |
13124 | fi |
11357 | fi |
13125 | |
11358 | |
13126 | |
11359 | |
… | |
… | |
13399 | |
11632 | |
13400 | |
11633 | |
13401 | |
11634 | |
13402 | |
11635 | |
13403 | |
11636 | |
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 | |
11637 | |
13417 | |
11638 | |
13418 | |
11639 | |
13419 | |
11640 | |
13420 | |
11641 | |
… | |
… | |
13445 | if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then |
11666 | if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then |
13446 | include_stdint_h="#include <stdint.h>" |
11667 | include_stdint_h="#include <stdint.h>" |
13447 | else |
11668 | else |
13448 | include_stdint_h="/* #include <stdint.h> */" |
11669 | include_stdint_h="/* #include <stdint.h> */" |
13449 | fi |
11670 | 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 |
11671 | if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then |
13486 | include_sys_ioctl_h="#include <sys/ioctl.h>" |
11672 | include_sys_ioctl_h="#include <sys/ioctl.h>" |
13487 | else |
11673 | else |
13488 | include_sys_ioctl_h="/* #include <sys/ioctl.h> */" |
11674 | include_sys_ioctl_h="/* #include <sys/ioctl.h> */" |
13489 | fi |
11675 | 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 |
11676 | if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then |
13496 | include_sys_strredir_h="#include <sys/strredir.h>" |
11677 | include_sys_strredir_h="#include <sys/strredir.h>" |
13497 | else |
11678 | else |
13498 | include_sys_strredir_h="/* #include <sys/strredir.h> */" |
11679 | 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 |
11680 | fi |
13510 | |
11681 | |
13511 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" |
11682 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" |
13512 | |
11683 | |
13513 | cat >confcache <<\_ACEOF |
11684 | cat >confcache <<\_ACEOF |
… | |
… | |
14174 | host_cpu!$host_cpu$ac_delim |
12345 | host_cpu!$host_cpu$ac_delim |
14175 | host_vendor!$host_vendor$ac_delim |
12346 | host_vendor!$host_vendor$ac_delim |
14176 | host_os!$host_os$ac_delim |
12347 | host_os!$host_os$ac_delim |
14177 | VERSION!$VERSION$ac_delim |
12348 | VERSION!$VERSION$ac_delim |
14178 | DATE!$DATE$ac_delim |
12349 | DATE!$DATE$ac_delim |
14179 | LSMDATE!$LSMDATE$ac_delim |
|
|
14180 | LIBVERSION!$LIBVERSION$ac_delim |
|
|
14181 | CC!$CC$ac_delim |
12350 | CC!$CC$ac_delim |
14182 | CFLAGS!$CFLAGS$ac_delim |
12351 | CFLAGS!$CFLAGS$ac_delim |
14183 | LDFLAGS!$LDFLAGS$ac_delim |
12352 | LDFLAGS!$LDFLAGS$ac_delim |
14184 | CPPFLAGS!$CPPFLAGS$ac_delim |
12353 | CPPFLAGS!$CPPFLAGS$ac_delim |
14185 | ac_ct_CC!$ac_ct_CC$ac_delim |
12354 | ac_ct_CC!$ac_ct_CC$ac_delim |
… | |
… | |
14193 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
12362 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
14194 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
12363 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
14195 | GREP!$GREP$ac_delim |
12364 | GREP!$GREP$ac_delim |
14196 | EGREP!$EGREP$ac_delim |
12365 | EGREP!$EGREP$ac_delim |
14197 | LINKER!$LINKER$ac_delim |
12366 | LINKER!$LINKER$ac_delim |
14198 | INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim |
|
|
14199 | RXVTNAME!$RXVTNAME$ac_delim |
12367 | RXVTNAME!$RXVTNAME$ac_delim |
|
|
12368 | CXXCPP!$CXXCPP$ac_delim |
14200 | TIC!$TIC$ac_delim |
12369 | TIC!$TIC$ac_delim |
14201 | XMKMF!$XMKMF$ac_delim |
12370 | XMKMF!$XMKMF$ac_delim |
14202 | CXXCPP!$CXXCPP$ac_delim |
|
|
14203 | X_CFLAGS!$X_CFLAGS$ac_delim |
12371 | X_CFLAGS!$X_CFLAGS$ac_delim |
14204 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
12372 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
14205 | X_LIBS!$X_LIBS$ac_delim |
12373 | X_LIBS!$X_LIBS$ac_delim |
14206 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
12374 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
14207 | afterimage_config!$afterimage_config$ac_delim |
12375 | 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 |
12376 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
14218 | XFT_CONFIG!$XFT_CONFIG$ac_delim |
12377 | XFT_CONFIG!$XFT_CONFIG$ac_delim |
14219 | PERL!$PERL$ac_delim |
12378 | PERL!$PERL$ac_delim |
14220 | PERLLIB!$PERLLIB$ac_delim |
12379 | PERLLIB!$PERLLIB$ac_delim |
14221 | PERLFLAGS!$PERLFLAGS$ac_delim |
12380 | PERLFLAGS!$PERLFLAGS$ac_delim |
… | |
… | |
14223 | IF_PERL!$IF_PERL$ac_delim |
12382 | IF_PERL!$IF_PERL$ac_delim |
14224 | PERL_O!$PERL_O$ac_delim |
12383 | PERL_O!$PERL_O$ac_delim |
14225 | AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim |
12384 | AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim |
14226 | AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim |
12385 | AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim |
14227 | include_stdint_h!$include_stdint_h$ac_delim |
12386 | include_stdint_h!$include_stdint_h$ac_delim |
|
|
12387 | include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim |
14228 | include_stdarg_h!$include_stdarg_h$ac_delim |
12388 | include_sys_strredir_h!$include_sys_strredir_h$ac_delim |
|
|
12389 | LIBOBJS!$LIBOBJS$ac_delim |
|
|
12390 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
14229 | _ACEOF |
12391 | _ACEOF |
14230 | |
12392 | |
14231 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
12393 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 88; then |
14232 | break |
12394 | break |
14233 | elif $ac_last_try; then |
12395 | elif $ac_last_try; then |
14234 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
12396 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
14235 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
12397 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
14236 | { (exit 1); exit 1; }; } |
12398 | { (exit 1); exit 1; }; } |
… | |
… | |
14245 | ac_eof=`expr $ac_eof + 1` |
12407 | ac_eof=`expr $ac_eof + 1` |
14246 | fi |
12408 | fi |
14247 | |
12409 | |
14248 | cat >>$CONFIG_STATUS <<_ACEOF |
12410 | cat >>$CONFIG_STATUS <<_ACEOF |
14249 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
12411 | 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 |
12412 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
14305 | _ACEOF |
12413 | _ACEOF |
14306 | sed ' |
12414 | sed ' |
14307 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
12415 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
14308 | s/^/s,@/; s/!/@,|#_!!_#|/ |
12416 | s/^/s,@/; s/!/@,|#_!!_#|/ |
… | |
… | |
14561 | s&@builddir@&$ac_builddir&;t t |
12669 | s&@builddir@&$ac_builddir&;t t |
14562 | s&@abs_builddir@&$ac_abs_builddir&;t t |
12670 | s&@abs_builddir@&$ac_abs_builddir&;t t |
14563 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
12671 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
14564 | s&@INSTALL@&$ac_INSTALL&;t t |
12672 | s&@INSTALL@&$ac_INSTALL&;t t |
14565 | $ac_datarootdir_hack |
12673 | $ac_datarootdir_hack |
14566 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
12674 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out |
14567 | |
12675 | |
14568 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
12676 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
14569 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
12677 | { 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"; } && |
12678 | { 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' |
12679 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
… | |
… | |
14719 | Install path: ${prefix}/bin |
12827 | Install path: ${prefix}/bin |
14720 | Compiler: $CXX |
12828 | Compiler: $CXX |
14721 | Compiler flags: $CXXFLAGS |
12829 | Compiler flags: $CXXFLAGS |
14722 | Linker: $LINKER" |
12830 | Linker: $LINKER" |
14723 | |
12831 | |
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 |
12832 | if test x$term != x; then |
14734 | echo " set TERM to: $term" |
12833 | echo " set TERM to: $term" |
14735 | fi |
12834 | fi |
14736 | if test x$terminfo != x; then |
12835 | if test x$terminfo != x; then |
14737 | echo " set TERMINFO to: $terminfo" |
12836 | echo " set TERMINFO to: $terminfo" |
… | |
… | |
14743 | fi |
12842 | fi |
14744 | echo |
12843 | echo |
14745 | echo " embedded perl: $support_perl" |
12844 | echo " embedded perl: $support_perl" |
14746 | echo " libafterimage: $support_afterimage" |
12845 | echo " libafterimage: $support_afterimage" |
14747 | echo |
12846 | 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 |
12847 | if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then |
14759 | echo ".----------------------------------------------------------------." |
12848 | echo ".----------------------------------------------------------------." |
14760 | echo ". WARNING: --enable-xim was specified however the locale support ." |
12849 | echo ". WARNING: --enable-xim was specified however the locale support ." |
14761 | echo ". functions could not be found. ." |
12850 | echo ". functions could not be found. ." |
14762 | echo ". XIM is now being DISABLED! ." |
12851 | echo ". XIM is now being DISABLED! ." |