… | |
… | |
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 | CXXLIB |
|
|
683 | INSTALL_LIBRXVT |
|
|
684 | RXVTNAME |
680 | RXVTNAME |
|
|
681 | CXXCPP |
685 | TIC |
682 | TIC |
686 | XMKMF |
683 | XMKMF |
687 | CXXCPP |
|
|
688 | X_CFLAGS |
684 | X_CFLAGS |
689 | X_PRE_LIBS |
685 | X_PRE_LIBS |
690 | X_LIBS |
686 | X_LIBS |
691 | X_EXTRA_LIBS |
687 | X_EXTRA_LIBS |
692 | afterimage_config |
688 | afterimage_config |
693 | XPM_CPPFLAGS |
|
|
694 | XPM_CFLAGS |
|
|
695 | XPM_LIBS |
|
|
696 | rxvt_int16_typedef |
|
|
697 | rxvt_uint16_typedef |
|
|
698 | rxvt_int32_typedef |
|
|
699 | rxvt_uint32_typedef |
|
|
700 | rxvt_intp_define |
|
|
701 | rxvt_u_intp_define |
|
|
702 | PKG_CONFIG |
689 | PKG_CONFIG |
703 | XFT_CONFIG |
690 | XFT_CONFIG |
704 | PERL |
691 | PERL |
705 | PERLLIB |
692 | PERLLIB |
706 | PERLFLAGS |
693 | PERLFLAGS |
707 | PERLPRIVLIBEXP |
694 | PERLPRIVLIBEXP |
708 | IF_PERL |
695 | IF_PERL |
709 | PERL_O |
696 | PERL_O |
710 | LIBAFTERIMAGE_CFLAGS |
697 | AFTERIMAGE_CFLAGS |
711 | AFTERIMAGE_LIBS |
698 | AFTERIMAGE_LIBS |
712 | include_stdint_h |
699 | include_stdint_h |
713 | include_stdarg_h |
|
|
714 | include_stdlib_h |
|
|
715 | include_unistd_h |
|
|
716 | include_string_h |
|
|
717 | include_fcntl_h |
|
|
718 | include_util_h |
|
|
719 | include_assert_h |
|
|
720 | include_sys_ioctl_h |
700 | include_sys_ioctl_h |
721 | include_sys_select_h |
|
|
722 | include_sys_strredir_h |
701 | include_sys_strredir_h |
723 | include_sys_time_h |
|
|
724 | include_time_h |
|
|
725 | LIBOBJS |
702 | LIBOBJS |
726 | LTLIBOBJS' |
703 | LTLIBOBJS' |
727 | ac_subst_files='' |
704 | ac_subst_files='' |
728 | ac_precious_vars='build_alias |
705 | ac_precious_vars='build_alias |
729 | host_alias |
706 | host_alias |
… | |
… | |
735 | CPPFLAGS |
712 | CPPFLAGS |
736 | CXX |
713 | CXX |
737 | CXXFLAGS |
714 | CXXFLAGS |
738 | CCC |
715 | CCC |
739 | CPP |
716 | CPP |
740 | XMKMF |
|
|
741 | CXXCPP' |
717 | CXXCPP |
|
|
718 | XMKMF' |
742 | |
719 | |
743 | |
720 | |
744 | # Initialize some variables set by options. |
721 | # Initialize some variables set by options. |
745 | ac_init_help= |
722 | ac_init_help= |
746 | ac_init_version=false |
723 | ac_init_version=false |
… | |
… | |
1320 | Optional Features: |
1297 | Optional Features: |
1321 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1298 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1322 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1299 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1323 | --enable-everything enable standard non-multichoice features |
1300 | --enable-everything enable standard non-multichoice features |
1324 | NOTE: this option is order dependent |
1301 | NOTE: this option is order dependent |
1325 | NOTE: automatically enabled with --enable-shared |
1302 | --enable-warnings turn on g++ warnings |
1326 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1303 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1327 | --enable-combining enable composition of base and combining characters |
1304 | --enable-combining enable composition of base and combining characters |
1328 | --enable-xft enable xft support on systems that have it |
1305 | --enable-xft enable xft support on systems that have it |
1329 | --enable-font-styles enable bold and italic support |
1306 | --enable-font-styles enable bold and italic support |
1330 | --enable-xpm-background enable background pixmaps |
|
|
1331 | --enable-afterimage enable integration with libAfterImage for background images |
1307 | --enable-afterimage enable integration with libAfterImage for background images |
1332 | --enable-afterstep enable integration with AfterStep window manager |
|
|
1333 | --enable-transparency enable transparent backgrounds |
1308 | --enable-transparency enable transparent backgrounds |
1334 | --enable-tinting enable tinting of transparent bg |
|
|
1335 | --enable-fading enable colors fading when off focus |
1309 | --enable-fading enable colors fading when off focus |
1336 | --enable-rxvt-scroll enable rxvt style scrollbar |
1310 | --enable-rxvt-scroll enable rxvt style scrollbar |
1337 | --enable-next-scroll enable NeXT style scrollbar |
1311 | --enable-next-scroll enable NeXT style scrollbar |
1338 | --enable-xterm-scroll enable Xterm style scrollbar |
1312 | --enable-xterm-scroll enable Xterm style scrollbar |
|
|
1313 | --enable-plain-scroll enable plain style scrollbar |
1339 | --enable-perl enable embedded perl interpreter |
1314 | --enable-perl enable embedded perl interpreter |
1340 | --enable-plain-scroll enable plain style scrollbar |
|
|
1341 | --enable-xim XIM (X Input Method) protocol support |
1315 | --enable-xim XIM (X Input Method) protocol support |
1342 | --disable-backspace-key disable handling of the backspace key |
1316 | --disable-backspace-key disable handling of the backspace key |
1343 | --disable-delete-key disable handling of the delete key |
1317 | --disable-delete-key disable handling of the delete key |
1344 | --disable-resources disable all resource checking |
1318 | --disable-resources disable all resource checking |
1345 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
1319 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
1346 | --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
1320 | --enable-fallback[=CLASS] fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
1347 | --disable-swapscreen disable swap screen support |
1321 | --disable-swapscreen disable swap screen support |
1348 | --enable-iso14755 enable support for extended ISO 14755 modes |
1322 | --enable-iso14755 enable support for extended ISO 14755 modes |
1349 | --enable-frills enable support for rarely used features |
1323 | --enable-frills enable support for rarely used features |
1350 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
1324 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
1351 | --enable-selectionscrolling enable scrolling during selections |
1325 | --enable-selectionscrolling enable scrolling during selections |
1352 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1326 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1353 | --enable-slipwheeling enable slip wheel scrolling (requires previous) |
1327 | --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel) |
1354 | --enable-smart-resize enable smart growth/shrink behaviour |
1328 | --enable-smart-resize enable smart growth/shrink behaviour |
1355 | --enable-text-blink enable blinking text |
1329 | --enable-text-blink enable blinking text |
1356 | --enable-pointer-blank enable pointer blank when typing or inactive pointer |
1330 | --enable-pointer-blank enable pointer blank when typing or inactive pointer |
1357 | --enable-utmp enable utmp (utmpx) support |
1331 | --enable-utmp enable utmp (utmpx) support |
1358 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
1332 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
… | |
… | |
1360 | |
1334 | |
1361 | Optional Packages: |
1335 | Optional Packages: |
1362 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1336 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1363 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1337 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1364 | --with-afterimage-config=DIR use libAfterImage config script in DIR |
1338 | --with-afterimage-config=DIR use libAfterImage config script in DIR |
1365 | --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) |
1339 | --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) |
1366 | --with-res-name=NAME use this as default resource name (default: urxvt) |
1340 | --with-res-name=NAME use this as default resource name (default: urxvt) |
1367 | --with-res-class=CLASS use this as the resource class (default: URxvt) |
1341 | --with-res-class=CLASS use this as the resource class (default: URxvt) |
1368 | --with-name=NAME set the basename for the installed binaries (default: urxvt) |
1342 | --with-name=NAME set the basename for the installed binaries (default: urxvt) |
1369 | --with-term=NAME set the terminal to NAME (default: rxvt) |
1343 | --with-term=NAME set the terminal to NAME (default: rxvt) |
1370 | --with-terminfo=PATH set the path to the terminfo tree to PATH |
1344 | --with-terminfo=PATH set the path to the terminfo tree to PATH |
1371 | --with-x use the X Window System |
1345 | --with-x use the X Window System |
1372 | --with-xpm-includes=DIR use XPM includes in DIR |
|
|
1373 | --with-xpm-library=DIR use XPM library in DIR |
|
|
1374 | --with-xpm use XPM |
|
|
1375 | |
1346 | |
1376 | Some influential environment variables: |
1347 | Some influential environment variables: |
1377 | CC C compiler command |
1348 | CC C compiler command |
1378 | CFLAGS C compiler flags |
1349 | CFLAGS C compiler flags |
1379 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1350 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
… | |
… | |
1382 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1353 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1383 | you have headers in a nonstandard directory <include dir> |
1354 | you have headers in a nonstandard directory <include dir> |
1384 | CXX C++ compiler command |
1355 | CXX C++ compiler command |
1385 | CXXFLAGS C++ compiler flags |
1356 | CXXFLAGS C++ compiler flags |
1386 | CPP C preprocessor |
1357 | CPP C preprocessor |
|
|
1358 | CXXCPP C++ preprocessor |
1387 | XMKMF Path to xmkmf, Makefile generator for X Window System |
1359 | XMKMF Path to xmkmf, Makefile generator for X Window System |
1388 | CXXCPP C++ preprocessor |
|
|
1389 | |
1360 | |
1390 | Use these variables to override the choices made by `configure' or to help |
1361 | Use these variables to override the choices made by `configure' or to help |
1391 | it to find libraries and programs with nonstandard names/locations. |
1362 | it to find libraries and programs with nonstandard names/locations. |
1392 | |
1363 | |
1393 | _ACEOF |
1364 | _ACEOF |
… | |
… | |
1929 | |
1900 | |
1930 | |
1901 | |
1931 | |
1902 | |
1932 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1903 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1933 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1904 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
|
|
1905 | |
1934 | echo "" |
1906 | echo "" |
1935 | echo "configuring for rxvt $VERSION" |
1907 | echo "configuring for rxvt $VERSION" |
1936 | echo "" |
1908 | echo "" |
1937 | |
1909 | |
1938 | orig_CXXFLAGS="$CXXFLAGS" |
1910 | orig_CXXFLAGS="$CXXFLAGS" |
1939 | |
|
|
1940 | |
1911 | |
1941 | ac_ext=c |
1912 | ac_ext=c |
1942 | ac_cpp='$CPP $CPPFLAGS' |
1913 | ac_cpp='$CPP $CPPFLAGS' |
1943 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1914 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1944 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1915 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
… | |
… | |
3723 | echo "${ECHO_T}no" >&6; } |
3694 | echo "${ECHO_T}no" >&6; } |
3724 | fi |
3695 | fi |
3725 | rm -f conftest* |
3696 | rm -f conftest* |
3726 | |
3697 | |
3727 | |
3698 | |
|
|
3699 | |
|
|
3700 | cat >>confdefs.h <<\_ACEOF |
|
|
3701 | #define _GNU_SOURCE 1 |
|
|
3702 | _ACEOF |
|
|
3703 | |
|
|
3704 | |
3728 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
3705 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
3729 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } |
3706 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } |
3730 | if test "${ac_cv_search_strerror+set}" = set; then |
3707 | if test "${ac_cv_search_strerror+set}" = set; then |
3731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3732 | else |
3709 | else |
… | |
… | |
3855 | (exit $ac_status); } && { |
3832 | (exit $ac_status); } && { |
3856 | test -z "$ac_cxx_werror_flag" || |
3833 | test -z "$ac_cxx_werror_flag" || |
3857 | test ! -s conftest.err |
3834 | test ! -s conftest.err |
3858 | } && test -s conftest$ac_exeext && |
3835 | } && test -s conftest$ac_exeext && |
3859 | $as_test_x conftest$ac_exeext; then |
3836 | $as_test_x conftest$ac_exeext; then |
3860 | |
|
|
3861 | { echo "$as_me:$LINENO: result: ok" >&5 |
3837 | { echo "$as_me:$LINENO: result: ok" >&5 |
3862 | echo "${ECHO_T}ok" >&6; } |
3838 | echo "${ECHO_T}ok" >&6; } |
3863 | CXXLIB="-lsupc++" |
|
|
3864 | |
|
|
3865 | else |
3839 | else |
3866 | echo "$as_me: failed program was:" >&5 |
3840 | echo "$as_me: failed program was:" >&5 |
3867 | sed 's/^/| /' conftest.$ac_ext >&5 |
3841 | sed 's/^/| /' conftest.$ac_ext >&5 |
3868 | |
3842 | |
3869 | |
3843 | |
… | |
… | |
3880 | CXX="$save_CXX" |
3854 | CXX="$save_CXX" |
3881 | fi |
3855 | fi |
3882 | LINKER=$LINKER |
3856 | LINKER=$LINKER |
3883 | |
3857 | |
3884 | |
3858 | |
3885 | |
|
|
3886 | if test -z "$orig_CXXFLAGS"; then |
3859 | if test -z "$orig_CXXFLAGS"; then |
3887 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
3860 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
3888 | CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" |
3861 | CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs" |
3889 | cat >conftest.$ac_ext <<_ACEOF |
3862 | cat >conftest.$ac_ext <<_ACEOF |
3890 | /* confdefs.h. */ |
3863 | /* confdefs.h. */ |
3891 | _ACEOF |
3864 | _ACEOF |
3892 | cat confdefs.h >>conftest.$ac_ext |
3865 | cat confdefs.h >>conftest.$ac_ext |
3893 | cat >>conftest.$ac_ext <<_ACEOF |
3866 | cat >>conftest.$ac_ext <<_ACEOF |
… | |
… | |
3931 | CXXFLAGS="-O" |
3904 | CXXFLAGS="-O" |
3932 | fi |
3905 | fi |
3933 | CFLAGS="$CXXFLAGS" |
3906 | CFLAGS="$CXXFLAGS" |
3934 | fi |
3907 | fi |
3935 | |
3908 | |
3936 | |
|
|
3937 | cat >>confdefs.h <<\_ACEOF |
|
|
3938 | #define _GNU_SOURCE 1 |
|
|
3939 | _ACEOF |
|
|
3940 | |
|
|
3941 | |
|
|
3942 | case $host in |
3909 | case $host in |
3943 | *-*-solaris* ) |
3910 | *-*-solaris* ) |
3944 | |
3911 | |
3945 | cat >>confdefs.h <<\_ACEOF |
3912 | cat >>confdefs.h <<\_ACEOF |
3946 | #define _XOPEN_SOURCE 500 |
3913 | #define _XOPEN_SOURCE 500 |
3947 | _ACEOF |
3914 | _ACEOF |
3948 | |
3915 | |
3949 | ;; |
3916 | ;; |
3950 | esac |
3917 | esac |
3951 | |
|
|
3952 | |
3918 | |
3953 | { echo "$as_me:$LINENO: checking for setlocale" >&5 |
3919 | { echo "$as_me:$LINENO: checking for setlocale" >&5 |
3954 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } |
3920 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } |
3955 | if test "${ac_cv_func_setlocale+set}" = set; then |
3921 | if test "${ac_cv_func_setlocale+set}" = set; then |
3956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
4406 | |
4372 | |
4407 | |
4373 | |
4408 | |
4374 | |
4409 | support_frills=yes |
4375 | support_frills=yes |
4410 | support_inheritpixmap=yes |
4376 | support_inheritpixmap=yes |
4411 | support_tinting=yes |
|
|
4412 | support_fading=yes |
4377 | support_fading=yes |
4413 | support_keepscrolling=yes |
4378 | support_keepscrolling=yes |
4414 | support_selectionscrolling=yes |
4379 | support_selectionscrolling=yes |
4415 | support_mousewheel=yes |
4380 | support_mousewheel=yes |
4416 | support_mouseslipwheel=yes |
4381 | support_mouseslipwheel=yes |
… | |
… | |
4419 | support_scroll_rxvt=yes |
4384 | support_scroll_rxvt=yes |
4420 | support_scroll_next=yes |
4385 | support_scroll_next=yes |
4421 | support_scroll_xterm=yes |
4386 | support_scroll_xterm=yes |
4422 | support_scroll_plain=yes |
4387 | support_scroll_plain=yes |
4423 | support_xim=yes |
4388 | support_xim=yes |
4424 | support_xpm=yes |
|
|
4425 | support_afterimage=yes |
4389 | support_afterimage=yes |
4426 | support_afterstep=yes |
4390 | support_afterstep=yes |
4427 | support_xft=yes |
4391 | support_xft=yes |
4428 | support_unicode3=no |
4392 | support_unicode3=no |
4429 | support_combining=yes |
4393 | support_combining=yes |
… | |
… | |
4432 | support_styles=yes |
4396 | support_styles=yes |
4433 | support_perl=yes |
4397 | support_perl=yes |
4434 | codesets=all |
4398 | codesets=all |
4435 | |
4399 | |
4436 | |
4400 | |
4437 | if test "x$enable_shared" = xyes; then |
|
|
4438 | |
|
|
4439 | cat >>confdefs.h <<\_ACEOF |
|
|
4440 | #define LIBRXVT 1 |
|
|
4441 | _ACEOF |
|
|
4442 | |
|
|
4443 | INSTALL_LIBRXVT=yes |
|
|
4444 | fi |
|
|
4445 | |
|
|
4446 | |
4401 | |
4447 | # Check whether --enable-everything was given. |
4402 | # Check whether --enable-everything was given. |
4448 | if test "${enable_everything+set}" = set; then |
4403 | if test "${enable_everything+set}" = set; then |
4449 | enableval=$enable_everything; |
4404 | enableval=$enable_everything; |
4450 | if test x$enableval = xno; then |
4405 | if test x$enableval = xno; then |
4451 | support_frills=no |
4406 | support_frills=no |
4452 | support_inheritpixmap=no |
4407 | support_inheritpixmap=no |
4453 | support_tinting=no |
|
|
4454 | support_fading=no |
4408 | support_fading=no |
4455 | support_keepscrolling=no |
4409 | support_keepscrolling=no |
4456 | support_selectionscrolling=no |
4410 | support_selectionscrolling=no |
4457 | support_lastlog=no |
4411 | support_lastlog=no |
4458 | support_mousewheel=no |
4412 | support_mousewheel=no |
… | |
… | |
4464 | support_scroll_xterm=no |
4418 | support_scroll_xterm=no |
4465 | support_scroll_plain=no |
4419 | support_scroll_plain=no |
4466 | support_utmp=no |
4420 | support_utmp=no |
4467 | support_wtmp=no |
4421 | support_wtmp=no |
4468 | support_xim=no |
4422 | support_xim=no |
4469 | support_xpm=no |
|
|
4470 | support_afterimage=no |
4423 | support_afterimage=no |
4471 | support_afterstep=no |
4424 | support_afterstep=no |
4472 | support_xft=no |
4425 | support_xft=no |
4473 | support_unicode3=no |
4426 | support_unicode3=no |
4474 | support_combining=no |
4427 | support_combining=no |
… | |
… | |
4479 | codesets= |
4432 | codesets= |
4480 | fi |
4433 | fi |
4481 | if test x$enableval = xyes; then |
4434 | if test x$enableval = xyes; then |
4482 | support_frills=yes |
4435 | support_frills=yes |
4483 | support_inheritpixmap=yes |
4436 | support_inheritpixmap=yes |
4484 | support_tinting=yes |
|
|
4485 | support_fading=yes |
4437 | support_fading=yes |
4486 | support_keepscrolling=yes |
4438 | support_keepscrolling=yes |
4487 | support_selectionscrolling=yes |
4439 | support_selectionscrolling=yes |
4488 | support_lastlog=yes |
4440 | support_lastlog=yes |
4489 | support_mousewheel=yes |
4441 | support_mousewheel=yes |
… | |
… | |
4495 | support_scroll_xterm=yes |
4447 | support_scroll_xterm=yes |
4496 | support_scroll_plain=yes |
4448 | support_scroll_plain=yes |
4497 | support_utmp=yes |
4449 | support_utmp=yes |
4498 | support_wtmp=yes |
4450 | support_wtmp=yes |
4499 | support_xim=yes |
4451 | support_xim=yes |
4500 | support_xpm=yes |
|
|
4501 | support_afterimage=yes |
4452 | support_afterimage=yes |
4502 | support_afterstep=yes |
4453 | support_afterstep=yes |
4503 | support_xft=yes |
4454 | support_xft=yes |
4504 | support_unicode3=yes |
4455 | support_unicode3=yes |
4505 | support_combining=yes |
4456 | support_combining=yes |
… | |
… | |
4511 | fi |
4462 | fi |
4512 | |
4463 | |
4513 | fi |
4464 | fi |
4514 | |
4465 | |
4515 | |
4466 | |
|
|
4467 | WARNINGS=no |
|
|
4468 | # Check whether --enable-warnings was given. |
|
|
4469 | if test "${enable_warnings+set}" = set; then |
|
|
4470 | enableval=$enable_warnings; if test x$enableval = xyes; then |
|
|
4471 | WARNINGS=yes |
|
|
4472 | fi |
|
|
4473 | fi |
|
|
4474 | |
|
|
4475 | if test x$GXX = xyes; then |
|
|
4476 | if test $WARNINGS = yes; then |
|
|
4477 | save_CXXFLAGS="$CXXFLAGS" |
|
|
4478 | CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-non-virtual-dtor" |
|
|
4479 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4480 | /* confdefs.h. */ |
|
|
4481 | _ACEOF |
|
|
4482 | cat confdefs.h >>conftest.$ac_ext |
|
|
4483 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4484 | /* end confdefs.h. */ |
|
|
4485 | |
|
|
4486 | int |
|
|
4487 | main () |
|
|
4488 | { |
|
|
4489 | |
|
|
4490 | ; |
|
|
4491 | return 0; |
|
|
4492 | } |
|
|
4493 | _ACEOF |
|
|
4494 | rm -f conftest.$ac_objext |
|
|
4495 | if { (ac_try="$ac_compile" |
|
|
4496 | case "(($ac_try" in |
|
|
4497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4498 | *) ac_try_echo=$ac_try;; |
|
|
4499 | esac |
|
|
4500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4501 | (eval "$ac_compile") 2>conftest.er1 |
|
|
4502 | ac_status=$? |
|
|
4503 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4504 | rm -f conftest.er1 |
|
|
4505 | cat conftest.err >&5 |
|
|
4506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4507 | (exit $ac_status); } && { |
|
|
4508 | test -z "$ac_cxx_werror_flag" || |
|
|
4509 | test ! -s conftest.err |
|
|
4510 | } && test -s conftest.$ac_objext; then |
|
|
4511 | : |
|
|
4512 | else |
|
|
4513 | echo "$as_me: failed program was:" >&5 |
|
|
4514 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4515 | |
|
|
4516 | CXXFLAGS="$save_CXXFLAGS" |
|
|
4517 | fi |
|
|
4518 | |
|
|
4519 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4520 | else |
|
|
4521 | CXXFLAGS="$CXXFLAGS -w" |
|
|
4522 | fi |
|
|
4523 | fi |
|
|
4524 | |
4516 | # Check whether --enable-unicode3 was given. |
4525 | # Check whether --enable-unicode3 was given. |
4517 | if test "${enable_unicode3+set}" = set; then |
4526 | if test "${enable_unicode3+set}" = set; then |
4518 | enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then |
4527 | enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then |
4519 | support_unicode3=$enableval |
4528 | support_unicode3=$enableval |
4520 | fi |
4529 | fi |
… | |
… | |
4543 | support_styles=$enableval |
4552 | support_styles=$enableval |
4544 | fi |
4553 | fi |
4545 | fi |
4554 | fi |
4546 | |
4555 | |
4547 | |
4556 | |
4548 | # Check whether --enable-xpm-background was given. |
|
|
4549 | if test "${enable_xpm_background+set}" = set; then |
|
|
4550 | enableval=$enable_xpm_background; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4551 | support_xpm=$enableval |
|
|
4552 | fi |
|
|
4553 | fi |
|
|
4554 | |
|
|
4555 | |
|
|
4556 | # Check whether --enable-afterimage was given. |
4557 | # Check whether --enable-afterimage was given. |
4557 | if test "${enable_afterimage+set}" = set; then |
4558 | if test "${enable_afterimage+set}" = set; then |
4558 | enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then |
4559 | enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then |
4559 | support_afterimage=$enableval |
4560 | support_afterimage=$enableval |
4560 | fi |
4561 | fi |
… | |
… | |
4568 | afterimage_config=$withval/afterimage-config |
4569 | afterimage_config=$withval/afterimage-config |
4569 | fi |
4570 | fi |
4570 | fi |
4571 | fi |
4571 | |
4572 | |
4572 | |
4573 | |
4573 | # Check whether --enable-afterstep was given. |
|
|
4574 | if test "${enable_afterstep+set}" = set; then |
|
|
4575 | enableval=$enable_afterstep; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4576 | support_afterstep=$enableval |
|
|
4577 | fi |
|
|
4578 | fi |
|
|
4579 | |
|
|
4580 | |
4574 | |
4581 | # Check whether --enable-transparency was given. |
4575 | # Check whether --enable-transparency was given. |
4582 | if test "${enable_transparency+set}" = set; then |
4576 | if test "${enable_transparency+set}" = set; then |
4583 | enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then |
4577 | enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then |
4584 | support_inheritpixmap=$enableval |
4578 | support_inheritpixmap=$enableval |
4585 | fi |
4579 | fi |
4586 | fi |
4580 | fi |
4587 | |
4581 | |
4588 | |
4582 | |
4589 | # Check whether --enable-tinting was given. |
|
|
4590 | if test "${enable_tinting+set}" = set; then |
|
|
4591 | enableval=$enable_tinting; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4592 | support_tinting=$enableval |
|
|
4593 | fi |
|
|
4594 | fi |
|
|
4595 | |
|
|
4596 | |
|
|
4597 | # Check whether --enable-fading was given. |
4583 | # Check whether --enable-fading was given. |
4598 | if test "${enable_fading+set}" = set; then |
4584 | if test "${enable_fading+set}" = set; then |
4599 | enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then |
4585 | enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then |
4600 | support_fading=$enableval |
4586 | support_fading=$enableval |
4601 | fi |
4587 | fi |
… | |
… | |
4624 | support_scroll_xterm=$enableval |
4610 | support_scroll_xterm=$enableval |
4625 | fi |
4611 | fi |
4626 | fi |
4612 | fi |
4627 | |
4613 | |
4628 | |
4614 | |
|
|
4615 | # Check whether --enable-plain-scroll was given. |
|
|
4616 | if test "${enable_plain_scroll+set}" = set; then |
|
|
4617 | enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4618 | support_scroll_plain=$enableval |
|
|
4619 | fi |
|
|
4620 | fi |
|
|
4621 | |
|
|
4622 | |
4629 | # Check whether --enable-perl was given. |
4623 | # Check whether --enable-perl was given. |
4630 | if test "${enable_perl+set}" = set; then |
4624 | if test "${enable_perl+set}" = set; then |
4631 | enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then |
4625 | enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then |
4632 | support_perl=$enableval |
4626 | support_perl=$enableval |
4633 | fi |
|
|
4634 | fi |
|
|
4635 | |
|
|
4636 | |
|
|
4637 | # Check whether --enable-plain-scroll was given. |
|
|
4638 | if test "${enable_plain_scroll+set}" = set; then |
|
|
4639 | enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4640 | support_scroll_plain=$enableval |
|
|
4641 | fi |
4627 | fi |
4642 | fi |
4628 | fi |
4643 | |
4629 | |
4644 | |
4630 | |
4645 | |
4631 | |
… | |
… | |
4872 | #define RXVT_TERMINFO "$withval" |
4858 | #define RXVT_TERMINFO "$withval" |
4873 | _ACEOF |
4859 | _ACEOF |
4874 | terminfo="$withval" |
4860 | terminfo="$withval" |
4875 | fi |
4861 | fi |
4876 | fi |
4862 | fi |
|
|
4863 | |
|
|
4864 | |
|
|
4865 | |
|
|
4866 | LIBEV_M4_AVOID_LIBRT=1 |
|
|
4867 | |
|
|
4868 | ac_ext=cpp |
|
|
4869 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
4870 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4871 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4872 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
4873 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
4874 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
|
|
4875 | if test -z "$CXXCPP"; then |
|
|
4876 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
|
4877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4878 | else |
|
|
4879 | # Double quotes because CXXCPP needs to be expanded |
|
|
4880 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
4881 | do |
|
|
4882 | ac_preproc_ok=false |
|
|
4883 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4884 | do |
|
|
4885 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4886 | # with a fresh cross-compiler works. |
|
|
4887 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4888 | # <limits.h> exists even on freestanding compilers. |
|
|
4889 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4890 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4891 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4892 | /* confdefs.h. */ |
|
|
4893 | _ACEOF |
|
|
4894 | cat confdefs.h >>conftest.$ac_ext |
|
|
4895 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4896 | /* end confdefs.h. */ |
|
|
4897 | #ifdef __STDC__ |
|
|
4898 | # include <limits.h> |
|
|
4899 | #else |
|
|
4900 | # include <assert.h> |
|
|
4901 | #endif |
|
|
4902 | Syntax error |
|
|
4903 | _ACEOF |
|
|
4904 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4905 | case "(($ac_try" in |
|
|
4906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4907 | *) ac_try_echo=$ac_try;; |
|
|
4908 | esac |
|
|
4909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4910 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4911 | ac_status=$? |
|
|
4912 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4913 | rm -f conftest.er1 |
|
|
4914 | cat conftest.err >&5 |
|
|
4915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4916 | (exit $ac_status); } >/dev/null && { |
|
|
4917 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4918 | test ! -s conftest.err |
|
|
4919 | }; then |
|
|
4920 | : |
|
|
4921 | else |
|
|
4922 | echo "$as_me: failed program was:" >&5 |
|
|
4923 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4924 | |
|
|
4925 | # Broken: fails on valid input. |
|
|
4926 | continue |
|
|
4927 | fi |
|
|
4928 | |
|
|
4929 | rm -f conftest.err conftest.$ac_ext |
|
|
4930 | |
|
|
4931 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
4932 | # can be detected and how. |
|
|
4933 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4934 | /* confdefs.h. */ |
|
|
4935 | _ACEOF |
|
|
4936 | cat confdefs.h >>conftest.$ac_ext |
|
|
4937 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4938 | /* end confdefs.h. */ |
|
|
4939 | #include <ac_nonexistent.h> |
|
|
4940 | _ACEOF |
|
|
4941 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4942 | case "(($ac_try" in |
|
|
4943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4944 | *) ac_try_echo=$ac_try;; |
|
|
4945 | esac |
|
|
4946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4947 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4948 | ac_status=$? |
|
|
4949 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4950 | rm -f conftest.er1 |
|
|
4951 | cat conftest.err >&5 |
|
|
4952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4953 | (exit $ac_status); } >/dev/null && { |
|
|
4954 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4955 | test ! -s conftest.err |
|
|
4956 | }; then |
|
|
4957 | # Broken: success on invalid input. |
|
|
4958 | continue |
|
|
4959 | else |
|
|
4960 | echo "$as_me: failed program was:" >&5 |
|
|
4961 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4962 | |
|
|
4963 | # Passes both tests. |
|
|
4964 | ac_preproc_ok=: |
|
|
4965 | break |
|
|
4966 | fi |
|
|
4967 | |
|
|
4968 | rm -f conftest.err conftest.$ac_ext |
|
|
4969 | |
|
|
4970 | done |
|
|
4971 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
4972 | rm -f conftest.err conftest.$ac_ext |
|
|
4973 | if $ac_preproc_ok; then |
|
|
4974 | break |
|
|
4975 | fi |
|
|
4976 | |
|
|
4977 | done |
|
|
4978 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
4979 | |
|
|
4980 | fi |
|
|
4981 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
4982 | else |
|
|
4983 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
4984 | fi |
|
|
4985 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
4986 | echo "${ECHO_T}$CXXCPP" >&6; } |
|
|
4987 | ac_preproc_ok=false |
|
|
4988 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4989 | do |
|
|
4990 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4991 | # with a fresh cross-compiler works. |
|
|
4992 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4993 | # <limits.h> exists even on freestanding compilers. |
|
|
4994 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4995 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4996 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4997 | /* confdefs.h. */ |
|
|
4998 | _ACEOF |
|
|
4999 | cat confdefs.h >>conftest.$ac_ext |
|
|
5000 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5001 | /* end confdefs.h. */ |
|
|
5002 | #ifdef __STDC__ |
|
|
5003 | # include <limits.h> |
|
|
5004 | #else |
|
|
5005 | # include <assert.h> |
|
|
5006 | #endif |
|
|
5007 | Syntax error |
|
|
5008 | _ACEOF |
|
|
5009 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5010 | case "(($ac_try" in |
|
|
5011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5012 | *) ac_try_echo=$ac_try;; |
|
|
5013 | esac |
|
|
5014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5015 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5016 | ac_status=$? |
|
|
5017 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5018 | rm -f conftest.er1 |
|
|
5019 | cat conftest.err >&5 |
|
|
5020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5021 | (exit $ac_status); } >/dev/null && { |
|
|
5022 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5023 | test ! -s conftest.err |
|
|
5024 | }; then |
|
|
5025 | : |
|
|
5026 | else |
|
|
5027 | echo "$as_me: failed program was:" >&5 |
|
|
5028 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5029 | |
|
|
5030 | # Broken: fails on valid input. |
|
|
5031 | continue |
|
|
5032 | fi |
|
|
5033 | |
|
|
5034 | rm -f conftest.err conftest.$ac_ext |
|
|
5035 | |
|
|
5036 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
5037 | # can be detected and how. |
|
|
5038 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5039 | /* confdefs.h. */ |
|
|
5040 | _ACEOF |
|
|
5041 | cat confdefs.h >>conftest.$ac_ext |
|
|
5042 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5043 | /* end confdefs.h. */ |
|
|
5044 | #include <ac_nonexistent.h> |
|
|
5045 | _ACEOF |
|
|
5046 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5047 | case "(($ac_try" in |
|
|
5048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5049 | *) ac_try_echo=$ac_try;; |
|
|
5050 | esac |
|
|
5051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5052 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5053 | ac_status=$? |
|
|
5054 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5055 | rm -f conftest.er1 |
|
|
5056 | cat conftest.err >&5 |
|
|
5057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5058 | (exit $ac_status); } >/dev/null && { |
|
|
5059 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5060 | test ! -s conftest.err |
|
|
5061 | }; then |
|
|
5062 | # Broken: success on invalid input. |
|
|
5063 | continue |
|
|
5064 | else |
|
|
5065 | echo "$as_me: failed program was:" >&5 |
|
|
5066 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5067 | |
|
|
5068 | # Passes both tests. |
|
|
5069 | ac_preproc_ok=: |
|
|
5070 | break |
|
|
5071 | fi |
|
|
5072 | |
|
|
5073 | rm -f conftest.err conftest.$ac_ext |
|
|
5074 | |
|
|
5075 | done |
|
|
5076 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5077 | rm -f conftest.err conftest.$ac_ext |
|
|
5078 | if $ac_preproc_ok; then |
|
|
5079 | : |
|
|
5080 | else |
|
|
5081 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5082 | See \`config.log' for more details." >&5 |
|
|
5083 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5084 | See \`config.log' for more details." >&2;} |
|
|
5085 | { (exit 1); exit 1; }; } |
|
|
5086 | fi |
|
|
5087 | |
|
|
5088 | ac_ext=cpp |
|
|
5089 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5090 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5091 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5092 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
5093 | |
|
|
5094 | |
|
|
5095 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
5096 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
|
|
5097 | if test "${ac_cv_header_stdc+set}" = set; then |
|
|
5098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5099 | else |
|
|
5100 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5101 | /* confdefs.h. */ |
|
|
5102 | _ACEOF |
|
|
5103 | cat confdefs.h >>conftest.$ac_ext |
|
|
5104 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5105 | /* end confdefs.h. */ |
|
|
5106 | #include <stdlib.h> |
|
|
5107 | #include <stdarg.h> |
|
|
5108 | #include <string.h> |
|
|
5109 | #include <float.h> |
|
|
5110 | |
|
|
5111 | int |
|
|
5112 | main () |
|
|
5113 | { |
|
|
5114 | |
|
|
5115 | ; |
|
|
5116 | return 0; |
|
|
5117 | } |
|
|
5118 | _ACEOF |
|
|
5119 | rm -f conftest.$ac_objext |
|
|
5120 | if { (ac_try="$ac_compile" |
|
|
5121 | case "(($ac_try" in |
|
|
5122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5123 | *) ac_try_echo=$ac_try;; |
|
|
5124 | esac |
|
|
5125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5126 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5127 | ac_status=$? |
|
|
5128 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5129 | rm -f conftest.er1 |
|
|
5130 | cat conftest.err >&5 |
|
|
5131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5132 | (exit $ac_status); } && { |
|
|
5133 | test -z "$ac_cxx_werror_flag" || |
|
|
5134 | test ! -s conftest.err |
|
|
5135 | } && test -s conftest.$ac_objext; then |
|
|
5136 | ac_cv_header_stdc=yes |
|
|
5137 | else |
|
|
5138 | echo "$as_me: failed program was:" >&5 |
|
|
5139 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5140 | |
|
|
5141 | ac_cv_header_stdc=no |
|
|
5142 | fi |
|
|
5143 | |
|
|
5144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5145 | |
|
|
5146 | if test $ac_cv_header_stdc = yes; then |
|
|
5147 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
5148 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5149 | /* confdefs.h. */ |
|
|
5150 | _ACEOF |
|
|
5151 | cat confdefs.h >>conftest.$ac_ext |
|
|
5152 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5153 | /* end confdefs.h. */ |
|
|
5154 | #include <string.h> |
|
|
5155 | |
|
|
5156 | _ACEOF |
|
|
5157 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
5158 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
5159 | : |
|
|
5160 | else |
|
|
5161 | ac_cv_header_stdc=no |
|
|
5162 | fi |
|
|
5163 | rm -f conftest* |
|
|
5164 | |
|
|
5165 | fi |
|
|
5166 | |
|
|
5167 | if test $ac_cv_header_stdc = yes; then |
|
|
5168 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
5169 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5170 | /* confdefs.h. */ |
|
|
5171 | _ACEOF |
|
|
5172 | cat confdefs.h >>conftest.$ac_ext |
|
|
5173 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5174 | /* end confdefs.h. */ |
|
|
5175 | #include <stdlib.h> |
|
|
5176 | |
|
|
5177 | _ACEOF |
|
|
5178 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
5179 | $EGREP "free" >/dev/null 2>&1; then |
|
|
5180 | : |
|
|
5181 | else |
|
|
5182 | ac_cv_header_stdc=no |
|
|
5183 | fi |
|
|
5184 | rm -f conftest* |
|
|
5185 | |
|
|
5186 | fi |
|
|
5187 | |
|
|
5188 | if test $ac_cv_header_stdc = yes; then |
|
|
5189 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
5190 | if test "$cross_compiling" = yes; then |
|
|
5191 | : |
|
|
5192 | else |
|
|
5193 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5194 | /* confdefs.h. */ |
|
|
5195 | _ACEOF |
|
|
5196 | cat confdefs.h >>conftest.$ac_ext |
|
|
5197 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5198 | /* end confdefs.h. */ |
|
|
5199 | #include <ctype.h> |
|
|
5200 | #include <stdlib.h> |
|
|
5201 | #if ((' ' & 0x0FF) == 0x020) |
|
|
5202 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
5203 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
5204 | #else |
|
|
5205 | # define ISLOWER(c) \ |
|
|
5206 | (('a' <= (c) && (c) <= 'i') \ |
|
|
5207 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
5208 | || ('s' <= (c) && (c) <= 'z')) |
|
|
5209 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
5210 | #endif |
|
|
5211 | |
|
|
5212 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
5213 | int |
|
|
5214 | main () |
|
|
5215 | { |
|
|
5216 | int i; |
|
|
5217 | for (i = 0; i < 256; i++) |
|
|
5218 | if (XOR (islower (i), ISLOWER (i)) |
|
|
5219 | || toupper (i) != TOUPPER (i)) |
|
|
5220 | return 2; |
|
|
5221 | return 0; |
|
|
5222 | } |
|
|
5223 | _ACEOF |
|
|
5224 | rm -f conftest$ac_exeext |
|
|
5225 | if { (ac_try="$ac_link" |
|
|
5226 | case "(($ac_try" in |
|
|
5227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5228 | *) ac_try_echo=$ac_try;; |
|
|
5229 | esac |
|
|
5230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5231 | (eval "$ac_link") 2>&5 |
|
|
5232 | ac_status=$? |
|
|
5233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5234 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
5235 | { (case "(($ac_try" in |
|
|
5236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5237 | *) ac_try_echo=$ac_try;; |
|
|
5238 | esac |
|
|
5239 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5240 | (eval "$ac_try") 2>&5 |
|
|
5241 | ac_status=$? |
|
|
5242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5243 | (exit $ac_status); }; }; then |
|
|
5244 | : |
|
|
5245 | else |
|
|
5246 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
5247 | echo "$as_me: failed program was:" >&5 |
|
|
5248 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5249 | |
|
|
5250 | ( exit $ac_status ) |
|
|
5251 | ac_cv_header_stdc=no |
|
|
5252 | fi |
|
|
5253 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
5254 | fi |
|
|
5255 | |
|
|
5256 | |
|
|
5257 | fi |
|
|
5258 | fi |
|
|
5259 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
5260 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
|
|
5261 | if test $ac_cv_header_stdc = yes; then |
|
|
5262 | |
|
|
5263 | cat >>confdefs.h <<\_ACEOF |
|
|
5264 | #define STDC_HEADERS 1 |
|
|
5265 | _ACEOF |
|
|
5266 | |
|
|
5267 | fi |
|
|
5268 | |
|
|
5269 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
5270 | |
|
|
5271 | |
|
|
5272 | |
|
|
5273 | |
|
|
5274 | |
|
|
5275 | |
|
|
5276 | |
|
|
5277 | |
|
|
5278 | |
|
|
5279 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
5280 | inttypes.h stdint.h unistd.h |
|
|
5281 | do |
|
|
5282 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
5283 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5284 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5285 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5287 | else |
|
|
5288 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5289 | /* confdefs.h. */ |
|
|
5290 | _ACEOF |
|
|
5291 | cat confdefs.h >>conftest.$ac_ext |
|
|
5292 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5293 | /* end confdefs.h. */ |
|
|
5294 | $ac_includes_default |
|
|
5295 | |
|
|
5296 | #include <$ac_header> |
|
|
5297 | _ACEOF |
|
|
5298 | rm -f conftest.$ac_objext |
|
|
5299 | if { (ac_try="$ac_compile" |
|
|
5300 | case "(($ac_try" in |
|
|
5301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5302 | *) ac_try_echo=$ac_try;; |
|
|
5303 | esac |
|
|
5304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5305 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5306 | ac_status=$? |
|
|
5307 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5308 | rm -f conftest.er1 |
|
|
5309 | cat conftest.err >&5 |
|
|
5310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5311 | (exit $ac_status); } && { |
|
|
5312 | test -z "$ac_cxx_werror_flag" || |
|
|
5313 | test ! -s conftest.err |
|
|
5314 | } && test -s conftest.$ac_objext; then |
|
|
5315 | eval "$as_ac_Header=yes" |
|
|
5316 | else |
|
|
5317 | echo "$as_me: failed program was:" >&5 |
|
|
5318 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5319 | |
|
|
5320 | eval "$as_ac_Header=no" |
|
|
5321 | fi |
|
|
5322 | |
|
|
5323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5324 | fi |
|
|
5325 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5326 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5327 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5328 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
5329 | cat >>confdefs.h <<_ACEOF |
|
|
5330 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
5331 | _ACEOF |
|
|
5332 | |
|
|
5333 | fi |
|
|
5334 | |
|
|
5335 | done |
|
|
5336 | |
|
|
5337 | |
|
|
5338 | |
|
|
5339 | |
|
|
5340 | |
|
|
5341 | |
|
|
5342 | |
|
|
5343 | |
|
|
5344 | |
|
|
5345 | for ac_header in sys/inotify.h sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h |
|
|
5346 | do |
|
|
5347 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
5348 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5349 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5350 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5351 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5352 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5353 | fi |
|
|
5354 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5355 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5356 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5357 | else |
|
|
5358 | # Is the header compilable? |
|
|
5359 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
5360 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
|
|
5361 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5362 | /* confdefs.h. */ |
|
|
5363 | _ACEOF |
|
|
5364 | cat confdefs.h >>conftest.$ac_ext |
|
|
5365 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5366 | /* end confdefs.h. */ |
|
|
5367 | $ac_includes_default |
|
|
5368 | #include <$ac_header> |
|
|
5369 | _ACEOF |
|
|
5370 | rm -f conftest.$ac_objext |
|
|
5371 | if { (ac_try="$ac_compile" |
|
|
5372 | case "(($ac_try" in |
|
|
5373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5374 | *) ac_try_echo=$ac_try;; |
|
|
5375 | esac |
|
|
5376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5377 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5378 | ac_status=$? |
|
|
5379 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5380 | rm -f conftest.er1 |
|
|
5381 | cat conftest.err >&5 |
|
|
5382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5383 | (exit $ac_status); } && { |
|
|
5384 | test -z "$ac_cxx_werror_flag" || |
|
|
5385 | test ! -s conftest.err |
|
|
5386 | } && test -s conftest.$ac_objext; then |
|
|
5387 | ac_header_compiler=yes |
|
|
5388 | else |
|
|
5389 | echo "$as_me: failed program was:" >&5 |
|
|
5390 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5391 | |
|
|
5392 | ac_header_compiler=no |
|
|
5393 | fi |
|
|
5394 | |
|
|
5395 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5396 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
5397 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
|
|
5398 | |
|
|
5399 | # Is the header present? |
|
|
5400 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
5401 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
|
|
5402 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5403 | /* confdefs.h. */ |
|
|
5404 | _ACEOF |
|
|
5405 | cat confdefs.h >>conftest.$ac_ext |
|
|
5406 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5407 | /* end confdefs.h. */ |
|
|
5408 | #include <$ac_header> |
|
|
5409 | _ACEOF |
|
|
5410 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5411 | case "(($ac_try" in |
|
|
5412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5413 | *) ac_try_echo=$ac_try;; |
|
|
5414 | esac |
|
|
5415 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5416 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5417 | ac_status=$? |
|
|
5418 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5419 | rm -f conftest.er1 |
|
|
5420 | cat conftest.err >&5 |
|
|
5421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5422 | (exit $ac_status); } >/dev/null && { |
|
|
5423 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5424 | test ! -s conftest.err |
|
|
5425 | }; then |
|
|
5426 | ac_header_preproc=yes |
|
|
5427 | else |
|
|
5428 | echo "$as_me: failed program was:" >&5 |
|
|
5429 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5430 | |
|
|
5431 | ac_header_preproc=no |
|
|
5432 | fi |
|
|
5433 | |
|
|
5434 | rm -f conftest.err conftest.$ac_ext |
|
|
5435 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
5436 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
|
|
5437 | |
|
|
5438 | # So? What about this header? |
|
|
5439 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
5440 | yes:no: ) |
|
|
5441 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
5442 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
5443 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
5444 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
5445 | ac_header_preproc=yes |
|
|
5446 | ;; |
|
|
5447 | no:yes:* ) |
|
|
5448 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
5449 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
5450 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
5451 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
5452 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
5453 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
5454 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
5455 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
5456 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
5457 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
5458 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
5459 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
5460 | |
|
|
5461 | ;; |
|
|
5462 | esac |
|
|
5463 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5464 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5465 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5467 | else |
|
|
5468 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
5469 | fi |
|
|
5470 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5471 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5472 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5473 | |
|
|
5474 | fi |
|
|
5475 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
5476 | cat >>confdefs.h <<_ACEOF |
|
|
5477 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
5478 | _ACEOF |
|
|
5479 | |
|
|
5480 | fi |
|
|
5481 | |
|
|
5482 | done |
|
|
5483 | |
|
|
5484 | |
|
|
5485 | |
|
|
5486 | |
|
|
5487 | |
|
|
5488 | |
|
|
5489 | |
|
|
5490 | |
|
|
5491 | for ac_func in inotify_init epoll_ctl kqueue port_create poll select |
|
|
5492 | do |
|
|
5493 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
5494 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
5495 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
5496 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5498 | else |
|
|
5499 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5500 | /* confdefs.h. */ |
|
|
5501 | _ACEOF |
|
|
5502 | cat confdefs.h >>conftest.$ac_ext |
|
|
5503 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5504 | /* end confdefs.h. */ |
|
|
5505 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
5506 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5507 | #define $ac_func innocuous_$ac_func |
|
|
5508 | |
|
|
5509 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5510 | which can conflict with char $ac_func (); below. |
|
|
5511 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5512 | <limits.h> exists even on freestanding compilers. */ |
|
|
5513 | |
|
|
5514 | #ifdef __STDC__ |
|
|
5515 | # include <limits.h> |
|
|
5516 | #else |
|
|
5517 | # include <assert.h> |
|
|
5518 | #endif |
|
|
5519 | |
|
|
5520 | #undef $ac_func |
|
|
5521 | |
|
|
5522 | /* Override any GCC internal prototype to avoid an error. |
|
|
5523 | Use char because int might match the return type of a GCC |
|
|
5524 | builtin and then its argument prototype would still apply. */ |
|
|
5525 | #ifdef __cplusplus |
|
|
5526 | extern "C" |
|
|
5527 | #endif |
|
|
5528 | char $ac_func (); |
|
|
5529 | /* The GNU C library defines this for functions which it implements |
|
|
5530 | to always fail with ENOSYS. Some functions are actually named |
|
|
5531 | something starting with __ and the normal name is an alias. */ |
|
|
5532 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
5533 | choke me |
|
|
5534 | #endif |
|
|
5535 | |
|
|
5536 | int |
|
|
5537 | main () |
|
|
5538 | { |
|
|
5539 | return $ac_func (); |
|
|
5540 | ; |
|
|
5541 | return 0; |
|
|
5542 | } |
|
|
5543 | _ACEOF |
|
|
5544 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5545 | if { (ac_try="$ac_link" |
|
|
5546 | case "(($ac_try" in |
|
|
5547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5548 | *) ac_try_echo=$ac_try;; |
|
|
5549 | esac |
|
|
5550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5551 | (eval "$ac_link") 2>conftest.er1 |
|
|
5552 | ac_status=$? |
|
|
5553 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5554 | rm -f conftest.er1 |
|
|
5555 | cat conftest.err >&5 |
|
|
5556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5557 | (exit $ac_status); } && { |
|
|
5558 | test -z "$ac_cxx_werror_flag" || |
|
|
5559 | test ! -s conftest.err |
|
|
5560 | } && test -s conftest$ac_exeext && |
|
|
5561 | $as_test_x conftest$ac_exeext; then |
|
|
5562 | eval "$as_ac_var=yes" |
|
|
5563 | else |
|
|
5564 | echo "$as_me: failed program was:" >&5 |
|
|
5565 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5566 | |
|
|
5567 | eval "$as_ac_var=no" |
|
|
5568 | fi |
|
|
5569 | |
|
|
5570 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5571 | conftest$ac_exeext conftest.$ac_ext |
|
|
5572 | fi |
|
|
5573 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
5574 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5575 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5576 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
5577 | cat >>confdefs.h <<_ACEOF |
|
|
5578 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
5579 | _ACEOF |
|
|
5580 | |
|
|
5581 | fi |
|
|
5582 | done |
|
|
5583 | |
|
|
5584 | |
|
|
5585 | { echo "$as_me:$LINENO: checking for clock_gettime" >&5 |
|
|
5586 | echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6; } |
|
|
5587 | if test "${ac_cv_func_clock_gettime+set}" = set; then |
|
|
5588 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5589 | else |
|
|
5590 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5591 | /* confdefs.h. */ |
|
|
5592 | _ACEOF |
|
|
5593 | cat confdefs.h >>conftest.$ac_ext |
|
|
5594 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5595 | /* end confdefs.h. */ |
|
|
5596 | /* Define clock_gettime to an innocuous variant, in case <limits.h> declares clock_gettime. |
|
|
5597 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5598 | #define clock_gettime innocuous_clock_gettime |
|
|
5599 | |
|
|
5600 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5601 | which can conflict with char clock_gettime (); below. |
|
|
5602 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5603 | <limits.h> exists even on freestanding compilers. */ |
|
|
5604 | |
|
|
5605 | #ifdef __STDC__ |
|
|
5606 | # include <limits.h> |
|
|
5607 | #else |
|
|
5608 | # include <assert.h> |
|
|
5609 | #endif |
|
|
5610 | |
|
|
5611 | #undef clock_gettime |
|
|
5612 | |
|
|
5613 | /* Override any GCC internal prototype to avoid an error. |
|
|
5614 | Use char because int might match the return type of a GCC |
|
|
5615 | builtin and then its argument prototype would still apply. */ |
|
|
5616 | #ifdef __cplusplus |
|
|
5617 | extern "C" |
|
|
5618 | #endif |
|
|
5619 | char clock_gettime (); |
|
|
5620 | /* The GNU C library defines this for functions which it implements |
|
|
5621 | to always fail with ENOSYS. Some functions are actually named |
|
|
5622 | something starting with __ and the normal name is an alias. */ |
|
|
5623 | #if defined __stub_clock_gettime || defined __stub___clock_gettime |
|
|
5624 | choke me |
|
|
5625 | #endif |
|
|
5626 | |
|
|
5627 | int |
|
|
5628 | main () |
|
|
5629 | { |
|
|
5630 | return clock_gettime (); |
|
|
5631 | ; |
|
|
5632 | return 0; |
|
|
5633 | } |
|
|
5634 | _ACEOF |
|
|
5635 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5636 | if { (ac_try="$ac_link" |
|
|
5637 | case "(($ac_try" in |
|
|
5638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5639 | *) ac_try_echo=$ac_try;; |
|
|
5640 | esac |
|
|
5641 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5642 | (eval "$ac_link") 2>conftest.er1 |
|
|
5643 | ac_status=$? |
|
|
5644 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5645 | rm -f conftest.er1 |
|
|
5646 | cat conftest.err >&5 |
|
|
5647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5648 | (exit $ac_status); } && { |
|
|
5649 | test -z "$ac_cxx_werror_flag" || |
|
|
5650 | test ! -s conftest.err |
|
|
5651 | } && test -s conftest$ac_exeext && |
|
|
5652 | $as_test_x conftest$ac_exeext; then |
|
|
5653 | ac_cv_func_clock_gettime=yes |
|
|
5654 | else |
|
|
5655 | echo "$as_me: failed program was:" >&5 |
|
|
5656 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5657 | |
|
|
5658 | ac_cv_func_clock_gettime=no |
|
|
5659 | fi |
|
|
5660 | |
|
|
5661 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5662 | conftest$ac_exeext conftest.$ac_ext |
|
|
5663 | fi |
|
|
5664 | { echo "$as_me:$LINENO: result: $ac_cv_func_clock_gettime" >&5 |
|
|
5665 | echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; } |
|
|
5666 | if test $ac_cv_func_clock_gettime = yes; then |
|
|
5667 | : |
|
|
5668 | else |
|
|
5669 | |
|
|
5670 | if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
|
|
5671 | |
|
|
5672 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
|
|
5673 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } |
|
|
5674 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
|
|
5675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5676 | else |
|
|
5677 | ac_check_lib_save_LIBS=$LIBS |
|
|
5678 | LIBS="-lrt $LIBS" |
|
|
5679 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5680 | /* confdefs.h. */ |
|
|
5681 | _ACEOF |
|
|
5682 | cat confdefs.h >>conftest.$ac_ext |
|
|
5683 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5684 | /* end confdefs.h. */ |
|
|
5685 | |
|
|
5686 | /* Override any GCC internal prototype to avoid an error. |
|
|
5687 | Use char because int might match the return type of a GCC |
|
|
5688 | builtin and then its argument prototype would still apply. */ |
|
|
5689 | #ifdef __cplusplus |
|
|
5690 | extern "C" |
|
|
5691 | #endif |
|
|
5692 | char clock_gettime (); |
|
|
5693 | int |
|
|
5694 | main () |
|
|
5695 | { |
|
|
5696 | return clock_gettime (); |
|
|
5697 | ; |
|
|
5698 | return 0; |
|
|
5699 | } |
|
|
5700 | _ACEOF |
|
|
5701 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5702 | if { (ac_try="$ac_link" |
|
|
5703 | case "(($ac_try" in |
|
|
5704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5705 | *) ac_try_echo=$ac_try;; |
|
|
5706 | esac |
|
|
5707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5708 | (eval "$ac_link") 2>conftest.er1 |
|
|
5709 | ac_status=$? |
|
|
5710 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5711 | rm -f conftest.er1 |
|
|
5712 | cat conftest.err >&5 |
|
|
5713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5714 | (exit $ac_status); } && { |
|
|
5715 | test -z "$ac_cxx_werror_flag" || |
|
|
5716 | test ! -s conftest.err |
|
|
5717 | } && test -s conftest$ac_exeext && |
|
|
5718 | $as_test_x conftest$ac_exeext; then |
|
|
5719 | ac_cv_lib_rt_clock_gettime=yes |
|
|
5720 | else |
|
|
5721 | echo "$as_me: failed program was:" >&5 |
|
|
5722 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5723 | |
|
|
5724 | ac_cv_lib_rt_clock_gettime=no |
|
|
5725 | fi |
|
|
5726 | |
|
|
5727 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5728 | conftest$ac_exeext conftest.$ac_ext |
|
|
5729 | LIBS=$ac_check_lib_save_LIBS |
|
|
5730 | fi |
|
|
5731 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
|
|
5732 | echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; } |
|
|
5733 | if test $ac_cv_lib_rt_clock_gettime = yes; then |
|
|
5734 | cat >>confdefs.h <<_ACEOF |
|
|
5735 | #define HAVE_LIBRT 1 |
|
|
5736 | _ACEOF |
|
|
5737 | |
|
|
5738 | LIBS="-lrt $LIBS" |
|
|
5739 | |
|
|
5740 | fi |
|
|
5741 | |
|
|
5742 | unset ac_cv_func_clock_gettime |
|
|
5743 | |
|
|
5744 | for ac_func in clock_gettime |
|
|
5745 | do |
|
|
5746 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
5747 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
5748 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
5749 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5751 | else |
|
|
5752 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5753 | /* confdefs.h. */ |
|
|
5754 | _ACEOF |
|
|
5755 | cat confdefs.h >>conftest.$ac_ext |
|
|
5756 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5757 | /* end confdefs.h. */ |
|
|
5758 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
5759 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5760 | #define $ac_func innocuous_$ac_func |
|
|
5761 | |
|
|
5762 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5763 | which can conflict with char $ac_func (); below. |
|
|
5764 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5765 | <limits.h> exists even on freestanding compilers. */ |
|
|
5766 | |
|
|
5767 | #ifdef __STDC__ |
|
|
5768 | # include <limits.h> |
|
|
5769 | #else |
|
|
5770 | # include <assert.h> |
|
|
5771 | #endif |
|
|
5772 | |
|
|
5773 | #undef $ac_func |
|
|
5774 | |
|
|
5775 | /* Override any GCC internal prototype to avoid an error. |
|
|
5776 | Use char because int might match the return type of a GCC |
|
|
5777 | builtin and then its argument prototype would still apply. */ |
|
|
5778 | #ifdef __cplusplus |
|
|
5779 | extern "C" |
|
|
5780 | #endif |
|
|
5781 | char $ac_func (); |
|
|
5782 | /* The GNU C library defines this for functions which it implements |
|
|
5783 | to always fail with ENOSYS. Some functions are actually named |
|
|
5784 | something starting with __ and the normal name is an alias. */ |
|
|
5785 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
5786 | choke me |
|
|
5787 | #endif |
|
|
5788 | |
|
|
5789 | int |
|
|
5790 | main () |
|
|
5791 | { |
|
|
5792 | return $ac_func (); |
|
|
5793 | ; |
|
|
5794 | return 0; |
|
|
5795 | } |
|
|
5796 | _ACEOF |
|
|
5797 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5798 | if { (ac_try="$ac_link" |
|
|
5799 | case "(($ac_try" in |
|
|
5800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5801 | *) ac_try_echo=$ac_try;; |
|
|
5802 | esac |
|
|
5803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5804 | (eval "$ac_link") 2>conftest.er1 |
|
|
5805 | ac_status=$? |
|
|
5806 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5807 | rm -f conftest.er1 |
|
|
5808 | cat conftest.err >&5 |
|
|
5809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5810 | (exit $ac_status); } && { |
|
|
5811 | test -z "$ac_cxx_werror_flag" || |
|
|
5812 | test ! -s conftest.err |
|
|
5813 | } && test -s conftest$ac_exeext && |
|
|
5814 | $as_test_x conftest$ac_exeext; then |
|
|
5815 | eval "$as_ac_var=yes" |
|
|
5816 | else |
|
|
5817 | echo "$as_me: failed program was:" >&5 |
|
|
5818 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5819 | |
|
|
5820 | eval "$as_ac_var=no" |
|
|
5821 | fi |
|
|
5822 | |
|
|
5823 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5824 | conftest$ac_exeext conftest.$ac_ext |
|
|
5825 | fi |
|
|
5826 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
5827 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5828 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5829 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
5830 | cat >>confdefs.h <<_ACEOF |
|
|
5831 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
5832 | _ACEOF |
|
|
5833 | |
|
|
5834 | fi |
|
|
5835 | done |
|
|
5836 | |
|
|
5837 | fi |
|
|
5838 | |
|
|
5839 | fi |
|
|
5840 | |
|
|
5841 | |
|
|
5842 | |
|
|
5843 | { echo "$as_me:$LINENO: checking for ceil in -lm" >&5 |
|
|
5844 | echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; } |
|
|
5845 | if test "${ac_cv_lib_m_ceil+set}" = set; then |
|
|
5846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5847 | else |
|
|
5848 | ac_check_lib_save_LIBS=$LIBS |
|
|
5849 | LIBS="-lm $LIBS" |
|
|
5850 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5851 | /* confdefs.h. */ |
|
|
5852 | _ACEOF |
|
|
5853 | cat confdefs.h >>conftest.$ac_ext |
|
|
5854 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5855 | /* end confdefs.h. */ |
|
|
5856 | |
|
|
5857 | /* Override any GCC internal prototype to avoid an error. |
|
|
5858 | Use char because int might match the return type of a GCC |
|
|
5859 | builtin and then its argument prototype would still apply. */ |
|
|
5860 | #ifdef __cplusplus |
|
|
5861 | extern "C" |
|
|
5862 | #endif |
|
|
5863 | char ceil (); |
|
|
5864 | int |
|
|
5865 | main () |
|
|
5866 | { |
|
|
5867 | return ceil (); |
|
|
5868 | ; |
|
|
5869 | return 0; |
|
|
5870 | } |
|
|
5871 | _ACEOF |
|
|
5872 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5873 | if { (ac_try="$ac_link" |
|
|
5874 | case "(($ac_try" in |
|
|
5875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5876 | *) ac_try_echo=$ac_try;; |
|
|
5877 | esac |
|
|
5878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5879 | (eval "$ac_link") 2>conftest.er1 |
|
|
5880 | ac_status=$? |
|
|
5881 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5882 | rm -f conftest.er1 |
|
|
5883 | cat conftest.err >&5 |
|
|
5884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5885 | (exit $ac_status); } && { |
|
|
5886 | test -z "$ac_cxx_werror_flag" || |
|
|
5887 | test ! -s conftest.err |
|
|
5888 | } && test -s conftest$ac_exeext && |
|
|
5889 | $as_test_x conftest$ac_exeext; then |
|
|
5890 | ac_cv_lib_m_ceil=yes |
|
|
5891 | else |
|
|
5892 | echo "$as_me: failed program was:" >&5 |
|
|
5893 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5894 | |
|
|
5895 | ac_cv_lib_m_ceil=no |
|
|
5896 | fi |
|
|
5897 | |
|
|
5898 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5899 | conftest$ac_exeext conftest.$ac_ext |
|
|
5900 | LIBS=$ac_check_lib_save_LIBS |
|
|
5901 | fi |
|
|
5902 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5 |
|
|
5903 | echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6; } |
|
|
5904 | if test $ac_cv_lib_m_ceil = yes; then |
|
|
5905 | cat >>confdefs.h <<_ACEOF |
|
|
5906 | #define HAVE_LIBM 1 |
|
|
5907 | _ACEOF |
|
|
5908 | |
|
|
5909 | LIBS="-lm $LIBS" |
|
|
5910 | |
|
|
5911 | fi |
|
|
5912 | |
|
|
5913 | |
|
|
5914 | |
|
|
5915 | |
4877 | |
5916 | |
4878 | |
5917 | |
4879 | |
5918 | |
4880 | # Extract the first word of "tic", so it can be a program name with args. |
5919 | # Extract the first word of "tic", so it can be a program name with args. |
4881 | set dummy tic; ac_word=$2 |
5920 | set dummy tic; ac_word=$2 |
… | |
… | |
4902 | fi |
5941 | fi |
4903 | done |
5942 | done |
4904 | done |
5943 | done |
4905 | IFS=$as_save_IFS |
5944 | IFS=$as_save_IFS |
4906 | |
5945 | |
|
|
5946 | test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":" |
4907 | ;; |
5947 | ;; |
4908 | esac |
5948 | esac |
4909 | fi |
5949 | fi |
4910 | TIC=$ac_cv_path_TIC |
5950 | TIC=$ac_cv_path_TIC |
4911 | if test -n "$TIC"; then |
5951 | if test -n "$TIC"; then |
… | |
… | |
4914 | else |
5954 | else |
4915 | { echo "$as_me:$LINENO: result: no" >&5 |
5955 | { echo "$as_me:$LINENO: result: no" >&5 |
4916 | echo "${ECHO_T}no" >&6; } |
5956 | echo "${ECHO_T}no" >&6; } |
4917 | fi |
5957 | fi |
4918 | |
5958 | |
4919 | |
|
|
4920 | |
|
|
4921 | |
|
|
4922 | |
|
|
4923 | ac_ext=cpp |
|
|
4924 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
4925 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4926 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4927 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
4928 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
4929 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
|
|
4930 | if test -z "$CXXCPP"; then |
|
|
4931 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
|
4932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4933 | else |
|
|
4934 | # Double quotes because CXXCPP needs to be expanded |
|
|
4935 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
4936 | do |
|
|
4937 | ac_preproc_ok=false |
|
|
4938 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4939 | do |
|
|
4940 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4941 | # with a fresh cross-compiler works. |
|
|
4942 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4943 | # <limits.h> exists even on freestanding compilers. |
|
|
4944 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4945 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4946 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4947 | /* confdefs.h. */ |
|
|
4948 | _ACEOF |
|
|
4949 | cat confdefs.h >>conftest.$ac_ext |
|
|
4950 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4951 | /* end confdefs.h. */ |
|
|
4952 | #ifdef __STDC__ |
|
|
4953 | # include <limits.h> |
|
|
4954 | #else |
|
|
4955 | # include <assert.h> |
|
|
4956 | #endif |
|
|
4957 | Syntax error |
|
|
4958 | _ACEOF |
|
|
4959 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4960 | case "(($ac_try" in |
|
|
4961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4962 | *) ac_try_echo=$ac_try;; |
|
|
4963 | esac |
|
|
4964 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4965 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4966 | ac_status=$? |
|
|
4967 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4968 | rm -f conftest.er1 |
|
|
4969 | cat conftest.err >&5 |
|
|
4970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4971 | (exit $ac_status); } >/dev/null && { |
|
|
4972 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4973 | test ! -s conftest.err |
|
|
4974 | }; then |
|
|
4975 | : |
|
|
4976 | else |
|
|
4977 | echo "$as_me: failed program was:" >&5 |
|
|
4978 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4979 | |
|
|
4980 | # Broken: fails on valid input. |
|
|
4981 | continue |
|
|
4982 | fi |
|
|
4983 | |
|
|
4984 | rm -f conftest.err conftest.$ac_ext |
|
|
4985 | |
|
|
4986 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
4987 | # can be detected and how. |
|
|
4988 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4989 | /* confdefs.h. */ |
|
|
4990 | _ACEOF |
|
|
4991 | cat confdefs.h >>conftest.$ac_ext |
|
|
4992 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4993 | /* end confdefs.h. */ |
|
|
4994 | #include <ac_nonexistent.h> |
|
|
4995 | _ACEOF |
|
|
4996 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4997 | case "(($ac_try" in |
|
|
4998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4999 | *) ac_try_echo=$ac_try;; |
|
|
5000 | esac |
|
|
5001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5002 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5003 | ac_status=$? |
|
|
5004 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5005 | rm -f conftest.er1 |
|
|
5006 | cat conftest.err >&5 |
|
|
5007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5008 | (exit $ac_status); } >/dev/null && { |
|
|
5009 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5010 | test ! -s conftest.err |
|
|
5011 | }; then |
|
|
5012 | # Broken: success on invalid input. |
|
|
5013 | continue |
|
|
5014 | else |
|
|
5015 | echo "$as_me: failed program was:" >&5 |
|
|
5016 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5017 | |
|
|
5018 | # Passes both tests. |
|
|
5019 | ac_preproc_ok=: |
|
|
5020 | break |
|
|
5021 | fi |
|
|
5022 | |
|
|
5023 | rm -f conftest.err conftest.$ac_ext |
|
|
5024 | |
|
|
5025 | done |
|
|
5026 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5027 | rm -f conftest.err conftest.$ac_ext |
|
|
5028 | if $ac_preproc_ok; then |
|
|
5029 | break |
|
|
5030 | fi |
|
|
5031 | |
|
|
5032 | done |
|
|
5033 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5034 | |
|
|
5035 | fi |
|
|
5036 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
5037 | else |
|
|
5038 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5039 | fi |
|
|
5040 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
5041 | echo "${ECHO_T}$CXXCPP" >&6; } |
|
|
5042 | ac_preproc_ok=false |
|
|
5043 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
5044 | do |
|
|
5045 | # Use a header file that comes with gcc, so configuring glibc |
|
|
5046 | # with a fresh cross-compiler works. |
|
|
5047 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5048 | # <limits.h> exists even on freestanding compilers. |
|
|
5049 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
5050 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
5051 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5052 | /* confdefs.h. */ |
|
|
5053 | _ACEOF |
|
|
5054 | cat confdefs.h >>conftest.$ac_ext |
|
|
5055 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5056 | /* end confdefs.h. */ |
|
|
5057 | #ifdef __STDC__ |
|
|
5058 | # include <limits.h> |
|
|
5059 | #else |
|
|
5060 | # include <assert.h> |
|
|
5061 | #endif |
|
|
5062 | Syntax error |
|
|
5063 | _ACEOF |
|
|
5064 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5065 | case "(($ac_try" in |
|
|
5066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5067 | *) ac_try_echo=$ac_try;; |
|
|
5068 | esac |
|
|
5069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5070 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5071 | ac_status=$? |
|
|
5072 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5073 | rm -f conftest.er1 |
|
|
5074 | cat conftest.err >&5 |
|
|
5075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5076 | (exit $ac_status); } >/dev/null && { |
|
|
5077 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5078 | test ! -s conftest.err |
|
|
5079 | }; then |
|
|
5080 | : |
|
|
5081 | else |
|
|
5082 | echo "$as_me: failed program was:" >&5 |
|
|
5083 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5084 | |
|
|
5085 | # Broken: fails on valid input. |
|
|
5086 | continue |
|
|
5087 | fi |
|
|
5088 | |
|
|
5089 | rm -f conftest.err conftest.$ac_ext |
|
|
5090 | |
|
|
5091 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
5092 | # can be detected and how. |
|
|
5093 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5094 | /* confdefs.h. */ |
|
|
5095 | _ACEOF |
|
|
5096 | cat confdefs.h >>conftest.$ac_ext |
|
|
5097 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5098 | /* end confdefs.h. */ |
|
|
5099 | #include <ac_nonexistent.h> |
|
|
5100 | _ACEOF |
|
|
5101 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5102 | case "(($ac_try" in |
|
|
5103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5104 | *) ac_try_echo=$ac_try;; |
|
|
5105 | esac |
|
|
5106 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5107 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5108 | ac_status=$? |
|
|
5109 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5110 | rm -f conftest.er1 |
|
|
5111 | cat conftest.err >&5 |
|
|
5112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5113 | (exit $ac_status); } >/dev/null && { |
|
|
5114 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5115 | test ! -s conftest.err |
|
|
5116 | }; then |
|
|
5117 | # Broken: success on invalid input. |
|
|
5118 | continue |
|
|
5119 | else |
|
|
5120 | echo "$as_me: failed program was:" >&5 |
|
|
5121 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5122 | |
|
|
5123 | # Passes both tests. |
|
|
5124 | ac_preproc_ok=: |
|
|
5125 | break |
|
|
5126 | fi |
|
|
5127 | |
|
|
5128 | rm -f conftest.err conftest.$ac_ext |
|
|
5129 | |
|
|
5130 | done |
|
|
5131 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5132 | rm -f conftest.err conftest.$ac_ext |
|
|
5133 | if $ac_preproc_ok; then |
|
|
5134 | : |
|
|
5135 | else |
|
|
5136 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5137 | See \`config.log' for more details." >&5 |
|
|
5138 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5139 | See \`config.log' for more details." >&2;} |
|
|
5140 | { (exit 1); exit 1; }; } |
|
|
5141 | fi |
|
|
5142 | |
|
|
5143 | ac_ext=cpp |
|
|
5144 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5145 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5146 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5147 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
5148 | |
5959 | |
5149 | |
5960 | |
5150 | { echo "$as_me:$LINENO: checking for X" >&5 |
5961 | { echo "$as_me:$LINENO: checking for X" >&5 |
5151 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
5962 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
5152 | |
5963 | |
… | |
… | |
6460 | LDFLAGS=$ac_save_LDFLAGS |
7271 | LDFLAGS=$ac_save_LDFLAGS |
6461 | |
7272 | |
6462 | fi |
7273 | fi |
6463 | |
7274 | |
6464 | |
7275 | |
6465 | |
|
|
6466 | LIBAFTERIMAGE_CFLAGS= |
7276 | AFTERIMAGE_CFLAGS= |
6467 | AFTERIMAGE_LIBS= |
7277 | AFTERIMAGE_LIBS= |
6468 | have_afterimage= |
7278 | AFTERIMAGE_VERSION= |
6469 | |
7279 | |
6470 | if test x$support_afterimage = xyes; then |
7280 | if test x$support_afterimage = xyes; then |
6471 | support_afterimage=no |
7281 | support_afterimage=no |
6472 | |
7282 | |
6473 | if test "x$afterimage_config" = "x" ; then |
7283 | if test "x$afterimage_config" = "x" ; then |
… | |
… | |
6511 | echo "${ECHO_T}no" >&6; } |
7321 | echo "${ECHO_T}no" >&6; } |
6512 | fi |
7322 | fi |
6513 | |
7323 | |
6514 | |
7324 | |
6515 | fi |
7325 | fi |
6516 | |
7326 | if test "x$afterimage_config" != "xno" ; then |
6517 | { echo "$as_me:$LINENO: checking for libAfterImage" >&5 |
7327 | { echo "$as_me:$LINENO: checking for libAfterImage version >= 1.15" >&5 |
6518 | echo $ECHO_N "checking for libAfterImage... $ECHO_C" >&6; } |
7328 | echo $ECHO_N "checking for libAfterImage version >= 1.15... $ECHO_C" >&6; } |
6519 | if $afterimage_config --version >/dev/null 2>&1 ; then |
7329 | xAFTERIMAGE_VERSION=`$afterimage_config --version` |
|
|
7330 | if test -n "$xAFTERIMAGE_VERSION" ; then |
6520 | LIBAFTERIMAGE_CFLAGS=`$afterimage_config --cflags` |
7331 | xAFTERIMAGE_CFLAGS=`$afterimage_config --cflags` |
6521 | AFTERIMAGE_LIBS=`$afterimage_config --libs` |
7332 | xAFTERIMAGE_LIBS=`$afterimage_config --libs` |
6522 | if test "x$AFTERIMAGE_LIBS" != "x"; then |
7333 | if test "x$xAFTERIMAGE_LIBS" != "x"; then |
|
|
7334 | libai_ver_major=`echo $xAFTERIMAGE_VERSION | cut -f 1 -d .` |
|
|
7335 | libai_ver_minor=`echo $xAFTERIMAGE_VERSION | cut -f 2 -d .` |
|
|
7336 | if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then |
6523 | support_afterimage=yes |
7337 | support_afterimage=yes |
6524 | fi |
7338 | AFTERIMAGE_CFLAGS="$xAFTERIMAGE_CFLAGS" |
6525 | fi |
7339 | AFTERIMAGE_LIBS="$xAFTERIMAGE_LIBS" |
6526 | |
7340 | AFTERIMAGE_VERSION="$xAFTERIMAGE_VERSION" |
6527 | if test "x$support_afterimage" = "xyes"; then |
|
|
6528 | { echo "$as_me:$LINENO: result: $AFTERIMAGE_LIBS" >&5 |
|
|
6529 | echo "${ECHO_T}$AFTERIMAGE_LIBS" >&6; } |
|
|
6530 | else |
|
|
6531 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
6532 | echo "${ECHO_T}no" >&6; } |
|
|
6533 | fi |
|
|
6534 | fi |
|
|
6535 | |
|
|
6536 | if test x$support_afterimage != xyes -a x$support_xpm = xyes ; then |
|
|
6537 | |
|
|
6538 | |
|
|
6539 | |
|
|
6540 | # Initialize some more variables set by options. |
|
|
6541 | # The variables have the same names as the options, with |
|
|
6542 | # dashes changed to underlines. |
|
|
6543 | |
|
|
6544 | # If we find XPM, set shell vars xpm_includes and xpm_libraries to the |
|
|
6545 | # paths, otherwise set no_xpm=yes. |
|
|
6546 | # Uses ac_ vars as temps to allow command line to override cache and checks. |
|
|
6547 | { echo "$as_me:$LINENO: checking for libXpm" >&5 |
|
|
6548 | echo $ECHO_N "checking for libXpm... $ECHO_C" >&6; } |
|
|
6549 | |
|
|
6550 | |
|
|
6551 | # Check whether --with-xpm_includes was given. |
|
|
6552 | if test "${with_xpm_includes+set}" = set; then |
|
|
6553 | withval=$with_xpm_includes; xpm_includes="$withval" |
|
|
6554 | else |
|
|
6555 | xpm_includes=NO |
|
|
6556 | fi |
|
|
6557 | |
|
|
6558 | |
|
|
6559 | # Check whether --with-xpm_library was given. |
|
|
6560 | if test "${with_xpm_library+set}" = set; then |
|
|
6561 | withval=$with_xpm_library; xpm_libraries="$withval" |
|
|
6562 | else |
|
|
6563 | xpm_libraries=NO |
|
|
6564 | fi |
|
|
6565 | |
|
|
6566 | |
|
|
6567 | # --without-xpm overrides everything else, but does not touch the cache. |
|
|
6568 | |
|
|
6569 | # Check whether --with-xpm was given. |
|
|
6570 | if test "${with_xpm+set}" = set; then |
|
|
6571 | withval=$with_xpm; |
|
|
6572 | fi |
|
|
6573 | |
|
|
6574 | if test "$with_xpm" = no; then |
|
|
6575 | have_xpm=disabled |
|
|
6576 | else |
|
|
6577 | if test "${ac_cv_have_xpm+set}" = set; then |
|
|
6578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6579 | else |
|
|
6580 | |
|
|
6581 | vt_xpm_include_X11=no |
|
|
6582 | if test -n "$xpm_includes"; then |
|
|
6583 | vt_xpm_includes=$xpm_includes |
|
|
6584 | else |
|
|
6585 | vt_xpm_includes=NO |
|
|
6586 | fi |
|
|
6587 | if test -n "$xpm_libraries"; then |
|
|
6588 | vt_xpm_libraries=$xpm_libraries |
|
|
6589 | else |
|
|
6590 | vt_xpm_libraries=NO |
|
|
6591 | fi |
|
|
6592 | |
|
|
6593 | if test "$vt_xpm_includes" = NO; then |
|
|
6594 | # Guess where to find xpm.h |
|
|
6595 | |
|
|
6596 | ac_save_CPPFLAGS="$CPPFLAGS" |
|
|
6597 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
|
|
6598 | |
|
|
6599 | # First, try using that file with no special directory specified. |
|
|
6600 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6601 | /* confdefs.h. */ |
|
|
6602 | _ACEOF |
|
|
6603 | cat confdefs.h >>conftest.$ac_ext |
|
|
6604 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6605 | /* end confdefs.h. */ |
|
|
6606 | #include <X11/xpm.h> |
|
|
6607 | _ACEOF |
|
|
6608 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
6609 | case "(($ac_try" in |
|
|
6610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6611 | *) ac_try_echo=$ac_try;; |
|
|
6612 | esac |
|
|
6613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6614 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
6615 | ac_status=$? |
|
|
6616 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6617 | rm -f conftest.er1 |
|
|
6618 | cat conftest.err >&5 |
|
|
6619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6620 | (exit $ac_status); } >/dev/null && { |
|
|
6621 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
6622 | test ! -s conftest.err |
|
|
6623 | }; then |
|
|
6624 | # We can compile using X headers with no special include directory. |
|
|
6625 | vt_xpm_includes= |
|
|
6626 | vt_xpm_include_X11=yes |
|
|
6627 | else |
|
|
6628 | echo "$as_me: failed program was:" >&5 |
|
|
6629 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6630 | |
|
|
6631 | CPPFLAGS="$ac_save_CPPFLAGS" |
|
|
6632 | # Look for the header file in a standard set of common directories. |
|
|
6633 | for ac_dir in \ |
|
|
6634 | /usr/X11/include \ |
|
|
6635 | /usr/X11R6/include \ |
|
|
6636 | /usr/X11R5/include \ |
|
|
6637 | /usr/X11R4/include \ |
|
|
6638 | \ |
|
|
6639 | /usr/include/X11 \ |
|
|
6640 | /usr/include/X11R6 \ |
|
|
6641 | /usr/include/X11R5 \ |
|
|
6642 | /usr/include/X11R4 \ |
|
|
6643 | \ |
|
|
6644 | /usr/local/X11/include \ |
|
|
6645 | /usr/local/X11R6/include \ |
|
|
6646 | /usr/local/X11R5/include \ |
|
|
6647 | /usr/local/X11R4/include \ |
|
|
6648 | \ |
|
|
6649 | /usr/local/include/X11 \ |
|
|
6650 | /usr/local/include/X11R6 \ |
|
|
6651 | /usr/local/include/X11R5 \ |
|
|
6652 | /usr/local/include/X11R4 \ |
|
|
6653 | \ |
|
|
6654 | /usr/X386/include \ |
|
|
6655 | /usr/x386/include \ |
|
|
6656 | /usr/XFree86/include/X11 \ |
|
|
6657 | \ |
|
|
6658 | /usr/include \ |
|
|
6659 | /usr/local/include \ |
|
|
6660 | /usr/unsupported/include \ |
|
|
6661 | /usr/athena/include \ |
|
|
6662 | /usr/local/x11r5/include \ |
|
|
6663 | /usr/lpp/Xamples/include \ |
|
|
6664 | \ |
|
|
6665 | /usr/openwin/include \ |
|
|
6666 | /usr/openwin/share/include \ |
|
|
6667 | ; \ |
|
|
6668 | do |
|
|
6669 | if test -r "$ac_dir/X11/xpm.h"; then |
|
|
6670 | vt_xpm_includes="$ac_dir" |
|
|
6671 | vt_xpm_include_X11=yes |
|
|
6672 | break |
|
|
6673 | else |
|
|
6674 | if test -r "$ac_dir/xpm.h"; then |
|
|
6675 | vt_xpm_includes=$ac_dir |
|
|
6676 | break |
|
|
6677 | fi |
|
|
6678 | fi |
|
|
6679 | done |
|
|
6680 | fi |
|
|
6681 | |
|
|
6682 | rm -f conftest.err conftest.$ac_ext |
|
|
6683 | fi |
|
|
6684 | |
|
|
6685 | if test "$vt_xpm_libraries" = NO; then |
|
|
6686 | # Check for the libraries. |
|
|
6687 | |
|
|
6688 | # See if we find them without any special options. |
|
|
6689 | # Don't add to $LIBS permanently. |
|
|
6690 | ac_save_LIBS="$LIBS" |
|
|
6691 | LIBS="$LIBS $X_LIBS -lXpm -lX11" |
|
|
6692 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6693 | /* confdefs.h. */ |
|
|
6694 | _ACEOF |
|
|
6695 | cat confdefs.h >>conftest.$ac_ext |
|
|
6696 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6697 | /* end confdefs.h. */ |
|
|
6698 | |
|
|
6699 | int |
|
|
6700 | main () |
|
|
6701 | { |
|
|
6702 | XpmReadFileToPixmap() |
|
|
6703 | ; |
|
|
6704 | return 0; |
|
|
6705 | } |
|
|
6706 | _ACEOF |
|
|
6707 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6708 | if { (ac_try="$ac_link" |
|
|
6709 | case "(($ac_try" in |
|
|
6710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6711 | *) ac_try_echo=$ac_try;; |
|
|
6712 | esac |
|
|
6713 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6714 | (eval "$ac_link") 2>conftest.er1 |
|
|
6715 | ac_status=$? |
|
|
6716 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6717 | rm -f conftest.er1 |
|
|
6718 | cat conftest.err >&5 |
|
|
6719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6720 | (exit $ac_status); } && { |
|
|
6721 | test -z "$ac_cxx_werror_flag" || |
|
|
6722 | test ! -s conftest.err |
|
|
6723 | } && test -s conftest$ac_exeext && |
|
|
6724 | $as_test_x conftest$ac_exeext; then |
|
|
6725 | LIBS="$ac_save_LIBS" |
|
|
6726 | # We can link libXpm with no special library path. |
|
|
6727 | vt_xpm_libraries= |
|
|
6728 | else |
|
|
6729 | echo "$as_me: failed program was:" >&5 |
|
|
6730 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6731 | |
|
|
6732 | LIBS="$ac_save_LIBS" |
|
|
6733 | # First see if replacing the include by lib works. |
|
|
6734 | for ac_dir in \ |
|
|
6735 | `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \ |
|
|
6736 | /usr/X11/lib \ |
|
|
6737 | /usr/X11R6/lib \ |
|
|
6738 | /usr/X11R5/lib \ |
|
|
6739 | /usr/X11R4/lib \ |
|
|
6740 | \ |
|
|
6741 | /usr/lib/X11 \ |
|
|
6742 | /usr/lib/X11R6 \ |
|
|
6743 | /usr/lib/X11R5 \ |
|
|
6744 | /usr/lib/X11R4 \ |
|
|
6745 | \ |
|
|
6746 | /usr/local/X11/lib \ |
|
|
6747 | /usr/local/X11R6/lib \ |
|
|
6748 | /usr/local/X11R5/lib \ |
|
|
6749 | /usr/local/X11R4/lib \ |
|
|
6750 | \ |
|
|
6751 | /usr/local/lib/X11 \ |
|
|
6752 | /usr/local/lib/X11R6 \ |
|
|
6753 | /usr/local/lib/X11R5 \ |
|
|
6754 | /usr/local/lib/X11R4 \ |
|
|
6755 | \ |
|
|
6756 | /usr/X386/lib \ |
|
|
6757 | /usr/x386/lib \ |
|
|
6758 | /usr/XFree86/lib/X11 \ |
|
|
6759 | \ |
|
|
6760 | /usr/lib \ |
|
|
6761 | /usr/local/lib \ |
|
|
6762 | /usr/unsupported/lib \ |
|
|
6763 | /usr/athena/lib \ |
|
|
6764 | /usr/local/x11r5/lib \ |
|
|
6765 | /usr/lpp/Xamples/lib \ |
|
|
6766 | \ |
|
|
6767 | /usr/openwin/lib \ |
|
|
6768 | /usr/openwin/share/lib \ |
|
|
6769 | ; \ |
|
|
6770 | do |
|
|
6771 | for ac_extension in a so sl; do |
|
|
6772 | if test -r $ac_dir/libXpm.$ac_extension; then |
|
|
6773 | vt_xpm_libraries=$ac_dir |
|
|
6774 | break 2 |
|
|
6775 | fi |
|
|
6776 | done |
|
|
6777 | done |
|
|
6778 | fi |
|
|
6779 | |
|
|
6780 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6781 | conftest$ac_exeext conftest.$ac_ext |
|
|
6782 | fi |
|
|
6783 | |
|
|
6784 | |
|
|
6785 | if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then |
|
|
6786 | ac_cv_have_xpm="have_xpm=no" |
|
|
6787 | else |
|
|
6788 | ac_cv_have_xpm="have_xpm=yes \ |
|
|
6789 | vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \ |
|
|
6790 | vt_xpm_include_X11=$vt_xpm_include_X11" |
|
|
6791 | fi |
|
|
6792 | fi |
|
|
6793 | eval "$ac_cv_have_xpm" |
|
|
6794 | fi |
|
|
6795 | |
|
|
6796 | if test "$have_xpm" != yes; then |
|
|
6797 | { echo "$as_me:$LINENO: result: $have_xpm" >&5 |
|
|
6798 | echo "${ECHO_T}$have_xpm" >&6; } |
|
|
6799 | no_xpm=yes |
|
|
6800 | else |
|
|
6801 | if test "$xpm_includes" != NO; then |
|
|
6802 | if test "$xpm_includes" = "$vt_xpm_includes"; then |
|
|
6803 | if test -r "$xpm_includes/X11/xpm.h"; then |
|
|
6804 | vt_xpm_include_X11=yes |
|
|
6805 | fi |
|
|
6806 | else |
|
|
6807 | vt_xpm_include_X11=no |
|
|
6808 | if test -z "$xpm_includes"; then |
|
|
6809 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6810 | /* confdefs.h. */ |
|
|
6811 | _ACEOF |
|
|
6812 | cat confdefs.h >>conftest.$ac_ext |
|
|
6813 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6814 | /* end confdefs.h. */ |
|
|
6815 | #include <X11/xpm.h> |
|
|
6816 | _ACEOF |
|
|
6817 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
6818 | case "(($ac_try" in |
|
|
6819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6820 | *) ac_try_echo=$ac_try;; |
|
|
6821 | esac |
|
|
6822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6823 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
6824 | ac_status=$? |
|
|
6825 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6826 | rm -f conftest.er1 |
|
|
6827 | cat conftest.err >&5 |
|
|
6828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6829 | (exit $ac_status); } >/dev/null && { |
|
|
6830 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
6831 | test ! -s conftest.err |
|
|
6832 | }; then |
|
|
6833 | vt_xpm_include_X11=yes |
|
|
6834 | else |
|
|
6835 | echo "$as_me: failed program was:" >&5 |
|
|
6836 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6837 | |
|
|
6838 | |
|
|
6839 | fi |
|
|
6840 | |
|
|
6841 | rm -f conftest.err conftest.$ac_ext |
|
|
6842 | else |
|
|
6843 | if test -r "$xpm_includes/X11/xpm.h"; then |
|
|
6844 | vt_xpm_include_X11=yes |
|
|
6845 | fi |
7341 | fi |
6846 | fi |
7342 | fi |
6847 | fi |
7343 | fi |
6848 | vt_xpm_includes=$xpm_includes |
7344 | if test "x$support_afterimage" = "xyes"; then |
|
|
7345 | { echo "$as_me:$LINENO: result: $AFTERIMAGE_LIBS" >&5 |
|
|
7346 | echo "${ECHO_T}$AFTERIMAGE_LIBS" >&6; } |
|
|
7347 | else |
|
|
7348 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
7349 | echo "${ECHO_T}no" >&6; } |
|
|
7350 | fi |
6849 | fi |
7351 | fi |
6850 | if test "x$xpm_libraries" != xNO; then |
|
|
6851 | vt_xpm_libraries=$xpm_libraries |
|
|
6852 | fi |
|
|
6853 | # Update the cache value to reflect the command line values. |
|
|
6854 | ac_cv_have_xpm="have_xpm=yes \ |
|
|
6855 | vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \ |
|
|
6856 | vt_xpm_include_X11=$vt_xpm_include_X11" |
|
|
6857 | eval "$ac_cv_have_xpm" |
|
|
6858 | { echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5 |
|
|
6859 | echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6; } |
|
|
6860 | if test -n "$vt_xpm_includes"; then |
|
|
6861 | XPM_CPPFLAGS="-DHAVE_LIBXPM" |
|
|
6862 | fi |
|
|
6863 | if test -n "$vt_xpm_includes"; then |
|
|
6864 | XPM_CFLAGS="-I$vt_xpm_includes" |
|
|
6865 | fi |
|
|
6866 | XPM_LIBS="-lXpm" |
|
|
6867 | if test -n "$vt_xpm_libraries"; then |
|
|
6868 | XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS" |
|
|
6869 | fi |
|
|
6870 | if test "x$vt_xpm_include_X11" = xyes; then |
|
|
6871 | |
|
|
6872 | cat >>confdefs.h <<\_ACEOF |
|
|
6873 | #define XPM_INC_X11 1 |
|
|
6874 | _ACEOF |
|
|
6875 | |
|
|
6876 | fi |
|
|
6877 | fi |
7352 | fi |
6878 | |
|
|
6879 | |
|
|
6880 | |
|
|
6881 | |
|
|
6882 | |
|
|
6883 | if test x$no_xpm = xyes; then |
|
|
6884 | support_xpm=needsmanualspecification |
|
|
6885 | fi |
|
|
6886 | fi |
|
|
6887 | |
|
|
6888 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
|
|
6889 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
|
|
6890 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
|
|
6891 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6892 | else |
|
|
6893 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6894 | /* confdefs.h. */ |
|
|
6895 | _ACEOF |
|
|
6896 | cat confdefs.h >>conftest.$ac_ext |
|
|
6897 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6898 | /* end confdefs.h. */ |
|
|
6899 | #include <sys/types.h> |
|
|
6900 | #include <sys/wait.h> |
|
|
6901 | #ifndef WEXITSTATUS |
|
|
6902 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
|
|
6903 | #endif |
|
|
6904 | #ifndef WIFEXITED |
|
|
6905 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
|
|
6906 | #endif |
|
|
6907 | |
|
|
6908 | int |
|
|
6909 | main () |
|
|
6910 | { |
|
|
6911 | int s; |
|
|
6912 | wait (&s); |
|
|
6913 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
|
|
6914 | ; |
|
|
6915 | return 0; |
|
|
6916 | } |
|
|
6917 | _ACEOF |
|
|
6918 | rm -f conftest.$ac_objext |
|
|
6919 | if { (ac_try="$ac_compile" |
|
|
6920 | case "(($ac_try" in |
|
|
6921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6922 | *) ac_try_echo=$ac_try;; |
|
|
6923 | esac |
|
|
6924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6925 | (eval "$ac_compile") 2>conftest.er1 |
|
|
6926 | ac_status=$? |
|
|
6927 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6928 | rm -f conftest.er1 |
|
|
6929 | cat conftest.err >&5 |
|
|
6930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6931 | (exit $ac_status); } && { |
|
|
6932 | test -z "$ac_cxx_werror_flag" || |
|
|
6933 | test ! -s conftest.err |
|
|
6934 | } && test -s conftest.$ac_objext; then |
|
|
6935 | ac_cv_header_sys_wait_h=yes |
|
|
6936 | else |
|
|
6937 | echo "$as_me: failed program was:" >&5 |
|
|
6938 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6939 | |
|
|
6940 | ac_cv_header_sys_wait_h=no |
|
|
6941 | fi |
|
|
6942 | |
|
|
6943 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6944 | fi |
|
|
6945 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
|
|
6946 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
|
|
6947 | if test $ac_cv_header_sys_wait_h = yes; then |
|
|
6948 | |
|
|
6949 | cat >>confdefs.h <<\_ACEOF |
|
|
6950 | #define HAVE_SYS_WAIT_H 1 |
|
|
6951 | _ACEOF |
|
|
6952 | |
|
|
6953 | fi |
|
|
6954 | |
|
|
6955 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
6956 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
|
|
6957 | if test "${ac_cv_header_stdc+set}" = set; then |
|
|
6958 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6959 | else |
|
|
6960 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6961 | /* confdefs.h. */ |
|
|
6962 | _ACEOF |
|
|
6963 | cat confdefs.h >>conftest.$ac_ext |
|
|
6964 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6965 | /* end confdefs.h. */ |
|
|
6966 | #include <stdlib.h> |
|
|
6967 | #include <stdarg.h> |
|
|
6968 | #include <string.h> |
|
|
6969 | #include <float.h> |
|
|
6970 | |
|
|
6971 | int |
|
|
6972 | main () |
|
|
6973 | { |
|
|
6974 | |
|
|
6975 | ; |
|
|
6976 | return 0; |
|
|
6977 | } |
|
|
6978 | _ACEOF |
|
|
6979 | rm -f conftest.$ac_objext |
|
|
6980 | if { (ac_try="$ac_compile" |
|
|
6981 | case "(($ac_try" in |
|
|
6982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6983 | *) ac_try_echo=$ac_try;; |
|
|
6984 | esac |
|
|
6985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6986 | (eval "$ac_compile") 2>conftest.er1 |
|
|
6987 | ac_status=$? |
|
|
6988 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6989 | rm -f conftest.er1 |
|
|
6990 | cat conftest.err >&5 |
|
|
6991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6992 | (exit $ac_status); } && { |
|
|
6993 | test -z "$ac_cxx_werror_flag" || |
|
|
6994 | test ! -s conftest.err |
|
|
6995 | } && test -s conftest.$ac_objext; then |
|
|
6996 | ac_cv_header_stdc=yes |
|
|
6997 | else |
|
|
6998 | echo "$as_me: failed program was:" >&5 |
|
|
6999 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7000 | |
|
|
7001 | ac_cv_header_stdc=no |
|
|
7002 | fi |
|
|
7003 | |
|
|
7004 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7005 | |
|
|
7006 | if test $ac_cv_header_stdc = yes; then |
|
|
7007 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
7008 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7009 | /* confdefs.h. */ |
|
|
7010 | _ACEOF |
|
|
7011 | cat confdefs.h >>conftest.$ac_ext |
|
|
7012 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7013 | /* end confdefs.h. */ |
|
|
7014 | #include <string.h> |
|
|
7015 | |
|
|
7016 | _ACEOF |
|
|
7017 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
7018 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
7019 | : |
|
|
7020 | else |
|
|
7021 | ac_cv_header_stdc=no |
|
|
7022 | fi |
|
|
7023 | rm -f conftest* |
|
|
7024 | |
|
|
7025 | fi |
|
|
7026 | |
|
|
7027 | if test $ac_cv_header_stdc = yes; then |
|
|
7028 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
7029 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7030 | /* confdefs.h. */ |
|
|
7031 | _ACEOF |
|
|
7032 | cat confdefs.h >>conftest.$ac_ext |
|
|
7033 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7034 | /* end confdefs.h. */ |
|
|
7035 | #include <stdlib.h> |
|
|
7036 | |
|
|
7037 | _ACEOF |
|
|
7038 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
7039 | $EGREP "free" >/dev/null 2>&1; then |
|
|
7040 | : |
|
|
7041 | else |
|
|
7042 | ac_cv_header_stdc=no |
|
|
7043 | fi |
|
|
7044 | rm -f conftest* |
|
|
7045 | |
|
|
7046 | fi |
|
|
7047 | |
|
|
7048 | if test $ac_cv_header_stdc = yes; then |
|
|
7049 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
7050 | if test "$cross_compiling" = yes; then |
|
|
7051 | : |
|
|
7052 | else |
|
|
7053 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7054 | /* confdefs.h. */ |
|
|
7055 | _ACEOF |
|
|
7056 | cat confdefs.h >>conftest.$ac_ext |
|
|
7057 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7058 | /* end confdefs.h. */ |
|
|
7059 | #include <ctype.h> |
|
|
7060 | #include <stdlib.h> |
|
|
7061 | #if ((' ' & 0x0FF) == 0x020) |
|
|
7062 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
7063 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
7064 | #else |
|
|
7065 | # define ISLOWER(c) \ |
|
|
7066 | (('a' <= (c) && (c) <= 'i') \ |
|
|
7067 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
7068 | || ('s' <= (c) && (c) <= 'z')) |
|
|
7069 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
7070 | #endif |
|
|
7071 | |
|
|
7072 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
7073 | int |
|
|
7074 | main () |
|
|
7075 | { |
|
|
7076 | int i; |
|
|
7077 | for (i = 0; i < 256; i++) |
|
|
7078 | if (XOR (islower (i), ISLOWER (i)) |
|
|
7079 | || toupper (i) != TOUPPER (i)) |
|
|
7080 | return 2; |
|
|
7081 | return 0; |
|
|
7082 | } |
|
|
7083 | _ACEOF |
|
|
7084 | rm -f conftest$ac_exeext |
|
|
7085 | if { (ac_try="$ac_link" |
|
|
7086 | case "(($ac_try" in |
|
|
7087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7088 | *) ac_try_echo=$ac_try;; |
|
|
7089 | esac |
|
|
7090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7091 | (eval "$ac_link") 2>&5 |
|
|
7092 | ac_status=$? |
|
|
7093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7094 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
7095 | { (case "(($ac_try" in |
|
|
7096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7097 | *) ac_try_echo=$ac_try;; |
|
|
7098 | esac |
|
|
7099 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7100 | (eval "$ac_try") 2>&5 |
|
|
7101 | ac_status=$? |
|
|
7102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7103 | (exit $ac_status); }; }; then |
|
|
7104 | : |
|
|
7105 | else |
|
|
7106 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
7107 | echo "$as_me: failed program was:" >&5 |
|
|
7108 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7109 | |
|
|
7110 | ( exit $ac_status ) |
|
|
7111 | ac_cv_header_stdc=no |
|
|
7112 | fi |
|
|
7113 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
7114 | fi |
|
|
7115 | |
|
|
7116 | |
|
|
7117 | fi |
|
|
7118 | fi |
|
|
7119 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
7120 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
|
|
7121 | if test $ac_cv_header_stdc = yes; then |
|
|
7122 | |
|
|
7123 | cat >>confdefs.h <<\_ACEOF |
|
|
7124 | #define STDC_HEADERS 1 |
|
|
7125 | _ACEOF |
|
|
7126 | |
|
|
7127 | fi |
|
|
7128 | |
|
|
7129 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
7130 | |
|
|
7131 | |
|
|
7132 | |
|
|
7133 | |
|
|
7134 | |
|
|
7135 | |
|
|
7136 | |
|
|
7137 | |
|
|
7138 | |
|
|
7139 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
7140 | inttypes.h stdint.h unistd.h |
|
|
7141 | do |
|
|
7142 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
7143 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
7144 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
7145 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
7146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7147 | else |
|
|
7148 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7149 | /* confdefs.h. */ |
|
|
7150 | _ACEOF |
|
|
7151 | cat confdefs.h >>conftest.$ac_ext |
|
|
7152 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7153 | /* end confdefs.h. */ |
|
|
7154 | $ac_includes_default |
|
|
7155 | |
|
|
7156 | #include <$ac_header> |
|
|
7157 | _ACEOF |
|
|
7158 | rm -f conftest.$ac_objext |
|
|
7159 | if { (ac_try="$ac_compile" |
|
|
7160 | case "(($ac_try" in |
|
|
7161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7162 | *) ac_try_echo=$ac_try;; |
|
|
7163 | esac |
|
|
7164 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7165 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7166 | ac_status=$? |
|
|
7167 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7168 | rm -f conftest.er1 |
|
|
7169 | cat conftest.err >&5 |
|
|
7170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7171 | (exit $ac_status); } && { |
|
|
7172 | test -z "$ac_cxx_werror_flag" || |
|
|
7173 | test ! -s conftest.err |
|
|
7174 | } && test -s conftest.$ac_objext; then |
|
|
7175 | eval "$as_ac_Header=yes" |
|
|
7176 | else |
|
|
7177 | echo "$as_me: failed program was:" >&5 |
|
|
7178 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7179 | |
|
|
7180 | eval "$as_ac_Header=no" |
|
|
7181 | fi |
|
|
7182 | |
|
|
7183 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7184 | fi |
|
|
7185 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
7186 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
7187 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
7188 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
7189 | cat >>confdefs.h <<_ACEOF |
|
|
7190 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
7191 | _ACEOF |
|
|
7192 | |
|
|
7193 | fi |
|
|
7194 | |
|
|
7195 | done |
|
|
7196 | |
|
|
7197 | |
|
|
7198 | |
|
|
7199 | |
|
|
7200 | |
|
|
7201 | |
|
|
7202 | |
|
|
7203 | |
|
|
7204 | |
|
|
7205 | |
|
|
7206 | |
7353 | |
7207 | |
7354 | |
7208 | |
7355 | |
7209 | |
7356 | |
7210 | |
7357 | |
7211 | |
7358 | |
7212 | |
7359 | |
7213 | |
7360 | |
7214 | |
7361 | |
7215 | for ac_header in \ |
7362 | for ac_header in \ |
7216 | assert.h \ |
|
|
7217 | fcntl.h \ |
|
|
7218 | stdarg.h \ |
|
|
7219 | stdlib.h \ |
|
|
7220 | string.h \ |
|
|
7221 | termios.h \ |
|
|
7222 | unistd.h \ |
|
|
7223 | sys/byteorder.h \ |
7363 | sys/byteorder.h \ |
7224 | sys/ioctl.h \ |
7364 | sys/ioctl.h \ |
7225 | sys/select.h \ |
|
|
7226 | sys/sockio.h \ |
7365 | sys/sockio.h \ |
7227 | sys/strredir.h \ |
7366 | sys/strredir.h \ |
7228 | sys/time.h \ |
|
|
7229 | stdint.h \ |
7367 | stdint.h \ |
7230 | wchar.h \ |
7368 | wchar.h \ |
7231 | cwchar \ |
7369 | cwchar \ |
7232 | clocale \ |
7370 | clocale \ |
7233 | |
7371 | |
… | |
… | |
7368 | fi |
7506 | fi |
7369 | |
7507 | |
7370 | done |
7508 | done |
7371 | |
7509 | |
7372 | |
7510 | |
7373 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
|
|
7374 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
|
|
7375 | if test "${ac_cv_header_time+set}" = set; then |
|
|
7376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7377 | else |
|
|
7378 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7379 | /* confdefs.h. */ |
|
|
7380 | _ACEOF |
|
|
7381 | cat confdefs.h >>conftest.$ac_ext |
|
|
7382 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7383 | /* end confdefs.h. */ |
|
|
7384 | #include <sys/types.h> |
|
|
7385 | #include <sys/time.h> |
|
|
7386 | #include <time.h> |
|
|
7387 | |
|
|
7388 | int |
|
|
7389 | main () |
|
|
7390 | { |
|
|
7391 | if ((struct tm *) 0) |
|
|
7392 | return 0; |
|
|
7393 | ; |
|
|
7394 | return 0; |
|
|
7395 | } |
|
|
7396 | _ACEOF |
|
|
7397 | rm -f conftest.$ac_objext |
|
|
7398 | if { (ac_try="$ac_compile" |
|
|
7399 | case "(($ac_try" in |
|
|
7400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7401 | *) ac_try_echo=$ac_try;; |
|
|
7402 | esac |
|
|
7403 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7404 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7405 | ac_status=$? |
|
|
7406 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7407 | rm -f conftest.er1 |
|
|
7408 | cat conftest.err >&5 |
|
|
7409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7410 | (exit $ac_status); } && { |
|
|
7411 | test -z "$ac_cxx_werror_flag" || |
|
|
7412 | test ! -s conftest.err |
|
|
7413 | } && test -s conftest.$ac_objext; then |
|
|
7414 | ac_cv_header_time=yes |
|
|
7415 | else |
|
|
7416 | echo "$as_me: failed program was:" >&5 |
|
|
7417 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7418 | |
|
|
7419 | ac_cv_header_time=no |
|
|
7420 | fi |
|
|
7421 | |
|
|
7422 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7423 | fi |
|
|
7424 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
|
|
7425 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
|
|
7426 | if test $ac_cv_header_time = yes; then |
|
|
7427 | |
|
|
7428 | cat >>confdefs.h <<\_ACEOF |
|
|
7429 | #define TIME_WITH_SYS_TIME 1 |
|
|
7430 | _ACEOF |
|
|
7431 | |
|
|
7432 | fi |
|
|
7433 | |
|
|
7434 | |
|
|
7435 | { echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5 |
7511 | { echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5 |
7436 | echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; } |
7512 | echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; } |
7437 | if test "${rxvt_cv_header_sysioctl+set}" = set; then |
7513 | if test "${rxvt_cv_header_sysioctl+set}" = set; then |
7438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7439 | else |
7515 | else |
… | |
… | |
7443 | cat confdefs.h >>conftest.$ac_ext |
7519 | cat confdefs.h >>conftest.$ac_ext |
7444 | cat >>conftest.$ac_ext <<_ACEOF |
7520 | cat >>conftest.$ac_ext <<_ACEOF |
7445 | /* end confdefs.h. */ |
7521 | /* end confdefs.h. */ |
7446 | #include <stdio.h> |
7522 | #include <stdio.h> |
7447 | #include <sys/ioctl.h> |
7523 | #include <sys/ioctl.h> |
7448 | #ifdef HAVE_TERMIOS_H |
|
|
7449 | #include <termios.h> |
7524 | #include <termios.h> |
7450 | #endif |
7525 | |
7451 | int |
7526 | int |
7452 | main () |
7527 | main () |
7453 | { |
7528 | { |
7454 | int a = ECHO; |
7529 | int a = ECHO; |
7455 | ; |
7530 | ; |
… | |
… | |
7484 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7559 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7485 | fi |
7560 | fi |
7486 | { echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5 |
7561 | { echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5 |
7487 | echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6; } |
7562 | echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6; } |
7488 | |
7563 | |
7489 | if test -n "$GCC"; then |
|
|
7490 | LDARG="-Wl," |
|
|
7491 | else |
|
|
7492 | LDARG="" |
|
|
7493 | fi |
|
|
7494 | R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-rpath '$LDARG'\1/g' |
|
|
7495 | |
|
|
7496 | ac_save_CFLAGS=$CFLAGS |
|
|
7497 | ac_save_LIBS=$LIBS |
|
|
7498 | CFLAGS="$CFLAGS $X_CFLAGS" |
|
|
7499 | LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"` |
|
|
7500 | { echo "$as_me:$LINENO: checking for -rpath dynamic library path recording" >&5 |
|
|
7501 | echo $ECHO_N "checking for -rpath dynamic library path recording... $ECHO_C" >&6; } |
|
|
7502 | if test "${rxvt_cv_rpath+set}" = set; then |
|
|
7503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7504 | else |
|
|
7505 | if test "$cross_compiling" = yes; then |
|
|
7506 | { echo "$as_me:$LINENO: WARNING: You may need to check the LIBS line" >&5 |
|
|
7507 | echo "$as_me: WARNING: You may need to check the LIBS line" >&2;} |
|
|
7508 | else |
|
|
7509 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7510 | /* confdefs.h. */ |
|
|
7511 | _ACEOF |
|
|
7512 | cat confdefs.h >>conftest.$ac_ext |
|
|
7513 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7514 | /* end confdefs.h. */ |
|
|
7515 | #include <X11/Xlib.h> |
|
|
7516 | #include <stdlib.h> |
|
|
7517 | main() |
|
|
7518 | { |
|
|
7519 | exit(0); |
|
|
7520 | (void) XOpenDisplay("foobar"); |
|
|
7521 | } |
|
|
7522 | _ACEOF |
|
|
7523 | rm -f conftest$ac_exeext |
|
|
7524 | if { (ac_try="$ac_link" |
|
|
7525 | case "(($ac_try" in |
|
|
7526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7527 | *) ac_try_echo=$ac_try;; |
|
|
7528 | esac |
|
|
7529 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7530 | (eval "$ac_link") 2>&5 |
|
|
7531 | ac_status=$? |
|
|
7532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7533 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
7534 | { (case "(($ac_try" in |
|
|
7535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7536 | *) ac_try_echo=$ac_try;; |
|
|
7537 | esac |
|
|
7538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7539 | (eval "$ac_try") 2>&5 |
|
|
7540 | ac_status=$? |
|
|
7541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7542 | (exit $ac_status); }; }; then |
|
|
7543 | rxvt_cv_rpath=yes |
|
|
7544 | else |
|
|
7545 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
7546 | echo "$as_me: failed program was:" >&5 |
|
|
7547 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7548 | |
|
|
7549 | ( exit $ac_status ) |
|
|
7550 | rxvt_cv_rpath=no |
|
|
7551 | fi |
|
|
7552 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
7553 | fi |
|
|
7554 | |
|
|
7555 | |
|
|
7556 | fi |
|
|
7557 | { echo "$as_me:$LINENO: result: $rxvt_cv_rpath" >&5 |
|
|
7558 | echo "${ECHO_T}$rxvt_cv_rpath" >&6; } |
|
|
7559 | if test x$rxvt_cv_rpath != xyes; then |
|
|
7560 | R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g' |
|
|
7561 | LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"` |
|
|
7562 | { echo "$as_me:$LINENO: checking for -R dynamic library path recording" >&5 |
|
|
7563 | echo $ECHO_N "checking for -R dynamic library path recording... $ECHO_C" >&6; } |
|
|
7564 | if test "${rxvt_cv_R+set}" = set; then |
|
|
7565 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7566 | else |
|
|
7567 | if test "$cross_compiling" = yes; then |
|
|
7568 | rxvt_cv_R=no |
|
|
7569 | else |
|
|
7570 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7571 | /* confdefs.h. */ |
|
|
7572 | _ACEOF |
|
|
7573 | cat confdefs.h >>conftest.$ac_ext |
|
|
7574 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7575 | /* end confdefs.h. */ |
|
|
7576 | #include <X11/Xlib.h> |
|
|
7577 | #include <stdlib.h> |
|
|
7578 | main() |
|
|
7579 | { |
|
|
7580 | exit(0); |
|
|
7581 | (void) XOpenDisplay("foobar"); |
|
|
7582 | } |
|
|
7583 | _ACEOF |
|
|
7584 | rm -f conftest$ac_exeext |
|
|
7585 | if { (ac_try="$ac_link" |
|
|
7586 | case "(($ac_try" in |
|
|
7587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7588 | *) ac_try_echo=$ac_try;; |
|
|
7589 | esac |
|
|
7590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7591 | (eval "$ac_link") 2>&5 |
|
|
7592 | ac_status=$? |
|
|
7593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7594 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
7595 | { (case "(($ac_try" in |
|
|
7596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7597 | *) ac_try_echo=$ac_try;; |
|
|
7598 | esac |
|
|
7599 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7600 | (eval "$ac_try") 2>&5 |
|
|
7601 | ac_status=$? |
|
|
7602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7603 | (exit $ac_status); }; }; then |
|
|
7604 | rxvt_cv_R=yes |
|
|
7605 | else |
|
|
7606 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
7607 | echo "$as_me: failed program was:" >&5 |
|
|
7608 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7609 | |
|
|
7610 | ( exit $ac_status ) |
|
|
7611 | rxvt_cv_R=no |
|
|
7612 | fi |
|
|
7613 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
7614 | fi |
|
|
7615 | |
|
|
7616 | |
|
|
7617 | fi |
|
|
7618 | { echo "$as_me:$LINENO: result: $rxvt_cv_R" >&5 |
|
|
7619 | echo "${ECHO_T}$rxvt_cv_R" >&6; } |
|
|
7620 | if test x$rxvt_cv_R != xyes; then |
|
|
7621 | LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
|
|
7622 | fi |
|
|
7623 | fi |
|
|
7624 | |
|
|
7625 | { echo "$as_me:$LINENO: checking for XPointer" >&5 |
7564 | { echo "$as_me:$LINENO: checking for XPointer" >&5 |
7626 | echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } |
7565 | echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } |
7627 | if test "${rxvt_cv_xpointer+set}" = set; then |
7566 | if test "${rxvt_cv_xpointer+set}" = set; then |
7628 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7629 | else |
7568 | else |
… | |
… | |
7676 | cat >>confdefs.h <<\_ACEOF |
7615 | cat >>confdefs.h <<\_ACEOF |
7677 | #define HAVE_XPOINTER 1 |
7616 | #define HAVE_XPOINTER 1 |
7678 | _ACEOF |
7617 | _ACEOF |
7679 | |
7618 | |
7680 | fi |
7619 | fi |
7681 | LIBS=$ac_save_LIBS |
|
|
7682 | CFLAGS=$ac_save_CFLAGS |
|
|
7683 | |
7620 | |
7684 | { echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5 |
7621 | { echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5 |
7685 | echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6; } |
7622 | echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6; } |
7686 | if test "${rxvt_xlib_illegal_access+set}" = set; then |
7623 | if test "${rxvt_xlib_illegal_access+set}" = set; then |
7687 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
7742 | cat >>confdefs.h <<\_ACEOF |
7679 | cat >>confdefs.h <<\_ACEOF |
7743 | #define XLIB_ILLEGAL_ACCESS 1 |
7680 | #define XLIB_ILLEGAL_ACCESS 1 |
7744 | _ACEOF |
7681 | _ACEOF |
7745 | |
7682 | |
7746 | fi |
7683 | fi |
7747 | |
|
|
7748 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
|
|
7749 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
|
|
7750 | if test "${ac_cv_c_const+set}" = set; then |
|
|
7751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7752 | else |
|
|
7753 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7754 | /* confdefs.h. */ |
|
|
7755 | _ACEOF |
|
|
7756 | cat confdefs.h >>conftest.$ac_ext |
|
|
7757 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7758 | /* end confdefs.h. */ |
|
|
7759 | |
|
|
7760 | int |
|
|
7761 | main () |
|
|
7762 | { |
|
|
7763 | /* FIXME: Include the comments suggested by Paul. */ |
|
|
7764 | #ifndef __cplusplus |
|
|
7765 | /* Ultrix mips cc rejects this. */ |
|
|
7766 | typedef int charset[2]; |
|
|
7767 | const charset cs; |
|
|
7768 | /* SunOS 4.1.1 cc rejects this. */ |
|
|
7769 | char const *const *pcpcc; |
|
|
7770 | char **ppc; |
|
|
7771 | /* NEC SVR4.0.2 mips cc rejects this. */ |
|
|
7772 | struct point {int x, y;}; |
|
|
7773 | static struct point const zero = {0,0}; |
|
|
7774 | /* AIX XL C 1.02.0.0 rejects this. |
|
|
7775 | It does not let you subtract one const X* pointer from another in |
|
|
7776 | an arm of an if-expression whose if-part is not a constant |
|
|
7777 | expression */ |
|
|
7778 | const char *g = "string"; |
|
|
7779 | pcpcc = &g + (g ? g-g : 0); |
|
|
7780 | /* HPUX 7.0 cc rejects these. */ |
|
|
7781 | ++pcpcc; |
|
|
7782 | ppc = (char**) pcpcc; |
|
|
7783 | pcpcc = (char const *const *) ppc; |
|
|
7784 | { /* SCO 3.2v4 cc rejects this. */ |
|
|
7785 | char *t; |
|
|
7786 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
|
|
7787 | |
|
|
7788 | *t++ = 0; |
|
|
7789 | if (s) return 0; |
|
|
7790 | } |
|
|
7791 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
|
|
7792 | int x[] = {25, 17}; |
|
|
7793 | const int *foo = &x[0]; |
|
|
7794 | ++foo; |
|
|
7795 | } |
|
|
7796 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
|
|
7797 | typedef const int *iptr; |
|
|
7798 | iptr p = 0; |
|
|
7799 | ++p; |
|
|
7800 | } |
|
|
7801 | { /* AIX XL C 1.02.0.0 rejects this saying |
|
|
7802 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
|
|
7803 | struct s { int j; const int *ap[3]; }; |
|
|
7804 | struct s *b; b->j = 5; |
|
|
7805 | } |
|
|
7806 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
|
|
7807 | const int foo = 10; |
|
|
7808 | if (!foo) return 0; |
|
|
7809 | } |
|
|
7810 | return !cs[0] && !zero.x; |
|
|
7811 | #endif |
|
|
7812 | |
|
|
7813 | ; |
|
|
7814 | return 0; |
|
|
7815 | } |
|
|
7816 | _ACEOF |
|
|
7817 | rm -f conftest.$ac_objext |
|
|
7818 | if { (ac_try="$ac_compile" |
|
|
7819 | case "(($ac_try" in |
|
|
7820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7821 | *) ac_try_echo=$ac_try;; |
|
|
7822 | esac |
|
|
7823 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7824 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7825 | ac_status=$? |
|
|
7826 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7827 | rm -f conftest.er1 |
|
|
7828 | cat conftest.err >&5 |
|
|
7829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7830 | (exit $ac_status); } && { |
|
|
7831 | test -z "$ac_cxx_werror_flag" || |
|
|
7832 | test ! -s conftest.err |
|
|
7833 | } && test -s conftest.$ac_objext; then |
|
|
7834 | ac_cv_c_const=yes |
|
|
7835 | else |
|
|
7836 | echo "$as_me: failed program was:" >&5 |
|
|
7837 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7838 | |
|
|
7839 | ac_cv_c_const=no |
|
|
7840 | fi |
|
|
7841 | |
|
|
7842 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7843 | fi |
|
|
7844 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
|
|
7845 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
|
|
7846 | if test $ac_cv_c_const = no; then |
|
|
7847 | |
|
|
7848 | cat >>confdefs.h <<\_ACEOF |
|
|
7849 | #define const |
|
|
7850 | _ACEOF |
|
|
7851 | |
|
|
7852 | fi |
|
|
7853 | |
|
|
7854 | { echo "$as_me:$LINENO: checking for inline" >&5 |
|
|
7855 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
|
|
7856 | if test "${ac_cv_c_inline+set}" = set; then |
|
|
7857 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7858 | else |
|
|
7859 | ac_cv_c_inline=no |
|
|
7860 | for ac_kw in inline __inline__ __inline; do |
|
|
7861 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7862 | /* confdefs.h. */ |
|
|
7863 | _ACEOF |
|
|
7864 | cat confdefs.h >>conftest.$ac_ext |
|
|
7865 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7866 | /* end confdefs.h. */ |
|
|
7867 | #ifndef __cplusplus |
|
|
7868 | typedef int foo_t; |
|
|
7869 | static $ac_kw foo_t static_foo () {return 0; } |
|
|
7870 | $ac_kw foo_t foo () {return 0; } |
|
|
7871 | #endif |
|
|
7872 | |
|
|
7873 | _ACEOF |
|
|
7874 | rm -f conftest.$ac_objext |
|
|
7875 | if { (ac_try="$ac_compile" |
|
|
7876 | case "(($ac_try" in |
|
|
7877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7878 | *) ac_try_echo=$ac_try;; |
|
|
7879 | esac |
|
|
7880 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7881 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7882 | ac_status=$? |
|
|
7883 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7884 | rm -f conftest.er1 |
|
|
7885 | cat conftest.err >&5 |
|
|
7886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7887 | (exit $ac_status); } && { |
|
|
7888 | test -z "$ac_cxx_werror_flag" || |
|
|
7889 | test ! -s conftest.err |
|
|
7890 | } && test -s conftest.$ac_objext; then |
|
|
7891 | ac_cv_c_inline=$ac_kw |
|
|
7892 | else |
|
|
7893 | echo "$as_me: failed program was:" >&5 |
|
|
7894 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7895 | |
|
|
7896 | |
|
|
7897 | fi |
|
|
7898 | |
|
|
7899 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7900 | test "$ac_cv_c_inline" != no && break |
|
|
7901 | done |
|
|
7902 | |
|
|
7903 | fi |
|
|
7904 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
|
|
7905 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
|
|
7906 | |
|
|
7907 | |
|
|
7908 | case $ac_cv_c_inline in |
|
|
7909 | inline | yes) ;; |
|
|
7910 | *) |
|
|
7911 | case $ac_cv_c_inline in |
|
|
7912 | no) ac_val=;; |
|
|
7913 | *) ac_val=$ac_cv_c_inline;; |
|
|
7914 | esac |
|
|
7915 | cat >>confdefs.h <<_ACEOF |
|
|
7916 | #ifndef __cplusplus |
|
|
7917 | #define inline $ac_val |
|
|
7918 | #endif |
|
|
7919 | _ACEOF |
|
|
7920 | ;; |
|
|
7921 | esac |
|
|
7922 | |
|
|
7923 | |
|
|
7924 | |
7684 | |
7925 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
7685 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
7926 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
7686 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
7927 | if test "${ac_cv_type_mode_t+set}" = set; then |
7687 | if test "${ac_cv_type_mode_t+set}" = set; then |
7928 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
8085 | _ACEOF |
7845 | _ACEOF |
8086 | |
7846 | |
8087 | fi |
7847 | fi |
8088 | |
7848 | |
8089 | |
7849 | |
8090 | { echo "$as_me:$LINENO: checking for short" >&5 |
7850 | { echo "$as_me:$LINENO: checking for int16_t" >&5 |
8091 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
7851 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } |
8092 | if test "${ac_cv_type_short+set}" = set; then |
7852 | if test "${ac_cv_c_int16_t+set}" = set; then |
8093 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8094 | else |
7854 | else |
|
|
7855 | ac_cv_c_int16_t=no |
|
|
7856 | for ac_type in 'int16_t' 'int' 'long int' \ |
|
|
7857 | 'long long int' 'short int' 'signed char'; do |
8095 | cat >conftest.$ac_ext <<_ACEOF |
7858 | cat >conftest.$ac_ext <<_ACEOF |
8096 | /* confdefs.h. */ |
7859 | /* confdefs.h. */ |
8097 | _ACEOF |
7860 | _ACEOF |
8098 | cat confdefs.h >>conftest.$ac_ext |
7861 | cat confdefs.h >>conftest.$ac_ext |
8099 | cat >>conftest.$ac_ext <<_ACEOF |
7862 | cat >>conftest.$ac_ext <<_ACEOF |
8100 | /* end confdefs.h. */ |
7863 | /* end confdefs.h. */ |
8101 | $ac_includes_default |
7864 | $ac_includes_default |
8102 | typedef short ac__type_new_; |
|
|
8103 | int |
7865 | int |
8104 | main () |
7866 | main () |
8105 | { |
7867 | { |
8106 | if ((ac__type_new_ *) 0) |
7868 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))]; |
8107 | return 0; |
7869 | test_array [0] = 0 |
8108 | if (sizeof (ac__type_new_)) |
7870 | |
8109 | return 0; |
|
|
8110 | ; |
7871 | ; |
8111 | return 0; |
7872 | return 0; |
8112 | } |
7873 | } |
8113 | _ACEOF |
7874 | _ACEOF |
8114 | rm -f conftest.$ac_objext |
7875 | rm -f conftest.$ac_objext |
… | |
… | |
8126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8127 | (exit $ac_status); } && { |
7888 | (exit $ac_status); } && { |
8128 | test -z "$ac_cxx_werror_flag" || |
7889 | test -z "$ac_cxx_werror_flag" || |
8129 | test ! -s conftest.err |
7890 | test ! -s conftest.err |
8130 | } && test -s conftest.$ac_objext; then |
7891 | } && test -s conftest.$ac_objext; then |
8131 | ac_cv_type_short=yes |
|
|
8132 | else |
|
|
8133 | echo "$as_me: failed program was:" >&5 |
|
|
8134 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8135 | |
|
|
8136 | ac_cv_type_short=no |
|
|
8137 | fi |
|
|
8138 | |
|
|
8139 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8140 | fi |
|
|
8141 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
|
|
8142 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
|
|
8143 | |
|
|
8144 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8145 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8146 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8147 | # This bug is HP SR number 8606223364. |
|
|
8148 | { echo "$as_me:$LINENO: checking size of short" >&5 |
|
|
8149 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
|
|
8150 | if test "${ac_cv_sizeof_short+set}" = set; then |
|
|
8151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8152 | else |
|
|
8153 | if test "$cross_compiling" = yes; then |
|
|
8154 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8155 | cat >conftest.$ac_ext <<_ACEOF |
7892 | cat >conftest.$ac_ext <<_ACEOF |
8156 | /* confdefs.h. */ |
7893 | /* confdefs.h. */ |
8157 | _ACEOF |
7894 | _ACEOF |
8158 | cat confdefs.h >>conftest.$ac_ext |
7895 | cat confdefs.h >>conftest.$ac_ext |
8159 | cat >>conftest.$ac_ext <<_ACEOF |
7896 | cat >>conftest.$ac_ext <<_ACEOF |
8160 | /* end confdefs.h. */ |
7897 | /* end confdefs.h. */ |
8161 | $ac_includes_default |
7898 | $ac_includes_default |
8162 | typedef short ac__type_sizeof_; |
|
|
8163 | int |
7899 | int |
8164 | main () |
7900 | main () |
8165 | { |
7901 | { |
8166 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
7902 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1) |
|
|
7903 | < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))]; |
8167 | test_array [0] = 0 |
7904 | test_array [0] = 0 |
8168 | |
7905 | |
8169 | ; |
7906 | ; |
8170 | return 0; |
7907 | return 0; |
8171 | } |
7908 | } |
… | |
… | |
8185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8186 | (exit $ac_status); } && { |
7923 | (exit $ac_status); } && { |
8187 | test -z "$ac_cxx_werror_flag" || |
7924 | test -z "$ac_cxx_werror_flag" || |
8188 | test ! -s conftest.err |
7925 | test ! -s conftest.err |
8189 | } && test -s conftest.$ac_objext; then |
7926 | } && test -s conftest.$ac_objext; then |
8190 | ac_lo=0 ac_mid=0 |
7927 | : |
8191 | while :; do |
7928 | else |
|
|
7929 | echo "$as_me: failed program was:" >&5 |
|
|
7930 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7931 | |
|
|
7932 | case $ac_type in |
|
|
7933 | int16_t) ac_cv_c_int16_t=yes ;; |
|
|
7934 | *) ac_cv_c_int16_t=$ac_type ;; |
|
|
7935 | esac |
|
|
7936 | |
|
|
7937 | fi |
|
|
7938 | |
|
|
7939 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7940 | else |
|
|
7941 | echo "$as_me: failed program was:" >&5 |
|
|
7942 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7943 | |
|
|
7944 | |
|
|
7945 | fi |
|
|
7946 | |
|
|
7947 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7948 | test "$ac_cv_c_int16_t" != no && break |
|
|
7949 | done |
|
|
7950 | fi |
|
|
7951 | { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5 |
|
|
7952 | echo "${ECHO_T}$ac_cv_c_int16_t" >&6; } |
|
|
7953 | case $ac_cv_c_int16_t in #( |
|
|
7954 | no|yes) ;; #( |
|
|
7955 | *) |
|
|
7956 | |
|
|
7957 | cat >>confdefs.h <<_ACEOF |
|
|
7958 | #define int16_t $ac_cv_c_int16_t |
|
|
7959 | _ACEOF |
|
|
7960 | ;; |
|
|
7961 | esac |
|
|
7962 | |
|
|
7963 | |
|
|
7964 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 |
|
|
7965 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } |
|
|
7966 | if test "${ac_cv_c_uint16_t+set}" = set; then |
|
|
7967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7968 | else |
|
|
7969 | ac_cv_c_uint16_t=no |
|
|
7970 | for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \ |
|
|
7971 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
8192 | cat >conftest.$ac_ext <<_ACEOF |
7972 | cat >conftest.$ac_ext <<_ACEOF |
8193 | /* confdefs.h. */ |
7973 | /* confdefs.h. */ |
8194 | _ACEOF |
7974 | _ACEOF |
8195 | cat confdefs.h >>conftest.$ac_ext |
7975 | cat confdefs.h >>conftest.$ac_ext |
8196 | cat >>conftest.$ac_ext <<_ACEOF |
7976 | cat >>conftest.$ac_ext <<_ACEOF |
8197 | /* end confdefs.h. */ |
7977 | /* end confdefs.h. */ |
8198 | $ac_includes_default |
7978 | $ac_includes_default |
8199 | typedef short ac__type_sizeof_; |
|
|
8200 | int |
7979 | int |
8201 | main () |
7980 | main () |
8202 | { |
7981 | { |
8203 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
7982 | static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)]; |
8204 | test_array [0] = 0 |
7983 | test_array [0] = 0 |
8205 | |
7984 | |
8206 | ; |
7985 | ; |
8207 | return 0; |
7986 | return 0; |
8208 | } |
7987 | } |
… | |
… | |
8222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8223 | (exit $ac_status); } && { |
8002 | (exit $ac_status); } && { |
8224 | test -z "$ac_cxx_werror_flag" || |
8003 | test -z "$ac_cxx_werror_flag" || |
8225 | test ! -s conftest.err |
8004 | test ! -s conftest.err |
8226 | } && test -s conftest.$ac_objext; then |
8005 | } && test -s conftest.$ac_objext; then |
8227 | ac_hi=$ac_mid; break |
8006 | case $ac_type in |
|
|
8007 | uint16_t) ac_cv_c_uint16_t=yes ;; |
|
|
8008 | *) ac_cv_c_uint16_t=$ac_type ;; |
|
|
8009 | esac |
|
|
8010 | |
8228 | else |
8011 | else |
8229 | echo "$as_me: failed program was:" >&5 |
8012 | echo "$as_me: failed program was:" >&5 |
8230 | sed 's/^/| /' conftest.$ac_ext >&5 |
8013 | sed 's/^/| /' conftest.$ac_ext >&5 |
8231 | |
8014 | |
8232 | ac_lo=`expr $ac_mid + 1` |
8015 | |
8233 | if test $ac_lo -le $ac_mid; then |
|
|
8234 | ac_lo= ac_hi= |
|
|
8235 | break |
|
|
8236 | fi |
|
|
8237 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8238 | fi |
8016 | fi |
8239 | |
8017 | |
8240 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8018 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8019 | test "$ac_cv_c_uint16_t" != no && break |
8241 | done |
8020 | done |
8242 | else |
8021 | fi |
8243 | echo "$as_me: failed program was:" >&5 |
8022 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5 |
8244 | sed 's/^/| /' conftest.$ac_ext >&5 |
8023 | echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; } |
|
|
8024 | case $ac_cv_c_uint16_t in #( |
|
|
8025 | no|yes) ;; #( |
|
|
8026 | *) |
8245 | |
8027 | |
|
|
8028 | |
|
|
8029 | cat >>confdefs.h <<_ACEOF |
|
|
8030 | #define uint16_t $ac_cv_c_uint16_t |
|
|
8031 | _ACEOF |
|
|
8032 | ;; |
|
|
8033 | esac |
|
|
8034 | |
|
|
8035 | |
|
|
8036 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
|
|
8037 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
|
|
8038 | if test "${ac_cv_c_int32_t+set}" = set; then |
|
|
8039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8040 | else |
|
|
8041 | ac_cv_c_int32_t=no |
|
|
8042 | for ac_type in 'int32_t' 'int' 'long int' \ |
|
|
8043 | 'long long int' 'short int' 'signed char'; do |
8246 | cat >conftest.$ac_ext <<_ACEOF |
8044 | cat >conftest.$ac_ext <<_ACEOF |
8247 | /* confdefs.h. */ |
8045 | /* confdefs.h. */ |
8248 | _ACEOF |
8046 | _ACEOF |
8249 | cat confdefs.h >>conftest.$ac_ext |
8047 | cat confdefs.h >>conftest.$ac_ext |
8250 | cat >>conftest.$ac_ext <<_ACEOF |
8048 | cat >>conftest.$ac_ext <<_ACEOF |
8251 | /* end confdefs.h. */ |
8049 | /* end confdefs.h. */ |
8252 | $ac_includes_default |
8050 | $ac_includes_default |
8253 | typedef short ac__type_sizeof_; |
|
|
8254 | int |
8051 | int |
8255 | main () |
8052 | main () |
8256 | { |
8053 | { |
8257 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
8054 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))]; |
8258 | test_array [0] = 0 |
8055 | test_array [0] = 0 |
8259 | |
8056 | |
8260 | ; |
8057 | ; |
8261 | return 0; |
8058 | return 0; |
8262 | } |
8059 | } |
… | |
… | |
8276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8277 | (exit $ac_status); } && { |
8074 | (exit $ac_status); } && { |
8278 | test -z "$ac_cxx_werror_flag" || |
8075 | test -z "$ac_cxx_werror_flag" || |
8279 | test ! -s conftest.err |
8076 | test ! -s conftest.err |
8280 | } && test -s conftest.$ac_objext; then |
8077 | } && test -s conftest.$ac_objext; then |
8281 | ac_hi=-1 ac_mid=-1 |
|
|
8282 | while :; do |
|
|
8283 | cat >conftest.$ac_ext <<_ACEOF |
8078 | cat >conftest.$ac_ext <<_ACEOF |
8284 | /* confdefs.h. */ |
8079 | /* confdefs.h. */ |
8285 | _ACEOF |
8080 | _ACEOF |
8286 | cat confdefs.h >>conftest.$ac_ext |
8081 | cat confdefs.h >>conftest.$ac_ext |
8287 | cat >>conftest.$ac_ext <<_ACEOF |
8082 | cat >>conftest.$ac_ext <<_ACEOF |
8288 | /* end confdefs.h. */ |
8083 | /* end confdefs.h. */ |
8289 | $ac_includes_default |
8084 | $ac_includes_default |
8290 | typedef short ac__type_sizeof_; |
|
|
8291 | int |
8085 | int |
8292 | main () |
8086 | main () |
8293 | { |
8087 | { |
8294 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
8088 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1) |
|
|
8089 | < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))]; |
8295 | test_array [0] = 0 |
8090 | test_array [0] = 0 |
8296 | |
8091 | |
8297 | ; |
8092 | ; |
8298 | return 0; |
8093 | return 0; |
8299 | } |
8094 | } |
… | |
… | |
8313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8314 | (exit $ac_status); } && { |
8109 | (exit $ac_status); } && { |
8315 | test -z "$ac_cxx_werror_flag" || |
8110 | test -z "$ac_cxx_werror_flag" || |
8316 | test ! -s conftest.err |
8111 | test ! -s conftest.err |
8317 | } && test -s conftest.$ac_objext; then |
8112 | } && test -s conftest.$ac_objext; then |
8318 | ac_lo=$ac_mid; break |
8113 | : |
8319 | else |
8114 | else |
8320 | echo "$as_me: failed program was:" >&5 |
8115 | echo "$as_me: failed program was:" >&5 |
8321 | sed 's/^/| /' conftest.$ac_ext >&5 |
8116 | sed 's/^/| /' conftest.$ac_ext >&5 |
8322 | |
8117 | |
8323 | ac_hi=`expr '(' $ac_mid ')' - 1` |
8118 | case $ac_type in |
8324 | if test $ac_mid -le $ac_hi; then |
8119 | int32_t) ac_cv_c_int32_t=yes ;; |
8325 | ac_lo= ac_hi= |
8120 | *) ac_cv_c_int32_t=$ac_type ;; |
8326 | break |
8121 | esac |
8327 | fi |
8122 | |
8328 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
8329 | fi |
8123 | fi |
8330 | |
8124 | |
8331 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8125 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8332 | done |
|
|
8333 | else |
8126 | else |
8334 | echo "$as_me: failed program was:" >&5 |
8127 | echo "$as_me: failed program was:" >&5 |
8335 | sed 's/^/| /' conftest.$ac_ext >&5 |
8128 | sed 's/^/| /' conftest.$ac_ext >&5 |
8336 | |
8129 | |
8337 | ac_lo= ac_hi= |
8130 | |
8338 | fi |
8131 | fi |
8339 | |
8132 | |
8340 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8133 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8134 | test "$ac_cv_c_int32_t" != no && break |
|
|
8135 | done |
8341 | fi |
8136 | fi |
|
|
8137 | { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5 |
|
|
8138 | echo "${ECHO_T}$ac_cv_c_int32_t" >&6; } |
|
|
8139 | case $ac_cv_c_int32_t in #( |
|
|
8140 | no|yes) ;; #( |
|
|
8141 | *) |
8342 | |
8142 | |
8343 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8143 | cat >>confdefs.h <<_ACEOF |
8344 | # Binary search between lo and hi bounds. |
8144 | #define int32_t $ac_cv_c_int32_t |
8345 | while test "x$ac_lo" != "x$ac_hi"; do |
8145 | _ACEOF |
8346 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
8146 | ;; |
|
|
8147 | esac |
|
|
8148 | |
|
|
8149 | |
|
|
8150 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
|
|
8151 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
|
|
8152 | if test "${ac_cv_c_uint32_t+set}" = set; then |
|
|
8153 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8154 | else |
|
|
8155 | ac_cv_c_uint32_t=no |
|
|
8156 | for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ |
|
|
8157 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
8347 | cat >conftest.$ac_ext <<_ACEOF |
8158 | cat >conftest.$ac_ext <<_ACEOF |
8348 | /* confdefs.h. */ |
8159 | /* confdefs.h. */ |
8349 | _ACEOF |
8160 | _ACEOF |
8350 | cat confdefs.h >>conftest.$ac_ext |
8161 | cat confdefs.h >>conftest.$ac_ext |
8351 | cat >>conftest.$ac_ext <<_ACEOF |
8162 | cat >>conftest.$ac_ext <<_ACEOF |
8352 | /* end confdefs.h. */ |
8163 | /* end confdefs.h. */ |
8353 | $ac_includes_default |
8164 | $ac_includes_default |
8354 | typedef short ac__type_sizeof_; |
|
|
8355 | int |
8165 | int |
8356 | main () |
8166 | main () |
8357 | { |
8167 | { |
8358 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
8168 | static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; |
8359 | test_array [0] = 0 |
8169 | test_array [0] = 0 |
8360 | |
8170 | |
8361 | ; |
8171 | ; |
8362 | return 0; |
8172 | return 0; |
8363 | } |
8173 | } |
… | |
… | |
8377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8378 | (exit $ac_status); } && { |
8188 | (exit $ac_status); } && { |
8379 | test -z "$ac_cxx_werror_flag" || |
8189 | test -z "$ac_cxx_werror_flag" || |
8380 | test ! -s conftest.err |
8190 | test ! -s conftest.err |
8381 | } && test -s conftest.$ac_objext; then |
8191 | } && test -s conftest.$ac_objext; then |
8382 | ac_hi=$ac_mid |
8192 | case $ac_type in |
|
|
8193 | uint32_t) ac_cv_c_uint32_t=yes ;; |
|
|
8194 | *) ac_cv_c_uint32_t=$ac_type ;; |
|
|
8195 | esac |
|
|
8196 | |
8383 | else |
8197 | else |
8384 | echo "$as_me: failed program was:" >&5 |
8198 | echo "$as_me: failed program was:" >&5 |
8385 | sed 's/^/| /' conftest.$ac_ext >&5 |
8199 | sed 's/^/| /' conftest.$ac_ext >&5 |
8386 | |
8200 | |
8387 | ac_lo=`expr '(' $ac_mid ')' + 1` |
8201 | |
8388 | fi |
8202 | fi |
8389 | |
8203 | |
8390 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8204 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8391 | done |
8205 | test "$ac_cv_c_uint32_t" != no && break |
8392 | case $ac_lo in |
8206 | done |
8393 | ?*) ac_cv_sizeof_short=$ac_lo;; |
|
|
8394 | '') if test "$ac_cv_type_short" = yes; then |
|
|
8395 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
|
|
8396 | See \`config.log' for more details." >&5 |
|
|
8397 | echo "$as_me: error: cannot compute sizeof (short) |
|
|
8398 | See \`config.log' for more details." >&2;} |
|
|
8399 | { (exit 77); exit 77; }; } |
|
|
8400 | else |
|
|
8401 | ac_cv_sizeof_short=0 |
|
|
8402 | fi ;; |
|
|
8403 | esac |
|
|
8404 | else |
|
|
8405 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8406 | /* confdefs.h. */ |
|
|
8407 | _ACEOF |
|
|
8408 | cat confdefs.h >>conftest.$ac_ext |
|
|
8409 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8410 | /* end confdefs.h. */ |
|
|
8411 | $ac_includes_default |
|
|
8412 | typedef short ac__type_sizeof_; |
|
|
8413 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8414 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8415 | #include <stdio.h> |
|
|
8416 | #include <stdlib.h> |
|
|
8417 | int |
|
|
8418 | main () |
|
|
8419 | { |
|
|
8420 | |
|
|
8421 | FILE *f = fopen ("conftest.val", "w"); |
|
|
8422 | if (! f) |
|
|
8423 | return 1; |
|
|
8424 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
8425 | { |
|
|
8426 | long int i = longval (); |
|
|
8427 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8428 | return 1; |
|
|
8429 | fprintf (f, "%ld\n", i); |
|
|
8430 | } |
|
|
8431 | else |
|
|
8432 | { |
|
|
8433 | unsigned long int i = ulongval (); |
|
|
8434 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8435 | return 1; |
|
|
8436 | fprintf (f, "%lu\n", i); |
|
|
8437 | } |
|
|
8438 | return ferror (f) || fclose (f) != 0; |
|
|
8439 | |
|
|
8440 | ; |
|
|
8441 | return 0; |
|
|
8442 | } |
|
|
8443 | _ACEOF |
|
|
8444 | rm -f conftest$ac_exeext |
|
|
8445 | if { (ac_try="$ac_link" |
|
|
8446 | case "(($ac_try" in |
|
|
8447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8448 | *) ac_try_echo=$ac_try;; |
|
|
8449 | esac |
|
|
8450 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8451 | (eval "$ac_link") 2>&5 |
|
|
8452 | ac_status=$? |
|
|
8453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8454 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
8455 | { (case "(($ac_try" in |
|
|
8456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8457 | *) ac_try_echo=$ac_try;; |
|
|
8458 | esac |
|
|
8459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8460 | (eval "$ac_try") 2>&5 |
|
|
8461 | ac_status=$? |
|
|
8462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8463 | (exit $ac_status); }; }; then |
|
|
8464 | ac_cv_sizeof_short=`cat conftest.val` |
|
|
8465 | else |
|
|
8466 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
8467 | echo "$as_me: failed program was:" >&5 |
|
|
8468 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8469 | |
|
|
8470 | ( exit $ac_status ) |
|
|
8471 | if test "$ac_cv_type_short" = yes; then |
|
|
8472 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
|
|
8473 | See \`config.log' for more details." >&5 |
|
|
8474 | echo "$as_me: error: cannot compute sizeof (short) |
|
|
8475 | See \`config.log' for more details." >&2;} |
|
|
8476 | { (exit 77); exit 77; }; } |
|
|
8477 | else |
|
|
8478 | ac_cv_sizeof_short=0 |
|
|
8479 | fi |
|
|
8480 | fi |
8207 | fi |
8481 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
8482 | fi |
|
|
8483 | rm -f conftest.val |
|
|
8484 | fi |
|
|
8485 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
8208 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 |
8486 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
8209 | echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; } |
|
|
8210 | case $ac_cv_c_uint32_t in #( |
|
|
8211 | no|yes) ;; #( |
|
|
8212 | *) |
8487 | |
8213 | |
|
|
8214 | cat >>confdefs.h <<\_ACEOF |
|
|
8215 | #define _UINT32_T 1 |
|
|
8216 | _ACEOF |
8488 | |
8217 | |
8489 | |
8218 | |
8490 | cat >>confdefs.h <<_ACEOF |
8219 | cat >>confdefs.h <<_ACEOF |
8491 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
8220 | #define uint32_t $ac_cv_c_uint32_t |
8492 | _ACEOF |
8221 | _ACEOF |
8493 | |
8222 | ;; |
8494 | |
|
|
8495 | { echo "$as_me:$LINENO: checking for int" >&5 |
|
|
8496 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
|
|
8497 | if test "${ac_cv_type_int+set}" = set; then |
|
|
8498 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8499 | else |
|
|
8500 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8501 | /* confdefs.h. */ |
|
|
8502 | _ACEOF |
|
|
8503 | cat confdefs.h >>conftest.$ac_ext |
|
|
8504 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8505 | /* end confdefs.h. */ |
|
|
8506 | $ac_includes_default |
|
|
8507 | typedef int ac__type_new_; |
|
|
8508 | int |
|
|
8509 | main () |
|
|
8510 | { |
|
|
8511 | if ((ac__type_new_ *) 0) |
|
|
8512 | return 0; |
|
|
8513 | if (sizeof (ac__type_new_)) |
|
|
8514 | return 0; |
|
|
8515 | ; |
|
|
8516 | return 0; |
|
|
8517 | } |
|
|
8518 | _ACEOF |
|
|
8519 | rm -f conftest.$ac_objext |
|
|
8520 | if { (ac_try="$ac_compile" |
|
|
8521 | case "(($ac_try" in |
|
|
8522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8523 | *) ac_try_echo=$ac_try;; |
|
|
8524 | esac |
8223 | esac |
8525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8526 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8527 | ac_status=$? |
|
|
8528 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8529 | rm -f conftest.er1 |
|
|
8530 | cat conftest.err >&5 |
|
|
8531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8532 | (exit $ac_status); } && { |
|
|
8533 | test -z "$ac_cxx_werror_flag" || |
|
|
8534 | test ! -s conftest.err |
|
|
8535 | } && test -s conftest.$ac_objext; then |
|
|
8536 | ac_cv_type_int=yes |
|
|
8537 | else |
|
|
8538 | echo "$as_me: failed program was:" >&5 |
|
|
8539 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8540 | |
8224 | |
8541 | ac_cv_type_int=no |
|
|
8542 | fi |
|
|
8543 | |
8225 | |
8544 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8545 | fi |
|
|
8546 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
|
|
8547 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
|
|
8548 | |
8226 | |
8549 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8550 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8551 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8552 | # This bug is HP SR number 8606223364. |
|
|
8553 | { echo "$as_me:$LINENO: checking size of int" >&5 |
|
|
8554 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
|
|
8555 | if test "${ac_cv_sizeof_int+set}" = set; then |
|
|
8556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8557 | else |
|
|
8558 | if test "$cross_compiling" = yes; then |
|
|
8559 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8560 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8561 | /* confdefs.h. */ |
|
|
8562 | _ACEOF |
|
|
8563 | cat confdefs.h >>conftest.$ac_ext |
|
|
8564 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8565 | /* end confdefs.h. */ |
|
|
8566 | $ac_includes_default |
|
|
8567 | typedef int ac__type_sizeof_; |
|
|
8568 | int |
|
|
8569 | main () |
|
|
8570 | { |
|
|
8571 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
8572 | test_array [0] = 0 |
|
|
8573 | |
|
|
8574 | ; |
|
|
8575 | return 0; |
|
|
8576 | } |
|
|
8577 | _ACEOF |
|
|
8578 | rm -f conftest.$ac_objext |
|
|
8579 | if { (ac_try="$ac_compile" |
|
|
8580 | case "(($ac_try" in |
|
|
8581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8582 | *) ac_try_echo=$ac_try;; |
|
|
8583 | esac |
|
|
8584 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8585 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8586 | ac_status=$? |
|
|
8587 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8588 | rm -f conftest.er1 |
|
|
8589 | cat conftest.err >&5 |
|
|
8590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8591 | (exit $ac_status); } && { |
|
|
8592 | test -z "$ac_cxx_werror_flag" || |
|
|
8593 | test ! -s conftest.err |
|
|
8594 | } && test -s conftest.$ac_objext; then |
|
|
8595 | ac_lo=0 ac_mid=0 |
|
|
8596 | while :; do |
|
|
8597 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8598 | /* confdefs.h. */ |
|
|
8599 | _ACEOF |
|
|
8600 | cat confdefs.h >>conftest.$ac_ext |
|
|
8601 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8602 | /* end confdefs.h. */ |
|
|
8603 | $ac_includes_default |
|
|
8604 | typedef int ac__type_sizeof_; |
|
|
8605 | int |
|
|
8606 | main () |
|
|
8607 | { |
|
|
8608 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8609 | test_array [0] = 0 |
|
|
8610 | |
|
|
8611 | ; |
|
|
8612 | return 0; |
|
|
8613 | } |
|
|
8614 | _ACEOF |
|
|
8615 | rm -f conftest.$ac_objext |
|
|
8616 | if { (ac_try="$ac_compile" |
|
|
8617 | case "(($ac_try" in |
|
|
8618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8619 | *) ac_try_echo=$ac_try;; |
|
|
8620 | esac |
|
|
8621 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8622 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8623 | ac_status=$? |
|
|
8624 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8625 | rm -f conftest.er1 |
|
|
8626 | cat conftest.err >&5 |
|
|
8627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8628 | (exit $ac_status); } && { |
|
|
8629 | test -z "$ac_cxx_werror_flag" || |
|
|
8630 | test ! -s conftest.err |
|
|
8631 | } && test -s conftest.$ac_objext; then |
|
|
8632 | ac_hi=$ac_mid; break |
|
|
8633 | else |
|
|
8634 | echo "$as_me: failed program was:" >&5 |
|
|
8635 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8636 | |
|
|
8637 | ac_lo=`expr $ac_mid + 1` |
|
|
8638 | if test $ac_lo -le $ac_mid; then |
|
|
8639 | ac_lo= ac_hi= |
|
|
8640 | break |
|
|
8641 | fi |
|
|
8642 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8643 | fi |
|
|
8644 | |
|
|
8645 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8646 | done |
|
|
8647 | else |
|
|
8648 | echo "$as_me: failed program was:" >&5 |
|
|
8649 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8650 | |
|
|
8651 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8652 | /* confdefs.h. */ |
|
|
8653 | _ACEOF |
|
|
8654 | cat confdefs.h >>conftest.$ac_ext |
|
|
8655 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8656 | /* end confdefs.h. */ |
|
|
8657 | $ac_includes_default |
|
|
8658 | typedef int ac__type_sizeof_; |
|
|
8659 | int |
|
|
8660 | main () |
|
|
8661 | { |
|
|
8662 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
8663 | test_array [0] = 0 |
|
|
8664 | |
|
|
8665 | ; |
|
|
8666 | return 0; |
|
|
8667 | } |
|
|
8668 | _ACEOF |
|
|
8669 | rm -f conftest.$ac_objext |
|
|
8670 | if { (ac_try="$ac_compile" |
|
|
8671 | case "(($ac_try" in |
|
|
8672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8673 | *) ac_try_echo=$ac_try;; |
|
|
8674 | esac |
|
|
8675 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8676 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8677 | ac_status=$? |
|
|
8678 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8679 | rm -f conftest.er1 |
|
|
8680 | cat conftest.err >&5 |
|
|
8681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8682 | (exit $ac_status); } && { |
|
|
8683 | test -z "$ac_cxx_werror_flag" || |
|
|
8684 | test ! -s conftest.err |
|
|
8685 | } && test -s conftest.$ac_objext; then |
|
|
8686 | ac_hi=-1 ac_mid=-1 |
|
|
8687 | while :; do |
|
|
8688 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8689 | /* confdefs.h. */ |
|
|
8690 | _ACEOF |
|
|
8691 | cat confdefs.h >>conftest.$ac_ext |
|
|
8692 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8693 | /* end confdefs.h. */ |
|
|
8694 | $ac_includes_default |
|
|
8695 | typedef int ac__type_sizeof_; |
|
|
8696 | int |
|
|
8697 | main () |
|
|
8698 | { |
|
|
8699 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
8700 | test_array [0] = 0 |
|
|
8701 | |
|
|
8702 | ; |
|
|
8703 | return 0; |
|
|
8704 | } |
|
|
8705 | _ACEOF |
|
|
8706 | rm -f conftest.$ac_objext |
|
|
8707 | if { (ac_try="$ac_compile" |
|
|
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_compile") 2>conftest.er1 |
|
|
8714 | ac_status=$? |
|
|
8715 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8716 | rm -f conftest.er1 |
|
|
8717 | cat conftest.err >&5 |
|
|
8718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8719 | (exit $ac_status); } && { |
|
|
8720 | test -z "$ac_cxx_werror_flag" || |
|
|
8721 | test ! -s conftest.err |
|
|
8722 | } && test -s conftest.$ac_objext; then |
|
|
8723 | ac_lo=$ac_mid; break |
|
|
8724 | else |
|
|
8725 | echo "$as_me: failed program was:" >&5 |
|
|
8726 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8727 | |
|
|
8728 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
8729 | if test $ac_mid -le $ac_hi; then |
|
|
8730 | ac_lo= ac_hi= |
|
|
8731 | break |
|
|
8732 | fi |
|
|
8733 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
8734 | fi |
|
|
8735 | |
|
|
8736 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8737 | done |
|
|
8738 | else |
|
|
8739 | echo "$as_me: failed program was:" >&5 |
|
|
8740 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8741 | |
|
|
8742 | ac_lo= ac_hi= |
|
|
8743 | fi |
|
|
8744 | |
|
|
8745 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8746 | fi |
|
|
8747 | |
|
|
8748 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8749 | # Binary search between lo and hi bounds. |
|
|
8750 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
8751 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
8752 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8753 | /* confdefs.h. */ |
|
|
8754 | _ACEOF |
|
|
8755 | cat confdefs.h >>conftest.$ac_ext |
|
|
8756 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8757 | /* end confdefs.h. */ |
|
|
8758 | $ac_includes_default |
|
|
8759 | typedef int ac__type_sizeof_; |
|
|
8760 | int |
|
|
8761 | main () |
|
|
8762 | { |
|
|
8763 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8764 | test_array [0] = 0 |
|
|
8765 | |
|
|
8766 | ; |
|
|
8767 | return 0; |
|
|
8768 | } |
|
|
8769 | _ACEOF |
|
|
8770 | rm -f conftest.$ac_objext |
|
|
8771 | if { (ac_try="$ac_compile" |
|
|
8772 | case "(($ac_try" in |
|
|
8773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8774 | *) ac_try_echo=$ac_try;; |
|
|
8775 | esac |
|
|
8776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8777 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8778 | ac_status=$? |
|
|
8779 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8780 | rm -f conftest.er1 |
|
|
8781 | cat conftest.err >&5 |
|
|
8782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8783 | (exit $ac_status); } && { |
|
|
8784 | test -z "$ac_cxx_werror_flag" || |
|
|
8785 | test ! -s conftest.err |
|
|
8786 | } && test -s conftest.$ac_objext; then |
|
|
8787 | ac_hi=$ac_mid |
|
|
8788 | else |
|
|
8789 | echo "$as_me: failed program was:" >&5 |
|
|
8790 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8791 | |
|
|
8792 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
8793 | fi |
|
|
8794 | |
|
|
8795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8796 | done |
|
|
8797 | case $ac_lo in |
|
|
8798 | ?*) ac_cv_sizeof_int=$ac_lo;; |
|
|
8799 | '') if test "$ac_cv_type_int" = yes; then |
|
|
8800 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
|
|
8801 | See \`config.log' for more details." >&5 |
|
|
8802 | echo "$as_me: error: cannot compute sizeof (int) |
|
|
8803 | See \`config.log' for more details." >&2;} |
|
|
8804 | { (exit 77); exit 77; }; } |
|
|
8805 | else |
|
|
8806 | ac_cv_sizeof_int=0 |
|
|
8807 | fi ;; |
|
|
8808 | esac |
|
|
8809 | else |
|
|
8810 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8811 | /* confdefs.h. */ |
|
|
8812 | _ACEOF |
|
|
8813 | cat confdefs.h >>conftest.$ac_ext |
|
|
8814 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8815 | /* end confdefs.h. */ |
|
|
8816 | $ac_includes_default |
|
|
8817 | typedef int ac__type_sizeof_; |
|
|
8818 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8819 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8820 | #include <stdio.h> |
|
|
8821 | #include <stdlib.h> |
|
|
8822 | int |
|
|
8823 | main () |
|
|
8824 | { |
|
|
8825 | |
|
|
8826 | FILE *f = fopen ("conftest.val", "w"); |
|
|
8827 | if (! f) |
|
|
8828 | return 1; |
|
|
8829 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
8830 | { |
|
|
8831 | long int i = longval (); |
|
|
8832 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8833 | return 1; |
|
|
8834 | fprintf (f, "%ld\n", i); |
|
|
8835 | } |
|
|
8836 | else |
|
|
8837 | { |
|
|
8838 | unsigned long int i = ulongval (); |
|
|
8839 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8840 | return 1; |
|
|
8841 | fprintf (f, "%lu\n", i); |
|
|
8842 | } |
|
|
8843 | return ferror (f) || fclose (f) != 0; |
|
|
8844 | |
|
|
8845 | ; |
|
|
8846 | return 0; |
|
|
8847 | } |
|
|
8848 | _ACEOF |
|
|
8849 | rm -f conftest$ac_exeext |
|
|
8850 | if { (ac_try="$ac_link" |
|
|
8851 | case "(($ac_try" in |
|
|
8852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8853 | *) ac_try_echo=$ac_try;; |
|
|
8854 | esac |
|
|
8855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8856 | (eval "$ac_link") 2>&5 |
|
|
8857 | ac_status=$? |
|
|
8858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8859 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
8860 | { (case "(($ac_try" in |
|
|
8861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8862 | *) ac_try_echo=$ac_try;; |
|
|
8863 | esac |
|
|
8864 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8865 | (eval "$ac_try") 2>&5 |
|
|
8866 | ac_status=$? |
|
|
8867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8868 | (exit $ac_status); }; }; then |
|
|
8869 | ac_cv_sizeof_int=`cat conftest.val` |
|
|
8870 | else |
|
|
8871 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
8872 | echo "$as_me: failed program was:" >&5 |
|
|
8873 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8874 | |
|
|
8875 | ( exit $ac_status ) |
|
|
8876 | if test "$ac_cv_type_int" = yes; then |
|
|
8877 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
|
|
8878 | See \`config.log' for more details." >&5 |
|
|
8879 | echo "$as_me: error: cannot compute sizeof (int) |
|
|
8880 | See \`config.log' for more details." >&2;} |
|
|
8881 | { (exit 77); exit 77; }; } |
|
|
8882 | else |
|
|
8883 | ac_cv_sizeof_int=0 |
|
|
8884 | fi |
|
|
8885 | fi |
|
|
8886 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
8887 | fi |
|
|
8888 | rm -f conftest.val |
|
|
8889 | fi |
|
|
8890 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
|
|
8891 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
|
|
8892 | |
|
|
8893 | |
|
|
8894 | |
|
|
8895 | cat >>confdefs.h <<_ACEOF |
|
|
8896 | #define SIZEOF_INT $ac_cv_sizeof_int |
|
|
8897 | _ACEOF |
|
|
8898 | |
|
|
8899 | |
|
|
8900 | { echo "$as_me:$LINENO: checking for long long" >&5 |
|
|
8901 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
|
|
8902 | if test "${ac_cv_type_long_long+set}" = set; then |
|
|
8903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8904 | else |
|
|
8905 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8906 | /* confdefs.h. */ |
|
|
8907 | _ACEOF |
|
|
8908 | cat confdefs.h >>conftest.$ac_ext |
|
|
8909 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8910 | /* end confdefs.h. */ |
|
|
8911 | $ac_includes_default |
|
|
8912 | typedef long long ac__type_new_; |
|
|
8913 | int |
|
|
8914 | main () |
|
|
8915 | { |
|
|
8916 | if ((ac__type_new_ *) 0) |
|
|
8917 | return 0; |
|
|
8918 | if (sizeof (ac__type_new_)) |
|
|
8919 | return 0; |
|
|
8920 | ; |
|
|
8921 | return 0; |
|
|
8922 | } |
|
|
8923 | _ACEOF |
|
|
8924 | rm -f conftest.$ac_objext |
|
|
8925 | if { (ac_try="$ac_compile" |
|
|
8926 | case "(($ac_try" in |
|
|
8927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8928 | *) ac_try_echo=$ac_try;; |
|
|
8929 | esac |
|
|
8930 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8931 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8932 | ac_status=$? |
|
|
8933 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8934 | rm -f conftest.er1 |
|
|
8935 | cat conftest.err >&5 |
|
|
8936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8937 | (exit $ac_status); } && { |
|
|
8938 | test -z "$ac_cxx_werror_flag" || |
|
|
8939 | test ! -s conftest.err |
|
|
8940 | } && test -s conftest.$ac_objext; then |
|
|
8941 | ac_cv_type_long_long=yes |
|
|
8942 | else |
|
|
8943 | echo "$as_me: failed program was:" >&5 |
|
|
8944 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8945 | |
|
|
8946 | ac_cv_type_long_long=no |
|
|
8947 | fi |
|
|
8948 | |
|
|
8949 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8950 | fi |
|
|
8951 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
|
|
8952 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
|
|
8953 | |
|
|
8954 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8955 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8956 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8957 | # This bug is HP SR number 8606223364. |
|
|
8958 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
|
|
8959 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } |
|
|
8960 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
|
|
8961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8962 | else |
|
|
8963 | if test "$cross_compiling" = yes; then |
|
|
8964 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8965 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8966 | /* confdefs.h. */ |
|
|
8967 | _ACEOF |
|
|
8968 | cat confdefs.h >>conftest.$ac_ext |
|
|
8969 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8970 | /* end confdefs.h. */ |
|
|
8971 | $ac_includes_default |
|
|
8972 | typedef long long ac__type_sizeof_; |
|
|
8973 | int |
|
|
8974 | main () |
|
|
8975 | { |
|
|
8976 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
8977 | test_array [0] = 0 |
|
|
8978 | |
|
|
8979 | ; |
|
|
8980 | return 0; |
|
|
8981 | } |
|
|
8982 | _ACEOF |
|
|
8983 | rm -f conftest.$ac_objext |
|
|
8984 | if { (ac_try="$ac_compile" |
|
|
8985 | case "(($ac_try" in |
|
|
8986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8987 | *) ac_try_echo=$ac_try;; |
|
|
8988 | esac |
|
|
8989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8990 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8991 | ac_status=$? |
|
|
8992 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8993 | rm -f conftest.er1 |
|
|
8994 | cat conftest.err >&5 |
|
|
8995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8996 | (exit $ac_status); } && { |
|
|
8997 | test -z "$ac_cxx_werror_flag" || |
|
|
8998 | test ! -s conftest.err |
|
|
8999 | } && test -s conftest.$ac_objext; then |
|
|
9000 | ac_lo=0 ac_mid=0 |
|
|
9001 | while :; do |
|
|
9002 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9003 | /* confdefs.h. */ |
|
|
9004 | _ACEOF |
|
|
9005 | cat confdefs.h >>conftest.$ac_ext |
|
|
9006 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9007 | /* end confdefs.h. */ |
|
|
9008 | $ac_includes_default |
|
|
9009 | typedef long long ac__type_sizeof_; |
|
|
9010 | int |
|
|
9011 | main () |
|
|
9012 | { |
|
|
9013 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9014 | test_array [0] = 0 |
|
|
9015 | |
|
|
9016 | ; |
|
|
9017 | return 0; |
|
|
9018 | } |
|
|
9019 | _ACEOF |
|
|
9020 | rm -f conftest.$ac_objext |
|
|
9021 | if { (ac_try="$ac_compile" |
|
|
9022 | case "(($ac_try" in |
|
|
9023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9024 | *) ac_try_echo=$ac_try;; |
|
|
9025 | esac |
|
|
9026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9027 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9028 | ac_status=$? |
|
|
9029 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9030 | rm -f conftest.er1 |
|
|
9031 | cat conftest.err >&5 |
|
|
9032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9033 | (exit $ac_status); } && { |
|
|
9034 | test -z "$ac_cxx_werror_flag" || |
|
|
9035 | test ! -s conftest.err |
|
|
9036 | } && test -s conftest.$ac_objext; then |
|
|
9037 | ac_hi=$ac_mid; break |
|
|
9038 | else |
|
|
9039 | echo "$as_me: failed program was:" >&5 |
|
|
9040 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9041 | |
|
|
9042 | ac_lo=`expr $ac_mid + 1` |
|
|
9043 | if test $ac_lo -le $ac_mid; then |
|
|
9044 | ac_lo= ac_hi= |
|
|
9045 | break |
|
|
9046 | fi |
|
|
9047 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
9048 | fi |
|
|
9049 | |
|
|
9050 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9051 | done |
|
|
9052 | else |
|
|
9053 | echo "$as_me: failed program was:" >&5 |
|
|
9054 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9055 | |
|
|
9056 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9057 | /* confdefs.h. */ |
|
|
9058 | _ACEOF |
|
|
9059 | cat confdefs.h >>conftest.$ac_ext |
|
|
9060 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9061 | /* end confdefs.h. */ |
|
|
9062 | $ac_includes_default |
|
|
9063 | typedef long long ac__type_sizeof_; |
|
|
9064 | int |
|
|
9065 | main () |
|
|
9066 | { |
|
|
9067 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
9068 | test_array [0] = 0 |
|
|
9069 | |
|
|
9070 | ; |
|
|
9071 | return 0; |
|
|
9072 | } |
|
|
9073 | _ACEOF |
|
|
9074 | rm -f conftest.$ac_objext |
|
|
9075 | if { (ac_try="$ac_compile" |
|
|
9076 | case "(($ac_try" in |
|
|
9077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9078 | *) ac_try_echo=$ac_try;; |
|
|
9079 | esac |
|
|
9080 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9081 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9082 | ac_status=$? |
|
|
9083 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9084 | rm -f conftest.er1 |
|
|
9085 | cat conftest.err >&5 |
|
|
9086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9087 | (exit $ac_status); } && { |
|
|
9088 | test -z "$ac_cxx_werror_flag" || |
|
|
9089 | test ! -s conftest.err |
|
|
9090 | } && test -s conftest.$ac_objext; then |
|
|
9091 | ac_hi=-1 ac_mid=-1 |
|
|
9092 | while :; do |
|
|
9093 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9094 | /* confdefs.h. */ |
|
|
9095 | _ACEOF |
|
|
9096 | cat confdefs.h >>conftest.$ac_ext |
|
|
9097 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9098 | /* end confdefs.h. */ |
|
|
9099 | $ac_includes_default |
|
|
9100 | typedef long long ac__type_sizeof_; |
|
|
9101 | int |
|
|
9102 | main () |
|
|
9103 | { |
|
|
9104 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
9105 | test_array [0] = 0 |
|
|
9106 | |
|
|
9107 | ; |
|
|
9108 | return 0; |
|
|
9109 | } |
|
|
9110 | _ACEOF |
|
|
9111 | rm -f conftest.$ac_objext |
|
|
9112 | if { (ac_try="$ac_compile" |
|
|
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_compile") 2>conftest.er1 |
|
|
9119 | ac_status=$? |
|
|
9120 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9121 | rm -f conftest.er1 |
|
|
9122 | cat conftest.err >&5 |
|
|
9123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9124 | (exit $ac_status); } && { |
|
|
9125 | test -z "$ac_cxx_werror_flag" || |
|
|
9126 | test ! -s conftest.err |
|
|
9127 | } && test -s conftest.$ac_objext; then |
|
|
9128 | ac_lo=$ac_mid; break |
|
|
9129 | else |
|
|
9130 | echo "$as_me: failed program was:" >&5 |
|
|
9131 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9132 | |
|
|
9133 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
9134 | if test $ac_mid -le $ac_hi; then |
|
|
9135 | ac_lo= ac_hi= |
|
|
9136 | break |
|
|
9137 | fi |
|
|
9138 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
9139 | fi |
|
|
9140 | |
|
|
9141 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9142 | done |
|
|
9143 | else |
|
|
9144 | echo "$as_me: failed program was:" >&5 |
|
|
9145 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9146 | |
|
|
9147 | ac_lo= ac_hi= |
|
|
9148 | fi |
|
|
9149 | |
|
|
9150 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9151 | fi |
|
|
9152 | |
|
|
9153 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9154 | # Binary search between lo and hi bounds. |
|
|
9155 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
9156 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
9157 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9158 | /* confdefs.h. */ |
|
|
9159 | _ACEOF |
|
|
9160 | cat confdefs.h >>conftest.$ac_ext |
|
|
9161 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9162 | /* end confdefs.h. */ |
|
|
9163 | $ac_includes_default |
|
|
9164 | typedef long long ac__type_sizeof_; |
|
|
9165 | int |
|
|
9166 | main () |
|
|
9167 | { |
|
|
9168 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9169 | test_array [0] = 0 |
|
|
9170 | |
|
|
9171 | ; |
|
|
9172 | return 0; |
|
|
9173 | } |
|
|
9174 | _ACEOF |
|
|
9175 | rm -f conftest.$ac_objext |
|
|
9176 | if { (ac_try="$ac_compile" |
|
|
9177 | case "(($ac_try" in |
|
|
9178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9179 | *) ac_try_echo=$ac_try;; |
|
|
9180 | esac |
|
|
9181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9182 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9183 | ac_status=$? |
|
|
9184 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9185 | rm -f conftest.er1 |
|
|
9186 | cat conftest.err >&5 |
|
|
9187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9188 | (exit $ac_status); } && { |
|
|
9189 | test -z "$ac_cxx_werror_flag" || |
|
|
9190 | test ! -s conftest.err |
|
|
9191 | } && test -s conftest.$ac_objext; then |
|
|
9192 | ac_hi=$ac_mid |
|
|
9193 | else |
|
|
9194 | echo "$as_me: failed program was:" >&5 |
|
|
9195 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9196 | |
|
|
9197 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
9198 | fi |
|
|
9199 | |
|
|
9200 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9201 | done |
|
|
9202 | case $ac_lo in |
|
|
9203 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
|
|
9204 | '') if test "$ac_cv_type_long_long" = yes; then |
|
|
9205 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
|
|
9206 | See \`config.log' for more details." >&5 |
|
|
9207 | echo "$as_me: error: cannot compute sizeof (long long) |
|
|
9208 | See \`config.log' for more details." >&2;} |
|
|
9209 | { (exit 77); exit 77; }; } |
|
|
9210 | else |
|
|
9211 | ac_cv_sizeof_long_long=0 |
|
|
9212 | fi ;; |
|
|
9213 | esac |
|
|
9214 | else |
|
|
9215 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9216 | /* confdefs.h. */ |
|
|
9217 | _ACEOF |
|
|
9218 | cat confdefs.h >>conftest.$ac_ext |
|
|
9219 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9220 | /* end confdefs.h. */ |
|
|
9221 | $ac_includes_default |
|
|
9222 | typedef long long ac__type_sizeof_; |
|
|
9223 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9224 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9225 | #include <stdio.h> |
|
|
9226 | #include <stdlib.h> |
|
|
9227 | int |
|
|
9228 | main () |
|
|
9229 | { |
|
|
9230 | |
|
|
9231 | FILE *f = fopen ("conftest.val", "w"); |
|
|
9232 | if (! f) |
|
|
9233 | return 1; |
|
|
9234 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
9235 | { |
|
|
9236 | long int i = longval (); |
|
|
9237 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9238 | return 1; |
|
|
9239 | fprintf (f, "%ld\n", i); |
|
|
9240 | } |
|
|
9241 | else |
|
|
9242 | { |
|
|
9243 | unsigned long int i = ulongval (); |
|
|
9244 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9245 | return 1; |
|
|
9246 | fprintf (f, "%lu\n", i); |
|
|
9247 | } |
|
|
9248 | return ferror (f) || fclose (f) != 0; |
|
|
9249 | |
|
|
9250 | ; |
|
|
9251 | return 0; |
|
|
9252 | } |
|
|
9253 | _ACEOF |
|
|
9254 | rm -f conftest$ac_exeext |
|
|
9255 | if { (ac_try="$ac_link" |
|
|
9256 | case "(($ac_try" in |
|
|
9257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9258 | *) ac_try_echo=$ac_try;; |
|
|
9259 | esac |
|
|
9260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9261 | (eval "$ac_link") 2>&5 |
|
|
9262 | ac_status=$? |
|
|
9263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9264 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
9265 | { (case "(($ac_try" in |
|
|
9266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9267 | *) ac_try_echo=$ac_try;; |
|
|
9268 | esac |
|
|
9269 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9270 | (eval "$ac_try") 2>&5 |
|
|
9271 | ac_status=$? |
|
|
9272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9273 | (exit $ac_status); }; }; then |
|
|
9274 | ac_cv_sizeof_long_long=`cat conftest.val` |
|
|
9275 | else |
|
|
9276 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
9277 | echo "$as_me: failed program was:" >&5 |
|
|
9278 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9279 | |
|
|
9280 | ( exit $ac_status ) |
|
|
9281 | if test "$ac_cv_type_long_long" = yes; then |
|
|
9282 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
|
|
9283 | See \`config.log' for more details." >&5 |
|
|
9284 | echo "$as_me: error: cannot compute sizeof (long long) |
|
|
9285 | See \`config.log' for more details." >&2;} |
|
|
9286 | { (exit 77); exit 77; }; } |
|
|
9287 | else |
|
|
9288 | ac_cv_sizeof_long_long=0 |
|
|
9289 | fi |
|
|
9290 | fi |
|
|
9291 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
9292 | fi |
|
|
9293 | rm -f conftest.val |
|
|
9294 | fi |
|
|
9295 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
|
|
9296 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
|
|
9297 | |
|
|
9298 | |
|
|
9299 | |
|
|
9300 | cat >>confdefs.h <<_ACEOF |
|
|
9301 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
|
|
9302 | _ACEOF |
|
|
9303 | |
|
|
9304 | |
|
|
9305 | { echo "$as_me:$LINENO: checking for int *" >&5 |
|
|
9306 | echo $ECHO_N "checking for int *... $ECHO_C" >&6; } |
|
|
9307 | if test "${ac_cv_type_int_p+set}" = set; then |
|
|
9308 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9309 | else |
|
|
9310 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9311 | /* confdefs.h. */ |
|
|
9312 | _ACEOF |
|
|
9313 | cat confdefs.h >>conftest.$ac_ext |
|
|
9314 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9315 | /* end confdefs.h. */ |
|
|
9316 | $ac_includes_default |
|
|
9317 | typedef int * ac__type_new_; |
|
|
9318 | int |
|
|
9319 | main () |
|
|
9320 | { |
|
|
9321 | if ((ac__type_new_ *) 0) |
|
|
9322 | return 0; |
|
|
9323 | if (sizeof (ac__type_new_)) |
|
|
9324 | return 0; |
|
|
9325 | ; |
|
|
9326 | return 0; |
|
|
9327 | } |
|
|
9328 | _ACEOF |
|
|
9329 | rm -f conftest.$ac_objext |
|
|
9330 | if { (ac_try="$ac_compile" |
|
|
9331 | case "(($ac_try" in |
|
|
9332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9333 | *) ac_try_echo=$ac_try;; |
|
|
9334 | esac |
|
|
9335 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9336 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9337 | ac_status=$? |
|
|
9338 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9339 | rm -f conftest.er1 |
|
|
9340 | cat conftest.err >&5 |
|
|
9341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9342 | (exit $ac_status); } && { |
|
|
9343 | test -z "$ac_cxx_werror_flag" || |
|
|
9344 | test ! -s conftest.err |
|
|
9345 | } && test -s conftest.$ac_objext; then |
|
|
9346 | ac_cv_type_int_p=yes |
|
|
9347 | else |
|
|
9348 | echo "$as_me: failed program was:" >&5 |
|
|
9349 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9350 | |
|
|
9351 | ac_cv_type_int_p=no |
|
|
9352 | fi |
|
|
9353 | |
|
|
9354 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9355 | fi |
|
|
9356 | { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5 |
|
|
9357 | echo "${ECHO_T}$ac_cv_type_int_p" >&6; } |
|
|
9358 | |
|
|
9359 | # The cast to long int works around a bug in the HP C Compiler |
|
|
9360 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
9361 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
9362 | # This bug is HP SR number 8606223364. |
|
|
9363 | { echo "$as_me:$LINENO: checking size of int *" >&5 |
|
|
9364 | echo $ECHO_N "checking size of int *... $ECHO_C" >&6; } |
|
|
9365 | if test "${ac_cv_sizeof_int_p+set}" = set; then |
|
|
9366 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9367 | else |
|
|
9368 | if test "$cross_compiling" = yes; then |
|
|
9369 | # Depending upon the size, compute the lo and hi bounds. |
|
|
9370 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9371 | /* confdefs.h. */ |
|
|
9372 | _ACEOF |
|
|
9373 | cat confdefs.h >>conftest.$ac_ext |
|
|
9374 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9375 | /* end confdefs.h. */ |
|
|
9376 | $ac_includes_default |
|
|
9377 | typedef int * ac__type_sizeof_; |
|
|
9378 | int |
|
|
9379 | main () |
|
|
9380 | { |
|
|
9381 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
9382 | test_array [0] = 0 |
|
|
9383 | |
|
|
9384 | ; |
|
|
9385 | return 0; |
|
|
9386 | } |
|
|
9387 | _ACEOF |
|
|
9388 | rm -f conftest.$ac_objext |
|
|
9389 | if { (ac_try="$ac_compile" |
|
|
9390 | case "(($ac_try" in |
|
|
9391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9392 | *) ac_try_echo=$ac_try;; |
|
|
9393 | esac |
|
|
9394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9395 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9396 | ac_status=$? |
|
|
9397 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9398 | rm -f conftest.er1 |
|
|
9399 | cat conftest.err >&5 |
|
|
9400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9401 | (exit $ac_status); } && { |
|
|
9402 | test -z "$ac_cxx_werror_flag" || |
|
|
9403 | test ! -s conftest.err |
|
|
9404 | } && test -s conftest.$ac_objext; then |
|
|
9405 | ac_lo=0 ac_mid=0 |
|
|
9406 | while :; do |
|
|
9407 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9408 | /* confdefs.h. */ |
|
|
9409 | _ACEOF |
|
|
9410 | cat confdefs.h >>conftest.$ac_ext |
|
|
9411 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9412 | /* end confdefs.h. */ |
|
|
9413 | $ac_includes_default |
|
|
9414 | typedef int * ac__type_sizeof_; |
|
|
9415 | int |
|
|
9416 | main () |
|
|
9417 | { |
|
|
9418 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9419 | test_array [0] = 0 |
|
|
9420 | |
|
|
9421 | ; |
|
|
9422 | return 0; |
|
|
9423 | } |
|
|
9424 | _ACEOF |
|
|
9425 | rm -f conftest.$ac_objext |
|
|
9426 | if { (ac_try="$ac_compile" |
|
|
9427 | case "(($ac_try" in |
|
|
9428 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9429 | *) ac_try_echo=$ac_try;; |
|
|
9430 | esac |
|
|
9431 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9432 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9433 | ac_status=$? |
|
|
9434 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9435 | rm -f conftest.er1 |
|
|
9436 | cat conftest.err >&5 |
|
|
9437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9438 | (exit $ac_status); } && { |
|
|
9439 | test -z "$ac_cxx_werror_flag" || |
|
|
9440 | test ! -s conftest.err |
|
|
9441 | } && test -s conftest.$ac_objext; then |
|
|
9442 | ac_hi=$ac_mid; break |
|
|
9443 | else |
|
|
9444 | echo "$as_me: failed program was:" >&5 |
|
|
9445 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9446 | |
|
|
9447 | ac_lo=`expr $ac_mid + 1` |
|
|
9448 | if test $ac_lo -le $ac_mid; then |
|
|
9449 | ac_lo= ac_hi= |
|
|
9450 | break |
|
|
9451 | fi |
|
|
9452 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
9453 | fi |
|
|
9454 | |
|
|
9455 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9456 | done |
|
|
9457 | else |
|
|
9458 | echo "$as_me: failed program was:" >&5 |
|
|
9459 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9460 | |
|
|
9461 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9462 | /* confdefs.h. */ |
|
|
9463 | _ACEOF |
|
|
9464 | cat confdefs.h >>conftest.$ac_ext |
|
|
9465 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9466 | /* end confdefs.h. */ |
|
|
9467 | $ac_includes_default |
|
|
9468 | typedef int * ac__type_sizeof_; |
|
|
9469 | int |
|
|
9470 | main () |
|
|
9471 | { |
|
|
9472 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
9473 | test_array [0] = 0 |
|
|
9474 | |
|
|
9475 | ; |
|
|
9476 | return 0; |
|
|
9477 | } |
|
|
9478 | _ACEOF |
|
|
9479 | rm -f conftest.$ac_objext |
|
|
9480 | if { (ac_try="$ac_compile" |
|
|
9481 | case "(($ac_try" in |
|
|
9482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9483 | *) ac_try_echo=$ac_try;; |
|
|
9484 | esac |
|
|
9485 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9486 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9487 | ac_status=$? |
|
|
9488 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9489 | rm -f conftest.er1 |
|
|
9490 | cat conftest.err >&5 |
|
|
9491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9492 | (exit $ac_status); } && { |
|
|
9493 | test -z "$ac_cxx_werror_flag" || |
|
|
9494 | test ! -s conftest.err |
|
|
9495 | } && test -s conftest.$ac_objext; then |
|
|
9496 | ac_hi=-1 ac_mid=-1 |
|
|
9497 | while :; do |
|
|
9498 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9499 | /* confdefs.h. */ |
|
|
9500 | _ACEOF |
|
|
9501 | cat confdefs.h >>conftest.$ac_ext |
|
|
9502 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9503 | /* end confdefs.h. */ |
|
|
9504 | $ac_includes_default |
|
|
9505 | typedef int * ac__type_sizeof_; |
|
|
9506 | int |
|
|
9507 | main () |
|
|
9508 | { |
|
|
9509 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
9510 | test_array [0] = 0 |
|
|
9511 | |
|
|
9512 | ; |
|
|
9513 | return 0; |
|
|
9514 | } |
|
|
9515 | _ACEOF |
|
|
9516 | rm -f conftest.$ac_objext |
|
|
9517 | if { (ac_try="$ac_compile" |
|
|
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_compile") 2>conftest.er1 |
|
|
9524 | ac_status=$? |
|
|
9525 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9526 | rm -f conftest.er1 |
|
|
9527 | cat conftest.err >&5 |
|
|
9528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9529 | (exit $ac_status); } && { |
|
|
9530 | test -z "$ac_cxx_werror_flag" || |
|
|
9531 | test ! -s conftest.err |
|
|
9532 | } && test -s conftest.$ac_objext; then |
|
|
9533 | ac_lo=$ac_mid; break |
|
|
9534 | else |
|
|
9535 | echo "$as_me: failed program was:" >&5 |
|
|
9536 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9537 | |
|
|
9538 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
9539 | if test $ac_mid -le $ac_hi; then |
|
|
9540 | ac_lo= ac_hi= |
|
|
9541 | break |
|
|
9542 | fi |
|
|
9543 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
9544 | fi |
|
|
9545 | |
|
|
9546 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9547 | done |
|
|
9548 | else |
|
|
9549 | echo "$as_me: failed program was:" >&5 |
|
|
9550 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9551 | |
|
|
9552 | ac_lo= ac_hi= |
|
|
9553 | fi |
|
|
9554 | |
|
|
9555 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9556 | fi |
|
|
9557 | |
|
|
9558 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9559 | # Binary search between lo and hi bounds. |
|
|
9560 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
9561 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
9562 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9563 | /* confdefs.h. */ |
|
|
9564 | _ACEOF |
|
|
9565 | cat confdefs.h >>conftest.$ac_ext |
|
|
9566 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9567 | /* end confdefs.h. */ |
|
|
9568 | $ac_includes_default |
|
|
9569 | typedef int * ac__type_sizeof_; |
|
|
9570 | int |
|
|
9571 | main () |
|
|
9572 | { |
|
|
9573 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9574 | test_array [0] = 0 |
|
|
9575 | |
|
|
9576 | ; |
|
|
9577 | return 0; |
|
|
9578 | } |
|
|
9579 | _ACEOF |
|
|
9580 | rm -f conftest.$ac_objext |
|
|
9581 | if { (ac_try="$ac_compile" |
|
|
9582 | case "(($ac_try" in |
|
|
9583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9584 | *) ac_try_echo=$ac_try;; |
|
|
9585 | esac |
|
|
9586 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9587 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9588 | ac_status=$? |
|
|
9589 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9590 | rm -f conftest.er1 |
|
|
9591 | cat conftest.err >&5 |
|
|
9592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9593 | (exit $ac_status); } && { |
|
|
9594 | test -z "$ac_cxx_werror_flag" || |
|
|
9595 | test ! -s conftest.err |
|
|
9596 | } && test -s conftest.$ac_objext; then |
|
|
9597 | ac_hi=$ac_mid |
|
|
9598 | else |
|
|
9599 | echo "$as_me: failed program was:" >&5 |
|
|
9600 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9601 | |
|
|
9602 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
9603 | fi |
|
|
9604 | |
|
|
9605 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9606 | done |
|
|
9607 | case $ac_lo in |
|
|
9608 | ?*) ac_cv_sizeof_int_p=$ac_lo;; |
|
|
9609 | '') if test "$ac_cv_type_int_p" = yes; then |
|
|
9610 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *) |
|
|
9611 | See \`config.log' for more details." >&5 |
|
|
9612 | echo "$as_me: error: cannot compute sizeof (int *) |
|
|
9613 | See \`config.log' for more details." >&2;} |
|
|
9614 | { (exit 77); exit 77; }; } |
|
|
9615 | else |
|
|
9616 | ac_cv_sizeof_int_p=0 |
|
|
9617 | fi ;; |
|
|
9618 | esac |
|
|
9619 | else |
|
|
9620 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9621 | /* confdefs.h. */ |
|
|
9622 | _ACEOF |
|
|
9623 | cat confdefs.h >>conftest.$ac_ext |
|
|
9624 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9625 | /* end confdefs.h. */ |
|
|
9626 | $ac_includes_default |
|
|
9627 | typedef int * ac__type_sizeof_; |
|
|
9628 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9629 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9630 | #include <stdio.h> |
|
|
9631 | #include <stdlib.h> |
|
|
9632 | int |
|
|
9633 | main () |
|
|
9634 | { |
|
|
9635 | |
|
|
9636 | FILE *f = fopen ("conftest.val", "w"); |
|
|
9637 | if (! f) |
|
|
9638 | return 1; |
|
|
9639 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
9640 | { |
|
|
9641 | long int i = longval (); |
|
|
9642 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9643 | return 1; |
|
|
9644 | fprintf (f, "%ld\n", i); |
|
|
9645 | } |
|
|
9646 | else |
|
|
9647 | { |
|
|
9648 | unsigned long int i = ulongval (); |
|
|
9649 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9650 | return 1; |
|
|
9651 | fprintf (f, "%lu\n", i); |
|
|
9652 | } |
|
|
9653 | return ferror (f) || fclose (f) != 0; |
|
|
9654 | |
|
|
9655 | ; |
|
|
9656 | return 0; |
|
|
9657 | } |
|
|
9658 | _ACEOF |
|
|
9659 | rm -f conftest$ac_exeext |
|
|
9660 | if { (ac_try="$ac_link" |
|
|
9661 | case "(($ac_try" in |
|
|
9662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9663 | *) ac_try_echo=$ac_try;; |
|
|
9664 | esac |
|
|
9665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9666 | (eval "$ac_link") 2>&5 |
|
|
9667 | ac_status=$? |
|
|
9668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9669 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
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_try") 2>&5 |
|
|
9676 | ac_status=$? |
|
|
9677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9678 | (exit $ac_status); }; }; then |
|
|
9679 | ac_cv_sizeof_int_p=`cat conftest.val` |
|
|
9680 | else |
|
|
9681 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
9682 | echo "$as_me: failed program was:" >&5 |
|
|
9683 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9684 | |
|
|
9685 | ( exit $ac_status ) |
|
|
9686 | if test "$ac_cv_type_int_p" = yes; then |
|
|
9687 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *) |
|
|
9688 | See \`config.log' for more details." >&5 |
|
|
9689 | echo "$as_me: error: cannot compute sizeof (int *) |
|
|
9690 | See \`config.log' for more details." >&2;} |
|
|
9691 | { (exit 77); exit 77; }; } |
|
|
9692 | else |
|
|
9693 | ac_cv_sizeof_int_p=0 |
|
|
9694 | fi |
|
|
9695 | fi |
|
|
9696 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
9697 | fi |
|
|
9698 | rm -f conftest.val |
|
|
9699 | fi |
|
|
9700 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5 |
|
|
9701 | echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; } |
|
|
9702 | |
|
|
9703 | |
|
|
9704 | |
|
|
9705 | cat >>confdefs.h <<_ACEOF |
|
|
9706 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p |
|
|
9707 | _ACEOF |
|
|
9708 | |
|
|
9709 | |
|
|
9710 | |
|
|
9711 | |
|
|
9712 | { echo "$as_me:$LINENO: checking for int16_t" >&5 |
|
|
9713 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } |
|
|
9714 | if test "${rxvt_cv_int16_t+set}" = set; then |
|
|
9715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9716 | else |
|
|
9717 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9718 | /* confdefs.h. */ |
|
|
9719 | _ACEOF |
|
|
9720 | cat confdefs.h >>conftest.$ac_ext |
|
|
9721 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9722 | /* end confdefs.h. */ |
|
|
9723 | #include <stdint.h> |
|
|
9724 | int |
|
|
9725 | main () |
|
|
9726 | { |
|
|
9727 | int16_t dummy; |
|
|
9728 | ; |
|
|
9729 | return 0; |
|
|
9730 | } |
|
|
9731 | _ACEOF |
|
|
9732 | rm -f conftest.$ac_objext |
|
|
9733 | if { (ac_try="$ac_compile" |
|
|
9734 | case "(($ac_try" in |
|
|
9735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9736 | *) ac_try_echo=$ac_try;; |
|
|
9737 | esac |
|
|
9738 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9739 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9740 | ac_status=$? |
|
|
9741 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9742 | rm -f conftest.er1 |
|
|
9743 | cat conftest.err >&5 |
|
|
9744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9745 | (exit $ac_status); } && { |
|
|
9746 | test -z "$ac_cxx_werror_flag" || |
|
|
9747 | test ! -s conftest.err |
|
|
9748 | } && test -s conftest.$ac_objext; then |
|
|
9749 | rxvt_cv_int16_t=yes |
|
|
9750 | else |
|
|
9751 | echo "$as_me: failed program was:" >&5 |
|
|
9752 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9753 | |
|
|
9754 | if test "$ac_cv_sizeof_char" -ge 2; then |
|
|
9755 | rxvt_cv_int16_t=" char" |
|
|
9756 | else |
|
|
9757 | if test "$ac_cv_sizeof_short" -ge 2; then |
|
|
9758 | rxvt_cv_int16_t=" short" |
|
|
9759 | else |
|
|
9760 | if test "$ac_cv_sizeof_int" -ge 2; then |
|
|
9761 | rxvt_cv_int16_t=" int" |
|
|
9762 | else |
|
|
9763 | if test "$ac_cv_sizeof_long" -ge 2; then |
|
|
9764 | rxvt_cv_int16_t=" long" |
|
|
9765 | else |
|
|
9766 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
|
|
9767 | rxvt_cv_int16_t=" long long" |
|
|
9768 | else |
|
|
9769 | rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default |
|
|
9770 | fi |
|
|
9771 | fi |
|
|
9772 | fi |
|
|
9773 | fi |
|
|
9774 | fi |
|
|
9775 | fi |
|
|
9776 | |
|
|
9777 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9778 | fi |
|
|
9779 | { echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5 |
|
|
9780 | echo "${ECHO_T}$rxvt_cv_int16_t" >&6; } |
|
|
9781 | if test x"$rxvt_cv_int16_t" != xyes; then |
|
|
9782 | rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;" |
|
|
9783 | else |
|
|
9784 | if test x"" = x; then |
|
|
9785 | rxvt_int16_typedef="/* typedef short int16_t; */" |
|
|
9786 | else |
|
|
9787 | rxvt_int16_typedef="/* typedef short int16_t; */" |
|
|
9788 | fi |
|
|
9789 | fi |
|
|
9790 | |
|
|
9791 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 |
|
|
9792 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } |
|
|
9793 | if test "${rxvt_cv_uint16_t+set}" = set; then |
|
|
9794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9795 | else |
|
|
9796 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9797 | /* confdefs.h. */ |
|
|
9798 | _ACEOF |
|
|
9799 | cat confdefs.h >>conftest.$ac_ext |
|
|
9800 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9801 | /* end confdefs.h. */ |
|
|
9802 | #include <stdint.h> |
|
|
9803 | int |
|
|
9804 | main () |
|
|
9805 | { |
|
|
9806 | uint16_t dummy; |
|
|
9807 | ; |
|
|
9808 | return 0; |
|
|
9809 | } |
|
|
9810 | _ACEOF |
|
|
9811 | rm -f conftest.$ac_objext |
|
|
9812 | if { (ac_try="$ac_compile" |
|
|
9813 | case "(($ac_try" in |
|
|
9814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9815 | *) ac_try_echo=$ac_try;; |
|
|
9816 | esac |
|
|
9817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9818 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9819 | ac_status=$? |
|
|
9820 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9821 | rm -f conftest.er1 |
|
|
9822 | cat conftest.err >&5 |
|
|
9823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9824 | (exit $ac_status); } && { |
|
|
9825 | test -z "$ac_cxx_werror_flag" || |
|
|
9826 | test ! -s conftest.err |
|
|
9827 | } && test -s conftest.$ac_objext; then |
|
|
9828 | rxvt_cv_uint16_t=yes |
|
|
9829 | else |
|
|
9830 | echo "$as_me: failed program was:" >&5 |
|
|
9831 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9832 | |
|
|
9833 | if test "$ac_cv_sizeof_char" -ge 2; then |
|
|
9834 | rxvt_cv_uint16_t="unsigned char" |
|
|
9835 | else |
|
|
9836 | if test "$ac_cv_sizeof_short" -ge 2; then |
|
|
9837 | rxvt_cv_uint16_t="unsigned short" |
|
|
9838 | else |
|
|
9839 | if test "$ac_cv_sizeof_int" -ge 2; then |
|
|
9840 | rxvt_cv_uint16_t="unsigned int" |
|
|
9841 | else |
|
|
9842 | if test "$ac_cv_sizeof_long" -ge 2; then |
|
|
9843 | rxvt_cv_uint16_t="unsigned long" |
|
|
9844 | else |
|
|
9845 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
|
|
9846 | rxvt_cv_uint16_t="unsigned long long" |
|
|
9847 | else |
|
|
9848 | rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default |
|
|
9849 | fi |
|
|
9850 | fi |
|
|
9851 | fi |
|
|
9852 | fi |
|
|
9853 | fi |
|
|
9854 | fi |
|
|
9855 | |
|
|
9856 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9857 | fi |
|
|
9858 | { echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5 |
|
|
9859 | echo "${ECHO_T}$rxvt_cv_uint16_t" >&6; } |
|
|
9860 | if test x"$rxvt_cv_uint16_t" != xyes; then |
|
|
9861 | rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;" |
|
|
9862 | else |
|
|
9863 | if test x"unsigned" = x; then |
|
|
9864 | rxvt_uint16_typedef="/* typedef short uint16_t; */" |
|
|
9865 | else |
|
|
9866 | rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */" |
|
|
9867 | fi |
|
|
9868 | fi |
|
|
9869 | |
|
|
9870 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
|
|
9871 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
|
|
9872 | if test "${rxvt_cv_int32_t+set}" = set; then |
|
|
9873 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9874 | else |
|
|
9875 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9876 | /* confdefs.h. */ |
|
|
9877 | _ACEOF |
|
|
9878 | cat confdefs.h >>conftest.$ac_ext |
|
|
9879 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9880 | /* end confdefs.h. */ |
|
|
9881 | #include <stdint.h> |
|
|
9882 | int |
|
|
9883 | main () |
|
|
9884 | { |
|
|
9885 | int32_t dummy; |
|
|
9886 | ; |
|
|
9887 | return 0; |
|
|
9888 | } |
|
|
9889 | _ACEOF |
|
|
9890 | rm -f conftest.$ac_objext |
|
|
9891 | if { (ac_try="$ac_compile" |
|
|
9892 | case "(($ac_try" in |
|
|
9893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9894 | *) ac_try_echo=$ac_try;; |
|
|
9895 | esac |
|
|
9896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9897 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9898 | ac_status=$? |
|
|
9899 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9900 | rm -f conftest.er1 |
|
|
9901 | cat conftest.err >&5 |
|
|
9902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9903 | (exit $ac_status); } && { |
|
|
9904 | test -z "$ac_cxx_werror_flag" || |
|
|
9905 | test ! -s conftest.err |
|
|
9906 | } && test -s conftest.$ac_objext; then |
|
|
9907 | rxvt_cv_int32_t=yes |
|
|
9908 | else |
|
|
9909 | echo "$as_me: failed program was:" >&5 |
|
|
9910 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9911 | |
|
|
9912 | if test "$ac_cv_sizeof_char" -ge 4; then |
|
|
9913 | rxvt_cv_int32_t=" char" |
|
|
9914 | else |
|
|
9915 | if test "$ac_cv_sizeof_short" -ge 4; then |
|
|
9916 | rxvt_cv_int32_t=" short" |
|
|
9917 | else |
|
|
9918 | if test "$ac_cv_sizeof_int" -ge 4; then |
|
|
9919 | rxvt_cv_int32_t=" int" |
|
|
9920 | else |
|
|
9921 | if test "$ac_cv_sizeof_long" -ge 4; then |
|
|
9922 | rxvt_cv_int32_t=" long" |
|
|
9923 | else |
|
|
9924 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
|
|
9925 | rxvt_cv_int32_t=" long long" |
|
|
9926 | else |
|
|
9927 | rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default |
|
|
9928 | fi |
|
|
9929 | fi |
|
|
9930 | fi |
|
|
9931 | fi |
|
|
9932 | fi |
|
|
9933 | fi |
|
|
9934 | |
|
|
9935 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9936 | fi |
|
|
9937 | { echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5 |
|
|
9938 | echo "${ECHO_T}$rxvt_cv_int32_t" >&6; } |
|
|
9939 | if test x"$rxvt_cv_int32_t" != xyes; then |
|
|
9940 | rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;" |
|
|
9941 | else |
|
|
9942 | if test x"" = x; then |
|
|
9943 | rxvt_int32_typedef="/* typedef int int32_t; */" |
|
|
9944 | else |
|
|
9945 | rxvt_int32_typedef="/* typedef int int32_t; */" |
|
|
9946 | fi |
|
|
9947 | fi |
|
|
9948 | |
|
|
9949 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
|
|
9950 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
|
|
9951 | if test "${rxvt_cv_uint32_t+set}" = set; then |
|
|
9952 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9953 | else |
|
|
9954 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9955 | /* confdefs.h. */ |
|
|
9956 | _ACEOF |
|
|
9957 | cat confdefs.h >>conftest.$ac_ext |
|
|
9958 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9959 | /* end confdefs.h. */ |
|
|
9960 | #include <stdint.h> |
|
|
9961 | int |
|
|
9962 | main () |
|
|
9963 | { |
|
|
9964 | uint32_t dummy; |
|
|
9965 | ; |
|
|
9966 | return 0; |
|
|
9967 | } |
|
|
9968 | _ACEOF |
|
|
9969 | rm -f conftest.$ac_objext |
|
|
9970 | if { (ac_try="$ac_compile" |
|
|
9971 | case "(($ac_try" in |
|
|
9972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9973 | *) ac_try_echo=$ac_try;; |
|
|
9974 | esac |
|
|
9975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9976 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9977 | ac_status=$? |
|
|
9978 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9979 | rm -f conftest.er1 |
|
|
9980 | cat conftest.err >&5 |
|
|
9981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9982 | (exit $ac_status); } && { |
|
|
9983 | test -z "$ac_cxx_werror_flag" || |
|
|
9984 | test ! -s conftest.err |
|
|
9985 | } && test -s conftest.$ac_objext; then |
|
|
9986 | rxvt_cv_uint32_t=yes |
|
|
9987 | else |
|
|
9988 | echo "$as_me: failed program was:" >&5 |
|
|
9989 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9990 | |
|
|
9991 | if test "$ac_cv_sizeof_char" -ge 4; then |
|
|
9992 | rxvt_cv_uint32_t="unsigned char" |
|
|
9993 | else |
|
|
9994 | if test "$ac_cv_sizeof_short" -ge 4; then |
|
|
9995 | rxvt_cv_uint32_t="unsigned short" |
|
|
9996 | else |
|
|
9997 | if test "$ac_cv_sizeof_int" -ge 4; then |
|
|
9998 | rxvt_cv_uint32_t="unsigned int" |
|
|
9999 | else |
|
|
10000 | if test "$ac_cv_sizeof_long" -ge 4; then |
|
|
10001 | rxvt_cv_uint32_t="unsigned long" |
|
|
10002 | else |
|
|
10003 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
|
|
10004 | rxvt_cv_uint32_t="unsigned long long" |
|
|
10005 | else |
|
|
10006 | rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default |
|
|
10007 | fi |
|
|
10008 | fi |
|
|
10009 | fi |
|
|
10010 | fi |
|
|
10011 | fi |
|
|
10012 | fi |
|
|
10013 | |
|
|
10014 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10015 | fi |
|
|
10016 | { echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5 |
|
|
10017 | echo "${ECHO_T}$rxvt_cv_uint32_t" >&6; } |
|
|
10018 | if test x"$rxvt_cv_uint32_t" != xyes; then |
|
|
10019 | rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;" |
|
|
10020 | else |
|
|
10021 | if test x"unsigned" = x; then |
|
|
10022 | rxvt_uint32_typedef="/* typedef int uint32_t; */" |
|
|
10023 | else |
|
|
10024 | rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" |
|
|
10025 | fi |
|
|
10026 | fi |
|
|
10027 | |
|
|
10028 | if test "$ac_cv_sizeof_int_p" -eq 8; then |
|
|
10029 | rxvt_intp_define="#define intp_t int64_t" |
|
|
10030 | rxvt_u_intp_define="#define u_intp_t u_int64_t" |
|
|
10031 | else |
|
|
10032 | if test "$ac_cv_sizeof_int_p" -eq 4; then |
|
|
10033 | rxvt_intp_define="#define intp_t int32_t" |
|
|
10034 | rxvt_u_intp_define="#define u_intp_t u_int32_t" |
|
|
10035 | else |
|
|
10036 | if test "$ac_cv_sizeof_int_p" -eq 2; then |
|
|
10037 | rxvt_intp_define="#define intp_t int16_t" |
|
|
10038 | rxvt_u_intp_define="#define u_intp_t u_int16_t" |
|
|
10039 | else |
|
|
10040 | rxvt_intp_define="#error set intp_t" |
|
|
10041 | rxvt_u_intp_define="#error set u_intp_t" |
|
|
10042 | fi |
|
|
10043 | fi |
|
|
10044 | fi |
|
|
10045 | |
|
|
10046 | |
|
|
10047 | |
|
|
10048 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
|
|
10049 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } |
|
|
10050 | if test "${ac_cv_type_signal+set}" = set; then |
|
|
10051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10052 | else |
|
|
10053 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10054 | /* confdefs.h. */ |
|
|
10055 | _ACEOF |
|
|
10056 | cat confdefs.h >>conftest.$ac_ext |
|
|
10057 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10058 | /* end confdefs.h. */ |
|
|
10059 | #include <sys/types.h> |
|
|
10060 | #include <signal.h> |
|
|
10061 | |
|
|
10062 | int |
|
|
10063 | main () |
|
|
10064 | { |
|
|
10065 | return *(signal (0, 0)) (0) == 1; |
|
|
10066 | ; |
|
|
10067 | return 0; |
|
|
10068 | } |
|
|
10069 | _ACEOF |
|
|
10070 | rm -f conftest.$ac_objext |
|
|
10071 | if { (ac_try="$ac_compile" |
|
|
10072 | case "(($ac_try" in |
|
|
10073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10074 | *) ac_try_echo=$ac_try;; |
|
|
10075 | esac |
|
|
10076 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10077 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10078 | ac_status=$? |
|
|
10079 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10080 | rm -f conftest.er1 |
|
|
10081 | cat conftest.err >&5 |
|
|
10082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10083 | (exit $ac_status); } && { |
|
|
10084 | test -z "$ac_cxx_werror_flag" || |
|
|
10085 | test ! -s conftest.err |
|
|
10086 | } && test -s conftest.$ac_objext; then |
|
|
10087 | ac_cv_type_signal=int |
|
|
10088 | else |
|
|
10089 | echo "$as_me: failed program was:" >&5 |
|
|
10090 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10091 | |
|
|
10092 | ac_cv_type_signal=void |
|
|
10093 | fi |
|
|
10094 | |
|
|
10095 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10096 | fi |
|
|
10097 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
|
|
10098 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
|
|
10099 | |
|
|
10100 | cat >>confdefs.h <<_ACEOF |
|
|
10101 | #define RETSIGTYPE $ac_cv_type_signal |
|
|
10102 | _ACEOF |
|
|
10103 | |
|
|
10104 | |
|
|
10105 | |
|
|
10106 | |
|
|
10107 | |
|
|
10108 | |
|
|
10109 | for ac_func in \ |
8227 | for ac_func in unsetenv |
10110 | unsetenv \ |
|
|
10111 | setutent \ |
|
|
10112 | on_exit \ |
|
|
10113 | |
|
|
10114 | do |
8228 | do |
10115 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8229 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10116 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8230 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10117 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
8231 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
10118 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
8232 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
… | |
… | |
10257 | |
8371 | |
10258 | |
8372 | |
10259 | |
8373 | |
10260 | |
8374 | |
10261 | for ac_func in \ |
8375 | for ac_func in \ |
10262 | ttyslot \ |
|
|
10263 | updwtmp \ |
8376 | updwtmp \ |
10264 | updwtmpx \ |
8377 | updwtmpx \ |
|
|
8378 | updlastlogx \ |
10265 | |
8379 | |
10266 | do |
8380 | do |
10267 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8381 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10268 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8382 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10269 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
8383 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
… | |
… | |
10355 | fi |
8469 | fi |
10356 | done |
8470 | done |
10357 | |
8471 | |
10358 | |
8472 | |
10359 | |
8473 | |
10360 | |
|
|
10361 | |
|
|
10362 | for ac_header in \ |
8474 | for ac_header in lastlog.h |
10363 | utmp.h \ |
|
|
10364 | utmpx.h \ |
|
|
10365 | lastlog.h \ |
|
|
10366 | |
|
|
10367 | do |
8475 | do |
10368 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
8476 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10369 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8477 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10370 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8478 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10371 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
8479 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
… | |
… | |
10502 | |
8610 | |
10503 | done |
8611 | done |
10504 | |
8612 | |
10505 | |
8613 | |
10506 | |
8614 | |
10507 | if test "${ac_cv_header_utmp_h+set}" = set; then |
8615 | |
|
|
8616 | for ac_header in utmp.h |
|
|
8617 | do |
|
|
8618 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
8619 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10508 | { echo "$as_me:$LINENO: checking for utmp.h" >&5 |
8620 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10509 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } |
8621 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10510 | if test "${ac_cv_header_utmp_h+set}" = set; then |
8622 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10512 | fi |
8624 | fi |
|
|
8625 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10513 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
8626 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
10514 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } |
8627 | echo "${ECHO_T}$ac_res" >&6; } |
10515 | else |
8628 | else |
10516 | # Is the header compilable? |
8629 | # Is the header compilable? |
10517 | { echo "$as_me:$LINENO: checking utmp.h usability" >&5 |
8630 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10518 | echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6; } |
8631 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
10519 | cat >conftest.$ac_ext <<_ACEOF |
8632 | cat >conftest.$ac_ext <<_ACEOF |
10520 | /* confdefs.h. */ |
8633 | /* confdefs.h. */ |
10521 | _ACEOF |
8634 | _ACEOF |
10522 | cat confdefs.h >>conftest.$ac_ext |
8635 | cat confdefs.h >>conftest.$ac_ext |
10523 | cat >>conftest.$ac_ext <<_ACEOF |
8636 | cat >>conftest.$ac_ext <<_ACEOF |
10524 | /* end confdefs.h. */ |
8637 | /* end confdefs.h. */ |
10525 | $ac_includes_default |
8638 | $ac_includes_default |
10526 | #include <utmp.h> |
8639 | #include <$ac_header> |
10527 | _ACEOF |
8640 | _ACEOF |
10528 | rm -f conftest.$ac_objext |
8641 | rm -f conftest.$ac_objext |
10529 | if { (ac_try="$ac_compile" |
8642 | if { (ac_try="$ac_compile" |
10530 | case "(($ac_try" in |
8643 | case "(($ac_try" in |
10531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
… | |
… | |
10553 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8666 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10554 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8667 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10555 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
8668 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
10556 | |
8669 | |
10557 | # Is the header present? |
8670 | # Is the header present? |
10558 | { echo "$as_me:$LINENO: checking utmp.h presence" >&5 |
8671 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10559 | echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6; } |
8672 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
10560 | cat >conftest.$ac_ext <<_ACEOF |
8673 | cat >conftest.$ac_ext <<_ACEOF |
10561 | /* confdefs.h. */ |
8674 | /* confdefs.h. */ |
10562 | _ACEOF |
8675 | _ACEOF |
10563 | cat confdefs.h >>conftest.$ac_ext |
8676 | cat confdefs.h >>conftest.$ac_ext |
10564 | cat >>conftest.$ac_ext <<_ACEOF |
8677 | cat >>conftest.$ac_ext <<_ACEOF |
10565 | /* end confdefs.h. */ |
8678 | /* end confdefs.h. */ |
10566 | #include <utmp.h> |
8679 | #include <$ac_header> |
10567 | _ACEOF |
8680 | _ACEOF |
10568 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8681 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10569 | case "(($ac_try" in |
8682 | case "(($ac_try" in |
10570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10571 | *) ac_try_echo=$ac_try;; |
8684 | *) ac_try_echo=$ac_try;; |
… | |
… | |
10594 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
8707 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
10595 | |
8708 | |
10596 | # So? What about this header? |
8709 | # So? What about this header? |
10597 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
8710 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
10598 | yes:no: ) |
8711 | yes:no: ) |
10599 | { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
8712 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10600 | echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
8713 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
10601 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5 |
8714 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10602 | echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;} |
8715 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
10603 | ac_header_preproc=yes |
8716 | ac_header_preproc=yes |
10604 | ;; |
8717 | ;; |
10605 | no:yes:* ) |
8718 | no:yes:* ) |
10606 | { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5 |
8719 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10607 | echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;} |
8720 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
10608 | { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5 |
8721 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10609 | echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;} |
8722 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
10610 | { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5 |
8723 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
10611 | echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;} |
8724 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
10612 | { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5 |
8725 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
10613 | echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;} |
8726 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
10614 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5 |
8727 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10615 | echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;} |
8728 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
10616 | { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5 |
8729 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10617 | echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;} |
8730 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
10618 | |
8731 | |
10619 | ;; |
8732 | ;; |
10620 | esac |
8733 | esac |
10621 | { echo "$as_me:$LINENO: checking for utmp.h" >&5 |
8734 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10622 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } |
8735 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10623 | if test "${ac_cv_header_utmp_h+set}" = set; then |
8736 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8737 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10625 | else |
8738 | else |
10626 | ac_cv_header_utmp_h=$ac_header_preproc |
8739 | eval "$as_ac_Header=\$ac_header_preproc" |
10627 | fi |
8740 | fi |
|
|
8741 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10628 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
8742 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
10629 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } |
8743 | echo "${ECHO_T}$ac_res" >&6; } |
10630 | |
8744 | |
10631 | fi |
8745 | fi |
10632 | if test $ac_cv_header_utmp_h = yes; then |
8746 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
8747 | cat >>confdefs.h <<_ACEOF |
|
|
8748 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
8749 | _ACEOF |
10633 | { echo "$as_me:$LINENO: checking for struct utmp" >&5 |
8750 | { echo "$as_me:$LINENO: checking for struct utmp" >&5 |
10634 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; } |
8751 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; } |
10635 | if test "${struct_utmp+set}" = set; then |
8752 | if test "${struct_utmp+set}" = set; then |
10636 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8753 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10637 | else |
8754 | else |
10638 | cat >conftest.$ac_ext <<_ACEOF |
8755 | cat >conftest.$ac_ext <<_ACEOF |
… | |
… | |
10805 | |
8922 | |
10806 | fi |
8923 | fi |
10807 | |
8924 | |
10808 | fi |
8925 | fi |
10809 | |
8926 | |
|
|
8927 | done |
10810 | |
8928 | |
10811 | |
8929 | |
10812 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
8930 | |
|
|
8931 | for ac_header in utmpx.h |
|
|
8932 | do |
|
|
8933 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
8934 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10813 | { echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
8935 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10814 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } |
8936 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10815 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
8937 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10816 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10817 | fi |
8939 | fi |
|
|
8940 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10818 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
8941 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
10819 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } |
8942 | echo "${ECHO_T}$ac_res" >&6; } |
10820 | else |
8943 | else |
10821 | # Is the header compilable? |
8944 | # Is the header compilable? |
10822 | { echo "$as_me:$LINENO: checking utmpx.h usability" >&5 |
8945 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10823 | echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6; } |
8946 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
10824 | cat >conftest.$ac_ext <<_ACEOF |
8947 | cat >conftest.$ac_ext <<_ACEOF |
10825 | /* confdefs.h. */ |
8948 | /* confdefs.h. */ |
10826 | _ACEOF |
8949 | _ACEOF |
10827 | cat confdefs.h >>conftest.$ac_ext |
8950 | cat confdefs.h >>conftest.$ac_ext |
10828 | cat >>conftest.$ac_ext <<_ACEOF |
8951 | cat >>conftest.$ac_ext <<_ACEOF |
10829 | /* end confdefs.h. */ |
8952 | /* end confdefs.h. */ |
10830 | $ac_includes_default |
8953 | $ac_includes_default |
10831 | #include <utmpx.h> |
8954 | #include <$ac_header> |
10832 | _ACEOF |
8955 | _ACEOF |
10833 | rm -f conftest.$ac_objext |
8956 | rm -f conftest.$ac_objext |
10834 | if { (ac_try="$ac_compile" |
8957 | if { (ac_try="$ac_compile" |
10835 | case "(($ac_try" in |
8958 | case "(($ac_try" in |
10836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
… | |
… | |
10858 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8981 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10859 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8982 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10860 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
8983 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
10861 | |
8984 | |
10862 | # Is the header present? |
8985 | # Is the header present? |
10863 | { echo "$as_me:$LINENO: checking utmpx.h presence" >&5 |
8986 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10864 | echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6; } |
8987 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
10865 | cat >conftest.$ac_ext <<_ACEOF |
8988 | cat >conftest.$ac_ext <<_ACEOF |
10866 | /* confdefs.h. */ |
8989 | /* confdefs.h. */ |
10867 | _ACEOF |
8990 | _ACEOF |
10868 | cat confdefs.h >>conftest.$ac_ext |
8991 | cat confdefs.h >>conftest.$ac_ext |
10869 | cat >>conftest.$ac_ext <<_ACEOF |
8992 | cat >>conftest.$ac_ext <<_ACEOF |
10870 | /* end confdefs.h. */ |
8993 | /* end confdefs.h. */ |
10871 | #include <utmpx.h> |
8994 | #include <$ac_header> |
10872 | _ACEOF |
8995 | _ACEOF |
10873 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8996 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10874 | case "(($ac_try" in |
8997 | case "(($ac_try" in |
10875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10876 | *) ac_try_echo=$ac_try;; |
8999 | *) ac_try_echo=$ac_try;; |
… | |
… | |
10899 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
9022 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
10900 | |
9023 | |
10901 | # So? What about this header? |
9024 | # So? What about this header? |
10902 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
9025 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
10903 | yes:no: ) |
9026 | yes:no: ) |
10904 | { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
9027 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10905 | echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
9028 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
10906 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5 |
9029 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10907 | echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;} |
9030 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
10908 | ac_header_preproc=yes |
9031 | ac_header_preproc=yes |
10909 | ;; |
9032 | ;; |
10910 | no:yes:* ) |
9033 | no:yes:* ) |
10911 | { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5 |
9034 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10912 | echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;} |
9035 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
10913 | { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5 |
9036 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10914 | echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;} |
9037 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
10915 | { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5 |
9038 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
10916 | echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;} |
9039 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
10917 | { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5 |
9040 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
10918 | echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;} |
9041 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
10919 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5 |
9042 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10920 | echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;} |
9043 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
10921 | { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5 |
9044 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10922 | echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;} |
9045 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
10923 | |
9046 | |
10924 | ;; |
9047 | ;; |
10925 | esac |
9048 | esac |
10926 | { echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
9049 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10927 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } |
9050 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10928 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
9051 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10930 | else |
9053 | else |
10931 | ac_cv_header_utmpx_h=$ac_header_preproc |
9054 | eval "$as_ac_Header=\$ac_header_preproc" |
10932 | fi |
9055 | fi |
|
|
9056 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10933 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
9057 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
10934 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } |
9058 | echo "${ECHO_T}$ac_res" >&6; } |
10935 | |
9059 | |
10936 | fi |
9060 | fi |
10937 | if test $ac_cv_header_utmpx_h = yes; then |
9061 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
9062 | cat >>confdefs.h <<_ACEOF |
|
|
9063 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
9064 | _ACEOF |
10938 | { echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
9065 | { echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
10939 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; } |
9066 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; } |
10940 | if test "${struct_utmpx+set}" = set; then |
9067 | if test "${struct_utmpx+set}" = set; then |
10941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10942 | else |
9069 | else |
10943 | cat >conftest.$ac_ext <<_ACEOF |
9070 | cat >conftest.$ac_ext <<_ACEOF |
… | |
… | |
11110 | |
9237 | |
11111 | fi |
9238 | fi |
11112 | |
9239 | |
11113 | fi |
9240 | fi |
11114 | |
9241 | |
|
|
9242 | done |
11115 | |
9243 | |
11116 | { echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
9244 | { echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
11117 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } |
9245 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } |
11118 | if test "${struct_lastlog+set}" = set; then |
9246 | if test "${struct_lastlog+set}" = set; then |
11119 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
11690 | |
9818 | |
11691 | cat >>confdefs.h <<_ACEOF |
9819 | cat >>confdefs.h <<_ACEOF |
11692 | #define LASTLOG_FILE "$path_lastlog" |
9820 | #define LASTLOG_FILE "$path_lastlog" |
11693 | _ACEOF |
9821 | _ACEOF |
11694 | |
9822 | |
11695 | if test -d "$path_lastlog"; then |
|
|
11696 | |
|
|
11697 | cat >>confdefs.h <<\_ACEOF |
|
|
11698 | #define LASTLOG_IS_DIR 1 |
|
|
11699 | _ACEOF |
|
|
11700 | |
|
|
11701 | fi |
|
|
11702 | fi |
9823 | fi |
11703 | |
9824 | |
11704 | { echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
9825 | { echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
11705 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } |
9826 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } |
11706 | if test "${path_lastlogx+set}" = set; then |
9827 | if test "${path_lastlogx+set}" = set; then |
… | |
… | |
11788 | |
9909 | |
11789 | fi |
9910 | fi |
11790 | |
9911 | |
11791 | |
9912 | |
11792 | |
9913 | |
11793 | { echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 |
|
|
11794 | echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6; } |
|
|
11795 | if test "${rxvt_cv_path_ttytab+set}" = set; then |
|
|
11796 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11797 | else |
|
|
11798 | for ttys_file in /etc/ttys /etc/ttytab; |
|
|
11799 | do |
|
|
11800 | if test -f "$ttys_file" ; then |
|
|
11801 | rxvt_cv_path_ttytab=$ttys_file |
|
|
11802 | break |
|
|
11803 | fi |
|
|
11804 | done |
|
|
11805 | |
9914 | |
11806 | fi |
|
|
11807 | { echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5 |
|
|
11808 | echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6; } |
|
|
11809 | if test x$rxvt_cv_path_ttytab != x; then |
|
|
11810 | |
|
|
11811 | cat >>confdefs.h <<_ACEOF |
|
|
11812 | #define TTYTAB_FILENAME "$rxvt_cv_path_ttytab" |
|
|
11813 | _ACEOF |
|
|
11814 | |
|
|
11815 | fi |
|
|
11816 | |
|
|
11817 | |
|
|
11818 | ac_save_LIBS=$LIBS |
9915 | save_LIBS=$LIBS |
11819 | ac_save_CFLAGS=$CFLAGS |
9916 | save_CFLAGS=$CFLAGS |
11820 | CFLAGS="$CFLAGS $X_CFLAGS" |
9917 | CFLAGS="$CFLAGS $X_CFLAGS" |
11821 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
9918 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
11822 | if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then |
9919 | if test x$support_xim = xyes; then |
11823 | LIBS=`echo $LIBS | sed "$R_TRANSLATE"` |
|
|
11824 | fi |
|
|
11825 | { echo "$as_me:$LINENO: checking for working Xlocale" >&5 |
9920 | { echo "$as_me:$LINENO: checking for working Xlocale" >&5 |
11826 | echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } |
9921 | echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } |
11827 | if test "${rxvt_cv_func_xlocale+set}" = set; then |
9922 | if test "${rxvt_cv_func_xlocale+set}" = set; then |
11828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11829 | else |
9924 | else |
11830 | if test "$cross_compiling" = yes; then |
9925 | if test "$cross_compiling" = yes; then |
11831 | : |
9926 | : |
11832 | else |
9927 | else |
11833 | cat >conftest.$ac_ext <<_ACEOF |
9928 | cat >conftest.$ac_ext <<_ACEOF |
11834 | /* confdefs.h. */ |
9929 | /* confdefs.h. */ |
11835 | _ACEOF |
9930 | _ACEOF |
11836 | cat confdefs.h >>conftest.$ac_ext |
9931 | cat confdefs.h >>conftest.$ac_ext |
11837 | cat >>conftest.$ac_ext <<_ACEOF |
9932 | cat >>conftest.$ac_ext <<_ACEOF |
11838 | /* end confdefs.h. */ |
9933 | /* end confdefs.h. */ |
11839 | #include <X11/Xlib.h> |
9934 | #include <X11/Xlib.h> |
11840 | #include <stdlib.h> |
9935 | #include <stdlib.h> |
11841 | main() { |
9936 | main() { |
11842 | char *p; |
9937 | char *p; |
11843 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
9938 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
11844 | exit (XSupportsLocale() ? 0 : 1); |
9939 | exit (XSupportsLocale() ? 0 : 1); |
11845 | else |
9940 | else |
11846 | exit (1);} |
9941 | exit (1);} |
11847 | _ACEOF |
9942 | _ACEOF |
11848 | rm -f conftest$ac_exeext |
9943 | rm -f conftest$ac_exeext |
11849 | if { (ac_try="$ac_link" |
9944 | if { (ac_try="$ac_link" |
11850 | case "(($ac_try" in |
9945 | case "(($ac_try" in |
11851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
… | |
… | |
11863 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9958 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11864 | (eval "$ac_try") 2>&5 |
9959 | (eval "$ac_try") 2>&5 |
11865 | ac_status=$? |
9960 | ac_status=$? |
11866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11867 | (exit $ac_status); }; }; then |
9962 | (exit $ac_status); }; }; then |
11868 | rxvt_cv_func_xlocale=yes |
9963 | rxvt_cv_func_xlocale=yes |
11869 | else |
9964 | else |
11870 | echo "$as_me: program exited with status $ac_status" >&5 |
9965 | echo "$as_me: program exited with status $ac_status" >&5 |
11871 | echo "$as_me: failed program was:" >&5 |
9966 | echo "$as_me: failed program was:" >&5 |
11872 | sed 's/^/| /' conftest.$ac_ext >&5 |
9967 | sed 's/^/| /' conftest.$ac_ext >&5 |
11873 | |
9968 | |
… | |
… | |
11879 | |
9974 | |
11880 | |
9975 | |
11881 | fi |
9976 | fi |
11882 | { echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 |
9977 | { echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 |
11883 | echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; } |
9978 | echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; } |
11884 | if test x$support_xim = xyes; then |
|
|
11885 | if test x$rxvt_cv_func_xlocale = xyes; then |
9979 | if test x$rxvt_cv_func_xlocale = xyes; then |
11886 | |
9980 | |
11887 | cat >>confdefs.h <<\_ACEOF |
9981 | cat >>confdefs.h <<\_ACEOF |
11888 | #define USE_XIM 1 |
9982 | #define USE_XIM 1 |
11889 | _ACEOF |
9983 | _ACEOF |
11890 | |
9984 | |
|
|
9985 | { echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
|
|
9986 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; } |
|
|
9987 | if test "${rxvt_broken_ximcb+set}" = set; then |
|
|
9988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9989 | else |
|
|
9990 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9991 | |
|
|
9992 | #include <X11/Xlib.h> |
|
|
9993 | |
|
|
9994 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
|
|
9995 | |
|
|
9996 | void f() { |
|
|
9997 | XIMCallback cb; |
|
|
9998 | cb.callback = im_destroy_cb; |
|
|
9999 | } |
|
|
10000 | |
|
|
10001 | _ACEOF |
|
|
10002 | rm -f conftest.$ac_objext |
|
|
10003 | if { (ac_try="$ac_compile" |
|
|
10004 | case "(($ac_try" in |
|
|
10005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10006 | *) ac_try_echo=$ac_try;; |
|
|
10007 | esac |
|
|
10008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10009 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10010 | ac_status=$? |
|
|
10011 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10012 | rm -f conftest.er1 |
|
|
10013 | cat conftest.err >&5 |
|
|
10014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10015 | (exit $ac_status); } && { |
|
|
10016 | test -z "$ac_cxx_werror_flag" || |
|
|
10017 | test ! -s conftest.err |
|
|
10018 | } && test -s conftest.$ac_objext; then |
|
|
10019 | rxvt_broken_ximcb=yes |
|
|
10020 | else |
|
|
10021 | echo "$as_me: failed program was:" >&5 |
|
|
10022 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10023 | |
|
|
10024 | rxvt_broken_ximcb=no |
|
|
10025 | fi |
|
|
10026 | |
|
|
10027 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10028 | fi |
|
|
10029 | { echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5 |
|
|
10030 | echo "${ECHO_T}$rxvt_broken_ximcb" >&6; } |
|
|
10031 | |
|
|
10032 | if test x$rxvt_broken_ximcb = xyes; then |
|
|
10033 | |
|
|
10034 | cat >>confdefs.h <<\_ACEOF |
|
|
10035 | #define XIMCB_PROTO_BROKEN 1 |
|
|
10036 | _ACEOF |
|
|
10037 | |
|
|
10038 | fi |
11891 | fi |
10039 | fi |
11892 | fi |
10040 | fi |
11893 | |
10041 | |
11894 | { echo "$as_me:$LINENO: checking for working X setlocale" >&5 |
10042 | { echo "$as_me:$LINENO: checking for working X setlocale" >&5 |
11895 | echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; } |
10043 | echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; } |
… | |
… | |
11948 | cat >>confdefs.h <<\_ACEOF |
10096 | cat >>confdefs.h <<\_ACEOF |
11949 | #define HAVE_XSETLOCALE 1 |
10097 | #define HAVE_XSETLOCALE 1 |
11950 | _ACEOF |
10098 | _ACEOF |
11951 | |
10099 | |
11952 | fi |
10100 | fi |
11953 | LIBS=$ac_save_LIBS |
10101 | LIBS=$save_LIBS |
11954 | CFLAGS=$ac_save_CFLAGS |
10102 | CFLAGS=$save_CFLAGS |
11955 | |
10103 | |
11956 | { echo "$as_me:$LINENO: checking for working plain setlocale" >&5 |
10104 | { echo "$as_me:$LINENO: checking for working plain setlocale" >&5 |
11957 | echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } |
10105 | echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } |
11958 | if test "${rxvt_cv_func_setlocale+set}" = set; then |
10106 | if test "${rxvt_cv_func_setlocale+set}" = set; then |
11959 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
12162 | { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5 |
10310 | { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5 |
12163 | echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} |
10311 | echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} |
12164 | { (exit 1); exit 1; }; } |
10312 | { (exit 1); exit 1; }; } |
12165 | fi |
10313 | fi |
12166 | |
10314 | |
12167 | |
|
|
12168 | { echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
|
|
12169 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; } |
|
|
12170 | if test "${rxvt_broken_ximcb+set}" = set; then |
|
|
12171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12172 | else |
|
|
12173 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12174 | |
|
|
12175 | #include <X11/Xlib.h> |
|
|
12176 | |
|
|
12177 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
|
|
12178 | |
|
|
12179 | void f() { |
|
|
12180 | XIMCallback cb; |
|
|
12181 | cb.callback = im_destroy_cb; |
|
|
12182 | } |
|
|
12183 | |
|
|
12184 | _ACEOF |
|
|
12185 | rm -f conftest.$ac_objext |
|
|
12186 | if { (ac_try="$ac_compile" |
|
|
12187 | case "(($ac_try" in |
|
|
12188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
12189 | *) ac_try_echo=$ac_try;; |
|
|
12190 | esac |
|
|
12191 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
12192 | (eval "$ac_compile") 2>conftest.er1 |
|
|
12193 | ac_status=$? |
|
|
12194 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12195 | rm -f conftest.er1 |
|
|
12196 | cat conftest.err >&5 |
|
|
12197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12198 | (exit $ac_status); } && { |
|
|
12199 | test -z "$ac_cxx_werror_flag" || |
|
|
12200 | test ! -s conftest.err |
|
|
12201 | } && test -s conftest.$ac_objext; then |
|
|
12202 | rxvt_broken_ximcb=yes |
|
|
12203 | else |
|
|
12204 | echo "$as_me: failed program was:" >&5 |
|
|
12205 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12206 | |
|
|
12207 | rxvt_broken_ximcb=no |
|
|
12208 | fi |
|
|
12209 | |
|
|
12210 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
12211 | fi |
|
|
12212 | { echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5 |
|
|
12213 | echo "${ECHO_T}$rxvt_broken_ximcb" >&6; } |
|
|
12214 | |
|
|
12215 | if test x$rxvt_broken_ximcb = xyes; then |
|
|
12216 | |
|
|
12217 | cat >>confdefs.h <<\_ACEOF |
|
|
12218 | #define XIMCB_PROTO_BROKEN 1 |
|
|
12219 | _ACEOF |
|
|
12220 | |
|
|
12221 | fi |
|
|
12222 | |
10315 | |
12223 | |
10316 | |
12224 | |
10317 | |
12225 | |
10318 | |
12226 | |
10319 | |
… | |
… | |
12907 | echo "${ECHO_T}no" >&6; } |
11000 | echo "${ECHO_T}no" >&6; } |
12908 | fi |
11001 | fi |
12909 | |
11002 | |
12910 | |
11003 | |
12911 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
11004 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
12912 | LIBS="$LIBS `$PKG_CONFIG xft --libs`" |
11005 | X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS" |
12913 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
11006 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
12914 | else |
11007 | else |
12915 | # Extract the first word of "xft-config", so it can be a program name with args. |
11008 | # Extract the first word of "xft-config", so it can be a program name with args. |
12916 | set dummy xft-config; ac_word=$2 |
11009 | set dummy xft-config; ac_word=$2 |
12917 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11010 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
… | |
… | |
12952 | echo "${ECHO_T}no" >&6; } |
11045 | echo "${ECHO_T}no" >&6; } |
12953 | fi |
11046 | fi |
12954 | |
11047 | |
12955 | |
11048 | |
12956 | if test $XFT_CONFIG != no; then |
11049 | if test $XFT_CONFIG != no; then |
12957 | LIBS="$LIBS `$XFT_CONFIG --libs`" |
11050 | X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" |
12958 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
11051 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
12959 | fi |
11052 | fi |
12960 | fi |
11053 | fi |
12961 | |
11054 | |
|
|
11055 | save_LIBS="$LIBS" |
|
|
11056 | LIBS="$LIBS $X_LIBS" |
12962 | |
11057 | |
12963 | for ac_header in X11/Xft/Xft.h |
11058 | for ac_header in X11/Xft/Xft.h |
12964 | do |
11059 | do |
12965 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11060 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12966 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11061 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
… | |
… | |
13099 | support_xft=no |
11194 | support_xft=no |
13100 | fi |
11195 | fi |
13101 | |
11196 | |
13102 | done |
11197 | done |
13103 | |
11198 | |
13104 | |
|
|
13105 | { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
11199 | { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
13106 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
11200 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
13107 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
11201 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
13108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11202 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13109 | else |
11203 | else |
13110 | ac_check_lib_save_LIBS=$LIBS |
11204 | ac_check_lib_save_LIBS=$LIBS |
… | |
… | |
13162 | LIBS=$ac_check_lib_save_LIBS |
11256 | LIBS=$ac_check_lib_save_LIBS |
13163 | fi |
11257 | fi |
13164 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
11258 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
13165 | echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } |
11259 | echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } |
13166 | if test $ac_cv_lib_Xft_XftDrawString32 = yes; then |
11260 | if test $ac_cv_lib_Xft_XftDrawString32 = yes; then |
13167 | cat >>confdefs.h <<_ACEOF |
11261 | : |
13168 | #define HAVE_LIBXFT 1 |
|
|
13169 | _ACEOF |
|
|
13170 | |
|
|
13171 | LIBS="-lXft $LIBS" |
|
|
13172 | |
|
|
13173 | else |
11262 | else |
13174 | support_xft=no |
11263 | support_xft=no |
13175 | fi |
11264 | fi |
13176 | |
11265 | |
|
|
11266 | LIBS="$save_LIBS" |
13177 | |
11267 | |
13178 | if test x$support_xft = xyes; then |
11268 | if test x$support_xft = xyes; then |
13179 | |
11269 | |
13180 | cat >>confdefs.h <<\_ACEOF |
11270 | cat >>confdefs.h <<\_ACEOF |
13181 | #define XFT 1 |
11271 | #define XFT 1 |
… | |
… | |
13209 | cat >>confdefs.h <<\_ACEOF |
11299 | cat >>confdefs.h <<\_ACEOF |
13210 | #define OFF_FOCUS_FADING 1 |
11300 | #define OFF_FOCUS_FADING 1 |
13211 | _ACEOF |
11301 | _ACEOF |
13212 | |
11302 | |
13213 | fi |
11303 | fi |
13214 | if test x$support_tinting = xyes; then |
|
|
13215 | |
|
|
13216 | cat >>confdefs.h <<\_ACEOF |
|
|
13217 | #define TINTING 1 |
|
|
13218 | _ACEOF |
|
|
13219 | |
|
|
13220 | fi |
|
|
13221 | if test x$support_inheritpixmap = xyes; then |
11304 | if test x$support_inheritpixmap = xyes; then |
13222 | |
11305 | |
13223 | cat >>confdefs.h <<\_ACEOF |
11306 | cat >>confdefs.h <<\_ACEOF |
13224 | #define ENABLE_TRANSPARENCY 1 |
11307 | #define ENABLE_TRANSPARENCY 1 |
13225 | _ACEOF |
11308 | _ACEOF |
… | |
… | |
13258 | cat >>confdefs.h <<\_ACEOF |
11341 | cat >>confdefs.h <<\_ACEOF |
13259 | #define MOUSE_SLIP_WHEELING 1 |
11342 | #define MOUSE_SLIP_WHEELING 1 |
13260 | _ACEOF |
11343 | _ACEOF |
13261 | |
11344 | |
13262 | fi |
11345 | fi |
13263 | if test x$support_xpm = xyes -o x$support_afterimage = xyes ; then |
|
|
13264 | |
|
|
13265 | cat >>confdefs.h <<\_ACEOF |
|
|
13266 | #define XPM_BACKGROUND 1 |
|
|
13267 | _ACEOF |
|
|
13268 | |
|
|
13269 | fi |
|
|
13270 | |
|
|
13271 | if test x$support_afterimage = xyes; then |
11346 | if test x$support_afterimage = xyes; then |
13272 | |
11347 | |
13273 | cat >>confdefs.h <<\_ACEOF |
11348 | cat >>confdefs.h <<\_ACEOF |
13274 | #define HAVE_AFTERIMAGE 1 |
11349 | #define HAVE_AFTERIMAGE 1 |
13275 | _ACEOF |
11350 | _ACEOF |
13276 | |
11351 | |
13277 | fi |
|
|
13278 | |
|
|
13279 | if test x$support_afterstep = xyes; then |
|
|
13280 | |
11352 | |
13281 | cat >>confdefs.h <<\_ACEOF |
11353 | cat >>confdefs.h <<\_ACEOF |
13282 | #define AFTERSTEP_INTEGRATION 1 |
11354 | #define BG_IMAGE_FROM_FILE 1 |
13283 | _ACEOF |
11355 | _ACEOF |
13284 | |
11356 | |
13285 | fi |
11357 | fi |
|
|
11358 | |
13286 | |
11359 | |
13287 | if test x$support_scroll_rxvt = xyes; then |
11360 | if test x$support_scroll_rxvt = xyes; then |
13288 | |
11361 | |
13289 | cat >>confdefs.h <<\_ACEOF |
11362 | cat >>confdefs.h <<\_ACEOF |
13290 | #define RXVT_SCROLLBAR 1 |
11363 | #define RXVT_SCROLLBAR 1 |
… | |
… | |
13559 | |
11632 | |
13560 | |
11633 | |
13561 | |
11634 | |
13562 | |
11635 | |
13563 | |
11636 | |
13564 | if test x$support_perl = xyes; then |
|
|
13565 | support_frills=yes |
|
|
13566 | fi |
|
|
13567 | |
11637 | |
13568 | |
11638 | |
13569 | |
11639 | |
13570 | |
11640 | |
13571 | |
11641 | |
13572 | |
|
|
13573 | if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then |
|
|
13574 | LIBS=`echo $LIBS | sed "$R_TRANSLATE"` |
|
|
13575 | X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"` |
|
|
13576 | X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"` |
|
|
13577 | XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"` |
|
|
13578 | fi |
|
|
13579 | |
11642 | |
13580 | |
11643 | |
13581 | |
11644 | |
13582 | |
11645 | |
13583 | |
11646 | |
… | |
… | |
13603 | if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then |
11666 | if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then |
13604 | include_stdint_h="#include <stdint.h>" |
11667 | include_stdint_h="#include <stdint.h>" |
13605 | else |
11668 | else |
13606 | include_stdint_h="/* #include <stdint.h> */" |
11669 | include_stdint_h="/* #include <stdint.h> */" |
13607 | fi |
11670 | fi |
13608 | if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13609 | include_stdarg_h="#include <cstdarg>" |
|
|
13610 | else |
|
|
13611 | include_stdarg_h="/* #include <cstdarg> */" |
|
|
13612 | fi |
|
|
13613 | if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13614 | include_stdlib_h="#include <cstdlib>" |
|
|
13615 | else |
|
|
13616 | include_stdlib_h="/* #include <cstdlib> */" |
|
|
13617 | fi |
|
|
13618 | if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13619 | include_unistd_h="#include <unistd.h>" |
|
|
13620 | else |
|
|
13621 | include_unistd_h="/* #include <unistd.h> */" |
|
|
13622 | fi |
|
|
13623 | if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13624 | include_string_h="#include <cstring>" |
|
|
13625 | else |
|
|
13626 | include_string_h="/* #include <cstring> */" |
|
|
13627 | fi |
|
|
13628 | if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13629 | include_fcntl_h="#include <fcntl.h>" |
|
|
13630 | else |
|
|
13631 | include_fcntl_h="/* #include <fcntl.h> */" |
|
|
13632 | fi |
|
|
13633 | if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13634 | include_util_h="#include <util.h>" |
|
|
13635 | else |
|
|
13636 | include_util_h="/* #include <util.h> */" |
|
|
13637 | fi |
|
|
13638 | if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13639 | include_assert_h="#include <assert.h>" |
|
|
13640 | else |
|
|
13641 | include_assert_h="/* #include <assert.h> */" |
|
|
13642 | fi |
|
|
13643 | if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then |
11671 | if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then |
13644 | include_sys_ioctl_h="#include <sys/ioctl.h>" |
11672 | include_sys_ioctl_h="#include <sys/ioctl.h>" |
13645 | else |
11673 | else |
13646 | include_sys_ioctl_h="/* #include <sys/ioctl.h> */" |
11674 | include_sys_ioctl_h="/* #include <sys/ioctl.h> */" |
13647 | fi |
11675 | fi |
13648 | if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13649 | include_sys_select_h="#include <sys/select.h>" |
|
|
13650 | else |
|
|
13651 | include_sys_select_h="/* #include <sys/select.h> */" |
|
|
13652 | fi |
|
|
13653 | if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then |
11676 | if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then |
13654 | include_sys_strredir_h="#include <sys/strredir.h>" |
11677 | include_sys_strredir_h="#include <sys/strredir.h>" |
13655 | else |
11678 | else |
13656 | include_sys_strredir_h="/* #include <sys/strredir.h> */" |
11679 | include_sys_strredir_h="/* #include <sys/strredir.h> */" |
13657 | fi |
|
|
13658 | if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13659 | include_sys_time_h="#include <sys/time.h>" |
|
|
13660 | else |
|
|
13661 | include_sys_time_h="/* #include <sys/time.h> */" |
|
|
13662 | fi |
|
|
13663 | if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then |
|
|
13664 | include_time_h="#include <time.h>" |
|
|
13665 | else |
|
|
13666 | include_time_h="/* #include <time.h> */" |
|
|
13667 | fi |
11680 | fi |
13668 | |
11681 | |
13669 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" |
11682 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" |
13670 | |
11683 | |
13671 | cat >confcache <<\_ACEOF |
11684 | cat >confcache <<\_ACEOF |
… | |
… | |
14332 | host_cpu!$host_cpu$ac_delim |
12345 | host_cpu!$host_cpu$ac_delim |
14333 | host_vendor!$host_vendor$ac_delim |
12346 | host_vendor!$host_vendor$ac_delim |
14334 | host_os!$host_os$ac_delim |
12347 | host_os!$host_os$ac_delim |
14335 | VERSION!$VERSION$ac_delim |
12348 | VERSION!$VERSION$ac_delim |
14336 | DATE!$DATE$ac_delim |
12349 | DATE!$DATE$ac_delim |
14337 | LSMDATE!$LSMDATE$ac_delim |
|
|
14338 | LIBVERSION!$LIBVERSION$ac_delim |
|
|
14339 | CC!$CC$ac_delim |
12350 | CC!$CC$ac_delim |
14340 | CFLAGS!$CFLAGS$ac_delim |
12351 | CFLAGS!$CFLAGS$ac_delim |
14341 | LDFLAGS!$LDFLAGS$ac_delim |
12352 | LDFLAGS!$LDFLAGS$ac_delim |
14342 | CPPFLAGS!$CPPFLAGS$ac_delim |
12353 | CPPFLAGS!$CPPFLAGS$ac_delim |
14343 | ac_ct_CC!$ac_ct_CC$ac_delim |
12354 | ac_ct_CC!$ac_ct_CC$ac_delim |
… | |
… | |
14351 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
12362 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
14352 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
12363 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
14353 | GREP!$GREP$ac_delim |
12364 | GREP!$GREP$ac_delim |
14354 | EGREP!$EGREP$ac_delim |
12365 | EGREP!$EGREP$ac_delim |
14355 | LINKER!$LINKER$ac_delim |
12366 | LINKER!$LINKER$ac_delim |
14356 | CXXLIB!$CXXLIB$ac_delim |
|
|
14357 | INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim |
|
|
14358 | RXVTNAME!$RXVTNAME$ac_delim |
12367 | RXVTNAME!$RXVTNAME$ac_delim |
|
|
12368 | CXXCPP!$CXXCPP$ac_delim |
14359 | TIC!$TIC$ac_delim |
12369 | TIC!$TIC$ac_delim |
14360 | XMKMF!$XMKMF$ac_delim |
12370 | XMKMF!$XMKMF$ac_delim |
14361 | CXXCPP!$CXXCPP$ac_delim |
|
|
14362 | X_CFLAGS!$X_CFLAGS$ac_delim |
12371 | X_CFLAGS!$X_CFLAGS$ac_delim |
14363 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
12372 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
14364 | X_LIBS!$X_LIBS$ac_delim |
12373 | X_LIBS!$X_LIBS$ac_delim |
14365 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
12374 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
14366 | afterimage_config!$afterimage_config$ac_delim |
12375 | afterimage_config!$afterimage_config$ac_delim |
14367 | XPM_CPPFLAGS!$XPM_CPPFLAGS$ac_delim |
|
|
14368 | XPM_CFLAGS!$XPM_CFLAGS$ac_delim |
|
|
14369 | XPM_LIBS!$XPM_LIBS$ac_delim |
|
|
14370 | rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim |
|
|
14371 | rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim |
|
|
14372 | rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim |
|
|
14373 | rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim |
|
|
14374 | rxvt_intp_define!$rxvt_intp_define$ac_delim |
|
|
14375 | rxvt_u_intp_define!$rxvt_u_intp_define$ac_delim |
|
|
14376 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
12376 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
14377 | XFT_CONFIG!$XFT_CONFIG$ac_delim |
12377 | XFT_CONFIG!$XFT_CONFIG$ac_delim |
14378 | PERL!$PERL$ac_delim |
12378 | PERL!$PERL$ac_delim |
14379 | PERLLIB!$PERLLIB$ac_delim |
12379 | PERLLIB!$PERLLIB$ac_delim |
14380 | PERLFLAGS!$PERLFLAGS$ac_delim |
12380 | PERLFLAGS!$PERLFLAGS$ac_delim |
14381 | PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim |
12381 | PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim |
14382 | IF_PERL!$IF_PERL$ac_delim |
12382 | IF_PERL!$IF_PERL$ac_delim |
14383 | PERL_O!$PERL_O$ac_delim |
12383 | PERL_O!$PERL_O$ac_delim |
14384 | LIBAFTERIMAGE_CFLAGS!$LIBAFTERIMAGE_CFLAGS$ac_delim |
12384 | AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim |
14385 | AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim |
12385 | AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim |
14386 | include_stdint_h!$include_stdint_h$ac_delim |
12386 | include_stdint_h!$include_stdint_h$ac_delim |
|
|
12387 | include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim |
|
|
12388 | include_sys_strredir_h!$include_sys_strredir_h$ac_delim |
|
|
12389 | LIBOBJS!$LIBOBJS$ac_delim |
|
|
12390 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
14387 | _ACEOF |
12391 | _ACEOF |
14388 | |
12392 | |
14389 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
12393 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 88; then |
14390 | break |
12394 | break |
14391 | elif $ac_last_try; then |
12395 | elif $ac_last_try; then |
14392 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
12396 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
14393 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
12397 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
14394 | { (exit 1); exit 1; }; } |
12398 | { (exit 1); exit 1; }; } |
… | |
… | |
14403 | ac_eof=`expr $ac_eof + 1` |
12407 | ac_eof=`expr $ac_eof + 1` |
14404 | fi |
12408 | fi |
14405 | |
12409 | |
14406 | cat >>$CONFIG_STATUS <<_ACEOF |
12410 | cat >>$CONFIG_STATUS <<_ACEOF |
14407 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
12411 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
14408 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
|
|
14409 | _ACEOF |
|
|
14410 | sed ' |
|
|
14411 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
|
|
14412 | s/^/s,@/; s/!/@,|#_!!_#|/ |
|
|
14413 | :n |
|
|
14414 | t n |
|
|
14415 | s/'"$ac_delim"'$/,g/; t |
|
|
14416 | s/$/\\/; p |
|
|
14417 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
|
|
14418 | ' >>$CONFIG_STATUS <conf$$subs.sed |
|
|
14419 | rm -f conf$$subs.sed |
|
|
14420 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
14421 | CEOF$ac_eof |
|
|
14422 | _ACEOF |
|
|
14423 | |
|
|
14424 | |
|
|
14425 | ac_delim='%!_!# ' |
|
|
14426 | for ac_last_try in false false false false false :; do |
|
|
14427 | cat >conf$$subs.sed <<_ACEOF |
|
|
14428 | include_stdarg_h!$include_stdarg_h$ac_delim |
|
|
14429 | include_stdlib_h!$include_stdlib_h$ac_delim |
|
|
14430 | include_unistd_h!$include_unistd_h$ac_delim |
|
|
14431 | include_string_h!$include_string_h$ac_delim |
|
|
14432 | include_fcntl_h!$include_fcntl_h$ac_delim |
|
|
14433 | include_util_h!$include_util_h$ac_delim |
|
|
14434 | include_assert_h!$include_assert_h$ac_delim |
|
|
14435 | include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim |
|
|
14436 | include_sys_select_h!$include_sys_select_h$ac_delim |
|
|
14437 | include_sys_strredir_h!$include_sys_strredir_h$ac_delim |
|
|
14438 | include_sys_time_h!$include_sys_time_h$ac_delim |
|
|
14439 | include_time_h!$include_time_h$ac_delim |
|
|
14440 | LIBOBJS!$LIBOBJS$ac_delim |
|
|
14441 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
|
|
14442 | _ACEOF |
|
|
14443 | |
|
|
14444 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then |
|
|
14445 | break |
|
|
14446 | elif $ac_last_try; then |
|
|
14447 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
|
|
14448 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
|
|
14449 | { (exit 1); exit 1; }; } |
|
|
14450 | else |
|
|
14451 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|
|
14452 | fi |
|
|
14453 | done |
|
|
14454 | |
|
|
14455 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
|
|
14456 | if test -n "$ac_eof"; then |
|
|
14457 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
|
|
14458 | ac_eof=`expr $ac_eof + 1` |
|
|
14459 | fi |
|
|
14460 | |
|
|
14461 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
14462 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
|
|
14463 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
12412 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
14464 | _ACEOF |
12413 | _ACEOF |
14465 | sed ' |
12414 | sed ' |
14466 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
12415 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
14467 | s/^/s,@/; s/!/@,|#_!!_#|/ |
12416 | s/^/s,@/; s/!/@,|#_!!_#|/ |
… | |
… | |
14720 | s&@builddir@&$ac_builddir&;t t |
12669 | s&@builddir@&$ac_builddir&;t t |
14721 | s&@abs_builddir@&$ac_abs_builddir&;t t |
12670 | s&@abs_builddir@&$ac_abs_builddir&;t t |
14722 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
12671 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
14723 | s&@INSTALL@&$ac_INSTALL&;t t |
12672 | s&@INSTALL@&$ac_INSTALL&;t t |
14724 | $ac_datarootdir_hack |
12673 | $ac_datarootdir_hack |
14725 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
12674 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out |
14726 | |
12675 | |
14727 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
12676 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
14728 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
12677 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
14729 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
12678 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
14730 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
12679 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
… | |
… | |
14878 | Install path: ${prefix}/bin |
12827 | Install path: ${prefix}/bin |
14879 | Compiler: $CXX |
12828 | Compiler: $CXX |
14880 | Compiler flags: $CXXFLAGS |
12829 | Compiler flags: $CXXFLAGS |
14881 | Linker: $LINKER" |
12830 | Linker: $LINKER" |
14882 | |
12831 | |
14883 | if test x$support_xpm = xyes; then |
|
|
14884 | echo " Xpm library: $XPM_LIBS" |
|
|
14885 | fi |
|
|
14886 | |
|
|
14887 | if test x$support_afterimage = xyes; then |
|
|
14888 | echo " AfterImage support: yes" |
|
|
14889 | fi |
|
|
14890 | |
|
|
14891 | if test x$support_afterstep = xyes; then |
|
|
14892 | echo " AfterStep integration: yes" |
|
|
14893 | fi |
|
|
14894 | |
|
|
14895 | if test x$term != x; then |
12832 | if test x$term != x; then |
14896 | echo " set TERM to: $term" |
12833 | echo " set TERM to: $term" |
14897 | fi |
12834 | fi |
14898 | if test x$terminfo != x; then |
12835 | if test x$terminfo != x; then |
14899 | echo " set TERMINFO to: $terminfo" |
12836 | echo " set TERMINFO to: $terminfo" |
… | |
… | |
14903 | if test x$RESFALLBACK != x; then |
12840 | if test x$RESFALLBACK != x; then |
14904 | echo " resource class fallback: $RESFALLBACK" |
12841 | echo " resource class fallback: $RESFALLBACK" |
14905 | fi |
12842 | fi |
14906 | echo |
12843 | echo |
14907 | echo " embedded perl: $support_perl" |
12844 | echo " embedded perl: $support_perl" |
|
|
12845 | echo " libafterimage: $support_afterimage" |
14908 | echo |
12846 | echo |
14909 | if test x$support_xpm = xneedsmanualspecification; then |
|
|
14910 | echo ".----------------------------------------------------------------." |
|
|
14911 | echo ". WARNING: --enable-xpm-background was specified however the ." |
|
|
14912 | echo ". XPM includes files and libraries could not be found. ." |
|
|
14913 | echo ". XPM backgrounds are now being DISABLED! If you want ." |
|
|
14914 | echo ". to use them you should rerun configure with the ." |
|
|
14915 | echo ". appropriate --with-xpm-includes=/path/to/xpm/includes ." |
|
|
14916 | echo ". and --with-xpm-library=/path/to/xpm/library lines. ." |
|
|
14917 | echo ".----------------------------------------------------------------." |
|
|
14918 | fi |
|
|
14919 | if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then |
12847 | if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then |
14920 | echo ".----------------------------------------------------------------." |
12848 | echo ".----------------------------------------------------------------." |
14921 | echo ". WARNING: --enable-xim was specified however the locale support ." |
12849 | echo ". WARNING: --enable-xim was specified however the locale support ." |
14922 | echo ". functions could not be found. ." |
12850 | echo ". functions could not be found. ." |
14923 | echo ". XIM is now being DISABLED! ." |
12851 | echo ". XIM is now being DISABLED! ." |