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

Comparing rxvt-unicode/configure (file contents):
Revision 1.116 by root, Sun Nov 11 04:08:00 2007 UTC vs.
Revision 1.131 by root, Tue Mar 16 00:54:46 2010 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 1299 --enable-assert enable assertions
1322 --enable-warnings turn on g++ warnings 1300 --enable-warnings turn on g++ warnings
1323 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters 1301 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1324 --enable-combining enable composition of base and combining characters 1302 --enable-combining enable composition of base and combining characters
1325 --enable-xft enable xft support on systems that have it 1303 --enable-xft enable xft support on systems that have it
1326 --enable-font-styles enable bold and italic support 1304 --enable-font-styles enable bold and italic support
1327 --enable-afterimage enable integration with libAfterImage for background images 1305 --enable-afterimage enable integration with libAfterImage for background images
1328 --enable-transparency enable transparent backgrounds 1306 --enable-transparency enable transparent backgrounds
1329 --enable-fading enable colors fading when off focus 1307 --enable-fading enable colors fading when off focus
1330 --enable-rxvt-scroll enable rxvt style scrollbar 1308 --enable-rxvt-scroll enable rxvt style scrollbar
1331 --enable-next-scroll enable NeXT style scrollbar 1309 --enable-next-scroll enable NeXT style scrollbar
1332 --enable-xterm-scroll enable Xterm style scrollbar 1310 --enable-xterm-scroll enable Xterm style scrollbar
1333 --enable-perl enable embedded perl interpreter 1311 --enable-perl enable embedded perl interpreter
1334 --enable-plain-scroll enable plain style scrollbar
1335 --enable-xim XIM (X Input Method) protocol support 1312 --enable-xim XIM (X Input Method) protocol support
1336 --disable-backspace-key disable handling of the backspace key 1313 --disable-backspace-key disable handling of the backspace key
1337 --disable-delete-key disable handling of the delete key 1314 --disable-delete-key disable handling of the delete key
1338 --disable-resources disable all resource checking 1315 --disable-resources disable all resource checking
1339 --enable-8bitctrls enable 8 bit control sequences (not recommended) 1316 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1345 --enable-selectionscrolling enable scrolling during selections 1322 --enable-selectionscrolling enable scrolling during selections
1346 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 1323 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1347 --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel) 1324 --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel)
1348 --enable-smart-resize enable smart growth/shrink behaviour 1325 --enable-smart-resize enable smart growth/shrink behaviour
1349 --enable-text-blink enable blinking text 1326 --enable-text-blink enable blinking text
1350 --enable-pointer-blank enable pointer blank when typing or inactive pointer 1327 --enable-pointer-blank enable pointer blanking when typing or inactive
1351 --enable-utmp enable utmp (utmpx) support 1328 --enable-utmp enable utmp (utmpx) support
1352 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) 1329 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1353 --enable-lastlog enable lastlog support (requires --enable-utmp) 1330 --enable-lastlog enable lastlog support (requires --enable-utmp)
1354 1331
1355Optional Packages: 1332Optional Packages:
1920 1897
1921 1898
1922 1899
1923VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1900VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1924DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1901DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1902
1925echo "" 1903echo ""
1926echo "configuring for rxvt $VERSION" 1904echo "configuring for rxvt $VERSION"
1927echo "" 1905echo ""
1928 1906
1929orig_CXXFLAGS="$CXXFLAGS" 1907orig_CXXFLAGS="$CXXFLAGS"
1930
1931 1908
1932ac_ext=c 1909ac_ext=c
1933ac_cpp='$CPP $CPPFLAGS' 1910ac_cpp='$CPP $CPPFLAGS'
1934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3714echo "${ECHO_T}no" >&6; } 3691echo "${ECHO_T}no" >&6; }
3715fi 3692fi
3716rm -f conftest* 3693rm -f conftest*
3717 3694
3718 3695
3696
3697cat >>confdefs.h <<\_ACEOF
3698#define _GNU_SOURCE 1
3699_ACEOF
3700
3701
3719{ echo "$as_me:$LINENO: checking for library containing strerror" >&5 3702{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
3720echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } 3703echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3721if test "${ac_cv_search_strerror+set}" = set; then 3704if test "${ac_cv_search_strerror+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6 3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3723else 3706else
3870LINKER=$LINKER 3853LINKER=$LINKER
3871 3854
3872 3855
3873if test -z "$orig_CXXFLAGS"; then 3856if test -z "$orig_CXXFLAGS"; then
3874 if test x$GCC = xyes && test "x$GXX" = xyes; then 3857 if test x$GCC = xyes && test "x$GXX" = xyes; then
3875 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" 3858 CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs"
3876 cat >conftest.$ac_ext <<_ACEOF 3859 cat >conftest.$ac_ext <<_ACEOF
3877/* confdefs.h. */ 3860/* confdefs.h. */
3878_ACEOF 3861_ACEOF
3879cat confdefs.h >>conftest.$ac_ext 3862cat confdefs.h >>conftest.$ac_ext
3880cat >>conftest.$ac_ext <<_ACEOF 3863cat >>conftest.$ac_ext <<_ACEOF
3918 CXXFLAGS="-O" 3901 CXXFLAGS="-O"
3919 fi 3902 fi
3920 CFLAGS="$CXXFLAGS" 3903 CFLAGS="$CXXFLAGS"
3921fi 3904fi
3922 3905
3923
3924cat >>confdefs.h <<\_ACEOF
3925#define _GNU_SOURCE 1
3926_ACEOF
3927
3928
3929case $host in 3906case $host in
3930 *-*-solaris* ) 3907 *-*-solaris* )
3931 3908
3932cat >>confdefs.h <<\_ACEOF 3909cat >>confdefs.h <<\_ACEOF
3933#define _XOPEN_SOURCE 500 3910#define _XOPEN_SOURCE 500
3934_ACEOF 3911_ACEOF
3935 3912
3936 ;; 3913 ;;
3937esac 3914esac
3938
3939 3915
3940{ echo "$as_me:$LINENO: checking for setlocale" >&5 3916{ echo "$as_me:$LINENO: checking for setlocale" >&5
3941echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } 3917echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; }
3942if test "${ac_cv_func_setlocale+set}" = set; then 3918if test "${ac_cv_func_setlocale+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6 3919 echo $ECHO_N "(cached) $ECHO_C" >&6
4390fi 4366fi
4391 4367
4392fi 4368fi
4393 4369
4394 4370
4395
4396support_frills=yes 4371support_frills=yes
4397support_inheritpixmap=yes 4372support_inheritpixmap=yes
4398support_fading=yes 4373support_fading=yes
4399support_keepscrolling=yes 4374support_keepscrolling=yes
4400support_selectionscrolling=yes 4375support_selectionscrolling=yes
4403support_text_blink=yes 4378support_text_blink=yes
4404support_pointer_blank=yes 4379support_pointer_blank=yes
4405support_scroll_rxvt=yes 4380support_scroll_rxvt=yes
4406support_scroll_next=yes 4381support_scroll_next=yes
4407support_scroll_xterm=yes 4382support_scroll_xterm=yes
4408support_scroll_plain=yes
4409support_xim=yes 4383support_xim=yes
4410support_afterimage=yes 4384support_afterimage=yes
4411support_afterstep=yes 4385support_afterstep=yes
4412support_xft=yes 4386support_xft=yes
4413support_unicode3=no 4387support_unicode3=no
4415support_8bitctrls=no 4389support_8bitctrls=no
4416support_iso14755=yes 4390support_iso14755=yes
4417support_styles=yes 4391support_styles=yes
4418support_perl=yes 4392support_perl=yes
4419codesets=all 4393codesets=all
4420
4421
4422if test "x$enable_shared" = xyes; then
4423
4424cat >>confdefs.h <<\_ACEOF
4425#define LIBRXVT 1
4426_ACEOF
4427
4428 INSTALL_LIBRXVT=yes
4429fi
4430 4394
4431 4395
4432# Check whether --enable-everything was given. 4396# Check whether --enable-everything was given.
4433if test "${enable_everything+set}" = set; then 4397if test "${enable_everything+set}" = set; then
4434 enableval=$enable_everything; 4398 enableval=$enable_everything;
4444 support_text_blink=no 4408 support_text_blink=no
4445 support_pointer_blank=no 4409 support_pointer_blank=no
4446 support_scroll_rxvt=no 4410 support_scroll_rxvt=no
4447 support_scroll_next=no 4411 support_scroll_next=no
4448 support_scroll_xterm=no 4412 support_scroll_xterm=no
4449 support_scroll_plain=no
4450 support_utmp=no 4413 support_utmp=no
4451 support_wtmp=no 4414 support_wtmp=no
4452 support_xim=no 4415 support_xim=no
4453 support_afterimage=no 4416 support_afterimage=no
4454 support_afterstep=no 4417 support_afterstep=no
4473 support_text_blink=yes 4436 support_text_blink=yes
4474 support_pointer_blank=yes 4437 support_pointer_blank=yes
4475 support_scroll_rxvt=yes 4438 support_scroll_rxvt=yes
4476 support_scroll_next=yes 4439 support_scroll_next=yes
4477 support_scroll_xterm=yes 4440 support_scroll_xterm=yes
4478 support_scroll_plain=yes
4479 support_utmp=yes 4441 support_utmp=yes
4480 support_wtmp=yes 4442 support_wtmp=yes
4481 support_xim=yes 4443 support_xim=yes
4482 support_afterimage=yes 4444 support_afterimage=yes
4483 support_afterstep=yes 4445 support_afterstep=yes
4492 fi 4454 fi
4493 4455
4494fi 4456fi
4495 4457
4496 4458
4459ASSERTIONS=no
4460# Check whether --enable-assert was given.
4461if test "${enable_assert+set}" = set; then
4462 enableval=$enable_assert; if test x$enableval = xyes; then
4463 ASSERTIONS=yes
4464 fi
4465fi
4466
4467if test x$ASSERTIONS = xno; then
4468
4469cat >>confdefs.h <<\_ACEOF
4470#define NDEBUG 1
4471_ACEOF
4472
4473fi
4474
4497WARNINGS=no 4475WARNINGS=no
4498# Check whether --enable-warnings was given. 4476# Check whether --enable-warnings was given.
4499if test "${enable_warnings+set}" = set; then 4477if test "${enable_warnings+set}" = set; then
4500 enableval=$enable_warnings; if test x$enableval = xyes; then 4478 enableval=$enable_warnings; if test x$enableval = xyes; then
4501 WARNINGS=yes 4479 WARNINGS=yes
4648 support_perl=$enableval 4626 support_perl=$enableval
4649 fi 4627 fi
4650fi 4628fi
4651 4629
4652 4630
4653# Check whether --enable-plain-scroll was given.
4654if test "${enable_plain_scroll+set}" = set; then
4655 enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4656 support_scroll_plain=$enableval
4657 fi
4658fi
4659
4660
4661 4631
4662# Check whether --with-codesets was given. 4632# Check whether --with-codesets was given.
4663if test "${with_codesets+set}" = set; then 4633if test "${with_codesets+set}" = set; then
4664 withval=$with_codesets; codesets="$withval" 4634 withval=$with_codesets; codesets="$withval"
4665fi 4635fi
4891 fi 4861 fi
4892fi 4862fi
4893 4863
4894 4864
4895 4865
4866LIBEV_M4_AVOID_LIBRT=1
4896 4867
4897ac_ext=cpp 4868ac_ext=cpp
4898ac_cpp='$CXXCPP $CPPFLAGS' 4869ac_cpp='$CXXCPP $CPPFLAGS'
4899ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4870ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4900ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4871ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5365 5336
5366 5337
5367 5338
5368 5339
5369 5340
5370for ac_header in sys/epoll.h sys/event.h sys/queue.h 5341
5342
5343
5344
5345
5346for ac_header in sys/inotify.h sys/epoll.h sys/event.h port.h poll.h sys/select.h sys/eventfd.h sys/signalfd.h
5371do 5347do
5372as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5348as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5373if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5349if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5374 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5350 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5375echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5351echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5507done 5483done
5508 5484
5509 5485
5510 5486
5511 5487
5512for ac_func in epoll_ctl kqueue 5488
5489
5490
5491
5492
5493
5494for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd signalfd
5513do 5495do
5514as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5496as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5515{ echo "$as_me:$LINENO: checking for $ac_func" >&5 5497{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5516echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 5498echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5517if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 5499if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5686echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; } 5668echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; }
5687if test $ac_cv_func_clock_gettime = yes; then 5669if test $ac_cv_func_clock_gettime = yes; then
5688 : 5670 :
5689else 5671else
5690 5672
5673 if test $(uname) = Linux; then
5674 { echo "$as_me:$LINENO: checking for clock_gettime syscall" >&5
5675echo $ECHO_N "checking for clock_gettime syscall... $ECHO_C" >&6; }
5676 cat >conftest.$ac_ext <<_ACEOF
5677/* confdefs.h. */
5678_ACEOF
5679cat confdefs.h >>conftest.$ac_ext
5680cat >>conftest.$ac_ext <<_ACEOF
5681/* end confdefs.h. */
5682#include <unistd.h>
5683 #include <sys/syscall.h>
5684 #include <time.h>
5685int
5686main ()
5687{
5688struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts)
5689 ;
5690 return 0;
5691}
5692_ACEOF
5693rm -f conftest.$ac_objext conftest$ac_exeext
5694if { (ac_try="$ac_link"
5695case "(($ac_try" in
5696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5697 *) ac_try_echo=$ac_try;;
5698esac
5699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5700 (eval "$ac_link") 2>conftest.er1
5701 ac_status=$?
5702 grep -v '^ *+' conftest.er1 >conftest.err
5703 rm -f conftest.er1
5704 cat conftest.err >&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); } && {
5707 test -z "$ac_cxx_werror_flag" ||
5708 test ! -s conftest.err
5709 } && test -s conftest$ac_exeext &&
5710 $as_test_x conftest$ac_exeext; then
5711 ac_have_clock_syscall=1
5712
5713cat >>confdefs.h <<\_ACEOF
5714#define HAVE_CLOCK_SYSCALL 1
5715_ACEOF
5716
5717 { echo "$as_me:$LINENO: result: yes" >&5
5718echo "${ECHO_T}yes" >&6; }
5719else
5720 echo "$as_me: failed program was:" >&5
5721sed 's/^/| /' conftest.$ac_ext >&5
5722
5723 { echo "$as_me:$LINENO: result: no" >&5
5724echo "${ECHO_T}no" >&6; }
5725fi
5726
5727rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5728 conftest$ac_exeext conftest.$ac_ext
5729 fi
5730 if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then
5691 5731
5692{ echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 5732{ echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
5693echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } 5733echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
5694if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then 5734if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
5695 echo $ECHO_N "(cached) $ECHO_C" >&6 5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5757 5797
5758 LIBS="-lrt $LIBS" 5798 LIBS="-lrt $LIBS"
5759 5799
5760fi 5800fi
5761 5801
5802 unset ac_cv_func_clock_gettime
5762 5803
5763for ac_func in clock_gettime 5804for ac_func in clock_gettime
5764do 5805do
5765as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5806as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5766{ echo "$as_me:$LINENO: checking for $ac_func" >&5 5807{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5851_ACEOF 5892_ACEOF
5852 5893
5853fi 5894fi
5854done 5895done
5855 5896
5897 fi
5898
5899fi
5900
5901
5902{ echo "$as_me:$LINENO: checking for nanosleep" >&5
5903echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; }
5904if test "${ac_cv_func_nanosleep+set}" = set; then
5905 echo $ECHO_N "(cached) $ECHO_C" >&6
5906else
5907 cat >conftest.$ac_ext <<_ACEOF
5908/* confdefs.h. */
5909_ACEOF
5910cat confdefs.h >>conftest.$ac_ext
5911cat >>conftest.$ac_ext <<_ACEOF
5912/* end confdefs.h. */
5913/* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep.
5914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5915#define nanosleep innocuous_nanosleep
5916
5917/* System header to define __stub macros and hopefully few prototypes,
5918 which can conflict with char nanosleep (); below.
5919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5920 <limits.h> exists even on freestanding compilers. */
5921
5922#ifdef __STDC__
5923# include <limits.h>
5924#else
5925# include <assert.h>
5926#endif
5927
5928#undef nanosleep
5929
5930/* Override any GCC internal prototype to avoid an error.
5931 Use char because int might match the return type of a GCC
5932 builtin and then its argument prototype would still apply. */
5933#ifdef __cplusplus
5934extern "C"
5935#endif
5936char nanosleep ();
5937/* The GNU C library defines this for functions which it implements
5938 to always fail with ENOSYS. Some functions are actually named
5939 something starting with __ and the normal name is an alias. */
5940#if defined __stub_nanosleep || defined __stub___nanosleep
5941choke me
5942#endif
5943
5944int
5945main ()
5946{
5947return nanosleep ();
5948 ;
5949 return 0;
5950}
5951_ACEOF
5952rm -f conftest.$ac_objext conftest$ac_exeext
5953if { (ac_try="$ac_link"
5954case "(($ac_try" in
5955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5956 *) ac_try_echo=$ac_try;;
5957esac
5958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5959 (eval "$ac_link") 2>conftest.er1
5960 ac_status=$?
5961 grep -v '^ *+' conftest.er1 >conftest.err
5962 rm -f conftest.er1
5963 cat conftest.err >&5
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); } && {
5966 test -z "$ac_cxx_werror_flag" ||
5967 test ! -s conftest.err
5968 } && test -s conftest$ac_exeext &&
5969 $as_test_x conftest$ac_exeext; then
5970 ac_cv_func_nanosleep=yes
5971else
5972 echo "$as_me: failed program was:" >&5
5973sed 's/^/| /' conftest.$ac_ext >&5
5974
5975 ac_cv_func_nanosleep=no
5976fi
5977
5978rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5979 conftest$ac_exeext conftest.$ac_ext
5980fi
5981{ echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5
5982echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; }
5983if test $ac_cv_func_nanosleep = yes; then
5984 :
5985else
5986
5987 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
5988
5989{ echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
5990echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; }
5991if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
5992 echo $ECHO_N "(cached) $ECHO_C" >&6
5993else
5994 ac_check_lib_save_LIBS=$LIBS
5995LIBS="-lrt $LIBS"
5996cat >conftest.$ac_ext <<_ACEOF
5997/* confdefs.h. */
5998_ACEOF
5999cat confdefs.h >>conftest.$ac_ext
6000cat >>conftest.$ac_ext <<_ACEOF
6001/* end confdefs.h. */
6002
6003/* Override any GCC internal prototype to avoid an error.
6004 Use char because int might match the return type of a GCC
6005 builtin and then its argument prototype would still apply. */
6006#ifdef __cplusplus
6007extern "C"
6008#endif
6009char nanosleep ();
6010int
6011main ()
6012{
6013return nanosleep ();
6014 ;
6015 return 0;
6016}
6017_ACEOF
6018rm -f conftest.$ac_objext conftest$ac_exeext
6019if { (ac_try="$ac_link"
6020case "(($ac_try" in
6021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6022 *) ac_try_echo=$ac_try;;
6023esac
6024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6025 (eval "$ac_link") 2>conftest.er1
6026 ac_status=$?
6027 grep -v '^ *+' conftest.er1 >conftest.err
6028 rm -f conftest.er1
6029 cat conftest.err >&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); } && {
6032 test -z "$ac_cxx_werror_flag" ||
6033 test ! -s conftest.err
6034 } && test -s conftest$ac_exeext &&
6035 $as_test_x conftest$ac_exeext; then
6036 ac_cv_lib_rt_nanosleep=yes
6037else
6038 echo "$as_me: failed program was:" >&5
6039sed 's/^/| /' conftest.$ac_ext >&5
6040
6041 ac_cv_lib_rt_nanosleep=no
6042fi
6043
6044rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6045 conftest$ac_exeext conftest.$ac_ext
6046LIBS=$ac_check_lib_save_LIBS
6047fi
6048{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
6049echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; }
6050if test $ac_cv_lib_rt_nanosleep = yes; then
6051 cat >>confdefs.h <<_ACEOF
6052#define HAVE_LIBRT 1
6053_ACEOF
6054
6055 LIBS="-lrt $LIBS"
6056
6057fi
6058
6059 unset ac_cv_func_nanosleep
6060
6061for ac_func in nanosleep
6062do
6063as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6064{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6065echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6066if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6067 echo $ECHO_N "(cached) $ECHO_C" >&6
6068else
6069 cat >conftest.$ac_ext <<_ACEOF
6070/* confdefs.h. */
6071_ACEOF
6072cat confdefs.h >>conftest.$ac_ext
6073cat >>conftest.$ac_ext <<_ACEOF
6074/* end confdefs.h. */
6075/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6077#define $ac_func innocuous_$ac_func
6078
6079/* System header to define __stub macros and hopefully few prototypes,
6080 which can conflict with char $ac_func (); below.
6081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6082 <limits.h> exists even on freestanding compilers. */
6083
6084#ifdef __STDC__
6085# include <limits.h>
6086#else
6087# include <assert.h>
6088#endif
6089
6090#undef $ac_func
6091
6092/* Override any GCC internal prototype to avoid an error.
6093 Use char because int might match the return type of a GCC
6094 builtin and then its argument prototype would still apply. */
6095#ifdef __cplusplus
6096extern "C"
6097#endif
6098char $ac_func ();
6099/* The GNU C library defines this for functions which it implements
6100 to always fail with ENOSYS. Some functions are actually named
6101 something starting with __ and the normal name is an alias. */
6102#if defined __stub_$ac_func || defined __stub___$ac_func
6103choke me
6104#endif
6105
6106int
6107main ()
6108{
6109return $ac_func ();
6110 ;
6111 return 0;
6112}
6113_ACEOF
6114rm -f conftest.$ac_objext conftest$ac_exeext
6115if { (ac_try="$ac_link"
6116case "(($ac_try" in
6117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6118 *) ac_try_echo=$ac_try;;
6119esac
6120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6121 (eval "$ac_link") 2>conftest.er1
6122 ac_status=$?
6123 grep -v '^ *+' conftest.er1 >conftest.err
6124 rm -f conftest.er1
6125 cat conftest.err >&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); } && {
6128 test -z "$ac_cxx_werror_flag" ||
6129 test ! -s conftest.err
6130 } && test -s conftest$ac_exeext &&
6131 $as_test_x conftest$ac_exeext; then
6132 eval "$as_ac_var=yes"
6133else
6134 echo "$as_me: failed program was:" >&5
6135sed 's/^/| /' conftest.$ac_ext >&5
6136
6137 eval "$as_ac_var=no"
6138fi
6139
6140rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6141 conftest$ac_exeext conftest.$ac_ext
6142fi
6143ac_res=`eval echo '${'$as_ac_var'}'`
6144 { echo "$as_me:$LINENO: result: $ac_res" >&5
6145echo "${ECHO_T}$ac_res" >&6; }
6146if test `eval echo '${'$as_ac_var'}'` = yes; then
6147 cat >>confdefs.h <<_ACEOF
6148#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6149_ACEOF
6150
6151fi
6152done
6153
6154 fi
5856 6155
5857fi 6156fi
5858 6157
5859 6158
5860 6159
5925_ACEOF 6224_ACEOF
5926 6225
5927 LIBS="-lm $LIBS" 6226 LIBS="-lm $LIBS"
5928 6227
5929fi 6228fi
5930
5931
5932 6229
5933 6230
5934 6231
5935 6232
5936 6233
5971echo "${ECHO_T}$TIC" >&6; } 6268echo "${ECHO_T}$TIC" >&6; }
5972else 6269else
5973 { echo "$as_me:$LINENO: result: no" >&5 6270 { echo "$as_me:$LINENO: result: no" >&5
5974echo "${ECHO_T}no" >&6; } 6271echo "${ECHO_T}no" >&6; }
5975fi 6272fi
5976
5977
5978 6273
5979 6274
5980 6275
5981{ echo "$as_me:$LINENO: checking for X" >&5 6276{ echo "$as_me:$LINENO: checking for X" >&5
5982echo $ECHO_N "checking for X... $ECHO_C" >&6; } 6277echo $ECHO_N "checking for X... $ECHO_C" >&6; }
7369echo "${ECHO_T}no" >&6; } 7664echo "${ECHO_T}no" >&6; }
7370 fi 7665 fi
7371 fi 7666 fi
7372fi 7667fi
7373 7668
7374{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7375echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7376if test "${ac_cv_header_sys_wait_h+set}" = set; then
7377 echo $ECHO_N "(cached) $ECHO_C" >&6
7378else
7379 cat >conftest.$ac_ext <<_ACEOF
7380/* confdefs.h. */
7381_ACEOF
7382cat confdefs.h >>conftest.$ac_ext
7383cat >>conftest.$ac_ext <<_ACEOF
7384/* end confdefs.h. */
7385#include <sys/types.h>
7386#include <sys/wait.h>
7387#ifndef WEXITSTATUS
7388# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7389#endif
7390#ifndef WIFEXITED
7391# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7392#endif
7393
7394int
7395main ()
7396{
7397 int s;
7398 wait (&s);
7399 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7400 ;
7401 return 0;
7402}
7403_ACEOF
7404rm -f conftest.$ac_objext
7405if { (ac_try="$ac_compile"
7406case "(($ac_try" in
7407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7408 *) ac_try_echo=$ac_try;;
7409esac
7410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7411 (eval "$ac_compile") 2>conftest.er1
7412 ac_status=$?
7413 grep -v '^ *+' conftest.er1 >conftest.err
7414 rm -f conftest.er1
7415 cat conftest.err >&5
7416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417 (exit $ac_status); } && {
7418 test -z "$ac_cxx_werror_flag" ||
7419 test ! -s conftest.err
7420 } && test -s conftest.$ac_objext; then
7421 ac_cv_header_sys_wait_h=yes
7422else
7423 echo "$as_me: failed program was:" >&5
7424sed 's/^/| /' conftest.$ac_ext >&5
7425
7426 ac_cv_header_sys_wait_h=no
7427fi
7428
7429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7430fi
7431{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7432echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7433if test $ac_cv_header_sys_wait_h = yes; then
7434
7435cat >>confdefs.h <<\_ACEOF
7436#define HAVE_SYS_WAIT_H 1
7437_ACEOF
7438
7439fi
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451 7669
7452 7670
7453 7671
7454 7672
7455 7673
7456 7674
7457 7675
7458for ac_header in \ 7676for ac_header in \
7459 assert.h \
7460 fcntl.h \
7461 stdarg.h \
7462 stdlib.h \
7463 string.h \
7464 termios.h \
7465 unistd.h \
7466 sys/byteorder.h \ 7677 sys/byteorder.h \
7467 sys/ioctl.h \ 7678 sys/ioctl.h \
7468 sys/select.h \
7469 sys/sockio.h \ 7679 sys/sockio.h \
7470 sys/strredir.h \ 7680 sys/strredir.h \
7471 sys/time.h \
7472 stdint.h \ 7681 stdint.h \
7473 wchar.h \ 7682 wchar.h \
7474 cwchar \ 7683 cwchar \
7475 clocale \
7476 7684
7477do 7685do
7478as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7686as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7479if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7687if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7480 { echo "$as_me:$LINENO: checking for $ac_header" >&5 7688 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7611fi 7819fi
7612 7820
7613done 7821done
7614 7822
7615 7823
7616{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7617echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7618if test "${ac_cv_header_time+set}" = set; then
7619 echo $ECHO_N "(cached) $ECHO_C" >&6
7620else
7621 cat >conftest.$ac_ext <<_ACEOF
7622/* confdefs.h. */
7623_ACEOF
7624cat confdefs.h >>conftest.$ac_ext
7625cat >>conftest.$ac_ext <<_ACEOF
7626/* end confdefs.h. */
7627#include <sys/types.h>
7628#include <sys/time.h>
7629#include <time.h>
7630
7631int
7632main ()
7633{
7634if ((struct tm *) 0)
7635return 0;
7636 ;
7637 return 0;
7638}
7639_ACEOF
7640rm -f conftest.$ac_objext
7641if { (ac_try="$ac_compile"
7642case "(($ac_try" in
7643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7644 *) ac_try_echo=$ac_try;;
7645esac
7646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7647 (eval "$ac_compile") 2>conftest.er1
7648 ac_status=$?
7649 grep -v '^ *+' conftest.er1 >conftest.err
7650 rm -f conftest.er1
7651 cat conftest.err >&5
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); } && {
7654 test -z "$ac_cxx_werror_flag" ||
7655 test ! -s conftest.err
7656 } && test -s conftest.$ac_objext; then
7657 ac_cv_header_time=yes
7658else
7659 echo "$as_me: failed program was:" >&5
7660sed 's/^/| /' conftest.$ac_ext >&5
7661
7662 ac_cv_header_time=no
7663fi
7664
7665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7666fi
7667{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7668echo "${ECHO_T}$ac_cv_header_time" >&6; }
7669if test $ac_cv_header_time = yes; then
7670
7671cat >>confdefs.h <<\_ACEOF
7672#define TIME_WITH_SYS_TIME 1
7673_ACEOF
7674
7675fi
7676
7677
7678{ echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5
7679echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; }
7680if test "${rxvt_cv_header_sysioctl+set}" = set; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7682else
7683 cat >conftest.$ac_ext <<_ACEOF
7684/* confdefs.h. */
7685_ACEOF
7686cat confdefs.h >>conftest.$ac_ext
7687cat >>conftest.$ac_ext <<_ACEOF
7688/* end confdefs.h. */
7689#include <stdio.h>
7690#include <sys/ioctl.h>
7691#ifdef HAVE_TERMIOS_H
7692#include <termios.h>
7693#endif
7694int
7695main ()
7696{
7697int a = ECHO;
7698 ;
7699 return 0;
7700}
7701_ACEOF
7702rm -f conftest.$ac_objext
7703if { (ac_try="$ac_compile"
7704case "(($ac_try" in
7705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7706 *) ac_try_echo=$ac_try;;
7707esac
7708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7709 (eval "$ac_compile") 2>conftest.er1
7710 ac_status=$?
7711 grep -v '^ *+' conftest.er1 >conftest.err
7712 rm -f conftest.er1
7713 cat conftest.err >&5
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); } && {
7716 test -z "$ac_cxx_werror_flag" ||
7717 test ! -s conftest.err
7718 } && test -s conftest.$ac_objext; then
7719 rxvt_cv_header_sysioctl=yes
7720else
7721 echo "$as_me: failed program was:" >&5
7722sed 's/^/| /' conftest.$ac_ext >&5
7723
7724 rxvt_cv_header_sysioctl=no
7725fi
7726
7727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7728fi
7729{ echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7730echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6; }
7731
7732{ echo "$as_me:$LINENO: checking for XPointer" >&5 7824{ echo "$as_me:$LINENO: checking for XPointer" >&5
7733echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } 7825echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; }
7734if test "${rxvt_cv_xpointer+set}" = set; then 7826if test "${rxvt_cv_xpointer+set}" = set; then
7735 echo $ECHO_N "(cached) $ECHO_C" >&6 7827 echo $ECHO_N "(cached) $ECHO_C" >&6
7736else 7828else
7786 7878
7787fi 7879fi
7788 7880
7789{ echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5 7881{ echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5
7790echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6; } 7882echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6; }
7791if test "${rxvt_xlib_illegal_access+set}" = set; then 7883if test "${rxvt_cv_xlib_illegal_access+set}" = set; then
7792 echo $ECHO_N "(cached) $ECHO_C" >&6 7884 echo $ECHO_N "(cached) $ECHO_C" >&6
7793else 7885else
7794 cat >conftest.$ac_ext <<_ACEOF 7886 cat >conftest.$ac_ext <<_ACEOF
7795/* confdefs.h. */ 7887/* confdefs.h. */
7796_ACEOF 7888_ACEOF
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); } && { 7920 (exit $ac_status); } && {
7829 test -z "$ac_cxx_werror_flag" || 7921 test -z "$ac_cxx_werror_flag" ||
7830 test ! -s conftest.err 7922 test ! -s conftest.err
7831 } && test -s conftest.$ac_objext; then 7923 } && test -s conftest.$ac_objext; then
7832 rxvt_xlib_illegal_access=yes 7924 rxvt_cv_xlib_illegal_access=yes
7833else 7925else
7834 echo "$as_me: failed program was:" >&5 7926 echo "$as_me: failed program was:" >&5
7835sed 's/^/| /' conftest.$ac_ext >&5 7927sed 's/^/| /' conftest.$ac_ext >&5
7836 7928
7837 rxvt_xlib_illegal_access=no 7929 rxvt_cv_xlib_illegal_access=no
7838 7930
7839fi 7931fi
7840 7932
7841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7842fi 7934fi
7843{ echo "$as_me:$LINENO: result: $rxvt_xlib_illegal_access" >&5 7935{ echo "$as_me:$LINENO: result: $rxvt_cv_xlib_illegal_access" >&5
7844echo "${ECHO_T}$rxvt_xlib_illegal_access" >&6; } 7936echo "${ECHO_T}$rxvt_cv_xlib_illegal_access" >&6; }
7845if test x$rxvt_xlib_illegal_access = xyes; then 7937if test x$rxvt_cv_xlib_illegal_access = xyes; then
7846 7938
7847cat >>confdefs.h <<\_ACEOF 7939cat >>confdefs.h <<\_ACEOF
7848#define XLIB_ILLEGAL_ACCESS 1 7940#define XLIB_ILLEGAL_ACCESS 1
7849_ACEOF 7941_ACEOF
7850 7942
7851fi 7943fi
7852
7853{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7854echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7855if test "${ac_cv_c_const+set}" = set; then
7856 echo $ECHO_N "(cached) $ECHO_C" >&6
7857else
7858 cat >conftest.$ac_ext <<_ACEOF
7859/* confdefs.h. */
7860_ACEOF
7861cat confdefs.h >>conftest.$ac_ext
7862cat >>conftest.$ac_ext <<_ACEOF
7863/* end confdefs.h. */
7864
7865int
7866main ()
7867{
7868/* FIXME: Include the comments suggested by Paul. */
7869#ifndef __cplusplus
7870 /* Ultrix mips cc rejects this. */
7871 typedef int charset[2];
7872 const charset cs;
7873 /* SunOS 4.1.1 cc rejects this. */
7874 char const *const *pcpcc;
7875 char **ppc;
7876 /* NEC SVR4.0.2 mips cc rejects this. */
7877 struct point {int x, y;};
7878 static struct point const zero = {0,0};
7879 /* AIX XL C 1.02.0.0 rejects this.
7880 It does not let you subtract one const X* pointer from another in
7881 an arm of an if-expression whose if-part is not a constant
7882 expression */
7883 const char *g = "string";
7884 pcpcc = &g + (g ? g-g : 0);
7885 /* HPUX 7.0 cc rejects these. */
7886 ++pcpcc;
7887 ppc = (char**) pcpcc;
7888 pcpcc = (char const *const *) ppc;
7889 { /* SCO 3.2v4 cc rejects this. */
7890 char *t;
7891 char const *s = 0 ? (char *) 0 : (char const *) 0;
7892
7893 *t++ = 0;
7894 if (s) return 0;
7895 }
7896 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7897 int x[] = {25, 17};
7898 const int *foo = &x[0];
7899 ++foo;
7900 }
7901 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7902 typedef const int *iptr;
7903 iptr p = 0;
7904 ++p;
7905 }
7906 { /* AIX XL C 1.02.0.0 rejects this saying
7907 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7908 struct s { int j; const int *ap[3]; };
7909 struct s *b; b->j = 5;
7910 }
7911 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7912 const int foo = 10;
7913 if (!foo) return 0;
7914 }
7915 return !cs[0] && !zero.x;
7916#endif
7917
7918 ;
7919 return 0;
7920}
7921_ACEOF
7922rm -f conftest.$ac_objext
7923if { (ac_try="$ac_compile"
7924case "(($ac_try" in
7925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7926 *) ac_try_echo=$ac_try;;
7927esac
7928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7929 (eval "$ac_compile") 2>conftest.er1
7930 ac_status=$?
7931 grep -v '^ *+' conftest.er1 >conftest.err
7932 rm -f conftest.er1
7933 cat conftest.err >&5
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); } && {
7936 test -z "$ac_cxx_werror_flag" ||
7937 test ! -s conftest.err
7938 } && test -s conftest.$ac_objext; then
7939 ac_cv_c_const=yes
7940else
7941 echo "$as_me: failed program was:" >&5
7942sed 's/^/| /' conftest.$ac_ext >&5
7943
7944 ac_cv_c_const=no
7945fi
7946
7947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7948fi
7949{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7950echo "${ECHO_T}$ac_cv_c_const" >&6; }
7951if test $ac_cv_c_const = no; then
7952
7953cat >>confdefs.h <<\_ACEOF
7954#define const
7955_ACEOF
7956
7957fi
7958
7959{ echo "$as_me:$LINENO: checking for inline" >&5
7960echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
7961if test "${ac_cv_c_inline+set}" = set; then
7962 echo $ECHO_N "(cached) $ECHO_C" >&6
7963else
7964 ac_cv_c_inline=no
7965for ac_kw in inline __inline__ __inline; do
7966 cat >conftest.$ac_ext <<_ACEOF
7967/* confdefs.h. */
7968_ACEOF
7969cat confdefs.h >>conftest.$ac_ext
7970cat >>conftest.$ac_ext <<_ACEOF
7971/* end confdefs.h. */
7972#ifndef __cplusplus
7973typedef int foo_t;
7974static $ac_kw foo_t static_foo () {return 0; }
7975$ac_kw foo_t foo () {return 0; }
7976#endif
7977
7978_ACEOF
7979rm -f conftest.$ac_objext
7980if { (ac_try="$ac_compile"
7981case "(($ac_try" in
7982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7983 *) ac_try_echo=$ac_try;;
7984esac
7985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7986 (eval "$ac_compile") 2>conftest.er1
7987 ac_status=$?
7988 grep -v '^ *+' conftest.er1 >conftest.err
7989 rm -f conftest.er1
7990 cat conftest.err >&5
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); } && {
7993 test -z "$ac_cxx_werror_flag" ||
7994 test ! -s conftest.err
7995 } && test -s conftest.$ac_objext; then
7996 ac_cv_c_inline=$ac_kw
7997else
7998 echo "$as_me: failed program was:" >&5
7999sed 's/^/| /' conftest.$ac_ext >&5
8000
8001
8002fi
8003
8004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8005 test "$ac_cv_c_inline" != no && break
8006done
8007
8008fi
8009{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8010echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8011
8012
8013case $ac_cv_c_inline in
8014 inline | yes) ;;
8015 *)
8016 case $ac_cv_c_inline in
8017 no) ac_val=;;
8018 *) ac_val=$ac_cv_c_inline;;
8019 esac
8020 cat >>confdefs.h <<_ACEOF
8021#ifndef __cplusplus
8022#define inline $ac_val
8023#endif
8024_ACEOF
8025 ;;
8026esac
8027
8028
8029 7944
8030{ echo "$as_me:$LINENO: checking for mode_t" >&5 7945{ echo "$as_me:$LINENO: checking for mode_t" >&5
8031echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } 7946echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
8032if test "${ac_cv_type_mode_t+set}" = set; then 7947if test "${ac_cv_type_mode_t+set}" = set; then
8033 echo $ECHO_N "(cached) $ECHO_C" >&6 7948 echo $ECHO_N "(cached) $ECHO_C" >&6
8190_ACEOF 8105_ACEOF
8191 8106
8192fi 8107fi
8193 8108
8194 8109
8195{ echo "$as_me:$LINENO: checking for short" >&5 8110 { echo "$as_me:$LINENO: checking for int16_t" >&5
8196echo $ECHO_N "checking for short... $ECHO_C" >&6; } 8111echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
8197if test "${ac_cv_type_short+set}" = set; then 8112if test "${ac_cv_c_int16_t+set}" = set; then
8198 echo $ECHO_N "(cached) $ECHO_C" >&6 8113 echo $ECHO_N "(cached) $ECHO_C" >&6
8199else 8114else
8115 ac_cv_c_int16_t=no
8116 for ac_type in 'int16_t' 'int' 'long int' \
8117 'long long int' 'short int' 'signed char'; do
8200 cat >conftest.$ac_ext <<_ACEOF 8118 cat >conftest.$ac_ext <<_ACEOF
8201/* confdefs.h. */ 8119/* confdefs.h. */
8202_ACEOF 8120_ACEOF
8203cat confdefs.h >>conftest.$ac_ext 8121cat confdefs.h >>conftest.$ac_ext
8204cat >>conftest.$ac_ext <<_ACEOF 8122cat >>conftest.$ac_ext <<_ACEOF
8205/* end confdefs.h. */ 8123/* end confdefs.h. */
8206$ac_includes_default 8124$ac_includes_default
8207typedef short ac__type_new_;
8208int 8125int
8209main () 8126main ()
8210{ 8127{
8211if ((ac__type_new_ *) 0) 8128static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
8212 return 0; 8129test_array [0] = 0
8213if (sizeof (ac__type_new_)) 8130
8214 return 0;
8215 ; 8131 ;
8216 return 0; 8132 return 0;
8217} 8133}
8218_ACEOF 8134_ACEOF
8219rm -f conftest.$ac_objext 8135rm -f conftest.$ac_objext
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); } && { 8148 (exit $ac_status); } && {
8233 test -z "$ac_cxx_werror_flag" || 8149 test -z "$ac_cxx_werror_flag" ||
8234 test ! -s conftest.err 8150 test ! -s conftest.err
8235 } && test -s conftest.$ac_objext; then 8151 } && test -s conftest.$ac_objext; then
8236 ac_cv_type_short=yes
8237else
8238 echo "$as_me: failed program was:" >&5
8239sed 's/^/| /' conftest.$ac_ext >&5
8240
8241 ac_cv_type_short=no
8242fi
8243
8244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8245fi
8246{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8247echo "${ECHO_T}$ac_cv_type_short" >&6; }
8248
8249# The cast to long int works around a bug in the HP C Compiler
8250# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8251# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8252# This bug is HP SR number 8606223364.
8253{ echo "$as_me:$LINENO: checking size of short" >&5
8254echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8255if test "${ac_cv_sizeof_short+set}" = set; then
8256 echo $ECHO_N "(cached) $ECHO_C" >&6
8257else
8258 if test "$cross_compiling" = yes; then
8259 # Depending upon the size, compute the lo and hi bounds.
8260cat >conftest.$ac_ext <<_ACEOF 8152 cat >conftest.$ac_ext <<_ACEOF
8261/* confdefs.h. */ 8153/* confdefs.h. */
8262_ACEOF 8154_ACEOF
8263cat confdefs.h >>conftest.$ac_ext 8155cat confdefs.h >>conftest.$ac_ext
8264cat >>conftest.$ac_ext <<_ACEOF 8156cat >>conftest.$ac_ext <<_ACEOF
8265/* end confdefs.h. */ 8157/* end confdefs.h. */
8266$ac_includes_default 8158$ac_includes_default
8267 typedef short ac__type_sizeof_;
8268int 8159int
8269main () 8160main ()
8270{ 8161{
8271static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 8162static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
8163 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
8272test_array [0] = 0 8164test_array [0] = 0
8273 8165
8274 ; 8166 ;
8275 return 0; 8167 return 0;
8276} 8168}
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); } && { 8183 (exit $ac_status); } && {
8292 test -z "$ac_cxx_werror_flag" || 8184 test -z "$ac_cxx_werror_flag" ||
8293 test ! -s conftest.err 8185 test ! -s conftest.err
8294 } && test -s conftest.$ac_objext; then 8186 } && test -s conftest.$ac_objext; then
8295 ac_lo=0 ac_mid=0 8187 :
8296 while :; do 8188else
8189 echo "$as_me: failed program was:" >&5
8190sed 's/^/| /' conftest.$ac_ext >&5
8191
8192 case $ac_type in
8193 int16_t) ac_cv_c_int16_t=yes ;;
8194 *) ac_cv_c_int16_t=$ac_type ;;
8195esac
8196
8197fi
8198
8199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8200else
8201 echo "$as_me: failed program was:" >&5
8202sed 's/^/| /' conftest.$ac_ext >&5
8203
8204
8205fi
8206
8207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8208 test "$ac_cv_c_int16_t" != no && break
8209 done
8210fi
8211{ echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
8212echo "${ECHO_T}$ac_cv_c_int16_t" >&6; }
8213 case $ac_cv_c_int16_t in #(
8214 no|yes) ;; #(
8215 *)
8216
8217cat >>confdefs.h <<_ACEOF
8218#define int16_t $ac_cv_c_int16_t
8219_ACEOF
8220;;
8221 esac
8222
8223
8224 { echo "$as_me:$LINENO: checking for uint16_t" >&5
8225echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
8226if test "${ac_cv_c_uint16_t+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8228else
8229 ac_cv_c_uint16_t=no
8230 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
8231 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
8297 cat >conftest.$ac_ext <<_ACEOF 8232 cat >conftest.$ac_ext <<_ACEOF
8298/* confdefs.h. */ 8233/* confdefs.h. */
8299_ACEOF 8234_ACEOF
8300cat confdefs.h >>conftest.$ac_ext 8235cat confdefs.h >>conftest.$ac_ext
8301cat >>conftest.$ac_ext <<_ACEOF 8236cat >>conftest.$ac_ext <<_ACEOF
8302/* end confdefs.h. */ 8237/* end confdefs.h. */
8303$ac_includes_default 8238$ac_includes_default
8304 typedef short ac__type_sizeof_;
8305int 8239int
8306main () 8240main ()
8307{ 8241{
8308static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 8242static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
8309test_array [0] = 0 8243test_array [0] = 0
8310 8244
8311 ; 8245 ;
8312 return 0; 8246 return 0;
8313} 8247}
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); } && { 8262 (exit $ac_status); } && {
8329 test -z "$ac_cxx_werror_flag" || 8263 test -z "$ac_cxx_werror_flag" ||
8330 test ! -s conftest.err 8264 test ! -s conftest.err
8331 } && test -s conftest.$ac_objext; then 8265 } && test -s conftest.$ac_objext; then
8332 ac_hi=$ac_mid; break 8266 case $ac_type in
8267 uint16_t) ac_cv_c_uint16_t=yes ;;
8268 *) ac_cv_c_uint16_t=$ac_type ;;
8269esac
8270
8333else 8271else
8334 echo "$as_me: failed program was:" >&5 8272 echo "$as_me: failed program was:" >&5
8335sed 's/^/| /' conftest.$ac_ext >&5 8273sed 's/^/| /' conftest.$ac_ext >&5
8336 8274
8337 ac_lo=`expr $ac_mid + 1` 8275
8338 if test $ac_lo -le $ac_mid; then
8339 ac_lo= ac_hi=
8340 break
8341 fi
8342 ac_mid=`expr 2 '*' $ac_mid + 1`
8343fi 8276fi
8344 8277
8345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8279 test "$ac_cv_c_uint16_t" != no && break
8346 done 8280 done
8347else 8281fi
8348 echo "$as_me: failed program was:" >&5 8282{ echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
8349sed 's/^/| /' conftest.$ac_ext >&5 8283echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
8284 case $ac_cv_c_uint16_t in #(
8285 no|yes) ;; #(
8286 *)
8350 8287
8288
8289cat >>confdefs.h <<_ACEOF
8290#define uint16_t $ac_cv_c_uint16_t
8291_ACEOF
8292;;
8293 esac
8294
8295
8296 { echo "$as_me:$LINENO: checking for int32_t" >&5
8297echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
8298if test "${ac_cv_c_int32_t+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8300else
8301 ac_cv_c_int32_t=no
8302 for ac_type in 'int32_t' 'int' 'long int' \
8303 'long long int' 'short int' 'signed char'; do
8351 cat >conftest.$ac_ext <<_ACEOF 8304 cat >conftest.$ac_ext <<_ACEOF
8352/* confdefs.h. */ 8305/* confdefs.h. */
8353_ACEOF 8306_ACEOF
8354cat confdefs.h >>conftest.$ac_ext 8307cat confdefs.h >>conftest.$ac_ext
8355cat >>conftest.$ac_ext <<_ACEOF 8308cat >>conftest.$ac_ext <<_ACEOF
8356/* end confdefs.h. */ 8309/* end confdefs.h. */
8357$ac_includes_default 8310$ac_includes_default
8358 typedef short ac__type_sizeof_;
8359int 8311int
8360main () 8312main ()
8361{ 8313{
8362static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 8314static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
8363test_array [0] = 0 8315test_array [0] = 0
8364 8316
8365 ; 8317 ;
8366 return 0; 8318 return 0;
8367} 8319}
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); } && { 8334 (exit $ac_status); } && {
8383 test -z "$ac_cxx_werror_flag" || 8335 test -z "$ac_cxx_werror_flag" ||
8384 test ! -s conftest.err 8336 test ! -s conftest.err
8385 } && test -s conftest.$ac_objext; then 8337 } && test -s conftest.$ac_objext; then
8386 ac_hi=-1 ac_mid=-1
8387 while :; do
8388 cat >conftest.$ac_ext <<_ACEOF 8338 cat >conftest.$ac_ext <<_ACEOF
8389/* confdefs.h. */ 8339/* confdefs.h. */
8390_ACEOF 8340_ACEOF
8391cat confdefs.h >>conftest.$ac_ext 8341cat confdefs.h >>conftest.$ac_ext
8392cat >>conftest.$ac_ext <<_ACEOF 8342cat >>conftest.$ac_ext <<_ACEOF
8393/* end confdefs.h. */ 8343/* end confdefs.h. */
8394$ac_includes_default 8344$ac_includes_default
8395 typedef short ac__type_sizeof_;
8396int 8345int
8397main () 8346main ()
8398{ 8347{
8399static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 8348static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
8349 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
8400test_array [0] = 0 8350test_array [0] = 0
8401 8351
8402 ; 8352 ;
8403 return 0; 8353 return 0;
8404} 8354}
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); } && { 8369 (exit $ac_status); } && {
8420 test -z "$ac_cxx_werror_flag" || 8370 test -z "$ac_cxx_werror_flag" ||
8421 test ! -s conftest.err 8371 test ! -s conftest.err
8422 } && test -s conftest.$ac_objext; then 8372 } && test -s conftest.$ac_objext; then
8423 ac_lo=$ac_mid; break 8373 :
8424else 8374else
8425 echo "$as_me: failed program was:" >&5 8375 echo "$as_me: failed program was:" >&5
8426sed 's/^/| /' conftest.$ac_ext >&5 8376sed 's/^/| /' conftest.$ac_ext >&5
8427 8377
8428 ac_hi=`expr '(' $ac_mid ')' - 1` 8378 case $ac_type in
8429 if test $ac_mid -le $ac_hi; then 8379 int32_t) ac_cv_c_int32_t=yes ;;
8430 ac_lo= ac_hi= 8380 *) ac_cv_c_int32_t=$ac_type ;;
8431 break 8381esac
8432 fi 8382
8433 ac_mid=`expr 2 '*' $ac_mid`
8434fi 8383fi
8435 8384
8436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8437 done
8438else 8386else
8439 echo "$as_me: failed program was:" >&5 8387 echo "$as_me: failed program was:" >&5
8440sed 's/^/| /' conftest.$ac_ext >&5 8388sed 's/^/| /' conftest.$ac_ext >&5
8441 8389
8442 ac_lo= ac_hi= 8390
8443fi 8391fi
8444 8392
8445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8394 test "$ac_cv_c_int32_t" != no && break
8395 done
8446fi 8396fi
8397{ echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
8398echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
8399 case $ac_cv_c_int32_t in #(
8400 no|yes) ;; #(
8401 *)
8447 8402
8448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8403cat >>confdefs.h <<_ACEOF
8449# Binary search between lo and hi bounds. 8404#define int32_t $ac_cv_c_int32_t
8450while test "x$ac_lo" != "x$ac_hi"; do 8405_ACEOF
8451 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 8406;;
8407 esac
8408
8409
8410 { echo "$as_me:$LINENO: checking for uint32_t" >&5
8411echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
8412if test "${ac_cv_c_uint32_t+set}" = set; then
8413 echo $ECHO_N "(cached) $ECHO_C" >&6
8414else
8415 ac_cv_c_uint32_t=no
8416 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
8417 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
8452 cat >conftest.$ac_ext <<_ACEOF 8418 cat >conftest.$ac_ext <<_ACEOF
8453/* confdefs.h. */ 8419/* confdefs.h. */
8454_ACEOF 8420_ACEOF
8455cat confdefs.h >>conftest.$ac_ext 8421cat confdefs.h >>conftest.$ac_ext
8456cat >>conftest.$ac_ext <<_ACEOF 8422cat >>conftest.$ac_ext <<_ACEOF
8457/* end confdefs.h. */ 8423/* end confdefs.h. */
8458$ac_includes_default 8424$ac_includes_default
8459 typedef short ac__type_sizeof_;
8460int 8425int
8461main () 8426main ()
8462{ 8427{
8463static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 8428static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
8464test_array [0] = 0 8429test_array [0] = 0
8465 8430
8466 ; 8431 ;
8467 return 0; 8432 return 0;
8468} 8433}
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); } && { 8448 (exit $ac_status); } && {
8484 test -z "$ac_cxx_werror_flag" || 8449 test -z "$ac_cxx_werror_flag" ||
8485 test ! -s conftest.err 8450 test ! -s conftest.err
8486 } && test -s conftest.$ac_objext; then 8451 } && test -s conftest.$ac_objext; then
8487 ac_hi=$ac_mid 8452 case $ac_type in
8453 uint32_t) ac_cv_c_uint32_t=yes ;;
8454 *) ac_cv_c_uint32_t=$ac_type ;;
8455esac
8456
8488else 8457else
8489 echo "$as_me: failed program was:" >&5 8458 echo "$as_me: failed program was:" >&5
8490sed 's/^/| /' conftest.$ac_ext >&5 8459sed 's/^/| /' conftest.$ac_ext >&5
8491 8460
8492 ac_lo=`expr '(' $ac_mid ')' + 1` 8461
8493fi 8462fi
8494 8463
8495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8496done 8465 test "$ac_cv_c_uint32_t" != no && break
8497case $ac_lo in 8466 done
8498?*) ac_cv_sizeof_short=$ac_lo;;
8499'') if test "$ac_cv_type_short" = yes; then
8500 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8501See \`config.log' for more details." >&5
8502echo "$as_me: error: cannot compute sizeof (short)
8503See \`config.log' for more details." >&2;}
8504 { (exit 77); exit 77; }; }
8505 else
8506 ac_cv_sizeof_short=0
8507 fi ;;
8508esac
8509else
8510 cat >conftest.$ac_ext <<_ACEOF
8511/* confdefs.h. */
8512_ACEOF
8513cat confdefs.h >>conftest.$ac_ext
8514cat >>conftest.$ac_ext <<_ACEOF
8515/* end confdefs.h. */
8516$ac_includes_default
8517 typedef short ac__type_sizeof_;
8518static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8519static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8520#include <stdio.h>
8521#include <stdlib.h>
8522int
8523main ()
8524{
8525
8526 FILE *f = fopen ("conftest.val", "w");
8527 if (! f)
8528 return 1;
8529 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8530 {
8531 long int i = longval ();
8532 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8533 return 1;
8534 fprintf (f, "%ld\n", i);
8535 }
8536 else
8537 {
8538 unsigned long int i = ulongval ();
8539 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8540 return 1;
8541 fprintf (f, "%lu\n", i);
8542 }
8543 return ferror (f) || fclose (f) != 0;
8544
8545 ;
8546 return 0;
8547}
8548_ACEOF
8549rm -f conftest$ac_exeext
8550if { (ac_try="$ac_link"
8551case "(($ac_try" in
8552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8553 *) ac_try_echo=$ac_try;;
8554esac
8555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8556 (eval "$ac_link") 2>&5
8557 ac_status=$?
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8560 { (case "(($ac_try" in
8561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8562 *) ac_try_echo=$ac_try;;
8563esac
8564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8565 (eval "$ac_try") 2>&5
8566 ac_status=$?
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); }; }; then
8569 ac_cv_sizeof_short=`cat conftest.val`
8570else
8571 echo "$as_me: program exited with status $ac_status" >&5
8572echo "$as_me: failed program was:" >&5
8573sed 's/^/| /' conftest.$ac_ext >&5
8574
8575( exit $ac_status )
8576if test "$ac_cv_type_short" = yes; then
8577 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8578See \`config.log' for more details." >&5
8579echo "$as_me: error: cannot compute sizeof (short)
8580See \`config.log' for more details." >&2;}
8581 { (exit 77); exit 77; }; }
8582 else
8583 ac_cv_sizeof_short=0
8584 fi
8585fi 8467fi
8586rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8587fi
8588rm -f conftest.val
8589fi
8590{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 8468{ echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
8591echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } 8469echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
8470 case $ac_cv_c_uint32_t in #(
8471 no|yes) ;; #(
8472 *)
8592 8473
8474cat >>confdefs.h <<\_ACEOF
8475#define _UINT32_T 1
8476_ACEOF
8593 8477
8594 8478
8595cat >>confdefs.h <<_ACEOF 8479cat >>confdefs.h <<_ACEOF
8596#define SIZEOF_SHORT $ac_cv_sizeof_short 8480#define uint32_t $ac_cv_c_uint32_t
8597_ACEOF 8481_ACEOF
8598 8482;;
8599
8600{ echo "$as_me:$LINENO: checking for int" >&5
8601echo $ECHO_N "checking for int... $ECHO_C" >&6; }
8602if test "${ac_cv_type_int+set}" = set; then
8603 echo $ECHO_N "(cached) $ECHO_C" >&6
8604else
8605 cat >conftest.$ac_ext <<_ACEOF
8606/* confdefs.h. */
8607_ACEOF
8608cat confdefs.h >>conftest.$ac_ext
8609cat >>conftest.$ac_ext <<_ACEOF
8610/* end confdefs.h. */
8611$ac_includes_default
8612typedef int ac__type_new_;
8613int
8614main ()
8615{
8616if ((ac__type_new_ *) 0)
8617 return 0;
8618if (sizeof (ac__type_new_))
8619 return 0;
8620 ;
8621 return 0;
8622}
8623_ACEOF
8624rm -f conftest.$ac_objext
8625if { (ac_try="$ac_compile"
8626case "(($ac_try" in
8627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628 *) ac_try_echo=$ac_try;;
8629esac 8483 esac
8630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8631 (eval "$ac_compile") 2>conftest.er1
8632 ac_status=$?
8633 grep -v '^ *+' conftest.er1 >conftest.err
8634 rm -f conftest.er1
8635 cat conftest.err >&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); } && {
8638 test -z "$ac_cxx_werror_flag" ||
8639 test ! -s conftest.err
8640 } && test -s conftest.$ac_objext; then
8641 ac_cv_type_int=yes
8642else
8643 echo "$as_me: failed program was:" >&5
8644sed 's/^/| /' conftest.$ac_ext >&5
8645
8646 ac_cv_type_int=no
8647fi
8648
8649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8650fi
8651{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8652echo "${ECHO_T}$ac_cv_type_int" >&6; }
8653
8654# The cast to long int works around a bug in the HP C Compiler
8655# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8656# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8657# This bug is HP SR number 8606223364.
8658{ echo "$as_me:$LINENO: checking size of int" >&5
8659echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
8660if test "${ac_cv_sizeof_int+set}" = set; then
8661 echo $ECHO_N "(cached) $ECHO_C" >&6
8662else
8663 if test "$cross_compiling" = yes; then
8664 # Depending upon the size, compute the lo and hi bounds.
8665cat >conftest.$ac_ext <<_ACEOF
8666/* confdefs.h. */
8667_ACEOF
8668cat confdefs.h >>conftest.$ac_ext
8669cat >>conftest.$ac_ext <<_ACEOF
8670/* end confdefs.h. */
8671$ac_includes_default
8672 typedef int ac__type_sizeof_;
8673int
8674main ()
8675{
8676static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8677test_array [0] = 0
8678
8679 ;
8680 return 0;
8681}
8682_ACEOF
8683rm -f conftest.$ac_objext
8684if { (ac_try="$ac_compile"
8685case "(($ac_try" in
8686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8687 *) ac_try_echo=$ac_try;;
8688esac
8689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8690 (eval "$ac_compile") 2>conftest.er1
8691 ac_status=$?
8692 grep -v '^ *+' conftest.er1 >conftest.err
8693 rm -f conftest.er1
8694 cat conftest.err >&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); } && {
8697 test -z "$ac_cxx_werror_flag" ||
8698 test ! -s conftest.err
8699 } && test -s conftest.$ac_objext; then
8700 ac_lo=0 ac_mid=0
8701 while :; do
8702 cat >conftest.$ac_ext <<_ACEOF
8703/* confdefs.h. */
8704_ACEOF
8705cat confdefs.h >>conftest.$ac_ext
8706cat >>conftest.$ac_ext <<_ACEOF
8707/* end confdefs.h. */
8708$ac_includes_default
8709 typedef int ac__type_sizeof_;
8710int
8711main ()
8712{
8713static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8714test_array [0] = 0
8715
8716 ;
8717 return 0;
8718}
8719_ACEOF
8720rm -f conftest.$ac_objext
8721if { (ac_try="$ac_compile"
8722case "(($ac_try" in
8723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8724 *) ac_try_echo=$ac_try;;
8725esac
8726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8727 (eval "$ac_compile") 2>conftest.er1
8728 ac_status=$?
8729 grep -v '^ *+' conftest.er1 >conftest.err
8730 rm -f conftest.er1
8731 cat conftest.err >&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); } && {
8734 test -z "$ac_cxx_werror_flag" ||
8735 test ! -s conftest.err
8736 } && test -s conftest.$ac_objext; then
8737 ac_hi=$ac_mid; break
8738else
8739 echo "$as_me: failed program was:" >&5
8740sed 's/^/| /' conftest.$ac_ext >&5
8741
8742 ac_lo=`expr $ac_mid + 1`
8743 if test $ac_lo -le $ac_mid; then
8744 ac_lo= ac_hi=
8745 break
8746 fi
8747 ac_mid=`expr 2 '*' $ac_mid + 1`
8748fi
8749
8750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8751 done
8752else
8753 echo "$as_me: failed program was:" >&5
8754sed 's/^/| /' conftest.$ac_ext >&5
8755
8756 cat >conftest.$ac_ext <<_ACEOF
8757/* confdefs.h. */
8758_ACEOF
8759cat confdefs.h >>conftest.$ac_ext
8760cat >>conftest.$ac_ext <<_ACEOF
8761/* end confdefs.h. */
8762$ac_includes_default
8763 typedef int ac__type_sizeof_;
8764int
8765main ()
8766{
8767static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8768test_array [0] = 0
8769
8770 ;
8771 return 0;
8772}
8773_ACEOF
8774rm -f conftest.$ac_objext
8775if { (ac_try="$ac_compile"
8776case "(($ac_try" in
8777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8778 *) ac_try_echo=$ac_try;;
8779esac
8780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8781 (eval "$ac_compile") 2>conftest.er1
8782 ac_status=$?
8783 grep -v '^ *+' conftest.er1 >conftest.err
8784 rm -f conftest.er1
8785 cat conftest.err >&5
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); } && {
8788 test -z "$ac_cxx_werror_flag" ||
8789 test ! -s conftest.err
8790 } && test -s conftest.$ac_objext; then
8791 ac_hi=-1 ac_mid=-1
8792 while :; do
8793 cat >conftest.$ac_ext <<_ACEOF
8794/* confdefs.h. */
8795_ACEOF
8796cat confdefs.h >>conftest.$ac_ext
8797cat >>conftest.$ac_ext <<_ACEOF
8798/* end confdefs.h. */
8799$ac_includes_default
8800 typedef int ac__type_sizeof_;
8801int
8802main ()
8803{
8804static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8805test_array [0] = 0
8806
8807 ;
8808 return 0;
8809}
8810_ACEOF
8811rm -f conftest.$ac_objext
8812if { (ac_try="$ac_compile"
8813case "(($ac_try" in
8814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8815 *) ac_try_echo=$ac_try;;
8816esac
8817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8818 (eval "$ac_compile") 2>conftest.er1
8819 ac_status=$?
8820 grep -v '^ *+' conftest.er1 >conftest.err
8821 rm -f conftest.er1
8822 cat conftest.err >&5
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); } && {
8825 test -z "$ac_cxx_werror_flag" ||
8826 test ! -s conftest.err
8827 } && test -s conftest.$ac_objext; then
8828 ac_lo=$ac_mid; break
8829else
8830 echo "$as_me: failed program was:" >&5
8831sed 's/^/| /' conftest.$ac_ext >&5
8832
8833 ac_hi=`expr '(' $ac_mid ')' - 1`
8834 if test $ac_mid -le $ac_hi; then
8835 ac_lo= ac_hi=
8836 break
8837 fi
8838 ac_mid=`expr 2 '*' $ac_mid`
8839fi
8840
8841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8842 done
8843else
8844 echo "$as_me: failed program was:" >&5
8845sed 's/^/| /' conftest.$ac_ext >&5
8846
8847 ac_lo= ac_hi=
8848fi
8849
8850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8851fi
8852
8853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8854# Binary search between lo and hi bounds.
8855while test "x$ac_lo" != "x$ac_hi"; do
8856 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8857 cat >conftest.$ac_ext <<_ACEOF
8858/* confdefs.h. */
8859_ACEOF
8860cat confdefs.h >>conftest.$ac_ext
8861cat >>conftest.$ac_ext <<_ACEOF
8862/* end confdefs.h. */
8863$ac_includes_default
8864 typedef int ac__type_sizeof_;
8865int
8866main ()
8867{
8868static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8869test_array [0] = 0
8870
8871 ;
8872 return 0;
8873}
8874_ACEOF
8875rm -f conftest.$ac_objext
8876if { (ac_try="$ac_compile"
8877case "(($ac_try" in
8878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8879 *) ac_try_echo=$ac_try;;
8880esac
8881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8882 (eval "$ac_compile") 2>conftest.er1
8883 ac_status=$?
8884 grep -v '^ *+' conftest.er1 >conftest.err
8885 rm -f conftest.er1
8886 cat conftest.err >&5
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); } && {
8889 test -z "$ac_cxx_werror_flag" ||
8890 test ! -s conftest.err
8891 } && test -s conftest.$ac_objext; then
8892 ac_hi=$ac_mid
8893else
8894 echo "$as_me: failed program was:" >&5
8895sed 's/^/| /' conftest.$ac_ext >&5
8896
8897 ac_lo=`expr '(' $ac_mid ')' + 1`
8898fi
8899
8900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8901done
8902case $ac_lo in
8903?*) ac_cv_sizeof_int=$ac_lo;;
8904'') if test "$ac_cv_type_int" = yes; then
8905 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8906See \`config.log' for more details." >&5
8907echo "$as_me: error: cannot compute sizeof (int)
8908See \`config.log' for more details." >&2;}
8909 { (exit 77); exit 77; }; }
8910 else
8911 ac_cv_sizeof_int=0
8912 fi ;;
8913esac
8914else
8915 cat >conftest.$ac_ext <<_ACEOF
8916/* confdefs.h. */
8917_ACEOF
8918cat confdefs.h >>conftest.$ac_ext
8919cat >>conftest.$ac_ext <<_ACEOF
8920/* end confdefs.h. */
8921$ac_includes_default
8922 typedef int ac__type_sizeof_;
8923static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8924static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8925#include <stdio.h>
8926#include <stdlib.h>
8927int
8928main ()
8929{
8930
8931 FILE *f = fopen ("conftest.val", "w");
8932 if (! f)
8933 return 1;
8934 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8935 {
8936 long int i = longval ();
8937 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8938 return 1;
8939 fprintf (f, "%ld\n", i);
8940 }
8941 else
8942 {
8943 unsigned long int i = ulongval ();
8944 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8945 return 1;
8946 fprintf (f, "%lu\n", i);
8947 }
8948 return ferror (f) || fclose (f) != 0;
8949
8950 ;
8951 return 0;
8952}
8953_ACEOF
8954rm -f conftest$ac_exeext
8955if { (ac_try="$ac_link"
8956case "(($ac_try" in
8957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8958 *) ac_try_echo=$ac_try;;
8959esac
8960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8961 (eval "$ac_link") 2>&5
8962 ac_status=$?
8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8965 { (case "(($ac_try" in
8966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8967 *) ac_try_echo=$ac_try;;
8968esac
8969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8970 (eval "$ac_try") 2>&5
8971 ac_status=$?
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); }; }; then
8974 ac_cv_sizeof_int=`cat conftest.val`
8975else
8976 echo "$as_me: program exited with status $ac_status" >&5
8977echo "$as_me: failed program was:" >&5
8978sed 's/^/| /' conftest.$ac_ext >&5
8979
8980( exit $ac_status )
8981if test "$ac_cv_type_int" = yes; then
8982 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8983See \`config.log' for more details." >&5
8984echo "$as_me: error: cannot compute sizeof (int)
8985See \`config.log' for more details." >&2;}
8986 { (exit 77); exit 77; }; }
8987 else
8988 ac_cv_sizeof_int=0
8989 fi
8990fi
8991rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8992fi
8993rm -f conftest.val
8994fi
8995{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8996echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
8997
8998
8999
9000cat >>confdefs.h <<_ACEOF
9001#define SIZEOF_INT $ac_cv_sizeof_int
9002_ACEOF
9003
9004
9005{ echo "$as_me:$LINENO: checking for long long" >&5
9006echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
9007if test "${ac_cv_type_long_long+set}" = set; then
9008 echo $ECHO_N "(cached) $ECHO_C" >&6
9009else
9010 cat >conftest.$ac_ext <<_ACEOF
9011/* confdefs.h. */
9012_ACEOF
9013cat confdefs.h >>conftest.$ac_ext
9014cat >>conftest.$ac_ext <<_ACEOF
9015/* end confdefs.h. */
9016$ac_includes_default
9017typedef long long ac__type_new_;
9018int
9019main ()
9020{
9021if ((ac__type_new_ *) 0)
9022 return 0;
9023if (sizeof (ac__type_new_))
9024 return 0;
9025 ;
9026 return 0;
9027}
9028_ACEOF
9029rm -f conftest.$ac_objext
9030if { (ac_try="$ac_compile"
9031case "(($ac_try" in
9032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9033 *) ac_try_echo=$ac_try;;
9034esac
9035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9036 (eval "$ac_compile") 2>conftest.er1
9037 ac_status=$?
9038 grep -v '^ *+' conftest.er1 >conftest.err
9039 rm -f conftest.er1
9040 cat conftest.err >&5
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); } && {
9043 test -z "$ac_cxx_werror_flag" ||
9044 test ! -s conftest.err
9045 } && test -s conftest.$ac_objext; then
9046 ac_cv_type_long_long=yes
9047else
9048 echo "$as_me: failed program was:" >&5
9049sed 's/^/| /' conftest.$ac_ext >&5
9050
9051 ac_cv_type_long_long=no
9052fi
9053
9054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9055fi
9056{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9057echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
9058
9059# The cast to long int works around a bug in the HP C Compiler
9060# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9061# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9062# This bug is HP SR number 8606223364.
9063{ echo "$as_me:$LINENO: checking size of long long" >&5
9064echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
9065if test "${ac_cv_sizeof_long_long+set}" = set; then
9066 echo $ECHO_N "(cached) $ECHO_C" >&6
9067else
9068 if test "$cross_compiling" = yes; then
9069 # Depending upon the size, compute the lo and hi bounds.
9070cat >conftest.$ac_ext <<_ACEOF
9071/* confdefs.h. */
9072_ACEOF
9073cat confdefs.h >>conftest.$ac_ext
9074cat >>conftest.$ac_ext <<_ACEOF
9075/* end confdefs.h. */
9076$ac_includes_default
9077 typedef long long ac__type_sizeof_;
9078int
9079main ()
9080{
9081static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9082test_array [0] = 0
9083
9084 ;
9085 return 0;
9086}
9087_ACEOF
9088rm -f conftest.$ac_objext
9089if { (ac_try="$ac_compile"
9090case "(($ac_try" in
9091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9092 *) ac_try_echo=$ac_try;;
9093esac
9094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9095 (eval "$ac_compile") 2>conftest.er1
9096 ac_status=$?
9097 grep -v '^ *+' conftest.er1 >conftest.err
9098 rm -f conftest.er1
9099 cat conftest.err >&5
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); } && {
9102 test -z "$ac_cxx_werror_flag" ||
9103 test ! -s conftest.err
9104 } && test -s conftest.$ac_objext; then
9105 ac_lo=0 ac_mid=0
9106 while :; do
9107 cat >conftest.$ac_ext <<_ACEOF
9108/* confdefs.h. */
9109_ACEOF
9110cat confdefs.h >>conftest.$ac_ext
9111cat >>conftest.$ac_ext <<_ACEOF
9112/* end confdefs.h. */
9113$ac_includes_default
9114 typedef long long ac__type_sizeof_;
9115int
9116main ()
9117{
9118static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9119test_array [0] = 0
9120
9121 ;
9122 return 0;
9123}
9124_ACEOF
9125rm -f conftest.$ac_objext
9126if { (ac_try="$ac_compile"
9127case "(($ac_try" in
9128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9129 *) ac_try_echo=$ac_try;;
9130esac
9131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9132 (eval "$ac_compile") 2>conftest.er1
9133 ac_status=$?
9134 grep -v '^ *+' conftest.er1 >conftest.err
9135 rm -f conftest.er1
9136 cat conftest.err >&5
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); } && {
9139 test -z "$ac_cxx_werror_flag" ||
9140 test ! -s conftest.err
9141 } && test -s conftest.$ac_objext; then
9142 ac_hi=$ac_mid; break
9143else
9144 echo "$as_me: failed program was:" >&5
9145sed 's/^/| /' conftest.$ac_ext >&5
9146
9147 ac_lo=`expr $ac_mid + 1`
9148 if test $ac_lo -le $ac_mid; then
9149 ac_lo= ac_hi=
9150 break
9151 fi
9152 ac_mid=`expr 2 '*' $ac_mid + 1`
9153fi
9154
9155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9156 done
9157else
9158 echo "$as_me: failed program was:" >&5
9159sed 's/^/| /' conftest.$ac_ext >&5
9160
9161 cat >conftest.$ac_ext <<_ACEOF
9162/* confdefs.h. */
9163_ACEOF
9164cat confdefs.h >>conftest.$ac_ext
9165cat >>conftest.$ac_ext <<_ACEOF
9166/* end confdefs.h. */
9167$ac_includes_default
9168 typedef long long ac__type_sizeof_;
9169int
9170main ()
9171{
9172static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9173test_array [0] = 0
9174
9175 ;
9176 return 0;
9177}
9178_ACEOF
9179rm -f conftest.$ac_objext
9180if { (ac_try="$ac_compile"
9181case "(($ac_try" in
9182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9183 *) ac_try_echo=$ac_try;;
9184esac
9185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9186 (eval "$ac_compile") 2>conftest.er1
9187 ac_status=$?
9188 grep -v '^ *+' conftest.er1 >conftest.err
9189 rm -f conftest.er1
9190 cat conftest.err >&5
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); } && {
9193 test -z "$ac_cxx_werror_flag" ||
9194 test ! -s conftest.err
9195 } && test -s conftest.$ac_objext; then
9196 ac_hi=-1 ac_mid=-1
9197 while :; do
9198 cat >conftest.$ac_ext <<_ACEOF
9199/* confdefs.h. */
9200_ACEOF
9201cat confdefs.h >>conftest.$ac_ext
9202cat >>conftest.$ac_ext <<_ACEOF
9203/* end confdefs.h. */
9204$ac_includes_default
9205 typedef long long ac__type_sizeof_;
9206int
9207main ()
9208{
9209static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9210test_array [0] = 0
9211
9212 ;
9213 return 0;
9214}
9215_ACEOF
9216rm -f conftest.$ac_objext
9217if { (ac_try="$ac_compile"
9218case "(($ac_try" in
9219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9220 *) ac_try_echo=$ac_try;;
9221esac
9222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9223 (eval "$ac_compile") 2>conftest.er1
9224 ac_status=$?
9225 grep -v '^ *+' conftest.er1 >conftest.err
9226 rm -f conftest.er1
9227 cat conftest.err >&5
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); } && {
9230 test -z "$ac_cxx_werror_flag" ||
9231 test ! -s conftest.err
9232 } && test -s conftest.$ac_objext; then
9233 ac_lo=$ac_mid; break
9234else
9235 echo "$as_me: failed program was:" >&5
9236sed 's/^/| /' conftest.$ac_ext >&5
9237
9238 ac_hi=`expr '(' $ac_mid ')' - 1`
9239 if test $ac_mid -le $ac_hi; then
9240 ac_lo= ac_hi=
9241 break
9242 fi
9243 ac_mid=`expr 2 '*' $ac_mid`
9244fi
9245
9246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9247 done
9248else
9249 echo "$as_me: failed program was:" >&5
9250sed 's/^/| /' conftest.$ac_ext >&5
9251
9252 ac_lo= ac_hi=
9253fi
9254
9255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9256fi
9257
9258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9259# Binary search between lo and hi bounds.
9260while test "x$ac_lo" != "x$ac_hi"; do
9261 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9262 cat >conftest.$ac_ext <<_ACEOF
9263/* confdefs.h. */
9264_ACEOF
9265cat confdefs.h >>conftest.$ac_ext
9266cat >>conftest.$ac_ext <<_ACEOF
9267/* end confdefs.h. */
9268$ac_includes_default
9269 typedef long long ac__type_sizeof_;
9270int
9271main ()
9272{
9273static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9274test_array [0] = 0
9275
9276 ;
9277 return 0;
9278}
9279_ACEOF
9280rm -f conftest.$ac_objext
9281if { (ac_try="$ac_compile"
9282case "(($ac_try" in
9283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9284 *) ac_try_echo=$ac_try;;
9285esac
9286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9287 (eval "$ac_compile") 2>conftest.er1
9288 ac_status=$?
9289 grep -v '^ *+' conftest.er1 >conftest.err
9290 rm -f conftest.er1
9291 cat conftest.err >&5
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); } && {
9294 test -z "$ac_cxx_werror_flag" ||
9295 test ! -s conftest.err
9296 } && test -s conftest.$ac_objext; then
9297 ac_hi=$ac_mid
9298else
9299 echo "$as_me: failed program was:" >&5
9300sed 's/^/| /' conftest.$ac_ext >&5
9301
9302 ac_lo=`expr '(' $ac_mid ')' + 1`
9303fi
9304
9305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9306done
9307case $ac_lo in
9308?*) ac_cv_sizeof_long_long=$ac_lo;;
9309'') if test "$ac_cv_type_long_long" = yes; then
9310 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9311See \`config.log' for more details." >&5
9312echo "$as_me: error: cannot compute sizeof (long long)
9313See \`config.log' for more details." >&2;}
9314 { (exit 77); exit 77; }; }
9315 else
9316 ac_cv_sizeof_long_long=0
9317 fi ;;
9318esac
9319else
9320 cat >conftest.$ac_ext <<_ACEOF
9321/* confdefs.h. */
9322_ACEOF
9323cat confdefs.h >>conftest.$ac_ext
9324cat >>conftest.$ac_ext <<_ACEOF
9325/* end confdefs.h. */
9326$ac_includes_default
9327 typedef long long ac__type_sizeof_;
9328static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9329static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9330#include <stdio.h>
9331#include <stdlib.h>
9332int
9333main ()
9334{
9335
9336 FILE *f = fopen ("conftest.val", "w");
9337 if (! f)
9338 return 1;
9339 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9340 {
9341 long int i = longval ();
9342 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9343 return 1;
9344 fprintf (f, "%ld\n", i);
9345 }
9346 else
9347 {
9348 unsigned long int i = ulongval ();
9349 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9350 return 1;
9351 fprintf (f, "%lu\n", i);
9352 }
9353 return ferror (f) || fclose (f) != 0;
9354
9355 ;
9356 return 0;
9357}
9358_ACEOF
9359rm -f conftest$ac_exeext
9360if { (ac_try="$ac_link"
9361case "(($ac_try" in
9362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9363 *) ac_try_echo=$ac_try;;
9364esac
9365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9366 (eval "$ac_link") 2>&5
9367 ac_status=$?
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9370 { (case "(($ac_try" in
9371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9372 *) ac_try_echo=$ac_try;;
9373esac
9374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9375 (eval "$ac_try") 2>&5
9376 ac_status=$?
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); }; }; then
9379 ac_cv_sizeof_long_long=`cat conftest.val`
9380else
9381 echo "$as_me: program exited with status $ac_status" >&5
9382echo "$as_me: failed program was:" >&5
9383sed 's/^/| /' conftest.$ac_ext >&5
9384
9385( exit $ac_status )
9386if test "$ac_cv_type_long_long" = yes; then
9387 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9388See \`config.log' for more details." >&5
9389echo "$as_me: error: cannot compute sizeof (long long)
9390See \`config.log' for more details." >&2;}
9391 { (exit 77); exit 77; }; }
9392 else
9393 ac_cv_sizeof_long_long=0
9394 fi
9395fi
9396rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9397fi
9398rm -f conftest.val
9399fi
9400{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
9401echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
9402
9403
9404
9405cat >>confdefs.h <<_ACEOF
9406#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9407_ACEOF
9408
9409
9410{ echo "$as_me:$LINENO: checking for int *" >&5
9411echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
9412if test "${ac_cv_type_int_p+set}" = set; then
9413 echo $ECHO_N "(cached) $ECHO_C" >&6
9414else
9415 cat >conftest.$ac_ext <<_ACEOF
9416/* confdefs.h. */
9417_ACEOF
9418cat confdefs.h >>conftest.$ac_ext
9419cat >>conftest.$ac_ext <<_ACEOF
9420/* end confdefs.h. */
9421$ac_includes_default
9422typedef int * ac__type_new_;
9423int
9424main ()
9425{
9426if ((ac__type_new_ *) 0)
9427 return 0;
9428if (sizeof (ac__type_new_))
9429 return 0;
9430 ;
9431 return 0;
9432}
9433_ACEOF
9434rm -f conftest.$ac_objext
9435if { (ac_try="$ac_compile"
9436case "(($ac_try" in
9437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9438 *) ac_try_echo=$ac_try;;
9439esac
9440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9441 (eval "$ac_compile") 2>conftest.er1
9442 ac_status=$?
9443 grep -v '^ *+' conftest.er1 >conftest.err
9444 rm -f conftest.er1
9445 cat conftest.err >&5
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); } && {
9448 test -z "$ac_cxx_werror_flag" ||
9449 test ! -s conftest.err
9450 } && test -s conftest.$ac_objext; then
9451 ac_cv_type_int_p=yes
9452else
9453 echo "$as_me: failed program was:" >&5
9454sed 's/^/| /' conftest.$ac_ext >&5
9455
9456 ac_cv_type_int_p=no
9457fi
9458
9459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9460fi
9461{ echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
9462echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
9463
9464# The cast to long int works around a bug in the HP C Compiler
9465# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9466# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9467# This bug is HP SR number 8606223364.
9468{ echo "$as_me:$LINENO: checking size of int *" >&5
9469echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
9470if test "${ac_cv_sizeof_int_p+set}" = set; then
9471 echo $ECHO_N "(cached) $ECHO_C" >&6
9472else
9473 if test "$cross_compiling" = yes; then
9474 # Depending upon the size, compute the lo and hi bounds.
9475cat >conftest.$ac_ext <<_ACEOF
9476/* confdefs.h. */
9477_ACEOF
9478cat confdefs.h >>conftest.$ac_ext
9479cat >>conftest.$ac_ext <<_ACEOF
9480/* end confdefs.h. */
9481$ac_includes_default
9482 typedef int * ac__type_sizeof_;
9483int
9484main ()
9485{
9486static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9487test_array [0] = 0
9488
9489 ;
9490 return 0;
9491}
9492_ACEOF
9493rm -f conftest.$ac_objext
9494if { (ac_try="$ac_compile"
9495case "(($ac_try" in
9496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9497 *) ac_try_echo=$ac_try;;
9498esac
9499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9500 (eval "$ac_compile") 2>conftest.er1
9501 ac_status=$?
9502 grep -v '^ *+' conftest.er1 >conftest.err
9503 rm -f conftest.er1
9504 cat conftest.err >&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); } && {
9507 test -z "$ac_cxx_werror_flag" ||
9508 test ! -s conftest.err
9509 } && test -s conftest.$ac_objext; then
9510 ac_lo=0 ac_mid=0
9511 while :; do
9512 cat >conftest.$ac_ext <<_ACEOF
9513/* confdefs.h. */
9514_ACEOF
9515cat confdefs.h >>conftest.$ac_ext
9516cat >>conftest.$ac_ext <<_ACEOF
9517/* end confdefs.h. */
9518$ac_includes_default
9519 typedef int * ac__type_sizeof_;
9520int
9521main ()
9522{
9523static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9524test_array [0] = 0
9525
9526 ;
9527 return 0;
9528}
9529_ACEOF
9530rm -f conftest.$ac_objext
9531if { (ac_try="$ac_compile"
9532case "(($ac_try" in
9533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9534 *) ac_try_echo=$ac_try;;
9535esac
9536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9537 (eval "$ac_compile") 2>conftest.er1
9538 ac_status=$?
9539 grep -v '^ *+' conftest.er1 >conftest.err
9540 rm -f conftest.er1
9541 cat conftest.err >&5
9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); } && {
9544 test -z "$ac_cxx_werror_flag" ||
9545 test ! -s conftest.err
9546 } && test -s conftest.$ac_objext; then
9547 ac_hi=$ac_mid; break
9548else
9549 echo "$as_me: failed program was:" >&5
9550sed 's/^/| /' conftest.$ac_ext >&5
9551
9552 ac_lo=`expr $ac_mid + 1`
9553 if test $ac_lo -le $ac_mid; then
9554 ac_lo= ac_hi=
9555 break
9556 fi
9557 ac_mid=`expr 2 '*' $ac_mid + 1`
9558fi
9559
9560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9561 done
9562else
9563 echo "$as_me: failed program was:" >&5
9564sed 's/^/| /' conftest.$ac_ext >&5
9565
9566 cat >conftest.$ac_ext <<_ACEOF
9567/* confdefs.h. */
9568_ACEOF
9569cat confdefs.h >>conftest.$ac_ext
9570cat >>conftest.$ac_ext <<_ACEOF
9571/* end confdefs.h. */
9572$ac_includes_default
9573 typedef int * ac__type_sizeof_;
9574int
9575main ()
9576{
9577static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9578test_array [0] = 0
9579
9580 ;
9581 return 0;
9582}
9583_ACEOF
9584rm -f conftest.$ac_objext
9585if { (ac_try="$ac_compile"
9586case "(($ac_try" in
9587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9588 *) ac_try_echo=$ac_try;;
9589esac
9590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9591 (eval "$ac_compile") 2>conftest.er1
9592 ac_status=$?
9593 grep -v '^ *+' conftest.er1 >conftest.err
9594 rm -f conftest.er1
9595 cat conftest.err >&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); } && {
9598 test -z "$ac_cxx_werror_flag" ||
9599 test ! -s conftest.err
9600 } && test -s conftest.$ac_objext; then
9601 ac_hi=-1 ac_mid=-1
9602 while :; do
9603 cat >conftest.$ac_ext <<_ACEOF
9604/* confdefs.h. */
9605_ACEOF
9606cat confdefs.h >>conftest.$ac_ext
9607cat >>conftest.$ac_ext <<_ACEOF
9608/* end confdefs.h. */
9609$ac_includes_default
9610 typedef int * ac__type_sizeof_;
9611int
9612main ()
9613{
9614static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9615test_array [0] = 0
9616
9617 ;
9618 return 0;
9619}
9620_ACEOF
9621rm -f conftest.$ac_objext
9622if { (ac_try="$ac_compile"
9623case "(($ac_try" in
9624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9625 *) ac_try_echo=$ac_try;;
9626esac
9627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9628 (eval "$ac_compile") 2>conftest.er1
9629 ac_status=$?
9630 grep -v '^ *+' conftest.er1 >conftest.err
9631 rm -f conftest.er1
9632 cat conftest.err >&5
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); } && {
9635 test -z "$ac_cxx_werror_flag" ||
9636 test ! -s conftest.err
9637 } && test -s conftest.$ac_objext; then
9638 ac_lo=$ac_mid; break
9639else
9640 echo "$as_me: failed program was:" >&5
9641sed 's/^/| /' conftest.$ac_ext >&5
9642
9643 ac_hi=`expr '(' $ac_mid ')' - 1`
9644 if test $ac_mid -le $ac_hi; then
9645 ac_lo= ac_hi=
9646 break
9647 fi
9648 ac_mid=`expr 2 '*' $ac_mid`
9649fi
9650
9651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9652 done
9653else
9654 echo "$as_me: failed program was:" >&5
9655sed 's/^/| /' conftest.$ac_ext >&5
9656
9657 ac_lo= ac_hi=
9658fi
9659
9660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9661fi
9662
9663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9664# Binary search between lo and hi bounds.
9665while test "x$ac_lo" != "x$ac_hi"; do
9666 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9667 cat >conftest.$ac_ext <<_ACEOF
9668/* confdefs.h. */
9669_ACEOF
9670cat confdefs.h >>conftest.$ac_ext
9671cat >>conftest.$ac_ext <<_ACEOF
9672/* end confdefs.h. */
9673$ac_includes_default
9674 typedef int * ac__type_sizeof_;
9675int
9676main ()
9677{
9678static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9679test_array [0] = 0
9680
9681 ;
9682 return 0;
9683}
9684_ACEOF
9685rm -f conftest.$ac_objext
9686if { (ac_try="$ac_compile"
9687case "(($ac_try" in
9688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9689 *) ac_try_echo=$ac_try;;
9690esac
9691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9692 (eval "$ac_compile") 2>conftest.er1
9693 ac_status=$?
9694 grep -v '^ *+' conftest.er1 >conftest.err
9695 rm -f conftest.er1
9696 cat conftest.err >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); } && {
9699 test -z "$ac_cxx_werror_flag" ||
9700 test ! -s conftest.err
9701 } && test -s conftest.$ac_objext; then
9702 ac_hi=$ac_mid
9703else
9704 echo "$as_me: failed program was:" >&5
9705sed 's/^/| /' conftest.$ac_ext >&5
9706
9707 ac_lo=`expr '(' $ac_mid ')' + 1`
9708fi
9709
9710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9711done
9712case $ac_lo in
9713?*) ac_cv_sizeof_int_p=$ac_lo;;
9714'') if test "$ac_cv_type_int_p" = yes; then
9715 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
9716See \`config.log' for more details." >&5
9717echo "$as_me: error: cannot compute sizeof (int *)
9718See \`config.log' for more details." >&2;}
9719 { (exit 77); exit 77; }; }
9720 else
9721 ac_cv_sizeof_int_p=0
9722 fi ;;
9723esac
9724else
9725 cat >conftest.$ac_ext <<_ACEOF
9726/* confdefs.h. */
9727_ACEOF
9728cat confdefs.h >>conftest.$ac_ext
9729cat >>conftest.$ac_ext <<_ACEOF
9730/* end confdefs.h. */
9731$ac_includes_default
9732 typedef int * ac__type_sizeof_;
9733static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9734static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9735#include <stdio.h>
9736#include <stdlib.h>
9737int
9738main ()
9739{
9740
9741 FILE *f = fopen ("conftest.val", "w");
9742 if (! f)
9743 return 1;
9744 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9745 {
9746 long int i = longval ();
9747 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9748 return 1;
9749 fprintf (f, "%ld\n", i);
9750 }
9751 else
9752 {
9753 unsigned long int i = ulongval ();
9754 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9755 return 1;
9756 fprintf (f, "%lu\n", i);
9757 }
9758 return ferror (f) || fclose (f) != 0;
9759
9760 ;
9761 return 0;
9762}
9763_ACEOF
9764rm -f conftest$ac_exeext
9765if { (ac_try="$ac_link"
9766case "(($ac_try" in
9767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9768 *) ac_try_echo=$ac_try;;
9769esac
9770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9771 (eval "$ac_link") 2>&5
9772 ac_status=$?
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9775 { (case "(($ac_try" in
9776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9777 *) ac_try_echo=$ac_try;;
9778esac
9779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9780 (eval "$ac_try") 2>&5
9781 ac_status=$?
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); }; }; then
9784 ac_cv_sizeof_int_p=`cat conftest.val`
9785else
9786 echo "$as_me: program exited with status $ac_status" >&5
9787echo "$as_me: failed program was:" >&5
9788sed 's/^/| /' conftest.$ac_ext >&5
9789
9790( exit $ac_status )
9791if test "$ac_cv_type_int_p" = yes; then
9792 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
9793See \`config.log' for more details." >&5
9794echo "$as_me: error: cannot compute sizeof (int *)
9795See \`config.log' for more details." >&2;}
9796 { (exit 77); exit 77; }; }
9797 else
9798 ac_cv_sizeof_int_p=0
9799 fi
9800fi
9801rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9802fi
9803rm -f conftest.val
9804fi
9805{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
9806echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
9807
9808
9809
9810cat >>confdefs.h <<_ACEOF
9811#define SIZEOF_INT_P $ac_cv_sizeof_int_p
9812_ACEOF
9813
9814
9815
9816
9817{ echo "$as_me:$LINENO: checking for int16_t" >&5
9818echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
9819if test "${rxvt_cv_int16_t+set}" = set; then
9820 echo $ECHO_N "(cached) $ECHO_C" >&6
9821else
9822 cat >conftest.$ac_ext <<_ACEOF
9823/* confdefs.h. */
9824_ACEOF
9825cat confdefs.h >>conftest.$ac_ext
9826cat >>conftest.$ac_ext <<_ACEOF
9827/* end confdefs.h. */
9828#include <stdint.h>
9829int
9830main ()
9831{
9832int16_t dummy;
9833 ;
9834 return 0;
9835}
9836_ACEOF
9837rm -f conftest.$ac_objext
9838if { (ac_try="$ac_compile"
9839case "(($ac_try" in
9840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9841 *) ac_try_echo=$ac_try;;
9842esac
9843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9844 (eval "$ac_compile") 2>conftest.er1
9845 ac_status=$?
9846 grep -v '^ *+' conftest.er1 >conftest.err
9847 rm -f conftest.er1
9848 cat conftest.err >&5
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); } && {
9851 test -z "$ac_cxx_werror_flag" ||
9852 test ! -s conftest.err
9853 } && test -s conftest.$ac_objext; then
9854 rxvt_cv_int16_t=yes
9855else
9856 echo "$as_me: failed program was:" >&5
9857sed 's/^/| /' conftest.$ac_ext >&5
9858
9859 if test "$ac_cv_sizeof_char" -ge 2; then
9860 rxvt_cv_int16_t=" char"
9861else
9862 if test "$ac_cv_sizeof_short" -ge 2; then
9863 rxvt_cv_int16_t=" short"
9864 else
9865 if test "$ac_cv_sizeof_int" -ge 2; then
9866 rxvt_cv_int16_t=" int"
9867 else
9868 if test "$ac_cv_sizeof_long" -ge 2; then
9869 rxvt_cv_int16_t=" long"
9870 else
9871 if test "$ac_cv_sizeof_long_long" -ge 2; then
9872 rxvt_cv_int16_t=" long long"
9873 else
9874 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
9875 fi
9876 fi
9877 fi
9878 fi
9879fi
9880fi
9881
9882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9883fi
9884{ echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
9885echo "${ECHO_T}$rxvt_cv_int16_t" >&6; }
9886if test x"$rxvt_cv_int16_t" != xyes; then
9887 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
9888else
9889 if test x"" = x; then
9890 rxvt_int16_typedef="/* typedef short int16_t; */"
9891 else
9892 rxvt_int16_typedef="/* typedef short int16_t; */"
9893 fi
9894fi
9895
9896{ echo "$as_me:$LINENO: checking for uint16_t" >&5
9897echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
9898if test "${rxvt_cv_uint16_t+set}" = set; then
9899 echo $ECHO_N "(cached) $ECHO_C" >&6
9900else
9901 cat >conftest.$ac_ext <<_ACEOF
9902/* confdefs.h. */
9903_ACEOF
9904cat confdefs.h >>conftest.$ac_ext
9905cat >>conftest.$ac_ext <<_ACEOF
9906/* end confdefs.h. */
9907#include <stdint.h>
9908int
9909main ()
9910{
9911uint16_t dummy;
9912 ;
9913 return 0;
9914}
9915_ACEOF
9916rm -f conftest.$ac_objext
9917if { (ac_try="$ac_compile"
9918case "(($ac_try" in
9919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9920 *) ac_try_echo=$ac_try;;
9921esac
9922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9923 (eval "$ac_compile") 2>conftest.er1
9924 ac_status=$?
9925 grep -v '^ *+' conftest.er1 >conftest.err
9926 rm -f conftest.er1
9927 cat conftest.err >&5
9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929 (exit $ac_status); } && {
9930 test -z "$ac_cxx_werror_flag" ||
9931 test ! -s conftest.err
9932 } && test -s conftest.$ac_objext; then
9933 rxvt_cv_uint16_t=yes
9934else
9935 echo "$as_me: failed program was:" >&5
9936sed 's/^/| /' conftest.$ac_ext >&5
9937
9938 if test "$ac_cv_sizeof_char" -ge 2; then
9939 rxvt_cv_uint16_t="unsigned char"
9940else
9941 if test "$ac_cv_sizeof_short" -ge 2; then
9942 rxvt_cv_uint16_t="unsigned short"
9943 else
9944 if test "$ac_cv_sizeof_int" -ge 2; then
9945 rxvt_cv_uint16_t="unsigned int"
9946 else
9947 if test "$ac_cv_sizeof_long" -ge 2; then
9948 rxvt_cv_uint16_t="unsigned long"
9949 else
9950 if test "$ac_cv_sizeof_long_long" -ge 2; then
9951 rxvt_cv_uint16_t="unsigned long long"
9952 else
9953 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
9954 fi
9955 fi
9956 fi
9957 fi
9958fi
9959fi
9960
9961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9962fi
9963{ echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
9964echo "${ECHO_T}$rxvt_cv_uint16_t" >&6; }
9965if test x"$rxvt_cv_uint16_t" != xyes; then
9966 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
9967else
9968 if test x"unsigned" = x; then
9969 rxvt_uint16_typedef="/* typedef short uint16_t; */"
9970 else
9971 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
9972 fi
9973fi
9974
9975{ echo "$as_me:$LINENO: checking for int32_t" >&5
9976echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
9977if test "${rxvt_cv_int32_t+set}" = set; then
9978 echo $ECHO_N "(cached) $ECHO_C" >&6
9979else
9980 cat >conftest.$ac_ext <<_ACEOF
9981/* confdefs.h. */
9982_ACEOF
9983cat confdefs.h >>conftest.$ac_ext
9984cat >>conftest.$ac_ext <<_ACEOF
9985/* end confdefs.h. */
9986#include <stdint.h>
9987int
9988main ()
9989{
9990int32_t dummy;
9991 ;
9992 return 0;
9993}
9994_ACEOF
9995rm -f conftest.$ac_objext
9996if { (ac_try="$ac_compile"
9997case "(($ac_try" in
9998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9999 *) ac_try_echo=$ac_try;;
10000esac
10001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10002 (eval "$ac_compile") 2>conftest.er1
10003 ac_status=$?
10004 grep -v '^ *+' conftest.er1 >conftest.err
10005 rm -f conftest.er1
10006 cat conftest.err >&5
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); } && {
10009 test -z "$ac_cxx_werror_flag" ||
10010 test ! -s conftest.err
10011 } && test -s conftest.$ac_objext; then
10012 rxvt_cv_int32_t=yes
10013else
10014 echo "$as_me: failed program was:" >&5
10015sed 's/^/| /' conftest.$ac_ext >&5
10016
10017 if test "$ac_cv_sizeof_char" -ge 4; then
10018 rxvt_cv_int32_t=" char"
10019else
10020 if test "$ac_cv_sizeof_short" -ge 4; then
10021 rxvt_cv_int32_t=" short"
10022 else
10023 if test "$ac_cv_sizeof_int" -ge 4; then
10024 rxvt_cv_int32_t=" int"
10025 else
10026 if test "$ac_cv_sizeof_long" -ge 4; then
10027 rxvt_cv_int32_t=" long"
10028 else
10029 if test "$ac_cv_sizeof_long_long" -ge 4; then
10030 rxvt_cv_int32_t=" long long"
10031 else
10032 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
10033 fi
10034 fi
10035 fi
10036 fi
10037fi
10038fi
10039
10040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10041fi
10042{ echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
10043echo "${ECHO_T}$rxvt_cv_int32_t" >&6; }
10044if test x"$rxvt_cv_int32_t" != xyes; then
10045 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
10046else
10047 if test x"" = x; then
10048 rxvt_int32_typedef="/* typedef int int32_t; */"
10049 else
10050 rxvt_int32_typedef="/* typedef int int32_t; */"
10051 fi
10052fi
10053
10054{ echo "$as_me:$LINENO: checking for uint32_t" >&5
10055echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
10056if test "${rxvt_cv_uint32_t+set}" = set; then
10057 echo $ECHO_N "(cached) $ECHO_C" >&6
10058else
10059 cat >conftest.$ac_ext <<_ACEOF
10060/* confdefs.h. */
10061_ACEOF
10062cat confdefs.h >>conftest.$ac_ext
10063cat >>conftest.$ac_ext <<_ACEOF
10064/* end confdefs.h. */
10065#include <stdint.h>
10066int
10067main ()
10068{
10069uint32_t dummy;
10070 ;
10071 return 0;
10072}
10073_ACEOF
10074rm -f conftest.$ac_objext
10075if { (ac_try="$ac_compile"
10076case "(($ac_try" in
10077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10078 *) ac_try_echo=$ac_try;;
10079esac
10080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10081 (eval "$ac_compile") 2>conftest.er1
10082 ac_status=$?
10083 grep -v '^ *+' conftest.er1 >conftest.err
10084 rm -f conftest.er1
10085 cat conftest.err >&5
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); } && {
10088 test -z "$ac_cxx_werror_flag" ||
10089 test ! -s conftest.err
10090 } && test -s conftest.$ac_objext; then
10091 rxvt_cv_uint32_t=yes
10092else
10093 echo "$as_me: failed program was:" >&5
10094sed 's/^/| /' conftest.$ac_ext >&5
10095
10096 if test "$ac_cv_sizeof_char" -ge 4; then
10097 rxvt_cv_uint32_t="unsigned char"
10098else
10099 if test "$ac_cv_sizeof_short" -ge 4; then
10100 rxvt_cv_uint32_t="unsigned short"
10101 else
10102 if test "$ac_cv_sizeof_int" -ge 4; then
10103 rxvt_cv_uint32_t="unsigned int"
10104 else
10105 if test "$ac_cv_sizeof_long" -ge 4; then
10106 rxvt_cv_uint32_t="unsigned long"
10107 else
10108 if test "$ac_cv_sizeof_long_long" -ge 4; then
10109 rxvt_cv_uint32_t="unsigned long long"
10110 else
10111 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
10112 fi
10113 fi
10114 fi
10115 fi
10116fi
10117fi
10118
10119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10120fi
10121{ echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
10122echo "${ECHO_T}$rxvt_cv_uint32_t" >&6; }
10123if test x"$rxvt_cv_uint32_t" != xyes; then
10124 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
10125else
10126 if test x"unsigned" = x; then
10127 rxvt_uint32_typedef="/* typedef int uint32_t; */"
10128 else
10129 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
10130 fi
10131fi
10132
10133if test "$ac_cv_sizeof_int_p" -eq 8; then
10134 rxvt_intp_define="#define intp_t int64_t"
10135 rxvt_u_intp_define="#define u_intp_t u_int64_t"
10136else
10137 if test "$ac_cv_sizeof_int_p" -eq 4; then
10138 rxvt_intp_define="#define intp_t int32_t"
10139 rxvt_u_intp_define="#define u_intp_t u_int32_t"
10140 else
10141 if test "$ac_cv_sizeof_int_p" -eq 2; then
10142 rxvt_intp_define="#define intp_t int16_t"
10143 rxvt_u_intp_define="#define u_intp_t u_int16_t"
10144 else
10145 rxvt_intp_define="#error set intp_t"
10146 rxvt_u_intp_define="#error set u_intp_t"
10147 fi
10148 fi
10149fi
10150
10151
10152
10153{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10154echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
10155if test "${ac_cv_type_signal+set}" = set; then
10156 echo $ECHO_N "(cached) $ECHO_C" >&6
10157else
10158 cat >conftest.$ac_ext <<_ACEOF
10159/* confdefs.h. */
10160_ACEOF
10161cat confdefs.h >>conftest.$ac_ext
10162cat >>conftest.$ac_ext <<_ACEOF
10163/* end confdefs.h. */
10164#include <sys/types.h>
10165#include <signal.h>
10166
10167int
10168main ()
10169{
10170return *(signal (0, 0)) (0) == 1;
10171 ;
10172 return 0;
10173}
10174_ACEOF
10175rm -f conftest.$ac_objext
10176if { (ac_try="$ac_compile"
10177case "(($ac_try" in
10178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10179 *) ac_try_echo=$ac_try;;
10180esac
10181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10182 (eval "$ac_compile") 2>conftest.er1
10183 ac_status=$?
10184 grep -v '^ *+' conftest.er1 >conftest.err
10185 rm -f conftest.er1
10186 cat conftest.err >&5
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); } && {
10189 test -z "$ac_cxx_werror_flag" ||
10190 test ! -s conftest.err
10191 } && test -s conftest.$ac_objext; then
10192 ac_cv_type_signal=int
10193else
10194 echo "$as_me: failed program was:" >&5
10195sed 's/^/| /' conftest.$ac_ext >&5
10196
10197 ac_cv_type_signal=void
10198fi
10199
10200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10201fi
10202{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10203echo "${ECHO_T}$ac_cv_type_signal" >&6; }
10204
10205cat >>confdefs.h <<_ACEOF
10206#define RETSIGTYPE $ac_cv_type_signal
10207_ACEOF
10208
10209 8484
10210 8485
10211 8486
10212for ac_func in unsetenv 8487for ac_func in unsetenv
10213do 8488do
10454fi 8729fi
10455done 8730done
10456 8731
10457 8732
10458 8733
10459
10460
10461for ac_header in \ 8734for ac_header in lastlog.h
10462 utmp.h \
10463 utmpx.h \
10464 lastlog.h \
10465
10466do 8735do
10467as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8736as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10468if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8737if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10469 { echo "$as_me:$LINENO: checking for $ac_header" >&5 8738 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10470echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8739echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10601 8870
10602done 8871done
10603 8872
10604 8873
10605 8874
10606if test "${ac_cv_header_utmp_h+set}" = set; then 8875
8876for ac_header in utmp.h
8877do
8878as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8879if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10607 { echo "$as_me:$LINENO: checking for utmp.h" >&5 8880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10608echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } 8881echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10609if test "${ac_cv_header_utmp_h+set}" = set; then 8882if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10610 echo $ECHO_N "(cached) $ECHO_C" >&6 8883 echo $ECHO_N "(cached) $ECHO_C" >&6
10611fi 8884fi
8885ac_res=`eval echo '${'$as_ac_Header'}'`
10612{ echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 8886 { echo "$as_me:$LINENO: result: $ac_res" >&5
10613echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } 8887echo "${ECHO_T}$ac_res" >&6; }
10614else 8888else
10615 # Is the header compilable? 8889 # Is the header compilable?
10616{ echo "$as_me:$LINENO: checking utmp.h usability" >&5 8890{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10617echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6; } 8891echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10618cat >conftest.$ac_ext <<_ACEOF 8892cat >conftest.$ac_ext <<_ACEOF
10619/* confdefs.h. */ 8893/* confdefs.h. */
10620_ACEOF 8894_ACEOF
10621cat confdefs.h >>conftest.$ac_ext 8895cat confdefs.h >>conftest.$ac_ext
10622cat >>conftest.$ac_ext <<_ACEOF 8896cat >>conftest.$ac_ext <<_ACEOF
10623/* end confdefs.h. */ 8897/* end confdefs.h. */
10624$ac_includes_default 8898$ac_includes_default
10625#include <utmp.h> 8899#include <$ac_header>
10626_ACEOF 8900_ACEOF
10627rm -f conftest.$ac_objext 8901rm -f conftest.$ac_objext
10628if { (ac_try="$ac_compile" 8902if { (ac_try="$ac_compile"
10629case "(($ac_try" in 8903case "(($ac_try" in
10630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10653{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8927{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10654echo "${ECHO_T}$ac_header_compiler" >&6; } 8928echo "${ECHO_T}$ac_header_compiler" >&6; }
10655 8929
10656# Is the header present? 8930# Is the header present?
10657{ echo "$as_me:$LINENO: checking utmp.h presence" >&5 8931{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10658echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6; } 8932echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10659cat >conftest.$ac_ext <<_ACEOF 8933cat >conftest.$ac_ext <<_ACEOF
10660/* confdefs.h. */ 8934/* confdefs.h. */
10661_ACEOF 8935_ACEOF
10662cat confdefs.h >>conftest.$ac_ext 8936cat confdefs.h >>conftest.$ac_ext
10663cat >>conftest.$ac_ext <<_ACEOF 8937cat >>conftest.$ac_ext <<_ACEOF
10664/* end confdefs.h. */ 8938/* end confdefs.h. */
10665#include <utmp.h> 8939#include <$ac_header>
10666_ACEOF 8940_ACEOF
10667if { (ac_try="$ac_cpp conftest.$ac_ext" 8941if { (ac_try="$ac_cpp conftest.$ac_ext"
10668case "(($ac_try" in 8942case "(($ac_try" in
10669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10670 *) ac_try_echo=$ac_try;; 8944 *) ac_try_echo=$ac_try;;
10693echo "${ECHO_T}$ac_header_preproc" >&6; } 8967echo "${ECHO_T}$ac_header_preproc" >&6; }
10694 8968
10695# So? What about this header? 8969# So? What about this header?
10696case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 8970case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10697 yes:no: ) 8971 yes:no: )
10698 { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 8972 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10699echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 8973echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10700 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5 8974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10701echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;} 8975echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10702 ac_header_preproc=yes 8976 ac_header_preproc=yes
10703 ;; 8977 ;;
10704 no:yes:* ) 8978 no:yes:* )
10705 { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5 8979 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10706echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;} 8980echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10707 { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5 8981 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10708echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;} 8982echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10709 { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5 8983 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10710echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;} 8984echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10711 { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5 8985 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10712echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;} 8986echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10713 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5 8987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10714echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;} 8988echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10715 { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5 8989 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10716echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;} 8990echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10717 8991
10718 ;; 8992 ;;
10719esac 8993esac
10720{ echo "$as_me:$LINENO: checking for utmp.h" >&5 8994{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10721echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } 8995echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10722if test "${ac_cv_header_utmp_h+set}" = set; then 8996if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10723 echo $ECHO_N "(cached) $ECHO_C" >&6 8997 echo $ECHO_N "(cached) $ECHO_C" >&6
10724else 8998else
10725 ac_cv_header_utmp_h=$ac_header_preproc 8999 eval "$as_ac_Header=\$ac_header_preproc"
10726fi 9000fi
9001ac_res=`eval echo '${'$as_ac_Header'}'`
10727{ echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 9002 { echo "$as_me:$LINENO: result: $ac_res" >&5
10728echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } 9003echo "${ECHO_T}$ac_res" >&6; }
10729 9004
10730fi 9005fi
10731if test $ac_cv_header_utmp_h = yes; then 9006if test `eval echo '${'$as_ac_Header'}'` = yes; then
9007 cat >>confdefs.h <<_ACEOF
9008#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9009_ACEOF
10732 { echo "$as_me:$LINENO: checking for struct utmp" >&5 9010 { echo "$as_me:$LINENO: checking for struct utmp" >&5
10733echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; } 9011echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; }
10734if test "${struct_utmp+set}" = set; then 9012if test "${struct_utmp+set}" = set; then
10735 echo $ECHO_N "(cached) $ECHO_C" >&6 9013 echo $ECHO_N "(cached) $ECHO_C" >&6
10736else 9014else
10737 cat >conftest.$ac_ext <<_ACEOF 9015 cat >conftest.$ac_ext <<_ACEOF
10904 9182
10905fi 9183fi
10906 9184
10907fi 9185fi
10908 9186
9187done
10909 9188
10910 9189
10911if test "${ac_cv_header_utmpx_h+set}" = set; then 9190
9191for ac_header in utmpx.h
9192do
9193as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9194if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10912 { echo "$as_me:$LINENO: checking for utmpx.h" >&5 9195 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10913echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } 9196echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10914if test "${ac_cv_header_utmpx_h+set}" = set; then 9197if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10915 echo $ECHO_N "(cached) $ECHO_C" >&6 9198 echo $ECHO_N "(cached) $ECHO_C" >&6
10916fi 9199fi
9200ac_res=`eval echo '${'$as_ac_Header'}'`
10917{ echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 9201 { echo "$as_me:$LINENO: result: $ac_res" >&5
10918echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } 9202echo "${ECHO_T}$ac_res" >&6; }
10919else 9203else
10920 # Is the header compilable? 9204 # Is the header compilable?
10921{ echo "$as_me:$LINENO: checking utmpx.h usability" >&5 9205{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10922echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6; } 9206echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10923cat >conftest.$ac_ext <<_ACEOF 9207cat >conftest.$ac_ext <<_ACEOF
10924/* confdefs.h. */ 9208/* confdefs.h. */
10925_ACEOF 9209_ACEOF
10926cat confdefs.h >>conftest.$ac_ext 9210cat confdefs.h >>conftest.$ac_ext
10927cat >>conftest.$ac_ext <<_ACEOF 9211cat >>conftest.$ac_ext <<_ACEOF
10928/* end confdefs.h. */ 9212/* end confdefs.h. */
10929$ac_includes_default 9213$ac_includes_default
10930#include <utmpx.h> 9214#include <$ac_header>
10931_ACEOF 9215_ACEOF
10932rm -f conftest.$ac_objext 9216rm -f conftest.$ac_objext
10933if { (ac_try="$ac_compile" 9217if { (ac_try="$ac_compile"
10934case "(($ac_try" in 9218case "(($ac_try" in
10935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10958{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9242{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10959echo "${ECHO_T}$ac_header_compiler" >&6; } 9243echo "${ECHO_T}$ac_header_compiler" >&6; }
10960 9244
10961# Is the header present? 9245# Is the header present?
10962{ echo "$as_me:$LINENO: checking utmpx.h presence" >&5 9246{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10963echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6; } 9247echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10964cat >conftest.$ac_ext <<_ACEOF 9248cat >conftest.$ac_ext <<_ACEOF
10965/* confdefs.h. */ 9249/* confdefs.h. */
10966_ACEOF 9250_ACEOF
10967cat confdefs.h >>conftest.$ac_ext 9251cat confdefs.h >>conftest.$ac_ext
10968cat >>conftest.$ac_ext <<_ACEOF 9252cat >>conftest.$ac_ext <<_ACEOF
10969/* end confdefs.h. */ 9253/* end confdefs.h. */
10970#include <utmpx.h> 9254#include <$ac_header>
10971_ACEOF 9255_ACEOF
10972if { (ac_try="$ac_cpp conftest.$ac_ext" 9256if { (ac_try="$ac_cpp conftest.$ac_ext"
10973case "(($ac_try" in 9257case "(($ac_try" in
10974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10975 *) ac_try_echo=$ac_try;; 9259 *) ac_try_echo=$ac_try;;
10998echo "${ECHO_T}$ac_header_preproc" >&6; } 9282echo "${ECHO_T}$ac_header_preproc" >&6; }
10999 9283
11000# So? What about this header? 9284# So? What about this header?
11001case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 9285case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11002 yes:no: ) 9286 yes:no: )
11003 { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5 9287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11004echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 9288echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11005 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5 9289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11006echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;} 9290echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11007 ac_header_preproc=yes 9291 ac_header_preproc=yes
11008 ;; 9292 ;;
11009 no:yes:* ) 9293 no:yes:* )
11010 { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5 9294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11011echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;} 9295echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11012 { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5 9296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11013echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;} 9297echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11014 { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5 9298 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11015echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;} 9299echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11016 { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5 9300 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11017echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;} 9301echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11018 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5 9302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11019echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;} 9303echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11020 { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5 9304 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11021echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;} 9305echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11022 9306
11023 ;; 9307 ;;
11024esac 9308esac
11025{ echo "$as_me:$LINENO: checking for utmpx.h" >&5 9309{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11026echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } 9310echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11027if test "${ac_cv_header_utmpx_h+set}" = set; then 9311if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11028 echo $ECHO_N "(cached) $ECHO_C" >&6 9312 echo $ECHO_N "(cached) $ECHO_C" >&6
11029else 9313else
11030 ac_cv_header_utmpx_h=$ac_header_preproc 9314 eval "$as_ac_Header=\$ac_header_preproc"
11031fi 9315fi
9316ac_res=`eval echo '${'$as_ac_Header'}'`
11032{ echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 9317 { echo "$as_me:$LINENO: result: $ac_res" >&5
11033echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } 9318echo "${ECHO_T}$ac_res" >&6; }
11034 9319
11035fi 9320fi
11036if test $ac_cv_header_utmpx_h = yes; then 9321if test `eval echo '${'$as_ac_Header'}'` = yes; then
9322 cat >>confdefs.h <<_ACEOF
9323#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9324_ACEOF
11037 { echo "$as_me:$LINENO: checking for struct utmpx" >&5 9325 { echo "$as_me:$LINENO: checking for struct utmpx" >&5
11038echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; } 9326echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; }
11039if test "${struct_utmpx+set}" = set; then 9327if test "${struct_utmpx+set}" = set; then
11040 echo $ECHO_N "(cached) $ECHO_C" >&6 9328 echo $ECHO_N "(cached) $ECHO_C" >&6
11041else 9329else
11042 cat >conftest.$ac_ext <<_ACEOF 9330 cat >conftest.$ac_ext <<_ACEOF
11209 9497
11210fi 9498fi
11211 9499
11212fi 9500fi
11213 9501
9502done
11214 9503
11215{ echo "$as_me:$LINENO: checking for struct lastlog" >&5 9504{ echo "$as_me:$LINENO: checking for struct lastlog" >&5
11216echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } 9505echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; }
11217if test "${struct_lastlog+set}" = set; then 9506if test "${struct_lastlog+set}" = set; then
11218 echo $ECHO_N "(cached) $ECHO_C" >&6 9507 echo $ECHO_N "(cached) $ECHO_C" >&6
11953#define USE_XIM 1 10242#define USE_XIM 1
11954_ACEOF 10243_ACEOF
11955 10244
11956 { echo "$as_me:$LINENO: checking for broken XIM callback" >&5 10245 { echo "$as_me:$LINENO: checking for broken XIM callback" >&5
11957echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; } 10246echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; }
11958if test "${rxvt_broken_ximcb+set}" = set; then 10247if test "${rxvt_cv_broken_ximcb+set}" = set; then
11959 echo $ECHO_N "(cached) $ECHO_C" >&6 10248 echo $ECHO_N "(cached) $ECHO_C" >&6
11960else 10249else
11961 cat >conftest.$ac_ext <<_ACEOF 10250 cat >conftest.$ac_ext <<_ACEOF
11962 10251
11963 #include <X11/Xlib.h> 10252 #include <X11/Xlib.h>
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); } && { 10275 (exit $ac_status); } && {
11987 test -z "$ac_cxx_werror_flag" || 10276 test -z "$ac_cxx_werror_flag" ||
11988 test ! -s conftest.err 10277 test ! -s conftest.err
11989 } && test -s conftest.$ac_objext; then 10278 } && test -s conftest.$ac_objext; then
11990 rxvt_broken_ximcb=yes 10279 rxvt_cv_broken_ximcb=yes
11991else 10280else
11992 echo "$as_me: failed program was:" >&5 10281 echo "$as_me: failed program was:" >&5
11993sed 's/^/| /' conftest.$ac_ext >&5 10282sed 's/^/| /' conftest.$ac_ext >&5
11994 10283
11995 rxvt_broken_ximcb=no 10284 rxvt_cv_broken_ximcb=no
11996fi 10285fi
11997 10286
11998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11999fi 10288fi
12000{ echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5 10289{ echo "$as_me:$LINENO: result: $rxvt_cv_broken_ximcb" >&5
12001echo "${ECHO_T}$rxvt_broken_ximcb" >&6; } 10290echo "${ECHO_T}$rxvt_cv_broken_ximcb" >&6; }
12002 10291
12003 if test x$rxvt_broken_ximcb = xyes; then 10292 if test x$rxvt_cv_broken_ximcb = xyes; then
12004 10293
12005cat >>confdefs.h <<\_ACEOF 10294cat >>confdefs.h <<\_ACEOF
12006#define XIMCB_PROTO_BROKEN 1 10295#define XIMCB_PROTO_BROKEN 1
12007_ACEOF 10296_ACEOF
12008 10297
12288 10577
12289 10578
12290 10579
12291 10580
12292 10581
10582
12293for ac_header in \ 10583for ac_header in \
12294 pty.h \ 10584 pty.h \
12295 util.h \ 10585 util.h \
12296 libutil.h \ 10586 libutil.h \
12297 sys/ioctl.h \ 10587 sys/ioctl.h \
12298 sys/stropts.h \ 10588 sys/stropts.h \
10589 stropts.h \
12299 10590
12300do 10591do
12301as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10592as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12302if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10593if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12303 { echo "$as_me:$LINENO: checking for $ac_header" >&5 10594 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12971echo "${ECHO_T}no" >&6; } 11262echo "${ECHO_T}no" >&6; }
12972fi 11263fi
12973 11264
12974 11265
12975 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then 11266 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
12976 LIBS="$LIBS `$PKG_CONFIG xft --libs`" 11267 X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS"
12977 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" 11268 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
12978 else 11269 else
12979 # Extract the first word of "xft-config", so it can be a program name with args. 11270 # Extract the first word of "xft-config", so it can be a program name with args.
12980set dummy xft-config; ac_word=$2 11271set dummy xft-config; ac_word=$2
12981{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11272{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13016echo "${ECHO_T}no" >&6; } 11307echo "${ECHO_T}no" >&6; }
13017fi 11308fi
13018 11309
13019 11310
13020 if test $XFT_CONFIG != no; then 11311 if test $XFT_CONFIG != no; then
13021 LIBS="$LIBS `$XFT_CONFIG --libs`" 11312 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
13022 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" 11313 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
13023 fi 11314 fi
13024 fi 11315 fi
13025 11316
11317 save_LIBS="$LIBS"
11318 LIBS="$LIBS $X_LIBS"
13026 11319
13027for ac_header in X11/Xft/Xft.h 11320for ac_header in X11/Xft/Xft.h
13028do 11321do
13029as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11322as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13030if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11323if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13163 support_xft=no 11456 support_xft=no
13164fi 11457fi
13165 11458
13166done 11459done
13167 11460
13168
13169{ echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 11461 { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
13170echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } 11462echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; }
13171if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then 11463if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then
13172 echo $ECHO_N "(cached) $ECHO_C" >&6 11464 echo $ECHO_N "(cached) $ECHO_C" >&6
13173else 11465else
13174 ac_check_lib_save_LIBS=$LIBS 11466 ac_check_lib_save_LIBS=$LIBS
13226LIBS=$ac_check_lib_save_LIBS 11518LIBS=$ac_check_lib_save_LIBS
13227fi 11519fi
13228{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 11520{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
13229echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } 11521echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; }
13230if test $ac_cv_lib_Xft_XftDrawString32 = yes; then 11522if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
13231 cat >>confdefs.h <<_ACEOF 11523 :
13232#define HAVE_LIBXFT 1
13233_ACEOF
13234
13235 LIBS="-lXft $LIBS"
13236
13237else 11524else
13238 support_xft=no 11525 support_xft=no
13239fi 11526fi
13240 11527
11528 LIBS="$save_LIBS"
13241 11529
13242 if test x$support_xft = xyes; then 11530 if test x$support_xft = xyes; then
13243 11531
13244cat >>confdefs.h <<\_ACEOF 11532cat >>confdefs.h <<\_ACEOF
13245#define XFT 1 11533#define XFT 1
13329_ACEOF 11617_ACEOF
13330 11618
13331fi 11619fi
13332 11620
13333 11621
11622scrolltypes=plain
11623
11624cat >>confdefs.h <<\_ACEOF
11625#define PLAIN_SCROLLBAR 1
11626_ACEOF
11627
11628
13334if test x$support_scroll_rxvt = xyes; then 11629if test x$support_scroll_rxvt = xyes; then
13335 11630
13336cat >>confdefs.h <<\_ACEOF 11631cat >>confdefs.h <<\_ACEOF
13337#define RXVT_SCROLLBAR 1 11632#define RXVT_SCROLLBAR 1
13338_ACEOF 11633_ACEOF
13339 11634
13340 scrolltypes="rxvt" 11635 scrolltypes="$scrolltypes rxvt"
13341fi 11636fi
13342if test x$support_scroll_next = xyes; then 11637if test x$support_scroll_next = xyes; then
13343 11638
13344cat >>confdefs.h <<\_ACEOF 11639cat >>confdefs.h <<\_ACEOF
13345#define NEXT_SCROLLBAR 1 11640#define NEXT_SCROLLBAR 1
13352cat >>confdefs.h <<\_ACEOF 11647cat >>confdefs.h <<\_ACEOF
13353#define XTERM_SCROLLBAR 1 11648#define XTERM_SCROLLBAR 1
13354_ACEOF 11649_ACEOF
13355 11650
13356 scrolltypes="$scrolltypes xterm" 11651 scrolltypes="$scrolltypes xterm"
13357fi
13358if test x$support_scroll_plain = xyes; then
13359
13360cat >>confdefs.h <<\_ACEOF
13361#define PLAIN_SCROLLBAR 1
13362_ACEOF
13363
13364 scrolltypes="$scrolltypes plain"
13365fi 11652fi
13366if test x$support_pointer_blank = xyes; then 11653if test x$support_pointer_blank = xyes; then
13367 11654
13368cat >>confdefs.h <<\_ACEOF 11655cat >>confdefs.h <<\_ACEOF
13369#define POINTER_BLANK 1 11656#define POINTER_BLANK 1
13632_ACEOF 11919_ACEOF
13633program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 11920program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
13634rm -f conftest.sed 11921rm -f conftest.sed
13635 11922
13636 11923
13637
13638
13639
13640if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
13641 include_stdint_h="#include <stdint.h>"
13642else
13643 include_stdint_h="/* #include <stdint.h> */"
13644fi
13645if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
13646 include_stdarg_h="#include <cstdarg>"
13647else
13648 include_stdarg_h="/* #include <cstdarg> */"
13649fi
13650if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
13651 include_stdlib_h="#include <cstdlib>"
13652else
13653 include_stdlib_h="/* #include <cstdlib> */"
13654fi
13655if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
13656 include_unistd_h="#include <unistd.h>"
13657else
13658 include_unistd_h="/* #include <unistd.h> */"
13659fi
13660if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
13661 include_string_h="#include <cstring>"
13662else
13663 include_string_h="/* #include <cstring> */"
13664fi
13665if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
13666 include_fcntl_h="#include <fcntl.h>"
13667else
13668 include_fcntl_h="/* #include <fcntl.h> */"
13669fi
13670if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
13671 include_util_h="#include <util.h>"
13672else
13673 include_util_h="/* #include <util.h> */"
13674fi
13675if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
13676 include_assert_h="#include <assert.h>"
13677else
13678 include_assert_h="/* #include <assert.h> */"
13679fi
13680if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
13681 include_sys_ioctl_h="#include <sys/ioctl.h>"
13682else
13683 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
13684fi
13685if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
13686 include_sys_select_h="#include <sys/select.h>"
13687else
13688 include_sys_select_h="/* #include <sys/select.h> */"
13689fi
13690if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
13691 include_sys_strredir_h="#include <sys/strredir.h>"
13692else
13693 include_sys_strredir_h="/* #include <sys/strredir.h> */"
13694fi
13695if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
13696 include_sys_time_h="#include <sys/time.h>"
13697else
13698 include_sys_time_h="/* #include <sys/time.h> */"
13699fi
13700if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
13701 include_time_h="#include <time.h>"
13702else
13703 include_time_h="/* #include <time.h> */"
13704fi
13705
13706ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" 11924ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile"
13707 11925
13708cat >confcache <<\_ACEOF 11926cat >confcache <<\_ACEOF
13709# This file is a shell script that caches the results of configure 11927# This file is a shell script that caches the results of configure
13710# tests run on this system so they can be shared between configure 11928# tests run on this system so they can be shared between configure
13711# scripts and configure runs, see configure's option --config-cache. 11929# scripts and configure runs, see configure's option --config-cache.
14260 case $ac_config_target in 12478 case $ac_config_target in
14261 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; 12479 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
14262 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12480 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14263 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 12481 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14264 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 12482 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14265 "src/rxvtlib.h") CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
14266 12483
14267 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 12484 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14268echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 12485echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14269 { (exit 1); exit 1; }; };; 12486 { (exit 1); exit 1; }; };;
14270 esac 12487 esac
14369host_cpu!$host_cpu$ac_delim 12586host_cpu!$host_cpu$ac_delim
14370host_vendor!$host_vendor$ac_delim 12587host_vendor!$host_vendor$ac_delim
14371host_os!$host_os$ac_delim 12588host_os!$host_os$ac_delim
14372VERSION!$VERSION$ac_delim 12589VERSION!$VERSION$ac_delim
14373DATE!$DATE$ac_delim 12590DATE!$DATE$ac_delim
14374LSMDATE!$LSMDATE$ac_delim
14375LIBVERSION!$LIBVERSION$ac_delim
14376CC!$CC$ac_delim 12591CC!$CC$ac_delim
14377CFLAGS!$CFLAGS$ac_delim 12592CFLAGS!$CFLAGS$ac_delim
14378LDFLAGS!$LDFLAGS$ac_delim 12593LDFLAGS!$LDFLAGS$ac_delim
14379CPPFLAGS!$CPPFLAGS$ac_delim 12594CPPFLAGS!$CPPFLAGS$ac_delim
14380ac_ct_CC!$ac_ct_CC$ac_delim 12595ac_ct_CC!$ac_ct_CC$ac_delim
14388INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 12603INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14389INSTALL_DATA!$INSTALL_DATA$ac_delim 12604INSTALL_DATA!$INSTALL_DATA$ac_delim
14390GREP!$GREP$ac_delim 12605GREP!$GREP$ac_delim
14391EGREP!$EGREP$ac_delim 12606EGREP!$EGREP$ac_delim
14392LINKER!$LINKER$ac_delim 12607LINKER!$LINKER$ac_delim
14393INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim
14394RXVTNAME!$RXVTNAME$ac_delim 12608RXVTNAME!$RXVTNAME$ac_delim
14395CXXCPP!$CXXCPP$ac_delim 12609CXXCPP!$CXXCPP$ac_delim
14396TIC!$TIC$ac_delim 12610TIC!$TIC$ac_delim
14397XMKMF!$XMKMF$ac_delim 12611XMKMF!$XMKMF$ac_delim
14398X_CFLAGS!$X_CFLAGS$ac_delim 12612X_CFLAGS!$X_CFLAGS$ac_delim
14399X_PRE_LIBS!$X_PRE_LIBS$ac_delim 12613X_PRE_LIBS!$X_PRE_LIBS$ac_delim
14400X_LIBS!$X_LIBS$ac_delim 12614X_LIBS!$X_LIBS$ac_delim
14401X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim 12615X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
14402afterimage_config!$afterimage_config$ac_delim 12616afterimage_config!$afterimage_config$ac_delim
14403rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim
14404rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim
14405rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim
14406rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim
14407rxvt_intp_define!$rxvt_intp_define$ac_delim
14408rxvt_u_intp_define!$rxvt_u_intp_define$ac_delim
14409PKG_CONFIG!$PKG_CONFIG$ac_delim 12617PKG_CONFIG!$PKG_CONFIG$ac_delim
14410XFT_CONFIG!$XFT_CONFIG$ac_delim 12618XFT_CONFIG!$XFT_CONFIG$ac_delim
14411PERL!$PERL$ac_delim 12619PERL!$PERL$ac_delim
14412PERLLIB!$PERLLIB$ac_delim 12620PERLLIB!$PERLLIB$ac_delim
14413PERLFLAGS!$PERLFLAGS$ac_delim 12621PERLFLAGS!$PERLFLAGS$ac_delim
14414PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim 12622PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim
14415IF_PERL!$IF_PERL$ac_delim 12623IF_PERL!$IF_PERL$ac_delim
14416PERL_O!$PERL_O$ac_delim 12624PERL_O!$PERL_O$ac_delim
14417AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim 12625AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim
14418AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim 12626AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim
14419include_stdint_h!$include_stdint_h$ac_delim 12627LIBOBJS!$LIBOBJS$ac_delim
14420include_stdarg_h!$include_stdarg_h$ac_delim 12628LTLIBOBJS!$LTLIBOBJS$ac_delim
14421include_stdlib_h!$include_stdlib_h$ac_delim
14422include_unistd_h!$include_unistd_h$ac_delim
14423include_string_h!$include_string_h$ac_delim
14424_ACEOF 12629_ACEOF
14425 12630
14426 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 12631 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 85; then
14427 break 12632 break
14428 elif $ac_last_try; then 12633 elif $ac_last_try; then
14429 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 12634 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14430echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 12635echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14431 { (exit 1); exit 1; }; } 12636 { (exit 1); exit 1; }; }
14440 ac_eof=`expr $ac_eof + 1` 12645 ac_eof=`expr $ac_eof + 1`
14441fi 12646fi
14442 12647
14443cat >>$CONFIG_STATUS <<_ACEOF 12648cat >>$CONFIG_STATUS <<_ACEOF
14444cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 12649cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14445/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14446_ACEOF
14447sed '
14448s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14449s/^/s,@/; s/!/@,|#_!!_#|/
14450:n
14451t n
14452s/'"$ac_delim"'$/,g/; t
14453s/$/\\/; p
14454N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14455' >>$CONFIG_STATUS <conf$$subs.sed
14456rm -f conf$$subs.sed
14457cat >>$CONFIG_STATUS <<_ACEOF
14458CEOF$ac_eof
14459_ACEOF
14460
14461
14462ac_delim='%!_!# '
14463for ac_last_try in false false false false false :; do
14464 cat >conf$$subs.sed <<_ACEOF
14465include_fcntl_h!$include_fcntl_h$ac_delim
14466include_util_h!$include_util_h$ac_delim
14467include_assert_h!$include_assert_h$ac_delim
14468include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim
14469include_sys_select_h!$include_sys_select_h$ac_delim
14470include_sys_strredir_h!$include_sys_strredir_h$ac_delim
14471include_sys_time_h!$include_sys_time_h$ac_delim
14472include_time_h!$include_time_h$ac_delim
14473LIBOBJS!$LIBOBJS$ac_delim
14474LTLIBOBJS!$LTLIBOBJS$ac_delim
14475_ACEOF
14476
14477 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
14478 break
14479 elif $ac_last_try; then
14480 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14481echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14482 { (exit 1); exit 1; }; }
14483 else
14484 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14485 fi
14486done
14487
14488ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14489if test -n "$ac_eof"; then
14490 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14491 ac_eof=`expr $ac_eof + 1`
14492fi
14493
14494cat >>$CONFIG_STATUS <<_ACEOF
14495cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
14496/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 12650/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14497_ACEOF 12651_ACEOF
14498sed ' 12652sed '
14499s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 12653s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14500s/^/s,@/; s/!/@,|#_!!_#|/ 12654s/^/s,@/; s/!/@,|#_!!_#|/
14753s&@builddir@&$ac_builddir&;t t 12907s&@builddir@&$ac_builddir&;t t
14754s&@abs_builddir@&$ac_abs_builddir&;t t 12908s&@abs_builddir@&$ac_abs_builddir&;t t
14755s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12909s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14756s&@INSTALL@&$ac_INSTALL&;t t 12910s&@INSTALL@&$ac_INSTALL&;t t
14757$ac_datarootdir_hack 12911$ac_datarootdir_hack
14758" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 12912" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
14759 12913
14760test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12914test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14761 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 12915 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14762 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 12916 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14763 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12917 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines