ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure
(Generate patch)

Comparing rxvt-unicode/configure (file contents):
Revision 1.111 by ayin, Sun Aug 26 19:38:30 2007 UTC vs.
Revision 1.122 by ayin, Tue Dec 11 18:32:08 2007 UTC

658host_cpu 658host_cpu
659host_vendor 659host_vendor
660host_os 660host_os
661VERSION 661VERSION
662DATE 662DATE
663LSMDATE
664LIBVERSION
665CC 663CC
666CFLAGS 664CFLAGS
667LDFLAGS 665LDFLAGS
668CPPFLAGS 666CPPFLAGS
669ac_ct_CC 667ac_ct_CC
677INSTALL_SCRIPT 675INSTALL_SCRIPT
678INSTALL_DATA 676INSTALL_DATA
679GREP 677GREP
680EGREP 678EGREP
681LINKER 679LINKER
682INSTALL_LIBRXVT
683RXVTNAME 680RXVTNAME
681CXXCPP
684TIC 682TIC
685XMKMF 683XMKMF
686CXXCPP
687X_CFLAGS 684X_CFLAGS
688X_PRE_LIBS 685X_PRE_LIBS
689X_LIBS 686X_LIBS
690X_EXTRA_LIBS 687X_EXTRA_LIBS
691afterimage_config 688afterimage_config
692rxvt_int16_typedef
693rxvt_uint16_typedef
694rxvt_int32_typedef
695rxvt_uint32_typedef
696rxvt_intp_define
697rxvt_u_intp_define
698PKG_CONFIG 689PKG_CONFIG
699XFT_CONFIG 690XFT_CONFIG
700PERL 691PERL
701PERLLIB 692PERLLIB
702PERLFLAGS 693PERLFLAGS
704IF_PERL 695IF_PERL
705PERL_O 696PERL_O
706AFTERIMAGE_CFLAGS 697AFTERIMAGE_CFLAGS
707AFTERIMAGE_LIBS 698AFTERIMAGE_LIBS
708include_stdint_h 699include_stdint_h
709include_stdarg_h
710include_stdlib_h
711include_unistd_h
712include_string_h
713include_fcntl_h
714include_util_h
715include_assert_h
716include_sys_ioctl_h 700include_sys_ioctl_h
717include_sys_select_h
718include_sys_strredir_h 701include_sys_strredir_h
719include_sys_time_h
720include_time_h
721LIBOBJS 702LIBOBJS
722LTLIBOBJS' 703LTLIBOBJS'
723ac_subst_files='' 704ac_subst_files=''
724 ac_precious_vars='build_alias 705 ac_precious_vars='build_alias
725host_alias 706host_alias
731CPPFLAGS 712CPPFLAGS
732CXX 713CXX
733CXXFLAGS 714CXXFLAGS
734CCC 715CCC
735CPP 716CPP
736XMKMF
737CXXCPP' 717CXXCPP
718XMKMF'
738 719
739 720
740# Initialize some variables set by options. 721# Initialize some variables set by options.
741ac_init_help= 722ac_init_help=
742ac_init_version=false 723ac_init_version=false
1316Optional Features: 1297Optional Features:
1317 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1298 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1318 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1299 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1319 --enable-everything enable standard non-multichoice features 1300 --enable-everything enable standard non-multichoice features
1320 NOTE: this option is order dependent 1301 NOTE: this option is order dependent
1321 NOTE: automatically enabled with --enable-shared 1302 --enable-warnings turn on g++ warnings
1322 --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
1323 --enable-combining enable composition of base and combining characters 1304 --enable-combining enable composition of base and combining characters
1324 --enable-xft enable xft support on systems that have it 1305 --enable-xft enable xft support on systems that have it
1325 --enable-font-styles enable bold and italic support 1306 --enable-font-styles enable bold and italic support
1326 --enable-afterimage enable integration with libAfterImage for background images 1307 --enable-afterimage enable integration with libAfterImage for background images
1327 --enable-transparency enable transparent backgrounds 1308 --enable-transparency enable transparent backgrounds
1328 --enable-fading enable colors fading when off focus 1309 --enable-fading enable colors fading when off focus
1329 --enable-rxvt-scroll enable rxvt style scrollbar 1310 --enable-rxvt-scroll enable rxvt style scrollbar
1330 --enable-next-scroll enable NeXT style scrollbar 1311 --enable-next-scroll enable NeXT style scrollbar
1331 --enable-xterm-scroll enable Xterm style scrollbar 1312 --enable-xterm-scroll enable Xterm style scrollbar
1313 --enable-plain-scroll enable plain style scrollbar
1332 --enable-perl enable embedded perl interpreter 1314 --enable-perl enable embedded perl interpreter
1333 --enable-plain-scroll enable plain style scrollbar
1334 --enable-xim XIM (X Input Method) protocol support 1315 --enable-xim XIM (X Input Method) protocol support
1335 --disable-backspace-key disable handling of the backspace key 1316 --disable-backspace-key disable handling of the backspace key
1336 --disable-delete-key disable handling of the delete key 1317 --disable-delete-key disable handling of the delete key
1337 --disable-resources disable all resource checking 1318 --disable-resources disable all resource checking
1338 --enable-8bitctrls enable 8 bit control sequences (not recommended) 1319 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1339 --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)
1340 --disable-swapscreen disable swap screen support 1321 --disable-swapscreen disable swap screen support
1341 --enable-iso14755 enable support for extended ISO 14755 modes 1322 --enable-iso14755 enable support for extended ISO 14755 modes
1342 --enable-frills enable support for rarely used features 1323 --enable-frills enable support for rarely used features
1343 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 1324 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1344 --enable-selectionscrolling enable scrolling during selections 1325 --enable-selectionscrolling enable scrolling during selections
1345 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 1326 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1346 --enable-slipwheeling enable slip wheel scrolling (requires previous) 1327 --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel)
1347 --enable-smart-resize enable smart growth/shrink behaviour 1328 --enable-smart-resize enable smart growth/shrink behaviour
1348 --enable-text-blink enable blinking text 1329 --enable-text-blink enable blinking text
1349 --enable-pointer-blank enable pointer blank when typing or inactive pointer 1330 --enable-pointer-blank enable pointer blank when typing or inactive pointer
1350 --enable-utmp enable utmp (utmpx) support 1331 --enable-utmp enable utmp (utmpx) support
1351 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) 1332 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1353 1334
1354Optional Packages: 1335Optional Packages:
1355 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1336 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1356 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1337 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1357 --with-afterimage-config=DIR use libAfterImage config script in DIR 1338 --with-afterimage-config=DIR use libAfterImage config script in DIR
1358 --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)
1359 --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)
1360 --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)
1361 --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)
1362 --with-term=NAME set the terminal to NAME (default: rxvt) 1343 --with-term=NAME set the terminal to NAME (default: rxvt)
1363 --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
1372 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
1373 you have headers in a nonstandard directory <include dir> 1354 you have headers in a nonstandard directory <include dir>
1374 CXX C++ compiler command 1355 CXX C++ compiler command
1375 CXXFLAGS C++ compiler flags 1356 CXXFLAGS C++ compiler flags
1376 CPP C preprocessor 1357 CPP C preprocessor
1358 CXXCPP C++ preprocessor
1377 XMKMF Path to xmkmf, Makefile generator for X Window System 1359 XMKMF Path to xmkmf, Makefile generator for X Window System
1378 CXXCPP C++ preprocessor
1379 1360
1380Use these variables to override the choices made by `configure' or to help 1361Use these variables to override the choices made by `configure' or to help
1381it to find libraries and programs with nonstandard names/locations. 1362it to find libraries and programs with nonstandard names/locations.
1382 1363
1383_ACEOF 1364_ACEOF
1919 1900
1920 1901
1921 1902
1922VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1903VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1923DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1904DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1905
1924echo "" 1906echo ""
1925echo "configuring for rxvt $VERSION" 1907echo "configuring for rxvt $VERSION"
1926echo "" 1908echo ""
1927 1909
1928orig_CXXFLAGS="$CXXFLAGS" 1910orig_CXXFLAGS="$CXXFLAGS"
1929
1930 1911
1931ac_ext=c 1912ac_ext=c
1932ac_cpp='$CPP $CPPFLAGS' 1913ac_cpp='$CPP $CPPFLAGS'
1933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3713echo "${ECHO_T}no" >&6; } 3694echo "${ECHO_T}no" >&6; }
3714fi 3695fi
3715rm -f conftest* 3696rm -f conftest*
3716 3697
3717 3698
3699
3700cat >>confdefs.h <<\_ACEOF
3701#define _GNU_SOURCE 1
3702_ACEOF
3703
3704
3718{ echo "$as_me:$LINENO: checking for library containing strerror" >&5 3705{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
3719echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } 3706echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3720if test "${ac_cv_search_strerror+set}" = set; then 3707if test "${ac_cv_search_strerror+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6 3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3722else 3709else
3869LINKER=$LINKER 3856LINKER=$LINKER
3870 3857
3871 3858
3872if test -z "$orig_CXXFLAGS"; then 3859if test -z "$orig_CXXFLAGS"; then
3873 if test x$GCC = xyes && test "x$GXX" = xyes; then 3860 if test x$GCC = xyes && test "x$GXX" = xyes; then
3874 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"
3875 cat >conftest.$ac_ext <<_ACEOF 3862 cat >conftest.$ac_ext <<_ACEOF
3876/* confdefs.h. */ 3863/* confdefs.h. */
3877_ACEOF 3864_ACEOF
3878cat confdefs.h >>conftest.$ac_ext 3865cat confdefs.h >>conftest.$ac_ext
3879cat >>conftest.$ac_ext <<_ACEOF 3866cat >>conftest.$ac_ext <<_ACEOF
3917 CXXFLAGS="-O" 3904 CXXFLAGS="-O"
3918 fi 3905 fi
3919 CFLAGS="$CXXFLAGS" 3906 CFLAGS="$CXXFLAGS"
3920fi 3907fi
3921 3908
3922
3923cat >>confdefs.h <<\_ACEOF
3924#define _GNU_SOURCE 1
3925_ACEOF
3926
3927
3928case $host in 3909case $host in
3929 *-*-solaris* ) 3910 *-*-solaris* )
3930 3911
3931cat >>confdefs.h <<\_ACEOF 3912cat >>confdefs.h <<\_ACEOF
3932#define _XOPEN_SOURCE 500 3913#define _XOPEN_SOURCE 500
3933_ACEOF 3914_ACEOF
3934 3915
3935 ;; 3916 ;;
3936esac 3917esac
3937
3938 3918
3939{ echo "$as_me:$LINENO: checking for setlocale" >&5 3919{ echo "$as_me:$LINENO: checking for setlocale" >&5
3940echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } 3920echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; }
3941if test "${ac_cv_func_setlocale+set}" = set; then 3921if test "${ac_cv_func_setlocale+set}" = set; then
3942 echo $ECHO_N "(cached) $ECHO_C" >&6 3922 echo $ECHO_N "(cached) $ECHO_C" >&6
4415support_iso14755=yes 4395support_iso14755=yes
4416support_styles=yes 4396support_styles=yes
4417support_perl=yes 4397support_perl=yes
4418codesets=all 4398codesets=all
4419 4399
4420
4421if test "x$enable_shared" = xyes; then
4422
4423cat >>confdefs.h <<\_ACEOF
4424#define LIBRXVT 1
4425_ACEOF
4426
4427 INSTALL_LIBRXVT=yes
4428fi
4429 4400
4430 4401
4431# Check whether --enable-everything was given. 4402# Check whether --enable-everything was given.
4432if test "${enable_everything+set}" = set; then 4403if test "${enable_everything+set}" = set; then
4433 enableval=$enable_everything; 4404 enableval=$enable_everything;
4491 fi 4462 fi
4492 4463
4493fi 4464fi
4494 4465
4495 4466
4467WARNINGS=no
4468# Check whether --enable-warnings was given.
4469if test "${enable_warnings+set}" = set; then
4470 enableval=$enable_warnings; if test x$enableval = xyes; then
4471 WARNINGS=yes
4472 fi
4473fi
4474
4475if 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
4482cat confdefs.h >>conftest.$ac_ext
4483cat >>conftest.$ac_ext <<_ACEOF
4484/* end confdefs.h. */
4485
4486int
4487main ()
4488{
4489
4490 ;
4491 return 0;
4492}
4493_ACEOF
4494rm -f conftest.$ac_objext
4495if { (ac_try="$ac_compile"
4496case "(($ac_try" in
4497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4498 *) ac_try_echo=$ac_try;;
4499esac
4500eval "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 :
4512else
4513 echo "$as_me: failed program was:" >&5
4514sed 's/^/| /' conftest.$ac_ext >&5
4515
4516 CXXFLAGS="$save_CXXFLAGS"
4517fi
4518
4519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4520 else
4521 CXXFLAGS="$CXXFLAGS -w"
4522 fi
4523fi
4524
4496# Check whether --enable-unicode3 was given. 4525# Check whether --enable-unicode3 was given.
4497if test "${enable_unicode3+set}" = set; then 4526if test "${enable_unicode3+set}" = set; then
4498 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
4499 support_unicode3=$enableval 4528 support_unicode3=$enableval
4500 fi 4529 fi
4581 support_scroll_xterm=$enableval 4610 support_scroll_xterm=$enableval
4582 fi 4611 fi
4583fi 4612fi
4584 4613
4585 4614
4615# Check whether --enable-plain-scroll was given.
4616if 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
4620fi
4621
4622
4586# Check whether --enable-perl was given. 4623# Check whether --enable-perl was given.
4587if test "${enable_perl+set}" = set; then 4624if test "${enable_perl+set}" = set; then
4588 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
4589 support_perl=$enableval 4626 support_perl=$enableval
4590 fi
4591fi
4592
4593
4594# Check whether --enable-plain-scroll was given.
4595if test "${enable_plain_scroll+set}" = set; then
4596 enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4597 support_scroll_plain=$enableval
4598 fi 4627 fi
4599fi 4628fi
4600 4629
4601 4630
4602 4631
4829#define RXVT_TERMINFO "$withval" 4858#define RXVT_TERMINFO "$withval"
4830_ACEOF 4859_ACEOF
4831 terminfo="$withval" 4860 terminfo="$withval"
4832 fi 4861 fi
4833fi 4862fi
4863
4864
4865
4866LIBEV_M4_AVOID_LIBRT=1
4867
4868ac_ext=cpp
4869ac_cpp='$CXXCPP $CPPFLAGS'
4870ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4871ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4872ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4873{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4874echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4875if test -z "$CXXCPP"; then
4876 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4877 echo $ECHO_N "(cached) $ECHO_C" >&6
4878else
4879 # Double quotes because CXXCPP needs to be expanded
4880 for CXXCPP in "$CXX -E" "/lib/cpp"
4881 do
4882 ac_preproc_ok=false
4883for ac_cxx_preproc_warn_flag in '' yes
4884do
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
4894cat confdefs.h >>conftest.$ac_ext
4895cat >>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
4904if { (ac_try="$ac_cpp conftest.$ac_ext"
4905case "(($ac_try" in
4906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4907 *) ac_try_echo=$ac_try;;
4908esac
4909eval "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 :
4921else
4922 echo "$as_me: failed program was:" >&5
4923sed 's/^/| /' conftest.$ac_ext >&5
4924
4925 # Broken: fails on valid input.
4926continue
4927fi
4928
4929rm -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
4936cat confdefs.h >>conftest.$ac_ext
4937cat >>conftest.$ac_ext <<_ACEOF
4938/* end confdefs.h. */
4939#include <ac_nonexistent.h>
4940_ACEOF
4941if { (ac_try="$ac_cpp conftest.$ac_ext"
4942case "(($ac_try" in
4943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4944 *) ac_try_echo=$ac_try;;
4945esac
4946eval "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.
4958continue
4959else
4960 echo "$as_me: failed program was:" >&5
4961sed 's/^/| /' conftest.$ac_ext >&5
4962
4963 # Passes both tests.
4964ac_preproc_ok=:
4965break
4966fi
4967
4968rm -f conftest.err conftest.$ac_ext
4969
4970done
4971# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4972rm -f conftest.err conftest.$ac_ext
4973if $ac_preproc_ok; then
4974 break
4975fi
4976
4977 done
4978 ac_cv_prog_CXXCPP=$CXXCPP
4979
4980fi
4981 CXXCPP=$ac_cv_prog_CXXCPP
4982else
4983 ac_cv_prog_CXXCPP=$CXXCPP
4984fi
4985{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
4986echo "${ECHO_T}$CXXCPP" >&6; }
4987ac_preproc_ok=false
4988for ac_cxx_preproc_warn_flag in '' yes
4989do
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
4999cat confdefs.h >>conftest.$ac_ext
5000cat >>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
5009if { (ac_try="$ac_cpp conftest.$ac_ext"
5010case "(($ac_try" in
5011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5012 *) ac_try_echo=$ac_try;;
5013esac
5014eval "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 :
5026else
5027 echo "$as_me: failed program was:" >&5
5028sed 's/^/| /' conftest.$ac_ext >&5
5029
5030 # Broken: fails on valid input.
5031continue
5032fi
5033
5034rm -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
5041cat confdefs.h >>conftest.$ac_ext
5042cat >>conftest.$ac_ext <<_ACEOF
5043/* end confdefs.h. */
5044#include <ac_nonexistent.h>
5045_ACEOF
5046if { (ac_try="$ac_cpp conftest.$ac_ext"
5047case "(($ac_try" in
5048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5049 *) ac_try_echo=$ac_try;;
5050esac
5051eval "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.
5063continue
5064else
5065 echo "$as_me: failed program was:" >&5
5066sed 's/^/| /' conftest.$ac_ext >&5
5067
5068 # Passes both tests.
5069ac_preproc_ok=:
5070break
5071fi
5072
5073rm -f conftest.err conftest.$ac_ext
5074
5075done
5076# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5077rm -f conftest.err conftest.$ac_ext
5078if $ac_preproc_ok; then
5079 :
5080else
5081 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5082See \`config.log' for more details." >&5
5083echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5084See \`config.log' for more details." >&2;}
5085 { (exit 1); exit 1; }; }
5086fi
5087
5088ac_ext=cpp
5089ac_cpp='$CXXCPP $CPPFLAGS'
5090ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5091ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5092ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5093
5094
5095{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5096echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5097if test "${ac_cv_header_stdc+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5099else
5100 cat >conftest.$ac_ext <<_ACEOF
5101/* confdefs.h. */
5102_ACEOF
5103cat confdefs.h >>conftest.$ac_ext
5104cat >>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
5111int
5112main ()
5113{
5114
5115 ;
5116 return 0;
5117}
5118_ACEOF
5119rm -f conftest.$ac_objext
5120if { (ac_try="$ac_compile"
5121case "(($ac_try" in
5122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123 *) ac_try_echo=$ac_try;;
5124esac
5125eval "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
5137else
5138 echo "$as_me: failed program was:" >&5
5139sed 's/^/| /' conftest.$ac_ext >&5
5140
5141 ac_cv_header_stdc=no
5142fi
5143
5144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5145
5146if 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
5151cat confdefs.h >>conftest.$ac_ext
5152cat >>conftest.$ac_ext <<_ACEOF
5153/* end confdefs.h. */
5154#include <string.h>
5155
5156_ACEOF
5157if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5158 $EGREP "memchr" >/dev/null 2>&1; then
5159 :
5160else
5161 ac_cv_header_stdc=no
5162fi
5163rm -f conftest*
5164
5165fi
5166
5167if 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
5172cat confdefs.h >>conftest.$ac_ext
5173cat >>conftest.$ac_ext <<_ACEOF
5174/* end confdefs.h. */
5175#include <stdlib.h>
5176
5177_ACEOF
5178if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5179 $EGREP "free" >/dev/null 2>&1; then
5180 :
5181else
5182 ac_cv_header_stdc=no
5183fi
5184rm -f conftest*
5185
5186fi
5187
5188if 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 :
5192else
5193 cat >conftest.$ac_ext <<_ACEOF
5194/* confdefs.h. */
5195_ACEOF
5196cat confdefs.h >>conftest.$ac_ext
5197cat >>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)))
5213int
5214main ()
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
5224rm -f conftest$ac_exeext
5225if { (ac_try="$ac_link"
5226case "(($ac_try" in
5227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228 *) ac_try_echo=$ac_try;;
5229esac
5230eval "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;;
5238esac
5239eval "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 :
5245else
5246 echo "$as_me: program exited with status $ac_status" >&5
5247echo "$as_me: failed program was:" >&5
5248sed 's/^/| /' conftest.$ac_ext >&5
5249
5250( exit $ac_status )
5251ac_cv_header_stdc=no
5252fi
5253rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5254fi
5255
5256
5257fi
5258fi
5259{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5260echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5261if test $ac_cv_header_stdc = yes; then
5262
5263cat >>confdefs.h <<\_ACEOF
5264#define STDC_HEADERS 1
5265_ACEOF
5266
5267fi
5268
5269# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5280 inttypes.h stdint.h unistd.h
5281do
5282as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5283{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5284echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5285if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5286 echo $ECHO_N "(cached) $ECHO_C" >&6
5287else
5288 cat >conftest.$ac_ext <<_ACEOF
5289/* confdefs.h. */
5290_ACEOF
5291cat confdefs.h >>conftest.$ac_ext
5292cat >>conftest.$ac_ext <<_ACEOF
5293/* end confdefs.h. */
5294$ac_includes_default
5295
5296#include <$ac_header>
5297_ACEOF
5298rm -f conftest.$ac_objext
5299if { (ac_try="$ac_compile"
5300case "(($ac_try" in
5301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5302 *) ac_try_echo=$ac_try;;
5303esac
5304eval "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"
5316else
5317 echo "$as_me: failed program was:" >&5
5318sed 's/^/| /' conftest.$ac_ext >&5
5319
5320 eval "$as_ac_Header=no"
5321fi
5322
5323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5324fi
5325ac_res=`eval echo '${'$as_ac_Header'}'`
5326 { echo "$as_me:$LINENO: result: $ac_res" >&5
5327echo "${ECHO_T}$ac_res" >&6; }
5328if 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
5333fi
5334
5335done
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345for ac_header in sys/inotify.h sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h
5346do
5347as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5348if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5349 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5350echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5351if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5352 echo $ECHO_N "(cached) $ECHO_C" >&6
5353fi
5354ac_res=`eval echo '${'$as_ac_Header'}'`
5355 { echo "$as_me:$LINENO: result: $ac_res" >&5
5356echo "${ECHO_T}$ac_res" >&6; }
5357else
5358 # Is the header compilable?
5359{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5360echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5361cat >conftest.$ac_ext <<_ACEOF
5362/* confdefs.h. */
5363_ACEOF
5364cat confdefs.h >>conftest.$ac_ext
5365cat >>conftest.$ac_ext <<_ACEOF
5366/* end confdefs.h. */
5367$ac_includes_default
5368#include <$ac_header>
5369_ACEOF
5370rm -f conftest.$ac_objext
5371if { (ac_try="$ac_compile"
5372case "(($ac_try" in
5373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5374 *) ac_try_echo=$ac_try;;
5375esac
5376eval "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
5388else
5389 echo "$as_me: failed program was:" >&5
5390sed 's/^/| /' conftest.$ac_ext >&5
5391
5392 ac_header_compiler=no
5393fi
5394
5395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5396{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5397echo "${ECHO_T}$ac_header_compiler" >&6; }
5398
5399# Is the header present?
5400{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5401echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5402cat >conftest.$ac_ext <<_ACEOF
5403/* confdefs.h. */
5404_ACEOF
5405cat confdefs.h >>conftest.$ac_ext
5406cat >>conftest.$ac_ext <<_ACEOF
5407/* end confdefs.h. */
5408#include <$ac_header>
5409_ACEOF
5410if { (ac_try="$ac_cpp conftest.$ac_ext"
5411case "(($ac_try" in
5412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5413 *) ac_try_echo=$ac_try;;
5414esac
5415eval "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
5427else
5428 echo "$as_me: failed program was:" >&5
5429sed 's/^/| /' conftest.$ac_ext >&5
5430
5431 ac_header_preproc=no
5432fi
5433
5434rm -f conftest.err conftest.$ac_ext
5435{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5436echo "${ECHO_T}$ac_header_preproc" >&6; }
5437
5438# So? What about this header?
5439case $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
5442echo "$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
5444echo "$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
5449echo "$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
5451echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5452 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5453echo "$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
5455echo "$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
5457echo "$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
5459echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5460
5461 ;;
5462esac
5463{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5464echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5465if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
5467else
5468 eval "$as_ac_Header=\$ac_header_preproc"
5469fi
5470ac_res=`eval echo '${'$as_ac_Header'}'`
5471 { echo "$as_me:$LINENO: result: $ac_res" >&5
5472echo "${ECHO_T}$ac_res" >&6; }
5473
5474fi
5475if 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
5480fi
5481
5482done
5483
5484
5485
5486
5487
5488
5489
5490
5491for ac_func in inotify_init epoll_ctl kqueue port_create poll select
5492do
5493as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5494{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5495echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5496if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5497 echo $ECHO_N "(cached) $ECHO_C" >&6
5498else
5499 cat >conftest.$ac_ext <<_ACEOF
5500/* confdefs.h. */
5501_ACEOF
5502cat confdefs.h >>conftest.$ac_ext
5503cat >>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
5526extern "C"
5527#endif
5528char $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
5533choke me
5534#endif
5535
5536int
5537main ()
5538{
5539return $ac_func ();
5540 ;
5541 return 0;
5542}
5543_ACEOF
5544rm -f conftest.$ac_objext conftest$ac_exeext
5545if { (ac_try="$ac_link"
5546case "(($ac_try" in
5547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5548 *) ac_try_echo=$ac_try;;
5549esac
5550eval "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"
5563else
5564 echo "$as_me: failed program was:" >&5
5565sed 's/^/| /' conftest.$ac_ext >&5
5566
5567 eval "$as_ac_var=no"
5568fi
5569
5570rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5571 conftest$ac_exeext conftest.$ac_ext
5572fi
5573ac_res=`eval echo '${'$as_ac_var'}'`
5574 { echo "$as_me:$LINENO: result: $ac_res" >&5
5575echo "${ECHO_T}$ac_res" >&6; }
5576if 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
5581fi
5582done
5583
5584
5585{ echo "$as_me:$LINENO: checking for clock_gettime" >&5
5586echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6; }
5587if test "${ac_cv_func_clock_gettime+set}" = set; then
5588 echo $ECHO_N "(cached) $ECHO_C" >&6
5589else
5590 cat >conftest.$ac_ext <<_ACEOF
5591/* confdefs.h. */
5592_ACEOF
5593cat confdefs.h >>conftest.$ac_ext
5594cat >>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
5617extern "C"
5618#endif
5619char 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
5624choke me
5625#endif
5626
5627int
5628main ()
5629{
5630return clock_gettime ();
5631 ;
5632 return 0;
5633}
5634_ACEOF
5635rm -f conftest.$ac_objext conftest$ac_exeext
5636if { (ac_try="$ac_link"
5637case "(($ac_try" in
5638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5639 *) ac_try_echo=$ac_try;;
5640esac
5641eval "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
5654else
5655 echo "$as_me: failed program was:" >&5
5656sed 's/^/| /' conftest.$ac_ext >&5
5657
5658 ac_cv_func_clock_gettime=no
5659fi
5660
5661rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5662 conftest$ac_exeext conftest.$ac_ext
5663fi
5664{ echo "$as_me:$LINENO: result: $ac_cv_func_clock_gettime" >&5
5665echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; }
5666if test $ac_cv_func_clock_gettime = yes; then
5667 :
5668else
5669
5670 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
5671
5672{ echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
5673echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
5674if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
5675 echo $ECHO_N "(cached) $ECHO_C" >&6
5676else
5677 ac_check_lib_save_LIBS=$LIBS
5678LIBS="-lrt $LIBS"
5679cat >conftest.$ac_ext <<_ACEOF
5680/* confdefs.h. */
5681_ACEOF
5682cat confdefs.h >>conftest.$ac_ext
5683cat >>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
5690extern "C"
5691#endif
5692char clock_gettime ();
5693int
5694main ()
5695{
5696return clock_gettime ();
5697 ;
5698 return 0;
5699}
5700_ACEOF
5701rm -f conftest.$ac_objext conftest$ac_exeext
5702if { (ac_try="$ac_link"
5703case "(($ac_try" in
5704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5705 *) ac_try_echo=$ac_try;;
5706esac
5707eval "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
5720else
5721 echo "$as_me: failed program was:" >&5
5722sed 's/^/| /' conftest.$ac_ext >&5
5723
5724 ac_cv_lib_rt_clock_gettime=no
5725fi
5726
5727rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5728 conftest$ac_exeext conftest.$ac_ext
5729LIBS=$ac_check_lib_save_LIBS
5730fi
5731{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
5732echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
5733if 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
5740fi
5741
5742 unset ac_cv_func_clock_gettime
5743
5744for ac_func in clock_gettime
5745do
5746as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5747{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5748echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5749if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5750 echo $ECHO_N "(cached) $ECHO_C" >&6
5751else
5752 cat >conftest.$ac_ext <<_ACEOF
5753/* confdefs.h. */
5754_ACEOF
5755cat confdefs.h >>conftest.$ac_ext
5756cat >>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
5779extern "C"
5780#endif
5781char $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
5786choke me
5787#endif
5788
5789int
5790main ()
5791{
5792return $ac_func ();
5793 ;
5794 return 0;
5795}
5796_ACEOF
5797rm -f conftest.$ac_objext conftest$ac_exeext
5798if { (ac_try="$ac_link"
5799case "(($ac_try" in
5800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5801 *) ac_try_echo=$ac_try;;
5802esac
5803eval "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"
5816else
5817 echo "$as_me: failed program was:" >&5
5818sed 's/^/| /' conftest.$ac_ext >&5
5819
5820 eval "$as_ac_var=no"
5821fi
5822
5823rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5824 conftest$ac_exeext conftest.$ac_ext
5825fi
5826ac_res=`eval echo '${'$as_ac_var'}'`
5827 { echo "$as_me:$LINENO: result: $ac_res" >&5
5828echo "${ECHO_T}$ac_res" >&6; }
5829if 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
5834fi
5835done
5836
5837 fi
5838
5839fi
5840
5841
5842
5843{ echo "$as_me:$LINENO: checking for ceil in -lm" >&5
5844echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; }
5845if test "${ac_cv_lib_m_ceil+set}" = set; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5847else
5848 ac_check_lib_save_LIBS=$LIBS
5849LIBS="-lm $LIBS"
5850cat >conftest.$ac_ext <<_ACEOF
5851/* confdefs.h. */
5852_ACEOF
5853cat confdefs.h >>conftest.$ac_ext
5854cat >>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
5861extern "C"
5862#endif
5863char ceil ();
5864int
5865main ()
5866{
5867return ceil ();
5868 ;
5869 return 0;
5870}
5871_ACEOF
5872rm -f conftest.$ac_objext conftest$ac_exeext
5873if { (ac_try="$ac_link"
5874case "(($ac_try" in
5875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5876 *) ac_try_echo=$ac_try;;
5877esac
5878eval "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
5891else
5892 echo "$as_me: failed program was:" >&5
5893sed 's/^/| /' conftest.$ac_ext >&5
5894
5895 ac_cv_lib_m_ceil=no
5896fi
5897
5898rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5899 conftest$ac_exeext conftest.$ac_ext
5900LIBS=$ac_check_lib_save_LIBS
5901fi
5902{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5
5903echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6; }
5904if 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
5911fi
5912
5913
5914
5915
4834 5916
4835 5917
4836 5918
4837# 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.
4838set dummy tic; ac_word=$2 5920set dummy tic; ac_word=$2
4859 fi 5941 fi
4860done 5942done
4861done 5943done
4862IFS=$as_save_IFS 5944IFS=$as_save_IFS
4863 5945
5946 test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":"
4864 ;; 5947 ;;
4865esac 5948esac
4866fi 5949fi
4867TIC=$ac_cv_path_TIC 5950TIC=$ac_cv_path_TIC
4868if test -n "$TIC"; then 5951if test -n "$TIC"; then
4871else 5954else
4872 { echo "$as_me:$LINENO: result: no" >&5 5955 { echo "$as_me:$LINENO: result: no" >&5
4873echo "${ECHO_T}no" >&6; } 5956echo "${ECHO_T}no" >&6; }
4874fi 5957fi
4875 5958
4876
4877
4878
4879
4880ac_ext=cpp
4881ac_cpp='$CXXCPP $CPPFLAGS'
4882ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4883ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4884ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4885{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4886echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4887if test -z "$CXXCPP"; then
4888 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4890else
4891 # Double quotes because CXXCPP needs to be expanded
4892 for CXXCPP in "$CXX -E" "/lib/cpp"
4893 do
4894 ac_preproc_ok=false
4895for ac_cxx_preproc_warn_flag in '' yes
4896do
4897 # Use a header file that comes with gcc, so configuring glibc
4898 # with a fresh cross-compiler works.
4899 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4900 # <limits.h> exists even on freestanding compilers.
4901 # On the NeXT, cc -E runs the code through the compiler's parser,
4902 # not just through cpp. "Syntax error" is here to catch this case.
4903 cat >conftest.$ac_ext <<_ACEOF
4904/* confdefs.h. */
4905_ACEOF
4906cat confdefs.h >>conftest.$ac_ext
4907cat >>conftest.$ac_ext <<_ACEOF
4908/* end confdefs.h. */
4909#ifdef __STDC__
4910# include <limits.h>
4911#else
4912# include <assert.h>
4913#endif
4914 Syntax error
4915_ACEOF
4916if { (ac_try="$ac_cpp conftest.$ac_ext"
4917case "(($ac_try" in
4918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4919 *) ac_try_echo=$ac_try;;
4920esac
4921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4922 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4923 ac_status=$?
4924 grep -v '^ *+' conftest.er1 >conftest.err
4925 rm -f conftest.er1
4926 cat conftest.err >&5
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); } >/dev/null && {
4929 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4930 test ! -s conftest.err
4931 }; then
4932 :
4933else
4934 echo "$as_me: failed program was:" >&5
4935sed 's/^/| /' conftest.$ac_ext >&5
4936
4937 # Broken: fails on valid input.
4938continue
4939fi
4940
4941rm -f conftest.err conftest.$ac_ext
4942
4943 # OK, works on sane cases. Now check whether nonexistent headers
4944 # can be detected and how.
4945 cat >conftest.$ac_ext <<_ACEOF
4946/* confdefs.h. */
4947_ACEOF
4948cat confdefs.h >>conftest.$ac_ext
4949cat >>conftest.$ac_ext <<_ACEOF
4950/* end confdefs.h. */
4951#include <ac_nonexistent.h>
4952_ACEOF
4953if { (ac_try="$ac_cpp conftest.$ac_ext"
4954case "(($ac_try" in
4955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4956 *) ac_try_echo=$ac_try;;
4957esac
4958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4960 ac_status=$?
4961 grep -v '^ *+' conftest.er1 >conftest.err
4962 rm -f conftest.er1
4963 cat conftest.err >&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); } >/dev/null && {
4966 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4967 test ! -s conftest.err
4968 }; then
4969 # Broken: success on invalid input.
4970continue
4971else
4972 echo "$as_me: failed program was:" >&5
4973sed 's/^/| /' conftest.$ac_ext >&5
4974
4975 # Passes both tests.
4976ac_preproc_ok=:
4977break
4978fi
4979
4980rm -f conftest.err conftest.$ac_ext
4981
4982done
4983# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4984rm -f conftest.err conftest.$ac_ext
4985if $ac_preproc_ok; then
4986 break
4987fi
4988
4989 done
4990 ac_cv_prog_CXXCPP=$CXXCPP
4991
4992fi
4993 CXXCPP=$ac_cv_prog_CXXCPP
4994else
4995 ac_cv_prog_CXXCPP=$CXXCPP
4996fi
4997{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
4998echo "${ECHO_T}$CXXCPP" >&6; }
4999ac_preproc_ok=false
5000for ac_cxx_preproc_warn_flag in '' yes
5001do
5002 # Use a header file that comes with gcc, so configuring glibc
5003 # with a fresh cross-compiler works.
5004 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5005 # <limits.h> exists even on freestanding compilers.
5006 # On the NeXT, cc -E runs the code through the compiler's parser,
5007 # not just through cpp. "Syntax error" is here to catch this case.
5008 cat >conftest.$ac_ext <<_ACEOF
5009/* confdefs.h. */
5010_ACEOF
5011cat confdefs.h >>conftest.$ac_ext
5012cat >>conftest.$ac_ext <<_ACEOF
5013/* end confdefs.h. */
5014#ifdef __STDC__
5015# include <limits.h>
5016#else
5017# include <assert.h>
5018#endif
5019 Syntax error
5020_ACEOF
5021if { (ac_try="$ac_cpp conftest.$ac_ext"
5022case "(($ac_try" in
5023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5024 *) ac_try_echo=$ac_try;;
5025esac
5026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5027 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5028 ac_status=$?
5029 grep -v '^ *+' conftest.er1 >conftest.err
5030 rm -f conftest.er1
5031 cat conftest.err >&5
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); } >/dev/null && {
5034 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5035 test ! -s conftest.err
5036 }; then
5037 :
5038else
5039 echo "$as_me: failed program was:" >&5
5040sed 's/^/| /' conftest.$ac_ext >&5
5041
5042 # Broken: fails on valid input.
5043continue
5044fi
5045
5046rm -f conftest.err conftest.$ac_ext
5047
5048 # OK, works on sane cases. Now check whether nonexistent headers
5049 # can be detected and how.
5050 cat >conftest.$ac_ext <<_ACEOF
5051/* confdefs.h. */
5052_ACEOF
5053cat confdefs.h >>conftest.$ac_ext
5054cat >>conftest.$ac_ext <<_ACEOF
5055/* end confdefs.h. */
5056#include <ac_nonexistent.h>
5057_ACEOF
5058if { (ac_try="$ac_cpp conftest.$ac_ext"
5059case "(($ac_try" in
5060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5061 *) ac_try_echo=$ac_try;;
5062esac
5063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5065 ac_status=$?
5066 grep -v '^ *+' conftest.er1 >conftest.err
5067 rm -f conftest.er1
5068 cat conftest.err >&5
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); } >/dev/null && {
5071 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5072 test ! -s conftest.err
5073 }; then
5074 # Broken: success on invalid input.
5075continue
5076else
5077 echo "$as_me: failed program was:" >&5
5078sed 's/^/| /' conftest.$ac_ext >&5
5079
5080 # Passes both tests.
5081ac_preproc_ok=:
5082break
5083fi
5084
5085rm -f conftest.err conftest.$ac_ext
5086
5087done
5088# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5089rm -f conftest.err conftest.$ac_ext
5090if $ac_preproc_ok; then
5091 :
5092else
5093 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5094See \`config.log' for more details." >&5
5095echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5096See \`config.log' for more details." >&2;}
5097 { (exit 1); exit 1; }; }
5098fi
5099
5100ac_ext=cpp
5101ac_cpp='$CXXCPP $CPPFLAGS'
5102ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5103ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5104ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5105 5959
5106 5960
5107{ echo "$as_me:$LINENO: checking for X" >&5 5961{ echo "$as_me:$LINENO: checking for X" >&5
5108echo $ECHO_N "checking for X... $ECHO_C" >&6; } 5962echo $ECHO_N "checking for X... $ECHO_C" >&6; }
5109 5963
6495echo "${ECHO_T}no" >&6; } 7349echo "${ECHO_T}no" >&6; }
6496 fi 7350 fi
6497 fi 7351 fi
6498fi 7352fi
6499 7353
6500{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6501echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6502if test "${ac_cv_header_sys_wait_h+set}" = set; then
6503 echo $ECHO_N "(cached) $ECHO_C" >&6
6504else
6505 cat >conftest.$ac_ext <<_ACEOF
6506/* confdefs.h. */
6507_ACEOF
6508cat confdefs.h >>conftest.$ac_ext
6509cat >>conftest.$ac_ext <<_ACEOF
6510/* end confdefs.h. */
6511#include <sys/types.h>
6512#include <sys/wait.h>
6513#ifndef WEXITSTATUS
6514# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6515#endif
6516#ifndef WIFEXITED
6517# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6518#endif
6519
6520int
6521main ()
6522{
6523 int s;
6524 wait (&s);
6525 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6526 ;
6527 return 0;
6528}
6529_ACEOF
6530rm -f conftest.$ac_objext
6531if { (ac_try="$ac_compile"
6532case "(($ac_try" in
6533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6534 *) ac_try_echo=$ac_try;;
6535esac
6536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6537 (eval "$ac_compile") 2>conftest.er1
6538 ac_status=$?
6539 grep -v '^ *+' conftest.er1 >conftest.err
6540 rm -f conftest.er1
6541 cat conftest.err >&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); } && {
6544 test -z "$ac_cxx_werror_flag" ||
6545 test ! -s conftest.err
6546 } && test -s conftest.$ac_objext; then
6547 ac_cv_header_sys_wait_h=yes
6548else
6549 echo "$as_me: failed program was:" >&5
6550sed 's/^/| /' conftest.$ac_ext >&5
6551
6552 ac_cv_header_sys_wait_h=no
6553fi
6554
6555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6556fi
6557{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6558echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6559if test $ac_cv_header_sys_wait_h = yes; then
6560
6561cat >>confdefs.h <<\_ACEOF
6562#define HAVE_SYS_WAIT_H 1
6563_ACEOF
6564
6565fi
6566
6567{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6568echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6569if test "${ac_cv_header_stdc+set}" = set; then
6570 echo $ECHO_N "(cached) $ECHO_C" >&6
6571else
6572 cat >conftest.$ac_ext <<_ACEOF
6573/* confdefs.h. */
6574_ACEOF
6575cat confdefs.h >>conftest.$ac_ext
6576cat >>conftest.$ac_ext <<_ACEOF
6577/* end confdefs.h. */
6578#include <stdlib.h>
6579#include <stdarg.h>
6580#include <string.h>
6581#include <float.h>
6582
6583int
6584main ()
6585{
6586
6587 ;
6588 return 0;
6589}
6590_ACEOF
6591rm -f conftest.$ac_objext
6592if { (ac_try="$ac_compile"
6593case "(($ac_try" in
6594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6595 *) ac_try_echo=$ac_try;;
6596esac
6597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6598 (eval "$ac_compile") 2>conftest.er1
6599 ac_status=$?
6600 grep -v '^ *+' conftest.er1 >conftest.err
6601 rm -f conftest.er1
6602 cat conftest.err >&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); } && {
6605 test -z "$ac_cxx_werror_flag" ||
6606 test ! -s conftest.err
6607 } && test -s conftest.$ac_objext; then
6608 ac_cv_header_stdc=yes
6609else
6610 echo "$as_me: failed program was:" >&5
6611sed 's/^/| /' conftest.$ac_ext >&5
6612
6613 ac_cv_header_stdc=no
6614fi
6615
6616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6617
6618if test $ac_cv_header_stdc = yes; then
6619 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6620 cat >conftest.$ac_ext <<_ACEOF
6621/* confdefs.h. */
6622_ACEOF
6623cat confdefs.h >>conftest.$ac_ext
6624cat >>conftest.$ac_ext <<_ACEOF
6625/* end confdefs.h. */
6626#include <string.h>
6627
6628_ACEOF
6629if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6630 $EGREP "memchr" >/dev/null 2>&1; then
6631 :
6632else
6633 ac_cv_header_stdc=no
6634fi
6635rm -f conftest*
6636
6637fi
6638
6639if test $ac_cv_header_stdc = yes; then
6640 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6641 cat >conftest.$ac_ext <<_ACEOF
6642/* confdefs.h. */
6643_ACEOF
6644cat confdefs.h >>conftest.$ac_ext
6645cat >>conftest.$ac_ext <<_ACEOF
6646/* end confdefs.h. */
6647#include <stdlib.h>
6648
6649_ACEOF
6650if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6651 $EGREP "free" >/dev/null 2>&1; then
6652 :
6653else
6654 ac_cv_header_stdc=no
6655fi
6656rm -f conftest*
6657
6658fi
6659
6660if test $ac_cv_header_stdc = yes; then
6661 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6662 if test "$cross_compiling" = yes; then
6663 :
6664else
6665 cat >conftest.$ac_ext <<_ACEOF
6666/* confdefs.h. */
6667_ACEOF
6668cat confdefs.h >>conftest.$ac_ext
6669cat >>conftest.$ac_ext <<_ACEOF
6670/* end confdefs.h. */
6671#include <ctype.h>
6672#include <stdlib.h>
6673#if ((' ' & 0x0FF) == 0x020)
6674# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6675# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6676#else
6677# define ISLOWER(c) \
6678 (('a' <= (c) && (c) <= 'i') \
6679 || ('j' <= (c) && (c) <= 'r') \
6680 || ('s' <= (c) && (c) <= 'z'))
6681# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6682#endif
6683
6684#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6685int
6686main ()
6687{
6688 int i;
6689 for (i = 0; i < 256; i++)
6690 if (XOR (islower (i), ISLOWER (i))
6691 || toupper (i) != TOUPPER (i))
6692 return 2;
6693 return 0;
6694}
6695_ACEOF
6696rm -f conftest$ac_exeext
6697if { (ac_try="$ac_link"
6698case "(($ac_try" in
6699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6700 *) ac_try_echo=$ac_try;;
6701esac
6702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6703 (eval "$ac_link") 2>&5
6704 ac_status=$?
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6707 { (case "(($ac_try" in
6708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6709 *) ac_try_echo=$ac_try;;
6710esac
6711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6712 (eval "$ac_try") 2>&5
6713 ac_status=$?
6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); }; }; then
6716 :
6717else
6718 echo "$as_me: program exited with status $ac_status" >&5
6719echo "$as_me: failed program was:" >&5
6720sed 's/^/| /' conftest.$ac_ext >&5
6721
6722( exit $ac_status )
6723ac_cv_header_stdc=no
6724fi
6725rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6726fi
6727
6728
6729fi
6730fi
6731{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6732echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6733if test $ac_cv_header_stdc = yes; then
6734
6735cat >>confdefs.h <<\_ACEOF
6736#define STDC_HEADERS 1
6737_ACEOF
6738
6739fi
6740
6741# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6752 inttypes.h stdint.h unistd.h
6753do
6754as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6755{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6756echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6757if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6758 echo $ECHO_N "(cached) $ECHO_C" >&6
6759else
6760 cat >conftest.$ac_ext <<_ACEOF
6761/* confdefs.h. */
6762_ACEOF
6763cat confdefs.h >>conftest.$ac_ext
6764cat >>conftest.$ac_ext <<_ACEOF
6765/* end confdefs.h. */
6766$ac_includes_default
6767
6768#include <$ac_header>
6769_ACEOF
6770rm -f conftest.$ac_objext
6771if { (ac_try="$ac_compile"
6772case "(($ac_try" in
6773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6774 *) ac_try_echo=$ac_try;;
6775esac
6776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6777 (eval "$ac_compile") 2>conftest.er1
6778 ac_status=$?
6779 grep -v '^ *+' conftest.er1 >conftest.err
6780 rm -f conftest.er1
6781 cat conftest.err >&5
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); } && {
6784 test -z "$ac_cxx_werror_flag" ||
6785 test ! -s conftest.err
6786 } && test -s conftest.$ac_objext; then
6787 eval "$as_ac_Header=yes"
6788else
6789 echo "$as_me: failed program was:" >&5
6790sed 's/^/| /' conftest.$ac_ext >&5
6791
6792 eval "$as_ac_Header=no"
6793fi
6794
6795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6796fi
6797ac_res=`eval echo '${'$as_ac_Header'}'`
6798 { echo "$as_me:$LINENO: result: $ac_res" >&5
6799echo "${ECHO_T}$ac_res" >&6; }
6800if test `eval echo '${'$as_ac_Header'}'` = yes; then
6801 cat >>confdefs.h <<_ACEOF
6802#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6803_ACEOF
6804
6805fi
6806
6807done
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819 7354
6820 7355
6821 7356
6822 7357
6823 7358
6824 7359
6825 7360
6826 7361
6827for ac_header in \ 7362for ac_header in \
6828 assert.h \
6829 fcntl.h \
6830 stdarg.h \
6831 stdlib.h \
6832 string.h \
6833 termios.h \
6834 unistd.h \
6835 sys/byteorder.h \ 7363 sys/byteorder.h \
6836 sys/ioctl.h \ 7364 sys/ioctl.h \
6837 sys/select.h \
6838 sys/sockio.h \ 7365 sys/sockio.h \
6839 sys/strredir.h \ 7366 sys/strredir.h \
6840 sys/time.h \
6841 stdint.h \ 7367 stdint.h \
6842 wchar.h \ 7368 wchar.h \
6843 cwchar \ 7369 cwchar \
6844 clocale \ 7370 clocale \
6845 7371
6980fi 7506fi
6981 7507
6982done 7508done
6983 7509
6984 7510
6985{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6986echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6987if test "${ac_cv_header_time+set}" = set; then
6988 echo $ECHO_N "(cached) $ECHO_C" >&6
6989else
6990 cat >conftest.$ac_ext <<_ACEOF
6991/* confdefs.h. */
6992_ACEOF
6993cat confdefs.h >>conftest.$ac_ext
6994cat >>conftest.$ac_ext <<_ACEOF
6995/* end confdefs.h. */
6996#include <sys/types.h>
6997#include <sys/time.h>
6998#include <time.h>
6999
7000int
7001main ()
7002{
7003if ((struct tm *) 0)
7004return 0;
7005 ;
7006 return 0;
7007}
7008_ACEOF
7009rm -f conftest.$ac_objext
7010if { (ac_try="$ac_compile"
7011case "(($ac_try" in
7012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7013 *) ac_try_echo=$ac_try;;
7014esac
7015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7016 (eval "$ac_compile") 2>conftest.er1
7017 ac_status=$?
7018 grep -v '^ *+' conftest.er1 >conftest.err
7019 rm -f conftest.er1
7020 cat conftest.err >&5
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); } && {
7023 test -z "$ac_cxx_werror_flag" ||
7024 test ! -s conftest.err
7025 } && test -s conftest.$ac_objext; then
7026 ac_cv_header_time=yes
7027else
7028 echo "$as_me: failed program was:" >&5
7029sed 's/^/| /' conftest.$ac_ext >&5
7030
7031 ac_cv_header_time=no
7032fi
7033
7034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7035fi
7036{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7037echo "${ECHO_T}$ac_cv_header_time" >&6; }
7038if test $ac_cv_header_time = yes; then
7039
7040cat >>confdefs.h <<\_ACEOF
7041#define TIME_WITH_SYS_TIME 1
7042_ACEOF
7043
7044fi
7045
7046
7047{ 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
7048echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; } 7512echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; }
7049if test "${rxvt_cv_header_sysioctl+set}" = set; then 7513if test "${rxvt_cv_header_sysioctl+set}" = set; then
7050 echo $ECHO_N "(cached) $ECHO_C" >&6 7514 echo $ECHO_N "(cached) $ECHO_C" >&6
7051else 7515else
7055cat confdefs.h >>conftest.$ac_ext 7519cat confdefs.h >>conftest.$ac_ext
7056cat >>conftest.$ac_ext <<_ACEOF 7520cat >>conftest.$ac_ext <<_ACEOF
7057/* end confdefs.h. */ 7521/* end confdefs.h. */
7058#include <stdio.h> 7522#include <stdio.h>
7059#include <sys/ioctl.h> 7523#include <sys/ioctl.h>
7060#ifdef HAVE_TERMIOS_H
7061#include <termios.h> 7524#include <termios.h>
7062#endif 7525
7063int 7526int
7064main () 7527main ()
7065{ 7528{
7066int a = ECHO; 7529int a = ECHO;
7067 ; 7530 ;
7216cat >>confdefs.h <<\_ACEOF 7679cat >>confdefs.h <<\_ACEOF
7217#define XLIB_ILLEGAL_ACCESS 1 7680#define XLIB_ILLEGAL_ACCESS 1
7218_ACEOF 7681_ACEOF
7219 7682
7220fi 7683fi
7221
7222{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7223echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7224if test "${ac_cv_c_const+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7226else
7227 cat >conftest.$ac_ext <<_ACEOF
7228/* confdefs.h. */
7229_ACEOF
7230cat confdefs.h >>conftest.$ac_ext
7231cat >>conftest.$ac_ext <<_ACEOF
7232/* end confdefs.h. */
7233
7234int
7235main ()
7236{
7237/* FIXME: Include the comments suggested by Paul. */
7238#ifndef __cplusplus
7239 /* Ultrix mips cc rejects this. */
7240 typedef int charset[2];
7241 const charset cs;
7242 /* SunOS 4.1.1 cc rejects this. */
7243 char const *const *pcpcc;
7244 char **ppc;
7245 /* NEC SVR4.0.2 mips cc rejects this. */
7246 struct point {int x, y;};
7247 static struct point const zero = {0,0};
7248 /* AIX XL C 1.02.0.0 rejects this.
7249 It does not let you subtract one const X* pointer from another in
7250 an arm of an if-expression whose if-part is not a constant
7251 expression */
7252 const char *g = "string";
7253 pcpcc = &g + (g ? g-g : 0);
7254 /* HPUX 7.0 cc rejects these. */
7255 ++pcpcc;
7256 ppc = (char**) pcpcc;
7257 pcpcc = (char const *const *) ppc;
7258 { /* SCO 3.2v4 cc rejects this. */
7259 char *t;
7260 char const *s = 0 ? (char *) 0 : (char const *) 0;
7261
7262 *t++ = 0;
7263 if (s) return 0;
7264 }
7265 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7266 int x[] = {25, 17};
7267 const int *foo = &x[0];
7268 ++foo;
7269 }
7270 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7271 typedef const int *iptr;
7272 iptr p = 0;
7273 ++p;
7274 }
7275 { /* AIX XL C 1.02.0.0 rejects this saying
7276 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7277 struct s { int j; const int *ap[3]; };
7278 struct s *b; b->j = 5;
7279 }
7280 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7281 const int foo = 10;
7282 if (!foo) return 0;
7283 }
7284 return !cs[0] && !zero.x;
7285#endif
7286
7287 ;
7288 return 0;
7289}
7290_ACEOF
7291rm -f conftest.$ac_objext
7292if { (ac_try="$ac_compile"
7293case "(($ac_try" in
7294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7295 *) ac_try_echo=$ac_try;;
7296esac
7297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7298 (eval "$ac_compile") 2>conftest.er1
7299 ac_status=$?
7300 grep -v '^ *+' conftest.er1 >conftest.err
7301 rm -f conftest.er1
7302 cat conftest.err >&5
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); } && {
7305 test -z "$ac_cxx_werror_flag" ||
7306 test ! -s conftest.err
7307 } && test -s conftest.$ac_objext; then
7308 ac_cv_c_const=yes
7309else
7310 echo "$as_me: failed program was:" >&5
7311sed 's/^/| /' conftest.$ac_ext >&5
7312
7313 ac_cv_c_const=no
7314fi
7315
7316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7317fi
7318{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7319echo "${ECHO_T}$ac_cv_c_const" >&6; }
7320if test $ac_cv_c_const = no; then
7321
7322cat >>confdefs.h <<\_ACEOF
7323#define const
7324_ACEOF
7325
7326fi
7327
7328{ echo "$as_me:$LINENO: checking for inline" >&5
7329echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
7330if test "${ac_cv_c_inline+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7332else
7333 ac_cv_c_inline=no
7334for ac_kw in inline __inline__ __inline; do
7335 cat >conftest.$ac_ext <<_ACEOF
7336/* confdefs.h. */
7337_ACEOF
7338cat confdefs.h >>conftest.$ac_ext
7339cat >>conftest.$ac_ext <<_ACEOF
7340/* end confdefs.h. */
7341#ifndef __cplusplus
7342typedef int foo_t;
7343static $ac_kw foo_t static_foo () {return 0; }
7344$ac_kw foo_t foo () {return 0; }
7345#endif
7346
7347_ACEOF
7348rm -f conftest.$ac_objext
7349if { (ac_try="$ac_compile"
7350case "(($ac_try" in
7351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7352 *) ac_try_echo=$ac_try;;
7353esac
7354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7355 (eval "$ac_compile") 2>conftest.er1
7356 ac_status=$?
7357 grep -v '^ *+' conftest.er1 >conftest.err
7358 rm -f conftest.er1
7359 cat conftest.err >&5
7360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); } && {
7362 test -z "$ac_cxx_werror_flag" ||
7363 test ! -s conftest.err
7364 } && test -s conftest.$ac_objext; then
7365 ac_cv_c_inline=$ac_kw
7366else
7367 echo "$as_me: failed program was:" >&5
7368sed 's/^/| /' conftest.$ac_ext >&5
7369
7370
7371fi
7372
7373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7374 test "$ac_cv_c_inline" != no && break
7375done
7376
7377fi
7378{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7379echo "${ECHO_T}$ac_cv_c_inline" >&6; }
7380
7381
7382case $ac_cv_c_inline in
7383 inline | yes) ;;
7384 *)
7385 case $ac_cv_c_inline in
7386 no) ac_val=;;
7387 *) ac_val=$ac_cv_c_inline;;
7388 esac
7389 cat >>confdefs.h <<_ACEOF
7390#ifndef __cplusplus
7391#define inline $ac_val
7392#endif
7393_ACEOF
7394 ;;
7395esac
7396
7397
7398 7684
7399{ echo "$as_me:$LINENO: checking for mode_t" >&5 7685{ echo "$as_me:$LINENO: checking for mode_t" >&5
7400echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } 7686echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
7401if test "${ac_cv_type_mode_t+set}" = set; then 7687if test "${ac_cv_type_mode_t+set}" = set; then
7402 echo $ECHO_N "(cached) $ECHO_C" >&6 7688 echo $ECHO_N "(cached) $ECHO_C" >&6
7559_ACEOF 7845_ACEOF
7560 7846
7561fi 7847fi
7562 7848
7563 7849
7564{ echo "$as_me:$LINENO: checking for short" >&5 7850 { echo "$as_me:$LINENO: checking for int16_t" >&5
7565echo $ECHO_N "checking for short... $ECHO_C" >&6; } 7851echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
7566if test "${ac_cv_type_short+set}" = set; then 7852if test "${ac_cv_c_int16_t+set}" = set; then
7567 echo $ECHO_N "(cached) $ECHO_C" >&6 7853 echo $ECHO_N "(cached) $ECHO_C" >&6
7568else 7854else
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
7569 cat >conftest.$ac_ext <<_ACEOF 7858 cat >conftest.$ac_ext <<_ACEOF
7570/* confdefs.h. */ 7859/* confdefs.h. */
7571_ACEOF 7860_ACEOF
7572cat confdefs.h >>conftest.$ac_ext 7861cat confdefs.h >>conftest.$ac_ext
7573cat >>conftest.$ac_ext <<_ACEOF 7862cat >>conftest.$ac_ext <<_ACEOF
7574/* end confdefs.h. */ 7863/* end confdefs.h. */
7575$ac_includes_default 7864$ac_includes_default
7576typedef short ac__type_new_;
7577int 7865int
7578main () 7866main ()
7579{ 7867{
7580if ((ac__type_new_ *) 0) 7868static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
7581 return 0; 7869test_array [0] = 0
7582if (sizeof (ac__type_new_)) 7870
7583 return 0;
7584 ; 7871 ;
7585 return 0; 7872 return 0;
7586} 7873}
7587_ACEOF 7874_ACEOF
7588rm -f conftest.$ac_objext 7875rm -f conftest.$ac_objext
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); } && { 7888 (exit $ac_status); } && {
7602 test -z "$ac_cxx_werror_flag" || 7889 test -z "$ac_cxx_werror_flag" ||
7603 test ! -s conftest.err 7890 test ! -s conftest.err
7604 } && test -s conftest.$ac_objext; then 7891 } && test -s conftest.$ac_objext; then
7605 ac_cv_type_short=yes
7606else
7607 echo "$as_me: failed program was:" >&5
7608sed 's/^/| /' conftest.$ac_ext >&5
7609
7610 ac_cv_type_short=no
7611fi
7612
7613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7614fi
7615{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7616echo "${ECHO_T}$ac_cv_type_short" >&6; }
7617
7618# The cast to long int works around a bug in the HP C Compiler
7619# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7620# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7621# This bug is HP SR number 8606223364.
7622{ echo "$as_me:$LINENO: checking size of short" >&5
7623echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
7624if test "${ac_cv_sizeof_short+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7626else
7627 if test "$cross_compiling" = yes; then
7628 # Depending upon the size, compute the lo and hi bounds.
7629cat >conftest.$ac_ext <<_ACEOF 7892 cat >conftest.$ac_ext <<_ACEOF
7630/* confdefs.h. */ 7893/* confdefs.h. */
7631_ACEOF 7894_ACEOF
7632cat confdefs.h >>conftest.$ac_ext 7895cat confdefs.h >>conftest.$ac_ext
7633cat >>conftest.$ac_ext <<_ACEOF 7896cat >>conftest.$ac_ext <<_ACEOF
7634/* end confdefs.h. */ 7897/* end confdefs.h. */
7635$ac_includes_default 7898$ac_includes_default
7636 typedef short ac__type_sizeof_;
7637int 7899int
7638main () 7900main ()
7639{ 7901{
7640static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 7902static 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))];
7641test_array [0] = 0 7904test_array [0] = 0
7642 7905
7643 ; 7906 ;
7644 return 0; 7907 return 0;
7645} 7908}
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); } && { 7923 (exit $ac_status); } && {
7661 test -z "$ac_cxx_werror_flag" || 7924 test -z "$ac_cxx_werror_flag" ||
7662 test ! -s conftest.err 7925 test ! -s conftest.err
7663 } && test -s conftest.$ac_objext; then 7926 } && test -s conftest.$ac_objext; then
7664 ac_lo=0 ac_mid=0 7927 :
7665 while :; do 7928else
7929 echo "$as_me: failed program was:" >&5
7930sed '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 ;;
7935esac
7936
7937fi
7938
7939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7940else
7941 echo "$as_me: failed program was:" >&5
7942sed 's/^/| /' conftest.$ac_ext >&5
7943
7944
7945fi
7946
7947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7948 test "$ac_cv_c_int16_t" != no && break
7949 done
7950fi
7951{ echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
7952echo "${ECHO_T}$ac_cv_c_int16_t" >&6; }
7953 case $ac_cv_c_int16_t in #(
7954 no|yes) ;; #(
7955 *)
7956
7957cat >>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
7965echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
7966if test "${ac_cv_c_uint16_t+set}" = set; then
7967 echo $ECHO_N "(cached) $ECHO_C" >&6
7968else
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
7666 cat >conftest.$ac_ext <<_ACEOF 7972 cat >conftest.$ac_ext <<_ACEOF
7667/* confdefs.h. */ 7973/* confdefs.h. */
7668_ACEOF 7974_ACEOF
7669cat confdefs.h >>conftest.$ac_ext 7975cat confdefs.h >>conftest.$ac_ext
7670cat >>conftest.$ac_ext <<_ACEOF 7976cat >>conftest.$ac_ext <<_ACEOF
7671/* end confdefs.h. */ 7977/* end confdefs.h. */
7672$ac_includes_default 7978$ac_includes_default
7673 typedef short ac__type_sizeof_;
7674int 7979int
7675main () 7980main ()
7676{ 7981{
7677static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 7982static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
7678test_array [0] = 0 7983test_array [0] = 0
7679 7984
7680 ; 7985 ;
7681 return 0; 7986 return 0;
7682} 7987}
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); } && { 8002 (exit $ac_status); } && {
7698 test -z "$ac_cxx_werror_flag" || 8003 test -z "$ac_cxx_werror_flag" ||
7699 test ! -s conftest.err 8004 test ! -s conftest.err
7700 } && test -s conftest.$ac_objext; then 8005 } && test -s conftest.$ac_objext; then
7701 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 ;;
8009esac
8010
7702else 8011else
7703 echo "$as_me: failed program was:" >&5 8012 echo "$as_me: failed program was:" >&5
7704sed 's/^/| /' conftest.$ac_ext >&5 8013sed 's/^/| /' conftest.$ac_ext >&5
7705 8014
7706 ac_lo=`expr $ac_mid + 1` 8015
7707 if test $ac_lo -le $ac_mid; then
7708 ac_lo= ac_hi=
7709 break
7710 fi
7711 ac_mid=`expr 2 '*' $ac_mid + 1`
7712fi 8016fi
7713 8017
7714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8019 test "$ac_cv_c_uint16_t" != no && break
7715 done 8020 done
7716else 8021fi
7717 echo "$as_me: failed program was:" >&5 8022{ echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
7718sed 's/^/| /' conftest.$ac_ext >&5 8023echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
8024 case $ac_cv_c_uint16_t in #(
8025 no|yes) ;; #(
8026 *)
7719 8027
8028
8029cat >>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
8037echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
8038if test "${ac_cv_c_int32_t+set}" = set; then
8039 echo $ECHO_N "(cached) $ECHO_C" >&6
8040else
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
7720 cat >conftest.$ac_ext <<_ACEOF 8044 cat >conftest.$ac_ext <<_ACEOF
7721/* confdefs.h. */ 8045/* confdefs.h. */
7722_ACEOF 8046_ACEOF
7723cat confdefs.h >>conftest.$ac_ext 8047cat confdefs.h >>conftest.$ac_ext
7724cat >>conftest.$ac_ext <<_ACEOF 8048cat >>conftest.$ac_ext <<_ACEOF
7725/* end confdefs.h. */ 8049/* end confdefs.h. */
7726$ac_includes_default 8050$ac_includes_default
7727 typedef short ac__type_sizeof_;
7728int 8051int
7729main () 8052main ()
7730{ 8053{
7731static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 8054static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7732test_array [0] = 0 8055test_array [0] = 0
7733 8056
7734 ; 8057 ;
7735 return 0; 8058 return 0;
7736} 8059}
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); } && { 8074 (exit $ac_status); } && {
7752 test -z "$ac_cxx_werror_flag" || 8075 test -z "$ac_cxx_werror_flag" ||
7753 test ! -s conftest.err 8076 test ! -s conftest.err
7754 } && test -s conftest.$ac_objext; then 8077 } && test -s conftest.$ac_objext; then
7755 ac_hi=-1 ac_mid=-1
7756 while :; do
7757 cat >conftest.$ac_ext <<_ACEOF 8078 cat >conftest.$ac_ext <<_ACEOF
7758/* confdefs.h. */ 8079/* confdefs.h. */
7759_ACEOF 8080_ACEOF
7760cat confdefs.h >>conftest.$ac_ext 8081cat confdefs.h >>conftest.$ac_ext
7761cat >>conftest.$ac_ext <<_ACEOF 8082cat >>conftest.$ac_ext <<_ACEOF
7762/* end confdefs.h. */ 8083/* end confdefs.h. */
7763$ac_includes_default 8084$ac_includes_default
7764 typedef short ac__type_sizeof_;
7765int 8085int
7766main () 8086main ()
7767{ 8087{
7768static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 8088static 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))];
7769test_array [0] = 0 8090test_array [0] = 0
7770 8091
7771 ; 8092 ;
7772 return 0; 8093 return 0;
7773} 8094}
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); } && { 8109 (exit $ac_status); } && {
7789 test -z "$ac_cxx_werror_flag" || 8110 test -z "$ac_cxx_werror_flag" ||
7790 test ! -s conftest.err 8111 test ! -s conftest.err
7791 } && test -s conftest.$ac_objext; then 8112 } && test -s conftest.$ac_objext; then
7792 ac_lo=$ac_mid; break 8113 :
7793else 8114else
7794 echo "$as_me: failed program was:" >&5 8115 echo "$as_me: failed program was:" >&5
7795sed 's/^/| /' conftest.$ac_ext >&5 8116sed 's/^/| /' conftest.$ac_ext >&5
7796 8117
7797 ac_hi=`expr '(' $ac_mid ')' - 1` 8118 case $ac_type in
7798 if test $ac_mid -le $ac_hi; then 8119 int32_t) ac_cv_c_int32_t=yes ;;
7799 ac_lo= ac_hi= 8120 *) ac_cv_c_int32_t=$ac_type ;;
7800 break 8121esac
7801 fi 8122
7802 ac_mid=`expr 2 '*' $ac_mid`
7803fi 8123fi
7804 8124
7805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7806 done
7807else 8126else
7808 echo "$as_me: failed program was:" >&5 8127 echo "$as_me: failed program was:" >&5
7809sed 's/^/| /' conftest.$ac_ext >&5 8128sed 's/^/| /' conftest.$ac_ext >&5
7810 8129
7811 ac_lo= ac_hi= 8130
7812fi 8131fi
7813 8132
7814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8134 test "$ac_cv_c_int32_t" != no && break
8135 done
7815fi 8136fi
8137{ echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
8138echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
8139 case $ac_cv_c_int32_t in #(
8140 no|yes) ;; #(
8141 *)
7816 8142
7817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8143cat >>confdefs.h <<_ACEOF
7818# Binary search between lo and hi bounds. 8144#define int32_t $ac_cv_c_int32_t
7819while test "x$ac_lo" != "x$ac_hi"; do 8145_ACEOF
7820 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
8151echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
8152if test "${ac_cv_c_uint32_t+set}" = set; then
8153 echo $ECHO_N "(cached) $ECHO_C" >&6
8154else
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
7821 cat >conftest.$ac_ext <<_ACEOF 8158 cat >conftest.$ac_ext <<_ACEOF
7822/* confdefs.h. */ 8159/* confdefs.h. */
7823_ACEOF 8160_ACEOF
7824cat confdefs.h >>conftest.$ac_ext 8161cat confdefs.h >>conftest.$ac_ext
7825cat >>conftest.$ac_ext <<_ACEOF 8162cat >>conftest.$ac_ext <<_ACEOF
7826/* end confdefs.h. */ 8163/* end confdefs.h. */
7827$ac_includes_default 8164$ac_includes_default
7828 typedef short ac__type_sizeof_;
7829int 8165int
7830main () 8166main ()
7831{ 8167{
7832static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 8168static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7833test_array [0] = 0 8169test_array [0] = 0
7834 8170
7835 ; 8171 ;
7836 return 0; 8172 return 0;
7837} 8173}
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); } && { 8188 (exit $ac_status); } && {
7853 test -z "$ac_cxx_werror_flag" || 8189 test -z "$ac_cxx_werror_flag" ||
7854 test ! -s conftest.err 8190 test ! -s conftest.err
7855 } && test -s conftest.$ac_objext; then 8191 } && test -s conftest.$ac_objext; then
7856 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 ;;
8195esac
8196
7857else 8197else
7858 echo "$as_me: failed program was:" >&5 8198 echo "$as_me: failed program was:" >&5
7859sed 's/^/| /' conftest.$ac_ext >&5 8199sed 's/^/| /' conftest.$ac_ext >&5
7860 8200
7861 ac_lo=`expr '(' $ac_mid ')' + 1` 8201
7862fi 8202fi
7863 8203
7864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7865done 8205 test "$ac_cv_c_uint32_t" != no && break
7866case $ac_lo in 8206 done
7867?*) ac_cv_sizeof_short=$ac_lo;;
7868'') if test "$ac_cv_type_short" = yes; then
7869 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
7870See \`config.log' for more details." >&5
7871echo "$as_me: error: cannot compute sizeof (short)
7872See \`config.log' for more details." >&2;}
7873 { (exit 77); exit 77; }; }
7874 else
7875 ac_cv_sizeof_short=0
7876 fi ;;
7877esac
7878else
7879 cat >conftest.$ac_ext <<_ACEOF
7880/* confdefs.h. */
7881_ACEOF
7882cat confdefs.h >>conftest.$ac_ext
7883cat >>conftest.$ac_ext <<_ACEOF
7884/* end confdefs.h. */
7885$ac_includes_default
7886 typedef short ac__type_sizeof_;
7887static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7888static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7889#include <stdio.h>
7890#include <stdlib.h>
7891int
7892main ()
7893{
7894
7895 FILE *f = fopen ("conftest.val", "w");
7896 if (! f)
7897 return 1;
7898 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7899 {
7900 long int i = longval ();
7901 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7902 return 1;
7903 fprintf (f, "%ld\n", i);
7904 }
7905 else
7906 {
7907 unsigned long int i = ulongval ();
7908 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7909 return 1;
7910 fprintf (f, "%lu\n", i);
7911 }
7912 return ferror (f) || fclose (f) != 0;
7913
7914 ;
7915 return 0;
7916}
7917_ACEOF
7918rm -f conftest$ac_exeext
7919if { (ac_try="$ac_link"
7920case "(($ac_try" in
7921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7922 *) ac_try_echo=$ac_try;;
7923esac
7924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7925 (eval "$ac_link") 2>&5
7926 ac_status=$?
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7929 { (case "(($ac_try" in
7930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7931 *) ac_try_echo=$ac_try;;
7932esac
7933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7934 (eval "$ac_try") 2>&5
7935 ac_status=$?
7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); }; }; then
7938 ac_cv_sizeof_short=`cat conftest.val`
7939else
7940 echo "$as_me: program exited with status $ac_status" >&5
7941echo "$as_me: failed program was:" >&5
7942sed 's/^/| /' conftest.$ac_ext >&5
7943
7944( exit $ac_status )
7945if test "$ac_cv_type_short" = yes; then
7946 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
7947See \`config.log' for more details." >&5
7948echo "$as_me: error: cannot compute sizeof (short)
7949See \`config.log' for more details." >&2;}
7950 { (exit 77); exit 77; }; }
7951 else
7952 ac_cv_sizeof_short=0
7953 fi
7954fi 8207fi
7955rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7956fi
7957rm -f conftest.val
7958fi
7959{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 8208{ echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7960echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } 8209echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
8210 case $ac_cv_c_uint32_t in #(
8211 no|yes) ;; #(
8212 *)
7961 8213
8214cat >>confdefs.h <<\_ACEOF
8215#define _UINT32_T 1
8216_ACEOF
7962 8217
7963 8218
7964cat >>confdefs.h <<_ACEOF 8219cat >>confdefs.h <<_ACEOF
7965#define SIZEOF_SHORT $ac_cv_sizeof_short 8220#define uint32_t $ac_cv_c_uint32_t
7966_ACEOF 8221_ACEOF
7967 8222;;
7968
7969{ echo "$as_me:$LINENO: checking for int" >&5
7970echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7971if test "${ac_cv_type_int+set}" = set; then
7972 echo $ECHO_N "(cached) $ECHO_C" >&6
7973else
7974 cat >conftest.$ac_ext <<_ACEOF
7975/* confdefs.h. */
7976_ACEOF
7977cat confdefs.h >>conftest.$ac_ext
7978cat >>conftest.$ac_ext <<_ACEOF
7979/* end confdefs.h. */
7980$ac_includes_default
7981typedef int ac__type_new_;
7982int
7983main ()
7984{
7985if ((ac__type_new_ *) 0)
7986 return 0;
7987if (sizeof (ac__type_new_))
7988 return 0;
7989 ;
7990 return 0;
7991}
7992_ACEOF
7993rm -f conftest.$ac_objext
7994if { (ac_try="$ac_compile"
7995case "(($ac_try" in
7996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7997 *) ac_try_echo=$ac_try;;
7998esac 8223 esac
7999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8000 (eval "$ac_compile") 2>conftest.er1
8001 ac_status=$?
8002 grep -v '^ *+' conftest.er1 >conftest.err
8003 rm -f conftest.er1
8004 cat conftest.err >&5
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); } && {
8007 test -z "$ac_cxx_werror_flag" ||
8008 test ! -s conftest.err
8009 } && test -s conftest.$ac_objext; then
8010 ac_cv_type_int=yes
8011else
8012 echo "$as_me: failed program was:" >&5
8013sed 's/^/| /' conftest.$ac_ext >&5
8014 8224
8015 ac_cv_type_int=no
8016fi
8017 8225
8018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8019fi
8020{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8021echo "${ECHO_T}$ac_cv_type_int" >&6; }
8022 8226
8023# The cast to long int works around a bug in the HP C Compiler
8024# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8025# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8026# This bug is HP SR number 8606223364.
8027{ echo "$as_me:$LINENO: checking size of int" >&5
8028echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
8029if test "${ac_cv_sizeof_int+set}" = set; then
8030 echo $ECHO_N "(cached) $ECHO_C" >&6
8031else
8032 if test "$cross_compiling" = yes; then
8033 # Depending upon the size, compute the lo and hi bounds.
8034cat >conftest.$ac_ext <<_ACEOF
8035/* confdefs.h. */
8036_ACEOF
8037cat confdefs.h >>conftest.$ac_ext
8038cat >>conftest.$ac_ext <<_ACEOF
8039/* end confdefs.h. */
8040$ac_includes_default
8041 typedef int ac__type_sizeof_;
8042int
8043main ()
8044{
8045static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8046test_array [0] = 0
8047
8048 ;
8049 return 0;
8050}
8051_ACEOF
8052rm -f conftest.$ac_objext
8053if { (ac_try="$ac_compile"
8054case "(($ac_try" in
8055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8056 *) ac_try_echo=$ac_try;;
8057esac
8058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8059 (eval "$ac_compile") 2>conftest.er1
8060 ac_status=$?
8061 grep -v '^ *+' conftest.er1 >conftest.err
8062 rm -f conftest.er1
8063 cat conftest.err >&5
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); } && {
8066 test -z "$ac_cxx_werror_flag" ||
8067 test ! -s conftest.err
8068 } && test -s conftest.$ac_objext; then
8069 ac_lo=0 ac_mid=0
8070 while :; do
8071 cat >conftest.$ac_ext <<_ACEOF
8072/* confdefs.h. */
8073_ACEOF
8074cat confdefs.h >>conftest.$ac_ext
8075cat >>conftest.$ac_ext <<_ACEOF
8076/* end confdefs.h. */
8077$ac_includes_default
8078 typedef int ac__type_sizeof_;
8079int
8080main ()
8081{
8082static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8083test_array [0] = 0
8084
8085 ;
8086 return 0;
8087}
8088_ACEOF
8089rm -f conftest.$ac_objext
8090if { (ac_try="$ac_compile"
8091case "(($ac_try" in
8092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8093 *) ac_try_echo=$ac_try;;
8094esac
8095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8096 (eval "$ac_compile") 2>conftest.er1
8097 ac_status=$?
8098 grep -v '^ *+' conftest.er1 >conftest.err
8099 rm -f conftest.er1
8100 cat conftest.err >&5
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); } && {
8103 test -z "$ac_cxx_werror_flag" ||
8104 test ! -s conftest.err
8105 } && test -s conftest.$ac_objext; then
8106 ac_hi=$ac_mid; break
8107else
8108 echo "$as_me: failed program was:" >&5
8109sed 's/^/| /' conftest.$ac_ext >&5
8110
8111 ac_lo=`expr $ac_mid + 1`
8112 if test $ac_lo -le $ac_mid; then
8113 ac_lo= ac_hi=
8114 break
8115 fi
8116 ac_mid=`expr 2 '*' $ac_mid + 1`
8117fi
8118
8119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8120 done
8121else
8122 echo "$as_me: failed program was:" >&5
8123sed 's/^/| /' conftest.$ac_ext >&5
8124
8125 cat >conftest.$ac_ext <<_ACEOF
8126/* confdefs.h. */
8127_ACEOF
8128cat confdefs.h >>conftest.$ac_ext
8129cat >>conftest.$ac_ext <<_ACEOF
8130/* end confdefs.h. */
8131$ac_includes_default
8132 typedef int ac__type_sizeof_;
8133int
8134main ()
8135{
8136static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8137test_array [0] = 0
8138
8139 ;
8140 return 0;
8141}
8142_ACEOF
8143rm -f conftest.$ac_objext
8144if { (ac_try="$ac_compile"
8145case "(($ac_try" in
8146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147 *) ac_try_echo=$ac_try;;
8148esac
8149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8150 (eval "$ac_compile") 2>conftest.er1
8151 ac_status=$?
8152 grep -v '^ *+' conftest.er1 >conftest.err
8153 rm -f conftest.er1
8154 cat conftest.err >&5
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); } && {
8157 test -z "$ac_cxx_werror_flag" ||
8158 test ! -s conftest.err
8159 } && test -s conftest.$ac_objext; then
8160 ac_hi=-1 ac_mid=-1
8161 while :; do
8162 cat >conftest.$ac_ext <<_ACEOF
8163/* confdefs.h. */
8164_ACEOF
8165cat confdefs.h >>conftest.$ac_ext
8166cat >>conftest.$ac_ext <<_ACEOF
8167/* end confdefs.h. */
8168$ac_includes_default
8169 typedef int ac__type_sizeof_;
8170int
8171main ()
8172{
8173static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8174test_array [0] = 0
8175
8176 ;
8177 return 0;
8178}
8179_ACEOF
8180rm -f conftest.$ac_objext
8181if { (ac_try="$ac_compile"
8182case "(($ac_try" in
8183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8184 *) ac_try_echo=$ac_try;;
8185esac
8186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8187 (eval "$ac_compile") 2>conftest.er1
8188 ac_status=$?
8189 grep -v '^ *+' conftest.er1 >conftest.err
8190 rm -f conftest.er1
8191 cat conftest.err >&5
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); } && {
8194 test -z "$ac_cxx_werror_flag" ||
8195 test ! -s conftest.err
8196 } && test -s conftest.$ac_objext; then
8197 ac_lo=$ac_mid; break
8198else
8199 echo "$as_me: failed program was:" >&5
8200sed 's/^/| /' conftest.$ac_ext >&5
8201
8202 ac_hi=`expr '(' $ac_mid ')' - 1`
8203 if test $ac_mid -le $ac_hi; then
8204 ac_lo= ac_hi=
8205 break
8206 fi
8207 ac_mid=`expr 2 '*' $ac_mid`
8208fi
8209
8210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8211 done
8212else
8213 echo "$as_me: failed program was:" >&5
8214sed 's/^/| /' conftest.$ac_ext >&5
8215
8216 ac_lo= ac_hi=
8217fi
8218
8219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8220fi
8221
8222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8223# Binary search between lo and hi bounds.
8224while test "x$ac_lo" != "x$ac_hi"; do
8225 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8226 cat >conftest.$ac_ext <<_ACEOF
8227/* confdefs.h. */
8228_ACEOF
8229cat confdefs.h >>conftest.$ac_ext
8230cat >>conftest.$ac_ext <<_ACEOF
8231/* end confdefs.h. */
8232$ac_includes_default
8233 typedef int ac__type_sizeof_;
8234int
8235main ()
8236{
8237static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8238test_array [0] = 0
8239
8240 ;
8241 return 0;
8242}
8243_ACEOF
8244rm -f conftest.$ac_objext
8245if { (ac_try="$ac_compile"
8246case "(($ac_try" in
8247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8248 *) ac_try_echo=$ac_try;;
8249esac
8250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8251 (eval "$ac_compile") 2>conftest.er1
8252 ac_status=$?
8253 grep -v '^ *+' conftest.er1 >conftest.err
8254 rm -f conftest.er1
8255 cat conftest.err >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); } && {
8258 test -z "$ac_cxx_werror_flag" ||
8259 test ! -s conftest.err
8260 } && test -s conftest.$ac_objext; then
8261 ac_hi=$ac_mid
8262else
8263 echo "$as_me: failed program was:" >&5
8264sed 's/^/| /' conftest.$ac_ext >&5
8265
8266 ac_lo=`expr '(' $ac_mid ')' + 1`
8267fi
8268
8269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8270done
8271case $ac_lo in
8272?*) ac_cv_sizeof_int=$ac_lo;;
8273'') if test "$ac_cv_type_int" = yes; then
8274 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8275See \`config.log' for more details." >&5
8276echo "$as_me: error: cannot compute sizeof (int)
8277See \`config.log' for more details." >&2;}
8278 { (exit 77); exit 77; }; }
8279 else
8280 ac_cv_sizeof_int=0
8281 fi ;;
8282esac
8283else
8284 cat >conftest.$ac_ext <<_ACEOF
8285/* confdefs.h. */
8286_ACEOF
8287cat confdefs.h >>conftest.$ac_ext
8288cat >>conftest.$ac_ext <<_ACEOF
8289/* end confdefs.h. */
8290$ac_includes_default
8291 typedef int ac__type_sizeof_;
8292static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8293static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8294#include <stdio.h>
8295#include <stdlib.h>
8296int
8297main ()
8298{
8299
8300 FILE *f = fopen ("conftest.val", "w");
8301 if (! f)
8302 return 1;
8303 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8304 {
8305 long int i = longval ();
8306 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8307 return 1;
8308 fprintf (f, "%ld\n", i);
8309 }
8310 else
8311 {
8312 unsigned long int i = ulongval ();
8313 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8314 return 1;
8315 fprintf (f, "%lu\n", i);
8316 }
8317 return ferror (f) || fclose (f) != 0;
8318
8319 ;
8320 return 0;
8321}
8322_ACEOF
8323rm -f conftest$ac_exeext
8324if { (ac_try="$ac_link"
8325case "(($ac_try" in
8326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8327 *) ac_try_echo=$ac_try;;
8328esac
8329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8330 (eval "$ac_link") 2>&5
8331 ac_status=$?
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8334 { (case "(($ac_try" in
8335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8336 *) ac_try_echo=$ac_try;;
8337esac
8338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8339 (eval "$ac_try") 2>&5
8340 ac_status=$?
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); }; }; then
8343 ac_cv_sizeof_int=`cat conftest.val`
8344else
8345 echo "$as_me: program exited with status $ac_status" >&5
8346echo "$as_me: failed program was:" >&5
8347sed 's/^/| /' conftest.$ac_ext >&5
8348
8349( exit $ac_status )
8350if test "$ac_cv_type_int" = yes; then
8351 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8352See \`config.log' for more details." >&5
8353echo "$as_me: error: cannot compute sizeof (int)
8354See \`config.log' for more details." >&2;}
8355 { (exit 77); exit 77; }; }
8356 else
8357 ac_cv_sizeof_int=0
8358 fi
8359fi
8360rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8361fi
8362rm -f conftest.val
8363fi
8364{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8365echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
8366
8367
8368
8369cat >>confdefs.h <<_ACEOF
8370#define SIZEOF_INT $ac_cv_sizeof_int
8371_ACEOF
8372
8373
8374{ echo "$as_me:$LINENO: checking for long long" >&5
8375echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8376if test "${ac_cv_type_long_long+set}" = set; then
8377 echo $ECHO_N "(cached) $ECHO_C" >&6
8378else
8379 cat >conftest.$ac_ext <<_ACEOF
8380/* confdefs.h. */
8381_ACEOF
8382cat confdefs.h >>conftest.$ac_ext
8383cat >>conftest.$ac_ext <<_ACEOF
8384/* end confdefs.h. */
8385$ac_includes_default
8386typedef long long ac__type_new_;
8387int
8388main ()
8389{
8390if ((ac__type_new_ *) 0)
8391 return 0;
8392if (sizeof (ac__type_new_))
8393 return 0;
8394 ;
8395 return 0;
8396}
8397_ACEOF
8398rm -f conftest.$ac_objext
8399if { (ac_try="$ac_compile"
8400case "(($ac_try" in
8401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402 *) ac_try_echo=$ac_try;;
8403esac
8404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405 (eval "$ac_compile") 2>conftest.er1
8406 ac_status=$?
8407 grep -v '^ *+' conftest.er1 >conftest.err
8408 rm -f conftest.er1
8409 cat conftest.err >&5
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); } && {
8412 test -z "$ac_cxx_werror_flag" ||
8413 test ! -s conftest.err
8414 } && test -s conftest.$ac_objext; then
8415 ac_cv_type_long_long=yes
8416else
8417 echo "$as_me: failed program was:" >&5
8418sed 's/^/| /' conftest.$ac_ext >&5
8419
8420 ac_cv_type_long_long=no
8421fi
8422
8423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8424fi
8425{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8426echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8427
8428# The cast to long int works around a bug in the HP C Compiler
8429# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8430# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8431# This bug is HP SR number 8606223364.
8432{ echo "$as_me:$LINENO: checking size of long long" >&5
8433echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
8434if test "${ac_cv_sizeof_long_long+set}" = set; then
8435 echo $ECHO_N "(cached) $ECHO_C" >&6
8436else
8437 if test "$cross_compiling" = yes; then
8438 # Depending upon the size, compute the lo and hi bounds.
8439cat >conftest.$ac_ext <<_ACEOF
8440/* confdefs.h. */
8441_ACEOF
8442cat confdefs.h >>conftest.$ac_ext
8443cat >>conftest.$ac_ext <<_ACEOF
8444/* end confdefs.h. */
8445$ac_includes_default
8446 typedef long long ac__type_sizeof_;
8447int
8448main ()
8449{
8450static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8451test_array [0] = 0
8452
8453 ;
8454 return 0;
8455}
8456_ACEOF
8457rm -f conftest.$ac_objext
8458if { (ac_try="$ac_compile"
8459case "(($ac_try" in
8460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8461 *) ac_try_echo=$ac_try;;
8462esac
8463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8464 (eval "$ac_compile") 2>conftest.er1
8465 ac_status=$?
8466 grep -v '^ *+' conftest.er1 >conftest.err
8467 rm -f conftest.er1
8468 cat conftest.err >&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); } && {
8471 test -z "$ac_cxx_werror_flag" ||
8472 test ! -s conftest.err
8473 } && test -s conftest.$ac_objext; then
8474 ac_lo=0 ac_mid=0
8475 while :; do
8476 cat >conftest.$ac_ext <<_ACEOF
8477/* confdefs.h. */
8478_ACEOF
8479cat confdefs.h >>conftest.$ac_ext
8480cat >>conftest.$ac_ext <<_ACEOF
8481/* end confdefs.h. */
8482$ac_includes_default
8483 typedef long long ac__type_sizeof_;
8484int
8485main ()
8486{
8487static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8488test_array [0] = 0
8489
8490 ;
8491 return 0;
8492}
8493_ACEOF
8494rm -f conftest.$ac_objext
8495if { (ac_try="$ac_compile"
8496case "(($ac_try" in
8497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8498 *) ac_try_echo=$ac_try;;
8499esac
8500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8501 (eval "$ac_compile") 2>conftest.er1
8502 ac_status=$?
8503 grep -v '^ *+' conftest.er1 >conftest.err
8504 rm -f conftest.er1
8505 cat conftest.err >&5
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); } && {
8508 test -z "$ac_cxx_werror_flag" ||
8509 test ! -s conftest.err
8510 } && test -s conftest.$ac_objext; then
8511 ac_hi=$ac_mid; break
8512else
8513 echo "$as_me: failed program was:" >&5
8514sed 's/^/| /' conftest.$ac_ext >&5
8515
8516 ac_lo=`expr $ac_mid + 1`
8517 if test $ac_lo -le $ac_mid; then
8518 ac_lo= ac_hi=
8519 break
8520 fi
8521 ac_mid=`expr 2 '*' $ac_mid + 1`
8522fi
8523
8524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8525 done
8526else
8527 echo "$as_me: failed program was:" >&5
8528sed 's/^/| /' conftest.$ac_ext >&5
8529
8530 cat >conftest.$ac_ext <<_ACEOF
8531/* confdefs.h. */
8532_ACEOF
8533cat confdefs.h >>conftest.$ac_ext
8534cat >>conftest.$ac_ext <<_ACEOF
8535/* end confdefs.h. */
8536$ac_includes_default
8537 typedef long long ac__type_sizeof_;
8538int
8539main ()
8540{
8541static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8542test_array [0] = 0
8543
8544 ;
8545 return 0;
8546}
8547_ACEOF
8548rm -f conftest.$ac_objext
8549if { (ac_try="$ac_compile"
8550case "(($ac_try" in
8551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8552 *) ac_try_echo=$ac_try;;
8553esac
8554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8555 (eval "$ac_compile") 2>conftest.er1
8556 ac_status=$?
8557 grep -v '^ *+' conftest.er1 >conftest.err
8558 rm -f conftest.er1
8559 cat conftest.err >&5
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); } && {
8562 test -z "$ac_cxx_werror_flag" ||
8563 test ! -s conftest.err
8564 } && test -s conftest.$ac_objext; then
8565 ac_hi=-1 ac_mid=-1
8566 while :; do
8567 cat >conftest.$ac_ext <<_ACEOF
8568/* confdefs.h. */
8569_ACEOF
8570cat confdefs.h >>conftest.$ac_ext
8571cat >>conftest.$ac_ext <<_ACEOF
8572/* end confdefs.h. */
8573$ac_includes_default
8574 typedef long long ac__type_sizeof_;
8575int
8576main ()
8577{
8578static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8579test_array [0] = 0
8580
8581 ;
8582 return 0;
8583}
8584_ACEOF
8585rm -f conftest.$ac_objext
8586if { (ac_try="$ac_compile"
8587case "(($ac_try" in
8588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8589 *) ac_try_echo=$ac_try;;
8590esac
8591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8592 (eval "$ac_compile") 2>conftest.er1
8593 ac_status=$?
8594 grep -v '^ *+' conftest.er1 >conftest.err
8595 rm -f conftest.er1
8596 cat conftest.err >&5
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); } && {
8599 test -z "$ac_cxx_werror_flag" ||
8600 test ! -s conftest.err
8601 } && test -s conftest.$ac_objext; then
8602 ac_lo=$ac_mid; break
8603else
8604 echo "$as_me: failed program was:" >&5
8605sed 's/^/| /' conftest.$ac_ext >&5
8606
8607 ac_hi=`expr '(' $ac_mid ')' - 1`
8608 if test $ac_mid -le $ac_hi; then
8609 ac_lo= ac_hi=
8610 break
8611 fi
8612 ac_mid=`expr 2 '*' $ac_mid`
8613fi
8614
8615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8616 done
8617else
8618 echo "$as_me: failed program was:" >&5
8619sed 's/^/| /' conftest.$ac_ext >&5
8620
8621 ac_lo= ac_hi=
8622fi
8623
8624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8625fi
8626
8627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8628# Binary search between lo and hi bounds.
8629while test "x$ac_lo" != "x$ac_hi"; do
8630 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8631 cat >conftest.$ac_ext <<_ACEOF
8632/* confdefs.h. */
8633_ACEOF
8634cat confdefs.h >>conftest.$ac_ext
8635cat >>conftest.$ac_ext <<_ACEOF
8636/* end confdefs.h. */
8637$ac_includes_default
8638 typedef long long ac__type_sizeof_;
8639int
8640main ()
8641{
8642static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8643test_array [0] = 0
8644
8645 ;
8646 return 0;
8647}
8648_ACEOF
8649rm -f conftest.$ac_objext
8650if { (ac_try="$ac_compile"
8651case "(($ac_try" in
8652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8653 *) ac_try_echo=$ac_try;;
8654esac
8655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8656 (eval "$ac_compile") 2>conftest.er1
8657 ac_status=$?
8658 grep -v '^ *+' conftest.er1 >conftest.err
8659 rm -f conftest.er1
8660 cat conftest.err >&5
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); } && {
8663 test -z "$ac_cxx_werror_flag" ||
8664 test ! -s conftest.err
8665 } && test -s conftest.$ac_objext; then
8666 ac_hi=$ac_mid
8667else
8668 echo "$as_me: failed program was:" >&5
8669sed 's/^/| /' conftest.$ac_ext >&5
8670
8671 ac_lo=`expr '(' $ac_mid ')' + 1`
8672fi
8673
8674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8675done
8676case $ac_lo in
8677?*) ac_cv_sizeof_long_long=$ac_lo;;
8678'') if test "$ac_cv_type_long_long" = yes; then
8679 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
8680See \`config.log' for more details." >&5
8681echo "$as_me: error: cannot compute sizeof (long long)
8682See \`config.log' for more details." >&2;}
8683 { (exit 77); exit 77; }; }
8684 else
8685 ac_cv_sizeof_long_long=0
8686 fi ;;
8687esac
8688else
8689 cat >conftest.$ac_ext <<_ACEOF
8690/* confdefs.h. */
8691_ACEOF
8692cat confdefs.h >>conftest.$ac_ext
8693cat >>conftest.$ac_ext <<_ACEOF
8694/* end confdefs.h. */
8695$ac_includes_default
8696 typedef long long ac__type_sizeof_;
8697static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8698static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8699#include <stdio.h>
8700#include <stdlib.h>
8701int
8702main ()
8703{
8704
8705 FILE *f = fopen ("conftest.val", "w");
8706 if (! f)
8707 return 1;
8708 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8709 {
8710 long int i = longval ();
8711 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8712 return 1;
8713 fprintf (f, "%ld\n", i);
8714 }
8715 else
8716 {
8717 unsigned long int i = ulongval ();
8718 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8719 return 1;
8720 fprintf (f, "%lu\n", i);
8721 }
8722 return ferror (f) || fclose (f) != 0;
8723
8724 ;
8725 return 0;
8726}
8727_ACEOF
8728rm -f conftest$ac_exeext
8729if { (ac_try="$ac_link"
8730case "(($ac_try" in
8731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8732 *) ac_try_echo=$ac_try;;
8733esac
8734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8735 (eval "$ac_link") 2>&5
8736 ac_status=$?
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8739 { (case "(($ac_try" in
8740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8741 *) ac_try_echo=$ac_try;;
8742esac
8743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8744 (eval "$ac_try") 2>&5
8745 ac_status=$?
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); }; }; then
8748 ac_cv_sizeof_long_long=`cat conftest.val`
8749else
8750 echo "$as_me: program exited with status $ac_status" >&5
8751echo "$as_me: failed program was:" >&5
8752sed 's/^/| /' conftest.$ac_ext >&5
8753
8754( exit $ac_status )
8755if test "$ac_cv_type_long_long" = yes; then
8756 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
8757See \`config.log' for more details." >&5
8758echo "$as_me: error: cannot compute sizeof (long long)
8759See \`config.log' for more details." >&2;}
8760 { (exit 77); exit 77; }; }
8761 else
8762 ac_cv_sizeof_long_long=0
8763 fi
8764fi
8765rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8766fi
8767rm -f conftest.val
8768fi
8769{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8770echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
8771
8772
8773
8774cat >>confdefs.h <<_ACEOF
8775#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8776_ACEOF
8777
8778
8779{ echo "$as_me:$LINENO: checking for int *" >&5
8780echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
8781if test "${ac_cv_type_int_p+set}" = set; then
8782 echo $ECHO_N "(cached) $ECHO_C" >&6
8783else
8784 cat >conftest.$ac_ext <<_ACEOF
8785/* confdefs.h. */
8786_ACEOF
8787cat confdefs.h >>conftest.$ac_ext
8788cat >>conftest.$ac_ext <<_ACEOF
8789/* end confdefs.h. */
8790$ac_includes_default
8791typedef int * ac__type_new_;
8792int
8793main ()
8794{
8795if ((ac__type_new_ *) 0)
8796 return 0;
8797if (sizeof (ac__type_new_))
8798 return 0;
8799 ;
8800 return 0;
8801}
8802_ACEOF
8803rm -f conftest.$ac_objext
8804if { (ac_try="$ac_compile"
8805case "(($ac_try" in
8806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8807 *) ac_try_echo=$ac_try;;
8808esac
8809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8810 (eval "$ac_compile") 2>conftest.er1
8811 ac_status=$?
8812 grep -v '^ *+' conftest.er1 >conftest.err
8813 rm -f conftest.er1
8814 cat conftest.err >&5
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); } && {
8817 test -z "$ac_cxx_werror_flag" ||
8818 test ! -s conftest.err
8819 } && test -s conftest.$ac_objext; then
8820 ac_cv_type_int_p=yes
8821else
8822 echo "$as_me: failed program was:" >&5
8823sed 's/^/| /' conftest.$ac_ext >&5
8824
8825 ac_cv_type_int_p=no
8826fi
8827
8828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8829fi
8830{ echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
8831echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
8832
8833# The cast to long int works around a bug in the HP C Compiler
8834# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8835# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8836# This bug is HP SR number 8606223364.
8837{ echo "$as_me:$LINENO: checking size of int *" >&5
8838echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
8839if test "${ac_cv_sizeof_int_p+set}" = set; then
8840 echo $ECHO_N "(cached) $ECHO_C" >&6
8841else
8842 if test "$cross_compiling" = yes; then
8843 # Depending upon the size, compute the lo and hi bounds.
8844cat >conftest.$ac_ext <<_ACEOF
8845/* confdefs.h. */
8846_ACEOF
8847cat confdefs.h >>conftest.$ac_ext
8848cat >>conftest.$ac_ext <<_ACEOF
8849/* end confdefs.h. */
8850$ac_includes_default
8851 typedef int * ac__type_sizeof_;
8852int
8853main ()
8854{
8855static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8856test_array [0] = 0
8857
8858 ;
8859 return 0;
8860}
8861_ACEOF
8862rm -f conftest.$ac_objext
8863if { (ac_try="$ac_compile"
8864case "(($ac_try" in
8865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8866 *) ac_try_echo=$ac_try;;
8867esac
8868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8869 (eval "$ac_compile") 2>conftest.er1
8870 ac_status=$?
8871 grep -v '^ *+' conftest.er1 >conftest.err
8872 rm -f conftest.er1
8873 cat conftest.err >&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); } && {
8876 test -z "$ac_cxx_werror_flag" ||
8877 test ! -s conftest.err
8878 } && test -s conftest.$ac_objext; then
8879 ac_lo=0 ac_mid=0
8880 while :; do
8881 cat >conftest.$ac_ext <<_ACEOF
8882/* confdefs.h. */
8883_ACEOF
8884cat confdefs.h >>conftest.$ac_ext
8885cat >>conftest.$ac_ext <<_ACEOF
8886/* end confdefs.h. */
8887$ac_includes_default
8888 typedef int * ac__type_sizeof_;
8889int
8890main ()
8891{
8892static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8893test_array [0] = 0
8894
8895 ;
8896 return 0;
8897}
8898_ACEOF
8899rm -f conftest.$ac_objext
8900if { (ac_try="$ac_compile"
8901case "(($ac_try" in
8902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8903 *) ac_try_echo=$ac_try;;
8904esac
8905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8906 (eval "$ac_compile") 2>conftest.er1
8907 ac_status=$?
8908 grep -v '^ *+' conftest.er1 >conftest.err
8909 rm -f conftest.er1
8910 cat conftest.err >&5
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); } && {
8913 test -z "$ac_cxx_werror_flag" ||
8914 test ! -s conftest.err
8915 } && test -s conftest.$ac_objext; then
8916 ac_hi=$ac_mid; break
8917else
8918 echo "$as_me: failed program was:" >&5
8919sed 's/^/| /' conftest.$ac_ext >&5
8920
8921 ac_lo=`expr $ac_mid + 1`
8922 if test $ac_lo -le $ac_mid; then
8923 ac_lo= ac_hi=
8924 break
8925 fi
8926 ac_mid=`expr 2 '*' $ac_mid + 1`
8927fi
8928
8929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8930 done
8931else
8932 echo "$as_me: failed program was:" >&5
8933sed 's/^/| /' conftest.$ac_ext >&5
8934
8935 cat >conftest.$ac_ext <<_ACEOF
8936/* confdefs.h. */
8937_ACEOF
8938cat confdefs.h >>conftest.$ac_ext
8939cat >>conftest.$ac_ext <<_ACEOF
8940/* end confdefs.h. */
8941$ac_includes_default
8942 typedef int * ac__type_sizeof_;
8943int
8944main ()
8945{
8946static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8947test_array [0] = 0
8948
8949 ;
8950 return 0;
8951}
8952_ACEOF
8953rm -f conftest.$ac_objext
8954if { (ac_try="$ac_compile"
8955case "(($ac_try" in
8956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8957 *) ac_try_echo=$ac_try;;
8958esac
8959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8960 (eval "$ac_compile") 2>conftest.er1
8961 ac_status=$?
8962 grep -v '^ *+' conftest.er1 >conftest.err
8963 rm -f conftest.er1
8964 cat conftest.err >&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); } && {
8967 test -z "$ac_cxx_werror_flag" ||
8968 test ! -s conftest.err
8969 } && test -s conftest.$ac_objext; then
8970 ac_hi=-1 ac_mid=-1
8971 while :; do
8972 cat >conftest.$ac_ext <<_ACEOF
8973/* confdefs.h. */
8974_ACEOF
8975cat confdefs.h >>conftest.$ac_ext
8976cat >>conftest.$ac_ext <<_ACEOF
8977/* end confdefs.h. */
8978$ac_includes_default
8979 typedef int * ac__type_sizeof_;
8980int
8981main ()
8982{
8983static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8984test_array [0] = 0
8985
8986 ;
8987 return 0;
8988}
8989_ACEOF
8990rm -f conftest.$ac_objext
8991if { (ac_try="$ac_compile"
8992case "(($ac_try" in
8993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8994 *) ac_try_echo=$ac_try;;
8995esac
8996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8997 (eval "$ac_compile") 2>conftest.er1
8998 ac_status=$?
8999 grep -v '^ *+' conftest.er1 >conftest.err
9000 rm -f conftest.er1
9001 cat conftest.err >&5
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); } && {
9004 test -z "$ac_cxx_werror_flag" ||
9005 test ! -s conftest.err
9006 } && test -s conftest.$ac_objext; then
9007 ac_lo=$ac_mid; break
9008else
9009 echo "$as_me: failed program was:" >&5
9010sed 's/^/| /' conftest.$ac_ext >&5
9011
9012 ac_hi=`expr '(' $ac_mid ')' - 1`
9013 if test $ac_mid -le $ac_hi; then
9014 ac_lo= ac_hi=
9015 break
9016 fi
9017 ac_mid=`expr 2 '*' $ac_mid`
9018fi
9019
9020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9021 done
9022else
9023 echo "$as_me: failed program was:" >&5
9024sed 's/^/| /' conftest.$ac_ext >&5
9025
9026 ac_lo= ac_hi=
9027fi
9028
9029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9030fi
9031
9032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9033# Binary search between lo and hi bounds.
9034while test "x$ac_lo" != "x$ac_hi"; do
9035 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9036 cat >conftest.$ac_ext <<_ACEOF
9037/* confdefs.h. */
9038_ACEOF
9039cat confdefs.h >>conftest.$ac_ext
9040cat >>conftest.$ac_ext <<_ACEOF
9041/* end confdefs.h. */
9042$ac_includes_default
9043 typedef int * ac__type_sizeof_;
9044int
9045main ()
9046{
9047static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9048test_array [0] = 0
9049
9050 ;
9051 return 0;
9052}
9053_ACEOF
9054rm -f conftest.$ac_objext
9055if { (ac_try="$ac_compile"
9056case "(($ac_try" in
9057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9058 *) ac_try_echo=$ac_try;;
9059esac
9060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9061 (eval "$ac_compile") 2>conftest.er1
9062 ac_status=$?
9063 grep -v '^ *+' conftest.er1 >conftest.err
9064 rm -f conftest.er1
9065 cat conftest.err >&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); } && {
9068 test -z "$ac_cxx_werror_flag" ||
9069 test ! -s conftest.err
9070 } && test -s conftest.$ac_objext; then
9071 ac_hi=$ac_mid
9072else
9073 echo "$as_me: failed program was:" >&5
9074sed 's/^/| /' conftest.$ac_ext >&5
9075
9076 ac_lo=`expr '(' $ac_mid ')' + 1`
9077fi
9078
9079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9080done
9081case $ac_lo in
9082?*) ac_cv_sizeof_int_p=$ac_lo;;
9083'') if test "$ac_cv_type_int_p" = yes; then
9084 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
9085See \`config.log' for more details." >&5
9086echo "$as_me: error: cannot compute sizeof (int *)
9087See \`config.log' for more details." >&2;}
9088 { (exit 77); exit 77; }; }
9089 else
9090 ac_cv_sizeof_int_p=0
9091 fi ;;
9092esac
9093else
9094 cat >conftest.$ac_ext <<_ACEOF
9095/* confdefs.h. */
9096_ACEOF
9097cat confdefs.h >>conftest.$ac_ext
9098cat >>conftest.$ac_ext <<_ACEOF
9099/* end confdefs.h. */
9100$ac_includes_default
9101 typedef int * ac__type_sizeof_;
9102static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9103static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9104#include <stdio.h>
9105#include <stdlib.h>
9106int
9107main ()
9108{
9109
9110 FILE *f = fopen ("conftest.val", "w");
9111 if (! f)
9112 return 1;
9113 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9114 {
9115 long int i = longval ();
9116 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9117 return 1;
9118 fprintf (f, "%ld\n", i);
9119 }
9120 else
9121 {
9122 unsigned long int i = ulongval ();
9123 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9124 return 1;
9125 fprintf (f, "%lu\n", i);
9126 }
9127 return ferror (f) || fclose (f) != 0;
9128
9129 ;
9130 return 0;
9131}
9132_ACEOF
9133rm -f conftest$ac_exeext
9134if { (ac_try="$ac_link"
9135case "(($ac_try" in
9136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9137 *) ac_try_echo=$ac_try;;
9138esac
9139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9140 (eval "$ac_link") 2>&5
9141 ac_status=$?
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9144 { (case "(($ac_try" in
9145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9146 *) ac_try_echo=$ac_try;;
9147esac
9148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9149 (eval "$ac_try") 2>&5
9150 ac_status=$?
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); }; }; then
9153 ac_cv_sizeof_int_p=`cat conftest.val`
9154else
9155 echo "$as_me: program exited with status $ac_status" >&5
9156echo "$as_me: failed program was:" >&5
9157sed 's/^/| /' conftest.$ac_ext >&5
9158
9159( exit $ac_status )
9160if test "$ac_cv_type_int_p" = yes; then
9161 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
9162See \`config.log' for more details." >&5
9163echo "$as_me: error: cannot compute sizeof (int *)
9164See \`config.log' for more details." >&2;}
9165 { (exit 77); exit 77; }; }
9166 else
9167 ac_cv_sizeof_int_p=0
9168 fi
9169fi
9170rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9171fi
9172rm -f conftest.val
9173fi
9174{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
9175echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
9176
9177
9178
9179cat >>confdefs.h <<_ACEOF
9180#define SIZEOF_INT_P $ac_cv_sizeof_int_p
9181_ACEOF
9182
9183
9184
9185
9186{ echo "$as_me:$LINENO: checking for int16_t" >&5
9187echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
9188if test "${rxvt_cv_int16_t+set}" = set; then
9189 echo $ECHO_N "(cached) $ECHO_C" >&6
9190else
9191 cat >conftest.$ac_ext <<_ACEOF
9192/* confdefs.h. */
9193_ACEOF
9194cat confdefs.h >>conftest.$ac_ext
9195cat >>conftest.$ac_ext <<_ACEOF
9196/* end confdefs.h. */
9197#include <stdint.h>
9198int
9199main ()
9200{
9201int16_t dummy;
9202 ;
9203 return 0;
9204}
9205_ACEOF
9206rm -f conftest.$ac_objext
9207if { (ac_try="$ac_compile"
9208case "(($ac_try" in
9209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9210 *) ac_try_echo=$ac_try;;
9211esac
9212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9213 (eval "$ac_compile") 2>conftest.er1
9214 ac_status=$?
9215 grep -v '^ *+' conftest.er1 >conftest.err
9216 rm -f conftest.er1
9217 cat conftest.err >&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); } && {
9220 test -z "$ac_cxx_werror_flag" ||
9221 test ! -s conftest.err
9222 } && test -s conftest.$ac_objext; then
9223 rxvt_cv_int16_t=yes
9224else
9225 echo "$as_me: failed program was:" >&5
9226sed 's/^/| /' conftest.$ac_ext >&5
9227
9228 if test "$ac_cv_sizeof_char" -ge 2; then
9229 rxvt_cv_int16_t=" char"
9230else
9231 if test "$ac_cv_sizeof_short" -ge 2; then
9232 rxvt_cv_int16_t=" short"
9233 else
9234 if test "$ac_cv_sizeof_int" -ge 2; then
9235 rxvt_cv_int16_t=" int"
9236 else
9237 if test "$ac_cv_sizeof_long" -ge 2; then
9238 rxvt_cv_int16_t=" long"
9239 else
9240 if test "$ac_cv_sizeof_long_long" -ge 2; then
9241 rxvt_cv_int16_t=" long long"
9242 else
9243 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
9244 fi
9245 fi
9246 fi
9247 fi
9248fi
9249fi
9250
9251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9252fi
9253{ echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
9254echo "${ECHO_T}$rxvt_cv_int16_t" >&6; }
9255if test x"$rxvt_cv_int16_t" != xyes; then
9256 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
9257else
9258 if test x"" = x; then
9259 rxvt_int16_typedef="/* typedef short int16_t; */"
9260 else
9261 rxvt_int16_typedef="/* typedef short int16_t; */"
9262 fi
9263fi
9264
9265{ echo "$as_me:$LINENO: checking for uint16_t" >&5
9266echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
9267if test "${rxvt_cv_uint16_t+set}" = set; then
9268 echo $ECHO_N "(cached) $ECHO_C" >&6
9269else
9270 cat >conftest.$ac_ext <<_ACEOF
9271/* confdefs.h. */
9272_ACEOF
9273cat confdefs.h >>conftest.$ac_ext
9274cat >>conftest.$ac_ext <<_ACEOF
9275/* end confdefs.h. */
9276#include <stdint.h>
9277int
9278main ()
9279{
9280uint16_t dummy;
9281 ;
9282 return 0;
9283}
9284_ACEOF
9285rm -f conftest.$ac_objext
9286if { (ac_try="$ac_compile"
9287case "(($ac_try" in
9288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9289 *) ac_try_echo=$ac_try;;
9290esac
9291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9292 (eval "$ac_compile") 2>conftest.er1
9293 ac_status=$?
9294 grep -v '^ *+' conftest.er1 >conftest.err
9295 rm -f conftest.er1
9296 cat conftest.err >&5
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); } && {
9299 test -z "$ac_cxx_werror_flag" ||
9300 test ! -s conftest.err
9301 } && test -s conftest.$ac_objext; then
9302 rxvt_cv_uint16_t=yes
9303else
9304 echo "$as_me: failed program was:" >&5
9305sed 's/^/| /' conftest.$ac_ext >&5
9306
9307 if test "$ac_cv_sizeof_char" -ge 2; then
9308 rxvt_cv_uint16_t="unsigned char"
9309else
9310 if test "$ac_cv_sizeof_short" -ge 2; then
9311 rxvt_cv_uint16_t="unsigned short"
9312 else
9313 if test "$ac_cv_sizeof_int" -ge 2; then
9314 rxvt_cv_uint16_t="unsigned int"
9315 else
9316 if test "$ac_cv_sizeof_long" -ge 2; then
9317 rxvt_cv_uint16_t="unsigned long"
9318 else
9319 if test "$ac_cv_sizeof_long_long" -ge 2; then
9320 rxvt_cv_uint16_t="unsigned long long"
9321 else
9322 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
9323 fi
9324 fi
9325 fi
9326 fi
9327fi
9328fi
9329
9330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9331fi
9332{ echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
9333echo "${ECHO_T}$rxvt_cv_uint16_t" >&6; }
9334if test x"$rxvt_cv_uint16_t" != xyes; then
9335 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
9336else
9337 if test x"unsigned" = x; then
9338 rxvt_uint16_typedef="/* typedef short uint16_t; */"
9339 else
9340 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
9341 fi
9342fi
9343
9344{ echo "$as_me:$LINENO: checking for int32_t" >&5
9345echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
9346if test "${rxvt_cv_int32_t+set}" = set; then
9347 echo $ECHO_N "(cached) $ECHO_C" >&6
9348else
9349 cat >conftest.$ac_ext <<_ACEOF
9350/* confdefs.h. */
9351_ACEOF
9352cat confdefs.h >>conftest.$ac_ext
9353cat >>conftest.$ac_ext <<_ACEOF
9354/* end confdefs.h. */
9355#include <stdint.h>
9356int
9357main ()
9358{
9359int32_t dummy;
9360 ;
9361 return 0;
9362}
9363_ACEOF
9364rm -f conftest.$ac_objext
9365if { (ac_try="$ac_compile"
9366case "(($ac_try" in
9367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9368 *) ac_try_echo=$ac_try;;
9369esac
9370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9371 (eval "$ac_compile") 2>conftest.er1
9372 ac_status=$?
9373 grep -v '^ *+' conftest.er1 >conftest.err
9374 rm -f conftest.er1
9375 cat conftest.err >&5
9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377 (exit $ac_status); } && {
9378 test -z "$ac_cxx_werror_flag" ||
9379 test ! -s conftest.err
9380 } && test -s conftest.$ac_objext; then
9381 rxvt_cv_int32_t=yes
9382else
9383 echo "$as_me: failed program was:" >&5
9384sed 's/^/| /' conftest.$ac_ext >&5
9385
9386 if test "$ac_cv_sizeof_char" -ge 4; then
9387 rxvt_cv_int32_t=" char"
9388else
9389 if test "$ac_cv_sizeof_short" -ge 4; then
9390 rxvt_cv_int32_t=" short"
9391 else
9392 if test "$ac_cv_sizeof_int" -ge 4; then
9393 rxvt_cv_int32_t=" int"
9394 else
9395 if test "$ac_cv_sizeof_long" -ge 4; then
9396 rxvt_cv_int32_t=" long"
9397 else
9398 if test "$ac_cv_sizeof_long_long" -ge 4; then
9399 rxvt_cv_int32_t=" long long"
9400 else
9401 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
9402 fi
9403 fi
9404 fi
9405 fi
9406fi
9407fi
9408
9409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9410fi
9411{ echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
9412echo "${ECHO_T}$rxvt_cv_int32_t" >&6; }
9413if test x"$rxvt_cv_int32_t" != xyes; then
9414 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
9415else
9416 if test x"" = x; then
9417 rxvt_int32_typedef="/* typedef int int32_t; */"
9418 else
9419 rxvt_int32_typedef="/* typedef int int32_t; */"
9420 fi
9421fi
9422
9423{ echo "$as_me:$LINENO: checking for uint32_t" >&5
9424echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
9425if test "${rxvt_cv_uint32_t+set}" = set; then
9426 echo $ECHO_N "(cached) $ECHO_C" >&6
9427else
9428 cat >conftest.$ac_ext <<_ACEOF
9429/* confdefs.h. */
9430_ACEOF
9431cat confdefs.h >>conftest.$ac_ext
9432cat >>conftest.$ac_ext <<_ACEOF
9433/* end confdefs.h. */
9434#include <stdint.h>
9435int
9436main ()
9437{
9438uint32_t dummy;
9439 ;
9440 return 0;
9441}
9442_ACEOF
9443rm -f conftest.$ac_objext
9444if { (ac_try="$ac_compile"
9445case "(($ac_try" in
9446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9447 *) ac_try_echo=$ac_try;;
9448esac
9449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9450 (eval "$ac_compile") 2>conftest.er1
9451 ac_status=$?
9452 grep -v '^ *+' conftest.er1 >conftest.err
9453 rm -f conftest.er1
9454 cat conftest.err >&5
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); } && {
9457 test -z "$ac_cxx_werror_flag" ||
9458 test ! -s conftest.err
9459 } && test -s conftest.$ac_objext; then
9460 rxvt_cv_uint32_t=yes
9461else
9462 echo "$as_me: failed program was:" >&5
9463sed 's/^/| /' conftest.$ac_ext >&5
9464
9465 if test "$ac_cv_sizeof_char" -ge 4; then
9466 rxvt_cv_uint32_t="unsigned char"
9467else
9468 if test "$ac_cv_sizeof_short" -ge 4; then
9469 rxvt_cv_uint32_t="unsigned short"
9470 else
9471 if test "$ac_cv_sizeof_int" -ge 4; then
9472 rxvt_cv_uint32_t="unsigned int"
9473 else
9474 if test "$ac_cv_sizeof_long" -ge 4; then
9475 rxvt_cv_uint32_t="unsigned long"
9476 else
9477 if test "$ac_cv_sizeof_long_long" -ge 4; then
9478 rxvt_cv_uint32_t="unsigned long long"
9479 else
9480 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
9481 fi
9482 fi
9483 fi
9484 fi
9485fi
9486fi
9487
9488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9489fi
9490{ echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
9491echo "${ECHO_T}$rxvt_cv_uint32_t" >&6; }
9492if test x"$rxvt_cv_uint32_t" != xyes; then
9493 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
9494else
9495 if test x"unsigned" = x; then
9496 rxvt_uint32_typedef="/* typedef int uint32_t; */"
9497 else
9498 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
9499 fi
9500fi
9501
9502if test "$ac_cv_sizeof_int_p" -eq 8; then
9503 rxvt_intp_define="#define intp_t int64_t"
9504 rxvt_u_intp_define="#define u_intp_t u_int64_t"
9505else
9506 if test "$ac_cv_sizeof_int_p" -eq 4; then
9507 rxvt_intp_define="#define intp_t int32_t"
9508 rxvt_u_intp_define="#define u_intp_t u_int32_t"
9509 else
9510 if test "$ac_cv_sizeof_int_p" -eq 2; then
9511 rxvt_intp_define="#define intp_t int16_t"
9512 rxvt_u_intp_define="#define u_intp_t u_int16_t"
9513 else
9514 rxvt_intp_define="#error set intp_t"
9515 rxvt_u_intp_define="#error set u_intp_t"
9516 fi
9517 fi
9518fi
9519
9520
9521
9522{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9523echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
9524if test "${ac_cv_type_signal+set}" = set; then
9525 echo $ECHO_N "(cached) $ECHO_C" >&6
9526else
9527 cat >conftest.$ac_ext <<_ACEOF
9528/* confdefs.h. */
9529_ACEOF
9530cat confdefs.h >>conftest.$ac_ext
9531cat >>conftest.$ac_ext <<_ACEOF
9532/* end confdefs.h. */
9533#include <sys/types.h>
9534#include <signal.h>
9535
9536int
9537main ()
9538{
9539return *(signal (0, 0)) (0) == 1;
9540 ;
9541 return 0;
9542}
9543_ACEOF
9544rm -f conftest.$ac_objext
9545if { (ac_try="$ac_compile"
9546case "(($ac_try" in
9547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9548 *) ac_try_echo=$ac_try;;
9549esac
9550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9551 (eval "$ac_compile") 2>conftest.er1
9552 ac_status=$?
9553 grep -v '^ *+' conftest.er1 >conftest.err
9554 rm -f conftest.er1
9555 cat conftest.err >&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); } && {
9558 test -z "$ac_cxx_werror_flag" ||
9559 test ! -s conftest.err
9560 } && test -s conftest.$ac_objext; then
9561 ac_cv_type_signal=int
9562else
9563 echo "$as_me: failed program was:" >&5
9564sed 's/^/| /' conftest.$ac_ext >&5
9565
9566 ac_cv_type_signal=void
9567fi
9568
9569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9570fi
9571{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9572echo "${ECHO_T}$ac_cv_type_signal" >&6; }
9573
9574cat >>confdefs.h <<_ACEOF
9575#define RETSIGTYPE $ac_cv_type_signal
9576_ACEOF
9577
9578
9579
9580
9581
9582
9583for ac_func in \ 8227for ac_func in unsetenv
9584 unsetenv \
9585 setutent \
9586 on_exit \
9587
9588do 8228do
9589as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8229as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9590{ echo "$as_me:$LINENO: checking for $ac_func" >&5 8230{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9591echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8231echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9592if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 8232if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9731 8371
9732 8372
9733 8373
9734 8374
9735for ac_func in \ 8375for ac_func in \
9736 ttyslot \
9737 updwtmp \ 8376 updwtmp \
9738 updwtmpx \ 8377 updwtmpx \
8378 updlastlogx \
9739 8379
9740do 8380do
9741as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8381as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9742{ echo "$as_me:$LINENO: checking for $ac_func" >&5 8382{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9743echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8383echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9829fi 8469fi
9830done 8470done
9831 8471
9832 8472
9833 8473
9834
9835
9836for ac_header in \ 8474for ac_header in lastlog.h
9837 utmp.h \
9838 utmpx.h \
9839 lastlog.h \
9840
9841do 8475do
9842as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8476as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9843if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8477if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9844 { echo "$as_me:$LINENO: checking for $ac_header" >&5 8478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9845echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8479echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9976 8610
9977done 8611done
9978 8612
9979 8613
9980 8614
9981if test "${ac_cv_header_utmp_h+set}" = set; then 8615
8616for ac_header in utmp.h
8617do
8618as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8619if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9982 { echo "$as_me:$LINENO: checking for utmp.h" >&5 8620 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9983echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } 8621echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9984if test "${ac_cv_header_utmp_h+set}" = set; then 8622if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9985 echo $ECHO_N "(cached) $ECHO_C" >&6 8623 echo $ECHO_N "(cached) $ECHO_C" >&6
9986fi 8624fi
8625ac_res=`eval echo '${'$as_ac_Header'}'`
9987{ echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 8626 { echo "$as_me:$LINENO: result: $ac_res" >&5
9988echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } 8627echo "${ECHO_T}$ac_res" >&6; }
9989else 8628else
9990 # Is the header compilable? 8629 # Is the header compilable?
9991{ echo "$as_me:$LINENO: checking utmp.h usability" >&5 8630{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9992echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6; } 8631echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9993cat >conftest.$ac_ext <<_ACEOF 8632cat >conftest.$ac_ext <<_ACEOF
9994/* confdefs.h. */ 8633/* confdefs.h. */
9995_ACEOF 8634_ACEOF
9996cat confdefs.h >>conftest.$ac_ext 8635cat confdefs.h >>conftest.$ac_ext
9997cat >>conftest.$ac_ext <<_ACEOF 8636cat >>conftest.$ac_ext <<_ACEOF
9998/* end confdefs.h. */ 8637/* end confdefs.h. */
9999$ac_includes_default 8638$ac_includes_default
10000#include <utmp.h> 8639#include <$ac_header>
10001_ACEOF 8640_ACEOF
10002rm -f conftest.$ac_objext 8641rm -f conftest.$ac_objext
10003if { (ac_try="$ac_compile" 8642if { (ac_try="$ac_compile"
10004case "(($ac_try" in 8643case "(($ac_try" in
10005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10028{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8667{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10029echo "${ECHO_T}$ac_header_compiler" >&6; } 8668echo "${ECHO_T}$ac_header_compiler" >&6; }
10030 8669
10031# Is the header present? 8670# Is the header present?
10032{ echo "$as_me:$LINENO: checking utmp.h presence" >&5 8671{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10033echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6; } 8672echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10034cat >conftest.$ac_ext <<_ACEOF 8673cat >conftest.$ac_ext <<_ACEOF
10035/* confdefs.h. */ 8674/* confdefs.h. */
10036_ACEOF 8675_ACEOF
10037cat confdefs.h >>conftest.$ac_ext 8676cat confdefs.h >>conftest.$ac_ext
10038cat >>conftest.$ac_ext <<_ACEOF 8677cat >>conftest.$ac_ext <<_ACEOF
10039/* end confdefs.h. */ 8678/* end confdefs.h. */
10040#include <utmp.h> 8679#include <$ac_header>
10041_ACEOF 8680_ACEOF
10042if { (ac_try="$ac_cpp conftest.$ac_ext" 8681if { (ac_try="$ac_cpp conftest.$ac_ext"
10043case "(($ac_try" in 8682case "(($ac_try" in
10044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10045 *) ac_try_echo=$ac_try;; 8684 *) ac_try_echo=$ac_try;;
10068echo "${ECHO_T}$ac_header_preproc" >&6; } 8707echo "${ECHO_T}$ac_header_preproc" >&6; }
10069 8708
10070# So? What about this header? 8709# So? What about this header?
10071case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 8710case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10072 yes:no: ) 8711 yes:no: )
10073 { 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
10074echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 8713echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10075 { 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
10076echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;} 8715echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10077 ac_header_preproc=yes 8716 ac_header_preproc=yes
10078 ;; 8717 ;;
10079 no:yes:* ) 8718 no:yes:* )
10080 { 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
10081echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;} 8720echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10082 { 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
10083echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;} 8722echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10084 { 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
10085echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;} 8724echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10086 { 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
10087echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;} 8726echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10088 { 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
10089echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;} 8728echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10090 { 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
10091echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;} 8730echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10092 8731
10093 ;; 8732 ;;
10094esac 8733esac
10095{ echo "$as_me:$LINENO: checking for utmp.h" >&5 8734{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10096echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } 8735echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10097if test "${ac_cv_header_utmp_h+set}" = set; then 8736if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10098 echo $ECHO_N "(cached) $ECHO_C" >&6 8737 echo $ECHO_N "(cached) $ECHO_C" >&6
10099else 8738else
10100 ac_cv_header_utmp_h=$ac_header_preproc 8739 eval "$as_ac_Header=\$ac_header_preproc"
10101fi 8740fi
8741ac_res=`eval echo '${'$as_ac_Header'}'`
10102{ echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 8742 { echo "$as_me:$LINENO: result: $ac_res" >&5
10103echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } 8743echo "${ECHO_T}$ac_res" >&6; }
10104 8744
10105fi 8745fi
10106if test $ac_cv_header_utmp_h = yes; then 8746if 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
10107 { echo "$as_me:$LINENO: checking for struct utmp" >&5 8750 { echo "$as_me:$LINENO: checking for struct utmp" >&5
10108echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; } 8751echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; }
10109if test "${struct_utmp+set}" = set; then 8752if test "${struct_utmp+set}" = set; then
10110 echo $ECHO_N "(cached) $ECHO_C" >&6 8753 echo $ECHO_N "(cached) $ECHO_C" >&6
10111else 8754else
10112 cat >conftest.$ac_ext <<_ACEOF 8755 cat >conftest.$ac_ext <<_ACEOF
10279 8922
10280fi 8923fi
10281 8924
10282fi 8925fi
10283 8926
8927done
10284 8928
10285 8929
10286if test "${ac_cv_header_utmpx_h+set}" = set; then 8930
8931for ac_header in utmpx.h
8932do
8933as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8934if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10287 { echo "$as_me:$LINENO: checking for utmpx.h" >&5 8935 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10288echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } 8936echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10289if test "${ac_cv_header_utmpx_h+set}" = set; then 8937if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10290 echo $ECHO_N "(cached) $ECHO_C" >&6 8938 echo $ECHO_N "(cached) $ECHO_C" >&6
10291fi 8939fi
8940ac_res=`eval echo '${'$as_ac_Header'}'`
10292{ echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 8941 { echo "$as_me:$LINENO: result: $ac_res" >&5
10293echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } 8942echo "${ECHO_T}$ac_res" >&6; }
10294else 8943else
10295 # Is the header compilable? 8944 # Is the header compilable?
10296{ echo "$as_me:$LINENO: checking utmpx.h usability" >&5 8945{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10297echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6; } 8946echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10298cat >conftest.$ac_ext <<_ACEOF 8947cat >conftest.$ac_ext <<_ACEOF
10299/* confdefs.h. */ 8948/* confdefs.h. */
10300_ACEOF 8949_ACEOF
10301cat confdefs.h >>conftest.$ac_ext 8950cat confdefs.h >>conftest.$ac_ext
10302cat >>conftest.$ac_ext <<_ACEOF 8951cat >>conftest.$ac_ext <<_ACEOF
10303/* end confdefs.h. */ 8952/* end confdefs.h. */
10304$ac_includes_default 8953$ac_includes_default
10305#include <utmpx.h> 8954#include <$ac_header>
10306_ACEOF 8955_ACEOF
10307rm -f conftest.$ac_objext 8956rm -f conftest.$ac_objext
10308if { (ac_try="$ac_compile" 8957if { (ac_try="$ac_compile"
10309case "(($ac_try" in 8958case "(($ac_try" in
10310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10333{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8982{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10334echo "${ECHO_T}$ac_header_compiler" >&6; } 8983echo "${ECHO_T}$ac_header_compiler" >&6; }
10335 8984
10336# Is the header present? 8985# Is the header present?
10337{ echo "$as_me:$LINENO: checking utmpx.h presence" >&5 8986{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10338echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6; } 8987echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10339cat >conftest.$ac_ext <<_ACEOF 8988cat >conftest.$ac_ext <<_ACEOF
10340/* confdefs.h. */ 8989/* confdefs.h. */
10341_ACEOF 8990_ACEOF
10342cat confdefs.h >>conftest.$ac_ext 8991cat confdefs.h >>conftest.$ac_ext
10343cat >>conftest.$ac_ext <<_ACEOF 8992cat >>conftest.$ac_ext <<_ACEOF
10344/* end confdefs.h. */ 8993/* end confdefs.h. */
10345#include <utmpx.h> 8994#include <$ac_header>
10346_ACEOF 8995_ACEOF
10347if { (ac_try="$ac_cpp conftest.$ac_ext" 8996if { (ac_try="$ac_cpp conftest.$ac_ext"
10348case "(($ac_try" in 8997case "(($ac_try" in
10349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10350 *) ac_try_echo=$ac_try;; 8999 *) ac_try_echo=$ac_try;;
10373echo "${ECHO_T}$ac_header_preproc" >&6; } 9022echo "${ECHO_T}$ac_header_preproc" >&6; }
10374 9023
10375# So? What about this header? 9024# So? What about this header?
10376case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 9025case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10377 yes:no: ) 9026 yes:no: )
10378 { 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
10379echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 9028echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10380 { 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
10381echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;} 9030echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10382 ac_header_preproc=yes 9031 ac_header_preproc=yes
10383 ;; 9032 ;;
10384 no:yes:* ) 9033 no:yes:* )
10385 { 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
10386echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;} 9035echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10387 { 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
10388echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;} 9037echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10389 { 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
10390echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;} 9039echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10391 { 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
10392echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;} 9041echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10393 { 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
10394echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;} 9043echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10395 { 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
10396echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;} 9045echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10397 9046
10398 ;; 9047 ;;
10399esac 9048esac
10400{ echo "$as_me:$LINENO: checking for utmpx.h" >&5 9049{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10401echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } 9050echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10402if test "${ac_cv_header_utmpx_h+set}" = set; then 9051if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10403 echo $ECHO_N "(cached) $ECHO_C" >&6 9052 echo $ECHO_N "(cached) $ECHO_C" >&6
10404else 9053else
10405 ac_cv_header_utmpx_h=$ac_header_preproc 9054 eval "$as_ac_Header=\$ac_header_preproc"
10406fi 9055fi
9056ac_res=`eval echo '${'$as_ac_Header'}'`
10407{ echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 9057 { echo "$as_me:$LINENO: result: $ac_res" >&5
10408echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } 9058echo "${ECHO_T}$ac_res" >&6; }
10409 9059
10410fi 9060fi
10411if test $ac_cv_header_utmpx_h = yes; then 9061if 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
10412 { echo "$as_me:$LINENO: checking for struct utmpx" >&5 9065 { echo "$as_me:$LINENO: checking for struct utmpx" >&5
10413echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; } 9066echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; }
10414if test "${struct_utmpx+set}" = set; then 9067if test "${struct_utmpx+set}" = set; then
10415 echo $ECHO_N "(cached) $ECHO_C" >&6 9068 echo $ECHO_N "(cached) $ECHO_C" >&6
10416else 9069else
10417 cat >conftest.$ac_ext <<_ACEOF 9070 cat >conftest.$ac_ext <<_ACEOF
10584 9237
10585fi 9238fi
10586 9239
10587fi 9240fi
10588 9241
9242done
10589 9243
10590{ echo "$as_me:$LINENO: checking for struct lastlog" >&5 9244{ echo "$as_me:$LINENO: checking for struct lastlog" >&5
10591echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } 9245echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; }
10592if test "${struct_lastlog+set}" = set; then 9246if test "${struct_lastlog+set}" = set; then
10593 echo $ECHO_N "(cached) $ECHO_C" >&6 9247 echo $ECHO_N "(cached) $ECHO_C" >&6
11164 9818
11165cat >>confdefs.h <<_ACEOF 9819cat >>confdefs.h <<_ACEOF
11166#define LASTLOG_FILE "$path_lastlog" 9820#define LASTLOG_FILE "$path_lastlog"
11167_ACEOF 9821_ACEOF
11168 9822
11169 if test -d "$path_lastlog"; then
11170
11171cat >>confdefs.h <<\_ACEOF
11172#define LASTLOG_IS_DIR 1
11173_ACEOF
11174
11175 fi
11176fi 9823fi
11177 9824
11178{ echo "$as_me:$LINENO: checking where lastlogx is located" >&5 9825{ echo "$as_me:$LINENO: checking where lastlogx is located" >&5
11179echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } 9826echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; }
11180if test "${path_lastlogx+set}" = set; then 9827if test "${path_lastlogx+set}" = set; then
11262 9909
11263fi 9910fi
11264 9911
11265 9912
11266 9913
11267{ echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
11268echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6; }
11269if test "${rxvt_cv_path_ttytab+set}" = set; then
11270 echo $ECHO_N "(cached) $ECHO_C" >&6
11271else
11272 for ttys_file in /etc/ttys /etc/ttytab;
11273do
11274 if test -f "$ttys_file" ; then
11275 rxvt_cv_path_ttytab=$ttys_file
11276 break
11277 fi
11278done
11279 9914
11280fi
11281{ echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
11282echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6; }
11283if test x$rxvt_cv_path_ttytab != x; then
11284
11285cat >>confdefs.h <<_ACEOF
11286#define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
11287_ACEOF
11288
11289fi
11290
11291
11292ac_save_LIBS=$LIBS 9915save_LIBS=$LIBS
11293ac_save_CFLAGS=$CFLAGS 9916save_CFLAGS=$CFLAGS
11294CFLAGS="$CFLAGS $X_CFLAGS" 9917CFLAGS="$CFLAGS $X_CFLAGS"
11295LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 9918LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
11296if test x$support_xim = xyes; then 9919if test x$support_xim = xyes; then
11297 { echo "$as_me:$LINENO: checking for working Xlocale" >&5 9920 { echo "$as_me:$LINENO: checking for working Xlocale" >&5
11298echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } 9921echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; }
11473cat >>confdefs.h <<\_ACEOF 10096cat >>confdefs.h <<\_ACEOF
11474#define HAVE_XSETLOCALE 1 10097#define HAVE_XSETLOCALE 1
11475_ACEOF 10098_ACEOF
11476 10099
11477fi 10100fi
11478LIBS=$ac_save_LIBS 10101LIBS=$save_LIBS
11479CFLAGS=$ac_save_CFLAGS 10102CFLAGS=$save_CFLAGS
11480 10103
11481{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5 10104{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5
11482echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } 10105echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; }
11483if test "${rxvt_cv_func_setlocale+set}" = set; then 10106if test "${rxvt_cv_func_setlocale+set}" = set; then
11484 echo $ECHO_N "(cached) $ECHO_C" >&6 10107 echo $ECHO_N "(cached) $ECHO_C" >&6
12377echo "${ECHO_T}no" >&6; } 11000echo "${ECHO_T}no" >&6; }
12378fi 11001fi
12379 11002
12380 11003
12381 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then 11004 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
12382 LIBS="$LIBS `$PKG_CONFIG xft --libs`" 11005 X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS"
12383 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" 11006 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
12384 else 11007 else
12385 # 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.
12386set dummy xft-config; ac_word=$2 11009set dummy xft-config; ac_word=$2
12387{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11010{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12422echo "${ECHO_T}no" >&6; } 11045echo "${ECHO_T}no" >&6; }
12423fi 11046fi
12424 11047
12425 11048
12426 if test $XFT_CONFIG != no; then 11049 if test $XFT_CONFIG != no; then
12427 LIBS="$LIBS `$XFT_CONFIG --libs`" 11050 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
12428 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" 11051 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
12429 fi 11052 fi
12430 fi 11053 fi
12431 11054
11055 save_LIBS="$LIBS"
11056 LIBS="$LIBS $X_LIBS"
12432 11057
12433for ac_header in X11/Xft/Xft.h 11058for ac_header in X11/Xft/Xft.h
12434do 11059do
12435as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11060as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12436if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11061if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12569 support_xft=no 11194 support_xft=no
12570fi 11195fi
12571 11196
12572done 11197done
12573 11198
12574
12575{ echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 11199 { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
12576echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } 11200echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; }
12577if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then 11201if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then
12578 echo $ECHO_N "(cached) $ECHO_C" >&6 11202 echo $ECHO_N "(cached) $ECHO_C" >&6
12579else 11203else
12580 ac_check_lib_save_LIBS=$LIBS 11204 ac_check_lib_save_LIBS=$LIBS
12632LIBS=$ac_check_lib_save_LIBS 11256LIBS=$ac_check_lib_save_LIBS
12633fi 11257fi
12634{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 11258{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
12635echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } 11259echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; }
12636if test $ac_cv_lib_Xft_XftDrawString32 = yes; then 11260if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
12637 cat >>confdefs.h <<_ACEOF 11261 :
12638#define HAVE_LIBXFT 1
12639_ACEOF
12640
12641 LIBS="-lXft $LIBS"
12642
12643else 11262else
12644 support_xft=no 11263 support_xft=no
12645fi 11264fi
12646 11265
11266 LIBS="$save_LIBS"
12647 11267
12648 if test x$support_xft = xyes; then 11268 if test x$support_xft = xyes; then
12649 11269
12650cat >>confdefs.h <<\_ACEOF 11270cat >>confdefs.h <<\_ACEOF
12651#define XFT 1 11271#define XFT 1
12729#define HAVE_AFTERIMAGE 1 11349#define HAVE_AFTERIMAGE 1
12730_ACEOF 11350_ACEOF
12731 11351
12732 11352
12733cat >>confdefs.h <<\_ACEOF 11353cat >>confdefs.h <<\_ACEOF
12734#define XPM_BACKGROUND 1 11354#define BG_IMAGE_FROM_FILE 1
12735_ACEOF 11355_ACEOF
12736 11356
12737fi 11357fi
12738 11358
12739 11359
13046if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then 11666if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
13047 include_stdint_h="#include <stdint.h>" 11667 include_stdint_h="#include <stdint.h>"
13048else 11668else
13049 include_stdint_h="/* #include <stdint.h> */" 11669 include_stdint_h="/* #include <stdint.h> */"
13050fi 11670fi
13051if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
13052 include_stdarg_h="#include <cstdarg>"
13053else
13054 include_stdarg_h="/* #include <cstdarg> */"
13055fi
13056if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
13057 include_stdlib_h="#include <cstdlib>"
13058else
13059 include_stdlib_h="/* #include <cstdlib> */"
13060fi
13061if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
13062 include_unistd_h="#include <unistd.h>"
13063else
13064 include_unistd_h="/* #include <unistd.h> */"
13065fi
13066if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
13067 include_string_h="#include <cstring>"
13068else
13069 include_string_h="/* #include <cstring> */"
13070fi
13071if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
13072 include_fcntl_h="#include <fcntl.h>"
13073else
13074 include_fcntl_h="/* #include <fcntl.h> */"
13075fi
13076if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
13077 include_util_h="#include <util.h>"
13078else
13079 include_util_h="/* #include <util.h> */"
13080fi
13081if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
13082 include_assert_h="#include <assert.h>"
13083else
13084 include_assert_h="/* #include <assert.h> */"
13085fi
13086if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then 11671if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
13087 include_sys_ioctl_h="#include <sys/ioctl.h>" 11672 include_sys_ioctl_h="#include <sys/ioctl.h>"
13088else 11673else
13089 include_sys_ioctl_h="/* #include <sys/ioctl.h> */" 11674 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
13090fi 11675fi
13091if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
13092 include_sys_select_h="#include <sys/select.h>"
13093else
13094 include_sys_select_h="/* #include <sys/select.h> */"
13095fi
13096if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then 11676if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
13097 include_sys_strredir_h="#include <sys/strredir.h>" 11677 include_sys_strredir_h="#include <sys/strredir.h>"
13098else 11678else
13099 include_sys_strredir_h="/* #include <sys/strredir.h> */" 11679 include_sys_strredir_h="/* #include <sys/strredir.h> */"
13100fi
13101if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
13102 include_sys_time_h="#include <sys/time.h>"
13103else
13104 include_sys_time_h="/* #include <sys/time.h> */"
13105fi
13106if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
13107 include_time_h="#include <time.h>"
13108else
13109 include_time_h="/* #include <time.h> */"
13110fi 11680fi
13111 11681
13112ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" 11682ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h"
13113 11683
13114cat >confcache <<\_ACEOF 11684cat >confcache <<\_ACEOF
13775host_cpu!$host_cpu$ac_delim 12345host_cpu!$host_cpu$ac_delim
13776host_vendor!$host_vendor$ac_delim 12346host_vendor!$host_vendor$ac_delim
13777host_os!$host_os$ac_delim 12347host_os!$host_os$ac_delim
13778VERSION!$VERSION$ac_delim 12348VERSION!$VERSION$ac_delim
13779DATE!$DATE$ac_delim 12349DATE!$DATE$ac_delim
13780LSMDATE!$LSMDATE$ac_delim
13781LIBVERSION!$LIBVERSION$ac_delim
13782CC!$CC$ac_delim 12350CC!$CC$ac_delim
13783CFLAGS!$CFLAGS$ac_delim 12351CFLAGS!$CFLAGS$ac_delim
13784LDFLAGS!$LDFLAGS$ac_delim 12352LDFLAGS!$LDFLAGS$ac_delim
13785CPPFLAGS!$CPPFLAGS$ac_delim 12353CPPFLAGS!$CPPFLAGS$ac_delim
13786ac_ct_CC!$ac_ct_CC$ac_delim 12354ac_ct_CC!$ac_ct_CC$ac_delim
13794INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 12362INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
13795INSTALL_DATA!$INSTALL_DATA$ac_delim 12363INSTALL_DATA!$INSTALL_DATA$ac_delim
13796GREP!$GREP$ac_delim 12364GREP!$GREP$ac_delim
13797EGREP!$EGREP$ac_delim 12365EGREP!$EGREP$ac_delim
13798LINKER!$LINKER$ac_delim 12366LINKER!$LINKER$ac_delim
13799INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim
13800RXVTNAME!$RXVTNAME$ac_delim 12367RXVTNAME!$RXVTNAME$ac_delim
12368CXXCPP!$CXXCPP$ac_delim
13801TIC!$TIC$ac_delim 12369TIC!$TIC$ac_delim
13802XMKMF!$XMKMF$ac_delim 12370XMKMF!$XMKMF$ac_delim
13803CXXCPP!$CXXCPP$ac_delim
13804X_CFLAGS!$X_CFLAGS$ac_delim 12371X_CFLAGS!$X_CFLAGS$ac_delim
13805X_PRE_LIBS!$X_PRE_LIBS$ac_delim 12372X_PRE_LIBS!$X_PRE_LIBS$ac_delim
13806X_LIBS!$X_LIBS$ac_delim 12373X_LIBS!$X_LIBS$ac_delim
13807X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim 12374X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
13808afterimage_config!$afterimage_config$ac_delim 12375afterimage_config!$afterimage_config$ac_delim
13809rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim
13810rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim
13811rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim
13812rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim
13813rxvt_intp_define!$rxvt_intp_define$ac_delim
13814rxvt_u_intp_define!$rxvt_u_intp_define$ac_delim
13815PKG_CONFIG!$PKG_CONFIG$ac_delim 12376PKG_CONFIG!$PKG_CONFIG$ac_delim
13816XFT_CONFIG!$XFT_CONFIG$ac_delim 12377XFT_CONFIG!$XFT_CONFIG$ac_delim
13817PERL!$PERL$ac_delim 12378PERL!$PERL$ac_delim
13818PERLLIB!$PERLLIB$ac_delim 12379PERLLIB!$PERLLIB$ac_delim
13819PERLFLAGS!$PERLFLAGS$ac_delim 12380PERLFLAGS!$PERLFLAGS$ac_delim
13821IF_PERL!$IF_PERL$ac_delim 12382IF_PERL!$IF_PERL$ac_delim
13822PERL_O!$PERL_O$ac_delim 12383PERL_O!$PERL_O$ac_delim
13823AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim 12384AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim
13824AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim 12385AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim
13825include_stdint_h!$include_stdint_h$ac_delim 12386include_stdint_h!$include_stdint_h$ac_delim
13826include_stdarg_h!$include_stdarg_h$ac_delim
13827include_stdlib_h!$include_stdlib_h$ac_delim 12387include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim
13828include_unistd_h!$include_unistd_h$ac_delim
13829include_string_h!$include_string_h$ac_delim 12388include_sys_strredir_h!$include_sys_strredir_h$ac_delim
12389LIBOBJS!$LIBOBJS$ac_delim
12390LTLIBOBJS!$LTLIBOBJS$ac_delim
13830_ACEOF 12391_ACEOF
13831 12392
13832 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
13833 break 12394 break
13834 elif $ac_last_try; then 12395 elif $ac_last_try; then
13835 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 12396 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13836echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 12397echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13837 { (exit 1); exit 1; }; } 12398 { (exit 1); exit 1; }; }
13846 ac_eof=`expr $ac_eof + 1` 12407 ac_eof=`expr $ac_eof + 1`
13847fi 12408fi
13848 12409
13849cat >>$CONFIG_STATUS <<_ACEOF 12410cat >>$CONFIG_STATUS <<_ACEOF
13850cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 12411cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13851/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13852_ACEOF
13853sed '
13854s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13855s/^/s,@/; s/!/@,|#_!!_#|/
13856:n
13857t n
13858s/'"$ac_delim"'$/,g/; t
13859s/$/\\/; p
13860N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13861' >>$CONFIG_STATUS <conf$$subs.sed
13862rm -f conf$$subs.sed
13863cat >>$CONFIG_STATUS <<_ACEOF
13864CEOF$ac_eof
13865_ACEOF
13866
13867
13868ac_delim='%!_!# '
13869for ac_last_try in false false false false false :; do
13870 cat >conf$$subs.sed <<_ACEOF
13871include_fcntl_h!$include_fcntl_h$ac_delim
13872include_util_h!$include_util_h$ac_delim
13873include_assert_h!$include_assert_h$ac_delim
13874include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim
13875include_sys_select_h!$include_sys_select_h$ac_delim
13876include_sys_strredir_h!$include_sys_strredir_h$ac_delim
13877include_sys_time_h!$include_sys_time_h$ac_delim
13878include_time_h!$include_time_h$ac_delim
13879LIBOBJS!$LIBOBJS$ac_delim
13880LTLIBOBJS!$LTLIBOBJS$ac_delim
13881_ACEOF
13882
13883 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
13884 break
13885 elif $ac_last_try; then
13886 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13887echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13888 { (exit 1); exit 1; }; }
13889 else
13890 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13891 fi
13892done
13893
13894ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13895if test -n "$ac_eof"; then
13896 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13897 ac_eof=`expr $ac_eof + 1`
13898fi
13899
13900cat >>$CONFIG_STATUS <<_ACEOF
13901cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13902/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 12412/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13903_ACEOF 12413_ACEOF
13904sed ' 12414sed '
13905s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 12415s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13906s/^/s,@/; s/!/@,|#_!!_#|/ 12416s/^/s,@/; s/!/@,|#_!!_#|/
14159s&@builddir@&$ac_builddir&;t t 12669s&@builddir@&$ac_builddir&;t t
14160s&@abs_builddir@&$ac_abs_builddir&;t t 12670s&@abs_builddir@&$ac_abs_builddir&;t t
14161s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12671s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14162s&@INSTALL@&$ac_INSTALL&;t t 12672s&@INSTALL@&$ac_INSTALL&;t t
14163$ac_datarootdir_hack 12673$ac_datarootdir_hack
14164" $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
14165 12675
14166test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12676test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14167 { 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"; } &&
14168 { 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"; } &&
14169 { 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'

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines