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

Comparing rxvt-unicode/configure (file contents):
Revision 1.113 by ayin, Tue Sep 18 12:17:58 2007 UTC vs.
Revision 1.130 by root, Sat Dec 26 10:24:04 2009 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
703PERLPRIVLIBEXP 694PERLPRIVLIBEXP
704IF_PERL 695IF_PERL
705PERL_O 696PERL_O
706AFTERIMAGE_CFLAGS 697AFTERIMAGE_CFLAGS
707AFTERIMAGE_LIBS 698AFTERIMAGE_LIBS
708include_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
717include_sys_select_h
718include_sys_strredir_h
719include_sys_time_h
720include_time_h
721LIBOBJS 699LIBOBJS
722LTLIBOBJS' 700LTLIBOBJS'
723ac_subst_files='' 701ac_subst_files=''
724 ac_precious_vars='build_alias 702 ac_precious_vars='build_alias
725host_alias 703host_alias
731CPPFLAGS 709CPPFLAGS
732CXX 710CXX
733CXXFLAGS 711CXXFLAGS
734CCC 712CCC
735CPP 713CPP
736XMKMF
737CXXCPP' 714CXXCPP
715XMKMF'
738 716
739 717
740# Initialize some variables set by options. 718# Initialize some variables set by options.
741ac_init_help= 719ac_init_help=
742ac_init_version=false 720ac_init_version=false
1315 1293
1316Optional Features: 1294Optional Features:
1317 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1295 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1318 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1296 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1319 --enable-everything enable standard non-multichoice features 1297 --enable-everything enable standard non-multichoice features
1320 NOTE: this option is order dependent 1298 NOTE: this option is order dependent
1321 NOTE: automatically enabled with --enable-shared 1299 --enable-assert enable assertions
1300 --enable-warnings turn on g++ warnings
1322 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters 1301 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1323 --enable-combining enable composition of base and combining characters 1302 --enable-combining enable composition of base and combining characters
1324 --enable-xft enable xft support on systems that have it 1303 --enable-xft enable xft support on systems that have it
1325 --enable-font-styles enable bold and italic support 1304 --enable-font-styles enable bold and italic support
1326 --enable-afterimage enable integration with libAfterImage for background images 1305 --enable-afterimage enable integration with libAfterImage for background images
1327 --enable-transparency enable transparent backgrounds 1306 --enable-transparency enable transparent backgrounds
1328 --enable-fading enable colors fading when off focus 1307 --enable-fading enable colors fading when off focus
1329 --enable-rxvt-scroll enable rxvt style scrollbar 1308 --enable-rxvt-scroll enable rxvt style scrollbar
1330 --enable-next-scroll enable NeXT style scrollbar 1309 --enable-next-scroll enable NeXT style scrollbar
1331 --enable-xterm-scroll enable Xterm style scrollbar 1310 --enable-xterm-scroll enable Xterm style scrollbar
1332 --enable-perl enable embedded perl interpreter 1311 --enable-perl enable embedded perl interpreter
1333 --enable-plain-scroll enable plain style scrollbar
1334 --enable-xim XIM (X Input Method) protocol support 1312 --enable-xim XIM (X Input Method) protocol support
1335 --disable-backspace-key disable handling of the backspace key 1313 --disable-backspace-key disable handling of the backspace key
1336 --disable-delete-key disable handling of the delete key 1314 --disable-delete-key disable handling of the delete key
1337 --disable-resources disable all resource checking 1315 --disable-resources disable all resource checking
1338 --enable-8bitctrls enable 8 bit control sequences (not recommended) 1316 --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) 1317 --enable-fallback[=CLASS] fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
1340 --disable-swapscreen disable swap screen support 1318 --disable-swapscreen disable swap screen support
1341 --enable-iso14755 enable support for extended ISO 14755 modes 1319 --enable-iso14755 enable support for extended ISO 14755 modes
1342 --enable-frills enable support for rarely used features 1320 --enable-frills enable support for rarely used features
1343 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 1321 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1344 --enable-selectionscrolling enable scrolling during selections 1322 --enable-selectionscrolling enable scrolling during selections
1345 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 1323 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1346 --enable-slipwheeling enable slip wheel scrolling (requires previous) 1324 --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel)
1347 --enable-smart-resize enable smart growth/shrink behaviour 1325 --enable-smart-resize enable smart growth/shrink behaviour
1348 --enable-text-blink enable blinking text 1326 --enable-text-blink enable blinking text
1349 --enable-pointer-blank enable pointer blank when typing or inactive pointer 1327 --enable-pointer-blank enable pointer blank when typing or inactive pointer
1350 --enable-utmp enable utmp (utmpx) support 1328 --enable-utmp enable utmp (utmpx) support
1351 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) 1329 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1353 1331
1354Optional Packages: 1332Optional Packages:
1355 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1333 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1356 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1334 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1357 --with-afterimage-config=DIR use libAfterImage config script in DIR 1335 --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) 1336 --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) 1337 --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) 1338 --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) 1339 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1362 --with-term=NAME set the terminal to NAME (default: rxvt) 1340 --with-term=NAME set the terminal to NAME (default: rxvt)
1363 --with-terminfo=PATH set the path to the terminfo tree to PATH 1341 --with-terminfo=PATH set the path to the terminfo tree to PATH
1372 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1350 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1373 you have headers in a nonstandard directory <include dir> 1351 you have headers in a nonstandard directory <include dir>
1374 CXX C++ compiler command 1352 CXX C++ compiler command
1375 CXXFLAGS C++ compiler flags 1353 CXXFLAGS C++ compiler flags
1376 CPP C preprocessor 1354 CPP C preprocessor
1355 CXXCPP C++ preprocessor
1377 XMKMF Path to xmkmf, Makefile generator for X Window System 1356 XMKMF Path to xmkmf, Makefile generator for X Window System
1378 CXXCPP C++ preprocessor
1379 1357
1380Use these variables to override the choices made by `configure' or to help 1358Use these variables to override the choices made by `configure' or to help
1381it to find libraries and programs with nonstandard names/locations. 1359it to find libraries and programs with nonstandard names/locations.
1382 1360
1383_ACEOF 1361_ACEOF
1919 1897
1920 1898
1921 1899
1922VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1900VERSION=`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` 1901DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1902
1924echo "" 1903echo ""
1925echo "configuring for rxvt $VERSION" 1904echo "configuring for rxvt $VERSION"
1926echo "" 1905echo ""
1927 1906
1928orig_CXXFLAGS="$CXXFLAGS" 1907orig_CXXFLAGS="$CXXFLAGS"
1929
1930 1908
1931ac_ext=c 1909ac_ext=c
1932ac_cpp='$CPP $CPPFLAGS' 1910ac_cpp='$CPP $CPPFLAGS'
1933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3713echo "${ECHO_T}no" >&6; } 3691echo "${ECHO_T}no" >&6; }
3714fi 3692fi
3715rm -f conftest* 3693rm -f conftest*
3716 3694
3717 3695
3696
3697cat >>confdefs.h <<\_ACEOF
3698#define _GNU_SOURCE 1
3699_ACEOF
3700
3701
3718{ echo "$as_me:$LINENO: checking for library containing strerror" >&5 3702{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
3719echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } 3703echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3720if test "${ac_cv_search_strerror+set}" = set; then 3704if test "${ac_cv_search_strerror+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6 3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3722else 3706else
3869LINKER=$LINKER 3853LINKER=$LINKER
3870 3854
3871 3855
3872if test -z "$orig_CXXFLAGS"; then 3856if test -z "$orig_CXXFLAGS"; then
3873 if test x$GCC = xyes && test "x$GXX" = xyes; then 3857 if test x$GCC = xyes && test "x$GXX" = xyes; then
3874 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" 3858 CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs"
3875 cat >conftest.$ac_ext <<_ACEOF 3859 cat >conftest.$ac_ext <<_ACEOF
3876/* confdefs.h. */ 3860/* confdefs.h. */
3877_ACEOF 3861_ACEOF
3878cat confdefs.h >>conftest.$ac_ext 3862cat confdefs.h >>conftest.$ac_ext
3879cat >>conftest.$ac_ext <<_ACEOF 3863cat >>conftest.$ac_ext <<_ACEOF
3917 CXXFLAGS="-O" 3901 CXXFLAGS="-O"
3918 fi 3902 fi
3919 CFLAGS="$CXXFLAGS" 3903 CFLAGS="$CXXFLAGS"
3920fi 3904fi
3921 3905
3922
3923cat >>confdefs.h <<\_ACEOF
3924#define _GNU_SOURCE 1
3925_ACEOF
3926
3927
3928case $host in 3906case $host in
3929 *-*-solaris* ) 3907 *-*-solaris* )
3930 3908
3931cat >>confdefs.h <<\_ACEOF 3909cat >>confdefs.h <<\_ACEOF
3932#define _XOPEN_SOURCE 500 3910#define _XOPEN_SOURCE 500
3933_ACEOF 3911_ACEOF
3934 3912
3935 ;; 3913 ;;
3936esac 3914esac
3937
3938 3915
3939{ echo "$as_me:$LINENO: checking for setlocale" >&5 3916{ echo "$as_me:$LINENO: checking for setlocale" >&5
3940echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } 3917echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; }
3941if test "${ac_cv_func_setlocale+set}" = set; then 3918if test "${ac_cv_func_setlocale+set}" = set; then
3942 echo $ECHO_N "(cached) $ECHO_C" >&6 3919 echo $ECHO_N "(cached) $ECHO_C" >&6
4389fi 4366fi
4390 4367
4391fi 4368fi
4392 4369
4393 4370
4394
4395support_frills=yes 4371support_frills=yes
4396support_inheritpixmap=yes 4372support_inheritpixmap=yes
4397support_fading=yes 4373support_fading=yes
4398support_keepscrolling=yes 4374support_keepscrolling=yes
4399support_selectionscrolling=yes 4375support_selectionscrolling=yes
4402support_text_blink=yes 4378support_text_blink=yes
4403support_pointer_blank=yes 4379support_pointer_blank=yes
4404support_scroll_rxvt=yes 4380support_scroll_rxvt=yes
4405support_scroll_next=yes 4381support_scroll_next=yes
4406support_scroll_xterm=yes 4382support_scroll_xterm=yes
4407support_scroll_plain=yes
4408support_xim=yes 4383support_xim=yes
4409support_afterimage=yes 4384support_afterimage=yes
4410support_afterstep=yes 4385support_afterstep=yes
4411support_xft=yes 4386support_xft=yes
4412support_unicode3=no 4387support_unicode3=no
4414support_8bitctrls=no 4389support_8bitctrls=no
4415support_iso14755=yes 4390support_iso14755=yes
4416support_styles=yes 4391support_styles=yes
4417support_perl=yes 4392support_perl=yes
4418codesets=all 4393codesets=all
4419
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 4394
4430 4395
4431# Check whether --enable-everything was given. 4396# Check whether --enable-everything was given.
4432if test "${enable_everything+set}" = set; then 4397if test "${enable_everything+set}" = set; then
4433 enableval=$enable_everything; 4398 enableval=$enable_everything;
4443 support_text_blink=no 4408 support_text_blink=no
4444 support_pointer_blank=no 4409 support_pointer_blank=no
4445 support_scroll_rxvt=no 4410 support_scroll_rxvt=no
4446 support_scroll_next=no 4411 support_scroll_next=no
4447 support_scroll_xterm=no 4412 support_scroll_xterm=no
4448 support_scroll_plain=no
4449 support_utmp=no 4413 support_utmp=no
4450 support_wtmp=no 4414 support_wtmp=no
4451 support_xim=no 4415 support_xim=no
4452 support_afterimage=no 4416 support_afterimage=no
4453 support_afterstep=no 4417 support_afterstep=no
4472 support_text_blink=yes 4436 support_text_blink=yes
4473 support_pointer_blank=yes 4437 support_pointer_blank=yes
4474 support_scroll_rxvt=yes 4438 support_scroll_rxvt=yes
4475 support_scroll_next=yes 4439 support_scroll_next=yes
4476 support_scroll_xterm=yes 4440 support_scroll_xterm=yes
4477 support_scroll_plain=yes
4478 support_utmp=yes 4441 support_utmp=yes
4479 support_wtmp=yes 4442 support_wtmp=yes
4480 support_xim=yes 4443 support_xim=yes
4481 support_afterimage=yes 4444 support_afterimage=yes
4482 support_afterstep=yes 4445 support_afterstep=yes
4491 fi 4454 fi
4492 4455
4493fi 4456fi
4494 4457
4495 4458
4459ASSERTIONS=no
4460# Check whether --enable-assert was given.
4461if test "${enable_assert+set}" = set; then
4462 enableval=$enable_assert; if test x$enableval = xyes; then
4463 ASSERTIONS=yes
4464 fi
4465fi
4466
4467if test x$ASSERTIONS = xno; then
4468
4469cat >>confdefs.h <<\_ACEOF
4470#define NDEBUG 1
4471_ACEOF
4472
4473fi
4474
4475WARNINGS=no
4476# Check whether --enable-warnings was given.
4477if test "${enable_warnings+set}" = set; then
4478 enableval=$enable_warnings; if test x$enableval = xyes; then
4479 WARNINGS=yes
4480 fi
4481fi
4482
4483if test x$GXX = xyes; then
4484 if test $WARNINGS = yes; then
4485 save_CXXFLAGS="$CXXFLAGS"
4486 CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-non-virtual-dtor"
4487 cat >conftest.$ac_ext <<_ACEOF
4488/* confdefs.h. */
4489_ACEOF
4490cat confdefs.h >>conftest.$ac_ext
4491cat >>conftest.$ac_ext <<_ACEOF
4492/* end confdefs.h. */
4493
4494int
4495main ()
4496{
4497
4498 ;
4499 return 0;
4500}
4501_ACEOF
4502rm -f conftest.$ac_objext
4503if { (ac_try="$ac_compile"
4504case "(($ac_try" in
4505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506 *) ac_try_echo=$ac_try;;
4507esac
4508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4509 (eval "$ac_compile") 2>conftest.er1
4510 ac_status=$?
4511 grep -v '^ *+' conftest.er1 >conftest.err
4512 rm -f conftest.er1
4513 cat conftest.err >&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } && {
4516 test -z "$ac_cxx_werror_flag" ||
4517 test ! -s conftest.err
4518 } && test -s conftest.$ac_objext; then
4519 :
4520else
4521 echo "$as_me: failed program was:" >&5
4522sed 's/^/| /' conftest.$ac_ext >&5
4523
4524 CXXFLAGS="$save_CXXFLAGS"
4525fi
4526
4527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4528 else
4529 CXXFLAGS="$CXXFLAGS -w"
4530 fi
4531fi
4532
4496# Check whether --enable-unicode3 was given. 4533# Check whether --enable-unicode3 was given.
4497if test "${enable_unicode3+set}" = set; then 4534if test "${enable_unicode3+set}" = set; then
4498 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then 4535 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then
4499 support_unicode3=$enableval 4536 support_unicode3=$enableval
4500 fi 4537 fi
4585 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
5345
5346
5347for ac_header in sys/inotify.h sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h sys/eventfd.h sys/signalfd.h
5348do
5349as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5350if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5351 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5352echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5353if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
5355fi
5356ac_res=`eval echo '${'$as_ac_Header'}'`
5357 { echo "$as_me:$LINENO: result: $ac_res" >&5
5358echo "${ECHO_T}$ac_res" >&6; }
5359else
5360 # Is the header compilable?
5361{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5362echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5363cat >conftest.$ac_ext <<_ACEOF
5364/* confdefs.h. */
5365_ACEOF
5366cat confdefs.h >>conftest.$ac_ext
5367cat >>conftest.$ac_ext <<_ACEOF
5368/* end confdefs.h. */
5369$ac_includes_default
5370#include <$ac_header>
5371_ACEOF
5372rm -f conftest.$ac_objext
5373if { (ac_try="$ac_compile"
5374case "(($ac_try" in
5375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5376 *) ac_try_echo=$ac_try;;
5377esac
5378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5379 (eval "$ac_compile") 2>conftest.er1
5380 ac_status=$?
5381 grep -v '^ *+' conftest.er1 >conftest.err
5382 rm -f conftest.er1
5383 cat conftest.err >&5
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); } && {
5386 test -z "$ac_cxx_werror_flag" ||
5387 test ! -s conftest.err
5388 } && test -s conftest.$ac_objext; then
5389 ac_header_compiler=yes
5390else
5391 echo "$as_me: failed program was:" >&5
5392sed 's/^/| /' conftest.$ac_ext >&5
5393
5394 ac_header_compiler=no
5395fi
5396
5397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5398{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5399echo "${ECHO_T}$ac_header_compiler" >&6; }
5400
5401# Is the header present?
5402{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5403echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5404cat >conftest.$ac_ext <<_ACEOF
5405/* confdefs.h. */
5406_ACEOF
5407cat confdefs.h >>conftest.$ac_ext
5408cat >>conftest.$ac_ext <<_ACEOF
5409/* end confdefs.h. */
5410#include <$ac_header>
5411_ACEOF
5412if { (ac_try="$ac_cpp conftest.$ac_ext"
5413case "(($ac_try" in
5414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5415 *) ac_try_echo=$ac_try;;
5416esac
5417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5419 ac_status=$?
5420 grep -v '^ *+' conftest.er1 >conftest.err
5421 rm -f conftest.er1
5422 cat conftest.err >&5
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); } >/dev/null && {
5425 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5426 test ! -s conftest.err
5427 }; then
5428 ac_header_preproc=yes
5429else
5430 echo "$as_me: failed program was:" >&5
5431sed 's/^/| /' conftest.$ac_ext >&5
5432
5433 ac_header_preproc=no
5434fi
5435
5436rm -f conftest.err conftest.$ac_ext
5437{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5438echo "${ECHO_T}$ac_header_preproc" >&6; }
5439
5440# So? What about this header?
5441case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5442 yes:no: )
5443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5444echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5446echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5447 ac_header_preproc=yes
5448 ;;
5449 no:yes:* )
5450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5451echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5453echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5454 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5455echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5456 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5457echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5459echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5461echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5462
5463 ;;
5464esac
5465{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5466echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5467if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5468 echo $ECHO_N "(cached) $ECHO_C" >&6
5469else
5470 eval "$as_ac_Header=\$ac_header_preproc"
5471fi
5472ac_res=`eval echo '${'$as_ac_Header'}'`
5473 { echo "$as_me:$LINENO: result: $ac_res" >&5
5474echo "${ECHO_T}$ac_res" >&6; }
5475
5476fi
5477if test `eval echo '${'$as_ac_Header'}'` = yes; then
5478 cat >>confdefs.h <<_ACEOF
5479#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5480_ACEOF
5481
5482fi
5483
5484done
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd signalfd
5496do
5497as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5498{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5499echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5500if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5501 echo $ECHO_N "(cached) $ECHO_C" >&6
5502else
5503 cat >conftest.$ac_ext <<_ACEOF
5504/* confdefs.h. */
5505_ACEOF
5506cat confdefs.h >>conftest.$ac_ext
5507cat >>conftest.$ac_ext <<_ACEOF
5508/* end confdefs.h. */
5509/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5511#define $ac_func innocuous_$ac_func
5512
5513/* System header to define __stub macros and hopefully few prototypes,
5514 which can conflict with char $ac_func (); below.
5515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5516 <limits.h> exists even on freestanding compilers. */
5517
5518#ifdef __STDC__
5519# include <limits.h>
5520#else
5521# include <assert.h>
5522#endif
5523
5524#undef $ac_func
5525
5526/* Override any GCC internal prototype to avoid an error.
5527 Use char because int might match the return type of a GCC
5528 builtin and then its argument prototype would still apply. */
5529#ifdef __cplusplus
5530extern "C"
5531#endif
5532char $ac_func ();
5533/* The GNU C library defines this for functions which it implements
5534 to always fail with ENOSYS. Some functions are actually named
5535 something starting with __ and the normal name is an alias. */
5536#if defined __stub_$ac_func || defined __stub___$ac_func
5537choke me
5538#endif
5539
5540int
5541main ()
5542{
5543return $ac_func ();
5544 ;
5545 return 0;
5546}
5547_ACEOF
5548rm -f conftest.$ac_objext conftest$ac_exeext
5549if { (ac_try="$ac_link"
5550case "(($ac_try" in
5551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5552 *) ac_try_echo=$ac_try;;
5553esac
5554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5555 (eval "$ac_link") 2>conftest.er1
5556 ac_status=$?
5557 grep -v '^ *+' conftest.er1 >conftest.err
5558 rm -f conftest.er1
5559 cat conftest.err >&5
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); } && {
5562 test -z "$ac_cxx_werror_flag" ||
5563 test ! -s conftest.err
5564 } && test -s conftest$ac_exeext &&
5565 $as_test_x conftest$ac_exeext; then
5566 eval "$as_ac_var=yes"
5567else
5568 echo "$as_me: failed program was:" >&5
5569sed 's/^/| /' conftest.$ac_ext >&5
5570
5571 eval "$as_ac_var=no"
5572fi
5573
5574rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5575 conftest$ac_exeext conftest.$ac_ext
5576fi
5577ac_res=`eval echo '${'$as_ac_var'}'`
5578 { echo "$as_me:$LINENO: result: $ac_res" >&5
5579echo "${ECHO_T}$ac_res" >&6; }
5580if test `eval echo '${'$as_ac_var'}'` = yes; then
5581 cat >>confdefs.h <<_ACEOF
5582#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5583_ACEOF
5584
5585fi
5586done
5587
5588
5589{ echo "$as_me:$LINENO: checking for clock_gettime" >&5
5590echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6; }
5591if test "${ac_cv_func_clock_gettime+set}" = set; then
5592 echo $ECHO_N "(cached) $ECHO_C" >&6
5593else
5594 cat >conftest.$ac_ext <<_ACEOF
5595/* confdefs.h. */
5596_ACEOF
5597cat confdefs.h >>conftest.$ac_ext
5598cat >>conftest.$ac_ext <<_ACEOF
5599/* end confdefs.h. */
5600/* Define clock_gettime to an innocuous variant, in case <limits.h> declares clock_gettime.
5601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5602#define clock_gettime innocuous_clock_gettime
5603
5604/* System header to define __stub macros and hopefully few prototypes,
5605 which can conflict with char clock_gettime (); below.
5606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5607 <limits.h> exists even on freestanding compilers. */
5608
5609#ifdef __STDC__
5610# include <limits.h>
5611#else
5612# include <assert.h>
5613#endif
5614
5615#undef clock_gettime
5616
5617/* Override any GCC internal prototype to avoid an error.
5618 Use char because int might match the return type of a GCC
5619 builtin and then its argument prototype would still apply. */
5620#ifdef __cplusplus
5621extern "C"
5622#endif
5623char clock_gettime ();
5624/* The GNU C library defines this for functions which it implements
5625 to always fail with ENOSYS. Some functions are actually named
5626 something starting with __ and the normal name is an alias. */
5627#if defined __stub_clock_gettime || defined __stub___clock_gettime
5628choke me
5629#endif
5630
5631int
5632main ()
5633{
5634return clock_gettime ();
5635 ;
5636 return 0;
5637}
5638_ACEOF
5639rm -f conftest.$ac_objext conftest$ac_exeext
5640if { (ac_try="$ac_link"
5641case "(($ac_try" in
5642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5643 *) ac_try_echo=$ac_try;;
5644esac
5645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5646 (eval "$ac_link") 2>conftest.er1
5647 ac_status=$?
5648 grep -v '^ *+' conftest.er1 >conftest.err
5649 rm -f conftest.er1
5650 cat conftest.err >&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); } && {
5653 test -z "$ac_cxx_werror_flag" ||
5654 test ! -s conftest.err
5655 } && test -s conftest$ac_exeext &&
5656 $as_test_x conftest$ac_exeext; then
5657 ac_cv_func_clock_gettime=yes
5658else
5659 echo "$as_me: failed program was:" >&5
5660sed 's/^/| /' conftest.$ac_ext >&5
5661
5662 ac_cv_func_clock_gettime=no
5663fi
5664
5665rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5666 conftest$ac_exeext conftest.$ac_ext
5667fi
5668{ echo "$as_me:$LINENO: result: $ac_cv_func_clock_gettime" >&5
5669echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; }
5670if test $ac_cv_func_clock_gettime = yes; then
5671 :
5672else
5673
5674 if test $(uname) = Linux; then
5675 { echo "$as_me:$LINENO: checking for clock_gettime syscall" >&5
5676echo $ECHO_N "checking for clock_gettime syscall... $ECHO_C" >&6; }
5677 cat >conftest.$ac_ext <<_ACEOF
5678/* confdefs.h. */
5679_ACEOF
5680cat confdefs.h >>conftest.$ac_ext
5681cat >>conftest.$ac_ext <<_ACEOF
5682/* end confdefs.h. */
5683#include <syscall.h>
5684 #include <time.h>
5685int
5686main ()
5687{
5688struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts)
5689 ;
5690 return 0;
5691}
5692_ACEOF
5693rm -f conftest.$ac_objext conftest$ac_exeext
5694if { (ac_try="$ac_link"
5695case "(($ac_try" in
5696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5697 *) ac_try_echo=$ac_try;;
5698esac
5699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5700 (eval "$ac_link") 2>conftest.er1
5701 ac_status=$?
5702 grep -v '^ *+' conftest.er1 >conftest.err
5703 rm -f conftest.er1
5704 cat conftest.err >&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); } && {
5707 test -z "$ac_cxx_werror_flag" ||
5708 test ! -s conftest.err
5709 } && test -s conftest$ac_exeext &&
5710 $as_test_x conftest$ac_exeext; then
5711 ac_have_clock_syscall=1
5712
5713cat >>confdefs.h <<\_ACEOF
5714#define HAVE_CLOCK_SYSCALL 1
5715_ACEOF
5716
5717 { echo "$as_me:$LINENO: result: yes" >&5
5718echo "${ECHO_T}yes" >&6; }
5719else
5720 echo "$as_me: failed program was:" >&5
5721sed 's/^/| /' conftest.$ac_ext >&5
5722
5723 { echo "$as_me:$LINENO: result: no" >&5
5724echo "${ECHO_T}no" >&6; }
5725fi
5726
5727rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5728 conftest$ac_exeext conftest.$ac_ext
5729 fi
5730 if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then
5731
5732{ echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
5733echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
5734if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5736else
5737 ac_check_lib_save_LIBS=$LIBS
5738LIBS="-lrt $LIBS"
5739cat >conftest.$ac_ext <<_ACEOF
5740/* confdefs.h. */
5741_ACEOF
5742cat confdefs.h >>conftest.$ac_ext
5743cat >>conftest.$ac_ext <<_ACEOF
5744/* end confdefs.h. */
5745
5746/* Override any GCC internal prototype to avoid an error.
5747 Use char because int might match the return type of a GCC
5748 builtin and then its argument prototype would still apply. */
5749#ifdef __cplusplus
5750extern "C"
5751#endif
5752char clock_gettime ();
5753int
5754main ()
5755{
5756return clock_gettime ();
5757 ;
5758 return 0;
5759}
5760_ACEOF
5761rm -f conftest.$ac_objext conftest$ac_exeext
5762if { (ac_try="$ac_link"
5763case "(($ac_try" in
5764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765 *) ac_try_echo=$ac_try;;
5766esac
5767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5768 (eval "$ac_link") 2>conftest.er1
5769 ac_status=$?
5770 grep -v '^ *+' conftest.er1 >conftest.err
5771 rm -f conftest.er1
5772 cat conftest.err >&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); } && {
5775 test -z "$ac_cxx_werror_flag" ||
5776 test ! -s conftest.err
5777 } && test -s conftest$ac_exeext &&
5778 $as_test_x conftest$ac_exeext; then
5779 ac_cv_lib_rt_clock_gettime=yes
5780else
5781 echo "$as_me: failed program was:" >&5
5782sed 's/^/| /' conftest.$ac_ext >&5
5783
5784 ac_cv_lib_rt_clock_gettime=no
5785fi
5786
5787rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5788 conftest$ac_exeext conftest.$ac_ext
5789LIBS=$ac_check_lib_save_LIBS
5790fi
5791{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
5792echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
5793if test $ac_cv_lib_rt_clock_gettime = yes; then
5794 cat >>confdefs.h <<_ACEOF
5795#define HAVE_LIBRT 1
5796_ACEOF
5797
5798 LIBS="-lrt $LIBS"
5799
5800fi
5801
5802 unset ac_cv_func_clock_gettime
5803
5804for ac_func in clock_gettime
5805do
5806as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5807{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5808echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5809if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5810 echo $ECHO_N "(cached) $ECHO_C" >&6
5811else
5812 cat >conftest.$ac_ext <<_ACEOF
5813/* confdefs.h. */
5814_ACEOF
5815cat confdefs.h >>conftest.$ac_ext
5816cat >>conftest.$ac_ext <<_ACEOF
5817/* end confdefs.h. */
5818/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5820#define $ac_func innocuous_$ac_func
5821
5822/* System header to define __stub macros and hopefully few prototypes,
5823 which can conflict with char $ac_func (); below.
5824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5825 <limits.h> exists even on freestanding compilers. */
5826
5827#ifdef __STDC__
5828# include <limits.h>
5829#else
5830# include <assert.h>
5831#endif
5832
5833#undef $ac_func
5834
5835/* Override any GCC internal prototype to avoid an error.
5836 Use char because int might match the return type of a GCC
5837 builtin and then its argument prototype would still apply. */
5838#ifdef __cplusplus
5839extern "C"
5840#endif
5841char $ac_func ();
5842/* The GNU C library defines this for functions which it implements
5843 to always fail with ENOSYS. Some functions are actually named
5844 something starting with __ and the normal name is an alias. */
5845#if defined __stub_$ac_func || defined __stub___$ac_func
5846choke me
5847#endif
5848
5849int
5850main ()
5851{
5852return $ac_func ();
5853 ;
5854 return 0;
5855}
5856_ACEOF
5857rm -f conftest.$ac_objext conftest$ac_exeext
5858if { (ac_try="$ac_link"
5859case "(($ac_try" in
5860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5861 *) ac_try_echo=$ac_try;;
5862esac
5863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5864 (eval "$ac_link") 2>conftest.er1
5865 ac_status=$?
5866 grep -v '^ *+' conftest.er1 >conftest.err
5867 rm -f conftest.er1
5868 cat conftest.err >&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); } && {
5871 test -z "$ac_cxx_werror_flag" ||
5872 test ! -s conftest.err
5873 } && test -s conftest$ac_exeext &&
5874 $as_test_x conftest$ac_exeext; then
5875 eval "$as_ac_var=yes"
5876else
5877 echo "$as_me: failed program was:" >&5
5878sed 's/^/| /' conftest.$ac_ext >&5
5879
5880 eval "$as_ac_var=no"
5881fi
5882
5883rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5884 conftest$ac_exeext conftest.$ac_ext
5885fi
5886ac_res=`eval echo '${'$as_ac_var'}'`
5887 { echo "$as_me:$LINENO: result: $ac_res" >&5
5888echo "${ECHO_T}$ac_res" >&6; }
5889if test `eval echo '${'$as_ac_var'}'` = yes; then
5890 cat >>confdefs.h <<_ACEOF
5891#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5892_ACEOF
5893
5894fi
5895done
5896
5897 fi
5898
5899fi
5900
5901
5902{ echo "$as_me:$LINENO: checking for nanosleep" >&5
5903echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; }
5904if test "${ac_cv_func_nanosleep+set}" = set; then
5905 echo $ECHO_N "(cached) $ECHO_C" >&6
5906else
5907 cat >conftest.$ac_ext <<_ACEOF
5908/* confdefs.h. */
5909_ACEOF
5910cat confdefs.h >>conftest.$ac_ext
5911cat >>conftest.$ac_ext <<_ACEOF
5912/* end confdefs.h. */
5913/* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep.
5914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5915#define nanosleep innocuous_nanosleep
5916
5917/* System header to define __stub macros and hopefully few prototypes,
5918 which can conflict with char nanosleep (); below.
5919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5920 <limits.h> exists even on freestanding compilers. */
5921
5922#ifdef __STDC__
5923# include <limits.h>
5924#else
5925# include <assert.h>
5926#endif
5927
5928#undef nanosleep
5929
5930/* Override any GCC internal prototype to avoid an error.
5931 Use char because int might match the return type of a GCC
5932 builtin and then its argument prototype would still apply. */
5933#ifdef __cplusplus
5934extern "C"
5935#endif
5936char nanosleep ();
5937/* The GNU C library defines this for functions which it implements
5938 to always fail with ENOSYS. Some functions are actually named
5939 something starting with __ and the normal name is an alias. */
5940#if defined __stub_nanosleep || defined __stub___nanosleep
5941choke me
5942#endif
5943
5944int
5945main ()
5946{
5947return nanosleep ();
5948 ;
5949 return 0;
5950}
5951_ACEOF
5952rm -f conftest.$ac_objext conftest$ac_exeext
5953if { (ac_try="$ac_link"
5954case "(($ac_try" in
5955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5956 *) ac_try_echo=$ac_try;;
5957esac
5958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5959 (eval "$ac_link") 2>conftest.er1
5960 ac_status=$?
5961 grep -v '^ *+' conftest.er1 >conftest.err
5962 rm -f conftest.er1
5963 cat conftest.err >&5
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); } && {
5966 test -z "$ac_cxx_werror_flag" ||
5967 test ! -s conftest.err
5968 } && test -s conftest$ac_exeext &&
5969 $as_test_x conftest$ac_exeext; then
5970 ac_cv_func_nanosleep=yes
5971else
5972 echo "$as_me: failed program was:" >&5
5973sed 's/^/| /' conftest.$ac_ext >&5
5974
5975 ac_cv_func_nanosleep=no
5976fi
5977
5978rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5979 conftest$ac_exeext conftest.$ac_ext
5980fi
5981{ echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5
5982echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; }
5983if test $ac_cv_func_nanosleep = yes; then
5984 :
5985else
5986
5987 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
5988
5989{ echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
5990echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; }
5991if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
5992 echo $ECHO_N "(cached) $ECHO_C" >&6
5993else
5994 ac_check_lib_save_LIBS=$LIBS
5995LIBS="-lrt $LIBS"
5996cat >conftest.$ac_ext <<_ACEOF
5997/* confdefs.h. */
5998_ACEOF
5999cat confdefs.h >>conftest.$ac_ext
6000cat >>conftest.$ac_ext <<_ACEOF
6001/* end confdefs.h. */
6002
6003/* Override any GCC internal prototype to avoid an error.
6004 Use char because int might match the return type of a GCC
6005 builtin and then its argument prototype would still apply. */
6006#ifdef __cplusplus
6007extern "C"
6008#endif
6009char nanosleep ();
6010int
6011main ()
6012{
6013return nanosleep ();
6014 ;
6015 return 0;
6016}
6017_ACEOF
6018rm -f conftest.$ac_objext conftest$ac_exeext
6019if { (ac_try="$ac_link"
6020case "(($ac_try" in
6021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6022 *) ac_try_echo=$ac_try;;
6023esac
6024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6025 (eval "$ac_link") 2>conftest.er1
6026 ac_status=$?
6027 grep -v '^ *+' conftest.er1 >conftest.err
6028 rm -f conftest.er1
6029 cat conftest.err >&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); } && {
6032 test -z "$ac_cxx_werror_flag" ||
6033 test ! -s conftest.err
6034 } && test -s conftest$ac_exeext &&
6035 $as_test_x conftest$ac_exeext; then
6036 ac_cv_lib_rt_nanosleep=yes
6037else
6038 echo "$as_me: failed program was:" >&5
6039sed 's/^/| /' conftest.$ac_ext >&5
6040
6041 ac_cv_lib_rt_nanosleep=no
6042fi
6043
6044rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6045 conftest$ac_exeext conftest.$ac_ext
6046LIBS=$ac_check_lib_save_LIBS
6047fi
6048{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
6049echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; }
6050if test $ac_cv_lib_rt_nanosleep = yes; then
6051 cat >>confdefs.h <<_ACEOF
6052#define HAVE_LIBRT 1
6053_ACEOF
6054
6055 LIBS="-lrt $LIBS"
6056
6057fi
6058
6059 unset ac_cv_func_nanosleep
6060
6061for ac_func in nanosleep
6062do
6063as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6064{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6065echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6066if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6067 echo $ECHO_N "(cached) $ECHO_C" >&6
6068else
6069 cat >conftest.$ac_ext <<_ACEOF
6070/* confdefs.h. */
6071_ACEOF
6072cat confdefs.h >>conftest.$ac_ext
6073cat >>conftest.$ac_ext <<_ACEOF
6074/* end confdefs.h. */
6075/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6077#define $ac_func innocuous_$ac_func
6078
6079/* System header to define __stub macros and hopefully few prototypes,
6080 which can conflict with char $ac_func (); below.
6081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6082 <limits.h> exists even on freestanding compilers. */
6083
6084#ifdef __STDC__
6085# include <limits.h>
6086#else
6087# include <assert.h>
6088#endif
6089
6090#undef $ac_func
6091
6092/* Override any GCC internal prototype to avoid an error.
6093 Use char because int might match the return type of a GCC
6094 builtin and then its argument prototype would still apply. */
6095#ifdef __cplusplus
6096extern "C"
6097#endif
6098char $ac_func ();
6099/* The GNU C library defines this for functions which it implements
6100 to always fail with ENOSYS. Some functions are actually named
6101 something starting with __ and the normal name is an alias. */
6102#if defined __stub_$ac_func || defined __stub___$ac_func
6103choke me
6104#endif
6105
6106int
6107main ()
6108{
6109return $ac_func ();
6110 ;
6111 return 0;
6112}
6113_ACEOF
6114rm -f conftest.$ac_objext conftest$ac_exeext
6115if { (ac_try="$ac_link"
6116case "(($ac_try" in
6117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6118 *) ac_try_echo=$ac_try;;
6119esac
6120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6121 (eval "$ac_link") 2>conftest.er1
6122 ac_status=$?
6123 grep -v '^ *+' conftest.er1 >conftest.err
6124 rm -f conftest.er1
6125 cat conftest.err >&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); } && {
6128 test -z "$ac_cxx_werror_flag" ||
6129 test ! -s conftest.err
6130 } && test -s conftest$ac_exeext &&
6131 $as_test_x conftest$ac_exeext; then
6132 eval "$as_ac_var=yes"
6133else
6134 echo "$as_me: failed program was:" >&5
6135sed 's/^/| /' conftest.$ac_ext >&5
6136
6137 eval "$as_ac_var=no"
6138fi
6139
6140rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6141 conftest$ac_exeext conftest.$ac_ext
6142fi
6143ac_res=`eval echo '${'$as_ac_var'}'`
6144 { echo "$as_me:$LINENO: result: $ac_res" >&5
6145echo "${ECHO_T}$ac_res" >&6; }
6146if test `eval echo '${'$as_ac_var'}'` = yes; then
6147 cat >>confdefs.h <<_ACEOF
6148#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6149_ACEOF
6150
6151fi
6152done
6153
6154 fi
6155
6156fi
6157
6158
6159
6160{ echo "$as_me:$LINENO: checking for ceil in -lm" >&5
6161echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; }
6162if test "${ac_cv_lib_m_ceil+set}" = set; then
6163 echo $ECHO_N "(cached) $ECHO_C" >&6
6164else
6165 ac_check_lib_save_LIBS=$LIBS
6166LIBS="-lm $LIBS"
6167cat >conftest.$ac_ext <<_ACEOF
6168/* confdefs.h. */
6169_ACEOF
6170cat confdefs.h >>conftest.$ac_ext
6171cat >>conftest.$ac_ext <<_ACEOF
6172/* end confdefs.h. */
6173
6174/* Override any GCC internal prototype to avoid an error.
6175 Use char because int might match the return type of a GCC
6176 builtin and then its argument prototype would still apply. */
6177#ifdef __cplusplus
6178extern "C"
6179#endif
6180char ceil ();
6181int
6182main ()
6183{
6184return ceil ();
6185 ;
6186 return 0;
6187}
6188_ACEOF
6189rm -f conftest.$ac_objext conftest$ac_exeext
6190if { (ac_try="$ac_link"
6191case "(($ac_try" in
6192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6193 *) ac_try_echo=$ac_try;;
6194esac
6195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6196 (eval "$ac_link") 2>conftest.er1
6197 ac_status=$?
6198 grep -v '^ *+' conftest.er1 >conftest.err
6199 rm -f conftest.er1
6200 cat conftest.err >&5
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); } && {
6203 test -z "$ac_cxx_werror_flag" ||
6204 test ! -s conftest.err
6205 } && test -s conftest$ac_exeext &&
6206 $as_test_x conftest$ac_exeext; then
6207 ac_cv_lib_m_ceil=yes
6208else
6209 echo "$as_me: failed program was:" >&5
6210sed 's/^/| /' conftest.$ac_ext >&5
6211
6212 ac_cv_lib_m_ceil=no
6213fi
6214
6215rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6216 conftest$ac_exeext conftest.$ac_ext
6217LIBS=$ac_check_lib_save_LIBS
6218fi
6219{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5
6220echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6; }
6221if test $ac_cv_lib_m_ceil = yes; then
6222 cat >>confdefs.h <<_ACEOF
6223#define HAVE_LIBM 1
6224_ACEOF
6225
6226 LIBS="-lm $LIBS"
6227
6228fi
6229
6230
4834 6231
4835 6232
4836 6233
4837# Extract the first word of "tic", so it can be a program name with args. 6234# Extract the first word of "tic", so it can be a program name with args.
4838set dummy tic; ac_word=$2 6235set dummy tic; ac_word=$2
4872else 6269else
4873 { echo "$as_me:$LINENO: result: no" >&5 6270 { echo "$as_me:$LINENO: result: no" >&5
4874echo "${ECHO_T}no" >&6; } 6271echo "${ECHO_T}no" >&6; }
4875fi 6272fi
4876 6273
4877
4878
4879
4880
4881ac_ext=cpp
4882ac_cpp='$CXXCPP $CPPFLAGS'
4883ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4884ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4885ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4886{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4887echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4888if test -z "$CXXCPP"; then
4889 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4890 echo $ECHO_N "(cached) $ECHO_C" >&6
4891else
4892 # Double quotes because CXXCPP needs to be expanded
4893 for CXXCPP in "$CXX -E" "/lib/cpp"
4894 do
4895 ac_preproc_ok=false
4896for ac_cxx_preproc_warn_flag in '' yes
4897do
4898 # Use a header file that comes with gcc, so configuring glibc
4899 # with a fresh cross-compiler works.
4900 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4901 # <limits.h> exists even on freestanding compilers.
4902 # On the NeXT, cc -E runs the code through the compiler's parser,
4903 # not just through cpp. "Syntax error" is here to catch this case.
4904 cat >conftest.$ac_ext <<_ACEOF
4905/* confdefs.h. */
4906_ACEOF
4907cat confdefs.h >>conftest.$ac_ext
4908cat >>conftest.$ac_ext <<_ACEOF
4909/* end confdefs.h. */
4910#ifdef __STDC__
4911# include <limits.h>
4912#else
4913# include <assert.h>
4914#endif
4915 Syntax error
4916_ACEOF
4917if { (ac_try="$ac_cpp conftest.$ac_ext"
4918case "(($ac_try" in
4919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4920 *) ac_try_echo=$ac_try;;
4921esac
4922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4924 ac_status=$?
4925 grep -v '^ *+' conftest.er1 >conftest.err
4926 rm -f conftest.er1
4927 cat conftest.err >&5
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); } >/dev/null && {
4930 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4931 test ! -s conftest.err
4932 }; then
4933 :
4934else
4935 echo "$as_me: failed program was:" >&5
4936sed 's/^/| /' conftest.$ac_ext >&5
4937
4938 # Broken: fails on valid input.
4939continue
4940fi
4941
4942rm -f conftest.err conftest.$ac_ext
4943
4944 # OK, works on sane cases. Now check whether nonexistent headers
4945 # can be detected and how.
4946 cat >conftest.$ac_ext <<_ACEOF
4947/* confdefs.h. */
4948_ACEOF
4949cat confdefs.h >>conftest.$ac_ext
4950cat >>conftest.$ac_ext <<_ACEOF
4951/* end confdefs.h. */
4952#include <ac_nonexistent.h>
4953_ACEOF
4954if { (ac_try="$ac_cpp conftest.$ac_ext"
4955case "(($ac_try" in
4956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4957 *) ac_try_echo=$ac_try;;
4958esac
4959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4961 ac_status=$?
4962 grep -v '^ *+' conftest.er1 >conftest.err
4963 rm -f conftest.er1
4964 cat conftest.err >&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } >/dev/null && {
4967 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4968 test ! -s conftest.err
4969 }; then
4970 # Broken: success on invalid input.
4971continue
4972else
4973 echo "$as_me: failed program was:" >&5
4974sed 's/^/| /' conftest.$ac_ext >&5
4975
4976 # Passes both tests.
4977ac_preproc_ok=:
4978break
4979fi
4980
4981rm -f conftest.err conftest.$ac_ext
4982
4983done
4984# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4985rm -f conftest.err conftest.$ac_ext
4986if $ac_preproc_ok; then
4987 break
4988fi
4989
4990 done
4991 ac_cv_prog_CXXCPP=$CXXCPP
4992
4993fi
4994 CXXCPP=$ac_cv_prog_CXXCPP
4995else
4996 ac_cv_prog_CXXCPP=$CXXCPP
4997fi
4998{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
4999echo "${ECHO_T}$CXXCPP" >&6; }
5000ac_preproc_ok=false
5001for ac_cxx_preproc_warn_flag in '' yes
5002do
5003 # Use a header file that comes with gcc, so configuring glibc
5004 # with a fresh cross-compiler works.
5005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5006 # <limits.h> exists even on freestanding compilers.
5007 # On the NeXT, cc -E runs the code through the compiler's parser,
5008 # not just through cpp. "Syntax error" is here to catch this case.
5009 cat >conftest.$ac_ext <<_ACEOF
5010/* confdefs.h. */
5011_ACEOF
5012cat confdefs.h >>conftest.$ac_ext
5013cat >>conftest.$ac_ext <<_ACEOF
5014/* end confdefs.h. */
5015#ifdef __STDC__
5016# include <limits.h>
5017#else
5018# include <assert.h>
5019#endif
5020 Syntax error
5021_ACEOF
5022if { (ac_try="$ac_cpp conftest.$ac_ext"
5023case "(($ac_try" in
5024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5025 *) ac_try_echo=$ac_try;;
5026esac
5027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5029 ac_status=$?
5030 grep -v '^ *+' conftest.er1 >conftest.err
5031 rm -f conftest.er1
5032 cat conftest.err >&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); } >/dev/null && {
5035 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5036 test ! -s conftest.err
5037 }; then
5038 :
5039else
5040 echo "$as_me: failed program was:" >&5
5041sed 's/^/| /' conftest.$ac_ext >&5
5042
5043 # Broken: fails on valid input.
5044continue
5045fi
5046
5047rm -f conftest.err conftest.$ac_ext
5048
5049 # OK, works on sane cases. Now check whether nonexistent headers
5050 # can be detected and how.
5051 cat >conftest.$ac_ext <<_ACEOF
5052/* confdefs.h. */
5053_ACEOF
5054cat confdefs.h >>conftest.$ac_ext
5055cat >>conftest.$ac_ext <<_ACEOF
5056/* end confdefs.h. */
5057#include <ac_nonexistent.h>
5058_ACEOF
5059if { (ac_try="$ac_cpp conftest.$ac_ext"
5060case "(($ac_try" in
5061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062 *) ac_try_echo=$ac_try;;
5063esac
5064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5066 ac_status=$?
5067 grep -v '^ *+' conftest.er1 >conftest.err
5068 rm -f conftest.er1
5069 cat conftest.err >&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); } >/dev/null && {
5072 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5073 test ! -s conftest.err
5074 }; then
5075 # Broken: success on invalid input.
5076continue
5077else
5078 echo "$as_me: failed program was:" >&5
5079sed 's/^/| /' conftest.$ac_ext >&5
5080
5081 # Passes both tests.
5082ac_preproc_ok=:
5083break
5084fi
5085
5086rm -f conftest.err conftest.$ac_ext
5087
5088done
5089# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5090rm -f conftest.err conftest.$ac_ext
5091if $ac_preproc_ok; then
5092 :
5093else
5094 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5095See \`config.log' for more details." >&5
5096echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5097See \`config.log' for more details." >&2;}
5098 { (exit 1); exit 1; }; }
5099fi
5100
5101ac_ext=cpp
5102ac_cpp='$CXXCPP $CPPFLAGS'
5103ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5104ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5106 6274
5107 6275
5108{ echo "$as_me:$LINENO: checking for X" >&5 6276{ echo "$as_me:$LINENO: checking for X" >&5
5109echo $ECHO_N "checking for X... $ECHO_C" >&6; } 6277echo $ECHO_N "checking for X... $ECHO_C" >&6; }
5110 6278
6496echo "${ECHO_T}no" >&6; } 7664echo "${ECHO_T}no" >&6; }
6497 fi 7665 fi
6498 fi 7666 fi
6499fi 7667fi
6500 7668
6501{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6502echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6503if test "${ac_cv_header_sys_wait_h+set}" = set; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6505else
6506 cat >conftest.$ac_ext <<_ACEOF
6507/* confdefs.h. */
6508_ACEOF
6509cat confdefs.h >>conftest.$ac_ext
6510cat >>conftest.$ac_ext <<_ACEOF
6511/* end confdefs.h. */
6512#include <sys/types.h>
6513#include <sys/wait.h>
6514#ifndef WEXITSTATUS
6515# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6516#endif
6517#ifndef WIFEXITED
6518# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6519#endif
6520
6521int
6522main ()
6523{
6524 int s;
6525 wait (&s);
6526 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6527 ;
6528 return 0;
6529}
6530_ACEOF
6531rm -f conftest.$ac_objext
6532if { (ac_try="$ac_compile"
6533case "(($ac_try" in
6534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6535 *) ac_try_echo=$ac_try;;
6536esac
6537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6538 (eval "$ac_compile") 2>conftest.er1
6539 ac_status=$?
6540 grep -v '^ *+' conftest.er1 >conftest.err
6541 rm -f conftest.er1
6542 cat conftest.err >&5
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); } && {
6545 test -z "$ac_cxx_werror_flag" ||
6546 test ! -s conftest.err
6547 } && test -s conftest.$ac_objext; then
6548 ac_cv_header_sys_wait_h=yes
6549else
6550 echo "$as_me: failed program was:" >&5
6551sed 's/^/| /' conftest.$ac_ext >&5
6552
6553 ac_cv_header_sys_wait_h=no
6554fi
6555
6556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6557fi
6558{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6559echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6560if test $ac_cv_header_sys_wait_h = yes; then
6561
6562cat >>confdefs.h <<\_ACEOF
6563#define HAVE_SYS_WAIT_H 1
6564_ACEOF
6565
6566fi
6567
6568{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6569echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6570if test "${ac_cv_header_stdc+set}" = set; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6572else
6573 cat >conftest.$ac_ext <<_ACEOF
6574/* confdefs.h. */
6575_ACEOF
6576cat confdefs.h >>conftest.$ac_ext
6577cat >>conftest.$ac_ext <<_ACEOF
6578/* end confdefs.h. */
6579#include <stdlib.h>
6580#include <stdarg.h>
6581#include <string.h>
6582#include <float.h>
6583
6584int
6585main ()
6586{
6587
6588 ;
6589 return 0;
6590}
6591_ACEOF
6592rm -f conftest.$ac_objext
6593if { (ac_try="$ac_compile"
6594case "(($ac_try" in
6595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6596 *) ac_try_echo=$ac_try;;
6597esac
6598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6599 (eval "$ac_compile") 2>conftest.er1
6600 ac_status=$?
6601 grep -v '^ *+' conftest.er1 >conftest.err
6602 rm -f conftest.er1
6603 cat conftest.err >&5
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); } && {
6606 test -z "$ac_cxx_werror_flag" ||
6607 test ! -s conftest.err
6608 } && test -s conftest.$ac_objext; then
6609 ac_cv_header_stdc=yes
6610else
6611 echo "$as_me: failed program was:" >&5
6612sed 's/^/| /' conftest.$ac_ext >&5
6613
6614 ac_cv_header_stdc=no
6615fi
6616
6617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6618
6619if test $ac_cv_header_stdc = yes; then
6620 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6621 cat >conftest.$ac_ext <<_ACEOF
6622/* confdefs.h. */
6623_ACEOF
6624cat confdefs.h >>conftest.$ac_ext
6625cat >>conftest.$ac_ext <<_ACEOF
6626/* end confdefs.h. */
6627#include <string.h>
6628
6629_ACEOF
6630if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6631 $EGREP "memchr" >/dev/null 2>&1; then
6632 :
6633else
6634 ac_cv_header_stdc=no
6635fi
6636rm -f conftest*
6637
6638fi
6639
6640if test $ac_cv_header_stdc = yes; then
6641 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6642 cat >conftest.$ac_ext <<_ACEOF
6643/* confdefs.h. */
6644_ACEOF
6645cat confdefs.h >>conftest.$ac_ext
6646cat >>conftest.$ac_ext <<_ACEOF
6647/* end confdefs.h. */
6648#include <stdlib.h>
6649
6650_ACEOF
6651if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6652 $EGREP "free" >/dev/null 2>&1; then
6653 :
6654else
6655 ac_cv_header_stdc=no
6656fi
6657rm -f conftest*
6658
6659fi
6660
6661if test $ac_cv_header_stdc = yes; then
6662 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6663 if test "$cross_compiling" = yes; then
6664 :
6665else
6666 cat >conftest.$ac_ext <<_ACEOF
6667/* confdefs.h. */
6668_ACEOF
6669cat confdefs.h >>conftest.$ac_ext
6670cat >>conftest.$ac_ext <<_ACEOF
6671/* end confdefs.h. */
6672#include <ctype.h>
6673#include <stdlib.h>
6674#if ((' ' & 0x0FF) == 0x020)
6675# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6676# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6677#else
6678# define ISLOWER(c) \
6679 (('a' <= (c) && (c) <= 'i') \
6680 || ('j' <= (c) && (c) <= 'r') \
6681 || ('s' <= (c) && (c) <= 'z'))
6682# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6683#endif
6684
6685#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6686int
6687main ()
6688{
6689 int i;
6690 for (i = 0; i < 256; i++)
6691 if (XOR (islower (i), ISLOWER (i))
6692 || toupper (i) != TOUPPER (i))
6693 return 2;
6694 return 0;
6695}
6696_ACEOF
6697rm -f conftest$ac_exeext
6698if { (ac_try="$ac_link"
6699case "(($ac_try" in
6700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6701 *) ac_try_echo=$ac_try;;
6702esac
6703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6704 (eval "$ac_link") 2>&5
6705 ac_status=$?
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6708 { (case "(($ac_try" in
6709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6710 *) ac_try_echo=$ac_try;;
6711esac
6712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6713 (eval "$ac_try") 2>&5
6714 ac_status=$?
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); }; }; then
6717 :
6718else
6719 echo "$as_me: program exited with status $ac_status" >&5
6720echo "$as_me: failed program was:" >&5
6721sed 's/^/| /' conftest.$ac_ext >&5
6722
6723( exit $ac_status )
6724ac_cv_header_stdc=no
6725fi
6726rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6727fi
6728
6729
6730fi
6731fi
6732{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6733echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6734if test $ac_cv_header_stdc = yes; then
6735
6736cat >>confdefs.h <<\_ACEOF
6737#define STDC_HEADERS 1
6738_ACEOF
6739
6740fi
6741
6742# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6753 inttypes.h stdint.h unistd.h
6754do
6755as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6756{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6757echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6758if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6759 echo $ECHO_N "(cached) $ECHO_C" >&6
6760else
6761 cat >conftest.$ac_ext <<_ACEOF
6762/* confdefs.h. */
6763_ACEOF
6764cat confdefs.h >>conftest.$ac_ext
6765cat >>conftest.$ac_ext <<_ACEOF
6766/* end confdefs.h. */
6767$ac_includes_default
6768
6769#include <$ac_header>
6770_ACEOF
6771rm -f conftest.$ac_objext
6772if { (ac_try="$ac_compile"
6773case "(($ac_try" in
6774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6775 *) ac_try_echo=$ac_try;;
6776esac
6777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6778 (eval "$ac_compile") 2>conftest.er1
6779 ac_status=$?
6780 grep -v '^ *+' conftest.er1 >conftest.err
6781 rm -f conftest.er1
6782 cat conftest.err >&5
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); } && {
6785 test -z "$ac_cxx_werror_flag" ||
6786 test ! -s conftest.err
6787 } && test -s conftest.$ac_objext; then
6788 eval "$as_ac_Header=yes"
6789else
6790 echo "$as_me: failed program was:" >&5
6791sed 's/^/| /' conftest.$ac_ext >&5
6792
6793 eval "$as_ac_Header=no"
6794fi
6795
6796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6797fi
6798ac_res=`eval echo '${'$as_ac_Header'}'`
6799 { echo "$as_me:$LINENO: result: $ac_res" >&5
6800echo "${ECHO_T}$ac_res" >&6; }
6801if test `eval echo '${'$as_ac_Header'}'` = yes; then
6802 cat >>confdefs.h <<_ACEOF
6803#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6804_ACEOF
6805
6806fi
6807
6808done
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821 7669
6822 7670
6823 7671
6824 7672
6825 7673
6826 7674
6827 7675
6828for ac_header in \ 7676for ac_header in \
6829 assert.h \
6830 fcntl.h \
6831 stdarg.h \
6832 stdlib.h \
6833 string.h \
6834 termios.h \
6835 unistd.h \
6836 sys/byteorder.h \ 7677 sys/byteorder.h \
6837 sys/ioctl.h \ 7678 sys/ioctl.h \
6838 sys/select.h \
6839 sys/sockio.h \ 7679 sys/sockio.h \
6840 sys/strredir.h \ 7680 sys/strredir.h \
6841 sys/time.h \
6842 stdint.h \ 7681 stdint.h \
6843 wchar.h \ 7682 wchar.h \
6844 cwchar \ 7683 cwchar \
6845 clocale \
6846 7684
6847do 7685do
6848as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7686as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6849if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7687if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6850 { echo "$as_me:$LINENO: checking for $ac_header" >&5 7688 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6981fi 7819fi
6982 7820
6983done 7821done
6984 7822
6985 7823
6986{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6987echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6988if test "${ac_cv_header_time+set}" = set; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6990else
6991 cat >conftest.$ac_ext <<_ACEOF
6992/* confdefs.h. */
6993_ACEOF
6994cat confdefs.h >>conftest.$ac_ext
6995cat >>conftest.$ac_ext <<_ACEOF
6996/* end confdefs.h. */
6997#include <sys/types.h>
6998#include <sys/time.h>
6999#include <time.h>
7000
7001int
7002main ()
7003{
7004if ((struct tm *) 0)
7005return 0;
7006 ;
7007 return 0;
7008}
7009_ACEOF
7010rm -f conftest.$ac_objext
7011if { (ac_try="$ac_compile"
7012case "(($ac_try" in
7013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7014 *) ac_try_echo=$ac_try;;
7015esac
7016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7017 (eval "$ac_compile") 2>conftest.er1
7018 ac_status=$?
7019 grep -v '^ *+' conftest.er1 >conftest.err
7020 rm -f conftest.er1
7021 cat conftest.err >&5
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); } && {
7024 test -z "$ac_cxx_werror_flag" ||
7025 test ! -s conftest.err
7026 } && test -s conftest.$ac_objext; then
7027 ac_cv_header_time=yes
7028else
7029 echo "$as_me: failed program was:" >&5
7030sed 's/^/| /' conftest.$ac_ext >&5
7031
7032 ac_cv_header_time=no
7033fi
7034
7035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7036fi
7037{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7038echo "${ECHO_T}$ac_cv_header_time" >&6; }
7039if test $ac_cv_header_time = yes; then
7040
7041cat >>confdefs.h <<\_ACEOF
7042#define TIME_WITH_SYS_TIME 1
7043_ACEOF
7044
7045fi
7046
7047
7048{ echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5
7049echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; }
7050if test "${rxvt_cv_header_sysioctl+set}" = set; then
7051 echo $ECHO_N "(cached) $ECHO_C" >&6
7052else
7053 cat >conftest.$ac_ext <<_ACEOF
7054/* confdefs.h. */
7055_ACEOF
7056cat confdefs.h >>conftest.$ac_ext
7057cat >>conftest.$ac_ext <<_ACEOF
7058/* end confdefs.h. */
7059#include <stdio.h>
7060#include <sys/ioctl.h>
7061#ifdef HAVE_TERMIOS_H
7062#include <termios.h>
7063#endif
7064int
7065main ()
7066{
7067int a = ECHO;
7068 ;
7069 return 0;
7070}
7071_ACEOF
7072rm -f conftest.$ac_objext
7073if { (ac_try="$ac_compile"
7074case "(($ac_try" in
7075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7076 *) ac_try_echo=$ac_try;;
7077esac
7078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7079 (eval "$ac_compile") 2>conftest.er1
7080 ac_status=$?
7081 grep -v '^ *+' conftest.er1 >conftest.err
7082 rm -f conftest.er1
7083 cat conftest.err >&5
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); } && {
7086 test -z "$ac_cxx_werror_flag" ||
7087 test ! -s conftest.err
7088 } && test -s conftest.$ac_objext; then
7089 rxvt_cv_header_sysioctl=yes
7090else
7091 echo "$as_me: failed program was:" >&5
7092sed 's/^/| /' conftest.$ac_ext >&5
7093
7094 rxvt_cv_header_sysioctl=no
7095fi
7096
7097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7098fi
7099{ echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7100echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6; }
7101
7102{ echo "$as_me:$LINENO: checking for XPointer" >&5 7824{ echo "$as_me:$LINENO: checking for XPointer" >&5
7103echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } 7825echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; }
7104if test "${rxvt_cv_xpointer+set}" = set; then 7826if test "${rxvt_cv_xpointer+set}" = set; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6 7827 echo $ECHO_N "(cached) $ECHO_C" >&6
7106else 7828else
7217cat >>confdefs.h <<\_ACEOF 7939cat >>confdefs.h <<\_ACEOF
7218#define XLIB_ILLEGAL_ACCESS 1 7940#define XLIB_ILLEGAL_ACCESS 1
7219_ACEOF 7941_ACEOF
7220 7942
7221fi 7943fi
7222
7223{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7224echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7225if test "${ac_cv_c_const+set}" = set; then
7226 echo $ECHO_N "(cached) $ECHO_C" >&6
7227else
7228 cat >conftest.$ac_ext <<_ACEOF
7229/* confdefs.h. */
7230_ACEOF
7231cat confdefs.h >>conftest.$ac_ext
7232cat >>conftest.$ac_ext <<_ACEOF
7233/* end confdefs.h. */
7234
7235int
7236main ()
7237{
7238/* FIXME: Include the comments suggested by Paul. */
7239#ifndef __cplusplus
7240 /* Ultrix mips cc rejects this. */
7241 typedef int charset[2];
7242 const charset cs;
7243 /* SunOS 4.1.1 cc rejects this. */
7244 char const *const *pcpcc;
7245 char **ppc;
7246 /* NEC SVR4.0.2 mips cc rejects this. */
7247 struct point {int x, y;};
7248 static struct point const zero = {0,0};
7249 /* AIX XL C 1.02.0.0 rejects this.
7250 It does not let you subtract one const X* pointer from another in
7251 an arm of an if-expression whose if-part is not a constant
7252 expression */
7253 const char *g = "string";
7254 pcpcc = &g + (g ? g-g : 0);
7255 /* HPUX 7.0 cc rejects these. */
7256 ++pcpcc;
7257 ppc = (char**) pcpcc;
7258 pcpcc = (char const *const *) ppc;
7259 { /* SCO 3.2v4 cc rejects this. */
7260 char *t;
7261 char const *s = 0 ? (char *) 0 : (char const *) 0;
7262
7263 *t++ = 0;
7264 if (s) return 0;
7265 }
7266 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7267 int x[] = {25, 17};
7268 const int *foo = &x[0];
7269 ++foo;
7270 }
7271 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7272 typedef const int *iptr;
7273 iptr p = 0;
7274 ++p;
7275 }
7276 { /* AIX XL C 1.02.0.0 rejects this saying
7277 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7278 struct s { int j; const int *ap[3]; };
7279 struct s *b; b->j = 5;
7280 }
7281 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7282 const int foo = 10;
7283 if (!foo) return 0;
7284 }
7285 return !cs[0] && !zero.x;
7286#endif
7287
7288 ;
7289 return 0;
7290}
7291_ACEOF
7292rm -f conftest.$ac_objext
7293if { (ac_try="$ac_compile"
7294case "(($ac_try" in
7295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7296 *) ac_try_echo=$ac_try;;
7297esac
7298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7299 (eval "$ac_compile") 2>conftest.er1
7300 ac_status=$?
7301 grep -v '^ *+' conftest.er1 >conftest.err
7302 rm -f conftest.er1
7303 cat conftest.err >&5
7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); } && {
7306 test -z "$ac_cxx_werror_flag" ||
7307 test ! -s conftest.err
7308 } && test -s conftest.$ac_objext; then
7309 ac_cv_c_const=yes
7310else
7311 echo "$as_me: failed program was:" >&5
7312sed 's/^/| /' conftest.$ac_ext >&5
7313
7314 ac_cv_c_const=no
7315fi
7316
7317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7318fi
7319{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7320echo "${ECHO_T}$ac_cv_c_const" >&6; }
7321if test $ac_cv_c_const = no; then
7322
7323cat >>confdefs.h <<\_ACEOF
7324#define const
7325_ACEOF
7326
7327fi
7328
7329{ echo "$as_me:$LINENO: checking for inline" >&5
7330echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
7331if test "${ac_cv_c_inline+set}" = set; then
7332 echo $ECHO_N "(cached) $ECHO_C" >&6
7333else
7334 ac_cv_c_inline=no
7335for ac_kw in inline __inline__ __inline; do
7336 cat >conftest.$ac_ext <<_ACEOF
7337/* confdefs.h. */
7338_ACEOF
7339cat confdefs.h >>conftest.$ac_ext
7340cat >>conftest.$ac_ext <<_ACEOF
7341/* end confdefs.h. */
7342#ifndef __cplusplus
7343typedef int foo_t;
7344static $ac_kw foo_t static_foo () {return 0; }
7345$ac_kw foo_t foo () {return 0; }
7346#endif
7347
7348_ACEOF
7349rm -f conftest.$ac_objext
7350if { (ac_try="$ac_compile"
7351case "(($ac_try" in
7352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7353 *) ac_try_echo=$ac_try;;
7354esac
7355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7356 (eval "$ac_compile") 2>conftest.er1
7357 ac_status=$?
7358 grep -v '^ *+' conftest.er1 >conftest.err
7359 rm -f conftest.er1
7360 cat conftest.err >&5
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); } && {
7363 test -z "$ac_cxx_werror_flag" ||
7364 test ! -s conftest.err
7365 } && test -s conftest.$ac_objext; then
7366 ac_cv_c_inline=$ac_kw
7367else
7368 echo "$as_me: failed program was:" >&5
7369sed 's/^/| /' conftest.$ac_ext >&5
7370
7371
7372fi
7373
7374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7375 test "$ac_cv_c_inline" != no && break
7376done
7377
7378fi
7379{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7380echo "${ECHO_T}$ac_cv_c_inline" >&6; }
7381
7382
7383case $ac_cv_c_inline in
7384 inline | yes) ;;
7385 *)
7386 case $ac_cv_c_inline in
7387 no) ac_val=;;
7388 *) ac_val=$ac_cv_c_inline;;
7389 esac
7390 cat >>confdefs.h <<_ACEOF
7391#ifndef __cplusplus
7392#define inline $ac_val
7393#endif
7394_ACEOF
7395 ;;
7396esac
7397
7398
7399 7944
7400{ echo "$as_me:$LINENO: checking for mode_t" >&5 7945{ echo "$as_me:$LINENO: checking for mode_t" >&5
7401echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } 7946echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
7402if test "${ac_cv_type_mode_t+set}" = set; then 7947if test "${ac_cv_type_mode_t+set}" = set; then
7403 echo $ECHO_N "(cached) $ECHO_C" >&6 7948 echo $ECHO_N "(cached) $ECHO_C" >&6
7560_ACEOF 8105_ACEOF
7561 8106
7562fi 8107fi
7563 8108
7564 8109
7565{ echo "$as_me:$LINENO: checking for short" >&5 8110 { echo "$as_me:$LINENO: checking for int16_t" >&5
7566echo $ECHO_N "checking for short... $ECHO_C" >&6; } 8111echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
7567if test "${ac_cv_type_short+set}" = set; then 8112if test "${ac_cv_c_int16_t+set}" = set; then
7568 echo $ECHO_N "(cached) $ECHO_C" >&6 8113 echo $ECHO_N "(cached) $ECHO_C" >&6
7569else 8114else
8115 ac_cv_c_int16_t=no
8116 for ac_type in 'int16_t' 'int' 'long int' \
8117 'long long int' 'short int' 'signed char'; do
7570 cat >conftest.$ac_ext <<_ACEOF 8118 cat >conftest.$ac_ext <<_ACEOF
7571/* confdefs.h. */ 8119/* confdefs.h. */
7572_ACEOF 8120_ACEOF
7573cat confdefs.h >>conftest.$ac_ext 8121cat confdefs.h >>conftest.$ac_ext
7574cat >>conftest.$ac_ext <<_ACEOF 8122cat >>conftest.$ac_ext <<_ACEOF
7575/* end confdefs.h. */ 8123/* end confdefs.h. */
7576$ac_includes_default 8124$ac_includes_default
7577typedef short ac__type_new_;
7578int 8125int
7579main () 8126main ()
7580{ 8127{
7581if ((ac__type_new_ *) 0) 8128static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
7582 return 0; 8129test_array [0] = 0
7583if (sizeof (ac__type_new_)) 8130
7584 return 0;
7585 ; 8131 ;
7586 return 0; 8132 return 0;
7587} 8133}
7588_ACEOF 8134_ACEOF
7589rm -f conftest.$ac_objext 8135rm -f conftest.$ac_objext
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); } && { 8148 (exit $ac_status); } && {
7603 test -z "$ac_cxx_werror_flag" || 8149 test -z "$ac_cxx_werror_flag" ||
7604 test ! -s conftest.err 8150 test ! -s conftest.err
7605 } && test -s conftest.$ac_objext; then 8151 } && test -s conftest.$ac_objext; then
7606 ac_cv_type_short=yes
7607else
7608 echo "$as_me: failed program was:" >&5
7609sed 's/^/| /' conftest.$ac_ext >&5
7610
7611 ac_cv_type_short=no
7612fi
7613
7614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7615fi
7616{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7617echo "${ECHO_T}$ac_cv_type_short" >&6; }
7618
7619# The cast to long int works around a bug in the HP C Compiler
7620# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7621# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7622# This bug is HP SR number 8606223364.
7623{ echo "$as_me:$LINENO: checking size of short" >&5
7624echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
7625if test "${ac_cv_sizeof_short+set}" = set; then
7626 echo $ECHO_N "(cached) $ECHO_C" >&6
7627else
7628 if test "$cross_compiling" = yes; then
7629 # Depending upon the size, compute the lo and hi bounds.
7630cat >conftest.$ac_ext <<_ACEOF 8152 cat >conftest.$ac_ext <<_ACEOF
7631/* confdefs.h. */ 8153/* confdefs.h. */
7632_ACEOF 8154_ACEOF
7633cat confdefs.h >>conftest.$ac_ext 8155cat confdefs.h >>conftest.$ac_ext
7634cat >>conftest.$ac_ext <<_ACEOF 8156cat >>conftest.$ac_ext <<_ACEOF
7635/* end confdefs.h. */ 8157/* end confdefs.h. */
7636$ac_includes_default 8158$ac_includes_default
7637 typedef short ac__type_sizeof_;
7638int 8159int
7639main () 8160main ()
7640{ 8161{
7641static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 8162static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
8163 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
7642test_array [0] = 0 8164test_array [0] = 0
7643 8165
7644 ; 8166 ;
7645 return 0; 8167 return 0;
7646} 8168}
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); } && { 8183 (exit $ac_status); } && {
7662 test -z "$ac_cxx_werror_flag" || 8184 test -z "$ac_cxx_werror_flag" ||
7663 test ! -s conftest.err 8185 test ! -s conftest.err
7664 } && test -s conftest.$ac_objext; then 8186 } && test -s conftest.$ac_objext; then
7665 ac_lo=0 ac_mid=0 8187 :
7666 while :; do 8188else
8189 echo "$as_me: failed program was:" >&5
8190sed 's/^/| /' conftest.$ac_ext >&5
8191
8192 case $ac_type in
8193 int16_t) ac_cv_c_int16_t=yes ;;
8194 *) ac_cv_c_int16_t=$ac_type ;;
8195esac
8196
8197fi
8198
8199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8200else
8201 echo "$as_me: failed program was:" >&5
8202sed 's/^/| /' conftest.$ac_ext >&5
8203
8204
8205fi
8206
8207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8208 test "$ac_cv_c_int16_t" != no && break
8209 done
8210fi
8211{ echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
8212echo "${ECHO_T}$ac_cv_c_int16_t" >&6; }
8213 case $ac_cv_c_int16_t in #(
8214 no|yes) ;; #(
8215 *)
8216
8217cat >>confdefs.h <<_ACEOF
8218#define int16_t $ac_cv_c_int16_t
8219_ACEOF
8220;;
8221 esac
8222
8223
8224 { echo "$as_me:$LINENO: checking for uint16_t" >&5
8225echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
8226if test "${ac_cv_c_uint16_t+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8228else
8229 ac_cv_c_uint16_t=no
8230 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
8231 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7667 cat >conftest.$ac_ext <<_ACEOF 8232 cat >conftest.$ac_ext <<_ACEOF
7668/* confdefs.h. */ 8233/* confdefs.h. */
7669_ACEOF 8234_ACEOF
7670cat confdefs.h >>conftest.$ac_ext 8235cat confdefs.h >>conftest.$ac_ext
7671cat >>conftest.$ac_ext <<_ACEOF 8236cat >>conftest.$ac_ext <<_ACEOF
7672/* end confdefs.h. */ 8237/* end confdefs.h. */
7673$ac_includes_default 8238$ac_includes_default
7674 typedef short ac__type_sizeof_;
7675int 8239int
7676main () 8240main ()
7677{ 8241{
7678static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 8242static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
7679test_array [0] = 0 8243test_array [0] = 0
7680 8244
7681 ; 8245 ;
7682 return 0; 8246 return 0;
7683} 8247}
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); } && { 8262 (exit $ac_status); } && {
7699 test -z "$ac_cxx_werror_flag" || 8263 test -z "$ac_cxx_werror_flag" ||
7700 test ! -s conftest.err 8264 test ! -s conftest.err
7701 } && test -s conftest.$ac_objext; then 8265 } && test -s conftest.$ac_objext; then
7702 ac_hi=$ac_mid; break 8266 case $ac_type in
8267 uint16_t) ac_cv_c_uint16_t=yes ;;
8268 *) ac_cv_c_uint16_t=$ac_type ;;
8269esac
8270
7703else 8271else
7704 echo "$as_me: failed program was:" >&5 8272 echo "$as_me: failed program was:" >&5
7705sed 's/^/| /' conftest.$ac_ext >&5 8273sed 's/^/| /' conftest.$ac_ext >&5
7706 8274
7707 ac_lo=`expr $ac_mid + 1` 8275
7708 if test $ac_lo -le $ac_mid; then
7709 ac_lo= ac_hi=
7710 break
7711 fi
7712 ac_mid=`expr 2 '*' $ac_mid + 1`
7713fi 8276fi
7714 8277
7715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8279 test "$ac_cv_c_uint16_t" != no && break
7716 done 8280 done
7717else 8281fi
7718 echo "$as_me: failed program was:" >&5 8282{ echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
7719sed 's/^/| /' conftest.$ac_ext >&5 8283echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
8284 case $ac_cv_c_uint16_t in #(
8285 no|yes) ;; #(
8286 *)
7720 8287
8288
8289cat >>confdefs.h <<_ACEOF
8290#define uint16_t $ac_cv_c_uint16_t
8291_ACEOF
8292;;
8293 esac
8294
8295
8296 { echo "$as_me:$LINENO: checking for int32_t" >&5
8297echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
8298if test "${ac_cv_c_int32_t+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8300else
8301 ac_cv_c_int32_t=no
8302 for ac_type in 'int32_t' 'int' 'long int' \
8303 'long long int' 'short int' 'signed char'; do
7721 cat >conftest.$ac_ext <<_ACEOF 8304 cat >conftest.$ac_ext <<_ACEOF
7722/* confdefs.h. */ 8305/* confdefs.h. */
7723_ACEOF 8306_ACEOF
7724cat confdefs.h >>conftest.$ac_ext 8307cat confdefs.h >>conftest.$ac_ext
7725cat >>conftest.$ac_ext <<_ACEOF 8308cat >>conftest.$ac_ext <<_ACEOF
7726/* end confdefs.h. */ 8309/* end confdefs.h. */
7727$ac_includes_default 8310$ac_includes_default
7728 typedef short ac__type_sizeof_;
7729int 8311int
7730main () 8312main ()
7731{ 8313{
7732static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 8314static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7733test_array [0] = 0 8315test_array [0] = 0
7734 8316
7735 ; 8317 ;
7736 return 0; 8318 return 0;
7737} 8319}
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } && { 8334 (exit $ac_status); } && {
7753 test -z "$ac_cxx_werror_flag" || 8335 test -z "$ac_cxx_werror_flag" ||
7754 test ! -s conftest.err 8336 test ! -s conftest.err
7755 } && test -s conftest.$ac_objext; then 8337 } && test -s conftest.$ac_objext; then
7756 ac_hi=-1 ac_mid=-1
7757 while :; do
7758 cat >conftest.$ac_ext <<_ACEOF 8338 cat >conftest.$ac_ext <<_ACEOF
7759/* confdefs.h. */ 8339/* confdefs.h. */
7760_ACEOF 8340_ACEOF
7761cat confdefs.h >>conftest.$ac_ext 8341cat confdefs.h >>conftest.$ac_ext
7762cat >>conftest.$ac_ext <<_ACEOF 8342cat >>conftest.$ac_ext <<_ACEOF
7763/* end confdefs.h. */ 8343/* end confdefs.h. */
7764$ac_includes_default 8344$ac_includes_default
7765 typedef short ac__type_sizeof_;
7766int 8345int
7767main () 8346main ()
7768{ 8347{
7769static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 8348static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
8349 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7770test_array [0] = 0 8350test_array [0] = 0
7771 8351
7772 ; 8352 ;
7773 return 0; 8353 return 0;
7774} 8354}
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); } && { 8369 (exit $ac_status); } && {
7790 test -z "$ac_cxx_werror_flag" || 8370 test -z "$ac_cxx_werror_flag" ||
7791 test ! -s conftest.err 8371 test ! -s conftest.err
7792 } && test -s conftest.$ac_objext; then 8372 } && test -s conftest.$ac_objext; then
7793 ac_lo=$ac_mid; break 8373 :
7794else 8374else
7795 echo "$as_me: failed program was:" >&5 8375 echo "$as_me: failed program was:" >&5
7796sed 's/^/| /' conftest.$ac_ext >&5 8376sed 's/^/| /' conftest.$ac_ext >&5
7797 8377
7798 ac_hi=`expr '(' $ac_mid ')' - 1` 8378 case $ac_type in
7799 if test $ac_mid -le $ac_hi; then 8379 int32_t) ac_cv_c_int32_t=yes ;;
7800 ac_lo= ac_hi= 8380 *) ac_cv_c_int32_t=$ac_type ;;
7801 break 8381esac
7802 fi 8382
7803 ac_mid=`expr 2 '*' $ac_mid`
7804fi 8383fi
7805 8384
7806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7807 done
7808else 8386else
7809 echo "$as_me: failed program was:" >&5 8387 echo "$as_me: failed program was:" >&5
7810sed 's/^/| /' conftest.$ac_ext >&5 8388sed 's/^/| /' conftest.$ac_ext >&5
7811 8389
7812 ac_lo= ac_hi= 8390
7813fi 8391fi
7814 8392
7815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8394 test "$ac_cv_c_int32_t" != no && break
8395 done
7816fi 8396fi
8397{ echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
8398echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
8399 case $ac_cv_c_int32_t in #(
8400 no|yes) ;; #(
8401 *)
7817 8402
7818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8403cat >>confdefs.h <<_ACEOF
7819# Binary search between lo and hi bounds. 8404#define int32_t $ac_cv_c_int32_t
7820while test "x$ac_lo" != "x$ac_hi"; do 8405_ACEOF
7821 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 8406;;
8407 esac
8408
8409
8410 { echo "$as_me:$LINENO: checking for uint32_t" >&5
8411echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
8412if test "${ac_cv_c_uint32_t+set}" = set; then
8413 echo $ECHO_N "(cached) $ECHO_C" >&6
8414else
8415 ac_cv_c_uint32_t=no
8416 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
8417 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7822 cat >conftest.$ac_ext <<_ACEOF 8418 cat >conftest.$ac_ext <<_ACEOF
7823/* confdefs.h. */ 8419/* confdefs.h. */
7824_ACEOF 8420_ACEOF
7825cat confdefs.h >>conftest.$ac_ext 8421cat confdefs.h >>conftest.$ac_ext
7826cat >>conftest.$ac_ext <<_ACEOF 8422cat >>conftest.$ac_ext <<_ACEOF
7827/* end confdefs.h. */ 8423/* end confdefs.h. */
7828$ac_includes_default 8424$ac_includes_default
7829 typedef short ac__type_sizeof_;
7830int 8425int
7831main () 8426main ()
7832{ 8427{
7833static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 8428static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7834test_array [0] = 0 8429test_array [0] = 0
7835 8430
7836 ; 8431 ;
7837 return 0; 8432 return 0;
7838} 8433}
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); } && { 8448 (exit $ac_status); } && {
7854 test -z "$ac_cxx_werror_flag" || 8449 test -z "$ac_cxx_werror_flag" ||
7855 test ! -s conftest.err 8450 test ! -s conftest.err
7856 } && test -s conftest.$ac_objext; then 8451 } && test -s conftest.$ac_objext; then
7857 ac_hi=$ac_mid 8452 case $ac_type in
8453 uint32_t) ac_cv_c_uint32_t=yes ;;
8454 *) ac_cv_c_uint32_t=$ac_type ;;
8455esac
8456
7858else 8457else
7859 echo "$as_me: failed program was:" >&5 8458 echo "$as_me: failed program was:" >&5
7860sed 's/^/| /' conftest.$ac_ext >&5 8459sed 's/^/| /' conftest.$ac_ext >&5
7861 8460
7862 ac_lo=`expr '(' $ac_mid ')' + 1` 8461
7863fi 8462fi
7864 8463
7865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7866done 8465 test "$ac_cv_c_uint32_t" != no && break
7867case $ac_lo in 8466 done
7868?*) ac_cv_sizeof_short=$ac_lo;;
7869'') if test "$ac_cv_type_short" = yes; then
7870 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
7871See \`config.log' for more details." >&5
7872echo "$as_me: error: cannot compute sizeof (short)
7873See \`config.log' for more details." >&2;}
7874 { (exit 77); exit 77; }; }
7875 else
7876 ac_cv_sizeof_short=0
7877 fi ;;
7878esac
7879else
7880 cat >conftest.$ac_ext <<_ACEOF
7881/* confdefs.h. */
7882_ACEOF
7883cat confdefs.h >>conftest.$ac_ext
7884cat >>conftest.$ac_ext <<_ACEOF
7885/* end confdefs.h. */
7886$ac_includes_default
7887 typedef short ac__type_sizeof_;
7888static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7889static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7890#include <stdio.h>
7891#include <stdlib.h>
7892int
7893main ()
7894{
7895
7896 FILE *f = fopen ("conftest.val", "w");
7897 if (! f)
7898 return 1;
7899 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7900 {
7901 long int i = longval ();
7902 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7903 return 1;
7904 fprintf (f, "%ld\n", i);
7905 }
7906 else
7907 {
7908 unsigned long int i = ulongval ();
7909 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7910 return 1;
7911 fprintf (f, "%lu\n", i);
7912 }
7913 return ferror (f) || fclose (f) != 0;
7914
7915 ;
7916 return 0;
7917}
7918_ACEOF
7919rm -f conftest$ac_exeext
7920if { (ac_try="$ac_link"
7921case "(($ac_try" in
7922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923 *) ac_try_echo=$ac_try;;
7924esac
7925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7926 (eval "$ac_link") 2>&5
7927 ac_status=$?
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7930 { (case "(($ac_try" in
7931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7932 *) ac_try_echo=$ac_try;;
7933esac
7934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7935 (eval "$ac_try") 2>&5
7936 ac_status=$?
7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); }; }; then
7939 ac_cv_sizeof_short=`cat conftest.val`
7940else
7941 echo "$as_me: program exited with status $ac_status" >&5
7942echo "$as_me: failed program was:" >&5
7943sed 's/^/| /' conftest.$ac_ext >&5
7944
7945( exit $ac_status )
7946if test "$ac_cv_type_short" = yes; then
7947 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
7948See \`config.log' for more details." >&5
7949echo "$as_me: error: cannot compute sizeof (short)
7950See \`config.log' for more details." >&2;}
7951 { (exit 77); exit 77; }; }
7952 else
7953 ac_cv_sizeof_short=0
7954 fi
7955fi 8467fi
7956rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7957fi
7958rm -f conftest.val
7959fi
7960{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 8468{ echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7961echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } 8469echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
8470 case $ac_cv_c_uint32_t in #(
8471 no|yes) ;; #(
8472 *)
7962 8473
8474cat >>confdefs.h <<\_ACEOF
8475#define _UINT32_T 1
8476_ACEOF
7963 8477
7964 8478
7965cat >>confdefs.h <<_ACEOF 8479cat >>confdefs.h <<_ACEOF
7966#define SIZEOF_SHORT $ac_cv_sizeof_short 8480#define uint32_t $ac_cv_c_uint32_t
7967_ACEOF 8481_ACEOF
7968 8482;;
7969
7970{ echo "$as_me:$LINENO: checking for int" >&5
7971echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7972if test "${ac_cv_type_int+set}" = set; then
7973 echo $ECHO_N "(cached) $ECHO_C" >&6
7974else
7975 cat >conftest.$ac_ext <<_ACEOF
7976/* confdefs.h. */
7977_ACEOF
7978cat confdefs.h >>conftest.$ac_ext
7979cat >>conftest.$ac_ext <<_ACEOF
7980/* end confdefs.h. */
7981$ac_includes_default
7982typedef int ac__type_new_;
7983int
7984main ()
7985{
7986if ((ac__type_new_ *) 0)
7987 return 0;
7988if (sizeof (ac__type_new_))
7989 return 0;
7990 ;
7991 return 0;
7992}
7993_ACEOF
7994rm -f conftest.$ac_objext
7995if { (ac_try="$ac_compile"
7996case "(($ac_try" in
7997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7998 *) ac_try_echo=$ac_try;;
7999esac 8483 esac
8000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8001 (eval "$ac_compile") 2>conftest.er1
8002 ac_status=$?
8003 grep -v '^ *+' conftest.er1 >conftest.err
8004 rm -f conftest.er1
8005 cat conftest.err >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); } && {
8008 test -z "$ac_cxx_werror_flag" ||
8009 test ! -s conftest.err
8010 } && test -s conftest.$ac_objext; then
8011 ac_cv_type_int=yes
8012else
8013 echo "$as_me: failed program was:" >&5
8014sed 's/^/| /' conftest.$ac_ext >&5
8015 8484
8016 ac_cv_type_int=no
8017fi
8018 8485
8019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8020fi
8021{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8022echo "${ECHO_T}$ac_cv_type_int" >&6; }
8023 8486
8024# The cast to long int works around a bug in the HP C Compiler
8025# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8026# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8027# This bug is HP SR number 8606223364.
8028{ echo "$as_me:$LINENO: checking size of int" >&5
8029echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
8030if test "${ac_cv_sizeof_int+set}" = set; then
8031 echo $ECHO_N "(cached) $ECHO_C" >&6
8032else
8033 if test "$cross_compiling" = yes; then
8034 # Depending upon the size, compute the lo and hi bounds.
8035cat >conftest.$ac_ext <<_ACEOF
8036/* confdefs.h. */
8037_ACEOF
8038cat confdefs.h >>conftest.$ac_ext
8039cat >>conftest.$ac_ext <<_ACEOF
8040/* end confdefs.h. */
8041$ac_includes_default
8042 typedef int ac__type_sizeof_;
8043int
8044main ()
8045{
8046static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8047test_array [0] = 0
8048
8049 ;
8050 return 0;
8051}
8052_ACEOF
8053rm -f conftest.$ac_objext
8054if { (ac_try="$ac_compile"
8055case "(($ac_try" in
8056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8057 *) ac_try_echo=$ac_try;;
8058esac
8059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8060 (eval "$ac_compile") 2>conftest.er1
8061 ac_status=$?
8062 grep -v '^ *+' conftest.er1 >conftest.err
8063 rm -f conftest.er1
8064 cat conftest.err >&5
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); } && {
8067 test -z "$ac_cxx_werror_flag" ||
8068 test ! -s conftest.err
8069 } && test -s conftest.$ac_objext; then
8070 ac_lo=0 ac_mid=0
8071 while :; do
8072 cat >conftest.$ac_ext <<_ACEOF
8073/* confdefs.h. */
8074_ACEOF
8075cat confdefs.h >>conftest.$ac_ext
8076cat >>conftest.$ac_ext <<_ACEOF
8077/* end confdefs.h. */
8078$ac_includes_default
8079 typedef int ac__type_sizeof_;
8080int
8081main ()
8082{
8083static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8084test_array [0] = 0
8085
8086 ;
8087 return 0;
8088}
8089_ACEOF
8090rm -f conftest.$ac_objext
8091if { (ac_try="$ac_compile"
8092case "(($ac_try" in
8093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8094 *) ac_try_echo=$ac_try;;
8095esac
8096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8097 (eval "$ac_compile") 2>conftest.er1
8098 ac_status=$?
8099 grep -v '^ *+' conftest.er1 >conftest.err
8100 rm -f conftest.er1
8101 cat conftest.err >&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } && {
8104 test -z "$ac_cxx_werror_flag" ||
8105 test ! -s conftest.err
8106 } && test -s conftest.$ac_objext; then
8107 ac_hi=$ac_mid; break
8108else
8109 echo "$as_me: failed program was:" >&5
8110sed 's/^/| /' conftest.$ac_ext >&5
8111
8112 ac_lo=`expr $ac_mid + 1`
8113 if test $ac_lo -le $ac_mid; then
8114 ac_lo= ac_hi=
8115 break
8116 fi
8117 ac_mid=`expr 2 '*' $ac_mid + 1`
8118fi
8119
8120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8121 done
8122else
8123 echo "$as_me: failed program was:" >&5
8124sed 's/^/| /' conftest.$ac_ext >&5
8125
8126 cat >conftest.$ac_ext <<_ACEOF
8127/* confdefs.h. */
8128_ACEOF
8129cat confdefs.h >>conftest.$ac_ext
8130cat >>conftest.$ac_ext <<_ACEOF
8131/* end confdefs.h. */
8132$ac_includes_default
8133 typedef int ac__type_sizeof_;
8134int
8135main ()
8136{
8137static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8138test_array [0] = 0
8139
8140 ;
8141 return 0;
8142}
8143_ACEOF
8144rm -f conftest.$ac_objext
8145if { (ac_try="$ac_compile"
8146case "(($ac_try" in
8147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8148 *) ac_try_echo=$ac_try;;
8149esac
8150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8151 (eval "$ac_compile") 2>conftest.er1
8152 ac_status=$?
8153 grep -v '^ *+' conftest.er1 >conftest.err
8154 rm -f conftest.er1
8155 cat conftest.err >&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); } && {
8158 test -z "$ac_cxx_werror_flag" ||
8159 test ! -s conftest.err
8160 } && test -s conftest.$ac_objext; then
8161 ac_hi=-1 ac_mid=-1
8162 while :; do
8163 cat >conftest.$ac_ext <<_ACEOF
8164/* confdefs.h. */
8165_ACEOF
8166cat confdefs.h >>conftest.$ac_ext
8167cat >>conftest.$ac_ext <<_ACEOF
8168/* end confdefs.h. */
8169$ac_includes_default
8170 typedef int ac__type_sizeof_;
8171int
8172main ()
8173{
8174static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8175test_array [0] = 0
8176
8177 ;
8178 return 0;
8179}
8180_ACEOF
8181rm -f conftest.$ac_objext
8182if { (ac_try="$ac_compile"
8183case "(($ac_try" in
8184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8185 *) ac_try_echo=$ac_try;;
8186esac
8187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8188 (eval "$ac_compile") 2>conftest.er1
8189 ac_status=$?
8190 grep -v '^ *+' conftest.er1 >conftest.err
8191 rm -f conftest.er1
8192 cat conftest.err >&5
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); } && {
8195 test -z "$ac_cxx_werror_flag" ||
8196 test ! -s conftest.err
8197 } && test -s conftest.$ac_objext; then
8198 ac_lo=$ac_mid; break
8199else
8200 echo "$as_me: failed program was:" >&5
8201sed 's/^/| /' conftest.$ac_ext >&5
8202
8203 ac_hi=`expr '(' $ac_mid ')' - 1`
8204 if test $ac_mid -le $ac_hi; then
8205 ac_lo= ac_hi=
8206 break
8207 fi
8208 ac_mid=`expr 2 '*' $ac_mid`
8209fi
8210
8211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8212 done
8213else
8214 echo "$as_me: failed program was:" >&5
8215sed 's/^/| /' conftest.$ac_ext >&5
8216
8217 ac_lo= ac_hi=
8218fi
8219
8220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8221fi
8222
8223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8224# Binary search between lo and hi bounds.
8225while test "x$ac_lo" != "x$ac_hi"; do
8226 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8227 cat >conftest.$ac_ext <<_ACEOF
8228/* confdefs.h. */
8229_ACEOF
8230cat confdefs.h >>conftest.$ac_ext
8231cat >>conftest.$ac_ext <<_ACEOF
8232/* end confdefs.h. */
8233$ac_includes_default
8234 typedef int ac__type_sizeof_;
8235int
8236main ()
8237{
8238static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8239test_array [0] = 0
8240
8241 ;
8242 return 0;
8243}
8244_ACEOF
8245rm -f conftest.$ac_objext
8246if { (ac_try="$ac_compile"
8247case "(($ac_try" in
8248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249 *) ac_try_echo=$ac_try;;
8250esac
8251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8252 (eval "$ac_compile") 2>conftest.er1
8253 ac_status=$?
8254 grep -v '^ *+' conftest.er1 >conftest.err
8255 rm -f conftest.er1
8256 cat conftest.err >&5
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); } && {
8259 test -z "$ac_cxx_werror_flag" ||
8260 test ! -s conftest.err
8261 } && test -s conftest.$ac_objext; then
8262 ac_hi=$ac_mid
8263else
8264 echo "$as_me: failed program was:" >&5
8265sed 's/^/| /' conftest.$ac_ext >&5
8266
8267 ac_lo=`expr '(' $ac_mid ')' + 1`
8268fi
8269
8270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8271done
8272case $ac_lo in
8273?*) ac_cv_sizeof_int=$ac_lo;;
8274'') if test "$ac_cv_type_int" = yes; then
8275 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8276See \`config.log' for more details." >&5
8277echo "$as_me: error: cannot compute sizeof (int)
8278See \`config.log' for more details." >&2;}
8279 { (exit 77); exit 77; }; }
8280 else
8281 ac_cv_sizeof_int=0
8282 fi ;;
8283esac
8284else
8285 cat >conftest.$ac_ext <<_ACEOF
8286/* confdefs.h. */
8287_ACEOF
8288cat confdefs.h >>conftest.$ac_ext
8289cat >>conftest.$ac_ext <<_ACEOF
8290/* end confdefs.h. */
8291$ac_includes_default
8292 typedef int ac__type_sizeof_;
8293static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8294static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8295#include <stdio.h>
8296#include <stdlib.h>
8297int
8298main ()
8299{
8300
8301 FILE *f = fopen ("conftest.val", "w");
8302 if (! f)
8303 return 1;
8304 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8305 {
8306 long int i = longval ();
8307 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8308 return 1;
8309 fprintf (f, "%ld\n", i);
8310 }
8311 else
8312 {
8313 unsigned long int i = ulongval ();
8314 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8315 return 1;
8316 fprintf (f, "%lu\n", i);
8317 }
8318 return ferror (f) || fclose (f) != 0;
8319
8320 ;
8321 return 0;
8322}
8323_ACEOF
8324rm -f conftest$ac_exeext
8325if { (ac_try="$ac_link"
8326case "(($ac_try" in
8327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8328 *) ac_try_echo=$ac_try;;
8329esac
8330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8331 (eval "$ac_link") 2>&5
8332 ac_status=$?
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8335 { (case "(($ac_try" in
8336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8337 *) ac_try_echo=$ac_try;;
8338esac
8339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8340 (eval "$ac_try") 2>&5
8341 ac_status=$?
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); }; }; then
8344 ac_cv_sizeof_int=`cat conftest.val`
8345else
8346 echo "$as_me: program exited with status $ac_status" >&5
8347echo "$as_me: failed program was:" >&5
8348sed 's/^/| /' conftest.$ac_ext >&5
8349
8350( exit $ac_status )
8351if test "$ac_cv_type_int" = yes; then
8352 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8353See \`config.log' for more details." >&5
8354echo "$as_me: error: cannot compute sizeof (int)
8355See \`config.log' for more details." >&2;}
8356 { (exit 77); exit 77; }; }
8357 else
8358 ac_cv_sizeof_int=0
8359 fi
8360fi
8361rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8362fi
8363rm -f conftest.val
8364fi
8365{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8366echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
8367
8368
8369
8370cat >>confdefs.h <<_ACEOF
8371#define SIZEOF_INT $ac_cv_sizeof_int
8372_ACEOF
8373
8374
8375{ echo "$as_me:$LINENO: checking for long long" >&5
8376echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8377if test "${ac_cv_type_long_long+set}" = set; then
8378 echo $ECHO_N "(cached) $ECHO_C" >&6
8379else
8380 cat >conftest.$ac_ext <<_ACEOF
8381/* confdefs.h. */
8382_ACEOF
8383cat confdefs.h >>conftest.$ac_ext
8384cat >>conftest.$ac_ext <<_ACEOF
8385/* end confdefs.h. */
8386$ac_includes_default
8387typedef long long ac__type_new_;
8388int
8389main ()
8390{
8391if ((ac__type_new_ *) 0)
8392 return 0;
8393if (sizeof (ac__type_new_))
8394 return 0;
8395 ;
8396 return 0;
8397}
8398_ACEOF
8399rm -f conftest.$ac_objext
8400if { (ac_try="$ac_compile"
8401case "(($ac_try" in
8402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8403 *) ac_try_echo=$ac_try;;
8404esac
8405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8406 (eval "$ac_compile") 2>conftest.er1
8407 ac_status=$?
8408 grep -v '^ *+' conftest.er1 >conftest.err
8409 rm -f conftest.er1
8410 cat conftest.err >&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); } && {
8413 test -z "$ac_cxx_werror_flag" ||
8414 test ! -s conftest.err
8415 } && test -s conftest.$ac_objext; then
8416 ac_cv_type_long_long=yes
8417else
8418 echo "$as_me: failed program was:" >&5
8419sed 's/^/| /' conftest.$ac_ext >&5
8420
8421 ac_cv_type_long_long=no
8422fi
8423
8424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8425fi
8426{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8427echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8428
8429# The cast to long int works around a bug in the HP C Compiler
8430# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8431# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8432# This bug is HP SR number 8606223364.
8433{ echo "$as_me:$LINENO: checking size of long long" >&5
8434echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
8435if test "${ac_cv_sizeof_long_long+set}" = set; then
8436 echo $ECHO_N "(cached) $ECHO_C" >&6
8437else
8438 if test "$cross_compiling" = yes; then
8439 # Depending upon the size, compute the lo and hi bounds.
8440cat >conftest.$ac_ext <<_ACEOF
8441/* confdefs.h. */
8442_ACEOF
8443cat confdefs.h >>conftest.$ac_ext
8444cat >>conftest.$ac_ext <<_ACEOF
8445/* end confdefs.h. */
8446$ac_includes_default
8447 typedef long long ac__type_sizeof_;
8448int
8449main ()
8450{
8451static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8452test_array [0] = 0
8453
8454 ;
8455 return 0;
8456}
8457_ACEOF
8458rm -f conftest.$ac_objext
8459if { (ac_try="$ac_compile"
8460case "(($ac_try" in
8461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8462 *) ac_try_echo=$ac_try;;
8463esac
8464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8465 (eval "$ac_compile") 2>conftest.er1
8466 ac_status=$?
8467 grep -v '^ *+' conftest.er1 >conftest.err
8468 rm -f conftest.er1
8469 cat conftest.err >&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); } && {
8472 test -z "$ac_cxx_werror_flag" ||
8473 test ! -s conftest.err
8474 } && test -s conftest.$ac_objext; then
8475 ac_lo=0 ac_mid=0
8476 while :; do
8477 cat >conftest.$ac_ext <<_ACEOF
8478/* confdefs.h. */
8479_ACEOF
8480cat confdefs.h >>conftest.$ac_ext
8481cat >>conftest.$ac_ext <<_ACEOF
8482/* end confdefs.h. */
8483$ac_includes_default
8484 typedef long long ac__type_sizeof_;
8485int
8486main ()
8487{
8488static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8489test_array [0] = 0
8490
8491 ;
8492 return 0;
8493}
8494_ACEOF
8495rm -f conftest.$ac_objext
8496if { (ac_try="$ac_compile"
8497case "(($ac_try" in
8498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8499 *) ac_try_echo=$ac_try;;
8500esac
8501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8502 (eval "$ac_compile") 2>conftest.er1
8503 ac_status=$?
8504 grep -v '^ *+' conftest.er1 >conftest.err
8505 rm -f conftest.er1
8506 cat conftest.err >&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); } && {
8509 test -z "$ac_cxx_werror_flag" ||
8510 test ! -s conftest.err
8511 } && test -s conftest.$ac_objext; then
8512 ac_hi=$ac_mid; break
8513else
8514 echo "$as_me: failed program was:" >&5
8515sed 's/^/| /' conftest.$ac_ext >&5
8516
8517 ac_lo=`expr $ac_mid + 1`
8518 if test $ac_lo -le $ac_mid; then
8519 ac_lo= ac_hi=
8520 break
8521 fi
8522 ac_mid=`expr 2 '*' $ac_mid + 1`
8523fi
8524
8525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8526 done
8527else
8528 echo "$as_me: failed program was:" >&5
8529sed 's/^/| /' conftest.$ac_ext >&5
8530
8531 cat >conftest.$ac_ext <<_ACEOF
8532/* confdefs.h. */
8533_ACEOF
8534cat confdefs.h >>conftest.$ac_ext
8535cat >>conftest.$ac_ext <<_ACEOF
8536/* end confdefs.h. */
8537$ac_includes_default
8538 typedef long long ac__type_sizeof_;
8539int
8540main ()
8541{
8542static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8543test_array [0] = 0
8544
8545 ;
8546 return 0;
8547}
8548_ACEOF
8549rm -f conftest.$ac_objext
8550if { (ac_try="$ac_compile"
8551case "(($ac_try" in
8552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8553 *) ac_try_echo=$ac_try;;
8554esac
8555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8556 (eval "$ac_compile") 2>conftest.er1
8557 ac_status=$?
8558 grep -v '^ *+' conftest.er1 >conftest.err
8559 rm -f conftest.er1
8560 cat conftest.err >&5
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); } && {
8563 test -z "$ac_cxx_werror_flag" ||
8564 test ! -s conftest.err
8565 } && test -s conftest.$ac_objext; then
8566 ac_hi=-1 ac_mid=-1
8567 while :; do
8568 cat >conftest.$ac_ext <<_ACEOF
8569/* confdefs.h. */
8570_ACEOF
8571cat confdefs.h >>conftest.$ac_ext
8572cat >>conftest.$ac_ext <<_ACEOF
8573/* end confdefs.h. */
8574$ac_includes_default
8575 typedef long long ac__type_sizeof_;
8576int
8577main ()
8578{
8579static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8580test_array [0] = 0
8581
8582 ;
8583 return 0;
8584}
8585_ACEOF
8586rm -f conftest.$ac_objext
8587if { (ac_try="$ac_compile"
8588case "(($ac_try" in
8589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8590 *) ac_try_echo=$ac_try;;
8591esac
8592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8593 (eval "$ac_compile") 2>conftest.er1
8594 ac_status=$?
8595 grep -v '^ *+' conftest.er1 >conftest.err
8596 rm -f conftest.er1
8597 cat conftest.err >&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); } && {
8600 test -z "$ac_cxx_werror_flag" ||
8601 test ! -s conftest.err
8602 } && test -s conftest.$ac_objext; then
8603 ac_lo=$ac_mid; break
8604else
8605 echo "$as_me: failed program was:" >&5
8606sed 's/^/| /' conftest.$ac_ext >&5
8607
8608 ac_hi=`expr '(' $ac_mid ')' - 1`
8609 if test $ac_mid -le $ac_hi; then
8610 ac_lo= ac_hi=
8611 break
8612 fi
8613 ac_mid=`expr 2 '*' $ac_mid`
8614fi
8615
8616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8617 done
8618else
8619 echo "$as_me: failed program was:" >&5
8620sed 's/^/| /' conftest.$ac_ext >&5
8621
8622 ac_lo= ac_hi=
8623fi
8624
8625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8626fi
8627
8628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8629# Binary search between lo and hi bounds.
8630while test "x$ac_lo" != "x$ac_hi"; do
8631 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8632 cat >conftest.$ac_ext <<_ACEOF
8633/* confdefs.h. */
8634_ACEOF
8635cat confdefs.h >>conftest.$ac_ext
8636cat >>conftest.$ac_ext <<_ACEOF
8637/* end confdefs.h. */
8638$ac_includes_default
8639 typedef long long ac__type_sizeof_;
8640int
8641main ()
8642{
8643static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8644test_array [0] = 0
8645
8646 ;
8647 return 0;
8648}
8649_ACEOF
8650rm -f conftest.$ac_objext
8651if { (ac_try="$ac_compile"
8652case "(($ac_try" in
8653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8654 *) ac_try_echo=$ac_try;;
8655esac
8656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8657 (eval "$ac_compile") 2>conftest.er1
8658 ac_status=$?
8659 grep -v '^ *+' conftest.er1 >conftest.err
8660 rm -f conftest.er1
8661 cat conftest.err >&5
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); } && {
8664 test -z "$ac_cxx_werror_flag" ||
8665 test ! -s conftest.err
8666 } && test -s conftest.$ac_objext; then
8667 ac_hi=$ac_mid
8668else
8669 echo "$as_me: failed program was:" >&5
8670sed 's/^/| /' conftest.$ac_ext >&5
8671
8672 ac_lo=`expr '(' $ac_mid ')' + 1`
8673fi
8674
8675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8676done
8677case $ac_lo in
8678?*) ac_cv_sizeof_long_long=$ac_lo;;
8679'') if test "$ac_cv_type_long_long" = yes; then
8680 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
8681See \`config.log' for more details." >&5
8682echo "$as_me: error: cannot compute sizeof (long long)
8683See \`config.log' for more details." >&2;}
8684 { (exit 77); exit 77; }; }
8685 else
8686 ac_cv_sizeof_long_long=0
8687 fi ;;
8688esac
8689else
8690 cat >conftest.$ac_ext <<_ACEOF
8691/* confdefs.h. */
8692_ACEOF
8693cat confdefs.h >>conftest.$ac_ext
8694cat >>conftest.$ac_ext <<_ACEOF
8695/* end confdefs.h. */
8696$ac_includes_default
8697 typedef long long ac__type_sizeof_;
8698static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8699static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8700#include <stdio.h>
8701#include <stdlib.h>
8702int
8703main ()
8704{
8705
8706 FILE *f = fopen ("conftest.val", "w");
8707 if (! f)
8708 return 1;
8709 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8710 {
8711 long int i = longval ();
8712 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8713 return 1;
8714 fprintf (f, "%ld\n", i);
8715 }
8716 else
8717 {
8718 unsigned long int i = ulongval ();
8719 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8720 return 1;
8721 fprintf (f, "%lu\n", i);
8722 }
8723 return ferror (f) || fclose (f) != 0;
8724
8725 ;
8726 return 0;
8727}
8728_ACEOF
8729rm -f conftest$ac_exeext
8730if { (ac_try="$ac_link"
8731case "(($ac_try" in
8732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8733 *) ac_try_echo=$ac_try;;
8734esac
8735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8736 (eval "$ac_link") 2>&5
8737 ac_status=$?
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8740 { (case "(($ac_try" in
8741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8742 *) ac_try_echo=$ac_try;;
8743esac
8744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8745 (eval "$ac_try") 2>&5
8746 ac_status=$?
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); }; }; then
8749 ac_cv_sizeof_long_long=`cat conftest.val`
8750else
8751 echo "$as_me: program exited with status $ac_status" >&5
8752echo "$as_me: failed program was:" >&5
8753sed 's/^/| /' conftest.$ac_ext >&5
8754
8755( exit $ac_status )
8756if test "$ac_cv_type_long_long" = yes; then
8757 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
8758See \`config.log' for more details." >&5
8759echo "$as_me: error: cannot compute sizeof (long long)
8760See \`config.log' for more details." >&2;}
8761 { (exit 77); exit 77; }; }
8762 else
8763 ac_cv_sizeof_long_long=0
8764 fi
8765fi
8766rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8767fi
8768rm -f conftest.val
8769fi
8770{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8771echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
8772
8773
8774
8775cat >>confdefs.h <<_ACEOF
8776#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8777_ACEOF
8778
8779
8780{ echo "$as_me:$LINENO: checking for int *" >&5
8781echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
8782if test "${ac_cv_type_int_p+set}" = set; then
8783 echo $ECHO_N "(cached) $ECHO_C" >&6
8784else
8785 cat >conftest.$ac_ext <<_ACEOF
8786/* confdefs.h. */
8787_ACEOF
8788cat confdefs.h >>conftest.$ac_ext
8789cat >>conftest.$ac_ext <<_ACEOF
8790/* end confdefs.h. */
8791$ac_includes_default
8792typedef int * ac__type_new_;
8793int
8794main ()
8795{
8796if ((ac__type_new_ *) 0)
8797 return 0;
8798if (sizeof (ac__type_new_))
8799 return 0;
8800 ;
8801 return 0;
8802}
8803_ACEOF
8804rm -f conftest.$ac_objext
8805if { (ac_try="$ac_compile"
8806case "(($ac_try" in
8807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8808 *) ac_try_echo=$ac_try;;
8809esac
8810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8811 (eval "$ac_compile") 2>conftest.er1
8812 ac_status=$?
8813 grep -v '^ *+' conftest.er1 >conftest.err
8814 rm -f conftest.er1
8815 cat conftest.err >&5
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); } && {
8818 test -z "$ac_cxx_werror_flag" ||
8819 test ! -s conftest.err
8820 } && test -s conftest.$ac_objext; then
8821 ac_cv_type_int_p=yes
8822else
8823 echo "$as_me: failed program was:" >&5
8824sed 's/^/| /' conftest.$ac_ext >&5
8825
8826 ac_cv_type_int_p=no
8827fi
8828
8829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8830fi
8831{ echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
8832echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
8833
8834# The cast to long int works around a bug in the HP C Compiler
8835# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8836# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8837# This bug is HP SR number 8606223364.
8838{ echo "$as_me:$LINENO: checking size of int *" >&5
8839echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
8840if test "${ac_cv_sizeof_int_p+set}" = set; then
8841 echo $ECHO_N "(cached) $ECHO_C" >&6
8842else
8843 if test "$cross_compiling" = yes; then
8844 # Depending upon the size, compute the lo and hi bounds.
8845cat >conftest.$ac_ext <<_ACEOF
8846/* confdefs.h. */
8847_ACEOF
8848cat confdefs.h >>conftest.$ac_ext
8849cat >>conftest.$ac_ext <<_ACEOF
8850/* end confdefs.h. */
8851$ac_includes_default
8852 typedef int * ac__type_sizeof_;
8853int
8854main ()
8855{
8856static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8857test_array [0] = 0
8858
8859 ;
8860 return 0;
8861}
8862_ACEOF
8863rm -f conftest.$ac_objext
8864if { (ac_try="$ac_compile"
8865case "(($ac_try" in
8866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8867 *) ac_try_echo=$ac_try;;
8868esac
8869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8870 (eval "$ac_compile") 2>conftest.er1
8871 ac_status=$?
8872 grep -v '^ *+' conftest.er1 >conftest.err
8873 rm -f conftest.er1
8874 cat conftest.err >&5
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); } && {
8877 test -z "$ac_cxx_werror_flag" ||
8878 test ! -s conftest.err
8879 } && test -s conftest.$ac_objext; then
8880 ac_lo=0 ac_mid=0
8881 while :; do
8882 cat >conftest.$ac_ext <<_ACEOF
8883/* confdefs.h. */
8884_ACEOF
8885cat confdefs.h >>conftest.$ac_ext
8886cat >>conftest.$ac_ext <<_ACEOF
8887/* end confdefs.h. */
8888$ac_includes_default
8889 typedef int * ac__type_sizeof_;
8890int
8891main ()
8892{
8893static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8894test_array [0] = 0
8895
8896 ;
8897 return 0;
8898}
8899_ACEOF
8900rm -f conftest.$ac_objext
8901if { (ac_try="$ac_compile"
8902case "(($ac_try" in
8903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8904 *) ac_try_echo=$ac_try;;
8905esac
8906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8907 (eval "$ac_compile") 2>conftest.er1
8908 ac_status=$?
8909 grep -v '^ *+' conftest.er1 >conftest.err
8910 rm -f conftest.er1
8911 cat conftest.err >&5
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); } && {
8914 test -z "$ac_cxx_werror_flag" ||
8915 test ! -s conftest.err
8916 } && test -s conftest.$ac_objext; then
8917 ac_hi=$ac_mid; break
8918else
8919 echo "$as_me: failed program was:" >&5
8920sed 's/^/| /' conftest.$ac_ext >&5
8921
8922 ac_lo=`expr $ac_mid + 1`
8923 if test $ac_lo -le $ac_mid; then
8924 ac_lo= ac_hi=
8925 break
8926 fi
8927 ac_mid=`expr 2 '*' $ac_mid + 1`
8928fi
8929
8930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8931 done
8932else
8933 echo "$as_me: failed program was:" >&5
8934sed 's/^/| /' conftest.$ac_ext >&5
8935
8936 cat >conftest.$ac_ext <<_ACEOF
8937/* confdefs.h. */
8938_ACEOF
8939cat confdefs.h >>conftest.$ac_ext
8940cat >>conftest.$ac_ext <<_ACEOF
8941/* end confdefs.h. */
8942$ac_includes_default
8943 typedef int * ac__type_sizeof_;
8944int
8945main ()
8946{
8947static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8948test_array [0] = 0
8949
8950 ;
8951 return 0;
8952}
8953_ACEOF
8954rm -f conftest.$ac_objext
8955if { (ac_try="$ac_compile"
8956case "(($ac_try" in
8957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8958 *) ac_try_echo=$ac_try;;
8959esac
8960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8961 (eval "$ac_compile") 2>conftest.er1
8962 ac_status=$?
8963 grep -v '^ *+' conftest.er1 >conftest.err
8964 rm -f conftest.er1
8965 cat conftest.err >&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } && {
8968 test -z "$ac_cxx_werror_flag" ||
8969 test ! -s conftest.err
8970 } && test -s conftest.$ac_objext; then
8971 ac_hi=-1 ac_mid=-1
8972 while :; do
8973 cat >conftest.$ac_ext <<_ACEOF
8974/* confdefs.h. */
8975_ACEOF
8976cat confdefs.h >>conftest.$ac_ext
8977cat >>conftest.$ac_ext <<_ACEOF
8978/* end confdefs.h. */
8979$ac_includes_default
8980 typedef int * ac__type_sizeof_;
8981int
8982main ()
8983{
8984static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8985test_array [0] = 0
8986
8987 ;
8988 return 0;
8989}
8990_ACEOF
8991rm -f conftest.$ac_objext
8992if { (ac_try="$ac_compile"
8993case "(($ac_try" in
8994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8995 *) ac_try_echo=$ac_try;;
8996esac
8997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8998 (eval "$ac_compile") 2>conftest.er1
8999 ac_status=$?
9000 grep -v '^ *+' conftest.er1 >conftest.err
9001 rm -f conftest.er1
9002 cat conftest.err >&5
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); } && {
9005 test -z "$ac_cxx_werror_flag" ||
9006 test ! -s conftest.err
9007 } && test -s conftest.$ac_objext; then
9008 ac_lo=$ac_mid; break
9009else
9010 echo "$as_me: failed program was:" >&5
9011sed 's/^/| /' conftest.$ac_ext >&5
9012
9013 ac_hi=`expr '(' $ac_mid ')' - 1`
9014 if test $ac_mid -le $ac_hi; then
9015 ac_lo= ac_hi=
9016 break
9017 fi
9018 ac_mid=`expr 2 '*' $ac_mid`
9019fi
9020
9021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9022 done
9023else
9024 echo "$as_me: failed program was:" >&5
9025sed 's/^/| /' conftest.$ac_ext >&5
9026
9027 ac_lo= ac_hi=
9028fi
9029
9030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9031fi
9032
9033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9034# Binary search between lo and hi bounds.
9035while test "x$ac_lo" != "x$ac_hi"; do
9036 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9037 cat >conftest.$ac_ext <<_ACEOF
9038/* confdefs.h. */
9039_ACEOF
9040cat confdefs.h >>conftest.$ac_ext
9041cat >>conftest.$ac_ext <<_ACEOF
9042/* end confdefs.h. */
9043$ac_includes_default
9044 typedef int * ac__type_sizeof_;
9045int
9046main ()
9047{
9048static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9049test_array [0] = 0
9050
9051 ;
9052 return 0;
9053}
9054_ACEOF
9055rm -f conftest.$ac_objext
9056if { (ac_try="$ac_compile"
9057case "(($ac_try" in
9058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9059 *) ac_try_echo=$ac_try;;
9060esac
9061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9062 (eval "$ac_compile") 2>conftest.er1
9063 ac_status=$?
9064 grep -v '^ *+' conftest.er1 >conftest.err
9065 rm -f conftest.er1
9066 cat conftest.err >&5
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); } && {
9069 test -z "$ac_cxx_werror_flag" ||
9070 test ! -s conftest.err
9071 } && test -s conftest.$ac_objext; then
9072 ac_hi=$ac_mid
9073else
9074 echo "$as_me: failed program was:" >&5
9075sed 's/^/| /' conftest.$ac_ext >&5
9076
9077 ac_lo=`expr '(' $ac_mid ')' + 1`
9078fi
9079
9080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9081done
9082case $ac_lo in
9083?*) ac_cv_sizeof_int_p=$ac_lo;;
9084'') if test "$ac_cv_type_int_p" = yes; then
9085 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
9086See \`config.log' for more details." >&5
9087echo "$as_me: error: cannot compute sizeof (int *)
9088See \`config.log' for more details." >&2;}
9089 { (exit 77); exit 77; }; }
9090 else
9091 ac_cv_sizeof_int_p=0
9092 fi ;;
9093esac
9094else
9095 cat >conftest.$ac_ext <<_ACEOF
9096/* confdefs.h. */
9097_ACEOF
9098cat confdefs.h >>conftest.$ac_ext
9099cat >>conftest.$ac_ext <<_ACEOF
9100/* end confdefs.h. */
9101$ac_includes_default
9102 typedef int * ac__type_sizeof_;
9103static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9104static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9105#include <stdio.h>
9106#include <stdlib.h>
9107int
9108main ()
9109{
9110
9111 FILE *f = fopen ("conftest.val", "w");
9112 if (! f)
9113 return 1;
9114 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9115 {
9116 long int i = longval ();
9117 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9118 return 1;
9119 fprintf (f, "%ld\n", i);
9120 }
9121 else
9122 {
9123 unsigned long int i = ulongval ();
9124 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9125 return 1;
9126 fprintf (f, "%lu\n", i);
9127 }
9128 return ferror (f) || fclose (f) != 0;
9129
9130 ;
9131 return 0;
9132}
9133_ACEOF
9134rm -f conftest$ac_exeext
9135if { (ac_try="$ac_link"
9136case "(($ac_try" in
9137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9138 *) ac_try_echo=$ac_try;;
9139esac
9140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9141 (eval "$ac_link") 2>&5
9142 ac_status=$?
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9145 { (case "(($ac_try" in
9146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9147 *) ac_try_echo=$ac_try;;
9148esac
9149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9150 (eval "$ac_try") 2>&5
9151 ac_status=$?
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); }; }; then
9154 ac_cv_sizeof_int_p=`cat conftest.val`
9155else
9156 echo "$as_me: program exited with status $ac_status" >&5
9157echo "$as_me: failed program was:" >&5
9158sed 's/^/| /' conftest.$ac_ext >&5
9159
9160( exit $ac_status )
9161if test "$ac_cv_type_int_p" = yes; then
9162 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
9163See \`config.log' for more details." >&5
9164echo "$as_me: error: cannot compute sizeof (int *)
9165See \`config.log' for more details." >&2;}
9166 { (exit 77); exit 77; }; }
9167 else
9168 ac_cv_sizeof_int_p=0
9169 fi
9170fi
9171rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9172fi
9173rm -f conftest.val
9174fi
9175{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
9176echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
9177
9178
9179
9180cat >>confdefs.h <<_ACEOF
9181#define SIZEOF_INT_P $ac_cv_sizeof_int_p
9182_ACEOF
9183
9184
9185
9186
9187{ echo "$as_me:$LINENO: checking for int16_t" >&5
9188echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
9189if test "${rxvt_cv_int16_t+set}" = set; then
9190 echo $ECHO_N "(cached) $ECHO_C" >&6
9191else
9192 cat >conftest.$ac_ext <<_ACEOF
9193/* confdefs.h. */
9194_ACEOF
9195cat confdefs.h >>conftest.$ac_ext
9196cat >>conftest.$ac_ext <<_ACEOF
9197/* end confdefs.h. */
9198#include <stdint.h>
9199int
9200main ()
9201{
9202int16_t dummy;
9203 ;
9204 return 0;
9205}
9206_ACEOF
9207rm -f conftest.$ac_objext
9208if { (ac_try="$ac_compile"
9209case "(($ac_try" in
9210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9211 *) ac_try_echo=$ac_try;;
9212esac
9213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9214 (eval "$ac_compile") 2>conftest.er1
9215 ac_status=$?
9216 grep -v '^ *+' conftest.er1 >conftest.err
9217 rm -f conftest.er1
9218 cat conftest.err >&5
9219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220 (exit $ac_status); } && {
9221 test -z "$ac_cxx_werror_flag" ||
9222 test ! -s conftest.err
9223 } && test -s conftest.$ac_objext; then
9224 rxvt_cv_int16_t=yes
9225else
9226 echo "$as_me: failed program was:" >&5
9227sed 's/^/| /' conftest.$ac_ext >&5
9228
9229 if test "$ac_cv_sizeof_char" -ge 2; then
9230 rxvt_cv_int16_t=" char"
9231else
9232 if test "$ac_cv_sizeof_short" -ge 2; then
9233 rxvt_cv_int16_t=" short"
9234 else
9235 if test "$ac_cv_sizeof_int" -ge 2; then
9236 rxvt_cv_int16_t=" int"
9237 else
9238 if test "$ac_cv_sizeof_long" -ge 2; then
9239 rxvt_cv_int16_t=" long"
9240 else
9241 if test "$ac_cv_sizeof_long_long" -ge 2; then
9242 rxvt_cv_int16_t=" long long"
9243 else
9244 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
9245 fi
9246 fi
9247 fi
9248 fi
9249fi
9250fi
9251
9252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9253fi
9254{ echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
9255echo "${ECHO_T}$rxvt_cv_int16_t" >&6; }
9256if test x"$rxvt_cv_int16_t" != xyes; then
9257 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
9258else
9259 if test x"" = x; then
9260 rxvt_int16_typedef="/* typedef short int16_t; */"
9261 else
9262 rxvt_int16_typedef="/* typedef short int16_t; */"
9263 fi
9264fi
9265
9266{ echo "$as_me:$LINENO: checking for uint16_t" >&5
9267echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
9268if test "${rxvt_cv_uint16_t+set}" = set; then
9269 echo $ECHO_N "(cached) $ECHO_C" >&6
9270else
9271 cat >conftest.$ac_ext <<_ACEOF
9272/* confdefs.h. */
9273_ACEOF
9274cat confdefs.h >>conftest.$ac_ext
9275cat >>conftest.$ac_ext <<_ACEOF
9276/* end confdefs.h. */
9277#include <stdint.h>
9278int
9279main ()
9280{
9281uint16_t dummy;
9282 ;
9283 return 0;
9284}
9285_ACEOF
9286rm -f conftest.$ac_objext
9287if { (ac_try="$ac_compile"
9288case "(($ac_try" in
9289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9290 *) ac_try_echo=$ac_try;;
9291esac
9292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9293 (eval "$ac_compile") 2>conftest.er1
9294 ac_status=$?
9295 grep -v '^ *+' conftest.er1 >conftest.err
9296 rm -f conftest.er1
9297 cat conftest.err >&5
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); } && {
9300 test -z "$ac_cxx_werror_flag" ||
9301 test ! -s conftest.err
9302 } && test -s conftest.$ac_objext; then
9303 rxvt_cv_uint16_t=yes
9304else
9305 echo "$as_me: failed program was:" >&5
9306sed 's/^/| /' conftest.$ac_ext >&5
9307
9308 if test "$ac_cv_sizeof_char" -ge 2; then
9309 rxvt_cv_uint16_t="unsigned char"
9310else
9311 if test "$ac_cv_sizeof_short" -ge 2; then
9312 rxvt_cv_uint16_t="unsigned short"
9313 else
9314 if test "$ac_cv_sizeof_int" -ge 2; then
9315 rxvt_cv_uint16_t="unsigned int"
9316 else
9317 if test "$ac_cv_sizeof_long" -ge 2; then
9318 rxvt_cv_uint16_t="unsigned long"
9319 else
9320 if test "$ac_cv_sizeof_long_long" -ge 2; then
9321 rxvt_cv_uint16_t="unsigned long long"
9322 else
9323 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
9324 fi
9325 fi
9326 fi
9327 fi
9328fi
9329fi
9330
9331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9332fi
9333{ echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
9334echo "${ECHO_T}$rxvt_cv_uint16_t" >&6; }
9335if test x"$rxvt_cv_uint16_t" != xyes; then
9336 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
9337else
9338 if test x"unsigned" = x; then
9339 rxvt_uint16_typedef="/* typedef short uint16_t; */"
9340 else
9341 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
9342 fi
9343fi
9344
9345{ echo "$as_me:$LINENO: checking for int32_t" >&5
9346echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
9347if test "${rxvt_cv_int32_t+set}" = set; then
9348 echo $ECHO_N "(cached) $ECHO_C" >&6
9349else
9350 cat >conftest.$ac_ext <<_ACEOF
9351/* confdefs.h. */
9352_ACEOF
9353cat confdefs.h >>conftest.$ac_ext
9354cat >>conftest.$ac_ext <<_ACEOF
9355/* end confdefs.h. */
9356#include <stdint.h>
9357int
9358main ()
9359{
9360int32_t dummy;
9361 ;
9362 return 0;
9363}
9364_ACEOF
9365rm -f conftest.$ac_objext
9366if { (ac_try="$ac_compile"
9367case "(($ac_try" in
9368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9369 *) ac_try_echo=$ac_try;;
9370esac
9371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9372 (eval "$ac_compile") 2>conftest.er1
9373 ac_status=$?
9374 grep -v '^ *+' conftest.er1 >conftest.err
9375 rm -f conftest.er1
9376 cat conftest.err >&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); } && {
9379 test -z "$ac_cxx_werror_flag" ||
9380 test ! -s conftest.err
9381 } && test -s conftest.$ac_objext; then
9382 rxvt_cv_int32_t=yes
9383else
9384 echo "$as_me: failed program was:" >&5
9385sed 's/^/| /' conftest.$ac_ext >&5
9386
9387 if test "$ac_cv_sizeof_char" -ge 4; then
9388 rxvt_cv_int32_t=" char"
9389else
9390 if test "$ac_cv_sizeof_short" -ge 4; then
9391 rxvt_cv_int32_t=" short"
9392 else
9393 if test "$ac_cv_sizeof_int" -ge 4; then
9394 rxvt_cv_int32_t=" int"
9395 else
9396 if test "$ac_cv_sizeof_long" -ge 4; then
9397 rxvt_cv_int32_t=" long"
9398 else
9399 if test "$ac_cv_sizeof_long_long" -ge 4; then
9400 rxvt_cv_int32_t=" long long"
9401 else
9402 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
9403 fi
9404 fi
9405 fi
9406 fi
9407fi
9408fi
9409
9410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9411fi
9412{ echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
9413echo "${ECHO_T}$rxvt_cv_int32_t" >&6; }
9414if test x"$rxvt_cv_int32_t" != xyes; then
9415 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
9416else
9417 if test x"" = x; then
9418 rxvt_int32_typedef="/* typedef int int32_t; */"
9419 else
9420 rxvt_int32_typedef="/* typedef int int32_t; */"
9421 fi
9422fi
9423
9424{ echo "$as_me:$LINENO: checking for uint32_t" >&5
9425echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
9426if test "${rxvt_cv_uint32_t+set}" = set; then
9427 echo $ECHO_N "(cached) $ECHO_C" >&6
9428else
9429 cat >conftest.$ac_ext <<_ACEOF
9430/* confdefs.h. */
9431_ACEOF
9432cat confdefs.h >>conftest.$ac_ext
9433cat >>conftest.$ac_ext <<_ACEOF
9434/* end confdefs.h. */
9435#include <stdint.h>
9436int
9437main ()
9438{
9439uint32_t dummy;
9440 ;
9441 return 0;
9442}
9443_ACEOF
9444rm -f conftest.$ac_objext
9445if { (ac_try="$ac_compile"
9446case "(($ac_try" in
9447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9448 *) ac_try_echo=$ac_try;;
9449esac
9450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9451 (eval "$ac_compile") 2>conftest.er1
9452 ac_status=$?
9453 grep -v '^ *+' conftest.er1 >conftest.err
9454 rm -f conftest.er1
9455 cat conftest.err >&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); } && {
9458 test -z "$ac_cxx_werror_flag" ||
9459 test ! -s conftest.err
9460 } && test -s conftest.$ac_objext; then
9461 rxvt_cv_uint32_t=yes
9462else
9463 echo "$as_me: failed program was:" >&5
9464sed 's/^/| /' conftest.$ac_ext >&5
9465
9466 if test "$ac_cv_sizeof_char" -ge 4; then
9467 rxvt_cv_uint32_t="unsigned char"
9468else
9469 if test "$ac_cv_sizeof_short" -ge 4; then
9470 rxvt_cv_uint32_t="unsigned short"
9471 else
9472 if test "$ac_cv_sizeof_int" -ge 4; then
9473 rxvt_cv_uint32_t="unsigned int"
9474 else
9475 if test "$ac_cv_sizeof_long" -ge 4; then
9476 rxvt_cv_uint32_t="unsigned long"
9477 else
9478 if test "$ac_cv_sizeof_long_long" -ge 4; then
9479 rxvt_cv_uint32_t="unsigned long long"
9480 else
9481 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
9482 fi
9483 fi
9484 fi
9485 fi
9486fi
9487fi
9488
9489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9490fi
9491{ echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
9492echo "${ECHO_T}$rxvt_cv_uint32_t" >&6; }
9493if test x"$rxvt_cv_uint32_t" != xyes; then
9494 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
9495else
9496 if test x"unsigned" = x; then
9497 rxvt_uint32_typedef="/* typedef int uint32_t; */"
9498 else
9499 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
9500 fi
9501fi
9502
9503if test "$ac_cv_sizeof_int_p" -eq 8; then
9504 rxvt_intp_define="#define intp_t int64_t"
9505 rxvt_u_intp_define="#define u_intp_t u_int64_t"
9506else
9507 if test "$ac_cv_sizeof_int_p" -eq 4; then
9508 rxvt_intp_define="#define intp_t int32_t"
9509 rxvt_u_intp_define="#define u_intp_t u_int32_t"
9510 else
9511 if test "$ac_cv_sizeof_int_p" -eq 2; then
9512 rxvt_intp_define="#define intp_t int16_t"
9513 rxvt_u_intp_define="#define u_intp_t u_int16_t"
9514 else
9515 rxvt_intp_define="#error set intp_t"
9516 rxvt_u_intp_define="#error set u_intp_t"
9517 fi
9518 fi
9519fi
9520
9521
9522
9523{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9524echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
9525if test "${ac_cv_type_signal+set}" = set; then
9526 echo $ECHO_N "(cached) $ECHO_C" >&6
9527else
9528 cat >conftest.$ac_ext <<_ACEOF
9529/* confdefs.h. */
9530_ACEOF
9531cat confdefs.h >>conftest.$ac_ext
9532cat >>conftest.$ac_ext <<_ACEOF
9533/* end confdefs.h. */
9534#include <sys/types.h>
9535#include <signal.h>
9536
9537int
9538main ()
9539{
9540return *(signal (0, 0)) (0) == 1;
9541 ;
9542 return 0;
9543}
9544_ACEOF
9545rm -f conftest.$ac_objext
9546if { (ac_try="$ac_compile"
9547case "(($ac_try" in
9548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9549 *) ac_try_echo=$ac_try;;
9550esac
9551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9552 (eval "$ac_compile") 2>conftest.er1
9553 ac_status=$?
9554 grep -v '^ *+' conftest.er1 >conftest.err
9555 rm -f conftest.er1
9556 cat conftest.err >&5
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); } && {
9559 test -z "$ac_cxx_werror_flag" ||
9560 test ! -s conftest.err
9561 } && test -s conftest.$ac_objext; then
9562 ac_cv_type_signal=int
9563else
9564 echo "$as_me: failed program was:" >&5
9565sed 's/^/| /' conftest.$ac_ext >&5
9566
9567 ac_cv_type_signal=void
9568fi
9569
9570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9571fi
9572{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9573echo "${ECHO_T}$ac_cv_type_signal" >&6; }
9574
9575cat >>confdefs.h <<_ACEOF
9576#define RETSIGTYPE $ac_cv_type_signal
9577_ACEOF
9578
9579
9580
9581
9582
9583
9584for ac_func in \ 8487for ac_func in unsetenv
9585 unsetenv \
9586 setutent \
9587 on_exit \
9588
9589do 8488do
9590as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8489as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9591{ echo "$as_me:$LINENO: checking for $ac_func" >&5 8490{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9592echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8491echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9593if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 8492if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9732 8631
9733 8632
9734 8633
9735 8634
9736for ac_func in \ 8635for ac_func in \
9737 ttyslot \
9738 updwtmp \ 8636 updwtmp \
9739 updwtmpx \ 8637 updwtmpx \
8638 updlastlogx \
9740 8639
9741do 8640do
9742as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8641as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9743{ echo "$as_me:$LINENO: checking for $ac_func" >&5 8642{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9744echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8643echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9830fi 8729fi
9831done 8730done
9832 8731
9833 8732
9834 8733
9835
9836
9837for ac_header in \ 8734for ac_header in lastlog.h
9838 utmp.h \
9839 utmpx.h \
9840 lastlog.h \
9841
9842do 8735do
9843as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8736as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9844if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8737if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9845 { echo "$as_me:$LINENO: checking for $ac_header" >&5 8738 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9846echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8739echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9977 8870
9978done 8871done
9979 8872
9980 8873
9981 8874
9982if test "${ac_cv_header_utmp_h+set}" = set; then 8875
8876for ac_header in utmp.h
8877do
8878as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8879if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9983 { echo "$as_me:$LINENO: checking for utmp.h" >&5 8880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9984echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } 8881echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9985if test "${ac_cv_header_utmp_h+set}" = set; then 8882if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9986 echo $ECHO_N "(cached) $ECHO_C" >&6 8883 echo $ECHO_N "(cached) $ECHO_C" >&6
9987fi 8884fi
8885ac_res=`eval echo '${'$as_ac_Header'}'`
9988{ echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 8886 { echo "$as_me:$LINENO: result: $ac_res" >&5
9989echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } 8887echo "${ECHO_T}$ac_res" >&6; }
9990else 8888else
9991 # Is the header compilable? 8889 # Is the header compilable?
9992{ echo "$as_me:$LINENO: checking utmp.h usability" >&5 8890{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9993echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6; } 8891echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9994cat >conftest.$ac_ext <<_ACEOF 8892cat >conftest.$ac_ext <<_ACEOF
9995/* confdefs.h. */ 8893/* confdefs.h. */
9996_ACEOF 8894_ACEOF
9997cat confdefs.h >>conftest.$ac_ext 8895cat confdefs.h >>conftest.$ac_ext
9998cat >>conftest.$ac_ext <<_ACEOF 8896cat >>conftest.$ac_ext <<_ACEOF
9999/* end confdefs.h. */ 8897/* end confdefs.h. */
10000$ac_includes_default 8898$ac_includes_default
10001#include <utmp.h> 8899#include <$ac_header>
10002_ACEOF 8900_ACEOF
10003rm -f conftest.$ac_objext 8901rm -f conftest.$ac_objext
10004if { (ac_try="$ac_compile" 8902if { (ac_try="$ac_compile"
10005case "(($ac_try" in 8903case "(($ac_try" in
10006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10029{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8927{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10030echo "${ECHO_T}$ac_header_compiler" >&6; } 8928echo "${ECHO_T}$ac_header_compiler" >&6; }
10031 8929
10032# Is the header present? 8930# Is the header present?
10033{ echo "$as_me:$LINENO: checking utmp.h presence" >&5 8931{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10034echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6; } 8932echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10035cat >conftest.$ac_ext <<_ACEOF 8933cat >conftest.$ac_ext <<_ACEOF
10036/* confdefs.h. */ 8934/* confdefs.h. */
10037_ACEOF 8935_ACEOF
10038cat confdefs.h >>conftest.$ac_ext 8936cat confdefs.h >>conftest.$ac_ext
10039cat >>conftest.$ac_ext <<_ACEOF 8937cat >>conftest.$ac_ext <<_ACEOF
10040/* end confdefs.h. */ 8938/* end confdefs.h. */
10041#include <utmp.h> 8939#include <$ac_header>
10042_ACEOF 8940_ACEOF
10043if { (ac_try="$ac_cpp conftest.$ac_ext" 8941if { (ac_try="$ac_cpp conftest.$ac_ext"
10044case "(($ac_try" in 8942case "(($ac_try" in
10045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046 *) ac_try_echo=$ac_try;; 8944 *) ac_try_echo=$ac_try;;
10069echo "${ECHO_T}$ac_header_preproc" >&6; } 8967echo "${ECHO_T}$ac_header_preproc" >&6; }
10070 8968
10071# So? What about this header? 8969# So? What about this header?
10072case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 8970case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10073 yes:no: ) 8971 yes:no: )
10074 { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 8972 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10075echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 8973echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10076 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5 8974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10077echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;} 8975echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10078 ac_header_preproc=yes 8976 ac_header_preproc=yes
10079 ;; 8977 ;;
10080 no:yes:* ) 8978 no:yes:* )
10081 { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5 8979 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10082echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;} 8980echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10083 { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5 8981 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10084echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;} 8982echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10085 { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5 8983 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10086echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;} 8984echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10087 { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5 8985 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10088echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;} 8986echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10089 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5 8987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10090echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;} 8988echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10091 { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5 8989 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10092echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;} 8990echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10093 8991
10094 ;; 8992 ;;
10095esac 8993esac
10096{ echo "$as_me:$LINENO: checking for utmp.h" >&5 8994{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10097echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } 8995echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10098if test "${ac_cv_header_utmp_h+set}" = set; then 8996if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10099 echo $ECHO_N "(cached) $ECHO_C" >&6 8997 echo $ECHO_N "(cached) $ECHO_C" >&6
10100else 8998else
10101 ac_cv_header_utmp_h=$ac_header_preproc 8999 eval "$as_ac_Header=\$ac_header_preproc"
10102fi 9000fi
9001ac_res=`eval echo '${'$as_ac_Header'}'`
10103{ echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 9002 { echo "$as_me:$LINENO: result: $ac_res" >&5
10104echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } 9003echo "${ECHO_T}$ac_res" >&6; }
10105 9004
10106fi 9005fi
10107if test $ac_cv_header_utmp_h = yes; then 9006if test `eval echo '${'$as_ac_Header'}'` = yes; then
9007 cat >>confdefs.h <<_ACEOF
9008#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9009_ACEOF
10108 { echo "$as_me:$LINENO: checking for struct utmp" >&5 9010 { echo "$as_me:$LINENO: checking for struct utmp" >&5
10109echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; } 9011echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; }
10110if test "${struct_utmp+set}" = set; then 9012if test "${struct_utmp+set}" = set; then
10111 echo $ECHO_N "(cached) $ECHO_C" >&6 9013 echo $ECHO_N "(cached) $ECHO_C" >&6
10112else 9014else
10113 cat >conftest.$ac_ext <<_ACEOF 9015 cat >conftest.$ac_ext <<_ACEOF
10280 9182
10281fi 9183fi
10282 9184
10283fi 9185fi
10284 9186
9187done
10285 9188
10286 9189
10287if test "${ac_cv_header_utmpx_h+set}" = set; then 9190
9191for ac_header in utmpx.h
9192do
9193as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9194if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10288 { echo "$as_me:$LINENO: checking for utmpx.h" >&5 9195 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10289echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } 9196echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10290if test "${ac_cv_header_utmpx_h+set}" = set; then 9197if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10291 echo $ECHO_N "(cached) $ECHO_C" >&6 9198 echo $ECHO_N "(cached) $ECHO_C" >&6
10292fi 9199fi
9200ac_res=`eval echo '${'$as_ac_Header'}'`
10293{ echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 9201 { echo "$as_me:$LINENO: result: $ac_res" >&5
10294echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } 9202echo "${ECHO_T}$ac_res" >&6; }
10295else 9203else
10296 # Is the header compilable? 9204 # Is the header compilable?
10297{ echo "$as_me:$LINENO: checking utmpx.h usability" >&5 9205{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10298echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6; } 9206echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10299cat >conftest.$ac_ext <<_ACEOF 9207cat >conftest.$ac_ext <<_ACEOF
10300/* confdefs.h. */ 9208/* confdefs.h. */
10301_ACEOF 9209_ACEOF
10302cat confdefs.h >>conftest.$ac_ext 9210cat confdefs.h >>conftest.$ac_ext
10303cat >>conftest.$ac_ext <<_ACEOF 9211cat >>conftest.$ac_ext <<_ACEOF
10304/* end confdefs.h. */ 9212/* end confdefs.h. */
10305$ac_includes_default 9213$ac_includes_default
10306#include <utmpx.h> 9214#include <$ac_header>
10307_ACEOF 9215_ACEOF
10308rm -f conftest.$ac_objext 9216rm -f conftest.$ac_objext
10309if { (ac_try="$ac_compile" 9217if { (ac_try="$ac_compile"
10310case "(($ac_try" in 9218case "(($ac_try" in
10311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10334{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9242{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10335echo "${ECHO_T}$ac_header_compiler" >&6; } 9243echo "${ECHO_T}$ac_header_compiler" >&6; }
10336 9244
10337# Is the header present? 9245# Is the header present?
10338{ echo "$as_me:$LINENO: checking utmpx.h presence" >&5 9246{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10339echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6; } 9247echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10340cat >conftest.$ac_ext <<_ACEOF 9248cat >conftest.$ac_ext <<_ACEOF
10341/* confdefs.h. */ 9249/* confdefs.h. */
10342_ACEOF 9250_ACEOF
10343cat confdefs.h >>conftest.$ac_ext 9251cat confdefs.h >>conftest.$ac_ext
10344cat >>conftest.$ac_ext <<_ACEOF 9252cat >>conftest.$ac_ext <<_ACEOF
10345/* end confdefs.h. */ 9253/* end confdefs.h. */
10346#include <utmpx.h> 9254#include <$ac_header>
10347_ACEOF 9255_ACEOF
10348if { (ac_try="$ac_cpp conftest.$ac_ext" 9256if { (ac_try="$ac_cpp conftest.$ac_ext"
10349case "(($ac_try" in 9257case "(($ac_try" in
10350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10351 *) ac_try_echo=$ac_try;; 9259 *) ac_try_echo=$ac_try;;
10374echo "${ECHO_T}$ac_header_preproc" >&6; } 9282echo "${ECHO_T}$ac_header_preproc" >&6; }
10375 9283
10376# So? What about this header? 9284# So? What about this header?
10377case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 9285case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10378 yes:no: ) 9286 yes:no: )
10379 { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5 9287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10380echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 9288echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10381 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5 9289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10382echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;} 9290echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10383 ac_header_preproc=yes 9291 ac_header_preproc=yes
10384 ;; 9292 ;;
10385 no:yes:* ) 9293 no:yes:* )
10386 { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5 9294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10387echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;} 9295echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10388 { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5 9296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10389echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;} 9297echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10390 { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5 9298 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10391echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;} 9299echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10392 { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5 9300 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10393echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;} 9301echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10394 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5 9302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10395echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;} 9303echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10396 { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5 9304 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10397echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;} 9305echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10398 9306
10399 ;; 9307 ;;
10400esac 9308esac
10401{ echo "$as_me:$LINENO: checking for utmpx.h" >&5 9309{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10402echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } 9310echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10403if test "${ac_cv_header_utmpx_h+set}" = set; then 9311if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10404 echo $ECHO_N "(cached) $ECHO_C" >&6 9312 echo $ECHO_N "(cached) $ECHO_C" >&6
10405else 9313else
10406 ac_cv_header_utmpx_h=$ac_header_preproc 9314 eval "$as_ac_Header=\$ac_header_preproc"
10407fi 9315fi
9316ac_res=`eval echo '${'$as_ac_Header'}'`
10408{ echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 9317 { echo "$as_me:$LINENO: result: $ac_res" >&5
10409echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } 9318echo "${ECHO_T}$ac_res" >&6; }
10410 9319
10411fi 9320fi
10412if test $ac_cv_header_utmpx_h = yes; then 9321if test `eval echo '${'$as_ac_Header'}'` = yes; then
9322 cat >>confdefs.h <<_ACEOF
9323#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9324_ACEOF
10413 { echo "$as_me:$LINENO: checking for struct utmpx" >&5 9325 { echo "$as_me:$LINENO: checking for struct utmpx" >&5
10414echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; } 9326echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; }
10415if test "${struct_utmpx+set}" = set; then 9327if test "${struct_utmpx+set}" = set; then
10416 echo $ECHO_N "(cached) $ECHO_C" >&6 9328 echo $ECHO_N "(cached) $ECHO_C" >&6
10417else 9329else
10418 cat >conftest.$ac_ext <<_ACEOF 9330 cat >conftest.$ac_ext <<_ACEOF
10585 9497
10586fi 9498fi
10587 9499
10588fi 9500fi
10589 9501
9502done
10590 9503
10591{ echo "$as_me:$LINENO: checking for struct lastlog" >&5 9504{ echo "$as_me:$LINENO: checking for struct lastlog" >&5
10592echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } 9505echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; }
10593if test "${struct_lastlog+set}" = set; then 9506if test "${struct_lastlog+set}" = set; then
10594 echo $ECHO_N "(cached) $ECHO_C" >&6 9507 echo $ECHO_N "(cached) $ECHO_C" >&6
11165 10078
11166cat >>confdefs.h <<_ACEOF 10079cat >>confdefs.h <<_ACEOF
11167#define LASTLOG_FILE "$path_lastlog" 10080#define LASTLOG_FILE "$path_lastlog"
11168_ACEOF 10081_ACEOF
11169 10082
11170 if test -d "$path_lastlog"; then
11171
11172cat >>confdefs.h <<\_ACEOF
11173#define LASTLOG_IS_DIR 1
11174_ACEOF
11175
11176 fi
11177fi 10083fi
11178 10084
11179{ echo "$as_me:$LINENO: checking where lastlogx is located" >&5 10085{ echo "$as_me:$LINENO: checking where lastlogx is located" >&5
11180echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } 10086echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; }
11181if test "${path_lastlogx+set}" = set; then 10087if test "${path_lastlogx+set}" = set; then
11263 10169
11264fi 10170fi
11265 10171
11266 10172
11267 10173
11268{ echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
11269echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6; }
11270if test "${rxvt_cv_path_ttytab+set}" = set; then
11271 echo $ECHO_N "(cached) $ECHO_C" >&6
11272else
11273 for ttys_file in /etc/ttys /etc/ttytab;
11274do
11275 if test -f "$ttys_file" ; then
11276 rxvt_cv_path_ttytab=$ttys_file
11277 break
11278 fi
11279done
11280 10174
11281fi
11282{ echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
11283echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6; }
11284if test x$rxvt_cv_path_ttytab != x; then
11285
11286cat >>confdefs.h <<_ACEOF
11287#define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
11288_ACEOF
11289
11290fi
11291
11292
11293ac_save_LIBS=$LIBS 10175save_LIBS=$LIBS
11294ac_save_CFLAGS=$CFLAGS 10176save_CFLAGS=$CFLAGS
11295CFLAGS="$CFLAGS $X_CFLAGS" 10177CFLAGS="$CFLAGS $X_CFLAGS"
11296LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 10178LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
11297if test x$support_xim = xyes; then 10179if test x$support_xim = xyes; then
11298 { echo "$as_me:$LINENO: checking for working Xlocale" >&5 10180 { echo "$as_me:$LINENO: checking for working Xlocale" >&5
11299echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } 10181echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; }
11474cat >>confdefs.h <<\_ACEOF 10356cat >>confdefs.h <<\_ACEOF
11475#define HAVE_XSETLOCALE 1 10357#define HAVE_XSETLOCALE 1
11476_ACEOF 10358_ACEOF
11477 10359
11478fi 10360fi
11479LIBS=$ac_save_LIBS 10361LIBS=$save_LIBS
11480CFLAGS=$ac_save_CFLAGS 10362CFLAGS=$save_CFLAGS
11481 10363
11482{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5 10364{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5
11483echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } 10365echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; }
11484if test "${rxvt_cv_func_setlocale+set}" = set; then 10366if test "${rxvt_cv_func_setlocale+set}" = set; then
11485 echo $ECHO_N "(cached) $ECHO_C" >&6 10367 echo $ECHO_N "(cached) $ECHO_C" >&6
11695 10577
11696 10578
11697 10579
11698 10580
11699 10581
10582
11700for ac_header in \ 10583for ac_header in \
11701 pty.h \ 10584 pty.h \
11702 util.h \ 10585 util.h \
11703 libutil.h \ 10586 libutil.h \
11704 sys/ioctl.h \ 10587 sys/ioctl.h \
11705 sys/stropts.h \ 10588 sys/stropts.h \
10589 stropts.h \
11706 10590
11707do 10591do
11708as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10592as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11709if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10593if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11710 { echo "$as_me:$LINENO: checking for $ac_header" >&5 10594 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12378echo "${ECHO_T}no" >&6; } 11262echo "${ECHO_T}no" >&6; }
12379fi 11263fi
12380 11264
12381 11265
12382 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then 11266 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
12383 LIBS="$LIBS `$PKG_CONFIG xft --libs`" 11267 X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS"
12384 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" 11268 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
12385 else 11269 else
12386 # Extract the first word of "xft-config", so it can be a program name with args. 11270 # Extract the first word of "xft-config", so it can be a program name with args.
12387set dummy xft-config; ac_word=$2 11271set dummy xft-config; ac_word=$2
12388{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11272{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12423echo "${ECHO_T}no" >&6; } 11307echo "${ECHO_T}no" >&6; }
12424fi 11308fi
12425 11309
12426 11310
12427 if test $XFT_CONFIG != no; then 11311 if test $XFT_CONFIG != no; then
12428 LIBS="$LIBS `$XFT_CONFIG --libs`" 11312 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
12429 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" 11313 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
12430 fi 11314 fi
12431 fi 11315 fi
12432 11316
11317 save_LIBS="$LIBS"
11318 LIBS="$LIBS $X_LIBS"
12433 11319
12434for ac_header in X11/Xft/Xft.h 11320for ac_header in X11/Xft/Xft.h
12435do 11321do
12436as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11322as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12437if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11323if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12570 support_xft=no 11456 support_xft=no
12571fi 11457fi
12572 11458
12573done 11459done
12574 11460
12575
12576{ echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 11461 { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
12577echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } 11462echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; }
12578if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then 11463if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then
12579 echo $ECHO_N "(cached) $ECHO_C" >&6 11464 echo $ECHO_N "(cached) $ECHO_C" >&6
12580else 11465else
12581 ac_check_lib_save_LIBS=$LIBS 11466 ac_check_lib_save_LIBS=$LIBS
12633LIBS=$ac_check_lib_save_LIBS 11518LIBS=$ac_check_lib_save_LIBS
12634fi 11519fi
12635{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 11520{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
12636echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } 11521echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; }
12637if test $ac_cv_lib_Xft_XftDrawString32 = yes; then 11522if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
12638 cat >>confdefs.h <<_ACEOF 11523 :
12639#define HAVE_LIBXFT 1
12640_ACEOF
12641
12642 LIBS="-lXft $LIBS"
12643
12644else 11524else
12645 support_xft=no 11525 support_xft=no
12646fi 11526fi
12647 11527
11528 LIBS="$save_LIBS"
12648 11529
12649 if test x$support_xft = xyes; then 11530 if test x$support_xft = xyes; then
12650 11531
12651cat >>confdefs.h <<\_ACEOF 11532cat >>confdefs.h <<\_ACEOF
12652#define XFT 1 11533#define XFT 1
12736_ACEOF 11617_ACEOF
12737 11618
12738fi 11619fi
12739 11620
12740 11621
11622scrolltypes=plain
11623
11624cat >>confdefs.h <<\_ACEOF
11625#define PLAIN_SCROLLBAR 1
11626_ACEOF
11627
11628
12741if test x$support_scroll_rxvt = xyes; then 11629if test x$support_scroll_rxvt = xyes; then
12742 11630
12743cat >>confdefs.h <<\_ACEOF 11631cat >>confdefs.h <<\_ACEOF
12744#define RXVT_SCROLLBAR 1 11632#define RXVT_SCROLLBAR 1
12745_ACEOF 11633_ACEOF
12746 11634
12747 scrolltypes="rxvt" 11635 scrolltypes="$scrolltypes rxvt"
12748fi 11636fi
12749if test x$support_scroll_next = xyes; then 11637if test x$support_scroll_next = xyes; then
12750 11638
12751cat >>confdefs.h <<\_ACEOF 11639cat >>confdefs.h <<\_ACEOF
12752#define NEXT_SCROLLBAR 1 11640#define NEXT_SCROLLBAR 1
12759cat >>confdefs.h <<\_ACEOF 11647cat >>confdefs.h <<\_ACEOF
12760#define XTERM_SCROLLBAR 1 11648#define XTERM_SCROLLBAR 1
12761_ACEOF 11649_ACEOF
12762 11650
12763 scrolltypes="$scrolltypes xterm" 11651 scrolltypes="$scrolltypes xterm"
12764fi
12765if test x$support_scroll_plain = xyes; then
12766
12767cat >>confdefs.h <<\_ACEOF
12768#define PLAIN_SCROLLBAR 1
12769_ACEOF
12770
12771 scrolltypes="$scrolltypes plain"
12772fi 11652fi
12773if test x$support_pointer_blank = xyes; then 11653if test x$support_pointer_blank = xyes; then
12774 11654
12775cat >>confdefs.h <<\_ACEOF 11655cat >>confdefs.h <<\_ACEOF
12776#define POINTER_BLANK 1 11656#define POINTER_BLANK 1
13039_ACEOF 11919_ACEOF
13040program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 11920program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
13041rm -f conftest.sed 11921rm -f conftest.sed
13042 11922
13043 11923
13044
13045
13046
13047if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
13048 include_stdint_h="#include <stdint.h>"
13049else
13050 include_stdint_h="/* #include <stdint.h> */"
13051fi
13052if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
13053 include_stdarg_h="#include <cstdarg>"
13054else
13055 include_stdarg_h="/* #include <cstdarg> */"
13056fi
13057if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
13058 include_stdlib_h="#include <cstdlib>"
13059else
13060 include_stdlib_h="/* #include <cstdlib> */"
13061fi
13062if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
13063 include_unistd_h="#include <unistd.h>"
13064else
13065 include_unistd_h="/* #include <unistd.h> */"
13066fi
13067if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
13068 include_string_h="#include <cstring>"
13069else
13070 include_string_h="/* #include <cstring> */"
13071fi
13072if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
13073 include_fcntl_h="#include <fcntl.h>"
13074else
13075 include_fcntl_h="/* #include <fcntl.h> */"
13076fi
13077if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
13078 include_util_h="#include <util.h>"
13079else
13080 include_util_h="/* #include <util.h> */"
13081fi
13082if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
13083 include_assert_h="#include <assert.h>"
13084else
13085 include_assert_h="/* #include <assert.h> */"
13086fi
13087if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
13088 include_sys_ioctl_h="#include <sys/ioctl.h>"
13089else
13090 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
13091fi
13092if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
13093 include_sys_select_h="#include <sys/select.h>"
13094else
13095 include_sys_select_h="/* #include <sys/select.h> */"
13096fi
13097if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
13098 include_sys_strredir_h="#include <sys/strredir.h>"
13099else
13100 include_sys_strredir_h="/* #include <sys/strredir.h> */"
13101fi
13102if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
13103 include_sys_time_h="#include <sys/time.h>"
13104else
13105 include_sys_time_h="/* #include <sys/time.h> */"
13106fi
13107if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
13108 include_time_h="#include <time.h>"
13109else
13110 include_time_h="/* #include <time.h> */"
13111fi
13112
13113ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" 11924ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile"
13114 11925
13115cat >confcache <<\_ACEOF 11926cat >confcache <<\_ACEOF
13116# This file is a shell script that caches the results of configure 11927# This file is a shell script that caches the results of configure
13117# tests run on this system so they can be shared between configure 11928# tests run on this system so they can be shared between configure
13118# scripts and configure runs, see configure's option --config-cache. 11929# scripts and configure runs, see configure's option --config-cache.
13667 case $ac_config_target in 12478 case $ac_config_target in
13668 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; 12479 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
13669 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12480 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13670 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 12481 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13671 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 12482 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13672 "src/rxvtlib.h") CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
13673 12483
13674 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 12484 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13675echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 12485echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13676 { (exit 1); exit 1; }; };; 12486 { (exit 1); exit 1; }; };;
13677 esac 12487 esac
13776host_cpu!$host_cpu$ac_delim 12586host_cpu!$host_cpu$ac_delim
13777host_vendor!$host_vendor$ac_delim 12587host_vendor!$host_vendor$ac_delim
13778host_os!$host_os$ac_delim 12588host_os!$host_os$ac_delim
13779VERSION!$VERSION$ac_delim 12589VERSION!$VERSION$ac_delim
13780DATE!$DATE$ac_delim 12590DATE!$DATE$ac_delim
13781LSMDATE!$LSMDATE$ac_delim
13782LIBVERSION!$LIBVERSION$ac_delim
13783CC!$CC$ac_delim 12591CC!$CC$ac_delim
13784CFLAGS!$CFLAGS$ac_delim 12592CFLAGS!$CFLAGS$ac_delim
13785LDFLAGS!$LDFLAGS$ac_delim 12593LDFLAGS!$LDFLAGS$ac_delim
13786CPPFLAGS!$CPPFLAGS$ac_delim 12594CPPFLAGS!$CPPFLAGS$ac_delim
13787ac_ct_CC!$ac_ct_CC$ac_delim 12595ac_ct_CC!$ac_ct_CC$ac_delim
13795INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 12603INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
13796INSTALL_DATA!$INSTALL_DATA$ac_delim 12604INSTALL_DATA!$INSTALL_DATA$ac_delim
13797GREP!$GREP$ac_delim 12605GREP!$GREP$ac_delim
13798EGREP!$EGREP$ac_delim 12606EGREP!$EGREP$ac_delim
13799LINKER!$LINKER$ac_delim 12607LINKER!$LINKER$ac_delim
13800INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim
13801RXVTNAME!$RXVTNAME$ac_delim 12608RXVTNAME!$RXVTNAME$ac_delim
12609CXXCPP!$CXXCPP$ac_delim
13802TIC!$TIC$ac_delim 12610TIC!$TIC$ac_delim
13803XMKMF!$XMKMF$ac_delim 12611XMKMF!$XMKMF$ac_delim
13804CXXCPP!$CXXCPP$ac_delim
13805X_CFLAGS!$X_CFLAGS$ac_delim 12612X_CFLAGS!$X_CFLAGS$ac_delim
13806X_PRE_LIBS!$X_PRE_LIBS$ac_delim 12613X_PRE_LIBS!$X_PRE_LIBS$ac_delim
13807X_LIBS!$X_LIBS$ac_delim 12614X_LIBS!$X_LIBS$ac_delim
13808X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim 12615X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
13809afterimage_config!$afterimage_config$ac_delim 12616afterimage_config!$afterimage_config$ac_delim
13810rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim
13811rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim
13812rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim
13813rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim
13814rxvt_intp_define!$rxvt_intp_define$ac_delim
13815rxvt_u_intp_define!$rxvt_u_intp_define$ac_delim
13816PKG_CONFIG!$PKG_CONFIG$ac_delim 12617PKG_CONFIG!$PKG_CONFIG$ac_delim
13817XFT_CONFIG!$XFT_CONFIG$ac_delim 12618XFT_CONFIG!$XFT_CONFIG$ac_delim
13818PERL!$PERL$ac_delim 12619PERL!$PERL$ac_delim
13819PERLLIB!$PERLLIB$ac_delim 12620PERLLIB!$PERLLIB$ac_delim
13820PERLFLAGS!$PERLFLAGS$ac_delim 12621PERLFLAGS!$PERLFLAGS$ac_delim
13821PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim 12622PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim
13822IF_PERL!$IF_PERL$ac_delim 12623IF_PERL!$IF_PERL$ac_delim
13823PERL_O!$PERL_O$ac_delim 12624PERL_O!$PERL_O$ac_delim
13824AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim 12625AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim
13825AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim 12626AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim
13826include_stdint_h!$include_stdint_h$ac_delim 12627LIBOBJS!$LIBOBJS$ac_delim
13827include_stdarg_h!$include_stdarg_h$ac_delim 12628LTLIBOBJS!$LTLIBOBJS$ac_delim
13828include_stdlib_h!$include_stdlib_h$ac_delim
13829include_unistd_h!$include_unistd_h$ac_delim
13830include_string_h!$include_string_h$ac_delim
13831_ACEOF 12629_ACEOF
13832 12630
13833 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 12631 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 85; then
13834 break 12632 break
13835 elif $ac_last_try; then 12633 elif $ac_last_try; then
13836 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 12634 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13837echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 12635echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13838 { (exit 1); exit 1; }; } 12636 { (exit 1); exit 1; }; }
13847 ac_eof=`expr $ac_eof + 1` 12645 ac_eof=`expr $ac_eof + 1`
13848fi 12646fi
13849 12647
13850cat >>$CONFIG_STATUS <<_ACEOF 12648cat >>$CONFIG_STATUS <<_ACEOF
13851cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 12649cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13852/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13853_ACEOF
13854sed '
13855s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13856s/^/s,@/; s/!/@,|#_!!_#|/
13857:n
13858t n
13859s/'"$ac_delim"'$/,g/; t
13860s/$/\\/; p
13861N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13862' >>$CONFIG_STATUS <conf$$subs.sed
13863rm -f conf$$subs.sed
13864cat >>$CONFIG_STATUS <<_ACEOF
13865CEOF$ac_eof
13866_ACEOF
13867
13868
13869ac_delim='%!_!# '
13870for ac_last_try in false false false false false :; do
13871 cat >conf$$subs.sed <<_ACEOF
13872include_fcntl_h!$include_fcntl_h$ac_delim
13873include_util_h!$include_util_h$ac_delim
13874include_assert_h!$include_assert_h$ac_delim
13875include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim
13876include_sys_select_h!$include_sys_select_h$ac_delim
13877include_sys_strredir_h!$include_sys_strredir_h$ac_delim
13878include_sys_time_h!$include_sys_time_h$ac_delim
13879include_time_h!$include_time_h$ac_delim
13880LIBOBJS!$LIBOBJS$ac_delim
13881LTLIBOBJS!$LTLIBOBJS$ac_delim
13882_ACEOF
13883
13884 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
13885 break
13886 elif $ac_last_try; then
13887 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13888echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13889 { (exit 1); exit 1; }; }
13890 else
13891 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13892 fi
13893done
13894
13895ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13896if test -n "$ac_eof"; then
13897 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13898 ac_eof=`expr $ac_eof + 1`
13899fi
13900
13901cat >>$CONFIG_STATUS <<_ACEOF
13902cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13903/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 12650/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13904_ACEOF 12651_ACEOF
13905sed ' 12652sed '
13906s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 12653s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13907s/^/s,@/; s/!/@,|#_!!_#|/ 12654s/^/s,@/; s/!/@,|#_!!_#|/
14160s&@builddir@&$ac_builddir&;t t 12907s&@builddir@&$ac_builddir&;t t
14161s&@abs_builddir@&$ac_abs_builddir&;t t 12908s&@abs_builddir@&$ac_abs_builddir&;t t
14162s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12909s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14163s&@INSTALL@&$ac_INSTALL&;t t 12910s&@INSTALL@&$ac_INSTALL&;t t
14164$ac_datarootdir_hack 12911$ac_datarootdir_hack
14165" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 12912" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
14166 12913
14167test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12914test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14168 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 12915 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14169 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 12916 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14170 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12917 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines