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

Comparing rxvt-unicode/configure (file contents):
Revision 1.112 by sasha, Wed Sep 12 21:06:07 2007 UTC vs.
Revision 1.124 by ayin, Fri Dec 28 14:00:47 2007 UTC

658host_cpu 658host_cpu
659host_vendor 659host_vendor
660host_os 660host_os
661VERSION 661VERSION
662DATE 662DATE
663LSMDATE
664LIBVERSION
665CC 663CC
666CFLAGS 664CFLAGS
667LDFLAGS 665LDFLAGS
668CPPFLAGS 666CPPFLAGS
669ac_ct_CC 667ac_ct_CC
677INSTALL_SCRIPT 675INSTALL_SCRIPT
678INSTALL_DATA 676INSTALL_DATA
679GREP 677GREP
680EGREP 678EGREP
681LINKER 679LINKER
682INSTALL_LIBRXVT
683RXVTNAME 680RXVTNAME
681CXXCPP
684TIC 682TIC
685XMKMF 683XMKMF
686CXXCPP
687X_CFLAGS 684X_CFLAGS
688X_PRE_LIBS 685X_PRE_LIBS
689X_LIBS 686X_LIBS
690X_EXTRA_LIBS 687X_EXTRA_LIBS
691afterimage_config 688afterimage_config
692rxvt_int16_typedef
693rxvt_uint16_typedef
694rxvt_int32_typedef
695rxvt_uint32_typedef
696rxvt_intp_define
697rxvt_u_intp_define
698PKG_CONFIG 689PKG_CONFIG
699XFT_CONFIG 690XFT_CONFIG
700PERL 691PERL
701PERLLIB 692PERLLIB
702PERLFLAGS 693PERLFLAGS
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
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-warnings turn on g++ warnings
1322 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters 1300 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1323 --enable-combining enable composition of base and combining characters 1301 --enable-combining enable composition of base and combining characters
1324 --enable-xft enable xft support on systems that have it 1302 --enable-xft enable xft support on systems that have it
1325 --enable-font-styles enable bold and italic support 1303 --enable-font-styles enable bold and italic support
1326 --enable-afterimage enable integration with libAfterImage for background images 1304 --enable-afterimage enable integration with libAfterImage for background images
1327 --enable-transparency enable transparent backgrounds 1305 --enable-transparency enable transparent backgrounds
1328 --enable-fading enable colors fading when off focus 1306 --enable-fading enable colors fading when off focus
1329 --enable-rxvt-scroll enable rxvt style scrollbar 1307 --enable-rxvt-scroll enable rxvt style scrollbar
1330 --enable-next-scroll enable NeXT style scrollbar 1308 --enable-next-scroll enable NeXT style scrollbar
1331 --enable-xterm-scroll enable Xterm style scrollbar 1309 --enable-xterm-scroll enable Xterm style scrollbar
1310 --enable-plain-scroll enable plain 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
4415support_iso14755=yes 4392support_iso14755=yes
4416support_styles=yes 4393support_styles=yes
4417support_perl=yes 4394support_perl=yes
4418codesets=all 4395codesets=all
4419 4396
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 4397
4430 4398
4431# Check whether --enable-everything was given. 4399# Check whether --enable-everything was given.
4432if test "${enable_everything+set}" = set; then 4400if test "${enable_everything+set}" = set; then
4433 enableval=$enable_everything; 4401 enableval=$enable_everything;
4491 fi 4459 fi
4492 4460
4493fi 4461fi
4494 4462
4495 4463
4464WARNINGS=no
4465# Check whether --enable-warnings was given.
4466if test "${enable_warnings+set}" = set; then
4467 enableval=$enable_warnings; if test x$enableval = xyes; then
4468 WARNINGS=yes
4469 fi
4470fi
4471
4472if test x$GXX = xyes; then
4473 if test $WARNINGS = yes; then
4474 save_CXXFLAGS="$CXXFLAGS"
4475 CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-non-virtual-dtor"
4476 cat >conftest.$ac_ext <<_ACEOF
4477/* confdefs.h. */
4478_ACEOF
4479cat confdefs.h >>conftest.$ac_ext
4480cat >>conftest.$ac_ext <<_ACEOF
4481/* end confdefs.h. */
4482
4483int
4484main ()
4485{
4486
4487 ;
4488 return 0;
4489}
4490_ACEOF
4491rm -f conftest.$ac_objext
4492if { (ac_try="$ac_compile"
4493case "(($ac_try" in
4494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495 *) ac_try_echo=$ac_try;;
4496esac
4497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4498 (eval "$ac_compile") 2>conftest.er1
4499 ac_status=$?
4500 grep -v '^ *+' conftest.er1 >conftest.err
4501 rm -f conftest.er1
4502 cat conftest.err >&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); } && {
4505 test -z "$ac_cxx_werror_flag" ||
4506 test ! -s conftest.err
4507 } && test -s conftest.$ac_objext; then
4508 :
4509else
4510 echo "$as_me: failed program was:" >&5
4511sed 's/^/| /' conftest.$ac_ext >&5
4512
4513 CXXFLAGS="$save_CXXFLAGS"
4514fi
4515
4516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4517 else
4518 CXXFLAGS="$CXXFLAGS -w"
4519 fi
4520fi
4521
4496# Check whether --enable-unicode3 was given. 4522# Check whether --enable-unicode3 was given.
4497if test "${enable_unicode3+set}" = set; then 4523if test "${enable_unicode3+set}" = set; then
4498 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then 4524 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then
4499 support_unicode3=$enableval 4525 support_unicode3=$enableval
4500 fi 4526 fi
4581 support_scroll_xterm=$enableval 4607 support_scroll_xterm=$enableval
4582 fi 4608 fi
4583fi 4609fi
4584 4610
4585 4611
4612# Check whether --enable-plain-scroll was given.
4613if test "${enable_plain_scroll+set}" = set; then
4614 enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4615 support_scroll_plain=$enableval
4616 fi
4617fi
4618
4619
4586# Check whether --enable-perl was given. 4620# Check whether --enable-perl was given.
4587if test "${enable_perl+set}" = set; then 4621if test "${enable_perl+set}" = set; then
4588 enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then 4622 enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then
4589 support_perl=$enableval 4623 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 4624 fi
4599fi 4625fi
4600 4626
4601 4627
4602 4628
4829#define RXVT_TERMINFO "$withval" 4855#define RXVT_TERMINFO "$withval"
4830_ACEOF 4856_ACEOF
4831 terminfo="$withval" 4857 terminfo="$withval"
4832 fi 4858 fi
4833fi 4859fi
4860
4861
4862
4863LIBEV_M4_AVOID_LIBRT=1
4864
4865ac_ext=cpp
4866ac_cpp='$CXXCPP $CPPFLAGS'
4867ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4868ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4869ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4870{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4871echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4872if test -z "$CXXCPP"; then
4873 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4874 echo $ECHO_N "(cached) $ECHO_C" >&6
4875else
4876 # Double quotes because CXXCPP needs to be expanded
4877 for CXXCPP in "$CXX -E" "/lib/cpp"
4878 do
4879 ac_preproc_ok=false
4880for ac_cxx_preproc_warn_flag in '' yes
4881do
4882 # Use a header file that comes with gcc, so configuring glibc
4883 # with a fresh cross-compiler works.
4884 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4885 # <limits.h> exists even on freestanding compilers.
4886 # On the NeXT, cc -E runs the code through the compiler's parser,
4887 # not just through cpp. "Syntax error" is here to catch this case.
4888 cat >conftest.$ac_ext <<_ACEOF
4889/* confdefs.h. */
4890_ACEOF
4891cat confdefs.h >>conftest.$ac_ext
4892cat >>conftest.$ac_ext <<_ACEOF
4893/* end confdefs.h. */
4894#ifdef __STDC__
4895# include <limits.h>
4896#else
4897# include <assert.h>
4898#endif
4899 Syntax error
4900_ACEOF
4901if { (ac_try="$ac_cpp conftest.$ac_ext"
4902case "(($ac_try" in
4903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4904 *) ac_try_echo=$ac_try;;
4905esac
4906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4908 ac_status=$?
4909 grep -v '^ *+' conftest.er1 >conftest.err
4910 rm -f conftest.er1
4911 cat conftest.err >&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); } >/dev/null && {
4914 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4915 test ! -s conftest.err
4916 }; then
4917 :
4918else
4919 echo "$as_me: failed program was:" >&5
4920sed 's/^/| /' conftest.$ac_ext >&5
4921
4922 # Broken: fails on valid input.
4923continue
4924fi
4925
4926rm -f conftest.err conftest.$ac_ext
4927
4928 # OK, works on sane cases. Now check whether nonexistent headers
4929 # can be detected and how.
4930 cat >conftest.$ac_ext <<_ACEOF
4931/* confdefs.h. */
4932_ACEOF
4933cat confdefs.h >>conftest.$ac_ext
4934cat >>conftest.$ac_ext <<_ACEOF
4935/* end confdefs.h. */
4936#include <ac_nonexistent.h>
4937_ACEOF
4938if { (ac_try="$ac_cpp conftest.$ac_ext"
4939case "(($ac_try" in
4940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4941 *) ac_try_echo=$ac_try;;
4942esac
4943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4945 ac_status=$?
4946 grep -v '^ *+' conftest.er1 >conftest.err
4947 rm -f conftest.er1
4948 cat conftest.err >&5
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); } >/dev/null && {
4951 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4952 test ! -s conftest.err
4953 }; then
4954 # Broken: success on invalid input.
4955continue
4956else
4957 echo "$as_me: failed program was:" >&5
4958sed 's/^/| /' conftest.$ac_ext >&5
4959
4960 # Passes both tests.
4961ac_preproc_ok=:
4962break
4963fi
4964
4965rm -f conftest.err conftest.$ac_ext
4966
4967done
4968# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4969rm -f conftest.err conftest.$ac_ext
4970if $ac_preproc_ok; then
4971 break
4972fi
4973
4974 done
4975 ac_cv_prog_CXXCPP=$CXXCPP
4976
4977fi
4978 CXXCPP=$ac_cv_prog_CXXCPP
4979else
4980 ac_cv_prog_CXXCPP=$CXXCPP
4981fi
4982{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
4983echo "${ECHO_T}$CXXCPP" >&6; }
4984ac_preproc_ok=false
4985for ac_cxx_preproc_warn_flag in '' yes
4986do
4987 # Use a header file that comes with gcc, so configuring glibc
4988 # with a fresh cross-compiler works.
4989 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4990 # <limits.h> exists even on freestanding compilers.
4991 # On the NeXT, cc -E runs the code through the compiler's parser,
4992 # not just through cpp. "Syntax error" is here to catch this case.
4993 cat >conftest.$ac_ext <<_ACEOF
4994/* confdefs.h. */
4995_ACEOF
4996cat confdefs.h >>conftest.$ac_ext
4997cat >>conftest.$ac_ext <<_ACEOF
4998/* end confdefs.h. */
4999#ifdef __STDC__
5000# include <limits.h>
5001#else
5002# include <assert.h>
5003#endif
5004 Syntax error
5005_ACEOF
5006if { (ac_try="$ac_cpp conftest.$ac_ext"
5007case "(($ac_try" in
5008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5009 *) ac_try_echo=$ac_try;;
5010esac
5011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5012 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5013 ac_status=$?
5014 grep -v '^ *+' conftest.er1 >conftest.err
5015 rm -f conftest.er1
5016 cat conftest.err >&5
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); } >/dev/null && {
5019 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5020 test ! -s conftest.err
5021 }; then
5022 :
5023else
5024 echo "$as_me: failed program was:" >&5
5025sed 's/^/| /' conftest.$ac_ext >&5
5026
5027 # Broken: fails on valid input.
5028continue
5029fi
5030
5031rm -f conftest.err conftest.$ac_ext
5032
5033 # OK, works on sane cases. Now check whether nonexistent headers
5034 # can be detected and how.
5035 cat >conftest.$ac_ext <<_ACEOF
5036/* confdefs.h. */
5037_ACEOF
5038cat confdefs.h >>conftest.$ac_ext
5039cat >>conftest.$ac_ext <<_ACEOF
5040/* end confdefs.h. */
5041#include <ac_nonexistent.h>
5042_ACEOF
5043if { (ac_try="$ac_cpp conftest.$ac_ext"
5044case "(($ac_try" in
5045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5046 *) ac_try_echo=$ac_try;;
5047esac
5048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5050 ac_status=$?
5051 grep -v '^ *+' conftest.er1 >conftest.err
5052 rm -f conftest.er1
5053 cat conftest.err >&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } >/dev/null && {
5056 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5057 test ! -s conftest.err
5058 }; then
5059 # Broken: success on invalid input.
5060continue
5061else
5062 echo "$as_me: failed program was:" >&5
5063sed 's/^/| /' conftest.$ac_ext >&5
5064
5065 # Passes both tests.
5066ac_preproc_ok=:
5067break
5068fi
5069
5070rm -f conftest.err conftest.$ac_ext
5071
5072done
5073# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5074rm -f conftest.err conftest.$ac_ext
5075if $ac_preproc_ok; then
5076 :
5077else
5078 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5079See \`config.log' for more details." >&5
5080echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5081See \`config.log' for more details." >&2;}
5082 { (exit 1); exit 1; }; }
5083fi
5084
5085ac_ext=cpp
5086ac_cpp='$CXXCPP $CPPFLAGS'
5087ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5088ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5089ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5090
5091
5092{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5093echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5094if test "${ac_cv_header_stdc+set}" = set; then
5095 echo $ECHO_N "(cached) $ECHO_C" >&6
5096else
5097 cat >conftest.$ac_ext <<_ACEOF
5098/* confdefs.h. */
5099_ACEOF
5100cat confdefs.h >>conftest.$ac_ext
5101cat >>conftest.$ac_ext <<_ACEOF
5102/* end confdefs.h. */
5103#include <stdlib.h>
5104#include <stdarg.h>
5105#include <string.h>
5106#include <float.h>
5107
5108int
5109main ()
5110{
5111
5112 ;
5113 return 0;
5114}
5115_ACEOF
5116rm -f conftest.$ac_objext
5117if { (ac_try="$ac_compile"
5118case "(($ac_try" in
5119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5120 *) ac_try_echo=$ac_try;;
5121esac
5122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5123 (eval "$ac_compile") 2>conftest.er1
5124 ac_status=$?
5125 grep -v '^ *+' conftest.er1 >conftest.err
5126 rm -f conftest.er1
5127 cat conftest.err >&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); } && {
5130 test -z "$ac_cxx_werror_flag" ||
5131 test ! -s conftest.err
5132 } && test -s conftest.$ac_objext; then
5133 ac_cv_header_stdc=yes
5134else
5135 echo "$as_me: failed program was:" >&5
5136sed 's/^/| /' conftest.$ac_ext >&5
5137
5138 ac_cv_header_stdc=no
5139fi
5140
5141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5142
5143if test $ac_cv_header_stdc = yes; then
5144 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5145 cat >conftest.$ac_ext <<_ACEOF
5146/* confdefs.h. */
5147_ACEOF
5148cat confdefs.h >>conftest.$ac_ext
5149cat >>conftest.$ac_ext <<_ACEOF
5150/* end confdefs.h. */
5151#include <string.h>
5152
5153_ACEOF
5154if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5155 $EGREP "memchr" >/dev/null 2>&1; then
5156 :
5157else
5158 ac_cv_header_stdc=no
5159fi
5160rm -f conftest*
5161
5162fi
5163
5164if test $ac_cv_header_stdc = yes; then
5165 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5166 cat >conftest.$ac_ext <<_ACEOF
5167/* confdefs.h. */
5168_ACEOF
5169cat confdefs.h >>conftest.$ac_ext
5170cat >>conftest.$ac_ext <<_ACEOF
5171/* end confdefs.h. */
5172#include <stdlib.h>
5173
5174_ACEOF
5175if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5176 $EGREP "free" >/dev/null 2>&1; then
5177 :
5178else
5179 ac_cv_header_stdc=no
5180fi
5181rm -f conftest*
5182
5183fi
5184
5185if test $ac_cv_header_stdc = yes; then
5186 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5187 if test "$cross_compiling" = yes; then
5188 :
5189else
5190 cat >conftest.$ac_ext <<_ACEOF
5191/* confdefs.h. */
5192_ACEOF
5193cat confdefs.h >>conftest.$ac_ext
5194cat >>conftest.$ac_ext <<_ACEOF
5195/* end confdefs.h. */
5196#include <ctype.h>
5197#include <stdlib.h>
5198#if ((' ' & 0x0FF) == 0x020)
5199# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5200# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5201#else
5202# define ISLOWER(c) \
5203 (('a' <= (c) && (c) <= 'i') \
5204 || ('j' <= (c) && (c) <= 'r') \
5205 || ('s' <= (c) && (c) <= 'z'))
5206# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5207#endif
5208
5209#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5210int
5211main ()
5212{
5213 int i;
5214 for (i = 0; i < 256; i++)
5215 if (XOR (islower (i), ISLOWER (i))
5216 || toupper (i) != TOUPPER (i))
5217 return 2;
5218 return 0;
5219}
5220_ACEOF
5221rm -f conftest$ac_exeext
5222if { (ac_try="$ac_link"
5223case "(($ac_try" in
5224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5225 *) ac_try_echo=$ac_try;;
5226esac
5227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5228 (eval "$ac_link") 2>&5
5229 ac_status=$?
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5232 { (case "(($ac_try" in
5233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5234 *) ac_try_echo=$ac_try;;
5235esac
5236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5237 (eval "$ac_try") 2>&5
5238 ac_status=$?
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); }; }; then
5241 :
5242else
5243 echo "$as_me: program exited with status $ac_status" >&5
5244echo "$as_me: failed program was:" >&5
5245sed 's/^/| /' conftest.$ac_ext >&5
5246
5247( exit $ac_status )
5248ac_cv_header_stdc=no
5249fi
5250rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5251fi
5252
5253
5254fi
5255fi
5256{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5257echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5258if test $ac_cv_header_stdc = yes; then
5259
5260cat >>confdefs.h <<\_ACEOF
5261#define STDC_HEADERS 1
5262_ACEOF
5263
5264fi
5265
5266# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5277 inttypes.h stdint.h unistd.h
5278do
5279as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5280{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5281echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5282if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5283 echo $ECHO_N "(cached) $ECHO_C" >&6
5284else
5285 cat >conftest.$ac_ext <<_ACEOF
5286/* confdefs.h. */
5287_ACEOF
5288cat confdefs.h >>conftest.$ac_ext
5289cat >>conftest.$ac_ext <<_ACEOF
5290/* end confdefs.h. */
5291$ac_includes_default
5292
5293#include <$ac_header>
5294_ACEOF
5295rm -f conftest.$ac_objext
5296if { (ac_try="$ac_compile"
5297case "(($ac_try" in
5298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5299 *) ac_try_echo=$ac_try;;
5300esac
5301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5302 (eval "$ac_compile") 2>conftest.er1
5303 ac_status=$?
5304 grep -v '^ *+' conftest.er1 >conftest.err
5305 rm -f conftest.er1
5306 cat conftest.err >&5
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); } && {
5309 test -z "$ac_cxx_werror_flag" ||
5310 test ! -s conftest.err
5311 } && test -s conftest.$ac_objext; then
5312 eval "$as_ac_Header=yes"
5313else
5314 echo "$as_me: failed program was:" >&5
5315sed 's/^/| /' conftest.$ac_ext >&5
5316
5317 eval "$as_ac_Header=no"
5318fi
5319
5320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5321fi
5322ac_res=`eval echo '${'$as_ac_Header'}'`
5323 { echo "$as_me:$LINENO: result: $ac_res" >&5
5324echo "${ECHO_T}$ac_res" >&6; }
5325if test `eval echo '${'$as_ac_Header'}'` = yes; then
5326 cat >>confdefs.h <<_ACEOF
5327#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5328_ACEOF
5329
5330fi
5331
5332done
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342for ac_header in sys/inotify.h sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h
5343do
5344as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5345if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5346 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5347echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5348if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
5350fi
5351ac_res=`eval echo '${'$as_ac_Header'}'`
5352 { echo "$as_me:$LINENO: result: $ac_res" >&5
5353echo "${ECHO_T}$ac_res" >&6; }
5354else
5355 # Is the header compilable?
5356{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5357echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5358cat >conftest.$ac_ext <<_ACEOF
5359/* confdefs.h. */
5360_ACEOF
5361cat confdefs.h >>conftest.$ac_ext
5362cat >>conftest.$ac_ext <<_ACEOF
5363/* end confdefs.h. */
5364$ac_includes_default
5365#include <$ac_header>
5366_ACEOF
5367rm -f conftest.$ac_objext
5368if { (ac_try="$ac_compile"
5369case "(($ac_try" in
5370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5371 *) ac_try_echo=$ac_try;;
5372esac
5373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5374 (eval "$ac_compile") 2>conftest.er1
5375 ac_status=$?
5376 grep -v '^ *+' conftest.er1 >conftest.err
5377 rm -f conftest.er1
5378 cat conftest.err >&5
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); } && {
5381 test -z "$ac_cxx_werror_flag" ||
5382 test ! -s conftest.err
5383 } && test -s conftest.$ac_objext; then
5384 ac_header_compiler=yes
5385else
5386 echo "$as_me: failed program was:" >&5
5387sed 's/^/| /' conftest.$ac_ext >&5
5388
5389 ac_header_compiler=no
5390fi
5391
5392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5393{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5394echo "${ECHO_T}$ac_header_compiler" >&6; }
5395
5396# Is the header present?
5397{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5398echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5399cat >conftest.$ac_ext <<_ACEOF
5400/* confdefs.h. */
5401_ACEOF
5402cat confdefs.h >>conftest.$ac_ext
5403cat >>conftest.$ac_ext <<_ACEOF
5404/* end confdefs.h. */
5405#include <$ac_header>
5406_ACEOF
5407if { (ac_try="$ac_cpp conftest.$ac_ext"
5408case "(($ac_try" in
5409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5410 *) ac_try_echo=$ac_try;;
5411esac
5412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5414 ac_status=$?
5415 grep -v '^ *+' conftest.er1 >conftest.err
5416 rm -f conftest.er1
5417 cat conftest.err >&5
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); } >/dev/null && {
5420 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5421 test ! -s conftest.err
5422 }; then
5423 ac_header_preproc=yes
5424else
5425 echo "$as_me: failed program was:" >&5
5426sed 's/^/| /' conftest.$ac_ext >&5
5427
5428 ac_header_preproc=no
5429fi
5430
5431rm -f conftest.err conftest.$ac_ext
5432{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5433echo "${ECHO_T}$ac_header_preproc" >&6; }
5434
5435# So? What about this header?
5436case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5437 yes:no: )
5438 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5439echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5441echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5442 ac_header_preproc=yes
5443 ;;
5444 no:yes:* )
5445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5446echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5448echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5449 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5450echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5451 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5452echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5454echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5455 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5456echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5457
5458 ;;
5459esac
5460{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5461echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5462if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5464else
5465 eval "$as_ac_Header=\$ac_header_preproc"
5466fi
5467ac_res=`eval echo '${'$as_ac_Header'}'`
5468 { echo "$as_me:$LINENO: result: $ac_res" >&5
5469echo "${ECHO_T}$ac_res" >&6; }
5470
5471fi
5472if test `eval echo '${'$as_ac_Header'}'` = yes; then
5473 cat >>confdefs.h <<_ACEOF
5474#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5475_ACEOF
5476
5477fi
5478
5479done
5480
5481
5482
5483
5484
5485
5486
5487
5488for ac_func in inotify_init epoll_ctl kqueue port_create poll select
5489do
5490as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5491{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5492echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5493if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5494 echo $ECHO_N "(cached) $ECHO_C" >&6
5495else
5496 cat >conftest.$ac_ext <<_ACEOF
5497/* confdefs.h. */
5498_ACEOF
5499cat confdefs.h >>conftest.$ac_ext
5500cat >>conftest.$ac_ext <<_ACEOF
5501/* end confdefs.h. */
5502/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5504#define $ac_func innocuous_$ac_func
5505
5506/* System header to define __stub macros and hopefully few prototypes,
5507 which can conflict with char $ac_func (); below.
5508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5509 <limits.h> exists even on freestanding compilers. */
5510
5511#ifdef __STDC__
5512# include <limits.h>
5513#else
5514# include <assert.h>
5515#endif
5516
5517#undef $ac_func
5518
5519/* Override any GCC internal prototype to avoid an error.
5520 Use char because int might match the return type of a GCC
5521 builtin and then its argument prototype would still apply. */
5522#ifdef __cplusplus
5523extern "C"
5524#endif
5525char $ac_func ();
5526/* The GNU C library defines this for functions which it implements
5527 to always fail with ENOSYS. Some functions are actually named
5528 something starting with __ and the normal name is an alias. */
5529#if defined __stub_$ac_func || defined __stub___$ac_func
5530choke me
5531#endif
5532
5533int
5534main ()
5535{
5536return $ac_func ();
5537 ;
5538 return 0;
5539}
5540_ACEOF
5541rm -f conftest.$ac_objext conftest$ac_exeext
5542if { (ac_try="$ac_link"
5543case "(($ac_try" in
5544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5545 *) ac_try_echo=$ac_try;;
5546esac
5547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5548 (eval "$ac_link") 2>conftest.er1
5549 ac_status=$?
5550 grep -v '^ *+' conftest.er1 >conftest.err
5551 rm -f conftest.er1
5552 cat conftest.err >&5
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); } && {
5555 test -z "$ac_cxx_werror_flag" ||
5556 test ! -s conftest.err
5557 } && test -s conftest$ac_exeext &&
5558 $as_test_x conftest$ac_exeext; then
5559 eval "$as_ac_var=yes"
5560else
5561 echo "$as_me: failed program was:" >&5
5562sed 's/^/| /' conftest.$ac_ext >&5
5563
5564 eval "$as_ac_var=no"
5565fi
5566
5567rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5568 conftest$ac_exeext conftest.$ac_ext
5569fi
5570ac_res=`eval echo '${'$as_ac_var'}'`
5571 { echo "$as_me:$LINENO: result: $ac_res" >&5
5572echo "${ECHO_T}$ac_res" >&6; }
5573if test `eval echo '${'$as_ac_var'}'` = yes; then
5574 cat >>confdefs.h <<_ACEOF
5575#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5576_ACEOF
5577
5578fi
5579done
5580
5581
5582{ echo "$as_me:$LINENO: checking for clock_gettime" >&5
5583echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6; }
5584if test "${ac_cv_func_clock_gettime+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5586else
5587 cat >conftest.$ac_ext <<_ACEOF
5588/* confdefs.h. */
5589_ACEOF
5590cat confdefs.h >>conftest.$ac_ext
5591cat >>conftest.$ac_ext <<_ACEOF
5592/* end confdefs.h. */
5593/* Define clock_gettime to an innocuous variant, in case <limits.h> declares clock_gettime.
5594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5595#define clock_gettime innocuous_clock_gettime
5596
5597/* System header to define __stub macros and hopefully few prototypes,
5598 which can conflict with char clock_gettime (); below.
5599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5600 <limits.h> exists even on freestanding compilers. */
5601
5602#ifdef __STDC__
5603# include <limits.h>
5604#else
5605# include <assert.h>
5606#endif
5607
5608#undef clock_gettime
5609
5610/* Override any GCC internal prototype to avoid an error.
5611 Use char because int might match the return type of a GCC
5612 builtin and then its argument prototype would still apply. */
5613#ifdef __cplusplus
5614extern "C"
5615#endif
5616char clock_gettime ();
5617/* The GNU C library defines this for functions which it implements
5618 to always fail with ENOSYS. Some functions are actually named
5619 something starting with __ and the normal name is an alias. */
5620#if defined __stub_clock_gettime || defined __stub___clock_gettime
5621choke me
5622#endif
5623
5624int
5625main ()
5626{
5627return clock_gettime ();
5628 ;
5629 return 0;
5630}
5631_ACEOF
5632rm -f conftest.$ac_objext conftest$ac_exeext
5633if { (ac_try="$ac_link"
5634case "(($ac_try" in
5635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5636 *) ac_try_echo=$ac_try;;
5637esac
5638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5639 (eval "$ac_link") 2>conftest.er1
5640 ac_status=$?
5641 grep -v '^ *+' conftest.er1 >conftest.err
5642 rm -f conftest.er1
5643 cat conftest.err >&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); } && {
5646 test -z "$ac_cxx_werror_flag" ||
5647 test ! -s conftest.err
5648 } && test -s conftest$ac_exeext &&
5649 $as_test_x conftest$ac_exeext; then
5650 ac_cv_func_clock_gettime=yes
5651else
5652 echo "$as_me: failed program was:" >&5
5653sed 's/^/| /' conftest.$ac_ext >&5
5654
5655 ac_cv_func_clock_gettime=no
5656fi
5657
5658rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5659 conftest$ac_exeext conftest.$ac_ext
5660fi
5661{ echo "$as_me:$LINENO: result: $ac_cv_func_clock_gettime" >&5
5662echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; }
5663if test $ac_cv_func_clock_gettime = yes; then
5664 :
5665else
5666
5667 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
5668
5669{ echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
5670echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
5671if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
5672 echo $ECHO_N "(cached) $ECHO_C" >&6
5673else
5674 ac_check_lib_save_LIBS=$LIBS
5675LIBS="-lrt $LIBS"
5676cat >conftest.$ac_ext <<_ACEOF
5677/* confdefs.h. */
5678_ACEOF
5679cat confdefs.h >>conftest.$ac_ext
5680cat >>conftest.$ac_ext <<_ACEOF
5681/* end confdefs.h. */
5682
5683/* Override any GCC internal prototype to avoid an error.
5684 Use char because int might match the return type of a GCC
5685 builtin and then its argument prototype would still apply. */
5686#ifdef __cplusplus
5687extern "C"
5688#endif
5689char clock_gettime ();
5690int
5691main ()
5692{
5693return clock_gettime ();
5694 ;
5695 return 0;
5696}
5697_ACEOF
5698rm -f conftest.$ac_objext conftest$ac_exeext
5699if { (ac_try="$ac_link"
5700case "(($ac_try" in
5701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5702 *) ac_try_echo=$ac_try;;
5703esac
5704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5705 (eval "$ac_link") 2>conftest.er1
5706 ac_status=$?
5707 grep -v '^ *+' conftest.er1 >conftest.err
5708 rm -f conftest.er1
5709 cat conftest.err >&5
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); } && {
5712 test -z "$ac_cxx_werror_flag" ||
5713 test ! -s conftest.err
5714 } && test -s conftest$ac_exeext &&
5715 $as_test_x conftest$ac_exeext; then
5716 ac_cv_lib_rt_clock_gettime=yes
5717else
5718 echo "$as_me: failed program was:" >&5
5719sed 's/^/| /' conftest.$ac_ext >&5
5720
5721 ac_cv_lib_rt_clock_gettime=no
5722fi
5723
5724rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5725 conftest$ac_exeext conftest.$ac_ext
5726LIBS=$ac_check_lib_save_LIBS
5727fi
5728{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
5729echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
5730if test $ac_cv_lib_rt_clock_gettime = yes; then
5731 cat >>confdefs.h <<_ACEOF
5732#define HAVE_LIBRT 1
5733_ACEOF
5734
5735 LIBS="-lrt $LIBS"
5736
5737fi
5738
5739 unset ac_cv_func_clock_gettime
5740
5741for ac_func in clock_gettime
5742do
5743as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5744{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5745echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5746if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
5748else
5749 cat >conftest.$ac_ext <<_ACEOF
5750/* confdefs.h. */
5751_ACEOF
5752cat confdefs.h >>conftest.$ac_ext
5753cat >>conftest.$ac_ext <<_ACEOF
5754/* end confdefs.h. */
5755/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5757#define $ac_func innocuous_$ac_func
5758
5759/* System header to define __stub macros and hopefully few prototypes,
5760 which can conflict with char $ac_func (); below.
5761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5762 <limits.h> exists even on freestanding compilers. */
5763
5764#ifdef __STDC__
5765# include <limits.h>
5766#else
5767# include <assert.h>
5768#endif
5769
5770#undef $ac_func
5771
5772/* Override any GCC internal prototype to avoid an error.
5773 Use char because int might match the return type of a GCC
5774 builtin and then its argument prototype would still apply. */
5775#ifdef __cplusplus
5776extern "C"
5777#endif
5778char $ac_func ();
5779/* The GNU C library defines this for functions which it implements
5780 to always fail with ENOSYS. Some functions are actually named
5781 something starting with __ and the normal name is an alias. */
5782#if defined __stub_$ac_func || defined __stub___$ac_func
5783choke me
5784#endif
5785
5786int
5787main ()
5788{
5789return $ac_func ();
5790 ;
5791 return 0;
5792}
5793_ACEOF
5794rm -f conftest.$ac_objext conftest$ac_exeext
5795if { (ac_try="$ac_link"
5796case "(($ac_try" in
5797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5798 *) ac_try_echo=$ac_try;;
5799esac
5800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5801 (eval "$ac_link") 2>conftest.er1
5802 ac_status=$?
5803 grep -v '^ *+' conftest.er1 >conftest.err
5804 rm -f conftest.er1
5805 cat conftest.err >&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); } && {
5808 test -z "$ac_cxx_werror_flag" ||
5809 test ! -s conftest.err
5810 } && test -s conftest$ac_exeext &&
5811 $as_test_x conftest$ac_exeext; then
5812 eval "$as_ac_var=yes"
5813else
5814 echo "$as_me: failed program was:" >&5
5815sed 's/^/| /' conftest.$ac_ext >&5
5816
5817 eval "$as_ac_var=no"
5818fi
5819
5820rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5821 conftest$ac_exeext conftest.$ac_ext
5822fi
5823ac_res=`eval echo '${'$as_ac_var'}'`
5824 { echo "$as_me:$LINENO: result: $ac_res" >&5
5825echo "${ECHO_T}$ac_res" >&6; }
5826if test `eval echo '${'$as_ac_var'}'` = yes; then
5827 cat >>confdefs.h <<_ACEOF
5828#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5829_ACEOF
5830
5831fi
5832done
5833
5834 fi
5835
5836fi
5837
5838
5839{ echo "$as_me:$LINENO: checking for nanosleep" >&5
5840echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; }
5841if test "${ac_cv_func_nanosleep+set}" = set; then
5842 echo $ECHO_N "(cached) $ECHO_C" >&6
5843else
5844 cat >conftest.$ac_ext <<_ACEOF
5845/* confdefs.h. */
5846_ACEOF
5847cat confdefs.h >>conftest.$ac_ext
5848cat >>conftest.$ac_ext <<_ACEOF
5849/* end confdefs.h. */
5850/* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep.
5851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5852#define nanosleep innocuous_nanosleep
5853
5854/* System header to define __stub macros and hopefully few prototypes,
5855 which can conflict with char nanosleep (); below.
5856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5857 <limits.h> exists even on freestanding compilers. */
5858
5859#ifdef __STDC__
5860# include <limits.h>
5861#else
5862# include <assert.h>
5863#endif
5864
5865#undef nanosleep
5866
5867/* Override any GCC internal prototype to avoid an error.
5868 Use char because int might match the return type of a GCC
5869 builtin and then its argument prototype would still apply. */
5870#ifdef __cplusplus
5871extern "C"
5872#endif
5873char nanosleep ();
5874/* The GNU C library defines this for functions which it implements
5875 to always fail with ENOSYS. Some functions are actually named
5876 something starting with __ and the normal name is an alias. */
5877#if defined __stub_nanosleep || defined __stub___nanosleep
5878choke me
5879#endif
5880
5881int
5882main ()
5883{
5884return nanosleep ();
5885 ;
5886 return 0;
5887}
5888_ACEOF
5889rm -f conftest.$ac_objext conftest$ac_exeext
5890if { (ac_try="$ac_link"
5891case "(($ac_try" in
5892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5893 *) ac_try_echo=$ac_try;;
5894esac
5895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5896 (eval "$ac_link") 2>conftest.er1
5897 ac_status=$?
5898 grep -v '^ *+' conftest.er1 >conftest.err
5899 rm -f conftest.er1
5900 cat conftest.err >&5
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); } && {
5903 test -z "$ac_cxx_werror_flag" ||
5904 test ! -s conftest.err
5905 } && test -s conftest$ac_exeext &&
5906 $as_test_x conftest$ac_exeext; then
5907 ac_cv_func_nanosleep=yes
5908else
5909 echo "$as_me: failed program was:" >&5
5910sed 's/^/| /' conftest.$ac_ext >&5
5911
5912 ac_cv_func_nanosleep=no
5913fi
5914
5915rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5916 conftest$ac_exeext conftest.$ac_ext
5917fi
5918{ echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5
5919echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; }
5920if test $ac_cv_func_nanosleep = yes; then
5921 :
5922else
5923
5924 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
5925
5926{ echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
5927echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; }
5928if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5930else
5931 ac_check_lib_save_LIBS=$LIBS
5932LIBS="-lrt $LIBS"
5933cat >conftest.$ac_ext <<_ACEOF
5934/* confdefs.h. */
5935_ACEOF
5936cat confdefs.h >>conftest.$ac_ext
5937cat >>conftest.$ac_ext <<_ACEOF
5938/* end confdefs.h. */
5939
5940/* Override any GCC internal prototype to avoid an error.
5941 Use char because int might match the return type of a GCC
5942 builtin and then its argument prototype would still apply. */
5943#ifdef __cplusplus
5944extern "C"
5945#endif
5946char nanosleep ();
5947int
5948main ()
5949{
5950return nanosleep ();
5951 ;
5952 return 0;
5953}
5954_ACEOF
5955rm -f conftest.$ac_objext conftest$ac_exeext
5956if { (ac_try="$ac_link"
5957case "(($ac_try" in
5958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5959 *) ac_try_echo=$ac_try;;
5960esac
5961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5962 (eval "$ac_link") 2>conftest.er1
5963 ac_status=$?
5964 grep -v '^ *+' conftest.er1 >conftest.err
5965 rm -f conftest.er1
5966 cat conftest.err >&5
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); } && {
5969 test -z "$ac_cxx_werror_flag" ||
5970 test ! -s conftest.err
5971 } && test -s conftest$ac_exeext &&
5972 $as_test_x conftest$ac_exeext; then
5973 ac_cv_lib_rt_nanosleep=yes
5974else
5975 echo "$as_me: failed program was:" >&5
5976sed 's/^/| /' conftest.$ac_ext >&5
5977
5978 ac_cv_lib_rt_nanosleep=no
5979fi
5980
5981rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5982 conftest$ac_exeext conftest.$ac_ext
5983LIBS=$ac_check_lib_save_LIBS
5984fi
5985{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
5986echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; }
5987if test $ac_cv_lib_rt_nanosleep = yes; then
5988 cat >>confdefs.h <<_ACEOF
5989#define HAVE_LIBRT 1
5990_ACEOF
5991
5992 LIBS="-lrt $LIBS"
5993
5994fi
5995
5996 unset ac_cv_func_nanosleep
5997
5998for ac_func in nanosleep
5999do
6000as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6001{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6002echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6003if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6004 echo $ECHO_N "(cached) $ECHO_C" >&6
6005else
6006 cat >conftest.$ac_ext <<_ACEOF
6007/* confdefs.h. */
6008_ACEOF
6009cat confdefs.h >>conftest.$ac_ext
6010cat >>conftest.$ac_ext <<_ACEOF
6011/* end confdefs.h. */
6012/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6014#define $ac_func innocuous_$ac_func
6015
6016/* System header to define __stub macros and hopefully few prototypes,
6017 which can conflict with char $ac_func (); below.
6018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6019 <limits.h> exists even on freestanding compilers. */
6020
6021#ifdef __STDC__
6022# include <limits.h>
6023#else
6024# include <assert.h>
6025#endif
6026
6027#undef $ac_func
6028
6029/* Override any GCC internal prototype to avoid an error.
6030 Use char because int might match the return type of a GCC
6031 builtin and then its argument prototype would still apply. */
6032#ifdef __cplusplus
6033extern "C"
6034#endif
6035char $ac_func ();
6036/* The GNU C library defines this for functions which it implements
6037 to always fail with ENOSYS. Some functions are actually named
6038 something starting with __ and the normal name is an alias. */
6039#if defined __stub_$ac_func || defined __stub___$ac_func
6040choke me
6041#endif
6042
6043int
6044main ()
6045{
6046return $ac_func ();
6047 ;
6048 return 0;
6049}
6050_ACEOF
6051rm -f conftest.$ac_objext conftest$ac_exeext
6052if { (ac_try="$ac_link"
6053case "(($ac_try" in
6054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6055 *) ac_try_echo=$ac_try;;
6056esac
6057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6058 (eval "$ac_link") 2>conftest.er1
6059 ac_status=$?
6060 grep -v '^ *+' conftest.er1 >conftest.err
6061 rm -f conftest.er1
6062 cat conftest.err >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } && {
6065 test -z "$ac_cxx_werror_flag" ||
6066 test ! -s conftest.err
6067 } && test -s conftest$ac_exeext &&
6068 $as_test_x conftest$ac_exeext; then
6069 eval "$as_ac_var=yes"
6070else
6071 echo "$as_me: failed program was:" >&5
6072sed 's/^/| /' conftest.$ac_ext >&5
6073
6074 eval "$as_ac_var=no"
6075fi
6076
6077rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6078 conftest$ac_exeext conftest.$ac_ext
6079fi
6080ac_res=`eval echo '${'$as_ac_var'}'`
6081 { echo "$as_me:$LINENO: result: $ac_res" >&5
6082echo "${ECHO_T}$ac_res" >&6; }
6083if test `eval echo '${'$as_ac_var'}'` = yes; then
6084 cat >>confdefs.h <<_ACEOF
6085#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6086_ACEOF
6087
6088fi
6089done
6090
6091 fi
6092
6093fi
6094
6095
6096
6097{ echo "$as_me:$LINENO: checking for ceil in -lm" >&5
6098echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; }
6099if test "${ac_cv_lib_m_ceil+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6101else
6102 ac_check_lib_save_LIBS=$LIBS
6103LIBS="-lm $LIBS"
6104cat >conftest.$ac_ext <<_ACEOF
6105/* confdefs.h. */
6106_ACEOF
6107cat confdefs.h >>conftest.$ac_ext
6108cat >>conftest.$ac_ext <<_ACEOF
6109/* end confdefs.h. */
6110
6111/* Override any GCC internal prototype to avoid an error.
6112 Use char because int might match the return type of a GCC
6113 builtin and then its argument prototype would still apply. */
6114#ifdef __cplusplus
6115extern "C"
6116#endif
6117char ceil ();
6118int
6119main ()
6120{
6121return ceil ();
6122 ;
6123 return 0;
6124}
6125_ACEOF
6126rm -f conftest.$ac_objext conftest$ac_exeext
6127if { (ac_try="$ac_link"
6128case "(($ac_try" in
6129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6130 *) ac_try_echo=$ac_try;;
6131esac
6132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6133 (eval "$ac_link") 2>conftest.er1
6134 ac_status=$?
6135 grep -v '^ *+' conftest.er1 >conftest.err
6136 rm -f conftest.er1
6137 cat conftest.err >&5
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); } && {
6140 test -z "$ac_cxx_werror_flag" ||
6141 test ! -s conftest.err
6142 } && test -s conftest$ac_exeext &&
6143 $as_test_x conftest$ac_exeext; then
6144 ac_cv_lib_m_ceil=yes
6145else
6146 echo "$as_me: failed program was:" >&5
6147sed 's/^/| /' conftest.$ac_ext >&5
6148
6149 ac_cv_lib_m_ceil=no
6150fi
6151
6152rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6153 conftest$ac_exeext conftest.$ac_ext
6154LIBS=$ac_check_lib_save_LIBS
6155fi
6156{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5
6157echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6; }
6158if test $ac_cv_lib_m_ceil = yes; then
6159 cat >>confdefs.h <<_ACEOF
6160#define HAVE_LIBM 1
6161_ACEOF
6162
6163 LIBS="-lm $LIBS"
6164
6165fi
6166
6167
6168
6169
4834 6170
4835 6171
4836 6172
4837# Extract the first word of "tic", so it can be a program name with args. 6173# Extract the first word of "tic", so it can be a program name with args.
4838set dummy tic; ac_word=$2 6174set dummy tic; ac_word=$2
4859 fi 6195 fi
4860done 6196done
4861done 6197done
4862IFS=$as_save_IFS 6198IFS=$as_save_IFS
4863 6199
6200 test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":"
4864 ;; 6201 ;;
4865esac 6202esac
4866fi 6203fi
4867TIC=$ac_cv_path_TIC 6204TIC=$ac_cv_path_TIC
4868if test -n "$TIC"; then 6205if test -n "$TIC"; then
4871else 6208else
4872 { echo "$as_me:$LINENO: result: no" >&5 6209 { echo "$as_me:$LINENO: result: no" >&5
4873echo "${ECHO_T}no" >&6; } 6210echo "${ECHO_T}no" >&6; }
4874fi 6211fi
4875 6212
4876
4877
4878
4879
4880ac_ext=cpp
4881ac_cpp='$CXXCPP $CPPFLAGS'
4882ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4883ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4884ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4885{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4886echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4887if test -z "$CXXCPP"; then
4888 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4890else
4891 # Double quotes because CXXCPP needs to be expanded
4892 for CXXCPP in "$CXX -E" "/lib/cpp"
4893 do
4894 ac_preproc_ok=false
4895for ac_cxx_preproc_warn_flag in '' yes
4896do
4897 # Use a header file that comes with gcc, so configuring glibc
4898 # with a fresh cross-compiler works.
4899 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4900 # <limits.h> exists even on freestanding compilers.
4901 # On the NeXT, cc -E runs the code through the compiler's parser,
4902 # not just through cpp. "Syntax error" is here to catch this case.
4903 cat >conftest.$ac_ext <<_ACEOF
4904/* confdefs.h. */
4905_ACEOF
4906cat confdefs.h >>conftest.$ac_ext
4907cat >>conftest.$ac_ext <<_ACEOF
4908/* end confdefs.h. */
4909#ifdef __STDC__
4910# include <limits.h>
4911#else
4912# include <assert.h>
4913#endif
4914 Syntax error
4915_ACEOF
4916if { (ac_try="$ac_cpp conftest.$ac_ext"
4917case "(($ac_try" in
4918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4919 *) ac_try_echo=$ac_try;;
4920esac
4921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4922 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4923 ac_status=$?
4924 grep -v '^ *+' conftest.er1 >conftest.err
4925 rm -f conftest.er1
4926 cat conftest.err >&5
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); } >/dev/null && {
4929 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4930 test ! -s conftest.err
4931 }; then
4932 :
4933else
4934 echo "$as_me: failed program was:" >&5
4935sed 's/^/| /' conftest.$ac_ext >&5
4936
4937 # Broken: fails on valid input.
4938continue
4939fi
4940
4941rm -f conftest.err conftest.$ac_ext
4942
4943 # OK, works on sane cases. Now check whether nonexistent headers
4944 # can be detected and how.
4945 cat >conftest.$ac_ext <<_ACEOF
4946/* confdefs.h. */
4947_ACEOF
4948cat confdefs.h >>conftest.$ac_ext
4949cat >>conftest.$ac_ext <<_ACEOF
4950/* end confdefs.h. */
4951#include <ac_nonexistent.h>
4952_ACEOF
4953if { (ac_try="$ac_cpp conftest.$ac_ext"
4954case "(($ac_try" in
4955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4956 *) ac_try_echo=$ac_try;;
4957esac
4958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4960 ac_status=$?
4961 grep -v '^ *+' conftest.er1 >conftest.err
4962 rm -f conftest.er1
4963 cat conftest.err >&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); } >/dev/null && {
4966 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4967 test ! -s conftest.err
4968 }; then
4969 # Broken: success on invalid input.
4970continue
4971else
4972 echo "$as_me: failed program was:" >&5
4973sed 's/^/| /' conftest.$ac_ext >&5
4974
4975 # Passes both tests.
4976ac_preproc_ok=:
4977break
4978fi
4979
4980rm -f conftest.err conftest.$ac_ext
4981
4982done
4983# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4984rm -f conftest.err conftest.$ac_ext
4985if $ac_preproc_ok; then
4986 break
4987fi
4988
4989 done
4990 ac_cv_prog_CXXCPP=$CXXCPP
4991
4992fi
4993 CXXCPP=$ac_cv_prog_CXXCPP
4994else
4995 ac_cv_prog_CXXCPP=$CXXCPP
4996fi
4997{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
4998echo "${ECHO_T}$CXXCPP" >&6; }
4999ac_preproc_ok=false
5000for ac_cxx_preproc_warn_flag in '' yes
5001do
5002 # Use a header file that comes with gcc, so configuring glibc
5003 # with a fresh cross-compiler works.
5004 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5005 # <limits.h> exists even on freestanding compilers.
5006 # On the NeXT, cc -E runs the code through the compiler's parser,
5007 # not just through cpp. "Syntax error" is here to catch this case.
5008 cat >conftest.$ac_ext <<_ACEOF
5009/* confdefs.h. */
5010_ACEOF
5011cat confdefs.h >>conftest.$ac_ext
5012cat >>conftest.$ac_ext <<_ACEOF
5013/* end confdefs.h. */
5014#ifdef __STDC__
5015# include <limits.h>
5016#else
5017# include <assert.h>
5018#endif
5019 Syntax error
5020_ACEOF
5021if { (ac_try="$ac_cpp conftest.$ac_ext"
5022case "(($ac_try" in
5023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5024 *) ac_try_echo=$ac_try;;
5025esac
5026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5027 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5028 ac_status=$?
5029 grep -v '^ *+' conftest.er1 >conftest.err
5030 rm -f conftest.er1
5031 cat conftest.err >&5
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); } >/dev/null && {
5034 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5035 test ! -s conftest.err
5036 }; then
5037 :
5038else
5039 echo "$as_me: failed program was:" >&5
5040sed 's/^/| /' conftest.$ac_ext >&5
5041
5042 # Broken: fails on valid input.
5043continue
5044fi
5045
5046rm -f conftest.err conftest.$ac_ext
5047
5048 # OK, works on sane cases. Now check whether nonexistent headers
5049 # can be detected and how.
5050 cat >conftest.$ac_ext <<_ACEOF
5051/* confdefs.h. */
5052_ACEOF
5053cat confdefs.h >>conftest.$ac_ext
5054cat >>conftest.$ac_ext <<_ACEOF
5055/* end confdefs.h. */
5056#include <ac_nonexistent.h>
5057_ACEOF
5058if { (ac_try="$ac_cpp conftest.$ac_ext"
5059case "(($ac_try" in
5060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5061 *) ac_try_echo=$ac_try;;
5062esac
5063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5065 ac_status=$?
5066 grep -v '^ *+' conftest.er1 >conftest.err
5067 rm -f conftest.er1
5068 cat conftest.err >&5
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); } >/dev/null && {
5071 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5072 test ! -s conftest.err
5073 }; then
5074 # Broken: success on invalid input.
5075continue
5076else
5077 echo "$as_me: failed program was:" >&5
5078sed 's/^/| /' conftest.$ac_ext >&5
5079
5080 # Passes both tests.
5081ac_preproc_ok=:
5082break
5083fi
5084
5085rm -f conftest.err conftest.$ac_ext
5086
5087done
5088# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5089rm -f conftest.err conftest.$ac_ext
5090if $ac_preproc_ok; then
5091 :
5092else
5093 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5094See \`config.log' for more details." >&5
5095echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5096See \`config.log' for more details." >&2;}
5097 { (exit 1); exit 1; }; }
5098fi
5099
5100ac_ext=cpp
5101ac_cpp='$CXXCPP $CPPFLAGS'
5102ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5103ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5104ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5105 6213
5106 6214
5107{ echo "$as_me:$LINENO: checking for X" >&5 6215{ echo "$as_me:$LINENO: checking for X" >&5
5108echo $ECHO_N "checking for X... $ECHO_C" >&6; } 6216echo $ECHO_N "checking for X... $ECHO_C" >&6; }
5109 6217
6495echo "${ECHO_T}no" >&6; } 7603echo "${ECHO_T}no" >&6; }
6496 fi 7604 fi
6497 fi 7605 fi
6498fi 7606fi
6499 7607
6500{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6501echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6502if test "${ac_cv_header_sys_wait_h+set}" = set; then
6503 echo $ECHO_N "(cached) $ECHO_C" >&6
6504else
6505 cat >conftest.$ac_ext <<_ACEOF
6506/* confdefs.h. */
6507_ACEOF
6508cat confdefs.h >>conftest.$ac_ext
6509cat >>conftest.$ac_ext <<_ACEOF
6510/* end confdefs.h. */
6511#include <sys/types.h>
6512#include <sys/wait.h>
6513#ifndef WEXITSTATUS
6514# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6515#endif
6516#ifndef WIFEXITED
6517# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6518#endif
6519
6520int
6521main ()
6522{
6523 int s;
6524 wait (&s);
6525 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6526 ;
6527 return 0;
6528}
6529_ACEOF
6530rm -f conftest.$ac_objext
6531if { (ac_try="$ac_compile"
6532case "(($ac_try" in
6533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6534 *) ac_try_echo=$ac_try;;
6535esac
6536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6537 (eval "$ac_compile") 2>conftest.er1
6538 ac_status=$?
6539 grep -v '^ *+' conftest.er1 >conftest.err
6540 rm -f conftest.er1
6541 cat conftest.err >&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); } && {
6544 test -z "$ac_cxx_werror_flag" ||
6545 test ! -s conftest.err
6546 } && test -s conftest.$ac_objext; then
6547 ac_cv_header_sys_wait_h=yes
6548else
6549 echo "$as_me: failed program was:" >&5
6550sed 's/^/| /' conftest.$ac_ext >&5
6551
6552 ac_cv_header_sys_wait_h=no
6553fi
6554
6555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6556fi
6557{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6558echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6559if test $ac_cv_header_sys_wait_h = yes; then
6560
6561cat >>confdefs.h <<\_ACEOF
6562#define HAVE_SYS_WAIT_H 1
6563_ACEOF
6564
6565fi
6566
6567{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6568echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6569if test "${ac_cv_header_stdc+set}" = set; then
6570 echo $ECHO_N "(cached) $ECHO_C" >&6
6571else
6572 cat >conftest.$ac_ext <<_ACEOF
6573/* confdefs.h. */
6574_ACEOF
6575cat confdefs.h >>conftest.$ac_ext
6576cat >>conftest.$ac_ext <<_ACEOF
6577/* end confdefs.h. */
6578#include <stdlib.h>
6579#include <stdarg.h>
6580#include <string.h>
6581#include <float.h>
6582
6583int
6584main ()
6585{
6586
6587 ;
6588 return 0;
6589}
6590_ACEOF
6591rm -f conftest.$ac_objext
6592if { (ac_try="$ac_compile"
6593case "(($ac_try" in
6594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6595 *) ac_try_echo=$ac_try;;
6596esac
6597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6598 (eval "$ac_compile") 2>conftest.er1
6599 ac_status=$?
6600 grep -v '^ *+' conftest.er1 >conftest.err
6601 rm -f conftest.er1
6602 cat conftest.err >&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); } && {
6605 test -z "$ac_cxx_werror_flag" ||
6606 test ! -s conftest.err
6607 } && test -s conftest.$ac_objext; then
6608 ac_cv_header_stdc=yes
6609else
6610 echo "$as_me: failed program was:" >&5
6611sed 's/^/| /' conftest.$ac_ext >&5
6612
6613 ac_cv_header_stdc=no
6614fi
6615
6616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6617
6618if test $ac_cv_header_stdc = yes; then
6619 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6620 cat >conftest.$ac_ext <<_ACEOF
6621/* confdefs.h. */
6622_ACEOF
6623cat confdefs.h >>conftest.$ac_ext
6624cat >>conftest.$ac_ext <<_ACEOF
6625/* end confdefs.h. */
6626#include <string.h>
6627
6628_ACEOF
6629if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6630 $EGREP "memchr" >/dev/null 2>&1; then
6631 :
6632else
6633 ac_cv_header_stdc=no
6634fi
6635rm -f conftest*
6636
6637fi
6638
6639if test $ac_cv_header_stdc = yes; then
6640 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6641 cat >conftest.$ac_ext <<_ACEOF
6642/* confdefs.h. */
6643_ACEOF
6644cat confdefs.h >>conftest.$ac_ext
6645cat >>conftest.$ac_ext <<_ACEOF
6646/* end confdefs.h. */
6647#include <stdlib.h>
6648
6649_ACEOF
6650if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6651 $EGREP "free" >/dev/null 2>&1; then
6652 :
6653else
6654 ac_cv_header_stdc=no
6655fi
6656rm -f conftest*
6657
6658fi
6659
6660if test $ac_cv_header_stdc = yes; then
6661 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6662 if test "$cross_compiling" = yes; then
6663 :
6664else
6665 cat >conftest.$ac_ext <<_ACEOF
6666/* confdefs.h. */
6667_ACEOF
6668cat confdefs.h >>conftest.$ac_ext
6669cat >>conftest.$ac_ext <<_ACEOF
6670/* end confdefs.h. */
6671#include <ctype.h>
6672#include <stdlib.h>
6673#if ((' ' & 0x0FF) == 0x020)
6674# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6675# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6676#else
6677# define ISLOWER(c) \
6678 (('a' <= (c) && (c) <= 'i') \
6679 || ('j' <= (c) && (c) <= 'r') \
6680 || ('s' <= (c) && (c) <= 'z'))
6681# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6682#endif
6683
6684#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6685int
6686main ()
6687{
6688 int i;
6689 for (i = 0; i < 256; i++)
6690 if (XOR (islower (i), ISLOWER (i))
6691 || toupper (i) != TOUPPER (i))
6692 return 2;
6693 return 0;
6694}
6695_ACEOF
6696rm -f conftest$ac_exeext
6697if { (ac_try="$ac_link"
6698case "(($ac_try" in
6699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6700 *) ac_try_echo=$ac_try;;
6701esac
6702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6703 (eval "$ac_link") 2>&5
6704 ac_status=$?
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6707 { (case "(($ac_try" in
6708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6709 *) ac_try_echo=$ac_try;;
6710esac
6711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6712 (eval "$ac_try") 2>&5
6713 ac_status=$?
6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); }; }; then
6716 :
6717else
6718 echo "$as_me: program exited with status $ac_status" >&5
6719echo "$as_me: failed program was:" >&5
6720sed 's/^/| /' conftest.$ac_ext >&5
6721
6722( exit $ac_status )
6723ac_cv_header_stdc=no
6724fi
6725rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6726fi
6727
6728
6729fi
6730fi
6731{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6732echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6733if test $ac_cv_header_stdc = yes; then
6734
6735cat >>confdefs.h <<\_ACEOF
6736#define STDC_HEADERS 1
6737_ACEOF
6738
6739fi
6740
6741# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6752 inttypes.h stdint.h unistd.h
6753do
6754as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6755{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6756echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6757if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6758 echo $ECHO_N "(cached) $ECHO_C" >&6
6759else
6760 cat >conftest.$ac_ext <<_ACEOF
6761/* confdefs.h. */
6762_ACEOF
6763cat confdefs.h >>conftest.$ac_ext
6764cat >>conftest.$ac_ext <<_ACEOF
6765/* end confdefs.h. */
6766$ac_includes_default
6767
6768#include <$ac_header>
6769_ACEOF
6770rm -f conftest.$ac_objext
6771if { (ac_try="$ac_compile"
6772case "(($ac_try" in
6773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6774 *) ac_try_echo=$ac_try;;
6775esac
6776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6777 (eval "$ac_compile") 2>conftest.er1
6778 ac_status=$?
6779 grep -v '^ *+' conftest.er1 >conftest.err
6780 rm -f conftest.er1
6781 cat conftest.err >&5
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); } && {
6784 test -z "$ac_cxx_werror_flag" ||
6785 test ! -s conftest.err
6786 } && test -s conftest.$ac_objext; then
6787 eval "$as_ac_Header=yes"
6788else
6789 echo "$as_me: failed program was:" >&5
6790sed 's/^/| /' conftest.$ac_ext >&5
6791
6792 eval "$as_ac_Header=no"
6793fi
6794
6795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6796fi
6797ac_res=`eval echo '${'$as_ac_Header'}'`
6798 { echo "$as_me:$LINENO: result: $ac_res" >&5
6799echo "${ECHO_T}$ac_res" >&6; }
6800if test `eval echo '${'$as_ac_Header'}'` = yes; then
6801 cat >>confdefs.h <<_ACEOF
6802#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6803_ACEOF
6804
6805fi
6806
6807done
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820 7608
6821 7609
6822 7610
6823 7611
6824 7612
6825 7613
6826 7614
6827for ac_header in \ 7615for ac_header in \
6828 assert.h \
6829 fcntl.h \
6830 stdarg.h \
6831 stdlib.h \
6832 string.h \
6833 termios.h \
6834 unistd.h \
6835 sys/byteorder.h \ 7616 sys/byteorder.h \
6836 sys/ioctl.h \ 7617 sys/ioctl.h \
6837 sys/select.h \
6838 sys/sockio.h \ 7618 sys/sockio.h \
6839 sys/strredir.h \ 7619 sys/strredir.h \
6840 sys/time.h \
6841 stdint.h \ 7620 stdint.h \
6842 wchar.h \ 7621 wchar.h \
6843 cwchar \ 7622 cwchar \
6844 clocale \
6845 7623
6846do 7624do
6847as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7625as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6848if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7626if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6849 { echo "$as_me:$LINENO: checking for $ac_header" >&5 7627 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6980fi 7758fi
6981 7759
6982done 7760done
6983 7761
6984 7762
6985{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6986echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6987if test "${ac_cv_header_time+set}" = set; then
6988 echo $ECHO_N "(cached) $ECHO_C" >&6
6989else
6990 cat >conftest.$ac_ext <<_ACEOF
6991/* confdefs.h. */
6992_ACEOF
6993cat confdefs.h >>conftest.$ac_ext
6994cat >>conftest.$ac_ext <<_ACEOF
6995/* end confdefs.h. */
6996#include <sys/types.h>
6997#include <sys/time.h>
6998#include <time.h>
6999
7000int
7001main ()
7002{
7003if ((struct tm *) 0)
7004return 0;
7005 ;
7006 return 0;
7007}
7008_ACEOF
7009rm -f conftest.$ac_objext
7010if { (ac_try="$ac_compile"
7011case "(($ac_try" in
7012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7013 *) ac_try_echo=$ac_try;;
7014esac
7015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7016 (eval "$ac_compile") 2>conftest.er1
7017 ac_status=$?
7018 grep -v '^ *+' conftest.er1 >conftest.err
7019 rm -f conftest.er1
7020 cat conftest.err >&5
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); } && {
7023 test -z "$ac_cxx_werror_flag" ||
7024 test ! -s conftest.err
7025 } && test -s conftest.$ac_objext; then
7026 ac_cv_header_time=yes
7027else
7028 echo "$as_me: failed program was:" >&5
7029sed 's/^/| /' conftest.$ac_ext >&5
7030
7031 ac_cv_header_time=no
7032fi
7033
7034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7035fi
7036{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7037echo "${ECHO_T}$ac_cv_header_time" >&6; }
7038if test $ac_cv_header_time = yes; then
7039
7040cat >>confdefs.h <<\_ACEOF
7041#define TIME_WITH_SYS_TIME 1
7042_ACEOF
7043
7044fi
7045
7046
7047{ echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5
7048echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; }
7049if test "${rxvt_cv_header_sysioctl+set}" = set; then
7050 echo $ECHO_N "(cached) $ECHO_C" >&6
7051else
7052 cat >conftest.$ac_ext <<_ACEOF
7053/* confdefs.h. */
7054_ACEOF
7055cat confdefs.h >>conftest.$ac_ext
7056cat >>conftest.$ac_ext <<_ACEOF
7057/* end confdefs.h. */
7058#include <stdio.h>
7059#include <sys/ioctl.h>
7060#ifdef HAVE_TERMIOS_H
7061#include <termios.h>
7062#endif
7063int
7064main ()
7065{
7066int a = ECHO;
7067 ;
7068 return 0;
7069}
7070_ACEOF
7071rm -f conftest.$ac_objext
7072if { (ac_try="$ac_compile"
7073case "(($ac_try" in
7074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7075 *) ac_try_echo=$ac_try;;
7076esac
7077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7078 (eval "$ac_compile") 2>conftest.er1
7079 ac_status=$?
7080 grep -v '^ *+' conftest.er1 >conftest.err
7081 rm -f conftest.er1
7082 cat conftest.err >&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } && {
7085 test -z "$ac_cxx_werror_flag" ||
7086 test ! -s conftest.err
7087 } && test -s conftest.$ac_objext; then
7088 rxvt_cv_header_sysioctl=yes
7089else
7090 echo "$as_me: failed program was:" >&5
7091sed 's/^/| /' conftest.$ac_ext >&5
7092
7093 rxvt_cv_header_sysioctl=no
7094fi
7095
7096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7097fi
7098{ echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7099echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6; }
7100
7101{ echo "$as_me:$LINENO: checking for XPointer" >&5 7763{ echo "$as_me:$LINENO: checking for XPointer" >&5
7102echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } 7764echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; }
7103if test "${rxvt_cv_xpointer+set}" = set; then 7765if test "${rxvt_cv_xpointer+set}" = set; then
7104 echo $ECHO_N "(cached) $ECHO_C" >&6 7766 echo $ECHO_N "(cached) $ECHO_C" >&6
7105else 7767else
7216cat >>confdefs.h <<\_ACEOF 7878cat >>confdefs.h <<\_ACEOF
7217#define XLIB_ILLEGAL_ACCESS 1 7879#define XLIB_ILLEGAL_ACCESS 1
7218_ACEOF 7880_ACEOF
7219 7881
7220fi 7882fi
7221
7222{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7223echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7224if test "${ac_cv_c_const+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7226else
7227 cat >conftest.$ac_ext <<_ACEOF
7228/* confdefs.h. */
7229_ACEOF
7230cat confdefs.h >>conftest.$ac_ext
7231cat >>conftest.$ac_ext <<_ACEOF
7232/* end confdefs.h. */
7233
7234int
7235main ()
7236{
7237/* FIXME: Include the comments suggested by Paul. */
7238#ifndef __cplusplus
7239 /* Ultrix mips cc rejects this. */
7240 typedef int charset[2];
7241 const charset cs;
7242 /* SunOS 4.1.1 cc rejects this. */
7243 char const *const *pcpcc;
7244 char **ppc;
7245 /* NEC SVR4.0.2 mips cc rejects this. */
7246 struct point {int x, y;};
7247 static struct point const zero = {0,0};
7248 /* AIX XL C 1.02.0.0 rejects this.
7249 It does not let you subtract one const X* pointer from another in
7250 an arm of an if-expression whose if-part is not a constant
7251 expression */
7252 const char *g = "string";
7253 pcpcc = &g + (g ? g-g : 0);
7254 /* HPUX 7.0 cc rejects these. */
7255 ++pcpcc;
7256 ppc = (char**) pcpcc;
7257 pcpcc = (char const *const *) ppc;
7258 { /* SCO 3.2v4 cc rejects this. */
7259 char *t;
7260 char const *s = 0 ? (char *) 0 : (char const *) 0;
7261
7262 *t++ = 0;
7263 if (s) return 0;
7264 }
7265 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7266 int x[] = {25, 17};
7267 const int *foo = &x[0];
7268 ++foo;
7269 }
7270 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7271 typedef const int *iptr;
7272 iptr p = 0;
7273 ++p;
7274 }
7275 { /* AIX XL C 1.02.0.0 rejects this saying
7276 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7277 struct s { int j; const int *ap[3]; };
7278 struct s *b; b->j = 5;
7279 }
7280 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7281 const int foo = 10;
7282 if (!foo) return 0;
7283 }
7284 return !cs[0] && !zero.x;
7285#endif
7286
7287 ;
7288 return 0;
7289}
7290_ACEOF
7291rm -f conftest.$ac_objext
7292if { (ac_try="$ac_compile"
7293case "(($ac_try" in
7294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7295 *) ac_try_echo=$ac_try;;
7296esac
7297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7298 (eval "$ac_compile") 2>conftest.er1
7299 ac_status=$?
7300 grep -v '^ *+' conftest.er1 >conftest.err
7301 rm -f conftest.er1
7302 cat conftest.err >&5
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); } && {
7305 test -z "$ac_cxx_werror_flag" ||
7306 test ! -s conftest.err
7307 } && test -s conftest.$ac_objext; then
7308 ac_cv_c_const=yes
7309else
7310 echo "$as_me: failed program was:" >&5
7311sed 's/^/| /' conftest.$ac_ext >&5
7312
7313 ac_cv_c_const=no
7314fi
7315
7316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7317fi
7318{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7319echo "${ECHO_T}$ac_cv_c_const" >&6; }
7320if test $ac_cv_c_const = no; then
7321
7322cat >>confdefs.h <<\_ACEOF
7323#define const
7324_ACEOF
7325
7326fi
7327
7328{ echo "$as_me:$LINENO: checking for inline" >&5
7329echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
7330if test "${ac_cv_c_inline+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7332else
7333 ac_cv_c_inline=no
7334for ac_kw in inline __inline__ __inline; do
7335 cat >conftest.$ac_ext <<_ACEOF
7336/* confdefs.h. */
7337_ACEOF
7338cat confdefs.h >>conftest.$ac_ext
7339cat >>conftest.$ac_ext <<_ACEOF
7340/* end confdefs.h. */
7341#ifndef __cplusplus
7342typedef int foo_t;
7343static $ac_kw foo_t static_foo () {return 0; }
7344$ac_kw foo_t foo () {return 0; }
7345#endif
7346
7347_ACEOF
7348rm -f conftest.$ac_objext
7349if { (ac_try="$ac_compile"
7350case "(($ac_try" in
7351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7352 *) ac_try_echo=$ac_try;;
7353esac
7354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7355 (eval "$ac_compile") 2>conftest.er1
7356 ac_status=$?
7357 grep -v '^ *+' conftest.er1 >conftest.err
7358 rm -f conftest.er1
7359 cat conftest.err >&5
7360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); } && {
7362 test -z "$ac_cxx_werror_flag" ||
7363 test ! -s conftest.err
7364 } && test -s conftest.$ac_objext; then
7365 ac_cv_c_inline=$ac_kw
7366else
7367 echo "$as_me: failed program was:" >&5
7368sed 's/^/| /' conftest.$ac_ext >&5
7369
7370
7371fi
7372
7373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7374 test "$ac_cv_c_inline" != no && break
7375done
7376
7377fi
7378{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7379echo "${ECHO_T}$ac_cv_c_inline" >&6; }
7380
7381
7382case $ac_cv_c_inline in
7383 inline | yes) ;;
7384 *)
7385 case $ac_cv_c_inline in
7386 no) ac_val=;;
7387 *) ac_val=$ac_cv_c_inline;;
7388 esac
7389 cat >>confdefs.h <<_ACEOF
7390#ifndef __cplusplus
7391#define inline $ac_val
7392#endif
7393_ACEOF
7394 ;;
7395esac
7396
7397
7398 7883
7399{ echo "$as_me:$LINENO: checking for mode_t" >&5 7884{ echo "$as_me:$LINENO: checking for mode_t" >&5
7400echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } 7885echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
7401if test "${ac_cv_type_mode_t+set}" = set; then 7886if test "${ac_cv_type_mode_t+set}" = set; then
7402 echo $ECHO_N "(cached) $ECHO_C" >&6 7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7559_ACEOF 8044_ACEOF
7560 8045
7561fi 8046fi
7562 8047
7563 8048
7564{ echo "$as_me:$LINENO: checking for short" >&5 8049 { echo "$as_me:$LINENO: checking for int16_t" >&5
7565echo $ECHO_N "checking for short... $ECHO_C" >&6; } 8050echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
7566if test "${ac_cv_type_short+set}" = set; then 8051if test "${ac_cv_c_int16_t+set}" = set; then
7567 echo $ECHO_N "(cached) $ECHO_C" >&6 8052 echo $ECHO_N "(cached) $ECHO_C" >&6
7568else 8053else
8054 ac_cv_c_int16_t=no
8055 for ac_type in 'int16_t' 'int' 'long int' \
8056 'long long int' 'short int' 'signed char'; do
7569 cat >conftest.$ac_ext <<_ACEOF 8057 cat >conftest.$ac_ext <<_ACEOF
7570/* confdefs.h. */ 8058/* confdefs.h. */
7571_ACEOF 8059_ACEOF
7572cat confdefs.h >>conftest.$ac_ext 8060cat confdefs.h >>conftest.$ac_ext
7573cat >>conftest.$ac_ext <<_ACEOF 8061cat >>conftest.$ac_ext <<_ACEOF
7574/* end confdefs.h. */ 8062/* end confdefs.h. */
7575$ac_includes_default 8063$ac_includes_default
7576typedef short ac__type_new_;
7577int 8064int
7578main () 8065main ()
7579{ 8066{
7580if ((ac__type_new_ *) 0) 8067static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
7581 return 0; 8068test_array [0] = 0
7582if (sizeof (ac__type_new_)) 8069
7583 return 0;
7584 ; 8070 ;
7585 return 0; 8071 return 0;
7586} 8072}
7587_ACEOF 8073_ACEOF
7588rm -f conftest.$ac_objext 8074rm -f conftest.$ac_objext
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); } && { 8087 (exit $ac_status); } && {
7602 test -z "$ac_cxx_werror_flag" || 8088 test -z "$ac_cxx_werror_flag" ||
7603 test ! -s conftest.err 8089 test ! -s conftest.err
7604 } && test -s conftest.$ac_objext; then 8090 } && test -s conftest.$ac_objext; then
7605 ac_cv_type_short=yes
7606else
7607 echo "$as_me: failed program was:" >&5
7608sed 's/^/| /' conftest.$ac_ext >&5
7609
7610 ac_cv_type_short=no
7611fi
7612
7613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7614fi
7615{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7616echo "${ECHO_T}$ac_cv_type_short" >&6; }
7617
7618# The cast to long int works around a bug in the HP C Compiler
7619# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7620# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7621# This bug is HP SR number 8606223364.
7622{ echo "$as_me:$LINENO: checking size of short" >&5
7623echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
7624if test "${ac_cv_sizeof_short+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7626else
7627 if test "$cross_compiling" = yes; then
7628 # Depending upon the size, compute the lo and hi bounds.
7629cat >conftest.$ac_ext <<_ACEOF 8091 cat >conftest.$ac_ext <<_ACEOF
7630/* confdefs.h. */ 8092/* confdefs.h. */
7631_ACEOF 8093_ACEOF
7632cat confdefs.h >>conftest.$ac_ext 8094cat confdefs.h >>conftest.$ac_ext
7633cat >>conftest.$ac_ext <<_ACEOF 8095cat >>conftest.$ac_ext <<_ACEOF
7634/* end confdefs.h. */ 8096/* end confdefs.h. */
7635$ac_includes_default 8097$ac_includes_default
7636 typedef short ac__type_sizeof_;
7637int 8098int
7638main () 8099main ()
7639{ 8100{
7640static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 8101static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
8102 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
7641test_array [0] = 0 8103test_array [0] = 0
7642 8104
7643 ; 8105 ;
7644 return 0; 8106 return 0;
7645} 8107}
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); } && { 8122 (exit $ac_status); } && {
7661 test -z "$ac_cxx_werror_flag" || 8123 test -z "$ac_cxx_werror_flag" ||
7662 test ! -s conftest.err 8124 test ! -s conftest.err
7663 } && test -s conftest.$ac_objext; then 8125 } && test -s conftest.$ac_objext; then
7664 ac_lo=0 ac_mid=0 8126 :
7665 while :; do 8127else
8128 echo "$as_me: failed program was:" >&5
8129sed 's/^/| /' conftest.$ac_ext >&5
8130
8131 case $ac_type in
8132 int16_t) ac_cv_c_int16_t=yes ;;
8133 *) ac_cv_c_int16_t=$ac_type ;;
8134esac
8135
8136fi
8137
8138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8139else
8140 echo "$as_me: failed program was:" >&5
8141sed 's/^/| /' conftest.$ac_ext >&5
8142
8143
8144fi
8145
8146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8147 test "$ac_cv_c_int16_t" != no && break
8148 done
8149fi
8150{ echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
8151echo "${ECHO_T}$ac_cv_c_int16_t" >&6; }
8152 case $ac_cv_c_int16_t in #(
8153 no|yes) ;; #(
8154 *)
8155
8156cat >>confdefs.h <<_ACEOF
8157#define int16_t $ac_cv_c_int16_t
8158_ACEOF
8159;;
8160 esac
8161
8162
8163 { echo "$as_me:$LINENO: checking for uint16_t" >&5
8164echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
8165if test "${ac_cv_c_uint16_t+set}" = set; then
8166 echo $ECHO_N "(cached) $ECHO_C" >&6
8167else
8168 ac_cv_c_uint16_t=no
8169 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
8170 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7666 cat >conftest.$ac_ext <<_ACEOF 8171 cat >conftest.$ac_ext <<_ACEOF
7667/* confdefs.h. */ 8172/* confdefs.h. */
7668_ACEOF 8173_ACEOF
7669cat confdefs.h >>conftest.$ac_ext 8174cat confdefs.h >>conftest.$ac_ext
7670cat >>conftest.$ac_ext <<_ACEOF 8175cat >>conftest.$ac_ext <<_ACEOF
7671/* end confdefs.h. */ 8176/* end confdefs.h. */
7672$ac_includes_default 8177$ac_includes_default
7673 typedef short ac__type_sizeof_;
7674int 8178int
7675main () 8179main ()
7676{ 8180{
7677static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 8181static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
7678test_array [0] = 0 8182test_array [0] = 0
7679 8183
7680 ; 8184 ;
7681 return 0; 8185 return 0;
7682} 8186}
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); } && { 8201 (exit $ac_status); } && {
7698 test -z "$ac_cxx_werror_flag" || 8202 test -z "$ac_cxx_werror_flag" ||
7699 test ! -s conftest.err 8203 test ! -s conftest.err
7700 } && test -s conftest.$ac_objext; then 8204 } && test -s conftest.$ac_objext; then
7701 ac_hi=$ac_mid; break 8205 case $ac_type in
8206 uint16_t) ac_cv_c_uint16_t=yes ;;
8207 *) ac_cv_c_uint16_t=$ac_type ;;
8208esac
8209
7702else 8210else
7703 echo "$as_me: failed program was:" >&5 8211 echo "$as_me: failed program was:" >&5
7704sed 's/^/| /' conftest.$ac_ext >&5 8212sed 's/^/| /' conftest.$ac_ext >&5
7705 8213
7706 ac_lo=`expr $ac_mid + 1` 8214
7707 if test $ac_lo -le $ac_mid; then
7708 ac_lo= ac_hi=
7709 break
7710 fi
7711 ac_mid=`expr 2 '*' $ac_mid + 1`
7712fi 8215fi
7713 8216
7714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8218 test "$ac_cv_c_uint16_t" != no && break
7715 done 8219 done
7716else 8220fi
7717 echo "$as_me: failed program was:" >&5 8221{ echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
7718sed 's/^/| /' conftest.$ac_ext >&5 8222echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
8223 case $ac_cv_c_uint16_t in #(
8224 no|yes) ;; #(
8225 *)
7719 8226
8227
8228cat >>confdefs.h <<_ACEOF
8229#define uint16_t $ac_cv_c_uint16_t
8230_ACEOF
8231;;
8232 esac
8233
8234
8235 { echo "$as_me:$LINENO: checking for int32_t" >&5
8236echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
8237if test "${ac_cv_c_int32_t+set}" = set; then
8238 echo $ECHO_N "(cached) $ECHO_C" >&6
8239else
8240 ac_cv_c_int32_t=no
8241 for ac_type in 'int32_t' 'int' 'long int' \
8242 'long long int' 'short int' 'signed char'; do
7720 cat >conftest.$ac_ext <<_ACEOF 8243 cat >conftest.$ac_ext <<_ACEOF
7721/* confdefs.h. */ 8244/* confdefs.h. */
7722_ACEOF 8245_ACEOF
7723cat confdefs.h >>conftest.$ac_ext 8246cat confdefs.h >>conftest.$ac_ext
7724cat >>conftest.$ac_ext <<_ACEOF 8247cat >>conftest.$ac_ext <<_ACEOF
7725/* end confdefs.h. */ 8248/* end confdefs.h. */
7726$ac_includes_default 8249$ac_includes_default
7727 typedef short ac__type_sizeof_;
7728int 8250int
7729main () 8251main ()
7730{ 8252{
7731static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 8253static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7732test_array [0] = 0 8254test_array [0] = 0
7733 8255
7734 ; 8256 ;
7735 return 0; 8257 return 0;
7736} 8258}
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); } && { 8273 (exit $ac_status); } && {
7752 test -z "$ac_cxx_werror_flag" || 8274 test -z "$ac_cxx_werror_flag" ||
7753 test ! -s conftest.err 8275 test ! -s conftest.err
7754 } && test -s conftest.$ac_objext; then 8276 } && test -s conftest.$ac_objext; then
7755 ac_hi=-1 ac_mid=-1
7756 while :; do
7757 cat >conftest.$ac_ext <<_ACEOF 8277 cat >conftest.$ac_ext <<_ACEOF
7758/* confdefs.h. */ 8278/* confdefs.h. */
7759_ACEOF 8279_ACEOF
7760cat confdefs.h >>conftest.$ac_ext 8280cat confdefs.h >>conftest.$ac_ext
7761cat >>conftest.$ac_ext <<_ACEOF 8281cat >>conftest.$ac_ext <<_ACEOF
7762/* end confdefs.h. */ 8282/* end confdefs.h. */
7763$ac_includes_default 8283$ac_includes_default
7764 typedef short ac__type_sizeof_;
7765int 8284int
7766main () 8285main ()
7767{ 8286{
7768static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 8287static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
8288 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7769test_array [0] = 0 8289test_array [0] = 0
7770 8290
7771 ; 8291 ;
7772 return 0; 8292 return 0;
7773} 8293}
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); } && { 8308 (exit $ac_status); } && {
7789 test -z "$ac_cxx_werror_flag" || 8309 test -z "$ac_cxx_werror_flag" ||
7790 test ! -s conftest.err 8310 test ! -s conftest.err
7791 } && test -s conftest.$ac_objext; then 8311 } && test -s conftest.$ac_objext; then
7792 ac_lo=$ac_mid; break 8312 :
7793else 8313else
7794 echo "$as_me: failed program was:" >&5 8314 echo "$as_me: failed program was:" >&5
7795sed 's/^/| /' conftest.$ac_ext >&5 8315sed 's/^/| /' conftest.$ac_ext >&5
7796 8316
7797 ac_hi=`expr '(' $ac_mid ')' - 1` 8317 case $ac_type in
7798 if test $ac_mid -le $ac_hi; then 8318 int32_t) ac_cv_c_int32_t=yes ;;
7799 ac_lo= ac_hi= 8319 *) ac_cv_c_int32_t=$ac_type ;;
7800 break 8320esac
7801 fi 8321
7802 ac_mid=`expr 2 '*' $ac_mid`
7803fi 8322fi
7804 8323
7805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7806 done
7807else 8325else
7808 echo "$as_me: failed program was:" >&5 8326 echo "$as_me: failed program was:" >&5
7809sed 's/^/| /' conftest.$ac_ext >&5 8327sed 's/^/| /' conftest.$ac_ext >&5
7810 8328
7811 ac_lo= ac_hi= 8329
7812fi 8330fi
7813 8331
7814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8333 test "$ac_cv_c_int32_t" != no && break
8334 done
7815fi 8335fi
8336{ echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
8337echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
8338 case $ac_cv_c_int32_t in #(
8339 no|yes) ;; #(
8340 *)
7816 8341
7817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8342cat >>confdefs.h <<_ACEOF
7818# Binary search between lo and hi bounds. 8343#define int32_t $ac_cv_c_int32_t
7819while test "x$ac_lo" != "x$ac_hi"; do 8344_ACEOF
7820 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 8345;;
8346 esac
8347
8348
8349 { echo "$as_me:$LINENO: checking for uint32_t" >&5
8350echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
8351if test "${ac_cv_c_uint32_t+set}" = set; then
8352 echo $ECHO_N "(cached) $ECHO_C" >&6
8353else
8354 ac_cv_c_uint32_t=no
8355 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
8356 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7821 cat >conftest.$ac_ext <<_ACEOF 8357 cat >conftest.$ac_ext <<_ACEOF
7822/* confdefs.h. */ 8358/* confdefs.h. */
7823_ACEOF 8359_ACEOF
7824cat confdefs.h >>conftest.$ac_ext 8360cat confdefs.h >>conftest.$ac_ext
7825cat >>conftest.$ac_ext <<_ACEOF 8361cat >>conftest.$ac_ext <<_ACEOF
7826/* end confdefs.h. */ 8362/* end confdefs.h. */
7827$ac_includes_default 8363$ac_includes_default
7828 typedef short ac__type_sizeof_;
7829int 8364int
7830main () 8365main ()
7831{ 8366{
7832static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 8367static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7833test_array [0] = 0 8368test_array [0] = 0
7834 8369
7835 ; 8370 ;
7836 return 0; 8371 return 0;
7837} 8372}
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); } && { 8387 (exit $ac_status); } && {
7853 test -z "$ac_cxx_werror_flag" || 8388 test -z "$ac_cxx_werror_flag" ||
7854 test ! -s conftest.err 8389 test ! -s conftest.err
7855 } && test -s conftest.$ac_objext; then 8390 } && test -s conftest.$ac_objext; then
7856 ac_hi=$ac_mid 8391 case $ac_type in
8392 uint32_t) ac_cv_c_uint32_t=yes ;;
8393 *) ac_cv_c_uint32_t=$ac_type ;;
8394esac
8395
7857else 8396else
7858 echo "$as_me: failed program was:" >&5 8397 echo "$as_me: failed program was:" >&5
7859sed 's/^/| /' conftest.$ac_ext >&5 8398sed 's/^/| /' conftest.$ac_ext >&5
7860 8399
7861 ac_lo=`expr '(' $ac_mid ')' + 1` 8400
7862fi 8401fi
7863 8402
7864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7865done 8404 test "$ac_cv_c_uint32_t" != no && break
7866case $ac_lo in 8405 done
7867?*) ac_cv_sizeof_short=$ac_lo;;
7868'') if test "$ac_cv_type_short" = yes; then
7869 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
7870See \`config.log' for more details." >&5
7871echo "$as_me: error: cannot compute sizeof (short)
7872See \`config.log' for more details." >&2;}
7873 { (exit 77); exit 77; }; }
7874 else
7875 ac_cv_sizeof_short=0
7876 fi ;;
7877esac
7878else
7879 cat >conftest.$ac_ext <<_ACEOF
7880/* confdefs.h. */
7881_ACEOF
7882cat confdefs.h >>conftest.$ac_ext
7883cat >>conftest.$ac_ext <<_ACEOF
7884/* end confdefs.h. */
7885$ac_includes_default
7886 typedef short ac__type_sizeof_;
7887static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7888static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7889#include <stdio.h>
7890#include <stdlib.h>
7891int
7892main ()
7893{
7894
7895 FILE *f = fopen ("conftest.val", "w");
7896 if (! f)
7897 return 1;
7898 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7899 {
7900 long int i = longval ();
7901 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7902 return 1;
7903 fprintf (f, "%ld\n", i);
7904 }
7905 else
7906 {
7907 unsigned long int i = ulongval ();
7908 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7909 return 1;
7910 fprintf (f, "%lu\n", i);
7911 }
7912 return ferror (f) || fclose (f) != 0;
7913
7914 ;
7915 return 0;
7916}
7917_ACEOF
7918rm -f conftest$ac_exeext
7919if { (ac_try="$ac_link"
7920case "(($ac_try" in
7921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7922 *) ac_try_echo=$ac_try;;
7923esac
7924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7925 (eval "$ac_link") 2>&5
7926 ac_status=$?
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7929 { (case "(($ac_try" in
7930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7931 *) ac_try_echo=$ac_try;;
7932esac
7933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7934 (eval "$ac_try") 2>&5
7935 ac_status=$?
7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); }; }; then
7938 ac_cv_sizeof_short=`cat conftest.val`
7939else
7940 echo "$as_me: program exited with status $ac_status" >&5
7941echo "$as_me: failed program was:" >&5
7942sed 's/^/| /' conftest.$ac_ext >&5
7943
7944( exit $ac_status )
7945if test "$ac_cv_type_short" = yes; then
7946 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
7947See \`config.log' for more details." >&5
7948echo "$as_me: error: cannot compute sizeof (short)
7949See \`config.log' for more details." >&2;}
7950 { (exit 77); exit 77; }; }
7951 else
7952 ac_cv_sizeof_short=0
7953 fi
7954fi 8406fi
7955rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7956fi
7957rm -f conftest.val
7958fi
7959{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 8407{ echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7960echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } 8408echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
8409 case $ac_cv_c_uint32_t in #(
8410 no|yes) ;; #(
8411 *)
7961 8412
8413cat >>confdefs.h <<\_ACEOF
8414#define _UINT32_T 1
8415_ACEOF
7962 8416
7963 8417
7964cat >>confdefs.h <<_ACEOF 8418cat >>confdefs.h <<_ACEOF
7965#define SIZEOF_SHORT $ac_cv_sizeof_short 8419#define uint32_t $ac_cv_c_uint32_t
7966_ACEOF 8420_ACEOF
7967 8421;;
7968
7969{ echo "$as_me:$LINENO: checking for int" >&5
7970echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7971if test "${ac_cv_type_int+set}" = set; then
7972 echo $ECHO_N "(cached) $ECHO_C" >&6
7973else
7974 cat >conftest.$ac_ext <<_ACEOF
7975/* confdefs.h. */
7976_ACEOF
7977cat confdefs.h >>conftest.$ac_ext
7978cat >>conftest.$ac_ext <<_ACEOF
7979/* end confdefs.h. */
7980$ac_includes_default
7981typedef int ac__type_new_;
7982int
7983main ()
7984{
7985if ((ac__type_new_ *) 0)
7986 return 0;
7987if (sizeof (ac__type_new_))
7988 return 0;
7989 ;
7990 return 0;
7991}
7992_ACEOF
7993rm -f conftest.$ac_objext
7994if { (ac_try="$ac_compile"
7995case "(($ac_try" in
7996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7997 *) ac_try_echo=$ac_try;;
7998esac 8422 esac
7999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8000 (eval "$ac_compile") 2>conftest.er1
8001 ac_status=$?
8002 grep -v '^ *+' conftest.er1 >conftest.err
8003 rm -f conftest.er1
8004 cat conftest.err >&5
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); } && {
8007 test -z "$ac_cxx_werror_flag" ||
8008 test ! -s conftest.err
8009 } && test -s conftest.$ac_objext; then
8010 ac_cv_type_int=yes
8011else
8012 echo "$as_me: failed program was:" >&5
8013sed 's/^/| /' conftest.$ac_ext >&5
8014 8423
8015 ac_cv_type_int=no
8016fi
8017 8424
8018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8019fi
8020{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8021echo "${ECHO_T}$ac_cv_type_int" >&6; }
8022 8425
8023# The cast to long int works around a bug in the HP C Compiler
8024# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8025# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8026# This bug is HP SR number 8606223364.
8027{ echo "$as_me:$LINENO: checking size of int" >&5
8028echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
8029if test "${ac_cv_sizeof_int+set}" = set; then
8030 echo $ECHO_N "(cached) $ECHO_C" >&6
8031else
8032 if test "$cross_compiling" = yes; then
8033 # Depending upon the size, compute the lo and hi bounds.
8034cat >conftest.$ac_ext <<_ACEOF
8035/* confdefs.h. */
8036_ACEOF
8037cat confdefs.h >>conftest.$ac_ext
8038cat >>conftest.$ac_ext <<_ACEOF
8039/* end confdefs.h. */
8040$ac_includes_default
8041 typedef int ac__type_sizeof_;
8042int
8043main ()
8044{
8045static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8046test_array [0] = 0
8047
8048 ;
8049 return 0;
8050}
8051_ACEOF
8052rm -f conftest.$ac_objext
8053if { (ac_try="$ac_compile"
8054case "(($ac_try" in
8055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8056 *) ac_try_echo=$ac_try;;
8057esac
8058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8059 (eval "$ac_compile") 2>conftest.er1
8060 ac_status=$?
8061 grep -v '^ *+' conftest.er1 >conftest.err
8062 rm -f conftest.er1
8063 cat conftest.err >&5
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); } && {
8066 test -z "$ac_cxx_werror_flag" ||
8067 test ! -s conftest.err
8068 } && test -s conftest.$ac_objext; then
8069 ac_lo=0 ac_mid=0
8070 while :; do
8071 cat >conftest.$ac_ext <<_ACEOF
8072/* confdefs.h. */
8073_ACEOF
8074cat confdefs.h >>conftest.$ac_ext
8075cat >>conftest.$ac_ext <<_ACEOF
8076/* end confdefs.h. */
8077$ac_includes_default
8078 typedef int ac__type_sizeof_;
8079int
8080main ()
8081{
8082static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8083test_array [0] = 0
8084
8085 ;
8086 return 0;
8087}
8088_ACEOF
8089rm -f conftest.$ac_objext
8090if { (ac_try="$ac_compile"
8091case "(($ac_try" in
8092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8093 *) ac_try_echo=$ac_try;;
8094esac
8095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8096 (eval "$ac_compile") 2>conftest.er1
8097 ac_status=$?
8098 grep -v '^ *+' conftest.er1 >conftest.err
8099 rm -f conftest.er1
8100 cat conftest.err >&5
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); } && {
8103 test -z "$ac_cxx_werror_flag" ||
8104 test ! -s conftest.err
8105 } && test -s conftest.$ac_objext; then
8106 ac_hi=$ac_mid; break
8107else
8108 echo "$as_me: failed program was:" >&5
8109sed 's/^/| /' conftest.$ac_ext >&5
8110
8111 ac_lo=`expr $ac_mid + 1`
8112 if test $ac_lo -le $ac_mid; then
8113 ac_lo= ac_hi=
8114 break
8115 fi
8116 ac_mid=`expr 2 '*' $ac_mid + 1`
8117fi
8118
8119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8120 done
8121else
8122 echo "$as_me: failed program was:" >&5
8123sed 's/^/| /' conftest.$ac_ext >&5
8124
8125 cat >conftest.$ac_ext <<_ACEOF
8126/* confdefs.h. */
8127_ACEOF
8128cat confdefs.h >>conftest.$ac_ext
8129cat >>conftest.$ac_ext <<_ACEOF
8130/* end confdefs.h. */
8131$ac_includes_default
8132 typedef int ac__type_sizeof_;
8133int
8134main ()
8135{
8136static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8137test_array [0] = 0
8138
8139 ;
8140 return 0;
8141}
8142_ACEOF
8143rm -f conftest.$ac_objext
8144if { (ac_try="$ac_compile"
8145case "(($ac_try" in
8146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147 *) ac_try_echo=$ac_try;;
8148esac
8149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8150 (eval "$ac_compile") 2>conftest.er1
8151 ac_status=$?
8152 grep -v '^ *+' conftest.er1 >conftest.err
8153 rm -f conftest.er1
8154 cat conftest.err >&5
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); } && {
8157 test -z "$ac_cxx_werror_flag" ||
8158 test ! -s conftest.err
8159 } && test -s conftest.$ac_objext; then
8160 ac_hi=-1 ac_mid=-1
8161 while :; do
8162 cat >conftest.$ac_ext <<_ACEOF
8163/* confdefs.h. */
8164_ACEOF
8165cat confdefs.h >>conftest.$ac_ext
8166cat >>conftest.$ac_ext <<_ACEOF
8167/* end confdefs.h. */
8168$ac_includes_default
8169 typedef int ac__type_sizeof_;
8170int
8171main ()
8172{
8173static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8174test_array [0] = 0
8175
8176 ;
8177 return 0;
8178}
8179_ACEOF
8180rm -f conftest.$ac_objext
8181if { (ac_try="$ac_compile"
8182case "(($ac_try" in
8183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8184 *) ac_try_echo=$ac_try;;
8185esac
8186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8187 (eval "$ac_compile") 2>conftest.er1
8188 ac_status=$?
8189 grep -v '^ *+' conftest.er1 >conftest.err
8190 rm -f conftest.er1
8191 cat conftest.err >&5
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); } && {
8194 test -z "$ac_cxx_werror_flag" ||
8195 test ! -s conftest.err
8196 } && test -s conftest.$ac_objext; then
8197 ac_lo=$ac_mid; break
8198else
8199 echo "$as_me: failed program was:" >&5
8200sed 's/^/| /' conftest.$ac_ext >&5
8201
8202 ac_hi=`expr '(' $ac_mid ')' - 1`
8203 if test $ac_mid -le $ac_hi; then
8204 ac_lo= ac_hi=
8205 break
8206 fi
8207 ac_mid=`expr 2 '*' $ac_mid`
8208fi
8209
8210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8211 done
8212else
8213 echo "$as_me: failed program was:" >&5
8214sed 's/^/| /' conftest.$ac_ext >&5
8215
8216 ac_lo= ac_hi=
8217fi
8218
8219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8220fi
8221
8222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8223# Binary search between lo and hi bounds.
8224while test "x$ac_lo" != "x$ac_hi"; do
8225 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8226 cat >conftest.$ac_ext <<_ACEOF
8227/* confdefs.h. */
8228_ACEOF
8229cat confdefs.h >>conftest.$ac_ext
8230cat >>conftest.$ac_ext <<_ACEOF
8231/* end confdefs.h. */
8232$ac_includes_default
8233 typedef int ac__type_sizeof_;
8234int
8235main ()
8236{
8237static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8238test_array [0] = 0
8239
8240 ;
8241 return 0;
8242}
8243_ACEOF
8244rm -f conftest.$ac_objext
8245if { (ac_try="$ac_compile"
8246case "(($ac_try" in
8247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8248 *) ac_try_echo=$ac_try;;
8249esac
8250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8251 (eval "$ac_compile") 2>conftest.er1
8252 ac_status=$?
8253 grep -v '^ *+' conftest.er1 >conftest.err
8254 rm -f conftest.er1
8255 cat conftest.err >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); } && {
8258 test -z "$ac_cxx_werror_flag" ||
8259 test ! -s conftest.err
8260 } && test -s conftest.$ac_objext; then
8261 ac_hi=$ac_mid
8262else
8263 echo "$as_me: failed program was:" >&5
8264sed 's/^/| /' conftest.$ac_ext >&5
8265
8266 ac_lo=`expr '(' $ac_mid ')' + 1`
8267fi
8268
8269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8270done
8271case $ac_lo in
8272?*) ac_cv_sizeof_int=$ac_lo;;
8273'') if test "$ac_cv_type_int" = yes; then
8274 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8275See \`config.log' for more details." >&5
8276echo "$as_me: error: cannot compute sizeof (int)
8277See \`config.log' for more details." >&2;}
8278 { (exit 77); exit 77; }; }
8279 else
8280 ac_cv_sizeof_int=0
8281 fi ;;
8282esac
8283else
8284 cat >conftest.$ac_ext <<_ACEOF
8285/* confdefs.h. */
8286_ACEOF
8287cat confdefs.h >>conftest.$ac_ext
8288cat >>conftest.$ac_ext <<_ACEOF
8289/* end confdefs.h. */
8290$ac_includes_default
8291 typedef int ac__type_sizeof_;
8292static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8293static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8294#include <stdio.h>
8295#include <stdlib.h>
8296int
8297main ()
8298{
8299
8300 FILE *f = fopen ("conftest.val", "w");
8301 if (! f)
8302 return 1;
8303 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8304 {
8305 long int i = longval ();
8306 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8307 return 1;
8308 fprintf (f, "%ld\n", i);
8309 }
8310 else
8311 {
8312 unsigned long int i = ulongval ();
8313 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8314 return 1;
8315 fprintf (f, "%lu\n", i);
8316 }
8317 return ferror (f) || fclose (f) != 0;
8318
8319 ;
8320 return 0;
8321}
8322_ACEOF
8323rm -f conftest$ac_exeext
8324if { (ac_try="$ac_link"
8325case "(($ac_try" in
8326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8327 *) ac_try_echo=$ac_try;;
8328esac
8329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8330 (eval "$ac_link") 2>&5
8331 ac_status=$?
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8334 { (case "(($ac_try" in
8335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8336 *) ac_try_echo=$ac_try;;
8337esac
8338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8339 (eval "$ac_try") 2>&5
8340 ac_status=$?
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); }; }; then
8343 ac_cv_sizeof_int=`cat conftest.val`
8344else
8345 echo "$as_me: program exited with status $ac_status" >&5
8346echo "$as_me: failed program was:" >&5
8347sed 's/^/| /' conftest.$ac_ext >&5
8348
8349( exit $ac_status )
8350if test "$ac_cv_type_int" = yes; then
8351 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8352See \`config.log' for more details." >&5
8353echo "$as_me: error: cannot compute sizeof (int)
8354See \`config.log' for more details." >&2;}
8355 { (exit 77); exit 77; }; }
8356 else
8357 ac_cv_sizeof_int=0
8358 fi
8359fi
8360rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8361fi
8362rm -f conftest.val
8363fi
8364{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8365echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
8366
8367
8368
8369cat >>confdefs.h <<_ACEOF
8370#define SIZEOF_INT $ac_cv_sizeof_int
8371_ACEOF
8372
8373
8374{ echo "$as_me:$LINENO: checking for long long" >&5
8375echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8376if test "${ac_cv_type_long_long+set}" = set; then
8377 echo $ECHO_N "(cached) $ECHO_C" >&6
8378else
8379 cat >conftest.$ac_ext <<_ACEOF
8380/* confdefs.h. */
8381_ACEOF
8382cat confdefs.h >>conftest.$ac_ext
8383cat >>conftest.$ac_ext <<_ACEOF
8384/* end confdefs.h. */
8385$ac_includes_default
8386typedef long long ac__type_new_;
8387int
8388main ()
8389{
8390if ((ac__type_new_ *) 0)
8391 return 0;
8392if (sizeof (ac__type_new_))
8393 return 0;
8394 ;
8395 return 0;
8396}
8397_ACEOF
8398rm -f conftest.$ac_objext
8399if { (ac_try="$ac_compile"
8400case "(($ac_try" in
8401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402 *) ac_try_echo=$ac_try;;
8403esac
8404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405 (eval "$ac_compile") 2>conftest.er1
8406 ac_status=$?
8407 grep -v '^ *+' conftest.er1 >conftest.err
8408 rm -f conftest.er1
8409 cat conftest.err >&5
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); } && {
8412 test -z "$ac_cxx_werror_flag" ||
8413 test ! -s conftest.err
8414 } && test -s conftest.$ac_objext; then
8415 ac_cv_type_long_long=yes
8416else
8417 echo "$as_me: failed program was:" >&5
8418sed 's/^/| /' conftest.$ac_ext >&5
8419
8420 ac_cv_type_long_long=no
8421fi
8422
8423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8424fi
8425{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8426echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8427
8428# The cast to long int works around a bug in the HP C Compiler
8429# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8430# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8431# This bug is HP SR number 8606223364.
8432{ echo "$as_me:$LINENO: checking size of long long" >&5
8433echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
8434if test "${ac_cv_sizeof_long_long+set}" = set; then
8435 echo $ECHO_N "(cached) $ECHO_C" >&6
8436else
8437 if test "$cross_compiling" = yes; then
8438 # Depending upon the size, compute the lo and hi bounds.
8439cat >conftest.$ac_ext <<_ACEOF
8440/* confdefs.h. */
8441_ACEOF
8442cat confdefs.h >>conftest.$ac_ext
8443cat >>conftest.$ac_ext <<_ACEOF
8444/* end confdefs.h. */
8445$ac_includes_default
8446 typedef long long ac__type_sizeof_;
8447int
8448main ()
8449{
8450static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8451test_array [0] = 0
8452
8453 ;
8454 return 0;
8455}
8456_ACEOF
8457rm -f conftest.$ac_objext
8458if { (ac_try="$ac_compile"
8459case "(($ac_try" in
8460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8461 *) ac_try_echo=$ac_try;;
8462esac
8463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8464 (eval "$ac_compile") 2>conftest.er1
8465 ac_status=$?
8466 grep -v '^ *+' conftest.er1 >conftest.err
8467 rm -f conftest.er1
8468 cat conftest.err >&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); } && {
8471 test -z "$ac_cxx_werror_flag" ||
8472 test ! -s conftest.err
8473 } && test -s conftest.$ac_objext; then
8474 ac_lo=0 ac_mid=0
8475 while :; do
8476 cat >conftest.$ac_ext <<_ACEOF
8477/* confdefs.h. */
8478_ACEOF
8479cat confdefs.h >>conftest.$ac_ext
8480cat >>conftest.$ac_ext <<_ACEOF
8481/* end confdefs.h. */
8482$ac_includes_default
8483 typedef long long ac__type_sizeof_;
8484int
8485main ()
8486{
8487static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8488test_array [0] = 0
8489
8490 ;
8491 return 0;
8492}
8493_ACEOF
8494rm -f conftest.$ac_objext
8495if { (ac_try="$ac_compile"
8496case "(($ac_try" in
8497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8498 *) ac_try_echo=$ac_try;;
8499esac
8500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8501 (eval "$ac_compile") 2>conftest.er1
8502 ac_status=$?
8503 grep -v '^ *+' conftest.er1 >conftest.err
8504 rm -f conftest.er1
8505 cat conftest.err >&5
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); } && {
8508 test -z "$ac_cxx_werror_flag" ||
8509 test ! -s conftest.err
8510 } && test -s conftest.$ac_objext; then
8511 ac_hi=$ac_mid; break
8512else
8513 echo "$as_me: failed program was:" >&5
8514sed 's/^/| /' conftest.$ac_ext >&5
8515
8516 ac_lo=`expr $ac_mid + 1`
8517 if test $ac_lo -le $ac_mid; then
8518 ac_lo= ac_hi=
8519 break
8520 fi
8521 ac_mid=`expr 2 '*' $ac_mid + 1`
8522fi
8523
8524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8525 done
8526else
8527 echo "$as_me: failed program was:" >&5
8528sed 's/^/| /' conftest.$ac_ext >&5
8529
8530 cat >conftest.$ac_ext <<_ACEOF
8531/* confdefs.h. */
8532_ACEOF
8533cat confdefs.h >>conftest.$ac_ext
8534cat >>conftest.$ac_ext <<_ACEOF
8535/* end confdefs.h. */
8536$ac_includes_default
8537 typedef long long ac__type_sizeof_;
8538int
8539main ()
8540{
8541static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8542test_array [0] = 0
8543
8544 ;
8545 return 0;
8546}
8547_ACEOF
8548rm -f conftest.$ac_objext
8549if { (ac_try="$ac_compile"
8550case "(($ac_try" in
8551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8552 *) ac_try_echo=$ac_try;;
8553esac
8554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8555 (eval "$ac_compile") 2>conftest.er1
8556 ac_status=$?
8557 grep -v '^ *+' conftest.er1 >conftest.err
8558 rm -f conftest.er1
8559 cat conftest.err >&5
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); } && {
8562 test -z "$ac_cxx_werror_flag" ||
8563 test ! -s conftest.err
8564 } && test -s conftest.$ac_objext; then
8565 ac_hi=-1 ac_mid=-1
8566 while :; do
8567 cat >conftest.$ac_ext <<_ACEOF
8568/* confdefs.h. */
8569_ACEOF
8570cat confdefs.h >>conftest.$ac_ext
8571cat >>conftest.$ac_ext <<_ACEOF
8572/* end confdefs.h. */
8573$ac_includes_default
8574 typedef long long ac__type_sizeof_;
8575int
8576main ()
8577{
8578static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8579test_array [0] = 0
8580
8581 ;
8582 return 0;
8583}
8584_ACEOF
8585rm -f conftest.$ac_objext
8586if { (ac_try="$ac_compile"
8587case "(($ac_try" in
8588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8589 *) ac_try_echo=$ac_try;;
8590esac
8591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8592 (eval "$ac_compile") 2>conftest.er1
8593 ac_status=$?
8594 grep -v '^ *+' conftest.er1 >conftest.err
8595 rm -f conftest.er1
8596 cat conftest.err >&5
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); } && {
8599 test -z "$ac_cxx_werror_flag" ||
8600 test ! -s conftest.err
8601 } && test -s conftest.$ac_objext; then
8602 ac_lo=$ac_mid; break
8603else
8604 echo "$as_me: failed program was:" >&5
8605sed 's/^/| /' conftest.$ac_ext >&5
8606
8607 ac_hi=`expr '(' $ac_mid ')' - 1`
8608 if test $ac_mid -le $ac_hi; then
8609 ac_lo= ac_hi=
8610 break
8611 fi
8612 ac_mid=`expr 2 '*' $ac_mid`
8613fi
8614
8615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8616 done
8617else
8618 echo "$as_me: failed program was:" >&5
8619sed 's/^/| /' conftest.$ac_ext >&5
8620
8621 ac_lo= ac_hi=
8622fi
8623
8624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8625fi
8626
8627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8628# Binary search between lo and hi bounds.
8629while test "x$ac_lo" != "x$ac_hi"; do
8630 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8631 cat >conftest.$ac_ext <<_ACEOF
8632/* confdefs.h. */
8633_ACEOF
8634cat confdefs.h >>conftest.$ac_ext
8635cat >>conftest.$ac_ext <<_ACEOF
8636/* end confdefs.h. */
8637$ac_includes_default
8638 typedef long long ac__type_sizeof_;
8639int
8640main ()
8641{
8642static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8643test_array [0] = 0
8644
8645 ;
8646 return 0;
8647}
8648_ACEOF
8649rm -f conftest.$ac_objext
8650if { (ac_try="$ac_compile"
8651case "(($ac_try" in
8652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8653 *) ac_try_echo=$ac_try;;
8654esac
8655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8656 (eval "$ac_compile") 2>conftest.er1
8657 ac_status=$?
8658 grep -v '^ *+' conftest.er1 >conftest.err
8659 rm -f conftest.er1
8660 cat conftest.err >&5
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); } && {
8663 test -z "$ac_cxx_werror_flag" ||
8664 test ! -s conftest.err
8665 } && test -s conftest.$ac_objext; then
8666 ac_hi=$ac_mid
8667else
8668 echo "$as_me: failed program was:" >&5
8669sed 's/^/| /' conftest.$ac_ext >&5
8670
8671 ac_lo=`expr '(' $ac_mid ')' + 1`
8672fi
8673
8674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8675done
8676case $ac_lo in
8677?*) ac_cv_sizeof_long_long=$ac_lo;;
8678'') if test "$ac_cv_type_long_long" = yes; then
8679 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
8680See \`config.log' for more details." >&5
8681echo "$as_me: error: cannot compute sizeof (long long)
8682See \`config.log' for more details." >&2;}
8683 { (exit 77); exit 77; }; }
8684 else
8685 ac_cv_sizeof_long_long=0
8686 fi ;;
8687esac
8688else
8689 cat >conftest.$ac_ext <<_ACEOF
8690/* confdefs.h. */
8691_ACEOF
8692cat confdefs.h >>conftest.$ac_ext
8693cat >>conftest.$ac_ext <<_ACEOF
8694/* end confdefs.h. */
8695$ac_includes_default
8696 typedef long long ac__type_sizeof_;
8697static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8698static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8699#include <stdio.h>
8700#include <stdlib.h>
8701int
8702main ()
8703{
8704
8705 FILE *f = fopen ("conftest.val", "w");
8706 if (! f)
8707 return 1;
8708 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8709 {
8710 long int i = longval ();
8711 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8712 return 1;
8713 fprintf (f, "%ld\n", i);
8714 }
8715 else
8716 {
8717 unsigned long int i = ulongval ();
8718 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8719 return 1;
8720 fprintf (f, "%lu\n", i);
8721 }
8722 return ferror (f) || fclose (f) != 0;
8723
8724 ;
8725 return 0;
8726}
8727_ACEOF
8728rm -f conftest$ac_exeext
8729if { (ac_try="$ac_link"
8730case "(($ac_try" in
8731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8732 *) ac_try_echo=$ac_try;;
8733esac
8734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8735 (eval "$ac_link") 2>&5
8736 ac_status=$?
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8739 { (case "(($ac_try" in
8740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8741 *) ac_try_echo=$ac_try;;
8742esac
8743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8744 (eval "$ac_try") 2>&5
8745 ac_status=$?
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); }; }; then
8748 ac_cv_sizeof_long_long=`cat conftest.val`
8749else
8750 echo "$as_me: program exited with status $ac_status" >&5
8751echo "$as_me: failed program was:" >&5
8752sed 's/^/| /' conftest.$ac_ext >&5
8753
8754( exit $ac_status )
8755if test "$ac_cv_type_long_long" = yes; then
8756 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
8757See \`config.log' for more details." >&5
8758echo "$as_me: error: cannot compute sizeof (long long)
8759See \`config.log' for more details." >&2;}
8760 { (exit 77); exit 77; }; }
8761 else
8762 ac_cv_sizeof_long_long=0
8763 fi
8764fi
8765rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8766fi
8767rm -f conftest.val
8768fi
8769{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8770echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
8771
8772
8773
8774cat >>confdefs.h <<_ACEOF
8775#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8776_ACEOF
8777
8778
8779{ echo "$as_me:$LINENO: checking for int *" >&5
8780echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
8781if test "${ac_cv_type_int_p+set}" = set; then
8782 echo $ECHO_N "(cached) $ECHO_C" >&6
8783else
8784 cat >conftest.$ac_ext <<_ACEOF
8785/* confdefs.h. */
8786_ACEOF
8787cat confdefs.h >>conftest.$ac_ext
8788cat >>conftest.$ac_ext <<_ACEOF
8789/* end confdefs.h. */
8790$ac_includes_default
8791typedef int * ac__type_new_;
8792int
8793main ()
8794{
8795if ((ac__type_new_ *) 0)
8796 return 0;
8797if (sizeof (ac__type_new_))
8798 return 0;
8799 ;
8800 return 0;
8801}
8802_ACEOF
8803rm -f conftest.$ac_objext
8804if { (ac_try="$ac_compile"
8805case "(($ac_try" in
8806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8807 *) ac_try_echo=$ac_try;;
8808esac
8809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8810 (eval "$ac_compile") 2>conftest.er1
8811 ac_status=$?
8812 grep -v '^ *+' conftest.er1 >conftest.err
8813 rm -f conftest.er1
8814 cat conftest.err >&5
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); } && {
8817 test -z "$ac_cxx_werror_flag" ||
8818 test ! -s conftest.err
8819 } && test -s conftest.$ac_objext; then
8820 ac_cv_type_int_p=yes
8821else
8822 echo "$as_me: failed program was:" >&5
8823sed 's/^/| /' conftest.$ac_ext >&5
8824
8825 ac_cv_type_int_p=no
8826fi
8827
8828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8829fi
8830{ echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
8831echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
8832
8833# The cast to long int works around a bug in the HP C Compiler
8834# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8835# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8836# This bug is HP SR number 8606223364.
8837{ echo "$as_me:$LINENO: checking size of int *" >&5
8838echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
8839if test "${ac_cv_sizeof_int_p+set}" = set; then
8840 echo $ECHO_N "(cached) $ECHO_C" >&6
8841else
8842 if test "$cross_compiling" = yes; then
8843 # Depending upon the size, compute the lo and hi bounds.
8844cat >conftest.$ac_ext <<_ACEOF
8845/* confdefs.h. */
8846_ACEOF
8847cat confdefs.h >>conftest.$ac_ext
8848cat >>conftest.$ac_ext <<_ACEOF
8849/* end confdefs.h. */
8850$ac_includes_default
8851 typedef int * ac__type_sizeof_;
8852int
8853main ()
8854{
8855static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8856test_array [0] = 0
8857
8858 ;
8859 return 0;
8860}
8861_ACEOF
8862rm -f conftest.$ac_objext
8863if { (ac_try="$ac_compile"
8864case "(($ac_try" in
8865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8866 *) ac_try_echo=$ac_try;;
8867esac
8868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8869 (eval "$ac_compile") 2>conftest.er1
8870 ac_status=$?
8871 grep -v '^ *+' conftest.er1 >conftest.err
8872 rm -f conftest.er1
8873 cat conftest.err >&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); } && {
8876 test -z "$ac_cxx_werror_flag" ||
8877 test ! -s conftest.err
8878 } && test -s conftest.$ac_objext; then
8879 ac_lo=0 ac_mid=0
8880 while :; do
8881 cat >conftest.$ac_ext <<_ACEOF
8882/* confdefs.h. */
8883_ACEOF
8884cat confdefs.h >>conftest.$ac_ext
8885cat >>conftest.$ac_ext <<_ACEOF
8886/* end confdefs.h. */
8887$ac_includes_default
8888 typedef int * ac__type_sizeof_;
8889int
8890main ()
8891{
8892static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8893test_array [0] = 0
8894
8895 ;
8896 return 0;
8897}
8898_ACEOF
8899rm -f conftest.$ac_objext
8900if { (ac_try="$ac_compile"
8901case "(($ac_try" in
8902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8903 *) ac_try_echo=$ac_try;;
8904esac
8905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8906 (eval "$ac_compile") 2>conftest.er1
8907 ac_status=$?
8908 grep -v '^ *+' conftest.er1 >conftest.err
8909 rm -f conftest.er1
8910 cat conftest.err >&5
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); } && {
8913 test -z "$ac_cxx_werror_flag" ||
8914 test ! -s conftest.err
8915 } && test -s conftest.$ac_objext; then
8916 ac_hi=$ac_mid; break
8917else
8918 echo "$as_me: failed program was:" >&5
8919sed 's/^/| /' conftest.$ac_ext >&5
8920
8921 ac_lo=`expr $ac_mid + 1`
8922 if test $ac_lo -le $ac_mid; then
8923 ac_lo= ac_hi=
8924 break
8925 fi
8926 ac_mid=`expr 2 '*' $ac_mid + 1`
8927fi
8928
8929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8930 done
8931else
8932 echo "$as_me: failed program was:" >&5
8933sed 's/^/| /' conftest.$ac_ext >&5
8934
8935 cat >conftest.$ac_ext <<_ACEOF
8936/* confdefs.h. */
8937_ACEOF
8938cat confdefs.h >>conftest.$ac_ext
8939cat >>conftest.$ac_ext <<_ACEOF
8940/* end confdefs.h. */
8941$ac_includes_default
8942 typedef int * ac__type_sizeof_;
8943int
8944main ()
8945{
8946static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8947test_array [0] = 0
8948
8949 ;
8950 return 0;
8951}
8952_ACEOF
8953rm -f conftest.$ac_objext
8954if { (ac_try="$ac_compile"
8955case "(($ac_try" in
8956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8957 *) ac_try_echo=$ac_try;;
8958esac
8959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8960 (eval "$ac_compile") 2>conftest.er1
8961 ac_status=$?
8962 grep -v '^ *+' conftest.er1 >conftest.err
8963 rm -f conftest.er1
8964 cat conftest.err >&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); } && {
8967 test -z "$ac_cxx_werror_flag" ||
8968 test ! -s conftest.err
8969 } && test -s conftest.$ac_objext; then
8970 ac_hi=-1 ac_mid=-1
8971 while :; do
8972 cat >conftest.$ac_ext <<_ACEOF
8973/* confdefs.h. */
8974_ACEOF
8975cat confdefs.h >>conftest.$ac_ext
8976cat >>conftest.$ac_ext <<_ACEOF
8977/* end confdefs.h. */
8978$ac_includes_default
8979 typedef int * ac__type_sizeof_;
8980int
8981main ()
8982{
8983static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8984test_array [0] = 0
8985
8986 ;
8987 return 0;
8988}
8989_ACEOF
8990rm -f conftest.$ac_objext
8991if { (ac_try="$ac_compile"
8992case "(($ac_try" in
8993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8994 *) ac_try_echo=$ac_try;;
8995esac
8996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8997 (eval "$ac_compile") 2>conftest.er1
8998 ac_status=$?
8999 grep -v '^ *+' conftest.er1 >conftest.err
9000 rm -f conftest.er1
9001 cat conftest.err >&5
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); } && {
9004 test -z "$ac_cxx_werror_flag" ||
9005 test ! -s conftest.err
9006 } && test -s conftest.$ac_objext; then
9007 ac_lo=$ac_mid; break
9008else
9009 echo "$as_me: failed program was:" >&5
9010sed 's/^/| /' conftest.$ac_ext >&5
9011
9012 ac_hi=`expr '(' $ac_mid ')' - 1`
9013 if test $ac_mid -le $ac_hi; then
9014 ac_lo= ac_hi=
9015 break
9016 fi
9017 ac_mid=`expr 2 '*' $ac_mid`
9018fi
9019
9020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9021 done
9022else
9023 echo "$as_me: failed program was:" >&5
9024sed 's/^/| /' conftest.$ac_ext >&5
9025
9026 ac_lo= ac_hi=
9027fi
9028
9029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9030fi
9031
9032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9033# Binary search between lo and hi bounds.
9034while test "x$ac_lo" != "x$ac_hi"; do
9035 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9036 cat >conftest.$ac_ext <<_ACEOF
9037/* confdefs.h. */
9038_ACEOF
9039cat confdefs.h >>conftest.$ac_ext
9040cat >>conftest.$ac_ext <<_ACEOF
9041/* end confdefs.h. */
9042$ac_includes_default
9043 typedef int * ac__type_sizeof_;
9044int
9045main ()
9046{
9047static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9048test_array [0] = 0
9049
9050 ;
9051 return 0;
9052}
9053_ACEOF
9054rm -f conftest.$ac_objext
9055if { (ac_try="$ac_compile"
9056case "(($ac_try" in
9057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9058 *) ac_try_echo=$ac_try;;
9059esac
9060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9061 (eval "$ac_compile") 2>conftest.er1
9062 ac_status=$?
9063 grep -v '^ *+' conftest.er1 >conftest.err
9064 rm -f conftest.er1
9065 cat conftest.err >&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); } && {
9068 test -z "$ac_cxx_werror_flag" ||
9069 test ! -s conftest.err
9070 } && test -s conftest.$ac_objext; then
9071 ac_hi=$ac_mid
9072else
9073 echo "$as_me: failed program was:" >&5
9074sed 's/^/| /' conftest.$ac_ext >&5
9075
9076 ac_lo=`expr '(' $ac_mid ')' + 1`
9077fi
9078
9079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9080done
9081case $ac_lo in
9082?*) ac_cv_sizeof_int_p=$ac_lo;;
9083'') if test "$ac_cv_type_int_p" = yes; then
9084 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
9085See \`config.log' for more details." >&5
9086echo "$as_me: error: cannot compute sizeof (int *)
9087See \`config.log' for more details." >&2;}
9088 { (exit 77); exit 77; }; }
9089 else
9090 ac_cv_sizeof_int_p=0
9091 fi ;;
9092esac
9093else
9094 cat >conftest.$ac_ext <<_ACEOF
9095/* confdefs.h. */
9096_ACEOF
9097cat confdefs.h >>conftest.$ac_ext
9098cat >>conftest.$ac_ext <<_ACEOF
9099/* end confdefs.h. */
9100$ac_includes_default
9101 typedef int * ac__type_sizeof_;
9102static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9103static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9104#include <stdio.h>
9105#include <stdlib.h>
9106int
9107main ()
9108{
9109
9110 FILE *f = fopen ("conftest.val", "w");
9111 if (! f)
9112 return 1;
9113 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9114 {
9115 long int i = longval ();
9116 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9117 return 1;
9118 fprintf (f, "%ld\n", i);
9119 }
9120 else
9121 {
9122 unsigned long int i = ulongval ();
9123 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9124 return 1;
9125 fprintf (f, "%lu\n", i);
9126 }
9127 return ferror (f) || fclose (f) != 0;
9128
9129 ;
9130 return 0;
9131}
9132_ACEOF
9133rm -f conftest$ac_exeext
9134if { (ac_try="$ac_link"
9135case "(($ac_try" in
9136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9137 *) ac_try_echo=$ac_try;;
9138esac
9139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9140 (eval "$ac_link") 2>&5
9141 ac_status=$?
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9144 { (case "(($ac_try" in
9145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9146 *) ac_try_echo=$ac_try;;
9147esac
9148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9149 (eval "$ac_try") 2>&5
9150 ac_status=$?
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); }; }; then
9153 ac_cv_sizeof_int_p=`cat conftest.val`
9154else
9155 echo "$as_me: program exited with status $ac_status" >&5
9156echo "$as_me: failed program was:" >&5
9157sed 's/^/| /' conftest.$ac_ext >&5
9158
9159( exit $ac_status )
9160if test "$ac_cv_type_int_p" = yes; then
9161 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
9162See \`config.log' for more details." >&5
9163echo "$as_me: error: cannot compute sizeof (int *)
9164See \`config.log' for more details." >&2;}
9165 { (exit 77); exit 77; }; }
9166 else
9167 ac_cv_sizeof_int_p=0
9168 fi
9169fi
9170rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9171fi
9172rm -f conftest.val
9173fi
9174{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
9175echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
9176
9177
9178
9179cat >>confdefs.h <<_ACEOF
9180#define SIZEOF_INT_P $ac_cv_sizeof_int_p
9181_ACEOF
9182
9183
9184
9185
9186{ echo "$as_me:$LINENO: checking for int16_t" >&5
9187echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
9188if test "${rxvt_cv_int16_t+set}" = set; then
9189 echo $ECHO_N "(cached) $ECHO_C" >&6
9190else
9191 cat >conftest.$ac_ext <<_ACEOF
9192/* confdefs.h. */
9193_ACEOF
9194cat confdefs.h >>conftest.$ac_ext
9195cat >>conftest.$ac_ext <<_ACEOF
9196/* end confdefs.h. */
9197#include <stdint.h>
9198int
9199main ()
9200{
9201int16_t dummy;
9202 ;
9203 return 0;
9204}
9205_ACEOF
9206rm -f conftest.$ac_objext
9207if { (ac_try="$ac_compile"
9208case "(($ac_try" in
9209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9210 *) ac_try_echo=$ac_try;;
9211esac
9212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9213 (eval "$ac_compile") 2>conftest.er1
9214 ac_status=$?
9215 grep -v '^ *+' conftest.er1 >conftest.err
9216 rm -f conftest.er1
9217 cat conftest.err >&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); } && {
9220 test -z "$ac_cxx_werror_flag" ||
9221 test ! -s conftest.err
9222 } && test -s conftest.$ac_objext; then
9223 rxvt_cv_int16_t=yes
9224else
9225 echo "$as_me: failed program was:" >&5
9226sed 's/^/| /' conftest.$ac_ext >&5
9227
9228 if test "$ac_cv_sizeof_char" -ge 2; then
9229 rxvt_cv_int16_t=" char"
9230else
9231 if test "$ac_cv_sizeof_short" -ge 2; then
9232 rxvt_cv_int16_t=" short"
9233 else
9234 if test "$ac_cv_sizeof_int" -ge 2; then
9235 rxvt_cv_int16_t=" int"
9236 else
9237 if test "$ac_cv_sizeof_long" -ge 2; then
9238 rxvt_cv_int16_t=" long"
9239 else
9240 if test "$ac_cv_sizeof_long_long" -ge 2; then
9241 rxvt_cv_int16_t=" long long"
9242 else
9243 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
9244 fi
9245 fi
9246 fi
9247 fi
9248fi
9249fi
9250
9251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9252fi
9253{ echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
9254echo "${ECHO_T}$rxvt_cv_int16_t" >&6; }
9255if test x"$rxvt_cv_int16_t" != xyes; then
9256 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
9257else
9258 if test x"" = x; then
9259 rxvt_int16_typedef="/* typedef short int16_t; */"
9260 else
9261 rxvt_int16_typedef="/* typedef short int16_t; */"
9262 fi
9263fi
9264
9265{ echo "$as_me:$LINENO: checking for uint16_t" >&5
9266echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
9267if test "${rxvt_cv_uint16_t+set}" = set; then
9268 echo $ECHO_N "(cached) $ECHO_C" >&6
9269else
9270 cat >conftest.$ac_ext <<_ACEOF
9271/* confdefs.h. */
9272_ACEOF
9273cat confdefs.h >>conftest.$ac_ext
9274cat >>conftest.$ac_ext <<_ACEOF
9275/* end confdefs.h. */
9276#include <stdint.h>
9277int
9278main ()
9279{
9280uint16_t dummy;
9281 ;
9282 return 0;
9283}
9284_ACEOF
9285rm -f conftest.$ac_objext
9286if { (ac_try="$ac_compile"
9287case "(($ac_try" in
9288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9289 *) ac_try_echo=$ac_try;;
9290esac
9291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9292 (eval "$ac_compile") 2>conftest.er1
9293 ac_status=$?
9294 grep -v '^ *+' conftest.er1 >conftest.err
9295 rm -f conftest.er1
9296 cat conftest.err >&5
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); } && {
9299 test -z "$ac_cxx_werror_flag" ||
9300 test ! -s conftest.err
9301 } && test -s conftest.$ac_objext; then
9302 rxvt_cv_uint16_t=yes
9303else
9304 echo "$as_me: failed program was:" >&5
9305sed 's/^/| /' conftest.$ac_ext >&5
9306
9307 if test "$ac_cv_sizeof_char" -ge 2; then
9308 rxvt_cv_uint16_t="unsigned char"
9309else
9310 if test "$ac_cv_sizeof_short" -ge 2; then
9311 rxvt_cv_uint16_t="unsigned short"
9312 else
9313 if test "$ac_cv_sizeof_int" -ge 2; then
9314 rxvt_cv_uint16_t="unsigned int"
9315 else
9316 if test "$ac_cv_sizeof_long" -ge 2; then
9317 rxvt_cv_uint16_t="unsigned long"
9318 else
9319 if test "$ac_cv_sizeof_long_long" -ge 2; then
9320 rxvt_cv_uint16_t="unsigned long long"
9321 else
9322 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
9323 fi
9324 fi
9325 fi
9326 fi
9327fi
9328fi
9329
9330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9331fi
9332{ echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
9333echo "${ECHO_T}$rxvt_cv_uint16_t" >&6; }
9334if test x"$rxvt_cv_uint16_t" != xyes; then
9335 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
9336else
9337 if test x"unsigned" = x; then
9338 rxvt_uint16_typedef="/* typedef short uint16_t; */"
9339 else
9340 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
9341 fi
9342fi
9343
9344{ echo "$as_me:$LINENO: checking for int32_t" >&5
9345echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
9346if test "${rxvt_cv_int32_t+set}" = set; then
9347 echo $ECHO_N "(cached) $ECHO_C" >&6
9348else
9349 cat >conftest.$ac_ext <<_ACEOF
9350/* confdefs.h. */
9351_ACEOF
9352cat confdefs.h >>conftest.$ac_ext
9353cat >>conftest.$ac_ext <<_ACEOF
9354/* end confdefs.h. */
9355#include <stdint.h>
9356int
9357main ()
9358{
9359int32_t dummy;
9360 ;
9361 return 0;
9362}
9363_ACEOF
9364rm -f conftest.$ac_objext
9365if { (ac_try="$ac_compile"
9366case "(($ac_try" in
9367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9368 *) ac_try_echo=$ac_try;;
9369esac
9370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9371 (eval "$ac_compile") 2>conftest.er1
9372 ac_status=$?
9373 grep -v '^ *+' conftest.er1 >conftest.err
9374 rm -f conftest.er1
9375 cat conftest.err >&5
9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377 (exit $ac_status); } && {
9378 test -z "$ac_cxx_werror_flag" ||
9379 test ! -s conftest.err
9380 } && test -s conftest.$ac_objext; then
9381 rxvt_cv_int32_t=yes
9382else
9383 echo "$as_me: failed program was:" >&5
9384sed 's/^/| /' conftest.$ac_ext >&5
9385
9386 if test "$ac_cv_sizeof_char" -ge 4; then
9387 rxvt_cv_int32_t=" char"
9388else
9389 if test "$ac_cv_sizeof_short" -ge 4; then
9390 rxvt_cv_int32_t=" short"
9391 else
9392 if test "$ac_cv_sizeof_int" -ge 4; then
9393 rxvt_cv_int32_t=" int"
9394 else
9395 if test "$ac_cv_sizeof_long" -ge 4; then
9396 rxvt_cv_int32_t=" long"
9397 else
9398 if test "$ac_cv_sizeof_long_long" -ge 4; then
9399 rxvt_cv_int32_t=" long long"
9400 else
9401 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
9402 fi
9403 fi
9404 fi
9405 fi
9406fi
9407fi
9408
9409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9410fi
9411{ echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
9412echo "${ECHO_T}$rxvt_cv_int32_t" >&6; }
9413if test x"$rxvt_cv_int32_t" != xyes; then
9414 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
9415else
9416 if test x"" = x; then
9417 rxvt_int32_typedef="/* typedef int int32_t; */"
9418 else
9419 rxvt_int32_typedef="/* typedef int int32_t; */"
9420 fi
9421fi
9422
9423{ echo "$as_me:$LINENO: checking for uint32_t" >&5
9424echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
9425if test "${rxvt_cv_uint32_t+set}" = set; then
9426 echo $ECHO_N "(cached) $ECHO_C" >&6
9427else
9428 cat >conftest.$ac_ext <<_ACEOF
9429/* confdefs.h. */
9430_ACEOF
9431cat confdefs.h >>conftest.$ac_ext
9432cat >>conftest.$ac_ext <<_ACEOF
9433/* end confdefs.h. */
9434#include <stdint.h>
9435int
9436main ()
9437{
9438uint32_t dummy;
9439 ;
9440 return 0;
9441}
9442_ACEOF
9443rm -f conftest.$ac_objext
9444if { (ac_try="$ac_compile"
9445case "(($ac_try" in
9446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9447 *) ac_try_echo=$ac_try;;
9448esac
9449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9450 (eval "$ac_compile") 2>conftest.er1
9451 ac_status=$?
9452 grep -v '^ *+' conftest.er1 >conftest.err
9453 rm -f conftest.er1
9454 cat conftest.err >&5
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); } && {
9457 test -z "$ac_cxx_werror_flag" ||
9458 test ! -s conftest.err
9459 } && test -s conftest.$ac_objext; then
9460 rxvt_cv_uint32_t=yes
9461else
9462 echo "$as_me: failed program was:" >&5
9463sed 's/^/| /' conftest.$ac_ext >&5
9464
9465 if test "$ac_cv_sizeof_char" -ge 4; then
9466 rxvt_cv_uint32_t="unsigned char"
9467else
9468 if test "$ac_cv_sizeof_short" -ge 4; then
9469 rxvt_cv_uint32_t="unsigned short"
9470 else
9471 if test "$ac_cv_sizeof_int" -ge 4; then
9472 rxvt_cv_uint32_t="unsigned int"
9473 else
9474 if test "$ac_cv_sizeof_long" -ge 4; then
9475 rxvt_cv_uint32_t="unsigned long"
9476 else
9477 if test "$ac_cv_sizeof_long_long" -ge 4; then
9478 rxvt_cv_uint32_t="unsigned long long"
9479 else
9480 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
9481 fi
9482 fi
9483 fi
9484 fi
9485fi
9486fi
9487
9488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9489fi
9490{ echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
9491echo "${ECHO_T}$rxvt_cv_uint32_t" >&6; }
9492if test x"$rxvt_cv_uint32_t" != xyes; then
9493 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
9494else
9495 if test x"unsigned" = x; then
9496 rxvt_uint32_typedef="/* typedef int uint32_t; */"
9497 else
9498 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
9499 fi
9500fi
9501
9502if test "$ac_cv_sizeof_int_p" -eq 8; then
9503 rxvt_intp_define="#define intp_t int64_t"
9504 rxvt_u_intp_define="#define u_intp_t u_int64_t"
9505else
9506 if test "$ac_cv_sizeof_int_p" -eq 4; then
9507 rxvt_intp_define="#define intp_t int32_t"
9508 rxvt_u_intp_define="#define u_intp_t u_int32_t"
9509 else
9510 if test "$ac_cv_sizeof_int_p" -eq 2; then
9511 rxvt_intp_define="#define intp_t int16_t"
9512 rxvt_u_intp_define="#define u_intp_t u_int16_t"
9513 else
9514 rxvt_intp_define="#error set intp_t"
9515 rxvt_u_intp_define="#error set u_intp_t"
9516 fi
9517 fi
9518fi
9519
9520
9521
9522{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9523echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
9524if test "${ac_cv_type_signal+set}" = set; then
9525 echo $ECHO_N "(cached) $ECHO_C" >&6
9526else
9527 cat >conftest.$ac_ext <<_ACEOF
9528/* confdefs.h. */
9529_ACEOF
9530cat confdefs.h >>conftest.$ac_ext
9531cat >>conftest.$ac_ext <<_ACEOF
9532/* end confdefs.h. */
9533#include <sys/types.h>
9534#include <signal.h>
9535
9536int
9537main ()
9538{
9539return *(signal (0, 0)) (0) == 1;
9540 ;
9541 return 0;
9542}
9543_ACEOF
9544rm -f conftest.$ac_objext
9545if { (ac_try="$ac_compile"
9546case "(($ac_try" in
9547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9548 *) ac_try_echo=$ac_try;;
9549esac
9550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9551 (eval "$ac_compile") 2>conftest.er1
9552 ac_status=$?
9553 grep -v '^ *+' conftest.er1 >conftest.err
9554 rm -f conftest.er1
9555 cat conftest.err >&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); } && {
9558 test -z "$ac_cxx_werror_flag" ||
9559 test ! -s conftest.err
9560 } && test -s conftest.$ac_objext; then
9561 ac_cv_type_signal=int
9562else
9563 echo "$as_me: failed program was:" >&5
9564sed 's/^/| /' conftest.$ac_ext >&5
9565
9566 ac_cv_type_signal=void
9567fi
9568
9569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9570fi
9571{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9572echo "${ECHO_T}$ac_cv_type_signal" >&6; }
9573
9574cat >>confdefs.h <<_ACEOF
9575#define RETSIGTYPE $ac_cv_type_signal
9576_ACEOF
9577
9578
9579
9580
9581
9582
9583for ac_func in \ 8426for ac_func in unsetenv
9584 unsetenv \
9585 setutent \
9586 on_exit \
9587
9588do 8427do
9589as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8428as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9590{ echo "$as_me:$LINENO: checking for $ac_func" >&5 8429{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9591echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8430echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9592if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 8431if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9731 8570
9732 8571
9733 8572
9734 8573
9735for ac_func in \ 8574for ac_func in \
9736 ttyslot \
9737 updwtmp \ 8575 updwtmp \
9738 updwtmpx \ 8576 updwtmpx \
8577 updlastlogx \
9739 8578
9740do 8579do
9741as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8580as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9742{ echo "$as_me:$LINENO: checking for $ac_func" >&5 8581{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9743echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8582echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11164 10003
11165cat >>confdefs.h <<_ACEOF 10004cat >>confdefs.h <<_ACEOF
11166#define LASTLOG_FILE "$path_lastlog" 10005#define LASTLOG_FILE "$path_lastlog"
11167_ACEOF 10006_ACEOF
11168 10007
11169 if test -d "$path_lastlog"; then
11170
11171cat >>confdefs.h <<\_ACEOF
11172#define LASTLOG_IS_DIR 1
11173_ACEOF
11174
11175 fi
11176fi 10008fi
11177 10009
11178{ echo "$as_me:$LINENO: checking where lastlogx is located" >&5 10010{ echo "$as_me:$LINENO: checking where lastlogx is located" >&5
11179echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } 10011echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; }
11180if test "${path_lastlogx+set}" = set; then 10012if test "${path_lastlogx+set}" = set; then
11262 10094
11263fi 10095fi
11264 10096
11265 10097
11266 10098
11267{ echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
11268echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6; }
11269if test "${rxvt_cv_path_ttytab+set}" = set; then
11270 echo $ECHO_N "(cached) $ECHO_C" >&6
11271else
11272 for ttys_file in /etc/ttys /etc/ttytab;
11273do
11274 if test -f "$ttys_file" ; then
11275 rxvt_cv_path_ttytab=$ttys_file
11276 break
11277 fi
11278done
11279 10099
11280fi
11281{ echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
11282echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6; }
11283if test x$rxvt_cv_path_ttytab != x; then
11284
11285cat >>confdefs.h <<_ACEOF
11286#define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
11287_ACEOF
11288
11289fi
11290
11291
11292ac_save_LIBS=$LIBS 10100save_LIBS=$LIBS
11293ac_save_CFLAGS=$CFLAGS 10101save_CFLAGS=$CFLAGS
11294CFLAGS="$CFLAGS $X_CFLAGS" 10102CFLAGS="$CFLAGS $X_CFLAGS"
11295LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 10103LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
11296if test x$support_xim = xyes; then 10104if test x$support_xim = xyes; then
11297 { echo "$as_me:$LINENO: checking for working Xlocale" >&5 10105 { echo "$as_me:$LINENO: checking for working Xlocale" >&5
11298echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } 10106echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; }
11473cat >>confdefs.h <<\_ACEOF 10281cat >>confdefs.h <<\_ACEOF
11474#define HAVE_XSETLOCALE 1 10282#define HAVE_XSETLOCALE 1
11475_ACEOF 10283_ACEOF
11476 10284
11477fi 10285fi
11478LIBS=$ac_save_LIBS 10286LIBS=$save_LIBS
11479CFLAGS=$ac_save_CFLAGS 10287CFLAGS=$save_CFLAGS
11480 10288
11481{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5 10289{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5
11482echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } 10290echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; }
11483if test "${rxvt_cv_func_setlocale+set}" = set; then 10291if test "${rxvt_cv_func_setlocale+set}" = set; then
11484 echo $ECHO_N "(cached) $ECHO_C" >&6 10292 echo $ECHO_N "(cached) $ECHO_C" >&6
12377echo "${ECHO_T}no" >&6; } 11185echo "${ECHO_T}no" >&6; }
12378fi 11186fi
12379 11187
12380 11188
12381 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then 11189 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
12382 LIBS="$LIBS `$PKG_CONFIG xft --libs`" 11190 X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS"
12383 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" 11191 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
12384 else 11192 else
12385 # Extract the first word of "xft-config", so it can be a program name with args. 11193 # Extract the first word of "xft-config", so it can be a program name with args.
12386set dummy xft-config; ac_word=$2 11194set dummy xft-config; ac_word=$2
12387{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11195{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12422echo "${ECHO_T}no" >&6; } 11230echo "${ECHO_T}no" >&6; }
12423fi 11231fi
12424 11232
12425 11233
12426 if test $XFT_CONFIG != no; then 11234 if test $XFT_CONFIG != no; then
12427 LIBS="$LIBS `$XFT_CONFIG --libs`" 11235 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
12428 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" 11236 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
12429 fi 11237 fi
12430 fi 11238 fi
12431 11239
11240 save_LIBS="$LIBS"
11241 LIBS="$LIBS $X_LIBS"
12432 11242
12433for ac_header in X11/Xft/Xft.h 11243for ac_header in X11/Xft/Xft.h
12434do 11244do
12435as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11245as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12436if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11246if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12569 support_xft=no 11379 support_xft=no
12570fi 11380fi
12571 11381
12572done 11382done
12573 11383
12574
12575{ echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 11384 { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
12576echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } 11385echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; }
12577if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then 11386if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then
12578 echo $ECHO_N "(cached) $ECHO_C" >&6 11387 echo $ECHO_N "(cached) $ECHO_C" >&6
12579else 11388else
12580 ac_check_lib_save_LIBS=$LIBS 11389 ac_check_lib_save_LIBS=$LIBS
12632LIBS=$ac_check_lib_save_LIBS 11441LIBS=$ac_check_lib_save_LIBS
12633fi 11442fi
12634{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 11443{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
12635echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } 11444echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; }
12636if test $ac_cv_lib_Xft_XftDrawString32 = yes; then 11445if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
12637 cat >>confdefs.h <<_ACEOF 11446 :
12638#define HAVE_LIBXFT 1
12639_ACEOF
12640
12641 LIBS="-lXft $LIBS"
12642
12643else 11447else
12644 support_xft=no 11448 support_xft=no
12645fi 11449fi
12646 11450
11451 LIBS="$save_LIBS"
12647 11452
12648 if test x$support_xft = xyes; then 11453 if test x$support_xft = xyes; then
12649 11454
12650cat >>confdefs.h <<\_ACEOF 11455cat >>confdefs.h <<\_ACEOF
12651#define XFT 1 11456#define XFT 1
13038_ACEOF 11843_ACEOF
13039program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 11844program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
13040rm -f conftest.sed 11845rm -f conftest.sed
13041 11846
13042 11847
13043
13044
13045
13046if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
13047 include_stdint_h="#include <stdint.h>"
13048else
13049 include_stdint_h="/* #include <stdint.h> */"
13050fi
13051if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
13052 include_stdarg_h="#include <cstdarg>"
13053else
13054 include_stdarg_h="/* #include <cstdarg> */"
13055fi
13056if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
13057 include_stdlib_h="#include <cstdlib>"
13058else
13059 include_stdlib_h="/* #include <cstdlib> */"
13060fi
13061if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
13062 include_unistd_h="#include <unistd.h>"
13063else
13064 include_unistd_h="/* #include <unistd.h> */"
13065fi
13066if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
13067 include_string_h="#include <cstring>"
13068else
13069 include_string_h="/* #include <cstring> */"
13070fi
13071if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
13072 include_fcntl_h="#include <fcntl.h>"
13073else
13074 include_fcntl_h="/* #include <fcntl.h> */"
13075fi
13076if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
13077 include_util_h="#include <util.h>"
13078else
13079 include_util_h="/* #include <util.h> */"
13080fi
13081if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
13082 include_assert_h="#include <assert.h>"
13083else
13084 include_assert_h="/* #include <assert.h> */"
13085fi
13086if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
13087 include_sys_ioctl_h="#include <sys/ioctl.h>"
13088else
13089 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
13090fi
13091if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
13092 include_sys_select_h="#include <sys/select.h>"
13093else
13094 include_sys_select_h="/* #include <sys/select.h> */"
13095fi
13096if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
13097 include_sys_strredir_h="#include <sys/strredir.h>"
13098else
13099 include_sys_strredir_h="/* #include <sys/strredir.h> */"
13100fi
13101if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
13102 include_sys_time_h="#include <sys/time.h>"
13103else
13104 include_sys_time_h="/* #include <sys/time.h> */"
13105fi
13106if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
13107 include_time_h="#include <time.h>"
13108else
13109 include_time_h="/* #include <time.h> */"
13110fi
13111
13112ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" 11848ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile"
13113 11849
13114cat >confcache <<\_ACEOF 11850cat >confcache <<\_ACEOF
13115# This file is a shell script that caches the results of configure 11851# This file is a shell script that caches the results of configure
13116# tests run on this system so they can be shared between configure 11852# tests run on this system so they can be shared between configure
13117# scripts and configure runs, see configure's option --config-cache. 11853# scripts and configure runs, see configure's option --config-cache.
13666 case $ac_config_target in 12402 case $ac_config_target in
13667 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; 12403 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
13668 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12404 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13669 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 12405 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13670 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 12406 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13671 "src/rxvtlib.h") CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
13672 12407
13673 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 12408 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13674echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 12409echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13675 { (exit 1); exit 1; }; };; 12410 { (exit 1); exit 1; }; };;
13676 esac 12411 esac
13775host_cpu!$host_cpu$ac_delim 12510host_cpu!$host_cpu$ac_delim
13776host_vendor!$host_vendor$ac_delim 12511host_vendor!$host_vendor$ac_delim
13777host_os!$host_os$ac_delim 12512host_os!$host_os$ac_delim
13778VERSION!$VERSION$ac_delim 12513VERSION!$VERSION$ac_delim
13779DATE!$DATE$ac_delim 12514DATE!$DATE$ac_delim
13780LSMDATE!$LSMDATE$ac_delim
13781LIBVERSION!$LIBVERSION$ac_delim
13782CC!$CC$ac_delim 12515CC!$CC$ac_delim
13783CFLAGS!$CFLAGS$ac_delim 12516CFLAGS!$CFLAGS$ac_delim
13784LDFLAGS!$LDFLAGS$ac_delim 12517LDFLAGS!$LDFLAGS$ac_delim
13785CPPFLAGS!$CPPFLAGS$ac_delim 12518CPPFLAGS!$CPPFLAGS$ac_delim
13786ac_ct_CC!$ac_ct_CC$ac_delim 12519ac_ct_CC!$ac_ct_CC$ac_delim
13794INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 12527INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
13795INSTALL_DATA!$INSTALL_DATA$ac_delim 12528INSTALL_DATA!$INSTALL_DATA$ac_delim
13796GREP!$GREP$ac_delim 12529GREP!$GREP$ac_delim
13797EGREP!$EGREP$ac_delim 12530EGREP!$EGREP$ac_delim
13798LINKER!$LINKER$ac_delim 12531LINKER!$LINKER$ac_delim
13799INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim
13800RXVTNAME!$RXVTNAME$ac_delim 12532RXVTNAME!$RXVTNAME$ac_delim
12533CXXCPP!$CXXCPP$ac_delim
13801TIC!$TIC$ac_delim 12534TIC!$TIC$ac_delim
13802XMKMF!$XMKMF$ac_delim 12535XMKMF!$XMKMF$ac_delim
13803CXXCPP!$CXXCPP$ac_delim
13804X_CFLAGS!$X_CFLAGS$ac_delim 12536X_CFLAGS!$X_CFLAGS$ac_delim
13805X_PRE_LIBS!$X_PRE_LIBS$ac_delim 12537X_PRE_LIBS!$X_PRE_LIBS$ac_delim
13806X_LIBS!$X_LIBS$ac_delim 12538X_LIBS!$X_LIBS$ac_delim
13807X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim 12539X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
13808afterimage_config!$afterimage_config$ac_delim 12540afterimage_config!$afterimage_config$ac_delim
13809rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim
13810rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim
13811rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim
13812rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim
13813rxvt_intp_define!$rxvt_intp_define$ac_delim
13814rxvt_u_intp_define!$rxvt_u_intp_define$ac_delim
13815PKG_CONFIG!$PKG_CONFIG$ac_delim 12541PKG_CONFIG!$PKG_CONFIG$ac_delim
13816XFT_CONFIG!$XFT_CONFIG$ac_delim 12542XFT_CONFIG!$XFT_CONFIG$ac_delim
13817PERL!$PERL$ac_delim 12543PERL!$PERL$ac_delim
13818PERLLIB!$PERLLIB$ac_delim 12544PERLLIB!$PERLLIB$ac_delim
13819PERLFLAGS!$PERLFLAGS$ac_delim 12545PERLFLAGS!$PERLFLAGS$ac_delim
13820PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim 12546PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim
13821IF_PERL!$IF_PERL$ac_delim 12547IF_PERL!$IF_PERL$ac_delim
13822PERL_O!$PERL_O$ac_delim 12548PERL_O!$PERL_O$ac_delim
13823AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim 12549AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim
13824AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim 12550AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim
13825include_stdint_h!$include_stdint_h$ac_delim 12551LIBOBJS!$LIBOBJS$ac_delim
13826include_stdarg_h!$include_stdarg_h$ac_delim 12552LTLIBOBJS!$LTLIBOBJS$ac_delim
13827include_stdlib_h!$include_stdlib_h$ac_delim
13828include_unistd_h!$include_unistd_h$ac_delim
13829include_string_h!$include_string_h$ac_delim
13830_ACEOF 12553_ACEOF
13831 12554
13832 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 12555 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 85; then
13833 break 12556 break
13834 elif $ac_last_try; then 12557 elif $ac_last_try; then
13835 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 12558 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13836echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 12559echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13837 { (exit 1); exit 1; }; } 12560 { (exit 1); exit 1; }; }
13846 ac_eof=`expr $ac_eof + 1` 12569 ac_eof=`expr $ac_eof + 1`
13847fi 12570fi
13848 12571
13849cat >>$CONFIG_STATUS <<_ACEOF 12572cat >>$CONFIG_STATUS <<_ACEOF
13850cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 12573cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13851/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13852_ACEOF
13853sed '
13854s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13855s/^/s,@/; s/!/@,|#_!!_#|/
13856:n
13857t n
13858s/'"$ac_delim"'$/,g/; t
13859s/$/\\/; p
13860N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13861' >>$CONFIG_STATUS <conf$$subs.sed
13862rm -f conf$$subs.sed
13863cat >>$CONFIG_STATUS <<_ACEOF
13864CEOF$ac_eof
13865_ACEOF
13866
13867
13868ac_delim='%!_!# '
13869for ac_last_try in false false false false false :; do
13870 cat >conf$$subs.sed <<_ACEOF
13871include_fcntl_h!$include_fcntl_h$ac_delim
13872include_util_h!$include_util_h$ac_delim
13873include_assert_h!$include_assert_h$ac_delim
13874include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim
13875include_sys_select_h!$include_sys_select_h$ac_delim
13876include_sys_strredir_h!$include_sys_strredir_h$ac_delim
13877include_sys_time_h!$include_sys_time_h$ac_delim
13878include_time_h!$include_time_h$ac_delim
13879LIBOBJS!$LIBOBJS$ac_delim
13880LTLIBOBJS!$LTLIBOBJS$ac_delim
13881_ACEOF
13882
13883 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
13884 break
13885 elif $ac_last_try; then
13886 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13887echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13888 { (exit 1); exit 1; }; }
13889 else
13890 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13891 fi
13892done
13893
13894ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13895if test -n "$ac_eof"; then
13896 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13897 ac_eof=`expr $ac_eof + 1`
13898fi
13899
13900cat >>$CONFIG_STATUS <<_ACEOF
13901cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13902/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 12574/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13903_ACEOF 12575_ACEOF
13904sed ' 12576sed '
13905s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 12577s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13906s/^/s,@/; s/!/@,|#_!!_#|/ 12578s/^/s,@/; s/!/@,|#_!!_#|/
14159s&@builddir@&$ac_builddir&;t t 12831s&@builddir@&$ac_builddir&;t t
14160s&@abs_builddir@&$ac_abs_builddir&;t t 12832s&@abs_builddir@&$ac_abs_builddir&;t t
14161s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12833s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14162s&@INSTALL@&$ac_INSTALL&;t t 12834s&@INSTALL@&$ac_INSTALL&;t t
14163$ac_datarootdir_hack 12835$ac_datarootdir_hack
14164" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 12836" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
14165 12837
14166test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12838test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14167 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 12839 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14168 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 12840 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14169 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12841 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines