… | |
… | |
658 | host_cpu |
658 | host_cpu |
659 | host_vendor |
659 | host_vendor |
660 | host_os |
660 | host_os |
661 | VERSION |
661 | VERSION |
662 | DATE |
662 | DATE |
663 | LSMDATE |
|
|
664 | LIBVERSION |
|
|
665 | CC |
663 | CC |
666 | CFLAGS |
664 | CFLAGS |
667 | LDFLAGS |
665 | LDFLAGS |
668 | CPPFLAGS |
666 | CPPFLAGS |
669 | ac_ct_CC |
667 | ac_ct_CC |
… | |
… | |
677 | INSTALL_SCRIPT |
675 | INSTALL_SCRIPT |
678 | INSTALL_DATA |
676 | INSTALL_DATA |
679 | GREP |
677 | GREP |
680 | EGREP |
678 | EGREP |
681 | LINKER |
679 | LINKER |
682 | INSTALL_LIBRXVT |
|
|
683 | RXVTNAME |
680 | RXVTNAME |
|
|
681 | CXXCPP |
684 | TIC |
682 | TIC |
685 | XMKMF |
683 | XMKMF |
686 | CXXCPP |
|
|
687 | X_CFLAGS |
684 | X_CFLAGS |
688 | X_PRE_LIBS |
685 | X_PRE_LIBS |
689 | X_LIBS |
686 | X_LIBS |
690 | X_EXTRA_LIBS |
687 | X_EXTRA_LIBS |
691 | afterimage_config |
688 | afterimage_config |
692 | XPM_CPPFLAGS |
|
|
693 | XPM_CFLAGS |
|
|
694 | XPM_LIBS |
|
|
695 | rxvt_int16_typedef |
|
|
696 | rxvt_uint16_typedef |
|
|
697 | rxvt_int32_typedef |
|
|
698 | rxvt_uint32_typedef |
|
|
699 | rxvt_intp_define |
|
|
700 | rxvt_u_intp_define |
|
|
701 | PKG_CONFIG |
689 | PKG_CONFIG |
702 | XFT_CONFIG |
690 | XFT_CONFIG |
703 | PERL |
691 | PERL |
704 | PERLLIB |
692 | PERLLIB |
705 | PERLFLAGS |
693 | PERLFLAGS |
706 | PERLPRIVLIBEXP |
694 | PERLPRIVLIBEXP |
707 | IF_PERL |
695 | IF_PERL |
708 | PERL_O |
696 | PERL_O |
709 | AFTERIMAGE_CFLAGS |
697 | AFTERIMAGE_CFLAGS |
710 | AFTERIMAGE_LIBS |
698 | AFTERIMAGE_LIBS |
711 | include_stdint_h |
|
|
712 | include_stdarg_h |
|
|
713 | include_stdlib_h |
|
|
714 | include_unistd_h |
|
|
715 | include_string_h |
|
|
716 | include_fcntl_h |
|
|
717 | include_util_h |
|
|
718 | include_assert_h |
|
|
719 | include_sys_ioctl_h |
|
|
720 | include_sys_select_h |
|
|
721 | include_sys_strredir_h |
|
|
722 | include_sys_time_h |
|
|
723 | include_time_h |
|
|
724 | LIBOBJS |
699 | LIBOBJS |
725 | LTLIBOBJS' |
700 | LTLIBOBJS' |
726 | ac_subst_files='' |
701 | ac_subst_files='' |
727 | ac_precious_vars='build_alias |
702 | ac_precious_vars='build_alias |
728 | host_alias |
703 | host_alias |
… | |
… | |
734 | CPPFLAGS |
709 | CPPFLAGS |
735 | CXX |
710 | CXX |
736 | CXXFLAGS |
711 | CXXFLAGS |
737 | CCC |
712 | CCC |
738 | CPP |
713 | CPP |
739 | XMKMF |
|
|
740 | CXXCPP' |
714 | CXXCPP |
|
|
715 | XMKMF' |
741 | |
716 | |
742 | |
717 | |
743 | # Initialize some variables set by options. |
718 | # Initialize some variables set by options. |
744 | ac_init_help= |
719 | ac_init_help= |
745 | ac_init_version=false |
720 | ac_init_version=false |
… | |
… | |
1319 | Optional Features: |
1294 | Optional Features: |
1320 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1295 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1321 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1296 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1322 | --enable-everything enable standard non-multichoice features |
1297 | --enable-everything enable standard non-multichoice features |
1323 | NOTE: this option is order dependent |
1298 | NOTE: this option is order dependent |
1324 | NOTE: automatically enabled with --enable-shared |
1299 | --enable-warnings turn on g++ warnings |
1325 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1300 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1326 | --enable-combining enable composition of base and combining characters |
1301 | --enable-combining enable composition of base and combining characters |
1327 | --enable-xft enable xft support on systems that have it |
1302 | --enable-xft enable xft support on systems that have it |
1328 | --enable-font-styles enable bold and italic support |
1303 | --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 |
1304 | --enable-afterimage enable integration with libAfterImage for background images |
1331 | --enable-transparency enable transparent backgrounds |
1305 | --enable-transparency enable transparent backgrounds |
1332 | --enable-tinting enable tinting of transparent bg |
|
|
1333 | --enable-fading enable colors fading when off focus |
1306 | --enable-fading enable colors fading when off focus |
1334 | --enable-rxvt-scroll enable rxvt style scrollbar |
1307 | --enable-rxvt-scroll enable rxvt style scrollbar |
1335 | --enable-next-scroll enable NeXT style scrollbar |
1308 | --enable-next-scroll enable NeXT style scrollbar |
1336 | --enable-xterm-scroll enable Xterm style scrollbar |
1309 | --enable-xterm-scroll enable Xterm style scrollbar |
|
|
1310 | --enable-plain-scroll enable plain style scrollbar |
1337 | --enable-perl enable embedded perl interpreter |
1311 | --enable-perl enable embedded perl interpreter |
1338 | --enable-plain-scroll enable plain style scrollbar |
|
|
1339 | --enable-xim XIM (X Input Method) protocol support |
1312 | --enable-xim XIM (X Input Method) protocol support |
1340 | --disable-backspace-key disable handling of the backspace key |
1313 | --disable-backspace-key disable handling of the backspace key |
1341 | --disable-delete-key disable handling of the delete key |
1314 | --disable-delete-key disable handling of the delete key |
1342 | --disable-resources disable all resource checking |
1315 | --disable-resources disable all resource checking |
1343 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
1316 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
1344 | --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
1317 | --enable-fallback[=CLASS] fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
1345 | --disable-swapscreen disable swap screen support |
1318 | --disable-swapscreen disable swap screen support |
1346 | --enable-iso14755 enable support for extended ISO 14755 modes |
1319 | --enable-iso14755 enable support for extended ISO 14755 modes |
1347 | --enable-frills enable support for rarely used features |
1320 | --enable-frills enable support for rarely used features |
1348 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
1321 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
1349 | --enable-selectionscrolling enable scrolling during selections |
1322 | --enable-selectionscrolling enable scrolling during selections |
1350 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1323 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1351 | --enable-slipwheeling enable slip wheel scrolling (requires previous) |
1324 | --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel) |
1352 | --enable-smart-resize enable smart growth/shrink behaviour |
1325 | --enable-smart-resize enable smart growth/shrink behaviour |
1353 | --enable-text-blink enable blinking text |
1326 | --enable-text-blink enable blinking text |
1354 | --enable-pointer-blank enable pointer blank when typing or inactive pointer |
1327 | --enable-pointer-blank enable pointer blank when typing or inactive pointer |
1355 | --enable-utmp enable utmp (utmpx) support |
1328 | --enable-utmp enable utmp (utmpx) support |
1356 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
1329 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
… | |
… | |
1358 | |
1331 | |
1359 | Optional Packages: |
1332 | Optional Packages: |
1360 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1333 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1361 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1334 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1362 | --with-afterimage-config=DIR use libAfterImage config script in DIR |
1335 | --with-afterimage-config=DIR use libAfterImage config script in DIR |
1363 | --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) |
1336 | --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) |
1364 | --with-res-name=NAME use this as default resource name (default: urxvt) |
1337 | --with-res-name=NAME use this as default resource name (default: urxvt) |
1365 | --with-res-class=CLASS use this as the resource class (default: URxvt) |
1338 | --with-res-class=CLASS use this as the resource class (default: URxvt) |
1366 | --with-name=NAME set the basename for the installed binaries (default: urxvt) |
1339 | --with-name=NAME set the basename for the installed binaries (default: urxvt) |
1367 | --with-term=NAME set the terminal to NAME (default: rxvt) |
1340 | --with-term=NAME set the terminal to NAME (default: rxvt) |
1368 | --with-terminfo=PATH set the path to the terminfo tree to PATH |
1341 | --with-terminfo=PATH set the path to the terminfo tree to PATH |
1369 | --with-x use the X Window System |
1342 | --with-x use the X Window System |
1370 | --with-xpm-includes=DIR use XPM includes in DIR |
|
|
1371 | --with-xpm-library=DIR use XPM library in DIR |
|
|
1372 | --with-xpm use XPM |
|
|
1373 | |
1343 | |
1374 | Some influential environment variables: |
1344 | Some influential environment variables: |
1375 | CC C compiler command |
1345 | CC C compiler command |
1376 | CFLAGS C compiler flags |
1346 | CFLAGS C compiler flags |
1377 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1347 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
… | |
… | |
1380 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1350 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1381 | you have headers in a nonstandard directory <include dir> |
1351 | you have headers in a nonstandard directory <include dir> |
1382 | CXX C++ compiler command |
1352 | CXX C++ compiler command |
1383 | CXXFLAGS C++ compiler flags |
1353 | CXXFLAGS C++ compiler flags |
1384 | CPP C preprocessor |
1354 | CPP C preprocessor |
|
|
1355 | CXXCPP C++ preprocessor |
1385 | XMKMF Path to xmkmf, Makefile generator for X Window System |
1356 | XMKMF Path to xmkmf, Makefile generator for X Window System |
1386 | CXXCPP C++ preprocessor |
|
|
1387 | |
1357 | |
1388 | Use these variables to override the choices made by `configure' or to help |
1358 | Use these variables to override the choices made by `configure' or to help |
1389 | it to find libraries and programs with nonstandard names/locations. |
1359 | it to find libraries and programs with nonstandard names/locations. |
1390 | |
1360 | |
1391 | _ACEOF |
1361 | _ACEOF |
… | |
… | |
1927 | |
1897 | |
1928 | |
1898 | |
1929 | |
1899 | |
1930 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1900 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1931 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1901 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
|
|
1902 | |
1932 | echo "" |
1903 | echo "" |
1933 | echo "configuring for rxvt $VERSION" |
1904 | echo "configuring for rxvt $VERSION" |
1934 | echo "" |
1905 | echo "" |
1935 | |
1906 | |
1936 | orig_CXXFLAGS="$CXXFLAGS" |
1907 | orig_CXXFLAGS="$CXXFLAGS" |
1937 | |
|
|
1938 | |
1908 | |
1939 | ac_ext=c |
1909 | ac_ext=c |
1940 | ac_cpp='$CPP $CPPFLAGS' |
1910 | ac_cpp='$CPP $CPPFLAGS' |
1941 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1911 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1942 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1912 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
… | |
… | |
3721 | echo "${ECHO_T}no" >&6; } |
3691 | echo "${ECHO_T}no" >&6; } |
3722 | fi |
3692 | fi |
3723 | rm -f conftest* |
3693 | rm -f conftest* |
3724 | |
3694 | |
3725 | |
3695 | |
|
|
3696 | |
|
|
3697 | cat >>confdefs.h <<\_ACEOF |
|
|
3698 | #define _GNU_SOURCE 1 |
|
|
3699 | _ACEOF |
|
|
3700 | |
|
|
3701 | |
3726 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
3702 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
3727 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } |
3703 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } |
3728 | if test "${ac_cv_search_strerror+set}" = set; then |
3704 | if test "${ac_cv_search_strerror+set}" = set; then |
3729 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3730 | else |
3706 | else |
… | |
… | |
3877 | LINKER=$LINKER |
3853 | LINKER=$LINKER |
3878 | |
3854 | |
3879 | |
3855 | |
3880 | if test -z "$orig_CXXFLAGS"; then |
3856 | if test -z "$orig_CXXFLAGS"; then |
3881 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
3857 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
3882 | CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" |
3858 | CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs" |
3883 | cat >conftest.$ac_ext <<_ACEOF |
3859 | cat >conftest.$ac_ext <<_ACEOF |
3884 | /* confdefs.h. */ |
3860 | /* confdefs.h. */ |
3885 | _ACEOF |
3861 | _ACEOF |
3886 | cat confdefs.h >>conftest.$ac_ext |
3862 | cat confdefs.h >>conftest.$ac_ext |
3887 | cat >>conftest.$ac_ext <<_ACEOF |
3863 | cat >>conftest.$ac_ext <<_ACEOF |
… | |
… | |
3925 | CXXFLAGS="-O" |
3901 | CXXFLAGS="-O" |
3926 | fi |
3902 | fi |
3927 | CFLAGS="$CXXFLAGS" |
3903 | CFLAGS="$CXXFLAGS" |
3928 | fi |
3904 | fi |
3929 | |
3905 | |
3930 | |
|
|
3931 | cat >>confdefs.h <<\_ACEOF |
|
|
3932 | #define _GNU_SOURCE 1 |
|
|
3933 | _ACEOF |
|
|
3934 | |
|
|
3935 | |
|
|
3936 | case $host in |
3906 | case $host in |
3937 | *-*-solaris* ) |
3907 | *-*-solaris* ) |
3938 | |
3908 | |
3939 | cat >>confdefs.h <<\_ACEOF |
3909 | cat >>confdefs.h <<\_ACEOF |
3940 | #define _XOPEN_SOURCE 500 |
3910 | #define _XOPEN_SOURCE 500 |
3941 | _ACEOF |
3911 | _ACEOF |
3942 | |
3912 | |
3943 | ;; |
3913 | ;; |
3944 | esac |
3914 | esac |
3945 | |
|
|
3946 | |
3915 | |
3947 | { echo "$as_me:$LINENO: checking for setlocale" >&5 |
3916 | { echo "$as_me:$LINENO: checking for setlocale" >&5 |
3948 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } |
3917 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } |
3949 | if test "${ac_cv_func_setlocale+set}" = set; then |
3918 | if test "${ac_cv_func_setlocale+set}" = set; then |
3950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
4400 | |
4369 | |
4401 | |
4370 | |
4402 | |
4371 | |
4403 | support_frills=yes |
4372 | support_frills=yes |
4404 | support_inheritpixmap=yes |
4373 | support_inheritpixmap=yes |
4405 | support_tinting=yes |
|
|
4406 | support_fading=yes |
4374 | support_fading=yes |
4407 | support_keepscrolling=yes |
4375 | support_keepscrolling=yes |
4408 | support_selectionscrolling=yes |
4376 | support_selectionscrolling=yes |
4409 | support_mousewheel=yes |
4377 | support_mousewheel=yes |
4410 | support_mouseslipwheel=yes |
4378 | support_mouseslipwheel=yes |
… | |
… | |
4413 | support_scroll_rxvt=yes |
4381 | support_scroll_rxvt=yes |
4414 | support_scroll_next=yes |
4382 | support_scroll_next=yes |
4415 | support_scroll_xterm=yes |
4383 | support_scroll_xterm=yes |
4416 | support_scroll_plain=yes |
4384 | support_scroll_plain=yes |
4417 | support_xim=yes |
4385 | support_xim=yes |
4418 | support_xpm=yes |
|
|
4419 | support_afterimage=yes |
4386 | support_afterimage=yes |
4420 | support_afterstep=yes |
4387 | support_afterstep=yes |
4421 | support_xft=yes |
4388 | support_xft=yes |
4422 | support_unicode3=no |
4389 | support_unicode3=no |
4423 | support_combining=yes |
4390 | support_combining=yes |
… | |
… | |
4426 | support_styles=yes |
4393 | support_styles=yes |
4427 | support_perl=yes |
4394 | support_perl=yes |
4428 | codesets=all |
4395 | codesets=all |
4429 | |
4396 | |
4430 | |
4397 | |
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 | |
4398 | |
4441 | # Check whether --enable-everything was given. |
4399 | # Check whether --enable-everything was given. |
4442 | if test "${enable_everything+set}" = set; then |
4400 | if test "${enable_everything+set}" = set; then |
4443 | enableval=$enable_everything; |
4401 | enableval=$enable_everything; |
4444 | if test x$enableval = xno; then |
4402 | if test x$enableval = xno; then |
4445 | support_frills=no |
4403 | support_frills=no |
4446 | support_inheritpixmap=no |
4404 | support_inheritpixmap=no |
4447 | support_tinting=no |
|
|
4448 | support_fading=no |
4405 | support_fading=no |
4449 | support_keepscrolling=no |
4406 | support_keepscrolling=no |
4450 | support_selectionscrolling=no |
4407 | support_selectionscrolling=no |
4451 | support_lastlog=no |
4408 | support_lastlog=no |
4452 | support_mousewheel=no |
4409 | support_mousewheel=no |
… | |
… | |
4458 | support_scroll_xterm=no |
4415 | support_scroll_xterm=no |
4459 | support_scroll_plain=no |
4416 | support_scroll_plain=no |
4460 | support_utmp=no |
4417 | support_utmp=no |
4461 | support_wtmp=no |
4418 | support_wtmp=no |
4462 | support_xim=no |
4419 | support_xim=no |
4463 | support_xpm=no |
|
|
4464 | support_afterimage=no |
4420 | support_afterimage=no |
4465 | support_afterstep=no |
4421 | support_afterstep=no |
4466 | support_xft=no |
4422 | support_xft=no |
4467 | support_unicode3=no |
4423 | support_unicode3=no |
4468 | support_combining=no |
4424 | support_combining=no |
… | |
… | |
4473 | codesets= |
4429 | codesets= |
4474 | fi |
4430 | fi |
4475 | if test x$enableval = xyes; then |
4431 | if test x$enableval = xyes; then |
4476 | support_frills=yes |
4432 | support_frills=yes |
4477 | support_inheritpixmap=yes |
4433 | support_inheritpixmap=yes |
4478 | support_tinting=yes |
|
|
4479 | support_fading=yes |
4434 | support_fading=yes |
4480 | support_keepscrolling=yes |
4435 | support_keepscrolling=yes |
4481 | support_selectionscrolling=yes |
4436 | support_selectionscrolling=yes |
4482 | support_lastlog=yes |
4437 | support_lastlog=yes |
4483 | support_mousewheel=yes |
4438 | support_mousewheel=yes |
… | |
… | |
4489 | support_scroll_xterm=yes |
4444 | support_scroll_xterm=yes |
4490 | support_scroll_plain=yes |
4445 | support_scroll_plain=yes |
4491 | support_utmp=yes |
4446 | support_utmp=yes |
4492 | support_wtmp=yes |
4447 | support_wtmp=yes |
4493 | support_xim=yes |
4448 | support_xim=yes |
4494 | support_xpm=yes |
|
|
4495 | support_afterimage=yes |
4449 | support_afterimage=yes |
4496 | support_afterstep=yes |
4450 | support_afterstep=yes |
4497 | support_xft=yes |
4451 | support_xft=yes |
4498 | support_unicode3=yes |
4452 | support_unicode3=yes |
4499 | support_combining=yes |
4453 | support_combining=yes |
… | |
… | |
4505 | fi |
4459 | fi |
4506 | |
4460 | |
4507 | fi |
4461 | fi |
4508 | |
4462 | |
4509 | |
4463 | |
|
|
4464 | WARNINGS=no |
|
|
4465 | # Check whether --enable-warnings was given. |
|
|
4466 | if test "${enable_warnings+set}" = set; then |
|
|
4467 | enableval=$enable_warnings; if test x$enableval = xyes; then |
|
|
4468 | WARNINGS=yes |
|
|
4469 | fi |
|
|
4470 | fi |
|
|
4471 | |
|
|
4472 | if test x$GXX = xyes; then |
|
|
4473 | if test $WARNINGS = yes; then |
|
|
4474 | save_CXXFLAGS="$CXXFLAGS" |
|
|
4475 | CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-non-virtual-dtor" |
|
|
4476 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4477 | /* confdefs.h. */ |
|
|
4478 | _ACEOF |
|
|
4479 | cat confdefs.h >>conftest.$ac_ext |
|
|
4480 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4481 | /* end confdefs.h. */ |
|
|
4482 | |
|
|
4483 | int |
|
|
4484 | main () |
|
|
4485 | { |
|
|
4486 | |
|
|
4487 | ; |
|
|
4488 | return 0; |
|
|
4489 | } |
|
|
4490 | _ACEOF |
|
|
4491 | rm -f conftest.$ac_objext |
|
|
4492 | if { (ac_try="$ac_compile" |
|
|
4493 | case "(($ac_try" in |
|
|
4494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4495 | *) ac_try_echo=$ac_try;; |
|
|
4496 | esac |
|
|
4497 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4498 | (eval "$ac_compile") 2>conftest.er1 |
|
|
4499 | ac_status=$? |
|
|
4500 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4501 | rm -f conftest.er1 |
|
|
4502 | cat conftest.err >&5 |
|
|
4503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4504 | (exit $ac_status); } && { |
|
|
4505 | test -z "$ac_cxx_werror_flag" || |
|
|
4506 | test ! -s conftest.err |
|
|
4507 | } && test -s conftest.$ac_objext; then |
|
|
4508 | : |
|
|
4509 | else |
|
|
4510 | echo "$as_me: failed program was:" >&5 |
|
|
4511 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4512 | |
|
|
4513 | CXXFLAGS="$save_CXXFLAGS" |
|
|
4514 | fi |
|
|
4515 | |
|
|
4516 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4517 | else |
|
|
4518 | CXXFLAGS="$CXXFLAGS -w" |
|
|
4519 | fi |
|
|
4520 | fi |
|
|
4521 | |
4510 | # Check whether --enable-unicode3 was given. |
4522 | # Check whether --enable-unicode3 was given. |
4511 | if test "${enable_unicode3+set}" = set; then |
4523 | if test "${enable_unicode3+set}" = set; then |
4512 | enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then |
4524 | enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then |
4513 | support_unicode3=$enableval |
4525 | support_unicode3=$enableval |
4514 | fi |
4526 | fi |
… | |
… | |
4537 | support_styles=$enableval |
4549 | support_styles=$enableval |
4538 | fi |
4550 | fi |
4539 | fi |
4551 | fi |
4540 | |
4552 | |
4541 | |
4553 | |
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. |
4554 | # Check whether --enable-afterimage was given. |
4551 | if test "${enable_afterimage+set}" = set; then |
4555 | if test "${enable_afterimage+set}" = set; then |
4552 | enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then |
4556 | enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then |
4553 | support_afterimage=$enableval |
4557 | support_afterimage=$enableval |
4554 | fi |
4558 | fi |
… | |
… | |
4571 | support_inheritpixmap=$enableval |
4575 | support_inheritpixmap=$enableval |
4572 | fi |
4576 | fi |
4573 | fi |
4577 | fi |
4574 | |
4578 | |
4575 | |
4579 | |
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. |
4580 | # Check whether --enable-fading was given. |
4585 | if test "${enable_fading+set}" = set; then |
4581 | if test "${enable_fading+set}" = set; then |
4586 | enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then |
4582 | enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then |
4587 | support_fading=$enableval |
4583 | support_fading=$enableval |
4588 | fi |
4584 | fi |
… | |
… | |
4611 | support_scroll_xterm=$enableval |
4607 | support_scroll_xterm=$enableval |
4612 | fi |
4608 | fi |
4613 | fi |
4609 | fi |
4614 | |
4610 | |
4615 | |
4611 | |
|
|
4612 | # Check whether --enable-plain-scroll was given. |
|
|
4613 | if test "${enable_plain_scroll+set}" = set; then |
|
|
4614 | enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4615 | support_scroll_plain=$enableval |
|
|
4616 | fi |
|
|
4617 | fi |
|
|
4618 | |
|
|
4619 | |
4616 | # Check whether --enable-perl was given. |
4620 | # Check whether --enable-perl was given. |
4617 | if test "${enable_perl+set}" = set; then |
4621 | if test "${enable_perl+set}" = set; then |
4618 | enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then |
4622 | enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then |
4619 | support_perl=$enableval |
4623 | 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 |
4624 | fi |
4629 | fi |
4625 | fi |
4630 | |
4626 | |
4631 | |
4627 | |
4632 | |
4628 | |
… | |
… | |
4859 | #define RXVT_TERMINFO "$withval" |
4855 | #define RXVT_TERMINFO "$withval" |
4860 | _ACEOF |
4856 | _ACEOF |
4861 | terminfo="$withval" |
4857 | terminfo="$withval" |
4862 | fi |
4858 | fi |
4863 | fi |
4859 | fi |
|
|
4860 | |
|
|
4861 | |
|
|
4862 | |
|
|
4863 | LIBEV_M4_AVOID_LIBRT=1 |
|
|
4864 | |
|
|
4865 | ac_ext=cpp |
|
|
4866 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
4867 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4868 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4869 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
4870 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
4871 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
|
|
4872 | if test -z "$CXXCPP"; then |
|
|
4873 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
|
4874 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4875 | else |
|
|
4876 | # Double quotes because CXXCPP needs to be expanded |
|
|
4877 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
4878 | do |
|
|
4879 | ac_preproc_ok=false |
|
|
4880 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4881 | do |
|
|
4882 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4883 | # with a fresh cross-compiler works. |
|
|
4884 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4885 | # <limits.h> exists even on freestanding compilers. |
|
|
4886 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4887 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4888 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4889 | /* confdefs.h. */ |
|
|
4890 | _ACEOF |
|
|
4891 | cat confdefs.h >>conftest.$ac_ext |
|
|
4892 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4893 | /* end confdefs.h. */ |
|
|
4894 | #ifdef __STDC__ |
|
|
4895 | # include <limits.h> |
|
|
4896 | #else |
|
|
4897 | # include <assert.h> |
|
|
4898 | #endif |
|
|
4899 | Syntax error |
|
|
4900 | _ACEOF |
|
|
4901 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4902 | case "(($ac_try" in |
|
|
4903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4904 | *) ac_try_echo=$ac_try;; |
|
|
4905 | esac |
|
|
4906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4907 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4908 | ac_status=$? |
|
|
4909 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4910 | rm -f conftest.er1 |
|
|
4911 | cat conftest.err >&5 |
|
|
4912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4913 | (exit $ac_status); } >/dev/null && { |
|
|
4914 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4915 | test ! -s conftest.err |
|
|
4916 | }; then |
|
|
4917 | : |
|
|
4918 | else |
|
|
4919 | echo "$as_me: failed program was:" >&5 |
|
|
4920 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4921 | |
|
|
4922 | # Broken: fails on valid input. |
|
|
4923 | continue |
|
|
4924 | fi |
|
|
4925 | |
|
|
4926 | rm -f conftest.err conftest.$ac_ext |
|
|
4927 | |
|
|
4928 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
4929 | # can be detected and how. |
|
|
4930 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4931 | /* confdefs.h. */ |
|
|
4932 | _ACEOF |
|
|
4933 | cat confdefs.h >>conftest.$ac_ext |
|
|
4934 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4935 | /* end confdefs.h. */ |
|
|
4936 | #include <ac_nonexistent.h> |
|
|
4937 | _ACEOF |
|
|
4938 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4939 | case "(($ac_try" in |
|
|
4940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4941 | *) ac_try_echo=$ac_try;; |
|
|
4942 | esac |
|
|
4943 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4944 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4945 | ac_status=$? |
|
|
4946 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4947 | rm -f conftest.er1 |
|
|
4948 | cat conftest.err >&5 |
|
|
4949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4950 | (exit $ac_status); } >/dev/null && { |
|
|
4951 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4952 | test ! -s conftest.err |
|
|
4953 | }; then |
|
|
4954 | # Broken: success on invalid input. |
|
|
4955 | continue |
|
|
4956 | else |
|
|
4957 | echo "$as_me: failed program was:" >&5 |
|
|
4958 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4959 | |
|
|
4960 | # Passes both tests. |
|
|
4961 | ac_preproc_ok=: |
|
|
4962 | break |
|
|
4963 | fi |
|
|
4964 | |
|
|
4965 | rm -f conftest.err conftest.$ac_ext |
|
|
4966 | |
|
|
4967 | done |
|
|
4968 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
4969 | rm -f conftest.err conftest.$ac_ext |
|
|
4970 | if $ac_preproc_ok; then |
|
|
4971 | break |
|
|
4972 | fi |
|
|
4973 | |
|
|
4974 | done |
|
|
4975 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
4976 | |
|
|
4977 | fi |
|
|
4978 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
4979 | else |
|
|
4980 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
4981 | fi |
|
|
4982 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
4983 | echo "${ECHO_T}$CXXCPP" >&6; } |
|
|
4984 | ac_preproc_ok=false |
|
|
4985 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4986 | do |
|
|
4987 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4988 | # with a fresh cross-compiler works. |
|
|
4989 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4990 | # <limits.h> exists even on freestanding compilers. |
|
|
4991 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4992 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4993 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4994 | /* confdefs.h. */ |
|
|
4995 | _ACEOF |
|
|
4996 | cat confdefs.h >>conftest.$ac_ext |
|
|
4997 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4998 | /* end confdefs.h. */ |
|
|
4999 | #ifdef __STDC__ |
|
|
5000 | # include <limits.h> |
|
|
5001 | #else |
|
|
5002 | # include <assert.h> |
|
|
5003 | #endif |
|
|
5004 | Syntax error |
|
|
5005 | _ACEOF |
|
|
5006 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5007 | case "(($ac_try" in |
|
|
5008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5009 | *) ac_try_echo=$ac_try;; |
|
|
5010 | esac |
|
|
5011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5012 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5013 | ac_status=$? |
|
|
5014 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5015 | rm -f conftest.er1 |
|
|
5016 | cat conftest.err >&5 |
|
|
5017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5018 | (exit $ac_status); } >/dev/null && { |
|
|
5019 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5020 | test ! -s conftest.err |
|
|
5021 | }; then |
|
|
5022 | : |
|
|
5023 | else |
|
|
5024 | echo "$as_me: failed program was:" >&5 |
|
|
5025 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5026 | |
|
|
5027 | # Broken: fails on valid input. |
|
|
5028 | continue |
|
|
5029 | fi |
|
|
5030 | |
|
|
5031 | rm -f conftest.err conftest.$ac_ext |
|
|
5032 | |
|
|
5033 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
5034 | # can be detected and how. |
|
|
5035 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5036 | /* confdefs.h. */ |
|
|
5037 | _ACEOF |
|
|
5038 | cat confdefs.h >>conftest.$ac_ext |
|
|
5039 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5040 | /* end confdefs.h. */ |
|
|
5041 | #include <ac_nonexistent.h> |
|
|
5042 | _ACEOF |
|
|
5043 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5044 | case "(($ac_try" in |
|
|
5045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5046 | *) ac_try_echo=$ac_try;; |
|
|
5047 | esac |
|
|
5048 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5049 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5050 | ac_status=$? |
|
|
5051 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5052 | rm -f conftest.er1 |
|
|
5053 | cat conftest.err >&5 |
|
|
5054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5055 | (exit $ac_status); } >/dev/null && { |
|
|
5056 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5057 | test ! -s conftest.err |
|
|
5058 | }; then |
|
|
5059 | # Broken: success on invalid input. |
|
|
5060 | continue |
|
|
5061 | else |
|
|
5062 | echo "$as_me: failed program was:" >&5 |
|
|
5063 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5064 | |
|
|
5065 | # Passes both tests. |
|
|
5066 | ac_preproc_ok=: |
|
|
5067 | break |
|
|
5068 | fi |
|
|
5069 | |
|
|
5070 | rm -f conftest.err conftest.$ac_ext |
|
|
5071 | |
|
|
5072 | done |
|
|
5073 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5074 | rm -f conftest.err conftest.$ac_ext |
|
|
5075 | if $ac_preproc_ok; then |
|
|
5076 | : |
|
|
5077 | else |
|
|
5078 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5079 | See \`config.log' for more details." >&5 |
|
|
5080 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5081 | See \`config.log' for more details." >&2;} |
|
|
5082 | { (exit 1); exit 1; }; } |
|
|
5083 | fi |
|
|
5084 | |
|
|
5085 | ac_ext=cpp |
|
|
5086 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5087 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5088 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5089 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
5090 | |
|
|
5091 | |
|
|
5092 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
5093 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
|
|
5094 | if test "${ac_cv_header_stdc+set}" = set; then |
|
|
5095 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5096 | else |
|
|
5097 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5098 | /* confdefs.h. */ |
|
|
5099 | _ACEOF |
|
|
5100 | cat confdefs.h >>conftest.$ac_ext |
|
|
5101 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5102 | /* end confdefs.h. */ |
|
|
5103 | #include <stdlib.h> |
|
|
5104 | #include <stdarg.h> |
|
|
5105 | #include <string.h> |
|
|
5106 | #include <float.h> |
|
|
5107 | |
|
|
5108 | int |
|
|
5109 | main () |
|
|
5110 | { |
|
|
5111 | |
|
|
5112 | ; |
|
|
5113 | return 0; |
|
|
5114 | } |
|
|
5115 | _ACEOF |
|
|
5116 | rm -f conftest.$ac_objext |
|
|
5117 | if { (ac_try="$ac_compile" |
|
|
5118 | case "(($ac_try" in |
|
|
5119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5120 | *) ac_try_echo=$ac_try;; |
|
|
5121 | esac |
|
|
5122 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5123 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5124 | ac_status=$? |
|
|
5125 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5126 | rm -f conftest.er1 |
|
|
5127 | cat conftest.err >&5 |
|
|
5128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5129 | (exit $ac_status); } && { |
|
|
5130 | test -z "$ac_cxx_werror_flag" || |
|
|
5131 | test ! -s conftest.err |
|
|
5132 | } && test -s conftest.$ac_objext; then |
|
|
5133 | ac_cv_header_stdc=yes |
|
|
5134 | else |
|
|
5135 | echo "$as_me: failed program was:" >&5 |
|
|
5136 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5137 | |
|
|
5138 | ac_cv_header_stdc=no |
|
|
5139 | fi |
|
|
5140 | |
|
|
5141 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5142 | |
|
|
5143 | if test $ac_cv_header_stdc = yes; then |
|
|
5144 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
5145 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5146 | /* confdefs.h. */ |
|
|
5147 | _ACEOF |
|
|
5148 | cat confdefs.h >>conftest.$ac_ext |
|
|
5149 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5150 | /* end confdefs.h. */ |
|
|
5151 | #include <string.h> |
|
|
5152 | |
|
|
5153 | _ACEOF |
|
|
5154 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
5155 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
5156 | : |
|
|
5157 | else |
|
|
5158 | ac_cv_header_stdc=no |
|
|
5159 | fi |
|
|
5160 | rm -f conftest* |
|
|
5161 | |
|
|
5162 | fi |
|
|
5163 | |
|
|
5164 | if test $ac_cv_header_stdc = yes; then |
|
|
5165 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
5166 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5167 | /* confdefs.h. */ |
|
|
5168 | _ACEOF |
|
|
5169 | cat confdefs.h >>conftest.$ac_ext |
|
|
5170 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5171 | /* end confdefs.h. */ |
|
|
5172 | #include <stdlib.h> |
|
|
5173 | |
|
|
5174 | _ACEOF |
|
|
5175 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
5176 | $EGREP "free" >/dev/null 2>&1; then |
|
|
5177 | : |
|
|
5178 | else |
|
|
5179 | ac_cv_header_stdc=no |
|
|
5180 | fi |
|
|
5181 | rm -f conftest* |
|
|
5182 | |
|
|
5183 | fi |
|
|
5184 | |
|
|
5185 | if test $ac_cv_header_stdc = yes; then |
|
|
5186 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
5187 | if test "$cross_compiling" = yes; then |
|
|
5188 | : |
|
|
5189 | else |
|
|
5190 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5191 | /* confdefs.h. */ |
|
|
5192 | _ACEOF |
|
|
5193 | cat confdefs.h >>conftest.$ac_ext |
|
|
5194 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5195 | /* end confdefs.h. */ |
|
|
5196 | #include <ctype.h> |
|
|
5197 | #include <stdlib.h> |
|
|
5198 | #if ((' ' & 0x0FF) == 0x020) |
|
|
5199 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
5200 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
5201 | #else |
|
|
5202 | # define ISLOWER(c) \ |
|
|
5203 | (('a' <= (c) && (c) <= 'i') \ |
|
|
5204 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
5205 | || ('s' <= (c) && (c) <= 'z')) |
|
|
5206 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
5207 | #endif |
|
|
5208 | |
|
|
5209 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
5210 | int |
|
|
5211 | main () |
|
|
5212 | { |
|
|
5213 | int i; |
|
|
5214 | for (i = 0; i < 256; i++) |
|
|
5215 | if (XOR (islower (i), ISLOWER (i)) |
|
|
5216 | || toupper (i) != TOUPPER (i)) |
|
|
5217 | return 2; |
|
|
5218 | return 0; |
|
|
5219 | } |
|
|
5220 | _ACEOF |
|
|
5221 | rm -f conftest$ac_exeext |
|
|
5222 | if { (ac_try="$ac_link" |
|
|
5223 | case "(($ac_try" in |
|
|
5224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5225 | *) ac_try_echo=$ac_try;; |
|
|
5226 | esac |
|
|
5227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5228 | (eval "$ac_link") 2>&5 |
|
|
5229 | ac_status=$? |
|
|
5230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5231 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
5232 | { (case "(($ac_try" in |
|
|
5233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5234 | *) ac_try_echo=$ac_try;; |
|
|
5235 | esac |
|
|
5236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5237 | (eval "$ac_try") 2>&5 |
|
|
5238 | ac_status=$? |
|
|
5239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5240 | (exit $ac_status); }; }; then |
|
|
5241 | : |
|
|
5242 | else |
|
|
5243 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
5244 | echo "$as_me: failed program was:" >&5 |
|
|
5245 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5246 | |
|
|
5247 | ( exit $ac_status ) |
|
|
5248 | ac_cv_header_stdc=no |
|
|
5249 | fi |
|
|
5250 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
5251 | fi |
|
|
5252 | |
|
|
5253 | |
|
|
5254 | fi |
|
|
5255 | fi |
|
|
5256 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
5257 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
|
|
5258 | if test $ac_cv_header_stdc = yes; then |
|
|
5259 | |
|
|
5260 | cat >>confdefs.h <<\_ACEOF |
|
|
5261 | #define STDC_HEADERS 1 |
|
|
5262 | _ACEOF |
|
|
5263 | |
|
|
5264 | fi |
|
|
5265 | |
|
|
5266 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
5267 | |
|
|
5268 | |
|
|
5269 | |
|
|
5270 | |
|
|
5271 | |
|
|
5272 | |
|
|
5273 | |
|
|
5274 | |
|
|
5275 | |
|
|
5276 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
5277 | inttypes.h stdint.h unistd.h |
|
|
5278 | do |
|
|
5279 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
5280 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5281 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5282 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5283 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5284 | else |
|
|
5285 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5286 | /* confdefs.h. */ |
|
|
5287 | _ACEOF |
|
|
5288 | cat confdefs.h >>conftest.$ac_ext |
|
|
5289 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5290 | /* end confdefs.h. */ |
|
|
5291 | $ac_includes_default |
|
|
5292 | |
|
|
5293 | #include <$ac_header> |
|
|
5294 | _ACEOF |
|
|
5295 | rm -f conftest.$ac_objext |
|
|
5296 | if { (ac_try="$ac_compile" |
|
|
5297 | case "(($ac_try" in |
|
|
5298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5299 | *) ac_try_echo=$ac_try;; |
|
|
5300 | esac |
|
|
5301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5302 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5303 | ac_status=$? |
|
|
5304 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5305 | rm -f conftest.er1 |
|
|
5306 | cat conftest.err >&5 |
|
|
5307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5308 | (exit $ac_status); } && { |
|
|
5309 | test -z "$ac_cxx_werror_flag" || |
|
|
5310 | test ! -s conftest.err |
|
|
5311 | } && test -s conftest.$ac_objext; then |
|
|
5312 | eval "$as_ac_Header=yes" |
|
|
5313 | else |
|
|
5314 | echo "$as_me: failed program was:" >&5 |
|
|
5315 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5316 | |
|
|
5317 | eval "$as_ac_Header=no" |
|
|
5318 | fi |
|
|
5319 | |
|
|
5320 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5321 | fi |
|
|
5322 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5323 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5324 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5325 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
5326 | cat >>confdefs.h <<_ACEOF |
|
|
5327 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
5328 | _ACEOF |
|
|
5329 | |
|
|
5330 | fi |
|
|
5331 | |
|
|
5332 | done |
|
|
5333 | |
|
|
5334 | |
|
|
5335 | |
|
|
5336 | |
|
|
5337 | |
|
|
5338 | |
|
|
5339 | |
|
|
5340 | |
|
|
5341 | |
|
|
5342 | for ac_header in sys/inotify.h sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h |
|
|
5343 | do |
|
|
5344 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
5345 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5346 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5347 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5348 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5350 | fi |
|
|
5351 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5352 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5353 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5354 | else |
|
|
5355 | # Is the header compilable? |
|
|
5356 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
5357 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
|
|
5358 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5359 | /* confdefs.h. */ |
|
|
5360 | _ACEOF |
|
|
5361 | cat confdefs.h >>conftest.$ac_ext |
|
|
5362 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5363 | /* end confdefs.h. */ |
|
|
5364 | $ac_includes_default |
|
|
5365 | #include <$ac_header> |
|
|
5366 | _ACEOF |
|
|
5367 | rm -f conftest.$ac_objext |
|
|
5368 | if { (ac_try="$ac_compile" |
|
|
5369 | case "(($ac_try" in |
|
|
5370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5371 | *) ac_try_echo=$ac_try;; |
|
|
5372 | esac |
|
|
5373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5374 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5375 | ac_status=$? |
|
|
5376 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5377 | rm -f conftest.er1 |
|
|
5378 | cat conftest.err >&5 |
|
|
5379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5380 | (exit $ac_status); } && { |
|
|
5381 | test -z "$ac_cxx_werror_flag" || |
|
|
5382 | test ! -s conftest.err |
|
|
5383 | } && test -s conftest.$ac_objext; then |
|
|
5384 | ac_header_compiler=yes |
|
|
5385 | else |
|
|
5386 | echo "$as_me: failed program was:" >&5 |
|
|
5387 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5388 | |
|
|
5389 | ac_header_compiler=no |
|
|
5390 | fi |
|
|
5391 | |
|
|
5392 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5393 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
5394 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
|
|
5395 | |
|
|
5396 | # Is the header present? |
|
|
5397 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
5398 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
|
|
5399 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5400 | /* confdefs.h. */ |
|
|
5401 | _ACEOF |
|
|
5402 | cat confdefs.h >>conftest.$ac_ext |
|
|
5403 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5404 | /* end confdefs.h. */ |
|
|
5405 | #include <$ac_header> |
|
|
5406 | _ACEOF |
|
|
5407 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5408 | case "(($ac_try" in |
|
|
5409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5410 | *) ac_try_echo=$ac_try;; |
|
|
5411 | esac |
|
|
5412 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5413 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5414 | ac_status=$? |
|
|
5415 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5416 | rm -f conftest.er1 |
|
|
5417 | cat conftest.err >&5 |
|
|
5418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5419 | (exit $ac_status); } >/dev/null && { |
|
|
5420 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5421 | test ! -s conftest.err |
|
|
5422 | }; then |
|
|
5423 | ac_header_preproc=yes |
|
|
5424 | else |
|
|
5425 | echo "$as_me: failed program was:" >&5 |
|
|
5426 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5427 | |
|
|
5428 | ac_header_preproc=no |
|
|
5429 | fi |
|
|
5430 | |
|
|
5431 | rm -f conftest.err conftest.$ac_ext |
|
|
5432 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
5433 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
|
|
5434 | |
|
|
5435 | # So? What about this header? |
|
|
5436 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
5437 | yes:no: ) |
|
|
5438 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
5439 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
5440 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
5441 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
5442 | ac_header_preproc=yes |
|
|
5443 | ;; |
|
|
5444 | no:yes:* ) |
|
|
5445 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
5446 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
5447 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
5448 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
5449 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
5450 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
5451 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
5452 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
5453 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
5454 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
5455 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
5456 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
5457 | |
|
|
5458 | ;; |
|
|
5459 | esac |
|
|
5460 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5461 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5462 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5464 | else |
|
|
5465 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
5466 | fi |
|
|
5467 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5468 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5469 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5470 | |
|
|
5471 | fi |
|
|
5472 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
5473 | cat >>confdefs.h <<_ACEOF |
|
|
5474 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
5475 | _ACEOF |
|
|
5476 | |
|
|
5477 | fi |
|
|
5478 | |
|
|
5479 | done |
|
|
5480 | |
|
|
5481 | |
|
|
5482 | |
|
|
5483 | |
|
|
5484 | |
|
|
5485 | |
|
|
5486 | |
|
|
5487 | |
|
|
5488 | for ac_func in inotify_init epoll_ctl kqueue port_create poll select |
|
|
5489 | do |
|
|
5490 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
5491 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
5492 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
5493 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5495 | else |
|
|
5496 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5497 | /* confdefs.h. */ |
|
|
5498 | _ACEOF |
|
|
5499 | cat confdefs.h >>conftest.$ac_ext |
|
|
5500 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5501 | /* end confdefs.h. */ |
|
|
5502 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
5503 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5504 | #define $ac_func innocuous_$ac_func |
|
|
5505 | |
|
|
5506 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5507 | which can conflict with char $ac_func (); below. |
|
|
5508 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5509 | <limits.h> exists even on freestanding compilers. */ |
|
|
5510 | |
|
|
5511 | #ifdef __STDC__ |
|
|
5512 | # include <limits.h> |
|
|
5513 | #else |
|
|
5514 | # include <assert.h> |
|
|
5515 | #endif |
|
|
5516 | |
|
|
5517 | #undef $ac_func |
|
|
5518 | |
|
|
5519 | /* Override any GCC internal prototype to avoid an error. |
|
|
5520 | Use char because int might match the return type of a GCC |
|
|
5521 | builtin and then its argument prototype would still apply. */ |
|
|
5522 | #ifdef __cplusplus |
|
|
5523 | extern "C" |
|
|
5524 | #endif |
|
|
5525 | char $ac_func (); |
|
|
5526 | /* The GNU C library defines this for functions which it implements |
|
|
5527 | to always fail with ENOSYS. Some functions are actually named |
|
|
5528 | something starting with __ and the normal name is an alias. */ |
|
|
5529 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
5530 | choke me |
|
|
5531 | #endif |
|
|
5532 | |
|
|
5533 | int |
|
|
5534 | main () |
|
|
5535 | { |
|
|
5536 | return $ac_func (); |
|
|
5537 | ; |
|
|
5538 | return 0; |
|
|
5539 | } |
|
|
5540 | _ACEOF |
|
|
5541 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5542 | if { (ac_try="$ac_link" |
|
|
5543 | case "(($ac_try" in |
|
|
5544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5545 | *) ac_try_echo=$ac_try;; |
|
|
5546 | esac |
|
|
5547 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5548 | (eval "$ac_link") 2>conftest.er1 |
|
|
5549 | ac_status=$? |
|
|
5550 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5551 | rm -f conftest.er1 |
|
|
5552 | cat conftest.err >&5 |
|
|
5553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5554 | (exit $ac_status); } && { |
|
|
5555 | test -z "$ac_cxx_werror_flag" || |
|
|
5556 | test ! -s conftest.err |
|
|
5557 | } && test -s conftest$ac_exeext && |
|
|
5558 | $as_test_x conftest$ac_exeext; then |
|
|
5559 | eval "$as_ac_var=yes" |
|
|
5560 | else |
|
|
5561 | echo "$as_me: failed program was:" >&5 |
|
|
5562 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5563 | |
|
|
5564 | eval "$as_ac_var=no" |
|
|
5565 | fi |
|
|
5566 | |
|
|
5567 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5568 | conftest$ac_exeext conftest.$ac_ext |
|
|
5569 | fi |
|
|
5570 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
5571 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5572 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5573 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
5574 | cat >>confdefs.h <<_ACEOF |
|
|
5575 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
5576 | _ACEOF |
|
|
5577 | |
|
|
5578 | fi |
|
|
5579 | done |
|
|
5580 | |
|
|
5581 | |
|
|
5582 | { echo "$as_me:$LINENO: checking for clock_gettime" >&5 |
|
|
5583 | echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6; } |
|
|
5584 | if test "${ac_cv_func_clock_gettime+set}" = set; then |
|
|
5585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5586 | else |
|
|
5587 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5588 | /* confdefs.h. */ |
|
|
5589 | _ACEOF |
|
|
5590 | cat confdefs.h >>conftest.$ac_ext |
|
|
5591 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5592 | /* end confdefs.h. */ |
|
|
5593 | /* Define clock_gettime to an innocuous variant, in case <limits.h> declares clock_gettime. |
|
|
5594 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5595 | #define clock_gettime innocuous_clock_gettime |
|
|
5596 | |
|
|
5597 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5598 | which can conflict with char clock_gettime (); below. |
|
|
5599 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5600 | <limits.h> exists even on freestanding compilers. */ |
|
|
5601 | |
|
|
5602 | #ifdef __STDC__ |
|
|
5603 | # include <limits.h> |
|
|
5604 | #else |
|
|
5605 | # include <assert.h> |
|
|
5606 | #endif |
|
|
5607 | |
|
|
5608 | #undef clock_gettime |
|
|
5609 | |
|
|
5610 | /* Override any GCC internal prototype to avoid an error. |
|
|
5611 | Use char because int might match the return type of a GCC |
|
|
5612 | builtin and then its argument prototype would still apply. */ |
|
|
5613 | #ifdef __cplusplus |
|
|
5614 | extern "C" |
|
|
5615 | #endif |
|
|
5616 | char clock_gettime (); |
|
|
5617 | /* The GNU C library defines this for functions which it implements |
|
|
5618 | to always fail with ENOSYS. Some functions are actually named |
|
|
5619 | something starting with __ and the normal name is an alias. */ |
|
|
5620 | #if defined __stub_clock_gettime || defined __stub___clock_gettime |
|
|
5621 | choke me |
|
|
5622 | #endif |
|
|
5623 | |
|
|
5624 | int |
|
|
5625 | main () |
|
|
5626 | { |
|
|
5627 | return clock_gettime (); |
|
|
5628 | ; |
|
|
5629 | return 0; |
|
|
5630 | } |
|
|
5631 | _ACEOF |
|
|
5632 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5633 | if { (ac_try="$ac_link" |
|
|
5634 | case "(($ac_try" in |
|
|
5635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5636 | *) ac_try_echo=$ac_try;; |
|
|
5637 | esac |
|
|
5638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5639 | (eval "$ac_link") 2>conftest.er1 |
|
|
5640 | ac_status=$? |
|
|
5641 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5642 | rm -f conftest.er1 |
|
|
5643 | cat conftest.err >&5 |
|
|
5644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5645 | (exit $ac_status); } && { |
|
|
5646 | test -z "$ac_cxx_werror_flag" || |
|
|
5647 | test ! -s conftest.err |
|
|
5648 | } && test -s conftest$ac_exeext && |
|
|
5649 | $as_test_x conftest$ac_exeext; then |
|
|
5650 | ac_cv_func_clock_gettime=yes |
|
|
5651 | else |
|
|
5652 | echo "$as_me: failed program was:" >&5 |
|
|
5653 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5654 | |
|
|
5655 | ac_cv_func_clock_gettime=no |
|
|
5656 | fi |
|
|
5657 | |
|
|
5658 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5659 | conftest$ac_exeext conftest.$ac_ext |
|
|
5660 | fi |
|
|
5661 | { echo "$as_me:$LINENO: result: $ac_cv_func_clock_gettime" >&5 |
|
|
5662 | echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; } |
|
|
5663 | if test $ac_cv_func_clock_gettime = yes; then |
|
|
5664 | : |
|
|
5665 | else |
|
|
5666 | |
|
|
5667 | if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
|
|
5668 | |
|
|
5669 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
|
|
5670 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } |
|
|
5671 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
|
|
5672 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5673 | else |
|
|
5674 | ac_check_lib_save_LIBS=$LIBS |
|
|
5675 | LIBS="-lrt $LIBS" |
|
|
5676 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5677 | /* confdefs.h. */ |
|
|
5678 | _ACEOF |
|
|
5679 | cat confdefs.h >>conftest.$ac_ext |
|
|
5680 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5681 | /* end confdefs.h. */ |
|
|
5682 | |
|
|
5683 | /* Override any GCC internal prototype to avoid an error. |
|
|
5684 | Use char because int might match the return type of a GCC |
|
|
5685 | builtin and then its argument prototype would still apply. */ |
|
|
5686 | #ifdef __cplusplus |
|
|
5687 | extern "C" |
|
|
5688 | #endif |
|
|
5689 | char clock_gettime (); |
|
|
5690 | int |
|
|
5691 | main () |
|
|
5692 | { |
|
|
5693 | return clock_gettime (); |
|
|
5694 | ; |
|
|
5695 | return 0; |
|
|
5696 | } |
|
|
5697 | _ACEOF |
|
|
5698 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5699 | if { (ac_try="$ac_link" |
|
|
5700 | case "(($ac_try" in |
|
|
5701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5702 | *) ac_try_echo=$ac_try;; |
|
|
5703 | esac |
|
|
5704 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5705 | (eval "$ac_link") 2>conftest.er1 |
|
|
5706 | ac_status=$? |
|
|
5707 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5708 | rm -f conftest.er1 |
|
|
5709 | cat conftest.err >&5 |
|
|
5710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5711 | (exit $ac_status); } && { |
|
|
5712 | test -z "$ac_cxx_werror_flag" || |
|
|
5713 | test ! -s conftest.err |
|
|
5714 | } && test -s conftest$ac_exeext && |
|
|
5715 | $as_test_x conftest$ac_exeext; then |
|
|
5716 | ac_cv_lib_rt_clock_gettime=yes |
|
|
5717 | else |
|
|
5718 | echo "$as_me: failed program was:" >&5 |
|
|
5719 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5720 | |
|
|
5721 | ac_cv_lib_rt_clock_gettime=no |
|
|
5722 | fi |
|
|
5723 | |
|
|
5724 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5725 | conftest$ac_exeext conftest.$ac_ext |
|
|
5726 | LIBS=$ac_check_lib_save_LIBS |
|
|
5727 | fi |
|
|
5728 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
|
|
5729 | echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; } |
|
|
5730 | if test $ac_cv_lib_rt_clock_gettime = yes; then |
|
|
5731 | cat >>confdefs.h <<_ACEOF |
|
|
5732 | #define HAVE_LIBRT 1 |
|
|
5733 | _ACEOF |
|
|
5734 | |
|
|
5735 | LIBS="-lrt $LIBS" |
|
|
5736 | |
|
|
5737 | fi |
|
|
5738 | |
|
|
5739 | unset ac_cv_func_clock_gettime |
|
|
5740 | |
|
|
5741 | for ac_func in clock_gettime |
|
|
5742 | do |
|
|
5743 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
5744 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
5745 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
5746 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5748 | else |
|
|
5749 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5750 | /* confdefs.h. */ |
|
|
5751 | _ACEOF |
|
|
5752 | cat confdefs.h >>conftest.$ac_ext |
|
|
5753 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5754 | /* end confdefs.h. */ |
|
|
5755 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
5756 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5757 | #define $ac_func innocuous_$ac_func |
|
|
5758 | |
|
|
5759 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5760 | which can conflict with char $ac_func (); below. |
|
|
5761 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5762 | <limits.h> exists even on freestanding compilers. */ |
|
|
5763 | |
|
|
5764 | #ifdef __STDC__ |
|
|
5765 | # include <limits.h> |
|
|
5766 | #else |
|
|
5767 | # include <assert.h> |
|
|
5768 | #endif |
|
|
5769 | |
|
|
5770 | #undef $ac_func |
|
|
5771 | |
|
|
5772 | /* Override any GCC internal prototype to avoid an error. |
|
|
5773 | Use char because int might match the return type of a GCC |
|
|
5774 | builtin and then its argument prototype would still apply. */ |
|
|
5775 | #ifdef __cplusplus |
|
|
5776 | extern "C" |
|
|
5777 | #endif |
|
|
5778 | char $ac_func (); |
|
|
5779 | /* The GNU C library defines this for functions which it implements |
|
|
5780 | to always fail with ENOSYS. Some functions are actually named |
|
|
5781 | something starting with __ and the normal name is an alias. */ |
|
|
5782 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
5783 | choke me |
|
|
5784 | #endif |
|
|
5785 | |
|
|
5786 | int |
|
|
5787 | main () |
|
|
5788 | { |
|
|
5789 | return $ac_func (); |
|
|
5790 | ; |
|
|
5791 | return 0; |
|
|
5792 | } |
|
|
5793 | _ACEOF |
|
|
5794 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5795 | if { (ac_try="$ac_link" |
|
|
5796 | case "(($ac_try" in |
|
|
5797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5798 | *) ac_try_echo=$ac_try;; |
|
|
5799 | esac |
|
|
5800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5801 | (eval "$ac_link") 2>conftest.er1 |
|
|
5802 | ac_status=$? |
|
|
5803 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5804 | rm -f conftest.er1 |
|
|
5805 | cat conftest.err >&5 |
|
|
5806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5807 | (exit $ac_status); } && { |
|
|
5808 | test -z "$ac_cxx_werror_flag" || |
|
|
5809 | test ! -s conftest.err |
|
|
5810 | } && test -s conftest$ac_exeext && |
|
|
5811 | $as_test_x conftest$ac_exeext; then |
|
|
5812 | eval "$as_ac_var=yes" |
|
|
5813 | else |
|
|
5814 | echo "$as_me: failed program was:" >&5 |
|
|
5815 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5816 | |
|
|
5817 | eval "$as_ac_var=no" |
|
|
5818 | fi |
|
|
5819 | |
|
|
5820 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5821 | conftest$ac_exeext conftest.$ac_ext |
|
|
5822 | fi |
|
|
5823 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
5824 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5825 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5826 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
5827 | cat >>confdefs.h <<_ACEOF |
|
|
5828 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
5829 | _ACEOF |
|
|
5830 | |
|
|
5831 | fi |
|
|
5832 | done |
|
|
5833 | |
|
|
5834 | fi |
|
|
5835 | |
|
|
5836 | fi |
|
|
5837 | |
|
|
5838 | |
|
|
5839 | { echo "$as_me:$LINENO: checking for nanosleep" >&5 |
|
|
5840 | echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; } |
|
|
5841 | if test "${ac_cv_func_nanosleep+set}" = set; then |
|
|
5842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5843 | else |
|
|
5844 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5845 | /* confdefs.h. */ |
|
|
5846 | _ACEOF |
|
|
5847 | cat confdefs.h >>conftest.$ac_ext |
|
|
5848 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5849 | /* end confdefs.h. */ |
|
|
5850 | /* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep. |
|
|
5851 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5852 | #define nanosleep innocuous_nanosleep |
|
|
5853 | |
|
|
5854 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5855 | which can conflict with char nanosleep (); below. |
|
|
5856 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5857 | <limits.h> exists even on freestanding compilers. */ |
|
|
5858 | |
|
|
5859 | #ifdef __STDC__ |
|
|
5860 | # include <limits.h> |
|
|
5861 | #else |
|
|
5862 | # include <assert.h> |
|
|
5863 | #endif |
|
|
5864 | |
|
|
5865 | #undef nanosleep |
|
|
5866 | |
|
|
5867 | /* Override any GCC internal prototype to avoid an error. |
|
|
5868 | Use char because int might match the return type of a GCC |
|
|
5869 | builtin and then its argument prototype would still apply. */ |
|
|
5870 | #ifdef __cplusplus |
|
|
5871 | extern "C" |
|
|
5872 | #endif |
|
|
5873 | char nanosleep (); |
|
|
5874 | /* The GNU C library defines this for functions which it implements |
|
|
5875 | to always fail with ENOSYS. Some functions are actually named |
|
|
5876 | something starting with __ and the normal name is an alias. */ |
|
|
5877 | #if defined __stub_nanosleep || defined __stub___nanosleep |
|
|
5878 | choke me |
|
|
5879 | #endif |
|
|
5880 | |
|
|
5881 | int |
|
|
5882 | main () |
|
|
5883 | { |
|
|
5884 | return nanosleep (); |
|
|
5885 | ; |
|
|
5886 | return 0; |
|
|
5887 | } |
|
|
5888 | _ACEOF |
|
|
5889 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5890 | if { (ac_try="$ac_link" |
|
|
5891 | case "(($ac_try" in |
|
|
5892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5893 | *) ac_try_echo=$ac_try;; |
|
|
5894 | esac |
|
|
5895 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5896 | (eval "$ac_link") 2>conftest.er1 |
|
|
5897 | ac_status=$? |
|
|
5898 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5899 | rm -f conftest.er1 |
|
|
5900 | cat conftest.err >&5 |
|
|
5901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5902 | (exit $ac_status); } && { |
|
|
5903 | test -z "$ac_cxx_werror_flag" || |
|
|
5904 | test ! -s conftest.err |
|
|
5905 | } && test -s conftest$ac_exeext && |
|
|
5906 | $as_test_x conftest$ac_exeext; then |
|
|
5907 | ac_cv_func_nanosleep=yes |
|
|
5908 | else |
|
|
5909 | echo "$as_me: failed program was:" >&5 |
|
|
5910 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5911 | |
|
|
5912 | ac_cv_func_nanosleep=no |
|
|
5913 | fi |
|
|
5914 | |
|
|
5915 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5916 | conftest$ac_exeext conftest.$ac_ext |
|
|
5917 | fi |
|
|
5918 | { echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5 |
|
|
5919 | echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; } |
|
|
5920 | if test $ac_cv_func_nanosleep = yes; then |
|
|
5921 | : |
|
|
5922 | else |
|
|
5923 | |
|
|
5924 | if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
|
|
5925 | |
|
|
5926 | { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5 |
|
|
5927 | echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; } |
|
|
5928 | if test "${ac_cv_lib_rt_nanosleep+set}" = set; then |
|
|
5929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5930 | else |
|
|
5931 | ac_check_lib_save_LIBS=$LIBS |
|
|
5932 | LIBS="-lrt $LIBS" |
|
|
5933 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5934 | /* confdefs.h. */ |
|
|
5935 | _ACEOF |
|
|
5936 | cat confdefs.h >>conftest.$ac_ext |
|
|
5937 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5938 | /* end confdefs.h. */ |
|
|
5939 | |
|
|
5940 | /* Override any GCC internal prototype to avoid an error. |
|
|
5941 | Use char because int might match the return type of a GCC |
|
|
5942 | builtin and then its argument prototype would still apply. */ |
|
|
5943 | #ifdef __cplusplus |
|
|
5944 | extern "C" |
|
|
5945 | #endif |
|
|
5946 | char nanosleep (); |
|
|
5947 | int |
|
|
5948 | main () |
|
|
5949 | { |
|
|
5950 | return nanosleep (); |
|
|
5951 | ; |
|
|
5952 | return 0; |
|
|
5953 | } |
|
|
5954 | _ACEOF |
|
|
5955 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5956 | if { (ac_try="$ac_link" |
|
|
5957 | case "(($ac_try" in |
|
|
5958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5959 | *) ac_try_echo=$ac_try;; |
|
|
5960 | esac |
|
|
5961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5962 | (eval "$ac_link") 2>conftest.er1 |
|
|
5963 | ac_status=$? |
|
|
5964 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5965 | rm -f conftest.er1 |
|
|
5966 | cat conftest.err >&5 |
|
|
5967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5968 | (exit $ac_status); } && { |
|
|
5969 | test -z "$ac_cxx_werror_flag" || |
|
|
5970 | test ! -s conftest.err |
|
|
5971 | } && test -s conftest$ac_exeext && |
|
|
5972 | $as_test_x conftest$ac_exeext; then |
|
|
5973 | ac_cv_lib_rt_nanosleep=yes |
|
|
5974 | else |
|
|
5975 | echo "$as_me: failed program was:" >&5 |
|
|
5976 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5977 | |
|
|
5978 | ac_cv_lib_rt_nanosleep=no |
|
|
5979 | fi |
|
|
5980 | |
|
|
5981 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5982 | conftest$ac_exeext conftest.$ac_ext |
|
|
5983 | LIBS=$ac_check_lib_save_LIBS |
|
|
5984 | fi |
|
|
5985 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5 |
|
|
5986 | echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; } |
|
|
5987 | if test $ac_cv_lib_rt_nanosleep = yes; then |
|
|
5988 | cat >>confdefs.h <<_ACEOF |
|
|
5989 | #define HAVE_LIBRT 1 |
|
|
5990 | _ACEOF |
|
|
5991 | |
|
|
5992 | LIBS="-lrt $LIBS" |
|
|
5993 | |
|
|
5994 | fi |
|
|
5995 | |
|
|
5996 | unset ac_cv_func_nanosleep |
|
|
5997 | |
|
|
5998 | for ac_func in nanosleep |
|
|
5999 | do |
|
|
6000 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
6001 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
6002 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
6003 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
6004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6005 | else |
|
|
6006 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6007 | /* confdefs.h. */ |
|
|
6008 | _ACEOF |
|
|
6009 | cat confdefs.h >>conftest.$ac_ext |
|
|
6010 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6011 | /* end confdefs.h. */ |
|
|
6012 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
6013 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
6014 | #define $ac_func innocuous_$ac_func |
|
|
6015 | |
|
|
6016 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
6017 | which can conflict with char $ac_func (); below. |
|
|
6018 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
6019 | <limits.h> exists even on freestanding compilers. */ |
|
|
6020 | |
|
|
6021 | #ifdef __STDC__ |
|
|
6022 | # include <limits.h> |
|
|
6023 | #else |
|
|
6024 | # include <assert.h> |
|
|
6025 | #endif |
|
|
6026 | |
|
|
6027 | #undef $ac_func |
|
|
6028 | |
|
|
6029 | /* Override any GCC internal prototype to avoid an error. |
|
|
6030 | Use char because int might match the return type of a GCC |
|
|
6031 | builtin and then its argument prototype would still apply. */ |
|
|
6032 | #ifdef __cplusplus |
|
|
6033 | extern "C" |
|
|
6034 | #endif |
|
|
6035 | char $ac_func (); |
|
|
6036 | /* The GNU C library defines this for functions which it implements |
|
|
6037 | to always fail with ENOSYS. Some functions are actually named |
|
|
6038 | something starting with __ and the normal name is an alias. */ |
|
|
6039 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
6040 | choke me |
|
|
6041 | #endif |
|
|
6042 | |
|
|
6043 | int |
|
|
6044 | main () |
|
|
6045 | { |
|
|
6046 | return $ac_func (); |
|
|
6047 | ; |
|
|
6048 | return 0; |
|
|
6049 | } |
|
|
6050 | _ACEOF |
|
|
6051 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6052 | if { (ac_try="$ac_link" |
|
|
6053 | case "(($ac_try" in |
|
|
6054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6055 | *) ac_try_echo=$ac_try;; |
|
|
6056 | esac |
|
|
6057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6058 | (eval "$ac_link") 2>conftest.er1 |
|
|
6059 | ac_status=$? |
|
|
6060 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6061 | rm -f conftest.er1 |
|
|
6062 | cat conftest.err >&5 |
|
|
6063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6064 | (exit $ac_status); } && { |
|
|
6065 | test -z "$ac_cxx_werror_flag" || |
|
|
6066 | test ! -s conftest.err |
|
|
6067 | } && test -s conftest$ac_exeext && |
|
|
6068 | $as_test_x conftest$ac_exeext; then |
|
|
6069 | eval "$as_ac_var=yes" |
|
|
6070 | else |
|
|
6071 | echo "$as_me: failed program was:" >&5 |
|
|
6072 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6073 | |
|
|
6074 | eval "$as_ac_var=no" |
|
|
6075 | fi |
|
|
6076 | |
|
|
6077 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6078 | conftest$ac_exeext conftest.$ac_ext |
|
|
6079 | fi |
|
|
6080 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
6081 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
6082 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
6083 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
6084 | cat >>confdefs.h <<_ACEOF |
|
|
6085 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
6086 | _ACEOF |
|
|
6087 | |
|
|
6088 | fi |
|
|
6089 | done |
|
|
6090 | |
|
|
6091 | fi |
|
|
6092 | |
|
|
6093 | fi |
|
|
6094 | |
|
|
6095 | |
|
|
6096 | |
|
|
6097 | { echo "$as_me:$LINENO: checking for ceil in -lm" >&5 |
|
|
6098 | echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; } |
|
|
6099 | if test "${ac_cv_lib_m_ceil+set}" = set; then |
|
|
6100 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6101 | else |
|
|
6102 | ac_check_lib_save_LIBS=$LIBS |
|
|
6103 | LIBS="-lm $LIBS" |
|
|
6104 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6105 | /* confdefs.h. */ |
|
|
6106 | _ACEOF |
|
|
6107 | cat confdefs.h >>conftest.$ac_ext |
|
|
6108 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6109 | /* end confdefs.h. */ |
|
|
6110 | |
|
|
6111 | /* Override any GCC internal prototype to avoid an error. |
|
|
6112 | Use char because int might match the return type of a GCC |
|
|
6113 | builtin and then its argument prototype would still apply. */ |
|
|
6114 | #ifdef __cplusplus |
|
|
6115 | extern "C" |
|
|
6116 | #endif |
|
|
6117 | char ceil (); |
|
|
6118 | int |
|
|
6119 | main () |
|
|
6120 | { |
|
|
6121 | return ceil (); |
|
|
6122 | ; |
|
|
6123 | return 0; |
|
|
6124 | } |
|
|
6125 | _ACEOF |
|
|
6126 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6127 | if { (ac_try="$ac_link" |
|
|
6128 | case "(($ac_try" in |
|
|
6129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6130 | *) ac_try_echo=$ac_try;; |
|
|
6131 | esac |
|
|
6132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6133 | (eval "$ac_link") 2>conftest.er1 |
|
|
6134 | ac_status=$? |
|
|
6135 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6136 | rm -f conftest.er1 |
|
|
6137 | cat conftest.err >&5 |
|
|
6138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6139 | (exit $ac_status); } && { |
|
|
6140 | test -z "$ac_cxx_werror_flag" || |
|
|
6141 | test ! -s conftest.err |
|
|
6142 | } && test -s conftest$ac_exeext && |
|
|
6143 | $as_test_x conftest$ac_exeext; then |
|
|
6144 | ac_cv_lib_m_ceil=yes |
|
|
6145 | else |
|
|
6146 | echo "$as_me: failed program was:" >&5 |
|
|
6147 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6148 | |
|
|
6149 | ac_cv_lib_m_ceil=no |
|
|
6150 | fi |
|
|
6151 | |
|
|
6152 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6153 | conftest$ac_exeext conftest.$ac_ext |
|
|
6154 | LIBS=$ac_check_lib_save_LIBS |
|
|
6155 | fi |
|
|
6156 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5 |
|
|
6157 | echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6; } |
|
|
6158 | if test $ac_cv_lib_m_ceil = yes; then |
|
|
6159 | cat >>confdefs.h <<_ACEOF |
|
|
6160 | #define HAVE_LIBM 1 |
|
|
6161 | _ACEOF |
|
|
6162 | |
|
|
6163 | LIBS="-lm $LIBS" |
|
|
6164 | |
|
|
6165 | fi |
|
|
6166 | |
|
|
6167 | |
|
|
6168 | |
|
|
6169 | |
4864 | |
6170 | |
4865 | |
6171 | |
4866 | |
6172 | |
4867 | # Extract the first word of "tic", so it can be a program name with args. |
6173 | # Extract the first word of "tic", so it can be a program name with args. |
4868 | set dummy tic; ac_word=$2 |
6174 | set dummy tic; ac_word=$2 |
… | |
… | |
4889 | fi |
6195 | fi |
4890 | done |
6196 | done |
4891 | done |
6197 | done |
4892 | IFS=$as_save_IFS |
6198 | IFS=$as_save_IFS |
4893 | |
6199 | |
|
|
6200 | test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":" |
4894 | ;; |
6201 | ;; |
4895 | esac |
6202 | esac |
4896 | fi |
6203 | fi |
4897 | TIC=$ac_cv_path_TIC |
6204 | TIC=$ac_cv_path_TIC |
4898 | if test -n "$TIC"; then |
6205 | if test -n "$TIC"; then |
… | |
… | |
4901 | else |
6208 | else |
4902 | { echo "$as_me:$LINENO: result: no" >&5 |
6209 | { echo "$as_me:$LINENO: result: no" >&5 |
4903 | echo "${ECHO_T}no" >&6; } |
6210 | echo "${ECHO_T}no" >&6; } |
4904 | fi |
6211 | fi |
4905 | |
6212 | |
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 | |
6213 | |
5136 | |
6214 | |
5137 | { echo "$as_me:$LINENO: checking for X" >&5 |
6215 | { echo "$as_me:$LINENO: checking for X" >&5 |
5138 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
6216 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
5139 | |
6217 | |
… | |
… | |
6445 | fi |
7523 | fi |
6446 | |
7524 | |
6447 | LDFLAGS=$ac_save_LDFLAGS |
7525 | LDFLAGS=$ac_save_LDFLAGS |
6448 | |
7526 | |
6449 | fi |
7527 | fi |
6450 | |
|
|
6451 | |
7528 | |
6452 | |
7529 | |
6453 | AFTERIMAGE_CFLAGS= |
7530 | AFTERIMAGE_CFLAGS= |
6454 | AFTERIMAGE_LIBS= |
7531 | AFTERIMAGE_LIBS= |
6455 | AFTERIMAGE_VERSION= |
7532 | AFTERIMAGE_VERSION= |
… | |
… | |
6526 | echo "${ECHO_T}no" >&6; } |
7603 | echo "${ECHO_T}no" >&6; } |
6527 | fi |
7604 | fi |
6528 | fi |
7605 | fi |
6529 | fi |
7606 | fi |
6530 | |
7607 | |
6531 | if test x$support_afterimage != xyes -a x$support_xpm = xyes ; then |
|
|
6532 | |
|
|
6533 | |
|
|
6534 | |
|
|
6535 | # Initialize some more variables set by options. |
|
|
6536 | # The variables have the same names as the options, with |
|
|
6537 | # dashes changed to underlines. |
|
|
6538 | |
|
|
6539 | # If we find XPM, set shell vars xpm_includes and xpm_libraries to the |
|
|
6540 | # paths, otherwise set no_xpm=yes. |
|
|
6541 | # Uses ac_ vars as temps to allow command line to override cache and checks. |
|
|
6542 | { echo "$as_me:$LINENO: checking for libXpm" >&5 |
|
|
6543 | echo $ECHO_N "checking for libXpm... $ECHO_C" >&6; } |
|
|
6544 | |
|
|
6545 | |
|
|
6546 | # Check whether --with-xpm_includes was given. |
|
|
6547 | if test "${with_xpm_includes+set}" = set; then |
|
|
6548 | withval=$with_xpm_includes; xpm_includes="$withval" |
|
|
6549 | else |
|
|
6550 | xpm_includes=NO |
|
|
6551 | fi |
|
|
6552 | |
|
|
6553 | |
|
|
6554 | # Check whether --with-xpm_library was given. |
|
|
6555 | if test "${with_xpm_library+set}" = set; then |
|
|
6556 | withval=$with_xpm_library; xpm_libraries="$withval" |
|
|
6557 | else |
|
|
6558 | xpm_libraries=NO |
|
|
6559 | fi |
|
|
6560 | |
|
|
6561 | |
|
|
6562 | # --without-xpm overrides everything else, but does not touch the cache. |
|
|
6563 | |
|
|
6564 | # Check whether --with-xpm was given. |
|
|
6565 | if test "${with_xpm+set}" = set; then |
|
|
6566 | withval=$with_xpm; |
|
|
6567 | fi |
|
|
6568 | |
|
|
6569 | if test "$with_xpm" = no; then |
|
|
6570 | have_xpm=disabled |
|
|
6571 | else |
|
|
6572 | if test "${ac_cv_have_xpm+set}" = set; then |
|
|
6573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6574 | else |
|
|
6575 | |
|
|
6576 | vt_xpm_include_X11=no |
|
|
6577 | if test -n "$xpm_includes"; then |
|
|
6578 | vt_xpm_includes=$xpm_includes |
|
|
6579 | else |
|
|
6580 | vt_xpm_includes=NO |
|
|
6581 | fi |
|
|
6582 | if test -n "$xpm_libraries"; then |
|
|
6583 | vt_xpm_libraries=$xpm_libraries |
|
|
6584 | else |
|
|
6585 | vt_xpm_libraries=NO |
|
|
6586 | fi |
|
|
6587 | |
|
|
6588 | if test "$vt_xpm_includes" = NO; then |
|
|
6589 | # Guess where to find xpm.h |
|
|
6590 | |
|
|
6591 | ac_save_CPPFLAGS="$CPPFLAGS" |
|
|
6592 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
|
|
6593 | |
|
|
6594 | # First, try using that file with no special directory specified. |
|
|
6595 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6596 | /* confdefs.h. */ |
|
|
6597 | _ACEOF |
|
|
6598 | cat confdefs.h >>conftest.$ac_ext |
|
|
6599 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6600 | /* end confdefs.h. */ |
|
|
6601 | #include <X11/xpm.h> |
|
|
6602 | _ACEOF |
|
|
6603 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
6604 | case "(($ac_try" in |
|
|
6605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6606 | *) ac_try_echo=$ac_try;; |
|
|
6607 | esac |
|
|
6608 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6609 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
6610 | ac_status=$? |
|
|
6611 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6612 | rm -f conftest.er1 |
|
|
6613 | cat conftest.err >&5 |
|
|
6614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6615 | (exit $ac_status); } >/dev/null && { |
|
|
6616 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
6617 | test ! -s conftest.err |
|
|
6618 | }; then |
|
|
6619 | # We can compile using X headers with no special include directory. |
|
|
6620 | vt_xpm_includes= |
|
|
6621 | vt_xpm_include_X11=yes |
|
|
6622 | else |
|
|
6623 | echo "$as_me: failed program was:" >&5 |
|
|
6624 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6625 | |
|
|
6626 | CPPFLAGS="$ac_save_CPPFLAGS" |
|
|
6627 | # Look for the header file in a standard set of common directories. |
|
|
6628 | for ac_dir in \ |
|
|
6629 | /usr/X11/include \ |
|
|
6630 | /usr/X11R6/include \ |
|
|
6631 | /usr/X11R5/include \ |
|
|
6632 | /usr/X11R4/include \ |
|
|
6633 | \ |
|
|
6634 | /usr/include/X11 \ |
|
|
6635 | /usr/include/X11R6 \ |
|
|
6636 | /usr/include/X11R5 \ |
|
|
6637 | /usr/include/X11R4 \ |
|
|
6638 | \ |
|
|
6639 | /usr/local/X11/include \ |
|
|
6640 | /usr/local/X11R6/include \ |
|
|
6641 | /usr/local/X11R5/include \ |
|
|
6642 | /usr/local/X11R4/include \ |
|
|
6643 | \ |
|
|
6644 | /usr/local/include/X11 \ |
|
|
6645 | /usr/local/include/X11R6 \ |
|
|
6646 | /usr/local/include/X11R5 \ |
|
|
6647 | /usr/local/include/X11R4 \ |
|
|
6648 | \ |
|
|
6649 | /usr/X386/include \ |
|
|
6650 | /usr/x386/include \ |
|
|
6651 | /usr/XFree86/include/X11 \ |
|
|
6652 | \ |
|
|
6653 | /usr/include \ |
|
|
6654 | /usr/local/include \ |
|
|
6655 | /usr/unsupported/include \ |
|
|
6656 | /usr/athena/include \ |
|
|
6657 | /usr/local/x11r5/include \ |
|
|
6658 | /usr/lpp/Xamples/include \ |
|
|
6659 | \ |
|
|
6660 | /usr/openwin/include \ |
|
|
6661 | /usr/openwin/share/include \ |
|
|
6662 | ; \ |
|
|
6663 | do |
|
|
6664 | if test -r "$ac_dir/X11/xpm.h"; then |
|
|
6665 | vt_xpm_includes="$ac_dir" |
|
|
6666 | vt_xpm_include_X11=yes |
|
|
6667 | break |
|
|
6668 | else |
|
|
6669 | if test -r "$ac_dir/xpm.h"; then |
|
|
6670 | vt_xpm_includes=$ac_dir |
|
|
6671 | break |
|
|
6672 | fi |
|
|
6673 | fi |
|
|
6674 | done |
|
|
6675 | fi |
|
|
6676 | |
|
|
6677 | rm -f conftest.err conftest.$ac_ext |
|
|
6678 | fi |
|
|
6679 | |
|
|
6680 | if test "$vt_xpm_libraries" = NO; then |
|
|
6681 | # Check for the libraries. |
|
|
6682 | |
|
|
6683 | # See if we find them without any special options. |
|
|
6684 | # Don't add to $LIBS permanently. |
|
|
6685 | ac_save_LIBS="$LIBS" |
|
|
6686 | LIBS="$LIBS $X_LIBS -lXpm -lX11" |
|
|
6687 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6688 | /* confdefs.h. */ |
|
|
6689 | _ACEOF |
|
|
6690 | cat confdefs.h >>conftest.$ac_ext |
|
|
6691 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6692 | /* end confdefs.h. */ |
|
|
6693 | |
|
|
6694 | int |
|
|
6695 | main () |
|
|
6696 | { |
|
|
6697 | XpmReadFileToPixmap() |
|
|
6698 | ; |
|
|
6699 | return 0; |
|
|
6700 | } |
|
|
6701 | _ACEOF |
|
|
6702 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6703 | if { (ac_try="$ac_link" |
|
|
6704 | case "(($ac_try" in |
|
|
6705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6706 | *) ac_try_echo=$ac_try;; |
|
|
6707 | esac |
|
|
6708 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6709 | (eval "$ac_link") 2>conftest.er1 |
|
|
6710 | ac_status=$? |
|
|
6711 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6712 | rm -f conftest.er1 |
|
|
6713 | cat conftest.err >&5 |
|
|
6714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6715 | (exit $ac_status); } && { |
|
|
6716 | test -z "$ac_cxx_werror_flag" || |
|
|
6717 | test ! -s conftest.err |
|
|
6718 | } && test -s conftest$ac_exeext && |
|
|
6719 | $as_test_x conftest$ac_exeext; then |
|
|
6720 | LIBS="$ac_save_LIBS" |
|
|
6721 | # We can link libXpm with no special library path. |
|
|
6722 | vt_xpm_libraries= |
|
|
6723 | else |
|
|
6724 | echo "$as_me: failed program was:" >&5 |
|
|
6725 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6726 | |
|
|
6727 | LIBS="$ac_save_LIBS" |
|
|
6728 | # First see if replacing the include by lib works. |
|
|
6729 | for ac_dir in \ |
|
|
6730 | `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \ |
|
|
6731 | /usr/X11/lib \ |
|
|
6732 | /usr/X11R6/lib \ |
|
|
6733 | /usr/X11R5/lib \ |
|
|
6734 | /usr/X11R4/lib \ |
|
|
6735 | \ |
|
|
6736 | /usr/lib/X11 \ |
|
|
6737 | /usr/lib/X11R6 \ |
|
|
6738 | /usr/lib/X11R5 \ |
|
|
6739 | /usr/lib/X11R4 \ |
|
|
6740 | \ |
|
|
6741 | /usr/local/X11/lib \ |
|
|
6742 | /usr/local/X11R6/lib \ |
|
|
6743 | /usr/local/X11R5/lib \ |
|
|
6744 | /usr/local/X11R4/lib \ |
|
|
6745 | \ |
|
|
6746 | /usr/local/lib/X11 \ |
|
|
6747 | /usr/local/lib/X11R6 \ |
|
|
6748 | /usr/local/lib/X11R5 \ |
|
|
6749 | /usr/local/lib/X11R4 \ |
|
|
6750 | \ |
|
|
6751 | /usr/X386/lib \ |
|
|
6752 | /usr/x386/lib \ |
|
|
6753 | /usr/XFree86/lib/X11 \ |
|
|
6754 | \ |
|
|
6755 | /usr/lib \ |
|
|
6756 | /usr/local/lib \ |
|
|
6757 | /usr/unsupported/lib \ |
|
|
6758 | /usr/athena/lib \ |
|
|
6759 | /usr/local/x11r5/lib \ |
|
|
6760 | /usr/lpp/Xamples/lib \ |
|
|
6761 | \ |
|
|
6762 | /usr/openwin/lib \ |
|
|
6763 | /usr/openwin/share/lib \ |
|
|
6764 | ; \ |
|
|
6765 | do |
|
|
6766 | for ac_extension in a so sl; do |
|
|
6767 | if test -r $ac_dir/libXpm.$ac_extension; then |
|
|
6768 | vt_xpm_libraries=$ac_dir |
|
|
6769 | break 2 |
|
|
6770 | fi |
|
|
6771 | done |
|
|
6772 | done |
|
|
6773 | fi |
|
|
6774 | |
|
|
6775 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6776 | conftest$ac_exeext conftest.$ac_ext |
|
|
6777 | fi |
|
|
6778 | |
|
|
6779 | |
|
|
6780 | if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then |
|
|
6781 | ac_cv_have_xpm="have_xpm=no" |
|
|
6782 | else |
|
|
6783 | ac_cv_have_xpm="have_xpm=yes \ |
|
|
6784 | vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \ |
|
|
6785 | vt_xpm_include_X11=$vt_xpm_include_X11" |
|
|
6786 | fi |
|
|
6787 | fi |
|
|
6788 | eval "$ac_cv_have_xpm" |
|
|
6789 | fi |
|
|
6790 | |
|
|
6791 | if test "$have_xpm" != yes; then |
|
|
6792 | { echo "$as_me:$LINENO: result: $have_xpm" >&5 |
|
|
6793 | echo "${ECHO_T}$have_xpm" >&6; } |
|
|
6794 | no_xpm=yes |
|
|
6795 | else |
|
|
6796 | if test "$xpm_includes" != NO; then |
|
|
6797 | if test "$xpm_includes" = "$vt_xpm_includes"; then |
|
|
6798 | if test -r "$xpm_includes/X11/xpm.h"; then |
|
|
6799 | vt_xpm_include_X11=yes |
|
|
6800 | fi |
|
|
6801 | else |
|
|
6802 | vt_xpm_include_X11=no |
|
|
6803 | if test -z "$xpm_includes"; then |
|
|
6804 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6805 | /* confdefs.h. */ |
|
|
6806 | _ACEOF |
|
|
6807 | cat confdefs.h >>conftest.$ac_ext |
|
|
6808 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6809 | /* end confdefs.h. */ |
|
|
6810 | #include <X11/xpm.h> |
|
|
6811 | _ACEOF |
|
|
6812 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
6813 | case "(($ac_try" in |
|
|
6814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6815 | *) ac_try_echo=$ac_try;; |
|
|
6816 | esac |
|
|
6817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6818 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
6819 | ac_status=$? |
|
|
6820 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6821 | rm -f conftest.er1 |
|
|
6822 | cat conftest.err >&5 |
|
|
6823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6824 | (exit $ac_status); } >/dev/null && { |
|
|
6825 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
6826 | test ! -s conftest.err |
|
|
6827 | }; then |
|
|
6828 | vt_xpm_include_X11=yes |
|
|
6829 | else |
|
|
6830 | echo "$as_me: failed program was:" >&5 |
|
|
6831 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6832 | |
|
|
6833 | |
|
|
6834 | fi |
|
|
6835 | |
|
|
6836 | rm -f conftest.err conftest.$ac_ext |
|
|
6837 | else |
|
|
6838 | if test -r "$xpm_includes/X11/xpm.h"; then |
|
|
6839 | vt_xpm_include_X11=yes |
|
|
6840 | fi |
|
|
6841 | fi |
|
|
6842 | fi |
|
|
6843 | vt_xpm_includes=$xpm_includes |
|
|
6844 | fi |
|
|
6845 | if test "x$xpm_libraries" != xNO; then |
|
|
6846 | vt_xpm_libraries=$xpm_libraries |
|
|
6847 | fi |
|
|
6848 | # Update the cache value to reflect the command line values. |
|
|
6849 | ac_cv_have_xpm="have_xpm=yes \ |
|
|
6850 | vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \ |
|
|
6851 | vt_xpm_include_X11=$vt_xpm_include_X11" |
|
|
6852 | eval "$ac_cv_have_xpm" |
|
|
6853 | { echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5 |
|
|
6854 | echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6; } |
|
|
6855 | if test -n "$vt_xpm_includes"; then |
|
|
6856 | XPM_CPPFLAGS="-DHAVE_LIBXPM" |
|
|
6857 | fi |
|
|
6858 | if test -n "$vt_xpm_includes"; then |
|
|
6859 | XPM_CFLAGS="-I$vt_xpm_includes" |
|
|
6860 | fi |
|
|
6861 | XPM_LIBS="-lXpm" |
|
|
6862 | if test -n "$vt_xpm_libraries"; then |
|
|
6863 | XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS" |
|
|
6864 | fi |
|
|
6865 | if test "x$vt_xpm_include_X11" = xyes; then |
|
|
6866 | |
|
|
6867 | cat >>confdefs.h <<\_ACEOF |
|
|
6868 | #define XPM_INC_X11 1 |
|
|
6869 | _ACEOF |
|
|
6870 | |
|
|
6871 | fi |
|
|
6872 | fi |
|
|
6873 | |
|
|
6874 | |
|
|
6875 | |
|
|
6876 | |
|
|
6877 | |
|
|
6878 | if test x$no_xpm = xyes; then |
|
|
6879 | support_xpm=needsmanualspecification |
|
|
6880 | fi |
|
|
6881 | fi |
|
|
6882 | |
|
|
6883 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
|
|
6884 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
|
|
6885 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
|
|
6886 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6887 | else |
|
|
6888 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6889 | /* confdefs.h. */ |
|
|
6890 | _ACEOF |
|
|
6891 | cat confdefs.h >>conftest.$ac_ext |
|
|
6892 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6893 | /* end confdefs.h. */ |
|
|
6894 | #include <sys/types.h> |
|
|
6895 | #include <sys/wait.h> |
|
|
6896 | #ifndef WEXITSTATUS |
|
|
6897 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
|
|
6898 | #endif |
|
|
6899 | #ifndef WIFEXITED |
|
|
6900 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
|
|
6901 | #endif |
|
|
6902 | |
|
|
6903 | int |
|
|
6904 | main () |
|
|
6905 | { |
|
|
6906 | int s; |
|
|
6907 | wait (&s); |
|
|
6908 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
|
|
6909 | ; |
|
|
6910 | return 0; |
|
|
6911 | } |
|
|
6912 | _ACEOF |
|
|
6913 | rm -f conftest.$ac_objext |
|
|
6914 | if { (ac_try="$ac_compile" |
|
|
6915 | case "(($ac_try" in |
|
|
6916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6917 | *) ac_try_echo=$ac_try;; |
|
|
6918 | esac |
|
|
6919 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6920 | (eval "$ac_compile") 2>conftest.er1 |
|
|
6921 | ac_status=$? |
|
|
6922 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6923 | rm -f conftest.er1 |
|
|
6924 | cat conftest.err >&5 |
|
|
6925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6926 | (exit $ac_status); } && { |
|
|
6927 | test -z "$ac_cxx_werror_flag" || |
|
|
6928 | test ! -s conftest.err |
|
|
6929 | } && test -s conftest.$ac_objext; then |
|
|
6930 | ac_cv_header_sys_wait_h=yes |
|
|
6931 | else |
|
|
6932 | echo "$as_me: failed program was:" >&5 |
|
|
6933 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6934 | |
|
|
6935 | ac_cv_header_sys_wait_h=no |
|
|
6936 | fi |
|
|
6937 | |
|
|
6938 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6939 | fi |
|
|
6940 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
|
|
6941 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
|
|
6942 | if test $ac_cv_header_sys_wait_h = yes; then |
|
|
6943 | |
|
|
6944 | cat >>confdefs.h <<\_ACEOF |
|
|
6945 | #define HAVE_SYS_WAIT_H 1 |
|
|
6946 | _ACEOF |
|
|
6947 | |
|
|
6948 | fi |
|
|
6949 | |
|
|
6950 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
6951 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
|
|
6952 | if test "${ac_cv_header_stdc+set}" = set; then |
|
|
6953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6954 | else |
|
|
6955 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6956 | /* confdefs.h. */ |
|
|
6957 | _ACEOF |
|
|
6958 | cat confdefs.h >>conftest.$ac_ext |
|
|
6959 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6960 | /* end confdefs.h. */ |
|
|
6961 | #include <stdlib.h> |
|
|
6962 | #include <stdarg.h> |
|
|
6963 | #include <string.h> |
|
|
6964 | #include <float.h> |
|
|
6965 | |
|
|
6966 | int |
|
|
6967 | main () |
|
|
6968 | { |
|
|
6969 | |
|
|
6970 | ; |
|
|
6971 | return 0; |
|
|
6972 | } |
|
|
6973 | _ACEOF |
|
|
6974 | rm -f conftest.$ac_objext |
|
|
6975 | if { (ac_try="$ac_compile" |
|
|
6976 | case "(($ac_try" in |
|
|
6977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6978 | *) ac_try_echo=$ac_try;; |
|
|
6979 | esac |
|
|
6980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6981 | (eval "$ac_compile") 2>conftest.er1 |
|
|
6982 | ac_status=$? |
|
|
6983 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6984 | rm -f conftest.er1 |
|
|
6985 | cat conftest.err >&5 |
|
|
6986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6987 | (exit $ac_status); } && { |
|
|
6988 | test -z "$ac_cxx_werror_flag" || |
|
|
6989 | test ! -s conftest.err |
|
|
6990 | } && test -s conftest.$ac_objext; then |
|
|
6991 | ac_cv_header_stdc=yes |
|
|
6992 | else |
|
|
6993 | echo "$as_me: failed program was:" >&5 |
|
|
6994 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6995 | |
|
|
6996 | ac_cv_header_stdc=no |
|
|
6997 | fi |
|
|
6998 | |
|
|
6999 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7000 | |
|
|
7001 | if test $ac_cv_header_stdc = yes; then |
|
|
7002 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
7003 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7004 | /* confdefs.h. */ |
|
|
7005 | _ACEOF |
|
|
7006 | cat confdefs.h >>conftest.$ac_ext |
|
|
7007 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7008 | /* end confdefs.h. */ |
|
|
7009 | #include <string.h> |
|
|
7010 | |
|
|
7011 | _ACEOF |
|
|
7012 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
7013 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
7014 | : |
|
|
7015 | else |
|
|
7016 | ac_cv_header_stdc=no |
|
|
7017 | fi |
|
|
7018 | rm -f conftest* |
|
|
7019 | |
|
|
7020 | fi |
|
|
7021 | |
|
|
7022 | if test $ac_cv_header_stdc = yes; then |
|
|
7023 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
7024 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7025 | /* confdefs.h. */ |
|
|
7026 | _ACEOF |
|
|
7027 | cat confdefs.h >>conftest.$ac_ext |
|
|
7028 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7029 | /* end confdefs.h. */ |
|
|
7030 | #include <stdlib.h> |
|
|
7031 | |
|
|
7032 | _ACEOF |
|
|
7033 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
7034 | $EGREP "free" >/dev/null 2>&1; then |
|
|
7035 | : |
|
|
7036 | else |
|
|
7037 | ac_cv_header_stdc=no |
|
|
7038 | fi |
|
|
7039 | rm -f conftest* |
|
|
7040 | |
|
|
7041 | fi |
|
|
7042 | |
|
|
7043 | if test $ac_cv_header_stdc = yes; then |
|
|
7044 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
7045 | if test "$cross_compiling" = yes; then |
|
|
7046 | : |
|
|
7047 | else |
|
|
7048 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7049 | /* confdefs.h. */ |
|
|
7050 | _ACEOF |
|
|
7051 | cat confdefs.h >>conftest.$ac_ext |
|
|
7052 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7053 | /* end confdefs.h. */ |
|
|
7054 | #include <ctype.h> |
|
|
7055 | #include <stdlib.h> |
|
|
7056 | #if ((' ' & 0x0FF) == 0x020) |
|
|
7057 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
7058 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
7059 | #else |
|
|
7060 | # define ISLOWER(c) \ |
|
|
7061 | (('a' <= (c) && (c) <= 'i') \ |
|
|
7062 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
7063 | || ('s' <= (c) && (c) <= 'z')) |
|
|
7064 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
7065 | #endif |
|
|
7066 | |
|
|
7067 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
7068 | int |
|
|
7069 | main () |
|
|
7070 | { |
|
|
7071 | int i; |
|
|
7072 | for (i = 0; i < 256; i++) |
|
|
7073 | if (XOR (islower (i), ISLOWER (i)) |
|
|
7074 | || toupper (i) != TOUPPER (i)) |
|
|
7075 | return 2; |
|
|
7076 | return 0; |
|
|
7077 | } |
|
|
7078 | _ACEOF |
|
|
7079 | rm -f conftest$ac_exeext |
|
|
7080 | if { (ac_try="$ac_link" |
|
|
7081 | case "(($ac_try" in |
|
|
7082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7083 | *) ac_try_echo=$ac_try;; |
|
|
7084 | esac |
|
|
7085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7086 | (eval "$ac_link") 2>&5 |
|
|
7087 | ac_status=$? |
|
|
7088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7089 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
7090 | { (case "(($ac_try" in |
|
|
7091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7092 | *) ac_try_echo=$ac_try;; |
|
|
7093 | esac |
|
|
7094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7095 | (eval "$ac_try") 2>&5 |
|
|
7096 | ac_status=$? |
|
|
7097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7098 | (exit $ac_status); }; }; then |
|
|
7099 | : |
|
|
7100 | else |
|
|
7101 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
7102 | echo "$as_me: failed program was:" >&5 |
|
|
7103 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7104 | |
|
|
7105 | ( exit $ac_status ) |
|
|
7106 | ac_cv_header_stdc=no |
|
|
7107 | fi |
|
|
7108 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
7109 | fi |
|
|
7110 | |
|
|
7111 | |
|
|
7112 | fi |
|
|
7113 | fi |
|
|
7114 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
7115 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
|
|
7116 | if test $ac_cv_header_stdc = yes; then |
|
|
7117 | |
|
|
7118 | cat >>confdefs.h <<\_ACEOF |
|
|
7119 | #define STDC_HEADERS 1 |
|
|
7120 | _ACEOF |
|
|
7121 | |
|
|
7122 | fi |
|
|
7123 | |
|
|
7124 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
7125 | |
|
|
7126 | |
|
|
7127 | |
|
|
7128 | |
|
|
7129 | |
|
|
7130 | |
|
|
7131 | |
|
|
7132 | |
|
|
7133 | |
|
|
7134 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
7135 | inttypes.h stdint.h unistd.h |
|
|
7136 | do |
|
|
7137 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
7138 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
7139 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
7140 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
7141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7142 | else |
|
|
7143 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7144 | /* confdefs.h. */ |
|
|
7145 | _ACEOF |
|
|
7146 | cat confdefs.h >>conftest.$ac_ext |
|
|
7147 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7148 | /* end confdefs.h. */ |
|
|
7149 | $ac_includes_default |
|
|
7150 | |
|
|
7151 | #include <$ac_header> |
|
|
7152 | _ACEOF |
|
|
7153 | rm -f conftest.$ac_objext |
|
|
7154 | if { (ac_try="$ac_compile" |
|
|
7155 | case "(($ac_try" in |
|
|
7156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7157 | *) ac_try_echo=$ac_try;; |
|
|
7158 | esac |
|
|
7159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7160 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7161 | ac_status=$? |
|
|
7162 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7163 | rm -f conftest.er1 |
|
|
7164 | cat conftest.err >&5 |
|
|
7165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7166 | (exit $ac_status); } && { |
|
|
7167 | test -z "$ac_cxx_werror_flag" || |
|
|
7168 | test ! -s conftest.err |
|
|
7169 | } && test -s conftest.$ac_objext; then |
|
|
7170 | eval "$as_ac_Header=yes" |
|
|
7171 | else |
|
|
7172 | echo "$as_me: failed program was:" >&5 |
|
|
7173 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7174 | |
|
|
7175 | eval "$as_ac_Header=no" |
|
|
7176 | fi |
|
|
7177 | |
|
|
7178 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7179 | fi |
|
|
7180 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
7181 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
7182 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
7183 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
7184 | cat >>confdefs.h <<_ACEOF |
|
|
7185 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
7186 | _ACEOF |
|
|
7187 | |
|
|
7188 | fi |
|
|
7189 | |
|
|
7190 | done |
|
|
7191 | |
|
|
7192 | |
|
|
7193 | |
|
|
7194 | |
|
|
7195 | |
|
|
7196 | |
|
|
7197 | |
|
|
7198 | |
|
|
7199 | |
|
|
7200 | |
|
|
7201 | |
|
|
7202 | |
|
|
7203 | |
7608 | |
7204 | |
7609 | |
7205 | |
7610 | |
7206 | |
7611 | |
7207 | |
7612 | |
7208 | |
7613 | |
7209 | |
7614 | |
7210 | for ac_header in \ |
7615 | 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 \ |
7616 | sys/byteorder.h \ |
7219 | sys/ioctl.h \ |
7617 | sys/ioctl.h \ |
7220 | sys/select.h \ |
|
|
7221 | sys/sockio.h \ |
7618 | sys/sockio.h \ |
7222 | sys/strredir.h \ |
7619 | sys/strredir.h \ |
7223 | sys/time.h \ |
|
|
7224 | stdint.h \ |
7620 | stdint.h \ |
7225 | wchar.h \ |
7621 | wchar.h \ |
7226 | cwchar \ |
7622 | cwchar \ |
7227 | clocale \ |
|
|
7228 | |
7623 | |
7229 | do |
7624 | do |
7230 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7625 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7231 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7626 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7232 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7627 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
… | |
… | |
7363 | fi |
7758 | fi |
7364 | |
7759 | |
7365 | done |
7760 | done |
7366 | |
7761 | |
7367 | |
7762 | |
7368 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
|
|
7369 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
|
|
7370 | if test "${ac_cv_header_time+set}" = set; then |
|
|
7371 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7372 | else |
|
|
7373 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7374 | /* confdefs.h. */ |
|
|
7375 | _ACEOF |
|
|
7376 | cat confdefs.h >>conftest.$ac_ext |
|
|
7377 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7378 | /* end confdefs.h. */ |
|
|
7379 | #include <sys/types.h> |
|
|
7380 | #include <sys/time.h> |
|
|
7381 | #include <time.h> |
|
|
7382 | |
|
|
7383 | int |
|
|
7384 | main () |
|
|
7385 | { |
|
|
7386 | if ((struct tm *) 0) |
|
|
7387 | return 0; |
|
|
7388 | ; |
|
|
7389 | return 0; |
|
|
7390 | } |
|
|
7391 | _ACEOF |
|
|
7392 | rm -f conftest.$ac_objext |
|
|
7393 | if { (ac_try="$ac_compile" |
|
|
7394 | case "(($ac_try" in |
|
|
7395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7396 | *) ac_try_echo=$ac_try;; |
|
|
7397 | esac |
|
|
7398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7399 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7400 | ac_status=$? |
|
|
7401 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7402 | rm -f conftest.er1 |
|
|
7403 | cat conftest.err >&5 |
|
|
7404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7405 | (exit $ac_status); } && { |
|
|
7406 | test -z "$ac_cxx_werror_flag" || |
|
|
7407 | test ! -s conftest.err |
|
|
7408 | } && test -s conftest.$ac_objext; then |
|
|
7409 | ac_cv_header_time=yes |
|
|
7410 | else |
|
|
7411 | echo "$as_me: failed program was:" >&5 |
|
|
7412 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7413 | |
|
|
7414 | ac_cv_header_time=no |
|
|
7415 | fi |
|
|
7416 | |
|
|
7417 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7418 | fi |
|
|
7419 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
|
|
7420 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
|
|
7421 | if test $ac_cv_header_time = yes; then |
|
|
7422 | |
|
|
7423 | cat >>confdefs.h <<\_ACEOF |
|
|
7424 | #define TIME_WITH_SYS_TIME 1 |
|
|
7425 | _ACEOF |
|
|
7426 | |
|
|
7427 | fi |
|
|
7428 | |
|
|
7429 | |
|
|
7430 | { echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5 |
|
|
7431 | echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; } |
|
|
7432 | if test "${rxvt_cv_header_sysioctl+set}" = set; then |
|
|
7433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7434 | else |
|
|
7435 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7436 | /* confdefs.h. */ |
|
|
7437 | _ACEOF |
|
|
7438 | cat confdefs.h >>conftest.$ac_ext |
|
|
7439 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7440 | /* end confdefs.h. */ |
|
|
7441 | #include <stdio.h> |
|
|
7442 | #include <sys/ioctl.h> |
|
|
7443 | #ifdef HAVE_TERMIOS_H |
|
|
7444 | #include <termios.h> |
|
|
7445 | #endif |
|
|
7446 | int |
|
|
7447 | main () |
|
|
7448 | { |
|
|
7449 | int a = ECHO; |
|
|
7450 | ; |
|
|
7451 | return 0; |
|
|
7452 | } |
|
|
7453 | _ACEOF |
|
|
7454 | rm -f conftest.$ac_objext |
|
|
7455 | if { (ac_try="$ac_compile" |
|
|
7456 | case "(($ac_try" in |
|
|
7457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7458 | *) ac_try_echo=$ac_try;; |
|
|
7459 | esac |
|
|
7460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7461 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7462 | ac_status=$? |
|
|
7463 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7464 | rm -f conftest.er1 |
|
|
7465 | cat conftest.err >&5 |
|
|
7466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7467 | (exit $ac_status); } && { |
|
|
7468 | test -z "$ac_cxx_werror_flag" || |
|
|
7469 | test ! -s conftest.err |
|
|
7470 | } && test -s conftest.$ac_objext; then |
|
|
7471 | rxvt_cv_header_sysioctl=yes |
|
|
7472 | else |
|
|
7473 | echo "$as_me: failed program was:" >&5 |
|
|
7474 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7475 | |
|
|
7476 | rxvt_cv_header_sysioctl=no |
|
|
7477 | fi |
|
|
7478 | |
|
|
7479 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7480 | fi |
|
|
7481 | { echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5 |
|
|
7482 | echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6; } |
|
|
7483 | |
|
|
7484 | { echo "$as_me:$LINENO: checking for XPointer" >&5 |
7763 | { echo "$as_me:$LINENO: checking for XPointer" >&5 |
7485 | echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } |
7764 | echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } |
7486 | if test "${rxvt_cv_xpointer+set}" = set; then |
7765 | if test "${rxvt_cv_xpointer+set}" = set; then |
7487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7766 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7488 | else |
7767 | else |
… | |
… | |
7599 | cat >>confdefs.h <<\_ACEOF |
7878 | cat >>confdefs.h <<\_ACEOF |
7600 | #define XLIB_ILLEGAL_ACCESS 1 |
7879 | #define XLIB_ILLEGAL_ACCESS 1 |
7601 | _ACEOF |
7880 | _ACEOF |
7602 | |
7881 | |
7603 | fi |
7882 | 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 | |
7883 | |
7782 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
7884 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
7783 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
7885 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
7784 | if test "${ac_cv_type_mode_t+set}" = set; then |
7886 | if test "${ac_cv_type_mode_t+set}" = set; then |
7785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
7942 | _ACEOF |
8044 | _ACEOF |
7943 | |
8045 | |
7944 | fi |
8046 | fi |
7945 | |
8047 | |
7946 | |
8048 | |
7947 | { echo "$as_me:$LINENO: checking for short" >&5 |
8049 | { echo "$as_me:$LINENO: checking for int16_t" >&5 |
7948 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
8050 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } |
7949 | if test "${ac_cv_type_short+set}" = set; then |
8051 | if test "${ac_cv_c_int16_t+set}" = set; then |
7950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7951 | else |
8053 | else |
|
|
8054 | ac_cv_c_int16_t=no |
|
|
8055 | for ac_type in 'int16_t' 'int' 'long int' \ |
|
|
8056 | 'long long int' 'short int' 'signed char'; do |
7952 | cat >conftest.$ac_ext <<_ACEOF |
8057 | cat >conftest.$ac_ext <<_ACEOF |
7953 | /* confdefs.h. */ |
8058 | /* confdefs.h. */ |
7954 | _ACEOF |
8059 | _ACEOF |
7955 | cat confdefs.h >>conftest.$ac_ext |
8060 | cat confdefs.h >>conftest.$ac_ext |
7956 | cat >>conftest.$ac_ext <<_ACEOF |
8061 | cat >>conftest.$ac_ext <<_ACEOF |
7957 | /* end confdefs.h. */ |
8062 | /* end confdefs.h. */ |
7958 | $ac_includes_default |
8063 | $ac_includes_default |
7959 | typedef short ac__type_new_; |
|
|
7960 | int |
8064 | int |
7961 | main () |
8065 | main () |
7962 | { |
8066 | { |
7963 | if ((ac__type_new_ *) 0) |
8067 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))]; |
7964 | return 0; |
8068 | test_array [0] = 0 |
7965 | if (sizeof (ac__type_new_)) |
8069 | |
7966 | return 0; |
|
|
7967 | ; |
8070 | ; |
7968 | return 0; |
8071 | return 0; |
7969 | } |
8072 | } |
7970 | _ACEOF |
8073 | _ACEOF |
7971 | rm -f conftest.$ac_objext |
8074 | rm -f conftest.$ac_objext |
… | |
… | |
7983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7984 | (exit $ac_status); } && { |
8087 | (exit $ac_status); } && { |
7985 | test -z "$ac_cxx_werror_flag" || |
8088 | test -z "$ac_cxx_werror_flag" || |
7986 | test ! -s conftest.err |
8089 | test ! -s conftest.err |
7987 | } && test -s conftest.$ac_objext; then |
8090 | } && 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 |
8091 | cat >conftest.$ac_ext <<_ACEOF |
8013 | /* confdefs.h. */ |
8092 | /* confdefs.h. */ |
8014 | _ACEOF |
8093 | _ACEOF |
8015 | cat confdefs.h >>conftest.$ac_ext |
8094 | cat confdefs.h >>conftest.$ac_ext |
8016 | cat >>conftest.$ac_ext <<_ACEOF |
8095 | cat >>conftest.$ac_ext <<_ACEOF |
8017 | /* end confdefs.h. */ |
8096 | /* end confdefs.h. */ |
8018 | $ac_includes_default |
8097 | $ac_includes_default |
8019 | typedef short ac__type_sizeof_; |
|
|
8020 | int |
8098 | int |
8021 | main () |
8099 | main () |
8022 | { |
8100 | { |
8023 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
8101 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1) |
|
|
8102 | < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))]; |
8024 | test_array [0] = 0 |
8103 | test_array [0] = 0 |
8025 | |
8104 | |
8026 | ; |
8105 | ; |
8027 | return 0; |
8106 | return 0; |
8028 | } |
8107 | } |
… | |
… | |
8042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8043 | (exit $ac_status); } && { |
8122 | (exit $ac_status); } && { |
8044 | test -z "$ac_cxx_werror_flag" || |
8123 | test -z "$ac_cxx_werror_flag" || |
8045 | test ! -s conftest.err |
8124 | test ! -s conftest.err |
8046 | } && test -s conftest.$ac_objext; then |
8125 | } && test -s conftest.$ac_objext; then |
8047 | ac_lo=0 ac_mid=0 |
8126 | : |
8048 | while :; do |
8127 | else |
|
|
8128 | echo "$as_me: failed program was:" >&5 |
|
|
8129 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8130 | |
|
|
8131 | case $ac_type in |
|
|
8132 | int16_t) ac_cv_c_int16_t=yes ;; |
|
|
8133 | *) ac_cv_c_int16_t=$ac_type ;; |
|
|
8134 | esac |
|
|
8135 | |
|
|
8136 | fi |
|
|
8137 | |
|
|
8138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8139 | else |
|
|
8140 | echo "$as_me: failed program was:" >&5 |
|
|
8141 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8142 | |
|
|
8143 | |
|
|
8144 | fi |
|
|
8145 | |
|
|
8146 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8147 | test "$ac_cv_c_int16_t" != no && break |
|
|
8148 | done |
|
|
8149 | fi |
|
|
8150 | { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5 |
|
|
8151 | echo "${ECHO_T}$ac_cv_c_int16_t" >&6; } |
|
|
8152 | case $ac_cv_c_int16_t in #( |
|
|
8153 | no|yes) ;; #( |
|
|
8154 | *) |
|
|
8155 | |
|
|
8156 | cat >>confdefs.h <<_ACEOF |
|
|
8157 | #define int16_t $ac_cv_c_int16_t |
|
|
8158 | _ACEOF |
|
|
8159 | ;; |
|
|
8160 | esac |
|
|
8161 | |
|
|
8162 | |
|
|
8163 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 |
|
|
8164 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } |
|
|
8165 | if test "${ac_cv_c_uint16_t+set}" = set; then |
|
|
8166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8167 | else |
|
|
8168 | ac_cv_c_uint16_t=no |
|
|
8169 | for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \ |
|
|
8170 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
8049 | cat >conftest.$ac_ext <<_ACEOF |
8171 | cat >conftest.$ac_ext <<_ACEOF |
8050 | /* confdefs.h. */ |
8172 | /* confdefs.h. */ |
8051 | _ACEOF |
8173 | _ACEOF |
8052 | cat confdefs.h >>conftest.$ac_ext |
8174 | cat confdefs.h >>conftest.$ac_ext |
8053 | cat >>conftest.$ac_ext <<_ACEOF |
8175 | cat >>conftest.$ac_ext <<_ACEOF |
8054 | /* end confdefs.h. */ |
8176 | /* end confdefs.h. */ |
8055 | $ac_includes_default |
8177 | $ac_includes_default |
8056 | typedef short ac__type_sizeof_; |
|
|
8057 | int |
8178 | int |
8058 | main () |
8179 | main () |
8059 | { |
8180 | { |
8060 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
8181 | static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)]; |
8061 | test_array [0] = 0 |
8182 | test_array [0] = 0 |
8062 | |
8183 | |
8063 | ; |
8184 | ; |
8064 | return 0; |
8185 | return 0; |
8065 | } |
8186 | } |
… | |
… | |
8079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8080 | (exit $ac_status); } && { |
8201 | (exit $ac_status); } && { |
8081 | test -z "$ac_cxx_werror_flag" || |
8202 | test -z "$ac_cxx_werror_flag" || |
8082 | test ! -s conftest.err |
8203 | test ! -s conftest.err |
8083 | } && test -s conftest.$ac_objext; then |
8204 | } && test -s conftest.$ac_objext; then |
8084 | ac_hi=$ac_mid; break |
8205 | case $ac_type in |
|
|
8206 | uint16_t) ac_cv_c_uint16_t=yes ;; |
|
|
8207 | *) ac_cv_c_uint16_t=$ac_type ;; |
|
|
8208 | esac |
|
|
8209 | |
8085 | else |
8210 | else |
8086 | echo "$as_me: failed program was:" >&5 |
8211 | echo "$as_me: failed program was:" >&5 |
8087 | sed 's/^/| /' conftest.$ac_ext >&5 |
8212 | sed 's/^/| /' conftest.$ac_ext >&5 |
8088 | |
8213 | |
8089 | ac_lo=`expr $ac_mid + 1` |
8214 | |
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 |
8215 | fi |
8096 | |
8216 | |
8097 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8217 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8218 | test "$ac_cv_c_uint16_t" != no && break |
8098 | done |
8219 | done |
8099 | else |
8220 | fi |
8100 | echo "$as_me: failed program was:" >&5 |
8221 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5 |
8101 | sed 's/^/| /' conftest.$ac_ext >&5 |
8222 | echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; } |
|
|
8223 | case $ac_cv_c_uint16_t in #( |
|
|
8224 | no|yes) ;; #( |
|
|
8225 | *) |
8102 | |
8226 | |
|
|
8227 | |
|
|
8228 | cat >>confdefs.h <<_ACEOF |
|
|
8229 | #define uint16_t $ac_cv_c_uint16_t |
|
|
8230 | _ACEOF |
|
|
8231 | ;; |
|
|
8232 | esac |
|
|
8233 | |
|
|
8234 | |
|
|
8235 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
|
|
8236 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
|
|
8237 | if test "${ac_cv_c_int32_t+set}" = set; then |
|
|
8238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8239 | else |
|
|
8240 | ac_cv_c_int32_t=no |
|
|
8241 | for ac_type in 'int32_t' 'int' 'long int' \ |
|
|
8242 | 'long long int' 'short int' 'signed char'; do |
8103 | cat >conftest.$ac_ext <<_ACEOF |
8243 | cat >conftest.$ac_ext <<_ACEOF |
8104 | /* confdefs.h. */ |
8244 | /* confdefs.h. */ |
8105 | _ACEOF |
8245 | _ACEOF |
8106 | cat confdefs.h >>conftest.$ac_ext |
8246 | cat confdefs.h >>conftest.$ac_ext |
8107 | cat >>conftest.$ac_ext <<_ACEOF |
8247 | cat >>conftest.$ac_ext <<_ACEOF |
8108 | /* end confdefs.h. */ |
8248 | /* end confdefs.h. */ |
8109 | $ac_includes_default |
8249 | $ac_includes_default |
8110 | typedef short ac__type_sizeof_; |
|
|
8111 | int |
8250 | int |
8112 | main () |
8251 | main () |
8113 | { |
8252 | { |
8114 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
8253 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))]; |
8115 | test_array [0] = 0 |
8254 | test_array [0] = 0 |
8116 | |
8255 | |
8117 | ; |
8256 | ; |
8118 | return 0; |
8257 | return 0; |
8119 | } |
8258 | } |
… | |
… | |
8133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8134 | (exit $ac_status); } && { |
8273 | (exit $ac_status); } && { |
8135 | test -z "$ac_cxx_werror_flag" || |
8274 | test -z "$ac_cxx_werror_flag" || |
8136 | test ! -s conftest.err |
8275 | test ! -s conftest.err |
8137 | } && test -s conftest.$ac_objext; then |
8276 | } && test -s conftest.$ac_objext; then |
8138 | ac_hi=-1 ac_mid=-1 |
|
|
8139 | while :; do |
|
|
8140 | cat >conftest.$ac_ext <<_ACEOF |
8277 | cat >conftest.$ac_ext <<_ACEOF |
8141 | /* confdefs.h. */ |
8278 | /* confdefs.h. */ |
8142 | _ACEOF |
8279 | _ACEOF |
8143 | cat confdefs.h >>conftest.$ac_ext |
8280 | cat confdefs.h >>conftest.$ac_ext |
8144 | cat >>conftest.$ac_ext <<_ACEOF |
8281 | cat >>conftest.$ac_ext <<_ACEOF |
8145 | /* end confdefs.h. */ |
8282 | /* end confdefs.h. */ |
8146 | $ac_includes_default |
8283 | $ac_includes_default |
8147 | typedef short ac__type_sizeof_; |
|
|
8148 | int |
8284 | int |
8149 | main () |
8285 | main () |
8150 | { |
8286 | { |
8151 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
8287 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1) |
|
|
8288 | < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))]; |
8152 | test_array [0] = 0 |
8289 | test_array [0] = 0 |
8153 | |
8290 | |
8154 | ; |
8291 | ; |
8155 | return 0; |
8292 | return 0; |
8156 | } |
8293 | } |
… | |
… | |
8170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8171 | (exit $ac_status); } && { |
8308 | (exit $ac_status); } && { |
8172 | test -z "$ac_cxx_werror_flag" || |
8309 | test -z "$ac_cxx_werror_flag" || |
8173 | test ! -s conftest.err |
8310 | test ! -s conftest.err |
8174 | } && test -s conftest.$ac_objext; then |
8311 | } && test -s conftest.$ac_objext; then |
8175 | ac_lo=$ac_mid; break |
8312 | : |
8176 | else |
8313 | else |
8177 | echo "$as_me: failed program was:" >&5 |
8314 | echo "$as_me: failed program was:" >&5 |
8178 | sed 's/^/| /' conftest.$ac_ext >&5 |
8315 | sed 's/^/| /' conftest.$ac_ext >&5 |
8179 | |
8316 | |
8180 | ac_hi=`expr '(' $ac_mid ')' - 1` |
8317 | case $ac_type in |
8181 | if test $ac_mid -le $ac_hi; then |
8318 | int32_t) ac_cv_c_int32_t=yes ;; |
8182 | ac_lo= ac_hi= |
8319 | *) ac_cv_c_int32_t=$ac_type ;; |
8183 | break |
8320 | esac |
8184 | fi |
8321 | |
8185 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
8186 | fi |
8322 | fi |
8187 | |
8323 | |
8188 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8324 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8189 | done |
|
|
8190 | else |
8325 | else |
8191 | echo "$as_me: failed program was:" >&5 |
8326 | echo "$as_me: failed program was:" >&5 |
8192 | sed 's/^/| /' conftest.$ac_ext >&5 |
8327 | sed 's/^/| /' conftest.$ac_ext >&5 |
8193 | |
8328 | |
8194 | ac_lo= ac_hi= |
8329 | |
8195 | fi |
8330 | fi |
8196 | |
8331 | |
8197 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8333 | test "$ac_cv_c_int32_t" != no && break |
|
|
8334 | done |
8198 | fi |
8335 | fi |
|
|
8336 | { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5 |
|
|
8337 | echo "${ECHO_T}$ac_cv_c_int32_t" >&6; } |
|
|
8338 | case $ac_cv_c_int32_t in #( |
|
|
8339 | no|yes) ;; #( |
|
|
8340 | *) |
8199 | |
8341 | |
8200 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8342 | cat >>confdefs.h <<_ACEOF |
8201 | # Binary search between lo and hi bounds. |
8343 | #define int32_t $ac_cv_c_int32_t |
8202 | while test "x$ac_lo" != "x$ac_hi"; do |
8344 | _ACEOF |
8203 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
8345 | ;; |
|
|
8346 | esac |
|
|
8347 | |
|
|
8348 | |
|
|
8349 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
|
|
8350 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
|
|
8351 | if test "${ac_cv_c_uint32_t+set}" = set; then |
|
|
8352 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8353 | else |
|
|
8354 | ac_cv_c_uint32_t=no |
|
|
8355 | for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ |
|
|
8356 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
8204 | cat >conftest.$ac_ext <<_ACEOF |
8357 | cat >conftest.$ac_ext <<_ACEOF |
8205 | /* confdefs.h. */ |
8358 | /* confdefs.h. */ |
8206 | _ACEOF |
8359 | _ACEOF |
8207 | cat confdefs.h >>conftest.$ac_ext |
8360 | cat confdefs.h >>conftest.$ac_ext |
8208 | cat >>conftest.$ac_ext <<_ACEOF |
8361 | cat >>conftest.$ac_ext <<_ACEOF |
8209 | /* end confdefs.h. */ |
8362 | /* end confdefs.h. */ |
8210 | $ac_includes_default |
8363 | $ac_includes_default |
8211 | typedef short ac__type_sizeof_; |
|
|
8212 | int |
8364 | int |
8213 | main () |
8365 | main () |
8214 | { |
8366 | { |
8215 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
8367 | static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; |
8216 | test_array [0] = 0 |
8368 | test_array [0] = 0 |
8217 | |
8369 | |
8218 | ; |
8370 | ; |
8219 | return 0; |
8371 | return 0; |
8220 | } |
8372 | } |
… | |
… | |
8234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8235 | (exit $ac_status); } && { |
8387 | (exit $ac_status); } && { |
8236 | test -z "$ac_cxx_werror_flag" || |
8388 | test -z "$ac_cxx_werror_flag" || |
8237 | test ! -s conftest.err |
8389 | test ! -s conftest.err |
8238 | } && test -s conftest.$ac_objext; then |
8390 | } && test -s conftest.$ac_objext; then |
8239 | ac_hi=$ac_mid |
8391 | case $ac_type in |
|
|
8392 | uint32_t) ac_cv_c_uint32_t=yes ;; |
|
|
8393 | *) ac_cv_c_uint32_t=$ac_type ;; |
|
|
8394 | esac |
|
|
8395 | |
8240 | else |
8396 | else |
8241 | echo "$as_me: failed program was:" >&5 |
8397 | echo "$as_me: failed program was:" >&5 |
8242 | sed 's/^/| /' conftest.$ac_ext >&5 |
8398 | sed 's/^/| /' conftest.$ac_ext >&5 |
8243 | |
8399 | |
8244 | ac_lo=`expr '(' $ac_mid ')' + 1` |
8400 | |
8245 | fi |
8401 | fi |
8246 | |
8402 | |
8247 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8403 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8248 | done |
8404 | test "$ac_cv_c_uint32_t" != no && break |
8249 | case $ac_lo in |
8405 | 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 |
8406 | 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 |
8407 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 |
8343 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
8408 | echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; } |
|
|
8409 | case $ac_cv_c_uint32_t in #( |
|
|
8410 | no|yes) ;; #( |
|
|
8411 | *) |
8344 | |
8412 | |
|
|
8413 | cat >>confdefs.h <<\_ACEOF |
|
|
8414 | #define _UINT32_T 1 |
|
|
8415 | _ACEOF |
8345 | |
8416 | |
8346 | |
8417 | |
8347 | cat >>confdefs.h <<_ACEOF |
8418 | cat >>confdefs.h <<_ACEOF |
8348 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
8419 | #define uint32_t $ac_cv_c_uint32_t |
8349 | _ACEOF |
8420 | _ACEOF |
8350 | |
8421 | ;; |
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 |
8422 | 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 | |
8423 | |
8398 | ac_cv_type_int=no |
|
|
8399 | fi |
|
|
8400 | |
8424 | |
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 | |
8425 | |
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 \ |
8426 | for ac_func in unsetenv |
9967 | unsetenv \ |
|
|
9968 | setutent \ |
|
|
9969 | on_exit \ |
|
|
9970 | |
|
|
9971 | do |
8427 | do |
9972 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8428 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9973 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8429 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9974 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
8430 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
9975 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
8431 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
… | |
… | |
10114 | |
8570 | |
10115 | |
8571 | |
10116 | |
8572 | |
10117 | |
8573 | |
10118 | for ac_func in \ |
8574 | for ac_func in \ |
10119 | ttyslot \ |
|
|
10120 | updwtmp \ |
8575 | updwtmp \ |
10121 | updwtmpx \ |
8576 | updwtmpx \ |
|
|
8577 | updlastlogx \ |
10122 | |
8578 | |
10123 | do |
8579 | do |
10124 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8580 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10125 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8581 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10126 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
8582 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
… | |
… | |
11547 | |
10003 | |
11548 | cat >>confdefs.h <<_ACEOF |
10004 | cat >>confdefs.h <<_ACEOF |
11549 | #define LASTLOG_FILE "$path_lastlog" |
10005 | #define LASTLOG_FILE "$path_lastlog" |
11550 | _ACEOF |
10006 | _ACEOF |
11551 | |
10007 | |
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 |
10008 | fi |
11560 | |
10009 | |
11561 | { echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
10010 | { echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
11562 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } |
10011 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } |
11563 | if test "${path_lastlogx+set}" = set; then |
10012 | if test "${path_lastlogx+set}" = set; then |
… | |
… | |
11645 | |
10094 | |
11646 | fi |
10095 | fi |
11647 | |
10096 | |
11648 | |
10097 | |
11649 | |
10098 | |
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 | |
10099 | |
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 |
10100 | save_LIBS=$LIBS |
11676 | ac_save_CFLAGS=$CFLAGS |
10101 | save_CFLAGS=$CFLAGS |
11677 | CFLAGS="$CFLAGS $X_CFLAGS" |
10102 | CFLAGS="$CFLAGS $X_CFLAGS" |
11678 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
10103 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
|
|
10104 | if test x$support_xim = xyes; then |
11679 | { echo "$as_me:$LINENO: checking for working Xlocale" >&5 |
10105 | { echo "$as_me:$LINENO: checking for working Xlocale" >&5 |
11680 | echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } |
10106 | echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } |
11681 | if test "${rxvt_cv_func_xlocale+set}" = set; then |
10107 | if test "${rxvt_cv_func_xlocale+set}" = set; then |
11682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11683 | else |
10109 | else |
11684 | if test "$cross_compiling" = yes; then |
10110 | if test "$cross_compiling" = yes; then |
11685 | : |
10111 | : |
11686 | else |
10112 | else |
11687 | cat >conftest.$ac_ext <<_ACEOF |
10113 | cat >conftest.$ac_ext <<_ACEOF |
11688 | /* confdefs.h. */ |
10114 | /* confdefs.h. */ |
11689 | _ACEOF |
10115 | _ACEOF |
11690 | cat confdefs.h >>conftest.$ac_ext |
10116 | cat confdefs.h >>conftest.$ac_ext |
11691 | cat >>conftest.$ac_ext <<_ACEOF |
10117 | cat >>conftest.$ac_ext <<_ACEOF |
11692 | /* end confdefs.h. */ |
10118 | /* end confdefs.h. */ |
11693 | #include <X11/Xlib.h> |
10119 | #include <X11/Xlib.h> |
11694 | #include <stdlib.h> |
10120 | #include <stdlib.h> |
11695 | main() { |
10121 | main() { |
11696 | char *p; |
10122 | char *p; |
11697 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
10123 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
11698 | exit (XSupportsLocale() ? 0 : 1); |
10124 | exit (XSupportsLocale() ? 0 : 1); |
11699 | else |
10125 | else |
11700 | exit (1);} |
10126 | exit (1);} |
11701 | _ACEOF |
10127 | _ACEOF |
11702 | rm -f conftest$ac_exeext |
10128 | rm -f conftest$ac_exeext |
11703 | if { (ac_try="$ac_link" |
10129 | if { (ac_try="$ac_link" |
11704 | case "(($ac_try" in |
10130 | case "(($ac_try" in |
11705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
… | |
… | |
11717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11718 | (eval "$ac_try") 2>&5 |
10144 | (eval "$ac_try") 2>&5 |
11719 | ac_status=$? |
10145 | ac_status=$? |
11720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11721 | (exit $ac_status); }; }; then |
10147 | (exit $ac_status); }; }; then |
11722 | rxvt_cv_func_xlocale=yes |
10148 | rxvt_cv_func_xlocale=yes |
11723 | else |
10149 | else |
11724 | echo "$as_me: program exited with status $ac_status" >&5 |
10150 | echo "$as_me: program exited with status $ac_status" >&5 |
11725 | echo "$as_me: failed program was:" >&5 |
10151 | echo "$as_me: failed program was:" >&5 |
11726 | sed 's/^/| /' conftest.$ac_ext >&5 |
10152 | sed 's/^/| /' conftest.$ac_ext >&5 |
11727 | |
10153 | |
… | |
… | |
11733 | |
10159 | |
11734 | |
10160 | |
11735 | fi |
10161 | fi |
11736 | { echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 |
10162 | { echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 |
11737 | echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; } |
10163 | 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 |
10164 | if test x$rxvt_cv_func_xlocale = xyes; then |
11740 | |
10165 | |
11741 | cat >>confdefs.h <<\_ACEOF |
10166 | cat >>confdefs.h <<\_ACEOF |
11742 | #define USE_XIM 1 |
10167 | #define USE_XIM 1 |
11743 | _ACEOF |
10168 | _ACEOF |
11744 | |
10169 | |
|
|
10170 | { echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
|
|
10171 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; } |
|
|
10172 | if test "${rxvt_broken_ximcb+set}" = set; then |
|
|
10173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10174 | else |
|
|
10175 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10176 | |
|
|
10177 | #include <X11/Xlib.h> |
|
|
10178 | |
|
|
10179 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
|
|
10180 | |
|
|
10181 | void f() { |
|
|
10182 | XIMCallback cb; |
|
|
10183 | cb.callback = im_destroy_cb; |
|
|
10184 | } |
|
|
10185 | |
|
|
10186 | _ACEOF |
|
|
10187 | rm -f conftest.$ac_objext |
|
|
10188 | if { (ac_try="$ac_compile" |
|
|
10189 | case "(($ac_try" in |
|
|
10190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10191 | *) ac_try_echo=$ac_try;; |
|
|
10192 | esac |
|
|
10193 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10194 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10195 | ac_status=$? |
|
|
10196 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10197 | rm -f conftest.er1 |
|
|
10198 | cat conftest.err >&5 |
|
|
10199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10200 | (exit $ac_status); } && { |
|
|
10201 | test -z "$ac_cxx_werror_flag" || |
|
|
10202 | test ! -s conftest.err |
|
|
10203 | } && test -s conftest.$ac_objext; then |
|
|
10204 | rxvt_broken_ximcb=yes |
|
|
10205 | else |
|
|
10206 | echo "$as_me: failed program was:" >&5 |
|
|
10207 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10208 | |
|
|
10209 | rxvt_broken_ximcb=no |
|
|
10210 | fi |
|
|
10211 | |
|
|
10212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10213 | fi |
|
|
10214 | { echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5 |
|
|
10215 | echo "${ECHO_T}$rxvt_broken_ximcb" >&6; } |
|
|
10216 | |
|
|
10217 | if test x$rxvt_broken_ximcb = xyes; then |
|
|
10218 | |
|
|
10219 | cat >>confdefs.h <<\_ACEOF |
|
|
10220 | #define XIMCB_PROTO_BROKEN 1 |
|
|
10221 | _ACEOF |
|
|
10222 | |
|
|
10223 | fi |
11745 | fi |
10224 | fi |
11746 | fi |
10225 | fi |
11747 | |
10226 | |
11748 | { echo "$as_me:$LINENO: checking for working X setlocale" >&5 |
10227 | { echo "$as_me:$LINENO: checking for working X setlocale" >&5 |
11749 | echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; } |
10228 | echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; } |
… | |
… | |
11802 | cat >>confdefs.h <<\_ACEOF |
10281 | cat >>confdefs.h <<\_ACEOF |
11803 | #define HAVE_XSETLOCALE 1 |
10282 | #define HAVE_XSETLOCALE 1 |
11804 | _ACEOF |
10283 | _ACEOF |
11805 | |
10284 | |
11806 | fi |
10285 | fi |
11807 | LIBS=$ac_save_LIBS |
10286 | LIBS=$save_LIBS |
11808 | CFLAGS=$ac_save_CFLAGS |
10287 | CFLAGS=$save_CFLAGS |
11809 | |
10288 | |
11810 | { echo "$as_me:$LINENO: checking for working plain setlocale" >&5 |
10289 | { echo "$as_me:$LINENO: checking for working plain setlocale" >&5 |
11811 | echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } |
10290 | echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } |
11812 | if test "${rxvt_cv_func_setlocale+set}" = set; then |
10291 | if test "${rxvt_cv_func_setlocale+set}" = set; then |
11813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
12016 | { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5 |
10495 | { { 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;} |
10496 | echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} |
12018 | { (exit 1); exit 1; }; } |
10497 | { (exit 1); exit 1; }; } |
12019 | fi |
10498 | fi |
12020 | |
10499 | |
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 | |
10500 | |
12077 | |
10501 | |
12078 | |
10502 | |
12079 | |
10503 | |
12080 | |
10504 | |
… | |
… | |
12761 | echo "${ECHO_T}no" >&6; } |
11185 | echo "${ECHO_T}no" >&6; } |
12762 | fi |
11186 | fi |
12763 | |
11187 | |
12764 | |
11188 | |
12765 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
11189 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
12766 | LIBS="$LIBS `$PKG_CONFIG xft --libs`" |
11190 | X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS" |
12767 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
11191 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
12768 | else |
11192 | else |
12769 | # Extract the first word of "xft-config", so it can be a program name with args. |
11193 | # Extract the first word of "xft-config", so it can be a program name with args. |
12770 | set dummy xft-config; ac_word=$2 |
11194 | set dummy xft-config; ac_word=$2 |
12771 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11195 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
… | |
… | |
12806 | echo "${ECHO_T}no" >&6; } |
11230 | echo "${ECHO_T}no" >&6; } |
12807 | fi |
11231 | fi |
12808 | |
11232 | |
12809 | |
11233 | |
12810 | if test $XFT_CONFIG != no; then |
11234 | if test $XFT_CONFIG != no; then |
12811 | LIBS="$LIBS `$XFT_CONFIG --libs`" |
11235 | X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" |
12812 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
11236 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
12813 | fi |
11237 | fi |
12814 | fi |
11238 | fi |
12815 | |
11239 | |
|
|
11240 | save_LIBS="$LIBS" |
|
|
11241 | LIBS="$LIBS $X_LIBS" |
12816 | |
11242 | |
12817 | for ac_header in X11/Xft/Xft.h |
11243 | for ac_header in X11/Xft/Xft.h |
12818 | do |
11244 | do |
12819 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11245 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12820 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11246 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
… | |
… | |
12953 | support_xft=no |
11379 | support_xft=no |
12954 | fi |
11380 | fi |
12955 | |
11381 | |
12956 | done |
11382 | done |
12957 | |
11383 | |
12958 | |
|
|
12959 | { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
11384 | { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
12960 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
11385 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
12961 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
11386 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
12962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12963 | else |
11388 | else |
12964 | ac_check_lib_save_LIBS=$LIBS |
11389 | ac_check_lib_save_LIBS=$LIBS |
… | |
… | |
13016 | LIBS=$ac_check_lib_save_LIBS |
11441 | LIBS=$ac_check_lib_save_LIBS |
13017 | fi |
11442 | fi |
13018 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
11443 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
13019 | echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } |
11444 | echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } |
13020 | if test $ac_cv_lib_Xft_XftDrawString32 = yes; then |
11445 | if test $ac_cv_lib_Xft_XftDrawString32 = yes; then |
13021 | cat >>confdefs.h <<_ACEOF |
11446 | : |
13022 | #define HAVE_LIBXFT 1 |
|
|
13023 | _ACEOF |
|
|
13024 | |
|
|
13025 | LIBS="-lXft $LIBS" |
|
|
13026 | |
|
|
13027 | else |
11447 | else |
13028 | support_xft=no |
11448 | support_xft=no |
13029 | fi |
11449 | fi |
13030 | |
11450 | |
|
|
11451 | LIBS="$save_LIBS" |
13031 | |
11452 | |
13032 | if test x$support_xft = xyes; then |
11453 | if test x$support_xft = xyes; then |
13033 | |
11454 | |
13034 | cat >>confdefs.h <<\_ACEOF |
11455 | cat >>confdefs.h <<\_ACEOF |
13035 | #define XFT 1 |
11456 | #define XFT 1 |
… | |
… | |
13063 | cat >>confdefs.h <<\_ACEOF |
11484 | cat >>confdefs.h <<\_ACEOF |
13064 | #define OFF_FOCUS_FADING 1 |
11485 | #define OFF_FOCUS_FADING 1 |
13065 | _ACEOF |
11486 | _ACEOF |
13066 | |
11487 | |
13067 | fi |
11488 | 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 |
11489 | if test x$support_inheritpixmap = xyes; then |
13076 | |
11490 | |
13077 | cat >>confdefs.h <<\_ACEOF |
11491 | cat >>confdefs.h <<\_ACEOF |
13078 | #define ENABLE_TRANSPARENCY 1 |
11492 | #define ENABLE_TRANSPARENCY 1 |
13079 | _ACEOF |
11493 | _ACEOF |
… | |
… | |
13091 | cat >>confdefs.h <<\_ACEOF |
11505 | cat >>confdefs.h <<\_ACEOF |
13092 | #define SELECTION_SCROLLING 1 |
11506 | #define SELECTION_SCROLLING 1 |
13093 | _ACEOF |
11507 | _ACEOF |
13094 | |
11508 | |
13095 | fi |
11509 | fi |
|
|
11510 | if test x$support_frills = xyes; then |
|
|
11511 | |
|
|
11512 | cat >>confdefs.h <<\_ACEOF |
|
|
11513 | #define ENABLE_FRILLS 1 |
|
|
11514 | _ACEOF |
|
|
11515 | |
|
|
11516 | fi |
13096 | if test x$support_mousewheel = xyes; then |
11517 | if test x$support_mousewheel = xyes; then |
13097 | |
11518 | |
13098 | cat >>confdefs.h <<\_ACEOF |
11519 | cat >>confdefs.h <<\_ACEOF |
13099 | #define MOUSE_WHEEL 1 |
11520 | #define MOUSE_WHEEL 1 |
13100 | _ACEOF |
11521 | _ACEOF |
… | |
… | |
13105 | cat >>confdefs.h <<\_ACEOF |
11526 | cat >>confdefs.h <<\_ACEOF |
13106 | #define MOUSE_SLIP_WHEELING 1 |
11527 | #define MOUSE_SLIP_WHEELING 1 |
13107 | _ACEOF |
11528 | _ACEOF |
13108 | |
11529 | |
13109 | fi |
11530 | 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 |
11531 | if test x$support_afterimage = xyes; then |
13119 | |
11532 | |
13120 | cat >>confdefs.h <<\_ACEOF |
11533 | cat >>confdefs.h <<\_ACEOF |
13121 | #define HAVE_AFTERIMAGE 1 |
11534 | #define HAVE_AFTERIMAGE 1 |
|
|
11535 | _ACEOF |
|
|
11536 | |
|
|
11537 | |
|
|
11538 | cat >>confdefs.h <<\_ACEOF |
|
|
11539 | #define BG_IMAGE_FROM_FILE 1 |
13122 | _ACEOF |
11540 | _ACEOF |
13123 | |
11541 | |
13124 | fi |
11542 | fi |
13125 | |
11543 | |
13126 | |
11544 | |
… | |
… | |
13399 | |
11817 | |
13400 | |
11818 | |
13401 | |
11819 | |
13402 | |
11820 | |
13403 | |
11821 | |
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 | |
11822 | |
13417 | |
11823 | |
13418 | |
11824 | |
13419 | |
11825 | |
13420 | |
11826 | |
… | |
… | |
13437 | _ACEOF |
11843 | _ACEOF |
13438 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
11844 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
13439 | rm -f conftest.sed |
11845 | rm -f conftest.sed |
13440 | |
11846 | |
13441 | |
11847 | |
13442 | |
|
|
13443 | |
|
|
13444 | |
|
|
13445 | if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13446 | include_stdint_h="#include <stdint.h>" |
|
|
13447 | else |
|
|
13448 | include_stdint_h="/* #include <stdint.h> */" |
|
|
13449 | fi |
|
|
13450 | if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13451 | include_stdarg_h="#include <cstdarg>" |
|
|
13452 | else |
|
|
13453 | include_stdarg_h="/* #include <cstdarg> */" |
|
|
13454 | fi |
|
|
13455 | if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13456 | include_stdlib_h="#include <cstdlib>" |
|
|
13457 | else |
|
|
13458 | include_stdlib_h="/* #include <cstdlib> */" |
|
|
13459 | fi |
|
|
13460 | if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13461 | include_unistd_h="#include <unistd.h>" |
|
|
13462 | else |
|
|
13463 | include_unistd_h="/* #include <unistd.h> */" |
|
|
13464 | fi |
|
|
13465 | if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13466 | include_string_h="#include <cstring>" |
|
|
13467 | else |
|
|
13468 | include_string_h="/* #include <cstring> */" |
|
|
13469 | fi |
|
|
13470 | if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13471 | include_fcntl_h="#include <fcntl.h>" |
|
|
13472 | else |
|
|
13473 | include_fcntl_h="/* #include <fcntl.h> */" |
|
|
13474 | fi |
|
|
13475 | if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13476 | include_util_h="#include <util.h>" |
|
|
13477 | else |
|
|
13478 | include_util_h="/* #include <util.h> */" |
|
|
13479 | fi |
|
|
13480 | if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13481 | include_assert_h="#include <assert.h>" |
|
|
13482 | else |
|
|
13483 | include_assert_h="/* #include <assert.h> */" |
|
|
13484 | fi |
|
|
13485 | if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13486 | include_sys_ioctl_h="#include <sys/ioctl.h>" |
|
|
13487 | else |
|
|
13488 | include_sys_ioctl_h="/* #include <sys/ioctl.h> */" |
|
|
13489 | fi |
|
|
13490 | if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13491 | include_sys_select_h="#include <sys/select.h>" |
|
|
13492 | else |
|
|
13493 | include_sys_select_h="/* #include <sys/select.h> */" |
|
|
13494 | fi |
|
|
13495 | if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13496 | include_sys_strredir_h="#include <sys/strredir.h>" |
|
|
13497 | else |
|
|
13498 | include_sys_strredir_h="/* #include <sys/strredir.h> */" |
|
|
13499 | fi |
|
|
13500 | if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13501 | include_sys_time_h="#include <sys/time.h>" |
|
|
13502 | else |
|
|
13503 | include_sys_time_h="/* #include <sys/time.h> */" |
|
|
13504 | fi |
|
|
13505 | if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then |
|
|
13506 | include_time_h="#include <time.h>" |
|
|
13507 | else |
|
|
13508 | include_time_h="/* #include <time.h> */" |
|
|
13509 | fi |
|
|
13510 | |
|
|
13511 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" |
11848 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile" |
13512 | |
11849 | |
13513 | cat >confcache <<\_ACEOF |
11850 | cat >confcache <<\_ACEOF |
13514 | # This file is a shell script that caches the results of configure |
11851 | # This file is a shell script that caches the results of configure |
13515 | # tests run on this system so they can be shared between configure |
11852 | # tests run on this system so they can be shared between configure |
13516 | # scripts and configure runs, see configure's option --config-cache. |
11853 | # scripts and configure runs, see configure's option --config-cache. |
… | |
… | |
14065 | case $ac_config_target in |
12402 | case $ac_config_target in |
14066 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; |
12403 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; |
14067 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
12404 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
14068 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
12405 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
14069 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
12406 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
14070 | "src/rxvtlib.h") CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; |
|
|
14071 | |
12407 | |
14072 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
12408 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
14073 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
12409 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
14074 | { (exit 1); exit 1; }; };; |
12410 | { (exit 1); exit 1; }; };; |
14075 | esac |
12411 | esac |
… | |
… | |
14174 | host_cpu!$host_cpu$ac_delim |
12510 | host_cpu!$host_cpu$ac_delim |
14175 | host_vendor!$host_vendor$ac_delim |
12511 | host_vendor!$host_vendor$ac_delim |
14176 | host_os!$host_os$ac_delim |
12512 | host_os!$host_os$ac_delim |
14177 | VERSION!$VERSION$ac_delim |
12513 | VERSION!$VERSION$ac_delim |
14178 | DATE!$DATE$ac_delim |
12514 | DATE!$DATE$ac_delim |
14179 | LSMDATE!$LSMDATE$ac_delim |
|
|
14180 | LIBVERSION!$LIBVERSION$ac_delim |
|
|
14181 | CC!$CC$ac_delim |
12515 | CC!$CC$ac_delim |
14182 | CFLAGS!$CFLAGS$ac_delim |
12516 | CFLAGS!$CFLAGS$ac_delim |
14183 | LDFLAGS!$LDFLAGS$ac_delim |
12517 | LDFLAGS!$LDFLAGS$ac_delim |
14184 | CPPFLAGS!$CPPFLAGS$ac_delim |
12518 | CPPFLAGS!$CPPFLAGS$ac_delim |
14185 | ac_ct_CC!$ac_ct_CC$ac_delim |
12519 | ac_ct_CC!$ac_ct_CC$ac_delim |
… | |
… | |
14193 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
12527 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
14194 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
12528 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
14195 | GREP!$GREP$ac_delim |
12529 | GREP!$GREP$ac_delim |
14196 | EGREP!$EGREP$ac_delim |
12530 | EGREP!$EGREP$ac_delim |
14197 | LINKER!$LINKER$ac_delim |
12531 | LINKER!$LINKER$ac_delim |
14198 | INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim |
|
|
14199 | RXVTNAME!$RXVTNAME$ac_delim |
12532 | RXVTNAME!$RXVTNAME$ac_delim |
|
|
12533 | CXXCPP!$CXXCPP$ac_delim |
14200 | TIC!$TIC$ac_delim |
12534 | TIC!$TIC$ac_delim |
14201 | XMKMF!$XMKMF$ac_delim |
12535 | XMKMF!$XMKMF$ac_delim |
14202 | CXXCPP!$CXXCPP$ac_delim |
|
|
14203 | X_CFLAGS!$X_CFLAGS$ac_delim |
12536 | X_CFLAGS!$X_CFLAGS$ac_delim |
14204 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
12537 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
14205 | X_LIBS!$X_LIBS$ac_delim |
12538 | X_LIBS!$X_LIBS$ac_delim |
14206 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
12539 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
14207 | afterimage_config!$afterimage_config$ac_delim |
12540 | 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 |
12541 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
14218 | XFT_CONFIG!$XFT_CONFIG$ac_delim |
12542 | XFT_CONFIG!$XFT_CONFIG$ac_delim |
14219 | PERL!$PERL$ac_delim |
12543 | PERL!$PERL$ac_delim |
14220 | PERLLIB!$PERLLIB$ac_delim |
12544 | PERLLIB!$PERLLIB$ac_delim |
14221 | PERLFLAGS!$PERLFLAGS$ac_delim |
12545 | PERLFLAGS!$PERLFLAGS$ac_delim |
14222 | PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim |
12546 | PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim |
14223 | IF_PERL!$IF_PERL$ac_delim |
12547 | IF_PERL!$IF_PERL$ac_delim |
14224 | PERL_O!$PERL_O$ac_delim |
12548 | PERL_O!$PERL_O$ac_delim |
14225 | AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim |
12549 | AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim |
14226 | AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim |
12550 | AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim |
14227 | include_stdint_h!$include_stdint_h$ac_delim |
12551 | LIBOBJS!$LIBOBJS$ac_delim |
14228 | include_stdarg_h!$include_stdarg_h$ac_delim |
12552 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
14229 | _ACEOF |
12553 | _ACEOF |
14230 | |
12554 | |
14231 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
12555 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 85; then |
14232 | break |
12556 | break |
14233 | elif $ac_last_try; then |
12557 | elif $ac_last_try; then |
14234 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
12558 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
14235 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
12559 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
14236 | { (exit 1); exit 1; }; } |
12560 | { (exit 1); exit 1; }; } |
… | |
… | |
14245 | ac_eof=`expr $ac_eof + 1` |
12569 | ac_eof=`expr $ac_eof + 1` |
14246 | fi |
12570 | fi |
14247 | |
12571 | |
14248 | cat >>$CONFIG_STATUS <<_ACEOF |
12572 | cat >>$CONFIG_STATUS <<_ACEOF |
14249 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
12573 | 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 |
12574 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
14305 | _ACEOF |
12575 | _ACEOF |
14306 | sed ' |
12576 | sed ' |
14307 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
12577 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
14308 | s/^/s,@/; s/!/@,|#_!!_#|/ |
12578 | s/^/s,@/; s/!/@,|#_!!_#|/ |
… | |
… | |
14561 | s&@builddir@&$ac_builddir&;t t |
12831 | s&@builddir@&$ac_builddir&;t t |
14562 | s&@abs_builddir@&$ac_abs_builddir&;t t |
12832 | s&@abs_builddir@&$ac_abs_builddir&;t t |
14563 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
12833 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
14564 | s&@INSTALL@&$ac_INSTALL&;t t |
12834 | s&@INSTALL@&$ac_INSTALL&;t t |
14565 | $ac_datarootdir_hack |
12835 | $ac_datarootdir_hack |
14566 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
12836 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out |
14567 | |
12837 | |
14568 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
12838 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
14569 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
12839 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
14570 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
12840 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
14571 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
12841 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
… | |
… | |
14719 | Install path: ${prefix}/bin |
12989 | Install path: ${prefix}/bin |
14720 | Compiler: $CXX |
12990 | Compiler: $CXX |
14721 | Compiler flags: $CXXFLAGS |
12991 | Compiler flags: $CXXFLAGS |
14722 | Linker: $LINKER" |
12992 | Linker: $LINKER" |
14723 | |
12993 | |
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 |
12994 | if test x$term != x; then |
14734 | echo " set TERM to: $term" |
12995 | echo " set TERM to: $term" |
14735 | fi |
12996 | fi |
14736 | if test x$terminfo != x; then |
12997 | if test x$terminfo != x; then |
14737 | echo " set TERMINFO to: $terminfo" |
12998 | echo " set TERMINFO to: $terminfo" |
… | |
… | |
14743 | fi |
13004 | fi |
14744 | echo |
13005 | echo |
14745 | echo " embedded perl: $support_perl" |
13006 | echo " embedded perl: $support_perl" |
14746 | echo " libafterimage: $support_afterimage" |
13007 | echo " libafterimage: $support_afterimage" |
14747 | echo |
13008 | 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 |
13009 | if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then |
14759 | echo ".----------------------------------------------------------------." |
13010 | echo ".----------------------------------------------------------------." |
14760 | echo ". WARNING: --enable-xim was specified however the locale support ." |
13011 | echo ". WARNING: --enable-xim was specified however the locale support ." |
14761 | echo ". functions could not be found. ." |
13012 | echo ". functions could not be found. ." |
14762 | echo ". XIM is now being DISABLED! ." |
13013 | echo ". XIM is now being DISABLED! ." |