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

Comparing rxvt-unicode/configure (file contents):
Revision 1.118 by root, Sun Nov 18 01:31:38 2007 UTC vs.
Revision 1.128 by root, Sat Nov 8 16:49:46 2008 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
684CXXCPP 681CXXCPP
685TIC 682TIC
686XMKMF 683XMKMF
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
1315 1293
1316Optional Features: 1294Optional Features:
1317 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1295 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1318 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1296 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1319 --enable-everything enable standard non-multichoice features 1297 --enable-everything enable standard non-multichoice features
1320 NOTE: this option is order dependent 1298 NOTE: this option is order dependent
1321 NOTE: automatically enabled with --enable-shared
1322 --enable-warnings turn on g++ warnings 1299 --enable-warnings turn on g++ warnings
1323 --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
1324 --enable-combining enable composition of base and combining characters 1301 --enable-combining enable composition of base and combining characters
1325 --enable-xft enable xft support on systems that have it 1302 --enable-xft enable xft support on systems that have it
1326 --enable-font-styles enable bold and italic support 1303 --enable-font-styles enable bold and italic support
1327 --enable-afterimage enable integration with libAfterImage for background images 1304 --enable-afterimage enable integration with libAfterImage for background images
1328 --enable-transparency enable transparent backgrounds 1305 --enable-transparency enable transparent backgrounds
1329 --enable-fading enable colors fading when off focus 1306 --enable-fading enable colors fading when off focus
1330 --enable-rxvt-scroll enable rxvt style scrollbar 1307 --enable-rxvt-scroll enable rxvt style scrollbar
1331 --enable-next-scroll enable NeXT style scrollbar 1308 --enable-next-scroll enable NeXT style scrollbar
1332 --enable-xterm-scroll enable Xterm style scrollbar 1309 --enable-xterm-scroll enable Xterm style scrollbar
1333 --enable-perl enable embedded perl interpreter 1310 --enable-perl enable embedded perl interpreter
1334 --enable-plain-scroll enable plain style scrollbar
1335 --enable-xim XIM (X Input Method) protocol support 1311 --enable-xim XIM (X Input Method) protocol support
1336 --disable-backspace-key disable handling of the backspace key 1312 --disable-backspace-key disable handling of the backspace key
1337 --disable-delete-key disable handling of the delete key 1313 --disable-delete-key disable handling of the delete key
1338 --disable-resources disable all resource checking 1314 --disable-resources disable all resource checking
1339 --enable-8bitctrls enable 8 bit control sequences (not recommended) 1315 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1927echo "configuring for rxvt $VERSION" 1903echo "configuring for rxvt $VERSION"
1928echo "" 1904echo ""
1929 1905
1930orig_CXXFLAGS="$CXXFLAGS" 1906orig_CXXFLAGS="$CXXFLAGS"
1931 1907
1932
1933ac_ext=c 1908ac_ext=c
1934ac_cpp='$CPP $CPPFLAGS' 1909ac_cpp='$CPP $CPPFLAGS'
1935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1937ac_compiler_gnu=$ac_cv_c_compiler_gnu 1912ac_compiler_gnu=$ac_cv_c_compiler_gnu
3715echo "${ECHO_T}no" >&6; } 3690echo "${ECHO_T}no" >&6; }
3716fi 3691fi
3717rm -f conftest* 3692rm -f conftest*
3718 3693
3719 3694
3695
3696cat >>confdefs.h <<\_ACEOF
3697#define _GNU_SOURCE 1
3698_ACEOF
3699
3700
3720{ echo "$as_me:$LINENO: checking for library containing strerror" >&5 3701{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
3721echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } 3702echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3722if test "${ac_cv_search_strerror+set}" = set; then 3703if test "${ac_cv_search_strerror+set}" = set; then
3723 echo $ECHO_N "(cached) $ECHO_C" >&6 3704 echo $ECHO_N "(cached) $ECHO_C" >&6
3724else 3705else
3871LINKER=$LINKER 3852LINKER=$LINKER
3872 3853
3873 3854
3874if test -z "$orig_CXXFLAGS"; then 3855if test -z "$orig_CXXFLAGS"; then
3875 if test x$GCC = xyes && test "x$GXX" = xyes; then 3856 if test x$GCC = xyes && test "x$GXX" = xyes; then
3876 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" 3857 CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs"
3877 cat >conftest.$ac_ext <<_ACEOF 3858 cat >conftest.$ac_ext <<_ACEOF
3878/* confdefs.h. */ 3859/* confdefs.h. */
3879_ACEOF 3860_ACEOF
3880cat confdefs.h >>conftest.$ac_ext 3861cat confdefs.h >>conftest.$ac_ext
3881cat >>conftest.$ac_ext <<_ACEOF 3862cat >>conftest.$ac_ext <<_ACEOF
3919 CXXFLAGS="-O" 3900 CXXFLAGS="-O"
3920 fi 3901 fi
3921 CFLAGS="$CXXFLAGS" 3902 CFLAGS="$CXXFLAGS"
3922fi 3903fi
3923 3904
3924
3925cat >>confdefs.h <<\_ACEOF
3926#define _GNU_SOURCE 1
3927_ACEOF
3928
3929
3930case $host in 3905case $host in
3931 *-*-solaris* ) 3906 *-*-solaris* )
3932 3907
3933cat >>confdefs.h <<\_ACEOF 3908cat >>confdefs.h <<\_ACEOF
3934#define _XOPEN_SOURCE 500 3909#define _XOPEN_SOURCE 500
3935_ACEOF 3910_ACEOF
3936 3911
3937 ;; 3912 ;;
3938esac 3913esac
3939
3940 3914
3941{ echo "$as_me:$LINENO: checking for setlocale" >&5 3915{ echo "$as_me:$LINENO: checking for setlocale" >&5
3942echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } 3916echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; }
3943if test "${ac_cv_func_setlocale+set}" = set; then 3917if test "${ac_cv_func_setlocale+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6 3918 echo $ECHO_N "(cached) $ECHO_C" >&6
4391fi 4365fi
4392 4366
4393fi 4367fi
4394 4368
4395 4369
4396
4397support_frills=yes 4370support_frills=yes
4398support_inheritpixmap=yes 4371support_inheritpixmap=yes
4399support_fading=yes 4372support_fading=yes
4400support_keepscrolling=yes 4373support_keepscrolling=yes
4401support_selectionscrolling=yes 4374support_selectionscrolling=yes
4404support_text_blink=yes 4377support_text_blink=yes
4405support_pointer_blank=yes 4378support_pointer_blank=yes
4406support_scroll_rxvt=yes 4379support_scroll_rxvt=yes
4407support_scroll_next=yes 4380support_scroll_next=yes
4408support_scroll_xterm=yes 4381support_scroll_xterm=yes
4409support_scroll_plain=yes
4410support_xim=yes 4382support_xim=yes
4411support_afterimage=yes 4383support_afterimage=yes
4412support_afterstep=yes 4384support_afterstep=yes
4413support_xft=yes 4385support_xft=yes
4414support_unicode3=no 4386support_unicode3=no
4416support_8bitctrls=no 4388support_8bitctrls=no
4417support_iso14755=yes 4389support_iso14755=yes
4418support_styles=yes 4390support_styles=yes
4419support_perl=yes 4391support_perl=yes
4420codesets=all 4392codesets=all
4421
4422
4423if test "x$enable_shared" = xyes; then
4424
4425cat >>confdefs.h <<\_ACEOF
4426#define LIBRXVT 1
4427_ACEOF
4428
4429 INSTALL_LIBRXVT=yes
4430fi
4431 4393
4432 4394
4433# Check whether --enable-everything was given. 4395# Check whether --enable-everything was given.
4434if test "${enable_everything+set}" = set; then 4396if test "${enable_everything+set}" = set; then
4435 enableval=$enable_everything; 4397 enableval=$enable_everything;
4445 support_text_blink=no 4407 support_text_blink=no
4446 support_pointer_blank=no 4408 support_pointer_blank=no
4447 support_scroll_rxvt=no 4409 support_scroll_rxvt=no
4448 support_scroll_next=no 4410 support_scroll_next=no
4449 support_scroll_xterm=no 4411 support_scroll_xterm=no
4450 support_scroll_plain=no
4451 support_utmp=no 4412 support_utmp=no
4452 support_wtmp=no 4413 support_wtmp=no
4453 support_xim=no 4414 support_xim=no
4454 support_afterimage=no 4415 support_afterimage=no
4455 support_afterstep=no 4416 support_afterstep=no
4474 support_text_blink=yes 4435 support_text_blink=yes
4475 support_pointer_blank=yes 4436 support_pointer_blank=yes
4476 support_scroll_rxvt=yes 4437 support_scroll_rxvt=yes
4477 support_scroll_next=yes 4438 support_scroll_next=yes
4478 support_scroll_xterm=yes 4439 support_scroll_xterm=yes
4479 support_scroll_plain=yes
4480 support_utmp=yes 4440 support_utmp=yes
4481 support_wtmp=yes 4441 support_wtmp=yes
4482 support_xim=yes 4442 support_xim=yes
4483 support_afterimage=yes 4443 support_afterimage=yes
4484 support_afterstep=yes 4444 support_afterstep=yes
4645 4605
4646# Check whether --enable-perl was given. 4606# Check whether --enable-perl was given.
4647if test "${enable_perl+set}" = set; then 4607if test "${enable_perl+set}" = set; then
4648 enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then 4608 enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then
4649 support_perl=$enableval 4609 support_perl=$enableval
4650 fi
4651fi
4652
4653
4654# Check whether --enable-plain-scroll was given.
4655if test "${enable_plain_scroll+set}" = set; then
4656 enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4657 support_scroll_plain=$enableval
4658 fi 4610 fi
4659fi 4611fi
4660 4612
4661 4613
4662 4614
5368 5320
5369 5321
5370 5322
5371 5323
5372 5324
5373for ac_header in sys/epoll.h sys/event.h sys/queue.h port.h 5325
5326
5327
5328
5329for ac_header in sys/inotify.h sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h sys/eventfd.h
5374do 5330do
5375as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5331as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5376if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5332if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5377 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5333 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5378echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5334echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5511 5467
5512 5468
5513 5469
5514 5470
5515 5471
5516for ac_func in epoll_ctl kqueue port_create 5472
5473
5474
5475
5476for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd
5517do 5477do
5518as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5478as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5519{ echo "$as_me:$LINENO: checking for $ac_func" >&5 5479{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5520echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 5480echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5521if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 5481if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5762 5722
5763 LIBS="-lrt $LIBS" 5723 LIBS="-lrt $LIBS"
5764 5724
5765fi 5725fi
5766 5726
5727 unset ac_cv_func_clock_gettime
5767 5728
5768for ac_func in clock_gettime 5729for ac_func in clock_gettime
5730do
5731as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5732{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5733echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5734if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5736else
5737 cat >conftest.$ac_ext <<_ACEOF
5738/* confdefs.h. */
5739_ACEOF
5740cat confdefs.h >>conftest.$ac_ext
5741cat >>conftest.$ac_ext <<_ACEOF
5742/* end confdefs.h. */
5743/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5745#define $ac_func innocuous_$ac_func
5746
5747/* System header to define __stub macros and hopefully few prototypes,
5748 which can conflict with char $ac_func (); below.
5749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5750 <limits.h> exists even on freestanding compilers. */
5751
5752#ifdef __STDC__
5753# include <limits.h>
5754#else
5755# include <assert.h>
5756#endif
5757
5758#undef $ac_func
5759
5760/* Override any GCC internal prototype to avoid an error.
5761 Use char because int might match the return type of a GCC
5762 builtin and then its argument prototype would still apply. */
5763#ifdef __cplusplus
5764extern "C"
5765#endif
5766char $ac_func ();
5767/* The GNU C library defines this for functions which it implements
5768 to always fail with ENOSYS. Some functions are actually named
5769 something starting with __ and the normal name is an alias. */
5770#if defined __stub_$ac_func || defined __stub___$ac_func
5771choke me
5772#endif
5773
5774int
5775main ()
5776{
5777return $ac_func ();
5778 ;
5779 return 0;
5780}
5781_ACEOF
5782rm -f conftest.$ac_objext conftest$ac_exeext
5783if { (ac_try="$ac_link"
5784case "(($ac_try" in
5785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5786 *) ac_try_echo=$ac_try;;
5787esac
5788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5789 (eval "$ac_link") 2>conftest.er1
5790 ac_status=$?
5791 grep -v '^ *+' conftest.er1 >conftest.err
5792 rm -f conftest.er1
5793 cat conftest.err >&5
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); } && {
5796 test -z "$ac_cxx_werror_flag" ||
5797 test ! -s conftest.err
5798 } && test -s conftest$ac_exeext &&
5799 $as_test_x conftest$ac_exeext; then
5800 eval "$as_ac_var=yes"
5801else
5802 echo "$as_me: failed program was:" >&5
5803sed 's/^/| /' conftest.$ac_ext >&5
5804
5805 eval "$as_ac_var=no"
5806fi
5807
5808rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5809 conftest$ac_exeext conftest.$ac_ext
5810fi
5811ac_res=`eval echo '${'$as_ac_var'}'`
5812 { echo "$as_me:$LINENO: result: $ac_res" >&5
5813echo "${ECHO_T}$ac_res" >&6; }
5814if test `eval echo '${'$as_ac_var'}'` = yes; then
5815 cat >>confdefs.h <<_ACEOF
5816#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5817_ACEOF
5818
5819fi
5820done
5821
5822 fi
5823
5824fi
5825
5826
5827{ echo "$as_me:$LINENO: checking for nanosleep" >&5
5828echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; }
5829if test "${ac_cv_func_nanosleep+set}" = set; then
5830 echo $ECHO_N "(cached) $ECHO_C" >&6
5831else
5832 cat >conftest.$ac_ext <<_ACEOF
5833/* confdefs.h. */
5834_ACEOF
5835cat confdefs.h >>conftest.$ac_ext
5836cat >>conftest.$ac_ext <<_ACEOF
5837/* end confdefs.h. */
5838/* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep.
5839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5840#define nanosleep innocuous_nanosleep
5841
5842/* System header to define __stub macros and hopefully few prototypes,
5843 which can conflict with char nanosleep (); below.
5844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5845 <limits.h> exists even on freestanding compilers. */
5846
5847#ifdef __STDC__
5848# include <limits.h>
5849#else
5850# include <assert.h>
5851#endif
5852
5853#undef nanosleep
5854
5855/* Override any GCC internal prototype to avoid an error.
5856 Use char because int might match the return type of a GCC
5857 builtin and then its argument prototype would still apply. */
5858#ifdef __cplusplus
5859extern "C"
5860#endif
5861char nanosleep ();
5862/* The GNU C library defines this for functions which it implements
5863 to always fail with ENOSYS. Some functions are actually named
5864 something starting with __ and the normal name is an alias. */
5865#if defined __stub_nanosleep || defined __stub___nanosleep
5866choke me
5867#endif
5868
5869int
5870main ()
5871{
5872return nanosleep ();
5873 ;
5874 return 0;
5875}
5876_ACEOF
5877rm -f conftest.$ac_objext conftest$ac_exeext
5878if { (ac_try="$ac_link"
5879case "(($ac_try" in
5880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5881 *) ac_try_echo=$ac_try;;
5882esac
5883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5884 (eval "$ac_link") 2>conftest.er1
5885 ac_status=$?
5886 grep -v '^ *+' conftest.er1 >conftest.err
5887 rm -f conftest.er1
5888 cat conftest.err >&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); } && {
5891 test -z "$ac_cxx_werror_flag" ||
5892 test ! -s conftest.err
5893 } && test -s conftest$ac_exeext &&
5894 $as_test_x conftest$ac_exeext; then
5895 ac_cv_func_nanosleep=yes
5896else
5897 echo "$as_me: failed program was:" >&5
5898sed 's/^/| /' conftest.$ac_ext >&5
5899
5900 ac_cv_func_nanosleep=no
5901fi
5902
5903rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5904 conftest$ac_exeext conftest.$ac_ext
5905fi
5906{ echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5
5907echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; }
5908if test $ac_cv_func_nanosleep = yes; then
5909 :
5910else
5911
5912 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
5913
5914{ echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
5915echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; }
5916if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
5917 echo $ECHO_N "(cached) $ECHO_C" >&6
5918else
5919 ac_check_lib_save_LIBS=$LIBS
5920LIBS="-lrt $LIBS"
5921cat >conftest.$ac_ext <<_ACEOF
5922/* confdefs.h. */
5923_ACEOF
5924cat confdefs.h >>conftest.$ac_ext
5925cat >>conftest.$ac_ext <<_ACEOF
5926/* end confdefs.h. */
5927
5928/* Override any GCC internal prototype to avoid an error.
5929 Use char because int might match the return type of a GCC
5930 builtin and then its argument prototype would still apply. */
5931#ifdef __cplusplus
5932extern "C"
5933#endif
5934char nanosleep ();
5935int
5936main ()
5937{
5938return nanosleep ();
5939 ;
5940 return 0;
5941}
5942_ACEOF
5943rm -f conftest.$ac_objext conftest$ac_exeext
5944if { (ac_try="$ac_link"
5945case "(($ac_try" in
5946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5947 *) ac_try_echo=$ac_try;;
5948esac
5949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5950 (eval "$ac_link") 2>conftest.er1
5951 ac_status=$?
5952 grep -v '^ *+' conftest.er1 >conftest.err
5953 rm -f conftest.er1
5954 cat conftest.err >&5
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); } && {
5957 test -z "$ac_cxx_werror_flag" ||
5958 test ! -s conftest.err
5959 } && test -s conftest$ac_exeext &&
5960 $as_test_x conftest$ac_exeext; then
5961 ac_cv_lib_rt_nanosleep=yes
5962else
5963 echo "$as_me: failed program was:" >&5
5964sed 's/^/| /' conftest.$ac_ext >&5
5965
5966 ac_cv_lib_rt_nanosleep=no
5967fi
5968
5969rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5970 conftest$ac_exeext conftest.$ac_ext
5971LIBS=$ac_check_lib_save_LIBS
5972fi
5973{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
5974echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; }
5975if test $ac_cv_lib_rt_nanosleep = yes; then
5976 cat >>confdefs.h <<_ACEOF
5977#define HAVE_LIBRT 1
5978_ACEOF
5979
5980 LIBS="-lrt $LIBS"
5981
5982fi
5983
5984 unset ac_cv_func_nanosleep
5985
5986for ac_func in nanosleep
5769do 5987do
5770as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5988as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5771{ echo "$as_me:$LINENO: checking for $ac_func" >&5 5989{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5772echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 5990echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5773if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 5991if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5977echo "${ECHO_T}$TIC" >&6; } 6195echo "${ECHO_T}$TIC" >&6; }
5978else 6196else
5979 { echo "$as_me:$LINENO: result: no" >&5 6197 { echo "$as_me:$LINENO: result: no" >&5
5980echo "${ECHO_T}no" >&6; } 6198echo "${ECHO_T}no" >&6; }
5981fi 6199fi
5982
5983
5984 6200
5985 6201
5986 6202
5987{ echo "$as_me:$LINENO: checking for X" >&5 6203{ echo "$as_me:$LINENO: checking for X" >&5
5988echo $ECHO_N "checking for X... $ECHO_C" >&6; } 6204echo $ECHO_N "checking for X... $ECHO_C" >&6; }
7375echo "${ECHO_T}no" >&6; } 7591echo "${ECHO_T}no" >&6; }
7376 fi 7592 fi
7377 fi 7593 fi
7378fi 7594fi
7379 7595
7380{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7381echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7382if test "${ac_cv_header_sys_wait_h+set}" = set; then
7383 echo $ECHO_N "(cached) $ECHO_C" >&6
7384else
7385 cat >conftest.$ac_ext <<_ACEOF
7386/* confdefs.h. */
7387_ACEOF
7388cat confdefs.h >>conftest.$ac_ext
7389cat >>conftest.$ac_ext <<_ACEOF
7390/* end confdefs.h. */
7391#include <sys/types.h>
7392#include <sys/wait.h>
7393#ifndef WEXITSTATUS
7394# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7395#endif
7396#ifndef WIFEXITED
7397# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7398#endif
7399
7400int
7401main ()
7402{
7403 int s;
7404 wait (&s);
7405 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7406 ;
7407 return 0;
7408}
7409_ACEOF
7410rm -f conftest.$ac_objext
7411if { (ac_try="$ac_compile"
7412case "(($ac_try" in
7413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7414 *) ac_try_echo=$ac_try;;
7415esac
7416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7417 (eval "$ac_compile") 2>conftest.er1
7418 ac_status=$?
7419 grep -v '^ *+' conftest.er1 >conftest.err
7420 rm -f conftest.er1
7421 cat conftest.err >&5
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); } && {
7424 test -z "$ac_cxx_werror_flag" ||
7425 test ! -s conftest.err
7426 } && test -s conftest.$ac_objext; then
7427 ac_cv_header_sys_wait_h=yes
7428else
7429 echo "$as_me: failed program was:" >&5
7430sed 's/^/| /' conftest.$ac_ext >&5
7431
7432 ac_cv_header_sys_wait_h=no
7433fi
7434
7435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7436fi
7437{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7438echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7439if test $ac_cv_header_sys_wait_h = yes; then
7440
7441cat >>confdefs.h <<\_ACEOF
7442#define HAVE_SYS_WAIT_H 1
7443_ACEOF
7444
7445fi
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457 7596
7458 7597
7459 7598
7460 7599
7461 7600
7462 7601
7463 7602
7464for ac_header in \ 7603for ac_header in \
7465 assert.h \
7466 fcntl.h \
7467 stdarg.h \
7468 stdlib.h \
7469 string.h \
7470 termios.h \
7471 unistd.h \
7472 sys/byteorder.h \ 7604 sys/byteorder.h \
7473 sys/ioctl.h \ 7605 sys/ioctl.h \
7474 sys/select.h \
7475 sys/sockio.h \ 7606 sys/sockio.h \
7476 sys/strredir.h \ 7607 sys/strredir.h \
7477 sys/time.h \
7478 stdint.h \ 7608 stdint.h \
7479 wchar.h \ 7609 wchar.h \
7480 cwchar \ 7610 cwchar \
7481 clocale \
7482 7611
7483do 7612do
7484as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7613as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7485if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7614if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7486 { echo "$as_me:$LINENO: checking for $ac_header" >&5 7615 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7617fi 7746fi
7618 7747
7619done 7748done
7620 7749
7621 7750
7622{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7623echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7624if test "${ac_cv_header_time+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7626else
7627 cat >conftest.$ac_ext <<_ACEOF
7628/* confdefs.h. */
7629_ACEOF
7630cat confdefs.h >>conftest.$ac_ext
7631cat >>conftest.$ac_ext <<_ACEOF
7632/* end confdefs.h. */
7633#include <sys/types.h>
7634#include <sys/time.h>
7635#include <time.h>
7636
7637int
7638main ()
7639{
7640if ((struct tm *) 0)
7641return 0;
7642 ;
7643 return 0;
7644}
7645_ACEOF
7646rm -f conftest.$ac_objext
7647if { (ac_try="$ac_compile"
7648case "(($ac_try" in
7649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7650 *) ac_try_echo=$ac_try;;
7651esac
7652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7653 (eval "$ac_compile") 2>conftest.er1
7654 ac_status=$?
7655 grep -v '^ *+' conftest.er1 >conftest.err
7656 rm -f conftest.er1
7657 cat conftest.err >&5
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); } && {
7660 test -z "$ac_cxx_werror_flag" ||
7661 test ! -s conftest.err
7662 } && test -s conftest.$ac_objext; then
7663 ac_cv_header_time=yes
7664else
7665 echo "$as_me: failed program was:" >&5
7666sed 's/^/| /' conftest.$ac_ext >&5
7667
7668 ac_cv_header_time=no
7669fi
7670
7671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7672fi
7673{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7674echo "${ECHO_T}$ac_cv_header_time" >&6; }
7675if test $ac_cv_header_time = yes; then
7676
7677cat >>confdefs.h <<\_ACEOF
7678#define TIME_WITH_SYS_TIME 1
7679_ACEOF
7680
7681fi
7682
7683
7684{ echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5
7685echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; }
7686if test "${rxvt_cv_header_sysioctl+set}" = set; then
7687 echo $ECHO_N "(cached) $ECHO_C" >&6
7688else
7689 cat >conftest.$ac_ext <<_ACEOF
7690/* confdefs.h. */
7691_ACEOF
7692cat confdefs.h >>conftest.$ac_ext
7693cat >>conftest.$ac_ext <<_ACEOF
7694/* end confdefs.h. */
7695#include <stdio.h>
7696#include <sys/ioctl.h>
7697#ifdef HAVE_TERMIOS_H
7698#include <termios.h>
7699#endif
7700int
7701main ()
7702{
7703int a = ECHO;
7704 ;
7705 return 0;
7706}
7707_ACEOF
7708rm -f conftest.$ac_objext
7709if { (ac_try="$ac_compile"
7710case "(($ac_try" in
7711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7712 *) ac_try_echo=$ac_try;;
7713esac
7714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7715 (eval "$ac_compile") 2>conftest.er1
7716 ac_status=$?
7717 grep -v '^ *+' conftest.er1 >conftest.err
7718 rm -f conftest.er1
7719 cat conftest.err >&5
7720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); } && {
7722 test -z "$ac_cxx_werror_flag" ||
7723 test ! -s conftest.err
7724 } && test -s conftest.$ac_objext; then
7725 rxvt_cv_header_sysioctl=yes
7726else
7727 echo "$as_me: failed program was:" >&5
7728sed 's/^/| /' conftest.$ac_ext >&5
7729
7730 rxvt_cv_header_sysioctl=no
7731fi
7732
7733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7734fi
7735{ echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7736echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6; }
7737
7738{ echo "$as_me:$LINENO: checking for XPointer" >&5 7751{ echo "$as_me:$LINENO: checking for XPointer" >&5
7739echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } 7752echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; }
7740if test "${rxvt_cv_xpointer+set}" = set; then 7753if test "${rxvt_cv_xpointer+set}" = set; then
7741 echo $ECHO_N "(cached) $ECHO_C" >&6 7754 echo $ECHO_N "(cached) $ECHO_C" >&6
7742else 7755else
7853cat >>confdefs.h <<\_ACEOF 7866cat >>confdefs.h <<\_ACEOF
7854#define XLIB_ILLEGAL_ACCESS 1 7867#define XLIB_ILLEGAL_ACCESS 1
7855_ACEOF 7868_ACEOF
7856 7869
7857fi 7870fi
7858
7859{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7860echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7861if test "${ac_cv_c_const+set}" = set; then
7862 echo $ECHO_N "(cached) $ECHO_C" >&6
7863else
7864 cat >conftest.$ac_ext <<_ACEOF
7865/* confdefs.h. */
7866_ACEOF
7867cat confdefs.h >>conftest.$ac_ext
7868cat >>conftest.$ac_ext <<_ACEOF
7869/* end confdefs.h. */
7870
7871int
7872main ()
7873{
7874/* FIXME: Include the comments suggested by Paul. */
7875#ifndef __cplusplus
7876 /* Ultrix mips cc rejects this. */
7877 typedef int charset[2];
7878 const charset cs;
7879 /* SunOS 4.1.1 cc rejects this. */
7880 char const *const *pcpcc;
7881 char **ppc;
7882 /* NEC SVR4.0.2 mips cc rejects this. */
7883 struct point {int x, y;};
7884 static struct point const zero = {0,0};
7885 /* AIX XL C 1.02.0.0 rejects this.
7886 It does not let you subtract one const X* pointer from another in
7887 an arm of an if-expression whose if-part is not a constant
7888 expression */
7889 const char *g = "string";
7890 pcpcc = &g + (g ? g-g : 0);
7891 /* HPUX 7.0 cc rejects these. */
7892 ++pcpcc;
7893 ppc = (char**) pcpcc;
7894 pcpcc = (char const *const *) ppc;
7895 { /* SCO 3.2v4 cc rejects this. */
7896 char *t;
7897 char const *s = 0 ? (char *) 0 : (char const *) 0;
7898
7899 *t++ = 0;
7900 if (s) return 0;
7901 }
7902 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7903 int x[] = {25, 17};
7904 const int *foo = &x[0];
7905 ++foo;
7906 }
7907 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7908 typedef const int *iptr;
7909 iptr p = 0;
7910 ++p;
7911 }
7912 { /* AIX XL C 1.02.0.0 rejects this saying
7913 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7914 struct s { int j; const int *ap[3]; };
7915 struct s *b; b->j = 5;
7916 }
7917 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7918 const int foo = 10;
7919 if (!foo) return 0;
7920 }
7921 return !cs[0] && !zero.x;
7922#endif
7923
7924 ;
7925 return 0;
7926}
7927_ACEOF
7928rm -f conftest.$ac_objext
7929if { (ac_try="$ac_compile"
7930case "(($ac_try" in
7931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7932 *) ac_try_echo=$ac_try;;
7933esac
7934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7935 (eval "$ac_compile") 2>conftest.er1
7936 ac_status=$?
7937 grep -v '^ *+' conftest.er1 >conftest.err
7938 rm -f conftest.er1
7939 cat conftest.err >&5
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); } && {
7942 test -z "$ac_cxx_werror_flag" ||
7943 test ! -s conftest.err
7944 } && test -s conftest.$ac_objext; then
7945 ac_cv_c_const=yes
7946else
7947 echo "$as_me: failed program was:" >&5
7948sed 's/^/| /' conftest.$ac_ext >&5
7949
7950 ac_cv_c_const=no
7951fi
7952
7953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7954fi
7955{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7956echo "${ECHO_T}$ac_cv_c_const" >&6; }
7957if test $ac_cv_c_const = no; then
7958
7959cat >>confdefs.h <<\_ACEOF
7960#define const
7961_ACEOF
7962
7963fi
7964
7965{ echo "$as_me:$LINENO: checking for inline" >&5
7966echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
7967if test "${ac_cv_c_inline+set}" = set; then
7968 echo $ECHO_N "(cached) $ECHO_C" >&6
7969else
7970 ac_cv_c_inline=no
7971for ac_kw in inline __inline__ __inline; do
7972 cat >conftest.$ac_ext <<_ACEOF
7973/* confdefs.h. */
7974_ACEOF
7975cat confdefs.h >>conftest.$ac_ext
7976cat >>conftest.$ac_ext <<_ACEOF
7977/* end confdefs.h. */
7978#ifndef __cplusplus
7979typedef int foo_t;
7980static $ac_kw foo_t static_foo () {return 0; }
7981$ac_kw foo_t foo () {return 0; }
7982#endif
7983
7984_ACEOF
7985rm -f conftest.$ac_objext
7986if { (ac_try="$ac_compile"
7987case "(($ac_try" in
7988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7989 *) ac_try_echo=$ac_try;;
7990esac
7991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7992 (eval "$ac_compile") 2>conftest.er1
7993 ac_status=$?
7994 grep -v '^ *+' conftest.er1 >conftest.err
7995 rm -f conftest.er1
7996 cat conftest.err >&5
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); } && {
7999 test -z "$ac_cxx_werror_flag" ||
8000 test ! -s conftest.err
8001 } && test -s conftest.$ac_objext; then
8002 ac_cv_c_inline=$ac_kw
8003else
8004 echo "$as_me: failed program was:" >&5
8005sed 's/^/| /' conftest.$ac_ext >&5
8006
8007
8008fi
8009
8010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8011 test "$ac_cv_c_inline" != no && break
8012done
8013
8014fi
8015{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8016echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8017
8018
8019case $ac_cv_c_inline in
8020 inline | yes) ;;
8021 *)
8022 case $ac_cv_c_inline in
8023 no) ac_val=;;
8024 *) ac_val=$ac_cv_c_inline;;
8025 esac
8026 cat >>confdefs.h <<_ACEOF
8027#ifndef __cplusplus
8028#define inline $ac_val
8029#endif
8030_ACEOF
8031 ;;
8032esac
8033
8034
8035 7871
8036{ echo "$as_me:$LINENO: checking for mode_t" >&5 7872{ echo "$as_me:$LINENO: checking for mode_t" >&5
8037echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } 7873echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
8038if test "${ac_cv_type_mode_t+set}" = set; then 7874if test "${ac_cv_type_mode_t+set}" = set; then
8039 echo $ECHO_N "(cached) $ECHO_C" >&6 7875 echo $ECHO_N "(cached) $ECHO_C" >&6
8196_ACEOF 8032_ACEOF
8197 8033
8198fi 8034fi
8199 8035
8200 8036
8201{ echo "$as_me:$LINENO: checking for short" >&5 8037 { echo "$as_me:$LINENO: checking for int16_t" >&5
8202echo $ECHO_N "checking for short... $ECHO_C" >&6; } 8038echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
8203if test "${ac_cv_type_short+set}" = set; then 8039if test "${ac_cv_c_int16_t+set}" = set; then
8204 echo $ECHO_N "(cached) $ECHO_C" >&6 8040 echo $ECHO_N "(cached) $ECHO_C" >&6
8205else 8041else
8042 ac_cv_c_int16_t=no
8043 for ac_type in 'int16_t' 'int' 'long int' \
8044 'long long int' 'short int' 'signed char'; do
8206 cat >conftest.$ac_ext <<_ACEOF 8045 cat >conftest.$ac_ext <<_ACEOF
8207/* confdefs.h. */ 8046/* confdefs.h. */
8208_ACEOF 8047_ACEOF
8209cat confdefs.h >>conftest.$ac_ext 8048cat confdefs.h >>conftest.$ac_ext
8210cat >>conftest.$ac_ext <<_ACEOF 8049cat >>conftest.$ac_ext <<_ACEOF
8211/* end confdefs.h. */ 8050/* end confdefs.h. */
8212$ac_includes_default 8051$ac_includes_default
8213typedef short ac__type_new_;
8214int 8052int
8215main () 8053main ()
8216{ 8054{
8217if ((ac__type_new_ *) 0) 8055static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
8218 return 0; 8056test_array [0] = 0
8219if (sizeof (ac__type_new_)) 8057
8220 return 0;
8221 ; 8058 ;
8222 return 0; 8059 return 0;
8223} 8060}
8224_ACEOF 8061_ACEOF
8225rm -f conftest.$ac_objext 8062rm -f conftest.$ac_objext
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); } && { 8075 (exit $ac_status); } && {
8239 test -z "$ac_cxx_werror_flag" || 8076 test -z "$ac_cxx_werror_flag" ||
8240 test ! -s conftest.err 8077 test ! -s conftest.err
8241 } && test -s conftest.$ac_objext; then 8078 } && test -s conftest.$ac_objext; then
8242 ac_cv_type_short=yes
8243else
8244 echo "$as_me: failed program was:" >&5
8245sed 's/^/| /' conftest.$ac_ext >&5
8246
8247 ac_cv_type_short=no
8248fi
8249
8250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8251fi
8252{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8253echo "${ECHO_T}$ac_cv_type_short" >&6; }
8254
8255# The cast to long int works around a bug in the HP C Compiler
8256# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8257# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8258# This bug is HP SR number 8606223364.
8259{ echo "$as_me:$LINENO: checking size of short" >&5
8260echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8261if test "${ac_cv_sizeof_short+set}" = set; then
8262 echo $ECHO_N "(cached) $ECHO_C" >&6
8263else
8264 if test "$cross_compiling" = yes; then
8265 # Depending upon the size, compute the lo and hi bounds.
8266cat >conftest.$ac_ext <<_ACEOF 8079 cat >conftest.$ac_ext <<_ACEOF
8267/* confdefs.h. */ 8080/* confdefs.h. */
8268_ACEOF 8081_ACEOF
8269cat confdefs.h >>conftest.$ac_ext 8082cat confdefs.h >>conftest.$ac_ext
8270cat >>conftest.$ac_ext <<_ACEOF 8083cat >>conftest.$ac_ext <<_ACEOF
8271/* end confdefs.h. */ 8084/* end confdefs.h. */
8272$ac_includes_default 8085$ac_includes_default
8273 typedef short ac__type_sizeof_;
8274int 8086int
8275main () 8087main ()
8276{ 8088{
8277static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 8089static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
8090 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
8278test_array [0] = 0 8091test_array [0] = 0
8279 8092
8280 ; 8093 ;
8281 return 0; 8094 return 0;
8282} 8095}
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); } && { 8110 (exit $ac_status); } && {
8298 test -z "$ac_cxx_werror_flag" || 8111 test -z "$ac_cxx_werror_flag" ||
8299 test ! -s conftest.err 8112 test ! -s conftest.err
8300 } && test -s conftest.$ac_objext; then 8113 } && test -s conftest.$ac_objext; then
8301 ac_lo=0 ac_mid=0 8114 :
8302 while :; do 8115else
8116 echo "$as_me: failed program was:" >&5
8117sed 's/^/| /' conftest.$ac_ext >&5
8118
8119 case $ac_type in
8120 int16_t) ac_cv_c_int16_t=yes ;;
8121 *) ac_cv_c_int16_t=$ac_type ;;
8122esac
8123
8124fi
8125
8126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8127else
8128 echo "$as_me: failed program was:" >&5
8129sed 's/^/| /' conftest.$ac_ext >&5
8130
8131
8132fi
8133
8134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8135 test "$ac_cv_c_int16_t" != no && break
8136 done
8137fi
8138{ echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
8139echo "${ECHO_T}$ac_cv_c_int16_t" >&6; }
8140 case $ac_cv_c_int16_t in #(
8141 no|yes) ;; #(
8142 *)
8143
8144cat >>confdefs.h <<_ACEOF
8145#define int16_t $ac_cv_c_int16_t
8146_ACEOF
8147;;
8148 esac
8149
8150
8151 { echo "$as_me:$LINENO: checking for uint16_t" >&5
8152echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
8153if test "${ac_cv_c_uint16_t+set}" = set; then
8154 echo $ECHO_N "(cached) $ECHO_C" >&6
8155else
8156 ac_cv_c_uint16_t=no
8157 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
8158 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
8303 cat >conftest.$ac_ext <<_ACEOF 8159 cat >conftest.$ac_ext <<_ACEOF
8304/* confdefs.h. */ 8160/* confdefs.h. */
8305_ACEOF 8161_ACEOF
8306cat confdefs.h >>conftest.$ac_ext 8162cat confdefs.h >>conftest.$ac_ext
8307cat >>conftest.$ac_ext <<_ACEOF 8163cat >>conftest.$ac_ext <<_ACEOF
8308/* end confdefs.h. */ 8164/* end confdefs.h. */
8309$ac_includes_default 8165$ac_includes_default
8310 typedef short ac__type_sizeof_;
8311int 8166int
8312main () 8167main ()
8313{ 8168{
8314static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 8169static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
8315test_array [0] = 0 8170test_array [0] = 0
8316 8171
8317 ; 8172 ;
8318 return 0; 8173 return 0;
8319} 8174}
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); } && { 8189 (exit $ac_status); } && {
8335 test -z "$ac_cxx_werror_flag" || 8190 test -z "$ac_cxx_werror_flag" ||
8336 test ! -s conftest.err 8191 test ! -s conftest.err
8337 } && test -s conftest.$ac_objext; then 8192 } && test -s conftest.$ac_objext; then
8338 ac_hi=$ac_mid; break 8193 case $ac_type in
8194 uint16_t) ac_cv_c_uint16_t=yes ;;
8195 *) ac_cv_c_uint16_t=$ac_type ;;
8196esac
8197
8339else 8198else
8340 echo "$as_me: failed program was:" >&5 8199 echo "$as_me: failed program was:" >&5
8341sed 's/^/| /' conftest.$ac_ext >&5 8200sed 's/^/| /' conftest.$ac_ext >&5
8342 8201
8343 ac_lo=`expr $ac_mid + 1` 8202
8344 if test $ac_lo -le $ac_mid; then
8345 ac_lo= ac_hi=
8346 break
8347 fi
8348 ac_mid=`expr 2 '*' $ac_mid + 1`
8349fi 8203fi
8350 8204
8351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8206 test "$ac_cv_c_uint16_t" != no && break
8352 done 8207 done
8353else 8208fi
8354 echo "$as_me: failed program was:" >&5 8209{ echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
8355sed 's/^/| /' conftest.$ac_ext >&5 8210echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
8211 case $ac_cv_c_uint16_t in #(
8212 no|yes) ;; #(
8213 *)
8356 8214
8215
8216cat >>confdefs.h <<_ACEOF
8217#define uint16_t $ac_cv_c_uint16_t
8218_ACEOF
8219;;
8220 esac
8221
8222
8223 { echo "$as_me:$LINENO: checking for int32_t" >&5
8224echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
8225if test "${ac_cv_c_int32_t+set}" = set; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
8227else
8228 ac_cv_c_int32_t=no
8229 for ac_type in 'int32_t' 'int' 'long int' \
8230 'long long int' 'short int' 'signed char'; do
8357 cat >conftest.$ac_ext <<_ACEOF 8231 cat >conftest.$ac_ext <<_ACEOF
8358/* confdefs.h. */ 8232/* confdefs.h. */
8359_ACEOF 8233_ACEOF
8360cat confdefs.h >>conftest.$ac_ext 8234cat confdefs.h >>conftest.$ac_ext
8361cat >>conftest.$ac_ext <<_ACEOF 8235cat >>conftest.$ac_ext <<_ACEOF
8362/* end confdefs.h. */ 8236/* end confdefs.h. */
8363$ac_includes_default 8237$ac_includes_default
8364 typedef short ac__type_sizeof_;
8365int 8238int
8366main () 8239main ()
8367{ 8240{
8368static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 8241static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
8369test_array [0] = 0 8242test_array [0] = 0
8370 8243
8371 ; 8244 ;
8372 return 0; 8245 return 0;
8373} 8246}
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); } && { 8261 (exit $ac_status); } && {
8389 test -z "$ac_cxx_werror_flag" || 8262 test -z "$ac_cxx_werror_flag" ||
8390 test ! -s conftest.err 8263 test ! -s conftest.err
8391 } && test -s conftest.$ac_objext; then 8264 } && test -s conftest.$ac_objext; then
8392 ac_hi=-1 ac_mid=-1
8393 while :; do
8394 cat >conftest.$ac_ext <<_ACEOF 8265 cat >conftest.$ac_ext <<_ACEOF
8395/* confdefs.h. */ 8266/* confdefs.h. */
8396_ACEOF 8267_ACEOF
8397cat confdefs.h >>conftest.$ac_ext 8268cat confdefs.h >>conftest.$ac_ext
8398cat >>conftest.$ac_ext <<_ACEOF 8269cat >>conftest.$ac_ext <<_ACEOF
8399/* end confdefs.h. */ 8270/* end confdefs.h. */
8400$ac_includes_default 8271$ac_includes_default
8401 typedef short ac__type_sizeof_;
8402int 8272int
8403main () 8273main ()
8404{ 8274{
8405static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 8275static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
8276 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
8406test_array [0] = 0 8277test_array [0] = 0
8407 8278
8408 ; 8279 ;
8409 return 0; 8280 return 0;
8410} 8281}
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); } && { 8296 (exit $ac_status); } && {
8426 test -z "$ac_cxx_werror_flag" || 8297 test -z "$ac_cxx_werror_flag" ||
8427 test ! -s conftest.err 8298 test ! -s conftest.err
8428 } && test -s conftest.$ac_objext; then 8299 } && test -s conftest.$ac_objext; then
8429 ac_lo=$ac_mid; break 8300 :
8430else 8301else
8431 echo "$as_me: failed program was:" >&5 8302 echo "$as_me: failed program was:" >&5
8432sed 's/^/| /' conftest.$ac_ext >&5 8303sed 's/^/| /' conftest.$ac_ext >&5
8433 8304
8434 ac_hi=`expr '(' $ac_mid ')' - 1` 8305 case $ac_type in
8435 if test $ac_mid -le $ac_hi; then 8306 int32_t) ac_cv_c_int32_t=yes ;;
8436 ac_lo= ac_hi= 8307 *) ac_cv_c_int32_t=$ac_type ;;
8437 break 8308esac
8438 fi 8309
8439 ac_mid=`expr 2 '*' $ac_mid`
8440fi 8310fi
8441 8311
8442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8443 done
8444else 8313else
8445 echo "$as_me: failed program was:" >&5 8314 echo "$as_me: failed program was:" >&5
8446sed 's/^/| /' conftest.$ac_ext >&5 8315sed 's/^/| /' conftest.$ac_ext >&5
8447 8316
8448 ac_lo= ac_hi= 8317
8449fi 8318fi
8450 8319
8451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8321 test "$ac_cv_c_int32_t" != no && break
8322 done
8452fi 8323fi
8324{ echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
8325echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
8326 case $ac_cv_c_int32_t in #(
8327 no|yes) ;; #(
8328 *)
8453 8329
8454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8330cat >>confdefs.h <<_ACEOF
8455# Binary search between lo and hi bounds. 8331#define int32_t $ac_cv_c_int32_t
8456while test "x$ac_lo" != "x$ac_hi"; do 8332_ACEOF
8457 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 8333;;
8334 esac
8335
8336
8337 { echo "$as_me:$LINENO: checking for uint32_t" >&5
8338echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
8339if test "${ac_cv_c_uint32_t+set}" = set; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
8341else
8342 ac_cv_c_uint32_t=no
8343 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
8344 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
8458 cat >conftest.$ac_ext <<_ACEOF 8345 cat >conftest.$ac_ext <<_ACEOF
8459/* confdefs.h. */ 8346/* confdefs.h. */
8460_ACEOF 8347_ACEOF
8461cat confdefs.h >>conftest.$ac_ext 8348cat confdefs.h >>conftest.$ac_ext
8462cat >>conftest.$ac_ext <<_ACEOF 8349cat >>conftest.$ac_ext <<_ACEOF
8463/* end confdefs.h. */ 8350/* end confdefs.h. */
8464$ac_includes_default 8351$ac_includes_default
8465 typedef short ac__type_sizeof_;
8466int 8352int
8467main () 8353main ()
8468{ 8354{
8469static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 8355static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
8470test_array [0] = 0 8356test_array [0] = 0
8471 8357
8472 ; 8358 ;
8473 return 0; 8359 return 0;
8474} 8360}
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); } && { 8375 (exit $ac_status); } && {
8490 test -z "$ac_cxx_werror_flag" || 8376 test -z "$ac_cxx_werror_flag" ||
8491 test ! -s conftest.err 8377 test ! -s conftest.err
8492 } && test -s conftest.$ac_objext; then 8378 } && test -s conftest.$ac_objext; then
8493 ac_hi=$ac_mid 8379 case $ac_type in
8380 uint32_t) ac_cv_c_uint32_t=yes ;;
8381 *) ac_cv_c_uint32_t=$ac_type ;;
8382esac
8383
8494else 8384else
8495 echo "$as_me: failed program was:" >&5 8385 echo "$as_me: failed program was:" >&5
8496sed 's/^/| /' conftest.$ac_ext >&5 8386sed 's/^/| /' conftest.$ac_ext >&5
8497 8387
8498 ac_lo=`expr '(' $ac_mid ')' + 1` 8388
8499fi 8389fi
8500 8390
8501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8502done 8392 test "$ac_cv_c_uint32_t" != no && break
8503case $ac_lo in 8393 done
8504?*) ac_cv_sizeof_short=$ac_lo;;
8505'') if test "$ac_cv_type_short" = yes; then
8506 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8507See \`config.log' for more details." >&5
8508echo "$as_me: error: cannot compute sizeof (short)
8509See \`config.log' for more details." >&2;}
8510 { (exit 77); exit 77; }; }
8511 else
8512 ac_cv_sizeof_short=0
8513 fi ;;
8514esac
8515else
8516 cat >conftest.$ac_ext <<_ACEOF
8517/* confdefs.h. */
8518_ACEOF
8519cat confdefs.h >>conftest.$ac_ext
8520cat >>conftest.$ac_ext <<_ACEOF
8521/* end confdefs.h. */
8522$ac_includes_default
8523 typedef short ac__type_sizeof_;
8524static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8525static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8526#include <stdio.h>
8527#include <stdlib.h>
8528int
8529main ()
8530{
8531
8532 FILE *f = fopen ("conftest.val", "w");
8533 if (! f)
8534 return 1;
8535 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8536 {
8537 long int i = longval ();
8538 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8539 return 1;
8540 fprintf (f, "%ld\n", i);
8541 }
8542 else
8543 {
8544 unsigned long int i = ulongval ();
8545 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8546 return 1;
8547 fprintf (f, "%lu\n", i);
8548 }
8549 return ferror (f) || fclose (f) != 0;
8550
8551 ;
8552 return 0;
8553}
8554_ACEOF
8555rm -f conftest$ac_exeext
8556if { (ac_try="$ac_link"
8557case "(($ac_try" in
8558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8559 *) ac_try_echo=$ac_try;;
8560esac
8561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8562 (eval "$ac_link") 2>&5
8563 ac_status=$?
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8566 { (case "(($ac_try" in
8567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8568 *) ac_try_echo=$ac_try;;
8569esac
8570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8571 (eval "$ac_try") 2>&5
8572 ac_status=$?
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); }; }; then
8575 ac_cv_sizeof_short=`cat conftest.val`
8576else
8577 echo "$as_me: program exited with status $ac_status" >&5
8578echo "$as_me: failed program was:" >&5
8579sed 's/^/| /' conftest.$ac_ext >&5
8580
8581( exit $ac_status )
8582if test "$ac_cv_type_short" = yes; then
8583 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8584See \`config.log' for more details." >&5
8585echo "$as_me: error: cannot compute sizeof (short)
8586See \`config.log' for more details." >&2;}
8587 { (exit 77); exit 77; }; }
8588 else
8589 ac_cv_sizeof_short=0
8590 fi
8591fi 8394fi
8592rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8593fi
8594rm -f conftest.val
8595fi
8596{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 8395{ echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
8597echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } 8396echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
8397 case $ac_cv_c_uint32_t in #(
8398 no|yes) ;; #(
8399 *)
8598 8400
8401cat >>confdefs.h <<\_ACEOF
8402#define _UINT32_T 1
8403_ACEOF
8599 8404
8600 8405
8601cat >>confdefs.h <<_ACEOF 8406cat >>confdefs.h <<_ACEOF
8602#define SIZEOF_SHORT $ac_cv_sizeof_short 8407#define uint32_t $ac_cv_c_uint32_t
8603_ACEOF 8408_ACEOF
8604 8409;;
8605
8606{ echo "$as_me:$LINENO: checking for int" >&5
8607echo $ECHO_N "checking for int... $ECHO_C" >&6; }
8608if test "${ac_cv_type_int+set}" = set; then
8609 echo $ECHO_N "(cached) $ECHO_C" >&6
8610else
8611 cat >conftest.$ac_ext <<_ACEOF
8612/* confdefs.h. */
8613_ACEOF
8614cat confdefs.h >>conftest.$ac_ext
8615cat >>conftest.$ac_ext <<_ACEOF
8616/* end confdefs.h. */
8617$ac_includes_default
8618typedef int ac__type_new_;
8619int
8620main ()
8621{
8622if ((ac__type_new_ *) 0)
8623 return 0;
8624if (sizeof (ac__type_new_))
8625 return 0;
8626 ;
8627 return 0;
8628}
8629_ACEOF
8630rm -f conftest.$ac_objext
8631if { (ac_try="$ac_compile"
8632case "(($ac_try" in
8633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8634 *) ac_try_echo=$ac_try;;
8635esac 8410 esac
8636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8637 (eval "$ac_compile") 2>conftest.er1
8638 ac_status=$?
8639 grep -v '^ *+' conftest.er1 >conftest.err
8640 rm -f conftest.er1
8641 cat conftest.err >&5
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); } && {
8644 test -z "$ac_cxx_werror_flag" ||
8645 test ! -s conftest.err
8646 } && test -s conftest.$ac_objext; then
8647 ac_cv_type_int=yes
8648else
8649 echo "$as_me: failed program was:" >&5
8650sed 's/^/| /' conftest.$ac_ext >&5
8651
8652 ac_cv_type_int=no
8653fi
8654
8655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8656fi
8657{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8658echo "${ECHO_T}$ac_cv_type_int" >&6; }
8659
8660# The cast to long int works around a bug in the HP C Compiler
8661# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8662# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8663# This bug is HP SR number 8606223364.
8664{ echo "$as_me:$LINENO: checking size of int" >&5
8665echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
8666if test "${ac_cv_sizeof_int+set}" = set; then
8667 echo $ECHO_N "(cached) $ECHO_C" >&6
8668else
8669 if test "$cross_compiling" = yes; then
8670 # Depending upon the size, compute the lo and hi bounds.
8671cat >conftest.$ac_ext <<_ACEOF
8672/* confdefs.h. */
8673_ACEOF
8674cat confdefs.h >>conftest.$ac_ext
8675cat >>conftest.$ac_ext <<_ACEOF
8676/* end confdefs.h. */
8677$ac_includes_default
8678 typedef int ac__type_sizeof_;
8679int
8680main ()
8681{
8682static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8683test_array [0] = 0
8684
8685 ;
8686 return 0;
8687}
8688_ACEOF
8689rm -f conftest.$ac_objext
8690if { (ac_try="$ac_compile"
8691case "(($ac_try" in
8692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8693 *) ac_try_echo=$ac_try;;
8694esac
8695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8696 (eval "$ac_compile") 2>conftest.er1
8697 ac_status=$?
8698 grep -v '^ *+' conftest.er1 >conftest.err
8699 rm -f conftest.er1
8700 cat conftest.err >&5
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); } && {
8703 test -z "$ac_cxx_werror_flag" ||
8704 test ! -s conftest.err
8705 } && test -s conftest.$ac_objext; then
8706 ac_lo=0 ac_mid=0
8707 while :; do
8708 cat >conftest.$ac_ext <<_ACEOF
8709/* confdefs.h. */
8710_ACEOF
8711cat confdefs.h >>conftest.$ac_ext
8712cat >>conftest.$ac_ext <<_ACEOF
8713/* end confdefs.h. */
8714$ac_includes_default
8715 typedef int ac__type_sizeof_;
8716int
8717main ()
8718{
8719static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8720test_array [0] = 0
8721
8722 ;
8723 return 0;
8724}
8725_ACEOF
8726rm -f conftest.$ac_objext
8727if { (ac_try="$ac_compile"
8728case "(($ac_try" in
8729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8730 *) ac_try_echo=$ac_try;;
8731esac
8732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8733 (eval "$ac_compile") 2>conftest.er1
8734 ac_status=$?
8735 grep -v '^ *+' conftest.er1 >conftest.err
8736 rm -f conftest.er1
8737 cat conftest.err >&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); } && {
8740 test -z "$ac_cxx_werror_flag" ||
8741 test ! -s conftest.err
8742 } && test -s conftest.$ac_objext; then
8743 ac_hi=$ac_mid; break
8744else
8745 echo "$as_me: failed program was:" >&5
8746sed 's/^/| /' conftest.$ac_ext >&5
8747
8748 ac_lo=`expr $ac_mid + 1`
8749 if test $ac_lo -le $ac_mid; then
8750 ac_lo= ac_hi=
8751 break
8752 fi
8753 ac_mid=`expr 2 '*' $ac_mid + 1`
8754fi
8755
8756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8757 done
8758else
8759 echo "$as_me: failed program was:" >&5
8760sed 's/^/| /' conftest.$ac_ext >&5
8761
8762 cat >conftest.$ac_ext <<_ACEOF
8763/* confdefs.h. */
8764_ACEOF
8765cat confdefs.h >>conftest.$ac_ext
8766cat >>conftest.$ac_ext <<_ACEOF
8767/* end confdefs.h. */
8768$ac_includes_default
8769 typedef int ac__type_sizeof_;
8770int
8771main ()
8772{
8773static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8774test_array [0] = 0
8775
8776 ;
8777 return 0;
8778}
8779_ACEOF
8780rm -f conftest.$ac_objext
8781if { (ac_try="$ac_compile"
8782case "(($ac_try" in
8783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8784 *) ac_try_echo=$ac_try;;
8785esac
8786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8787 (eval "$ac_compile") 2>conftest.er1
8788 ac_status=$?
8789 grep -v '^ *+' conftest.er1 >conftest.err
8790 rm -f conftest.er1
8791 cat conftest.err >&5
8792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793 (exit $ac_status); } && {
8794 test -z "$ac_cxx_werror_flag" ||
8795 test ! -s conftest.err
8796 } && test -s conftest.$ac_objext; then
8797 ac_hi=-1 ac_mid=-1
8798 while :; do
8799 cat >conftest.$ac_ext <<_ACEOF
8800/* confdefs.h. */
8801_ACEOF
8802cat confdefs.h >>conftest.$ac_ext
8803cat >>conftest.$ac_ext <<_ACEOF
8804/* end confdefs.h. */
8805$ac_includes_default
8806 typedef int ac__type_sizeof_;
8807int
8808main ()
8809{
8810static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8811test_array [0] = 0
8812
8813 ;
8814 return 0;
8815}
8816_ACEOF
8817rm -f conftest.$ac_objext
8818if { (ac_try="$ac_compile"
8819case "(($ac_try" in
8820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8821 *) ac_try_echo=$ac_try;;
8822esac
8823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8824 (eval "$ac_compile") 2>conftest.er1
8825 ac_status=$?
8826 grep -v '^ *+' conftest.er1 >conftest.err
8827 rm -f conftest.er1
8828 cat conftest.err >&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } && {
8831 test -z "$ac_cxx_werror_flag" ||
8832 test ! -s conftest.err
8833 } && test -s conftest.$ac_objext; then
8834 ac_lo=$ac_mid; break
8835else
8836 echo "$as_me: failed program was:" >&5
8837sed 's/^/| /' conftest.$ac_ext >&5
8838
8839 ac_hi=`expr '(' $ac_mid ')' - 1`
8840 if test $ac_mid -le $ac_hi; then
8841 ac_lo= ac_hi=
8842 break
8843 fi
8844 ac_mid=`expr 2 '*' $ac_mid`
8845fi
8846
8847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8848 done
8849else
8850 echo "$as_me: failed program was:" >&5
8851sed 's/^/| /' conftest.$ac_ext >&5
8852
8853 ac_lo= ac_hi=
8854fi
8855
8856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8857fi
8858
8859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8860# Binary search between lo and hi bounds.
8861while test "x$ac_lo" != "x$ac_hi"; do
8862 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8863 cat >conftest.$ac_ext <<_ACEOF
8864/* confdefs.h. */
8865_ACEOF
8866cat confdefs.h >>conftest.$ac_ext
8867cat >>conftest.$ac_ext <<_ACEOF
8868/* end confdefs.h. */
8869$ac_includes_default
8870 typedef int ac__type_sizeof_;
8871int
8872main ()
8873{
8874static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8875test_array [0] = 0
8876
8877 ;
8878 return 0;
8879}
8880_ACEOF
8881rm -f conftest.$ac_objext
8882if { (ac_try="$ac_compile"
8883case "(($ac_try" in
8884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8885 *) ac_try_echo=$ac_try;;
8886esac
8887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8888 (eval "$ac_compile") 2>conftest.er1
8889 ac_status=$?
8890 grep -v '^ *+' conftest.er1 >conftest.err
8891 rm -f conftest.er1
8892 cat conftest.err >&5
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); } && {
8895 test -z "$ac_cxx_werror_flag" ||
8896 test ! -s conftest.err
8897 } && test -s conftest.$ac_objext; then
8898 ac_hi=$ac_mid
8899else
8900 echo "$as_me: failed program was:" >&5
8901sed 's/^/| /' conftest.$ac_ext >&5
8902
8903 ac_lo=`expr '(' $ac_mid ')' + 1`
8904fi
8905
8906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8907done
8908case $ac_lo in
8909?*) ac_cv_sizeof_int=$ac_lo;;
8910'') if test "$ac_cv_type_int" = yes; then
8911 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8912See \`config.log' for more details." >&5
8913echo "$as_me: error: cannot compute sizeof (int)
8914See \`config.log' for more details." >&2;}
8915 { (exit 77); exit 77; }; }
8916 else
8917 ac_cv_sizeof_int=0
8918 fi ;;
8919esac
8920else
8921 cat >conftest.$ac_ext <<_ACEOF
8922/* confdefs.h. */
8923_ACEOF
8924cat confdefs.h >>conftest.$ac_ext
8925cat >>conftest.$ac_ext <<_ACEOF
8926/* end confdefs.h. */
8927$ac_includes_default
8928 typedef int ac__type_sizeof_;
8929static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8930static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8931#include <stdio.h>
8932#include <stdlib.h>
8933int
8934main ()
8935{
8936
8937 FILE *f = fopen ("conftest.val", "w");
8938 if (! f)
8939 return 1;
8940 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8941 {
8942 long int i = longval ();
8943 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8944 return 1;
8945 fprintf (f, "%ld\n", i);
8946 }
8947 else
8948 {
8949 unsigned long int i = ulongval ();
8950 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8951 return 1;
8952 fprintf (f, "%lu\n", i);
8953 }
8954 return ferror (f) || fclose (f) != 0;
8955
8956 ;
8957 return 0;
8958}
8959_ACEOF
8960rm -f conftest$ac_exeext
8961if { (ac_try="$ac_link"
8962case "(($ac_try" in
8963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8964 *) ac_try_echo=$ac_try;;
8965esac
8966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8967 (eval "$ac_link") 2>&5
8968 ac_status=$?
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8971 { (case "(($ac_try" in
8972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8973 *) ac_try_echo=$ac_try;;
8974esac
8975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8976 (eval "$ac_try") 2>&5
8977 ac_status=$?
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); }; }; then
8980 ac_cv_sizeof_int=`cat conftest.val`
8981else
8982 echo "$as_me: program exited with status $ac_status" >&5
8983echo "$as_me: failed program was:" >&5
8984sed 's/^/| /' conftest.$ac_ext >&5
8985
8986( exit $ac_status )
8987if test "$ac_cv_type_int" = yes; then
8988 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8989See \`config.log' for more details." >&5
8990echo "$as_me: error: cannot compute sizeof (int)
8991See \`config.log' for more details." >&2;}
8992 { (exit 77); exit 77; }; }
8993 else
8994 ac_cv_sizeof_int=0
8995 fi
8996fi
8997rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8998fi
8999rm -f conftest.val
9000fi
9001{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
9002echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
9003
9004
9005
9006cat >>confdefs.h <<_ACEOF
9007#define SIZEOF_INT $ac_cv_sizeof_int
9008_ACEOF
9009
9010
9011{ echo "$as_me:$LINENO: checking for long long" >&5
9012echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
9013if test "${ac_cv_type_long_long+set}" = set; then
9014 echo $ECHO_N "(cached) $ECHO_C" >&6
9015else
9016 cat >conftest.$ac_ext <<_ACEOF
9017/* confdefs.h. */
9018_ACEOF
9019cat confdefs.h >>conftest.$ac_ext
9020cat >>conftest.$ac_ext <<_ACEOF
9021/* end confdefs.h. */
9022$ac_includes_default
9023typedef long long ac__type_new_;
9024int
9025main ()
9026{
9027if ((ac__type_new_ *) 0)
9028 return 0;
9029if (sizeof (ac__type_new_))
9030 return 0;
9031 ;
9032 return 0;
9033}
9034_ACEOF
9035rm -f conftest.$ac_objext
9036if { (ac_try="$ac_compile"
9037case "(($ac_try" in
9038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9039 *) ac_try_echo=$ac_try;;
9040esac
9041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9042 (eval "$ac_compile") 2>conftest.er1
9043 ac_status=$?
9044 grep -v '^ *+' conftest.er1 >conftest.err
9045 rm -f conftest.er1
9046 cat conftest.err >&5
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); } && {
9049 test -z "$ac_cxx_werror_flag" ||
9050 test ! -s conftest.err
9051 } && test -s conftest.$ac_objext; then
9052 ac_cv_type_long_long=yes
9053else
9054 echo "$as_me: failed program was:" >&5
9055sed 's/^/| /' conftest.$ac_ext >&5
9056
9057 ac_cv_type_long_long=no
9058fi
9059
9060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9061fi
9062{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9063echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
9064
9065# The cast to long int works around a bug in the HP C Compiler
9066# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9067# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9068# This bug is HP SR number 8606223364.
9069{ echo "$as_me:$LINENO: checking size of long long" >&5
9070echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
9071if test "${ac_cv_sizeof_long_long+set}" = set; then
9072 echo $ECHO_N "(cached) $ECHO_C" >&6
9073else
9074 if test "$cross_compiling" = yes; then
9075 # Depending upon the size, compute the lo and hi bounds.
9076cat >conftest.$ac_ext <<_ACEOF
9077/* confdefs.h. */
9078_ACEOF
9079cat confdefs.h >>conftest.$ac_ext
9080cat >>conftest.$ac_ext <<_ACEOF
9081/* end confdefs.h. */
9082$ac_includes_default
9083 typedef long long ac__type_sizeof_;
9084int
9085main ()
9086{
9087static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9088test_array [0] = 0
9089
9090 ;
9091 return 0;
9092}
9093_ACEOF
9094rm -f conftest.$ac_objext
9095if { (ac_try="$ac_compile"
9096case "(($ac_try" in
9097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9098 *) ac_try_echo=$ac_try;;
9099esac
9100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9101 (eval "$ac_compile") 2>conftest.er1
9102 ac_status=$?
9103 grep -v '^ *+' conftest.er1 >conftest.err
9104 rm -f conftest.er1
9105 cat conftest.err >&5
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); } && {
9108 test -z "$ac_cxx_werror_flag" ||
9109 test ! -s conftest.err
9110 } && test -s conftest.$ac_objext; then
9111 ac_lo=0 ac_mid=0
9112 while :; do
9113 cat >conftest.$ac_ext <<_ACEOF
9114/* confdefs.h. */
9115_ACEOF
9116cat confdefs.h >>conftest.$ac_ext
9117cat >>conftest.$ac_ext <<_ACEOF
9118/* end confdefs.h. */
9119$ac_includes_default
9120 typedef long long ac__type_sizeof_;
9121int
9122main ()
9123{
9124static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9125test_array [0] = 0
9126
9127 ;
9128 return 0;
9129}
9130_ACEOF
9131rm -f conftest.$ac_objext
9132if { (ac_try="$ac_compile"
9133case "(($ac_try" in
9134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9135 *) ac_try_echo=$ac_try;;
9136esac
9137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9138 (eval "$ac_compile") 2>conftest.er1
9139 ac_status=$?
9140 grep -v '^ *+' conftest.er1 >conftest.err
9141 rm -f conftest.er1
9142 cat conftest.err >&5
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); } && {
9145 test -z "$ac_cxx_werror_flag" ||
9146 test ! -s conftest.err
9147 } && test -s conftest.$ac_objext; then
9148 ac_hi=$ac_mid; break
9149else
9150 echo "$as_me: failed program was:" >&5
9151sed 's/^/| /' conftest.$ac_ext >&5
9152
9153 ac_lo=`expr $ac_mid + 1`
9154 if test $ac_lo -le $ac_mid; then
9155 ac_lo= ac_hi=
9156 break
9157 fi
9158 ac_mid=`expr 2 '*' $ac_mid + 1`
9159fi
9160
9161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9162 done
9163else
9164 echo "$as_me: failed program was:" >&5
9165sed 's/^/| /' conftest.$ac_ext >&5
9166
9167 cat >conftest.$ac_ext <<_ACEOF
9168/* confdefs.h. */
9169_ACEOF
9170cat confdefs.h >>conftest.$ac_ext
9171cat >>conftest.$ac_ext <<_ACEOF
9172/* end confdefs.h. */
9173$ac_includes_default
9174 typedef long long ac__type_sizeof_;
9175int
9176main ()
9177{
9178static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9179test_array [0] = 0
9180
9181 ;
9182 return 0;
9183}
9184_ACEOF
9185rm -f conftest.$ac_objext
9186if { (ac_try="$ac_compile"
9187case "(($ac_try" in
9188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9189 *) ac_try_echo=$ac_try;;
9190esac
9191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9192 (eval "$ac_compile") 2>conftest.er1
9193 ac_status=$?
9194 grep -v '^ *+' conftest.er1 >conftest.err
9195 rm -f conftest.er1
9196 cat conftest.err >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); } && {
9199 test -z "$ac_cxx_werror_flag" ||
9200 test ! -s conftest.err
9201 } && test -s conftest.$ac_objext; then
9202 ac_hi=-1 ac_mid=-1
9203 while :; do
9204 cat >conftest.$ac_ext <<_ACEOF
9205/* confdefs.h. */
9206_ACEOF
9207cat confdefs.h >>conftest.$ac_ext
9208cat >>conftest.$ac_ext <<_ACEOF
9209/* end confdefs.h. */
9210$ac_includes_default
9211 typedef long long ac__type_sizeof_;
9212int
9213main ()
9214{
9215static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9216test_array [0] = 0
9217
9218 ;
9219 return 0;
9220}
9221_ACEOF
9222rm -f conftest.$ac_objext
9223if { (ac_try="$ac_compile"
9224case "(($ac_try" in
9225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9226 *) ac_try_echo=$ac_try;;
9227esac
9228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9229 (eval "$ac_compile") 2>conftest.er1
9230 ac_status=$?
9231 grep -v '^ *+' conftest.er1 >conftest.err
9232 rm -f conftest.er1
9233 cat conftest.err >&5
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); } && {
9236 test -z "$ac_cxx_werror_flag" ||
9237 test ! -s conftest.err
9238 } && test -s conftest.$ac_objext; then
9239 ac_lo=$ac_mid; break
9240else
9241 echo "$as_me: failed program was:" >&5
9242sed 's/^/| /' conftest.$ac_ext >&5
9243
9244 ac_hi=`expr '(' $ac_mid ')' - 1`
9245 if test $ac_mid -le $ac_hi; then
9246 ac_lo= ac_hi=
9247 break
9248 fi
9249 ac_mid=`expr 2 '*' $ac_mid`
9250fi
9251
9252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9253 done
9254else
9255 echo "$as_me: failed program was:" >&5
9256sed 's/^/| /' conftest.$ac_ext >&5
9257
9258 ac_lo= ac_hi=
9259fi
9260
9261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9262fi
9263
9264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9265# Binary search between lo and hi bounds.
9266while test "x$ac_lo" != "x$ac_hi"; do
9267 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9268 cat >conftest.$ac_ext <<_ACEOF
9269/* confdefs.h. */
9270_ACEOF
9271cat confdefs.h >>conftest.$ac_ext
9272cat >>conftest.$ac_ext <<_ACEOF
9273/* end confdefs.h. */
9274$ac_includes_default
9275 typedef long long ac__type_sizeof_;
9276int
9277main ()
9278{
9279static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9280test_array [0] = 0
9281
9282 ;
9283 return 0;
9284}
9285_ACEOF
9286rm -f conftest.$ac_objext
9287if { (ac_try="$ac_compile"
9288case "(($ac_try" in
9289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9290 *) ac_try_echo=$ac_try;;
9291esac
9292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9293 (eval "$ac_compile") 2>conftest.er1
9294 ac_status=$?
9295 grep -v '^ *+' conftest.er1 >conftest.err
9296 rm -f conftest.er1
9297 cat conftest.err >&5
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); } && {
9300 test -z "$ac_cxx_werror_flag" ||
9301 test ! -s conftest.err
9302 } && test -s conftest.$ac_objext; then
9303 ac_hi=$ac_mid
9304else
9305 echo "$as_me: failed program was:" >&5
9306sed 's/^/| /' conftest.$ac_ext >&5
9307
9308 ac_lo=`expr '(' $ac_mid ')' + 1`
9309fi
9310
9311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9312done
9313case $ac_lo in
9314?*) ac_cv_sizeof_long_long=$ac_lo;;
9315'') if test "$ac_cv_type_long_long" = yes; then
9316 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9317See \`config.log' for more details." >&5
9318echo "$as_me: error: cannot compute sizeof (long long)
9319See \`config.log' for more details." >&2;}
9320 { (exit 77); exit 77; }; }
9321 else
9322 ac_cv_sizeof_long_long=0
9323 fi ;;
9324esac
9325else
9326 cat >conftest.$ac_ext <<_ACEOF
9327/* confdefs.h. */
9328_ACEOF
9329cat confdefs.h >>conftest.$ac_ext
9330cat >>conftest.$ac_ext <<_ACEOF
9331/* end confdefs.h. */
9332$ac_includes_default
9333 typedef long long ac__type_sizeof_;
9334static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9335static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9336#include <stdio.h>
9337#include <stdlib.h>
9338int
9339main ()
9340{
9341
9342 FILE *f = fopen ("conftest.val", "w");
9343 if (! f)
9344 return 1;
9345 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9346 {
9347 long int i = longval ();
9348 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9349 return 1;
9350 fprintf (f, "%ld\n", i);
9351 }
9352 else
9353 {
9354 unsigned long int i = ulongval ();
9355 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9356 return 1;
9357 fprintf (f, "%lu\n", i);
9358 }
9359 return ferror (f) || fclose (f) != 0;
9360
9361 ;
9362 return 0;
9363}
9364_ACEOF
9365rm -f conftest$ac_exeext
9366if { (ac_try="$ac_link"
9367case "(($ac_try" in
9368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9369 *) ac_try_echo=$ac_try;;
9370esac
9371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9372 (eval "$ac_link") 2>&5
9373 ac_status=$?
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9376 { (case "(($ac_try" in
9377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9378 *) ac_try_echo=$ac_try;;
9379esac
9380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9381 (eval "$ac_try") 2>&5
9382 ac_status=$?
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); }; }; then
9385 ac_cv_sizeof_long_long=`cat conftest.val`
9386else
9387 echo "$as_me: program exited with status $ac_status" >&5
9388echo "$as_me: failed program was:" >&5
9389sed 's/^/| /' conftest.$ac_ext >&5
9390
9391( exit $ac_status )
9392if test "$ac_cv_type_long_long" = yes; then
9393 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9394See \`config.log' for more details." >&5
9395echo "$as_me: error: cannot compute sizeof (long long)
9396See \`config.log' for more details." >&2;}
9397 { (exit 77); exit 77; }; }
9398 else
9399 ac_cv_sizeof_long_long=0
9400 fi
9401fi
9402rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9403fi
9404rm -f conftest.val
9405fi
9406{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
9407echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
9408
9409
9410
9411cat >>confdefs.h <<_ACEOF
9412#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9413_ACEOF
9414
9415
9416{ echo "$as_me:$LINENO: checking for int *" >&5
9417echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
9418if test "${ac_cv_type_int_p+set}" = set; then
9419 echo $ECHO_N "(cached) $ECHO_C" >&6
9420else
9421 cat >conftest.$ac_ext <<_ACEOF
9422/* confdefs.h. */
9423_ACEOF
9424cat confdefs.h >>conftest.$ac_ext
9425cat >>conftest.$ac_ext <<_ACEOF
9426/* end confdefs.h. */
9427$ac_includes_default
9428typedef int * ac__type_new_;
9429int
9430main ()
9431{
9432if ((ac__type_new_ *) 0)
9433 return 0;
9434if (sizeof (ac__type_new_))
9435 return 0;
9436 ;
9437 return 0;
9438}
9439_ACEOF
9440rm -f conftest.$ac_objext
9441if { (ac_try="$ac_compile"
9442case "(($ac_try" in
9443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9444 *) ac_try_echo=$ac_try;;
9445esac
9446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9447 (eval "$ac_compile") 2>conftest.er1
9448 ac_status=$?
9449 grep -v '^ *+' conftest.er1 >conftest.err
9450 rm -f conftest.er1
9451 cat conftest.err >&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); } && {
9454 test -z "$ac_cxx_werror_flag" ||
9455 test ! -s conftest.err
9456 } && test -s conftest.$ac_objext; then
9457 ac_cv_type_int_p=yes
9458else
9459 echo "$as_me: failed program was:" >&5
9460sed 's/^/| /' conftest.$ac_ext >&5
9461
9462 ac_cv_type_int_p=no
9463fi
9464
9465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9466fi
9467{ echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
9468echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
9469
9470# The cast to long int works around a bug in the HP C Compiler
9471# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9472# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9473# This bug is HP SR number 8606223364.
9474{ echo "$as_me:$LINENO: checking size of int *" >&5
9475echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
9476if test "${ac_cv_sizeof_int_p+set}" = set; then
9477 echo $ECHO_N "(cached) $ECHO_C" >&6
9478else
9479 if test "$cross_compiling" = yes; then
9480 # Depending upon the size, compute the lo and hi bounds.
9481cat >conftest.$ac_ext <<_ACEOF
9482/* confdefs.h. */
9483_ACEOF
9484cat confdefs.h >>conftest.$ac_ext
9485cat >>conftest.$ac_ext <<_ACEOF
9486/* end confdefs.h. */
9487$ac_includes_default
9488 typedef int * ac__type_sizeof_;
9489int
9490main ()
9491{
9492static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9493test_array [0] = 0
9494
9495 ;
9496 return 0;
9497}
9498_ACEOF
9499rm -f conftest.$ac_objext
9500if { (ac_try="$ac_compile"
9501case "(($ac_try" in
9502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9503 *) ac_try_echo=$ac_try;;
9504esac
9505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9506 (eval "$ac_compile") 2>conftest.er1
9507 ac_status=$?
9508 grep -v '^ *+' conftest.er1 >conftest.err
9509 rm -f conftest.er1
9510 cat conftest.err >&5
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); } && {
9513 test -z "$ac_cxx_werror_flag" ||
9514 test ! -s conftest.err
9515 } && test -s conftest.$ac_objext; then
9516 ac_lo=0 ac_mid=0
9517 while :; do
9518 cat >conftest.$ac_ext <<_ACEOF
9519/* confdefs.h. */
9520_ACEOF
9521cat confdefs.h >>conftest.$ac_ext
9522cat >>conftest.$ac_ext <<_ACEOF
9523/* end confdefs.h. */
9524$ac_includes_default
9525 typedef int * ac__type_sizeof_;
9526int
9527main ()
9528{
9529static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9530test_array [0] = 0
9531
9532 ;
9533 return 0;
9534}
9535_ACEOF
9536rm -f conftest.$ac_objext
9537if { (ac_try="$ac_compile"
9538case "(($ac_try" in
9539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9540 *) ac_try_echo=$ac_try;;
9541esac
9542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9543 (eval "$ac_compile") 2>conftest.er1
9544 ac_status=$?
9545 grep -v '^ *+' conftest.er1 >conftest.err
9546 rm -f conftest.er1
9547 cat conftest.err >&5
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); } && {
9550 test -z "$ac_cxx_werror_flag" ||
9551 test ! -s conftest.err
9552 } && test -s conftest.$ac_objext; then
9553 ac_hi=$ac_mid; break
9554else
9555 echo "$as_me: failed program was:" >&5
9556sed 's/^/| /' conftest.$ac_ext >&5
9557
9558 ac_lo=`expr $ac_mid + 1`
9559 if test $ac_lo -le $ac_mid; then
9560 ac_lo= ac_hi=
9561 break
9562 fi
9563 ac_mid=`expr 2 '*' $ac_mid + 1`
9564fi
9565
9566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9567 done
9568else
9569 echo "$as_me: failed program was:" >&5
9570sed 's/^/| /' conftest.$ac_ext >&5
9571
9572 cat >conftest.$ac_ext <<_ACEOF
9573/* confdefs.h. */
9574_ACEOF
9575cat confdefs.h >>conftest.$ac_ext
9576cat >>conftest.$ac_ext <<_ACEOF
9577/* end confdefs.h. */
9578$ac_includes_default
9579 typedef int * ac__type_sizeof_;
9580int
9581main ()
9582{
9583static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9584test_array [0] = 0
9585
9586 ;
9587 return 0;
9588}
9589_ACEOF
9590rm -f conftest.$ac_objext
9591if { (ac_try="$ac_compile"
9592case "(($ac_try" in
9593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9594 *) ac_try_echo=$ac_try;;
9595esac
9596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9597 (eval "$ac_compile") 2>conftest.er1
9598 ac_status=$?
9599 grep -v '^ *+' conftest.er1 >conftest.err
9600 rm -f conftest.er1
9601 cat conftest.err >&5
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); } && {
9604 test -z "$ac_cxx_werror_flag" ||
9605 test ! -s conftest.err
9606 } && test -s conftest.$ac_objext; then
9607 ac_hi=-1 ac_mid=-1
9608 while :; do
9609 cat >conftest.$ac_ext <<_ACEOF
9610/* confdefs.h. */
9611_ACEOF
9612cat confdefs.h >>conftest.$ac_ext
9613cat >>conftest.$ac_ext <<_ACEOF
9614/* end confdefs.h. */
9615$ac_includes_default
9616 typedef int * ac__type_sizeof_;
9617int
9618main ()
9619{
9620static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9621test_array [0] = 0
9622
9623 ;
9624 return 0;
9625}
9626_ACEOF
9627rm -f conftest.$ac_objext
9628if { (ac_try="$ac_compile"
9629case "(($ac_try" in
9630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9631 *) ac_try_echo=$ac_try;;
9632esac
9633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9634 (eval "$ac_compile") 2>conftest.er1
9635 ac_status=$?
9636 grep -v '^ *+' conftest.er1 >conftest.err
9637 rm -f conftest.er1
9638 cat conftest.err >&5
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); } && {
9641 test -z "$ac_cxx_werror_flag" ||
9642 test ! -s conftest.err
9643 } && test -s conftest.$ac_objext; then
9644 ac_lo=$ac_mid; break
9645else
9646 echo "$as_me: failed program was:" >&5
9647sed 's/^/| /' conftest.$ac_ext >&5
9648
9649 ac_hi=`expr '(' $ac_mid ')' - 1`
9650 if test $ac_mid -le $ac_hi; then
9651 ac_lo= ac_hi=
9652 break
9653 fi
9654 ac_mid=`expr 2 '*' $ac_mid`
9655fi
9656
9657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9658 done
9659else
9660 echo "$as_me: failed program was:" >&5
9661sed 's/^/| /' conftest.$ac_ext >&5
9662
9663 ac_lo= ac_hi=
9664fi
9665
9666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9667fi
9668
9669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9670# Binary search between lo and hi bounds.
9671while test "x$ac_lo" != "x$ac_hi"; do
9672 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9673 cat >conftest.$ac_ext <<_ACEOF
9674/* confdefs.h. */
9675_ACEOF
9676cat confdefs.h >>conftest.$ac_ext
9677cat >>conftest.$ac_ext <<_ACEOF
9678/* end confdefs.h. */
9679$ac_includes_default
9680 typedef int * ac__type_sizeof_;
9681int
9682main ()
9683{
9684static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9685test_array [0] = 0
9686
9687 ;
9688 return 0;
9689}
9690_ACEOF
9691rm -f conftest.$ac_objext
9692if { (ac_try="$ac_compile"
9693case "(($ac_try" in
9694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9695 *) ac_try_echo=$ac_try;;
9696esac
9697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9698 (eval "$ac_compile") 2>conftest.er1
9699 ac_status=$?
9700 grep -v '^ *+' conftest.er1 >conftest.err
9701 rm -f conftest.er1
9702 cat conftest.err >&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); } && {
9705 test -z "$ac_cxx_werror_flag" ||
9706 test ! -s conftest.err
9707 } && test -s conftest.$ac_objext; then
9708 ac_hi=$ac_mid
9709else
9710 echo "$as_me: failed program was:" >&5
9711sed 's/^/| /' conftest.$ac_ext >&5
9712
9713 ac_lo=`expr '(' $ac_mid ')' + 1`
9714fi
9715
9716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9717done
9718case $ac_lo in
9719?*) ac_cv_sizeof_int_p=$ac_lo;;
9720'') if test "$ac_cv_type_int_p" = yes; then
9721 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
9722See \`config.log' for more details." >&5
9723echo "$as_me: error: cannot compute sizeof (int *)
9724See \`config.log' for more details." >&2;}
9725 { (exit 77); exit 77; }; }
9726 else
9727 ac_cv_sizeof_int_p=0
9728 fi ;;
9729esac
9730else
9731 cat >conftest.$ac_ext <<_ACEOF
9732/* confdefs.h. */
9733_ACEOF
9734cat confdefs.h >>conftest.$ac_ext
9735cat >>conftest.$ac_ext <<_ACEOF
9736/* end confdefs.h. */
9737$ac_includes_default
9738 typedef int * ac__type_sizeof_;
9739static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9740static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9741#include <stdio.h>
9742#include <stdlib.h>
9743int
9744main ()
9745{
9746
9747 FILE *f = fopen ("conftest.val", "w");
9748 if (! f)
9749 return 1;
9750 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9751 {
9752 long int i = longval ();
9753 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9754 return 1;
9755 fprintf (f, "%ld\n", i);
9756 }
9757 else
9758 {
9759 unsigned long int i = ulongval ();
9760 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9761 return 1;
9762 fprintf (f, "%lu\n", i);
9763 }
9764 return ferror (f) || fclose (f) != 0;
9765
9766 ;
9767 return 0;
9768}
9769_ACEOF
9770rm -f conftest$ac_exeext
9771if { (ac_try="$ac_link"
9772case "(($ac_try" in
9773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9774 *) ac_try_echo=$ac_try;;
9775esac
9776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9777 (eval "$ac_link") 2>&5
9778 ac_status=$?
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9781 { (case "(($ac_try" in
9782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9783 *) ac_try_echo=$ac_try;;
9784esac
9785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9786 (eval "$ac_try") 2>&5
9787 ac_status=$?
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); }; }; then
9790 ac_cv_sizeof_int_p=`cat conftest.val`
9791else
9792 echo "$as_me: program exited with status $ac_status" >&5
9793echo "$as_me: failed program was:" >&5
9794sed 's/^/| /' conftest.$ac_ext >&5
9795
9796( exit $ac_status )
9797if test "$ac_cv_type_int_p" = yes; then
9798 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
9799See \`config.log' for more details." >&5
9800echo "$as_me: error: cannot compute sizeof (int *)
9801See \`config.log' for more details." >&2;}
9802 { (exit 77); exit 77; }; }
9803 else
9804 ac_cv_sizeof_int_p=0
9805 fi
9806fi
9807rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9808fi
9809rm -f conftest.val
9810fi
9811{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
9812echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
9813
9814
9815
9816cat >>confdefs.h <<_ACEOF
9817#define SIZEOF_INT_P $ac_cv_sizeof_int_p
9818_ACEOF
9819
9820
9821
9822
9823{ echo "$as_me:$LINENO: checking for int16_t" >&5
9824echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
9825if test "${rxvt_cv_int16_t+set}" = set; then
9826 echo $ECHO_N "(cached) $ECHO_C" >&6
9827else
9828 cat >conftest.$ac_ext <<_ACEOF
9829/* confdefs.h. */
9830_ACEOF
9831cat confdefs.h >>conftest.$ac_ext
9832cat >>conftest.$ac_ext <<_ACEOF
9833/* end confdefs.h. */
9834#include <stdint.h>
9835int
9836main ()
9837{
9838int16_t dummy;
9839 ;
9840 return 0;
9841}
9842_ACEOF
9843rm -f conftest.$ac_objext
9844if { (ac_try="$ac_compile"
9845case "(($ac_try" in
9846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847 *) ac_try_echo=$ac_try;;
9848esac
9849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850 (eval "$ac_compile") 2>conftest.er1
9851 ac_status=$?
9852 grep -v '^ *+' conftest.er1 >conftest.err
9853 rm -f conftest.er1
9854 cat conftest.err >&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); } && {
9857 test -z "$ac_cxx_werror_flag" ||
9858 test ! -s conftest.err
9859 } && test -s conftest.$ac_objext; then
9860 rxvt_cv_int16_t=yes
9861else
9862 echo "$as_me: failed program was:" >&5
9863sed 's/^/| /' conftest.$ac_ext >&5
9864
9865 if test "$ac_cv_sizeof_char" -ge 2; then
9866 rxvt_cv_int16_t=" char"
9867else
9868 if test "$ac_cv_sizeof_short" -ge 2; then
9869 rxvt_cv_int16_t=" short"
9870 else
9871 if test "$ac_cv_sizeof_int" -ge 2; then
9872 rxvt_cv_int16_t=" int"
9873 else
9874 if test "$ac_cv_sizeof_long" -ge 2; then
9875 rxvt_cv_int16_t=" long"
9876 else
9877 if test "$ac_cv_sizeof_long_long" -ge 2; then
9878 rxvt_cv_int16_t=" long long"
9879 else
9880 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
9881 fi
9882 fi
9883 fi
9884 fi
9885fi
9886fi
9887
9888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9889fi
9890{ echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
9891echo "${ECHO_T}$rxvt_cv_int16_t" >&6; }
9892if test x"$rxvt_cv_int16_t" != xyes; then
9893 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
9894else
9895 if test x"" = x; then
9896 rxvt_int16_typedef="/* typedef short int16_t; */"
9897 else
9898 rxvt_int16_typedef="/* typedef short int16_t; */"
9899 fi
9900fi
9901
9902{ echo "$as_me:$LINENO: checking for uint16_t" >&5
9903echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
9904if test "${rxvt_cv_uint16_t+set}" = set; then
9905 echo $ECHO_N "(cached) $ECHO_C" >&6
9906else
9907 cat >conftest.$ac_ext <<_ACEOF
9908/* confdefs.h. */
9909_ACEOF
9910cat confdefs.h >>conftest.$ac_ext
9911cat >>conftest.$ac_ext <<_ACEOF
9912/* end confdefs.h. */
9913#include <stdint.h>
9914int
9915main ()
9916{
9917uint16_t dummy;
9918 ;
9919 return 0;
9920}
9921_ACEOF
9922rm -f conftest.$ac_objext
9923if { (ac_try="$ac_compile"
9924case "(($ac_try" in
9925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9926 *) ac_try_echo=$ac_try;;
9927esac
9928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9929 (eval "$ac_compile") 2>conftest.er1
9930 ac_status=$?
9931 grep -v '^ *+' conftest.er1 >conftest.err
9932 rm -f conftest.er1
9933 cat conftest.err >&5
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); } && {
9936 test -z "$ac_cxx_werror_flag" ||
9937 test ! -s conftest.err
9938 } && test -s conftest.$ac_objext; then
9939 rxvt_cv_uint16_t=yes
9940else
9941 echo "$as_me: failed program was:" >&5
9942sed 's/^/| /' conftest.$ac_ext >&5
9943
9944 if test "$ac_cv_sizeof_char" -ge 2; then
9945 rxvt_cv_uint16_t="unsigned char"
9946else
9947 if test "$ac_cv_sizeof_short" -ge 2; then
9948 rxvt_cv_uint16_t="unsigned short"
9949 else
9950 if test "$ac_cv_sizeof_int" -ge 2; then
9951 rxvt_cv_uint16_t="unsigned int"
9952 else
9953 if test "$ac_cv_sizeof_long" -ge 2; then
9954 rxvt_cv_uint16_t="unsigned long"
9955 else
9956 if test "$ac_cv_sizeof_long_long" -ge 2; then
9957 rxvt_cv_uint16_t="unsigned long long"
9958 else
9959 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
9960 fi
9961 fi
9962 fi
9963 fi
9964fi
9965fi
9966
9967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9968fi
9969{ echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
9970echo "${ECHO_T}$rxvt_cv_uint16_t" >&6; }
9971if test x"$rxvt_cv_uint16_t" != xyes; then
9972 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
9973else
9974 if test x"unsigned" = x; then
9975 rxvt_uint16_typedef="/* typedef short uint16_t; */"
9976 else
9977 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
9978 fi
9979fi
9980
9981{ echo "$as_me:$LINENO: checking for int32_t" >&5
9982echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
9983if test "${rxvt_cv_int32_t+set}" = set; then
9984 echo $ECHO_N "(cached) $ECHO_C" >&6
9985else
9986 cat >conftest.$ac_ext <<_ACEOF
9987/* confdefs.h. */
9988_ACEOF
9989cat confdefs.h >>conftest.$ac_ext
9990cat >>conftest.$ac_ext <<_ACEOF
9991/* end confdefs.h. */
9992#include <stdint.h>
9993int
9994main ()
9995{
9996int32_t dummy;
9997 ;
9998 return 0;
9999}
10000_ACEOF
10001rm -f conftest.$ac_objext
10002if { (ac_try="$ac_compile"
10003case "(($ac_try" in
10004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10005 *) ac_try_echo=$ac_try;;
10006esac
10007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10008 (eval "$ac_compile") 2>conftest.er1
10009 ac_status=$?
10010 grep -v '^ *+' conftest.er1 >conftest.err
10011 rm -f conftest.er1
10012 cat conftest.err >&5
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); } && {
10015 test -z "$ac_cxx_werror_flag" ||
10016 test ! -s conftest.err
10017 } && test -s conftest.$ac_objext; then
10018 rxvt_cv_int32_t=yes
10019else
10020 echo "$as_me: failed program was:" >&5
10021sed 's/^/| /' conftest.$ac_ext >&5
10022
10023 if test "$ac_cv_sizeof_char" -ge 4; then
10024 rxvt_cv_int32_t=" char"
10025else
10026 if test "$ac_cv_sizeof_short" -ge 4; then
10027 rxvt_cv_int32_t=" short"
10028 else
10029 if test "$ac_cv_sizeof_int" -ge 4; then
10030 rxvt_cv_int32_t=" int"
10031 else
10032 if test "$ac_cv_sizeof_long" -ge 4; then
10033 rxvt_cv_int32_t=" long"
10034 else
10035 if test "$ac_cv_sizeof_long_long" -ge 4; then
10036 rxvt_cv_int32_t=" long long"
10037 else
10038 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
10039 fi
10040 fi
10041 fi
10042 fi
10043fi
10044fi
10045
10046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10047fi
10048{ echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
10049echo "${ECHO_T}$rxvt_cv_int32_t" >&6; }
10050if test x"$rxvt_cv_int32_t" != xyes; then
10051 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
10052else
10053 if test x"" = x; then
10054 rxvt_int32_typedef="/* typedef int int32_t; */"
10055 else
10056 rxvt_int32_typedef="/* typedef int int32_t; */"
10057 fi
10058fi
10059
10060{ echo "$as_me:$LINENO: checking for uint32_t" >&5
10061echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
10062if test "${rxvt_cv_uint32_t+set}" = set; then
10063 echo $ECHO_N "(cached) $ECHO_C" >&6
10064else
10065 cat >conftest.$ac_ext <<_ACEOF
10066/* confdefs.h. */
10067_ACEOF
10068cat confdefs.h >>conftest.$ac_ext
10069cat >>conftest.$ac_ext <<_ACEOF
10070/* end confdefs.h. */
10071#include <stdint.h>
10072int
10073main ()
10074{
10075uint32_t dummy;
10076 ;
10077 return 0;
10078}
10079_ACEOF
10080rm -f conftest.$ac_objext
10081if { (ac_try="$ac_compile"
10082case "(($ac_try" in
10083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10084 *) ac_try_echo=$ac_try;;
10085esac
10086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10087 (eval "$ac_compile") 2>conftest.er1
10088 ac_status=$?
10089 grep -v '^ *+' conftest.er1 >conftest.err
10090 rm -f conftest.er1
10091 cat conftest.err >&5
10092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093 (exit $ac_status); } && {
10094 test -z "$ac_cxx_werror_flag" ||
10095 test ! -s conftest.err
10096 } && test -s conftest.$ac_objext; then
10097 rxvt_cv_uint32_t=yes
10098else
10099 echo "$as_me: failed program was:" >&5
10100sed 's/^/| /' conftest.$ac_ext >&5
10101
10102 if test "$ac_cv_sizeof_char" -ge 4; then
10103 rxvt_cv_uint32_t="unsigned char"
10104else
10105 if test "$ac_cv_sizeof_short" -ge 4; then
10106 rxvt_cv_uint32_t="unsigned short"
10107 else
10108 if test "$ac_cv_sizeof_int" -ge 4; then
10109 rxvt_cv_uint32_t="unsigned int"
10110 else
10111 if test "$ac_cv_sizeof_long" -ge 4; then
10112 rxvt_cv_uint32_t="unsigned long"
10113 else
10114 if test "$ac_cv_sizeof_long_long" -ge 4; then
10115 rxvt_cv_uint32_t="unsigned long long"
10116 else
10117 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
10118 fi
10119 fi
10120 fi
10121 fi
10122fi
10123fi
10124
10125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10126fi
10127{ echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
10128echo "${ECHO_T}$rxvt_cv_uint32_t" >&6; }
10129if test x"$rxvt_cv_uint32_t" != xyes; then
10130 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
10131else
10132 if test x"unsigned" = x; then
10133 rxvt_uint32_typedef="/* typedef int uint32_t; */"
10134 else
10135 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
10136 fi
10137fi
10138
10139if test "$ac_cv_sizeof_int_p" -eq 8; then
10140 rxvt_intp_define="#define intp_t int64_t"
10141 rxvt_u_intp_define="#define u_intp_t u_int64_t"
10142else
10143 if test "$ac_cv_sizeof_int_p" -eq 4; then
10144 rxvt_intp_define="#define intp_t int32_t"
10145 rxvt_u_intp_define="#define u_intp_t u_int32_t"
10146 else
10147 if test "$ac_cv_sizeof_int_p" -eq 2; then
10148 rxvt_intp_define="#define intp_t int16_t"
10149 rxvt_u_intp_define="#define u_intp_t u_int16_t"
10150 else
10151 rxvt_intp_define="#error set intp_t"
10152 rxvt_u_intp_define="#error set u_intp_t"
10153 fi
10154 fi
10155fi
10156
10157
10158
10159{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10160echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
10161if test "${ac_cv_type_signal+set}" = set; then
10162 echo $ECHO_N "(cached) $ECHO_C" >&6
10163else
10164 cat >conftest.$ac_ext <<_ACEOF
10165/* confdefs.h. */
10166_ACEOF
10167cat confdefs.h >>conftest.$ac_ext
10168cat >>conftest.$ac_ext <<_ACEOF
10169/* end confdefs.h. */
10170#include <sys/types.h>
10171#include <signal.h>
10172
10173int
10174main ()
10175{
10176return *(signal (0, 0)) (0) == 1;
10177 ;
10178 return 0;
10179}
10180_ACEOF
10181rm -f conftest.$ac_objext
10182if { (ac_try="$ac_compile"
10183case "(($ac_try" in
10184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10185 *) ac_try_echo=$ac_try;;
10186esac
10187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10188 (eval "$ac_compile") 2>conftest.er1
10189 ac_status=$?
10190 grep -v '^ *+' conftest.er1 >conftest.err
10191 rm -f conftest.er1
10192 cat conftest.err >&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); } && {
10195 test -z "$ac_cxx_werror_flag" ||
10196 test ! -s conftest.err
10197 } && test -s conftest.$ac_objext; then
10198 ac_cv_type_signal=int
10199else
10200 echo "$as_me: failed program was:" >&5
10201sed 's/^/| /' conftest.$ac_ext >&5
10202
10203 ac_cv_type_signal=void
10204fi
10205
10206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10207fi
10208{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10209echo "${ECHO_T}$ac_cv_type_signal" >&6; }
10210
10211cat >>confdefs.h <<_ACEOF
10212#define RETSIGTYPE $ac_cv_type_signal
10213_ACEOF
10214
10215 8411
10216 8412
10217 8413
10218for ac_func in unsetenv 8414for ac_func in unsetenv
10219do 8415do
10460fi 8656fi
10461done 8657done
10462 8658
10463 8659
10464 8660
10465
10466
10467for ac_header in \ 8661for ac_header in lastlog.h
10468 utmp.h \
10469 utmpx.h \
10470 lastlog.h \
10471
10472do 8662do
10473as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8663as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10474if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8664if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10475 { echo "$as_me:$LINENO: checking for $ac_header" >&5 8665 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10476echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8666echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10607 8797
10608done 8798done
10609 8799
10610 8800
10611 8801
10612if test "${ac_cv_header_utmp_h+set}" = set; then 8802
8803for ac_header in utmp.h
8804do
8805as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8806if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10613 { echo "$as_me:$LINENO: checking for utmp.h" >&5 8807 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10614echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } 8808echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10615if test "${ac_cv_header_utmp_h+set}" = set; then 8809if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10616 echo $ECHO_N "(cached) $ECHO_C" >&6 8810 echo $ECHO_N "(cached) $ECHO_C" >&6
10617fi 8811fi
8812ac_res=`eval echo '${'$as_ac_Header'}'`
10618{ echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 8813 { echo "$as_me:$LINENO: result: $ac_res" >&5
10619echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } 8814echo "${ECHO_T}$ac_res" >&6; }
10620else 8815else
10621 # Is the header compilable? 8816 # Is the header compilable?
10622{ echo "$as_me:$LINENO: checking utmp.h usability" >&5 8817{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10623echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6; } 8818echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10624cat >conftest.$ac_ext <<_ACEOF 8819cat >conftest.$ac_ext <<_ACEOF
10625/* confdefs.h. */ 8820/* confdefs.h. */
10626_ACEOF 8821_ACEOF
10627cat confdefs.h >>conftest.$ac_ext 8822cat confdefs.h >>conftest.$ac_ext
10628cat >>conftest.$ac_ext <<_ACEOF 8823cat >>conftest.$ac_ext <<_ACEOF
10629/* end confdefs.h. */ 8824/* end confdefs.h. */
10630$ac_includes_default 8825$ac_includes_default
10631#include <utmp.h> 8826#include <$ac_header>
10632_ACEOF 8827_ACEOF
10633rm -f conftest.$ac_objext 8828rm -f conftest.$ac_objext
10634if { (ac_try="$ac_compile" 8829if { (ac_try="$ac_compile"
10635case "(($ac_try" in 8830case "(($ac_try" in
10636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10659{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8854{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10660echo "${ECHO_T}$ac_header_compiler" >&6; } 8855echo "${ECHO_T}$ac_header_compiler" >&6; }
10661 8856
10662# Is the header present? 8857# Is the header present?
10663{ echo "$as_me:$LINENO: checking utmp.h presence" >&5 8858{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10664echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6; } 8859echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10665cat >conftest.$ac_ext <<_ACEOF 8860cat >conftest.$ac_ext <<_ACEOF
10666/* confdefs.h. */ 8861/* confdefs.h. */
10667_ACEOF 8862_ACEOF
10668cat confdefs.h >>conftest.$ac_ext 8863cat confdefs.h >>conftest.$ac_ext
10669cat >>conftest.$ac_ext <<_ACEOF 8864cat >>conftest.$ac_ext <<_ACEOF
10670/* end confdefs.h. */ 8865/* end confdefs.h. */
10671#include <utmp.h> 8866#include <$ac_header>
10672_ACEOF 8867_ACEOF
10673if { (ac_try="$ac_cpp conftest.$ac_ext" 8868if { (ac_try="$ac_cpp conftest.$ac_ext"
10674case "(($ac_try" in 8869case "(($ac_try" in
10675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10676 *) ac_try_echo=$ac_try;; 8871 *) ac_try_echo=$ac_try;;
10699echo "${ECHO_T}$ac_header_preproc" >&6; } 8894echo "${ECHO_T}$ac_header_preproc" >&6; }
10700 8895
10701# So? What about this header? 8896# So? What about this header?
10702case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 8897case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10703 yes:no: ) 8898 yes:no: )
10704 { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 8899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10705echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 8900echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10706 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5 8901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10707echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;} 8902echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10708 ac_header_preproc=yes 8903 ac_header_preproc=yes
10709 ;; 8904 ;;
10710 no:yes:* ) 8905 no:yes:* )
10711 { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5 8906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10712echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;} 8907echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10713 { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5 8908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10714echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;} 8909echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10715 { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5 8910 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10716echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;} 8911echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10717 { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5 8912 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10718echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;} 8913echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10719 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5 8914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10720echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;} 8915echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10721 { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5 8916 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10722echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;} 8917echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10723 8918
10724 ;; 8919 ;;
10725esac 8920esac
10726{ echo "$as_me:$LINENO: checking for utmp.h" >&5 8921{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10727echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } 8922echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10728if test "${ac_cv_header_utmp_h+set}" = set; then 8923if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10729 echo $ECHO_N "(cached) $ECHO_C" >&6 8924 echo $ECHO_N "(cached) $ECHO_C" >&6
10730else 8925else
10731 ac_cv_header_utmp_h=$ac_header_preproc 8926 eval "$as_ac_Header=\$ac_header_preproc"
10732fi 8927fi
8928ac_res=`eval echo '${'$as_ac_Header'}'`
10733{ echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 8929 { echo "$as_me:$LINENO: result: $ac_res" >&5
10734echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } 8930echo "${ECHO_T}$ac_res" >&6; }
10735 8931
10736fi 8932fi
10737if test $ac_cv_header_utmp_h = yes; then 8933if test `eval echo '${'$as_ac_Header'}'` = yes; then
8934 cat >>confdefs.h <<_ACEOF
8935#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8936_ACEOF
10738 { echo "$as_me:$LINENO: checking for struct utmp" >&5 8937 { echo "$as_me:$LINENO: checking for struct utmp" >&5
10739echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; } 8938echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; }
10740if test "${struct_utmp+set}" = set; then 8939if test "${struct_utmp+set}" = set; then
10741 echo $ECHO_N "(cached) $ECHO_C" >&6 8940 echo $ECHO_N "(cached) $ECHO_C" >&6
10742else 8941else
10743 cat >conftest.$ac_ext <<_ACEOF 8942 cat >conftest.$ac_ext <<_ACEOF
10910 9109
10911fi 9110fi
10912 9111
10913fi 9112fi
10914 9113
9114done
10915 9115
10916 9116
10917if test "${ac_cv_header_utmpx_h+set}" = set; then 9117
9118for ac_header in utmpx.h
9119do
9120as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9121if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10918 { echo "$as_me:$LINENO: checking for utmpx.h" >&5 9122 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10919echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } 9123echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10920if test "${ac_cv_header_utmpx_h+set}" = set; then 9124if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10921 echo $ECHO_N "(cached) $ECHO_C" >&6 9125 echo $ECHO_N "(cached) $ECHO_C" >&6
10922fi 9126fi
9127ac_res=`eval echo '${'$as_ac_Header'}'`
10923{ echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 9128 { echo "$as_me:$LINENO: result: $ac_res" >&5
10924echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } 9129echo "${ECHO_T}$ac_res" >&6; }
10925else 9130else
10926 # Is the header compilable? 9131 # Is the header compilable?
10927{ echo "$as_me:$LINENO: checking utmpx.h usability" >&5 9132{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10928echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6; } 9133echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10929cat >conftest.$ac_ext <<_ACEOF 9134cat >conftest.$ac_ext <<_ACEOF
10930/* confdefs.h. */ 9135/* confdefs.h. */
10931_ACEOF 9136_ACEOF
10932cat confdefs.h >>conftest.$ac_ext 9137cat confdefs.h >>conftest.$ac_ext
10933cat >>conftest.$ac_ext <<_ACEOF 9138cat >>conftest.$ac_ext <<_ACEOF
10934/* end confdefs.h. */ 9139/* end confdefs.h. */
10935$ac_includes_default 9140$ac_includes_default
10936#include <utmpx.h> 9141#include <$ac_header>
10937_ACEOF 9142_ACEOF
10938rm -f conftest.$ac_objext 9143rm -f conftest.$ac_objext
10939if { (ac_try="$ac_compile" 9144if { (ac_try="$ac_compile"
10940case "(($ac_try" in 9145case "(($ac_try" in
10941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10964{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9169{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10965echo "${ECHO_T}$ac_header_compiler" >&6; } 9170echo "${ECHO_T}$ac_header_compiler" >&6; }
10966 9171
10967# Is the header present? 9172# Is the header present?
10968{ echo "$as_me:$LINENO: checking utmpx.h presence" >&5 9173{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10969echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6; } 9174echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10970cat >conftest.$ac_ext <<_ACEOF 9175cat >conftest.$ac_ext <<_ACEOF
10971/* confdefs.h. */ 9176/* confdefs.h. */
10972_ACEOF 9177_ACEOF
10973cat confdefs.h >>conftest.$ac_ext 9178cat confdefs.h >>conftest.$ac_ext
10974cat >>conftest.$ac_ext <<_ACEOF 9179cat >>conftest.$ac_ext <<_ACEOF
10975/* end confdefs.h. */ 9180/* end confdefs.h. */
10976#include <utmpx.h> 9181#include <$ac_header>
10977_ACEOF 9182_ACEOF
10978if { (ac_try="$ac_cpp conftest.$ac_ext" 9183if { (ac_try="$ac_cpp conftest.$ac_ext"
10979case "(($ac_try" in 9184case "(($ac_try" in
10980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10981 *) ac_try_echo=$ac_try;; 9186 *) ac_try_echo=$ac_try;;
11004echo "${ECHO_T}$ac_header_preproc" >&6; } 9209echo "${ECHO_T}$ac_header_preproc" >&6; }
11005 9210
11006# So? What about this header? 9211# So? What about this header?
11007case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 9212case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11008 yes:no: ) 9213 yes:no: )
11009 { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5 9214 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11010echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 9215echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11011 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5 9216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11012echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;} 9217echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11013 ac_header_preproc=yes 9218 ac_header_preproc=yes
11014 ;; 9219 ;;
11015 no:yes:* ) 9220 no:yes:* )
11016 { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5 9221 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11017echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;} 9222echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11018 { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5 9223 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11019echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;} 9224echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11020 { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5 9225 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11021echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;} 9226echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11022 { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5 9227 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11023echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;} 9228echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11024 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5 9229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11025echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;} 9230echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11026 { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5 9231 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11027echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;} 9232echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11028 9233
11029 ;; 9234 ;;
11030esac 9235esac
11031{ echo "$as_me:$LINENO: checking for utmpx.h" >&5 9236{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11032echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } 9237echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11033if test "${ac_cv_header_utmpx_h+set}" = set; then 9238if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11034 echo $ECHO_N "(cached) $ECHO_C" >&6 9239 echo $ECHO_N "(cached) $ECHO_C" >&6
11035else 9240else
11036 ac_cv_header_utmpx_h=$ac_header_preproc 9241 eval "$as_ac_Header=\$ac_header_preproc"
11037fi 9242fi
9243ac_res=`eval echo '${'$as_ac_Header'}'`
11038{ echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 9244 { echo "$as_me:$LINENO: result: $ac_res" >&5
11039echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } 9245echo "${ECHO_T}$ac_res" >&6; }
11040 9246
11041fi 9247fi
11042if test $ac_cv_header_utmpx_h = yes; then 9248if test `eval echo '${'$as_ac_Header'}'` = yes; then
9249 cat >>confdefs.h <<_ACEOF
9250#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9251_ACEOF
11043 { echo "$as_me:$LINENO: checking for struct utmpx" >&5 9252 { echo "$as_me:$LINENO: checking for struct utmpx" >&5
11044echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; } 9253echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; }
11045if test "${struct_utmpx+set}" = set; then 9254if test "${struct_utmpx+set}" = set; then
11046 echo $ECHO_N "(cached) $ECHO_C" >&6 9255 echo $ECHO_N "(cached) $ECHO_C" >&6
11047else 9256else
11048 cat >conftest.$ac_ext <<_ACEOF 9257 cat >conftest.$ac_ext <<_ACEOF
11215 9424
11216fi 9425fi
11217 9426
11218fi 9427fi
11219 9428
9429done
11220 9430
11221{ echo "$as_me:$LINENO: checking for struct lastlog" >&5 9431{ echo "$as_me:$LINENO: checking for struct lastlog" >&5
11222echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } 9432echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; }
11223if test "${struct_lastlog+set}" = set; then 9433if test "${struct_lastlog+set}" = set; then
11224 echo $ECHO_N "(cached) $ECHO_C" >&6 9434 echo $ECHO_N "(cached) $ECHO_C" >&6
12294 10504
12295 10505
12296 10506
12297 10507
12298 10508
10509
12299for ac_header in \ 10510for ac_header in \
12300 pty.h \ 10511 pty.h \
12301 util.h \ 10512 util.h \
12302 libutil.h \ 10513 libutil.h \
12303 sys/ioctl.h \ 10514 sys/ioctl.h \
12304 sys/stropts.h \ 10515 sys/stropts.h \
10516 stropts.h \
12305 10517
12306do 10518do
12307as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10519as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12308if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10520if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12309 { echo "$as_me:$LINENO: checking for $ac_header" >&5 10521 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13332_ACEOF 11544_ACEOF
13333 11545
13334fi 11546fi
13335 11547
13336 11548
11549scrolltypes=plain
11550
11551cat >>confdefs.h <<\_ACEOF
11552#define PLAIN_SCROLLBAR 1
11553_ACEOF
11554
11555
13337if test x$support_scroll_rxvt = xyes; then 11556if test x$support_scroll_rxvt = xyes; then
13338 11557
13339cat >>confdefs.h <<\_ACEOF 11558cat >>confdefs.h <<\_ACEOF
13340#define RXVT_SCROLLBAR 1 11559#define RXVT_SCROLLBAR 1
13341_ACEOF 11560_ACEOF
13342 11561
13343 scrolltypes="rxvt" 11562 scrolltypes="$scrolltypes rxvt"
13344fi 11563fi
13345if test x$support_scroll_next = xyes; then 11564if test x$support_scroll_next = xyes; then
13346 11565
13347cat >>confdefs.h <<\_ACEOF 11566cat >>confdefs.h <<\_ACEOF
13348#define NEXT_SCROLLBAR 1 11567#define NEXT_SCROLLBAR 1
13355cat >>confdefs.h <<\_ACEOF 11574cat >>confdefs.h <<\_ACEOF
13356#define XTERM_SCROLLBAR 1 11575#define XTERM_SCROLLBAR 1
13357_ACEOF 11576_ACEOF
13358 11577
13359 scrolltypes="$scrolltypes xterm" 11578 scrolltypes="$scrolltypes xterm"
13360fi
13361if test x$support_scroll_plain = xyes; then
13362
13363cat >>confdefs.h <<\_ACEOF
13364#define PLAIN_SCROLLBAR 1
13365_ACEOF
13366
13367 scrolltypes="$scrolltypes plain"
13368fi 11579fi
13369if test x$support_pointer_blank = xyes; then 11580if test x$support_pointer_blank = xyes; then
13370 11581
13371cat >>confdefs.h <<\_ACEOF 11582cat >>confdefs.h <<\_ACEOF
13372#define POINTER_BLANK 1 11583#define POINTER_BLANK 1
13635_ACEOF 11846_ACEOF
13636program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 11847program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
13637rm -f conftest.sed 11848rm -f conftest.sed
13638 11849
13639 11850
13640
13641
13642
13643if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
13644 include_stdint_h="#include <stdint.h>"
13645else
13646 include_stdint_h="/* #include <stdint.h> */"
13647fi
13648if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
13649 include_stdarg_h="#include <cstdarg>"
13650else
13651 include_stdarg_h="/* #include <cstdarg> */"
13652fi
13653if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
13654 include_stdlib_h="#include <cstdlib>"
13655else
13656 include_stdlib_h="/* #include <cstdlib> */"
13657fi
13658if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
13659 include_unistd_h="#include <unistd.h>"
13660else
13661 include_unistd_h="/* #include <unistd.h> */"
13662fi
13663if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
13664 include_string_h="#include <cstring>"
13665else
13666 include_string_h="/* #include <cstring> */"
13667fi
13668if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
13669 include_fcntl_h="#include <fcntl.h>"
13670else
13671 include_fcntl_h="/* #include <fcntl.h> */"
13672fi
13673if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
13674 include_util_h="#include <util.h>"
13675else
13676 include_util_h="/* #include <util.h> */"
13677fi
13678if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
13679 include_assert_h="#include <assert.h>"
13680else
13681 include_assert_h="/* #include <assert.h> */"
13682fi
13683if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
13684 include_sys_ioctl_h="#include <sys/ioctl.h>"
13685else
13686 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
13687fi
13688if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
13689 include_sys_select_h="#include <sys/select.h>"
13690else
13691 include_sys_select_h="/* #include <sys/select.h> */"
13692fi
13693if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
13694 include_sys_strredir_h="#include <sys/strredir.h>"
13695else
13696 include_sys_strredir_h="/* #include <sys/strredir.h> */"
13697fi
13698if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
13699 include_sys_time_h="#include <sys/time.h>"
13700else
13701 include_sys_time_h="/* #include <sys/time.h> */"
13702fi
13703if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
13704 include_time_h="#include <time.h>"
13705else
13706 include_time_h="/* #include <time.h> */"
13707fi
13708
13709ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" 11851ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile"
13710 11852
13711cat >confcache <<\_ACEOF 11853cat >confcache <<\_ACEOF
13712# This file is a shell script that caches the results of configure 11854# This file is a shell script that caches the results of configure
13713# tests run on this system so they can be shared between configure 11855# tests run on this system so they can be shared between configure
13714# scripts and configure runs, see configure's option --config-cache. 11856# scripts and configure runs, see configure's option --config-cache.
14263 case $ac_config_target in 12405 case $ac_config_target in
14264 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; 12406 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
14265 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12407 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14266 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 12408 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14267 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 12409 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14268 "src/rxvtlib.h") CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
14269 12410
14270 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 12411 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14271echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 12412echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14272 { (exit 1); exit 1; }; };; 12413 { (exit 1); exit 1; }; };;
14273 esac 12414 esac
14372host_cpu!$host_cpu$ac_delim 12513host_cpu!$host_cpu$ac_delim
14373host_vendor!$host_vendor$ac_delim 12514host_vendor!$host_vendor$ac_delim
14374host_os!$host_os$ac_delim 12515host_os!$host_os$ac_delim
14375VERSION!$VERSION$ac_delim 12516VERSION!$VERSION$ac_delim
14376DATE!$DATE$ac_delim 12517DATE!$DATE$ac_delim
14377LSMDATE!$LSMDATE$ac_delim
14378LIBVERSION!$LIBVERSION$ac_delim
14379CC!$CC$ac_delim 12518CC!$CC$ac_delim
14380CFLAGS!$CFLAGS$ac_delim 12519CFLAGS!$CFLAGS$ac_delim
14381LDFLAGS!$LDFLAGS$ac_delim 12520LDFLAGS!$LDFLAGS$ac_delim
14382CPPFLAGS!$CPPFLAGS$ac_delim 12521CPPFLAGS!$CPPFLAGS$ac_delim
14383ac_ct_CC!$ac_ct_CC$ac_delim 12522ac_ct_CC!$ac_ct_CC$ac_delim
14391INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 12530INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14392INSTALL_DATA!$INSTALL_DATA$ac_delim 12531INSTALL_DATA!$INSTALL_DATA$ac_delim
14393GREP!$GREP$ac_delim 12532GREP!$GREP$ac_delim
14394EGREP!$EGREP$ac_delim 12533EGREP!$EGREP$ac_delim
14395LINKER!$LINKER$ac_delim 12534LINKER!$LINKER$ac_delim
14396INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim
14397RXVTNAME!$RXVTNAME$ac_delim 12535RXVTNAME!$RXVTNAME$ac_delim
14398CXXCPP!$CXXCPP$ac_delim 12536CXXCPP!$CXXCPP$ac_delim
14399TIC!$TIC$ac_delim 12537TIC!$TIC$ac_delim
14400XMKMF!$XMKMF$ac_delim 12538XMKMF!$XMKMF$ac_delim
14401X_CFLAGS!$X_CFLAGS$ac_delim 12539X_CFLAGS!$X_CFLAGS$ac_delim
14402X_PRE_LIBS!$X_PRE_LIBS$ac_delim 12540X_PRE_LIBS!$X_PRE_LIBS$ac_delim
14403X_LIBS!$X_LIBS$ac_delim 12541X_LIBS!$X_LIBS$ac_delim
14404X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim 12542X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
14405afterimage_config!$afterimage_config$ac_delim 12543afterimage_config!$afterimage_config$ac_delim
14406rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim
14407rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim
14408rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim
14409rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim
14410rxvt_intp_define!$rxvt_intp_define$ac_delim
14411rxvt_u_intp_define!$rxvt_u_intp_define$ac_delim
14412PKG_CONFIG!$PKG_CONFIG$ac_delim 12544PKG_CONFIG!$PKG_CONFIG$ac_delim
14413XFT_CONFIG!$XFT_CONFIG$ac_delim 12545XFT_CONFIG!$XFT_CONFIG$ac_delim
14414PERL!$PERL$ac_delim 12546PERL!$PERL$ac_delim
14415PERLLIB!$PERLLIB$ac_delim 12547PERLLIB!$PERLLIB$ac_delim
14416PERLFLAGS!$PERLFLAGS$ac_delim 12548PERLFLAGS!$PERLFLAGS$ac_delim
14417PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim 12549PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim
14418IF_PERL!$IF_PERL$ac_delim 12550IF_PERL!$IF_PERL$ac_delim
14419PERL_O!$PERL_O$ac_delim 12551PERL_O!$PERL_O$ac_delim
14420AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim 12552AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim
14421AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim 12553AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim
14422include_stdint_h!$include_stdint_h$ac_delim 12554LIBOBJS!$LIBOBJS$ac_delim
14423include_stdarg_h!$include_stdarg_h$ac_delim 12555LTLIBOBJS!$LTLIBOBJS$ac_delim
14424include_stdlib_h!$include_stdlib_h$ac_delim
14425include_unistd_h!$include_unistd_h$ac_delim
14426include_string_h!$include_string_h$ac_delim
14427_ACEOF 12556_ACEOF
14428 12557
14429 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 12558 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 85; then
14430 break 12559 break
14431 elif $ac_last_try; then 12560 elif $ac_last_try; then
14432 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 12561 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14433echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 12562echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14434 { (exit 1); exit 1; }; } 12563 { (exit 1); exit 1; }; }
14443 ac_eof=`expr $ac_eof + 1` 12572 ac_eof=`expr $ac_eof + 1`
14444fi 12573fi
14445 12574
14446cat >>$CONFIG_STATUS <<_ACEOF 12575cat >>$CONFIG_STATUS <<_ACEOF
14447cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 12576cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14448/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14449_ACEOF
14450sed '
14451s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14452s/^/s,@/; s/!/@,|#_!!_#|/
14453:n
14454t n
14455s/'"$ac_delim"'$/,g/; t
14456s/$/\\/; p
14457N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14458' >>$CONFIG_STATUS <conf$$subs.sed
14459rm -f conf$$subs.sed
14460cat >>$CONFIG_STATUS <<_ACEOF
14461CEOF$ac_eof
14462_ACEOF
14463
14464
14465ac_delim='%!_!# '
14466for ac_last_try in false false false false false :; do
14467 cat >conf$$subs.sed <<_ACEOF
14468include_fcntl_h!$include_fcntl_h$ac_delim
14469include_util_h!$include_util_h$ac_delim
14470include_assert_h!$include_assert_h$ac_delim
14471include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim
14472include_sys_select_h!$include_sys_select_h$ac_delim
14473include_sys_strredir_h!$include_sys_strredir_h$ac_delim
14474include_sys_time_h!$include_sys_time_h$ac_delim
14475include_time_h!$include_time_h$ac_delim
14476LIBOBJS!$LIBOBJS$ac_delim
14477LTLIBOBJS!$LTLIBOBJS$ac_delim
14478_ACEOF
14479
14480 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
14481 break
14482 elif $ac_last_try; then
14483 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14484echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14485 { (exit 1); exit 1; }; }
14486 else
14487 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14488 fi
14489done
14490
14491ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14492if test -n "$ac_eof"; then
14493 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14494 ac_eof=`expr $ac_eof + 1`
14495fi
14496
14497cat >>$CONFIG_STATUS <<_ACEOF
14498cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
14499/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 12577/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14500_ACEOF 12578_ACEOF
14501sed ' 12579sed '
14502s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 12580s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14503s/^/s,@/; s/!/@,|#_!!_#|/ 12581s/^/s,@/; s/!/@,|#_!!_#|/
14756s&@builddir@&$ac_builddir&;t t 12834s&@builddir@&$ac_builddir&;t t
14757s&@abs_builddir@&$ac_abs_builddir&;t t 12835s&@abs_builddir@&$ac_abs_builddir&;t t
14758s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12836s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14759s&@INSTALL@&$ac_INSTALL&;t t 12837s&@INSTALL@&$ac_INSTALL&;t t
14760$ac_datarootdir_hack 12838$ac_datarootdir_hack
14761" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 12839" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
14762 12840
14763test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12841test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14764 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 12842 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14765 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 12843 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14766 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12844 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines