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

Comparing rxvt-unicode/configure (file contents):
Revision 1.109 by root, Wed Aug 1 18:38:15 2007 UTC vs.
Revision 1.127 by root, Mon May 5 16:51:52 2008 UTC

658host_cpu 658host_cpu
659host_vendor 659host_vendor
660host_os 660host_os
661VERSION 661VERSION
662DATE 662DATE
663LSMDATE
664LIBVERSION
665CC 663CC
666CFLAGS 664CFLAGS
667LDFLAGS 665LDFLAGS
668CPPFLAGS 666CPPFLAGS
669ac_ct_CC 667ac_ct_CC
677INSTALL_SCRIPT 675INSTALL_SCRIPT
678INSTALL_DATA 676INSTALL_DATA
679GREP 677GREP
680EGREP 678EGREP
681LINKER 679LINKER
682INSTALL_LIBRXVT
683RXVTNAME 680RXVTNAME
681CXXCPP
684TIC 682TIC
685XMKMF 683XMKMF
686CXXCPP
687X_CFLAGS 684X_CFLAGS
688X_PRE_LIBS 685X_PRE_LIBS
689X_LIBS 686X_LIBS
690X_EXTRA_LIBS 687X_EXTRA_LIBS
691afterimage_config 688afterimage_config
692XPM_CPPFLAGS
693XPM_CFLAGS
694XPM_LIBS
695rxvt_int16_typedef
696rxvt_uint16_typedef
697rxvt_int32_typedef
698rxvt_uint32_typedef
699rxvt_intp_define
700rxvt_u_intp_define
701PKG_CONFIG 689PKG_CONFIG
702XFT_CONFIG 690XFT_CONFIG
703PERL 691PERL
704PERLLIB 692PERLLIB
705PERLFLAGS 693PERLFLAGS
706PERLPRIVLIBEXP 694PERLPRIVLIBEXP
707IF_PERL 695IF_PERL
708PERL_O 696PERL_O
709AFTERIMAGE_CFLAGS 697AFTERIMAGE_CFLAGS
710AFTERIMAGE_LIBS 698AFTERIMAGE_LIBS
711include_stdint_h
712include_stdarg_h
713include_stdlib_h
714include_unistd_h
715include_string_h
716include_fcntl_h
717include_util_h
718include_assert_h
719include_sys_ioctl_h
720include_sys_select_h
721include_sys_strredir_h
722include_sys_time_h
723include_time_h
724LIBOBJS 699LIBOBJS
725LTLIBOBJS' 700LTLIBOBJS'
726ac_subst_files='' 701ac_subst_files=''
727 ac_precious_vars='build_alias 702 ac_precious_vars='build_alias
728host_alias 703host_alias
734CPPFLAGS 709CPPFLAGS
735CXX 710CXX
736CXXFLAGS 711CXXFLAGS
737CCC 712CCC
738CPP 713CPP
739XMKMF
740CXXCPP' 714CXXCPP
715XMKMF'
741 716
742 717
743# Initialize some variables set by options. 718# Initialize some variables set by options.
744ac_init_help= 719ac_init_help=
745ac_init_version=false 720ac_init_version=false
1318 1293
1319Optional Features: 1294Optional Features:
1320 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1295 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1321 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1296 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1322 --enable-everything enable standard non-multichoice features 1297 --enable-everything enable standard non-multichoice features
1323 NOTE: this option is order dependent 1298 NOTE: this option is order dependent
1324 NOTE: automatically enabled with --enable-shared 1299 --enable-warnings turn on g++ warnings
1325 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters 1300 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1326 --enable-combining enable composition of base and combining characters 1301 --enable-combining enable composition of base and combining characters
1327 --enable-xft enable xft support on systems that have it 1302 --enable-xft enable xft support on systems that have it
1328 --enable-font-styles enable bold and italic support 1303 --enable-font-styles enable bold and italic support
1329 --enable-xpm-background enable background pixmaps
1330 --enable-afterimage enable integration with libAfterImage for background images 1304 --enable-afterimage enable integration with libAfterImage for background images
1331 --enable-transparency enable transparent backgrounds 1305 --enable-transparency enable transparent backgrounds
1332 --enable-tinting enable tinting of transparent bg
1333 --enable-fading enable colors fading when off focus 1306 --enable-fading enable colors fading when off focus
1334 --enable-rxvt-scroll enable rxvt style scrollbar 1307 --enable-rxvt-scroll enable rxvt style scrollbar
1335 --enable-next-scroll enable NeXT style scrollbar 1308 --enable-next-scroll enable NeXT style scrollbar
1336 --enable-xterm-scroll enable Xterm style scrollbar 1309 --enable-xterm-scroll enable Xterm style scrollbar
1337 --enable-perl enable embedded perl interpreter 1310 --enable-perl enable embedded perl interpreter
1338 --enable-plain-scroll enable plain style scrollbar
1339 --enable-xim XIM (X Input Method) protocol support 1311 --enable-xim XIM (X Input Method) protocol support
1340 --disable-backspace-key disable handling of the backspace key 1312 --disable-backspace-key disable handling of the backspace key
1341 --disable-delete-key disable handling of the delete key 1313 --disable-delete-key disable handling of the delete key
1342 --disable-resources disable all resource checking 1314 --disable-resources disable all resource checking
1343 --enable-8bitctrls enable 8 bit control sequences (not recommended) 1315 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1344 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) 1316 --enable-fallback[=CLASS] fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
1345 --disable-swapscreen disable swap screen support 1317 --disable-swapscreen disable swap screen support
1346 --enable-iso14755 enable support for extended ISO 14755 modes 1318 --enable-iso14755 enable support for extended ISO 14755 modes
1347 --enable-frills enable support for rarely used features 1319 --enable-frills enable support for rarely used features
1348 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 1320 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1349 --enable-selectionscrolling enable scrolling during selections 1321 --enable-selectionscrolling enable scrolling during selections
1350 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 1322 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1351 --enable-slipwheeling enable slip wheel scrolling (requires previous) 1323 --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel)
1352 --enable-smart-resize enable smart growth/shrink behaviour 1324 --enable-smart-resize enable smart growth/shrink behaviour
1353 --enable-text-blink enable blinking text 1325 --enable-text-blink enable blinking text
1354 --enable-pointer-blank enable pointer blank when typing or inactive pointer 1326 --enable-pointer-blank enable pointer blank when typing or inactive pointer
1355 --enable-utmp enable utmp (utmpx) support 1327 --enable-utmp enable utmp (utmpx) support
1356 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) 1328 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1358 1330
1359Optional Packages: 1331Optional Packages:
1360 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1332 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1361 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1333 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1362 --with-afterimage-config=DIR use libAfterImage config script in DIR 1334 --with-afterimage-config=DIR use libAfterImage config script in DIR
1363 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) 1335 --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
1364 --with-res-name=NAME use this as default resource name (default: urxvt) 1336 --with-res-name=NAME use this as default resource name (default: urxvt)
1365 --with-res-class=CLASS use this as the resource class (default: URxvt) 1337 --with-res-class=CLASS use this as the resource class (default: URxvt)
1366 --with-name=NAME set the basename for the installed binaries (default: urxvt) 1338 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1367 --with-term=NAME set the terminal to NAME (default: rxvt) 1339 --with-term=NAME set the terminal to NAME (default: rxvt)
1368 --with-terminfo=PATH set the path to the terminfo tree to PATH 1340 --with-terminfo=PATH set the path to the terminfo tree to PATH
1369 --with-x use the X Window System 1341 --with-x use the X Window System
1370 --with-xpm-includes=DIR use XPM includes in DIR
1371 --with-xpm-library=DIR use XPM library in DIR
1372 --with-xpm use XPM
1373 1342
1374Some influential environment variables: 1343Some influential environment variables:
1375 CC C compiler command 1344 CC C compiler command
1376 CFLAGS C compiler flags 1345 CFLAGS C compiler flags
1377 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1346 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1380 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1349 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1381 you have headers in a nonstandard directory <include dir> 1350 you have headers in a nonstandard directory <include dir>
1382 CXX C++ compiler command 1351 CXX C++ compiler command
1383 CXXFLAGS C++ compiler flags 1352 CXXFLAGS C++ compiler flags
1384 CPP C preprocessor 1353 CPP C preprocessor
1354 CXXCPP C++ preprocessor
1385 XMKMF Path to xmkmf, Makefile generator for X Window System 1355 XMKMF Path to xmkmf, Makefile generator for X Window System
1386 CXXCPP C++ preprocessor
1387 1356
1388Use these variables to override the choices made by `configure' or to help 1357Use these variables to override the choices made by `configure' or to help
1389it to find libraries and programs with nonstandard names/locations. 1358it to find libraries and programs with nonstandard names/locations.
1390 1359
1391_ACEOF 1360_ACEOF
1927 1896
1928 1897
1929 1898
1930VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1899VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1931DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1900DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1901
1932echo "" 1902echo ""
1933echo "configuring for rxvt $VERSION" 1903echo "configuring for rxvt $VERSION"
1934echo "" 1904echo ""
1935 1905
1936orig_CXXFLAGS="$CXXFLAGS" 1906orig_CXXFLAGS="$CXXFLAGS"
1937
1938 1907
1939ac_ext=c 1908ac_ext=c
1940ac_cpp='$CPP $CPPFLAGS' 1909ac_cpp='$CPP $CPPFLAGS'
1941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3721echo "${ECHO_T}no" >&6; } 3690echo "${ECHO_T}no" >&6; }
3722fi 3691fi
3723rm -f conftest* 3692rm -f conftest*
3724 3693
3725 3694
3695
3696cat >>confdefs.h <<\_ACEOF
3697#define _GNU_SOURCE 1
3698_ACEOF
3699
3700
3726{ echo "$as_me:$LINENO: checking for library containing strerror" >&5 3701{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
3727echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } 3702echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3728if test "${ac_cv_search_strerror+set}" = set; then 3703if test "${ac_cv_search_strerror+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6 3704 echo $ECHO_N "(cached) $ECHO_C" >&6
3730else 3705else
3877LINKER=$LINKER 3852LINKER=$LINKER
3878 3853
3879 3854
3880if test -z "$orig_CXXFLAGS"; then 3855if test -z "$orig_CXXFLAGS"; then
3881 if test x$GCC = xyes && test "x$GXX" = xyes; then 3856 if test x$GCC = xyes && test "x$GXX" = xyes; then
3882 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" 3857 CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs"
3883 cat >conftest.$ac_ext <<_ACEOF 3858 cat >conftest.$ac_ext <<_ACEOF
3884/* confdefs.h. */ 3859/* confdefs.h. */
3885_ACEOF 3860_ACEOF
3886cat confdefs.h >>conftest.$ac_ext 3861cat confdefs.h >>conftest.$ac_ext
3887cat >>conftest.$ac_ext <<_ACEOF 3862cat >>conftest.$ac_ext <<_ACEOF
3925 CXXFLAGS="-O" 3900 CXXFLAGS="-O"
3926 fi 3901 fi
3927 CFLAGS="$CXXFLAGS" 3902 CFLAGS="$CXXFLAGS"
3928fi 3903fi
3929 3904
3930
3931cat >>confdefs.h <<\_ACEOF
3932#define _GNU_SOURCE 1
3933_ACEOF
3934
3935
3936case $host in 3905case $host in
3937 *-*-solaris* ) 3906 *-*-solaris* )
3938 3907
3939cat >>confdefs.h <<\_ACEOF 3908cat >>confdefs.h <<\_ACEOF
3940#define _XOPEN_SOURCE 500 3909#define _XOPEN_SOURCE 500
3941_ACEOF 3910_ACEOF
3942 3911
3943 ;; 3912 ;;
3944esac 3913esac
3945
3946 3914
3947{ echo "$as_me:$LINENO: checking for setlocale" >&5 3915{ echo "$as_me:$LINENO: checking for setlocale" >&5
3948echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } 3916echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; }
3949if test "${ac_cv_func_setlocale+set}" = set; then 3917if test "${ac_cv_func_setlocale+set}" = set; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6 3918 echo $ECHO_N "(cached) $ECHO_C" >&6
4397fi 4365fi
4398 4366
4399fi 4367fi
4400 4368
4401 4369
4402
4403support_frills=yes 4370support_frills=yes
4404support_inheritpixmap=yes 4371support_inheritpixmap=yes
4405support_tinting=yes
4406support_fading=yes 4372support_fading=yes
4407support_keepscrolling=yes 4373support_keepscrolling=yes
4408support_selectionscrolling=yes 4374support_selectionscrolling=yes
4409support_mousewheel=yes 4375support_mousewheel=yes
4410support_mouseslipwheel=yes 4376support_mouseslipwheel=yes
4411support_text_blink=yes 4377support_text_blink=yes
4412support_pointer_blank=yes 4378support_pointer_blank=yes
4413support_scroll_rxvt=yes 4379support_scroll_rxvt=yes
4414support_scroll_next=yes 4380support_scroll_next=yes
4415support_scroll_xterm=yes 4381support_scroll_xterm=yes
4416support_scroll_plain=yes
4417support_xim=yes 4382support_xim=yes
4418support_xpm=yes
4419support_afterimage=yes 4383support_afterimage=yes
4420support_afterstep=yes 4384support_afterstep=yes
4421support_xft=yes 4385support_xft=yes
4422support_unicode3=no 4386support_unicode3=no
4423support_combining=yes 4387support_combining=yes
4426support_styles=yes 4390support_styles=yes
4427support_perl=yes 4391support_perl=yes
4428codesets=all 4392codesets=all
4429 4393
4430 4394
4431if test "x$enable_shared" = xyes; then
4432
4433cat >>confdefs.h <<\_ACEOF
4434#define LIBRXVT 1
4435_ACEOF
4436
4437 INSTALL_LIBRXVT=yes
4438fi
4439
4440
4441# Check whether --enable-everything was given. 4395# Check whether --enable-everything was given.
4442if test "${enable_everything+set}" = set; then 4396if test "${enable_everything+set}" = set; then
4443 enableval=$enable_everything; 4397 enableval=$enable_everything;
4444 if test x$enableval = xno; then 4398 if test x$enableval = xno; then
4445 support_frills=no 4399 support_frills=no
4446 support_inheritpixmap=no 4400 support_inheritpixmap=no
4447 support_tinting=no
4448 support_fading=no 4401 support_fading=no
4449 support_keepscrolling=no 4402 support_keepscrolling=no
4450 support_selectionscrolling=no 4403 support_selectionscrolling=no
4451 support_lastlog=no 4404 support_lastlog=no
4452 support_mousewheel=no 4405 support_mousewheel=no
4454 support_text_blink=no 4407 support_text_blink=no
4455 support_pointer_blank=no 4408 support_pointer_blank=no
4456 support_scroll_rxvt=no 4409 support_scroll_rxvt=no
4457 support_scroll_next=no 4410 support_scroll_next=no
4458 support_scroll_xterm=no 4411 support_scroll_xterm=no
4459 support_scroll_plain=no
4460 support_utmp=no 4412 support_utmp=no
4461 support_wtmp=no 4413 support_wtmp=no
4462 support_xim=no 4414 support_xim=no
4463 support_xpm=no
4464 support_afterimage=no 4415 support_afterimage=no
4465 support_afterstep=no 4416 support_afterstep=no
4466 support_xft=no 4417 support_xft=no
4467 support_unicode3=no 4418 support_unicode3=no
4468 support_combining=no 4419 support_combining=no
4473 codesets= 4424 codesets=
4474 fi 4425 fi
4475 if test x$enableval = xyes; then 4426 if test x$enableval = xyes; then
4476 support_frills=yes 4427 support_frills=yes
4477 support_inheritpixmap=yes 4428 support_inheritpixmap=yes
4478 support_tinting=yes
4479 support_fading=yes 4429 support_fading=yes
4480 support_keepscrolling=yes 4430 support_keepscrolling=yes
4481 support_selectionscrolling=yes 4431 support_selectionscrolling=yes
4482 support_lastlog=yes 4432 support_lastlog=yes
4483 support_mousewheel=yes 4433 support_mousewheel=yes
4485 support_text_blink=yes 4435 support_text_blink=yes
4486 support_pointer_blank=yes 4436 support_pointer_blank=yes
4487 support_scroll_rxvt=yes 4437 support_scroll_rxvt=yes
4488 support_scroll_next=yes 4438 support_scroll_next=yes
4489 support_scroll_xterm=yes 4439 support_scroll_xterm=yes
4490 support_scroll_plain=yes
4491 support_utmp=yes 4440 support_utmp=yes
4492 support_wtmp=yes 4441 support_wtmp=yes
4493 support_xim=yes 4442 support_xim=yes
4494 support_xpm=yes
4495 support_afterimage=yes 4443 support_afterimage=yes
4496 support_afterstep=yes 4444 support_afterstep=yes
4497 support_xft=yes 4445 support_xft=yes
4498 support_unicode3=yes 4446 support_unicode3=yes
4499 support_combining=yes 4447 support_combining=yes
4505 fi 4453 fi
4506 4454
4507fi 4455fi
4508 4456
4509 4457
4458WARNINGS=no
4459# Check whether --enable-warnings was given.
4460if test "${enable_warnings+set}" = set; then
4461 enableval=$enable_warnings; if test x$enableval = xyes; then
4462 WARNINGS=yes
4463 fi
4464fi
4465
4466if test x$GXX = xyes; then
4467 if test $WARNINGS = yes; then
4468 save_CXXFLAGS="$CXXFLAGS"
4469 CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-non-virtual-dtor"
4470 cat >conftest.$ac_ext <<_ACEOF
4471/* confdefs.h. */
4472_ACEOF
4473cat confdefs.h >>conftest.$ac_ext
4474cat >>conftest.$ac_ext <<_ACEOF
4475/* end confdefs.h. */
4476
4477int
4478main ()
4479{
4480
4481 ;
4482 return 0;
4483}
4484_ACEOF
4485rm -f conftest.$ac_objext
4486if { (ac_try="$ac_compile"
4487case "(($ac_try" in
4488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4489 *) ac_try_echo=$ac_try;;
4490esac
4491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4492 (eval "$ac_compile") 2>conftest.er1
4493 ac_status=$?
4494 grep -v '^ *+' conftest.er1 >conftest.err
4495 rm -f conftest.er1
4496 cat conftest.err >&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); } && {
4499 test -z "$ac_cxx_werror_flag" ||
4500 test ! -s conftest.err
4501 } && test -s conftest.$ac_objext; then
4502 :
4503else
4504 echo "$as_me: failed program was:" >&5
4505sed 's/^/| /' conftest.$ac_ext >&5
4506
4507 CXXFLAGS="$save_CXXFLAGS"
4508fi
4509
4510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4511 else
4512 CXXFLAGS="$CXXFLAGS -w"
4513 fi
4514fi
4515
4510# Check whether --enable-unicode3 was given. 4516# Check whether --enable-unicode3 was given.
4511if test "${enable_unicode3+set}" = set; then 4517if test "${enable_unicode3+set}" = set; then
4512 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then 4518 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then
4513 support_unicode3=$enableval 4519 support_unicode3=$enableval
4514 fi 4520 fi
4537 support_styles=$enableval 4543 support_styles=$enableval
4538 fi 4544 fi
4539fi 4545fi
4540 4546
4541 4547
4542# Check whether --enable-xpm-background was given.
4543if test "${enable_xpm_background+set}" = set; then
4544 enableval=$enable_xpm_background; if test x$enableval = xyes -o x$enableval = xno; then
4545 support_xpm=$enableval
4546 fi
4547fi
4548
4549
4550# Check whether --enable-afterimage was given. 4548# Check whether --enable-afterimage was given.
4551if test "${enable_afterimage+set}" = set; then 4549if test "${enable_afterimage+set}" = set; then
4552 enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then 4550 enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then
4553 support_afterimage=$enableval 4551 support_afterimage=$enableval
4554 fi 4552 fi
4571 support_inheritpixmap=$enableval 4569 support_inheritpixmap=$enableval
4572 fi 4570 fi
4573fi 4571fi
4574 4572
4575 4573
4576# Check whether --enable-tinting was given.
4577if test "${enable_tinting+set}" = set; then
4578 enableval=$enable_tinting; if test x$enableval = xyes -o x$enableval = xno; then
4579 support_tinting=$enableval
4580 fi
4581fi
4582
4583
4584# Check whether --enable-fading was given. 4574# Check whether --enable-fading was given.
4585if test "${enable_fading+set}" = set; then 4575if test "${enable_fading+set}" = set; then
4586 enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then 4576 enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then
4587 support_fading=$enableval 4577 support_fading=$enableval
4588 fi 4578 fi
4615 4605
4616# Check whether --enable-perl was given. 4606# Check whether --enable-perl was given.
4617if test "${enable_perl+set}" = set; then 4607if test "${enable_perl+set}" = set; then
4618 enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then 4608 enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then
4619 support_perl=$enableval 4609 support_perl=$enableval
4620 fi
4621fi
4622
4623
4624# Check whether --enable-plain-scroll was given.
4625if test "${enable_plain_scroll+set}" = set; then
4626 enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4627 support_scroll_plain=$enableval
4628 fi 4610 fi
4629fi 4611fi
4630 4612
4631 4613
4632 4614
4859#define RXVT_TERMINFO "$withval" 4841#define RXVT_TERMINFO "$withval"
4860_ACEOF 4842_ACEOF
4861 terminfo="$withval" 4843 terminfo="$withval"
4862 fi 4844 fi
4863fi 4845fi
4846
4847
4848
4849LIBEV_M4_AVOID_LIBRT=1
4850
4851ac_ext=cpp
4852ac_cpp='$CXXCPP $CPPFLAGS'
4853ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4854ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4855ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4856{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4857echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4858if test -z "$CXXCPP"; then
4859 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4860 echo $ECHO_N "(cached) $ECHO_C" >&6
4861else
4862 # Double quotes because CXXCPP needs to be expanded
4863 for CXXCPP in "$CXX -E" "/lib/cpp"
4864 do
4865 ac_preproc_ok=false
4866for ac_cxx_preproc_warn_flag in '' yes
4867do
4868 # Use a header file that comes with gcc, so configuring glibc
4869 # with a fresh cross-compiler works.
4870 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4871 # <limits.h> exists even on freestanding compilers.
4872 # On the NeXT, cc -E runs the code through the compiler's parser,
4873 # not just through cpp. "Syntax error" is here to catch this case.
4874 cat >conftest.$ac_ext <<_ACEOF
4875/* confdefs.h. */
4876_ACEOF
4877cat confdefs.h >>conftest.$ac_ext
4878cat >>conftest.$ac_ext <<_ACEOF
4879/* end confdefs.h. */
4880#ifdef __STDC__
4881# include <limits.h>
4882#else
4883# include <assert.h>
4884#endif
4885 Syntax error
4886_ACEOF
4887if { (ac_try="$ac_cpp conftest.$ac_ext"
4888case "(($ac_try" in
4889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4890 *) ac_try_echo=$ac_try;;
4891esac
4892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4894 ac_status=$?
4895 grep -v '^ *+' conftest.er1 >conftest.err
4896 rm -f conftest.er1
4897 cat conftest.err >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); } >/dev/null && {
4900 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4901 test ! -s conftest.err
4902 }; then
4903 :
4904else
4905 echo "$as_me: failed program was:" >&5
4906sed 's/^/| /' conftest.$ac_ext >&5
4907
4908 # Broken: fails on valid input.
4909continue
4910fi
4911
4912rm -f conftest.err conftest.$ac_ext
4913
4914 # OK, works on sane cases. Now check whether nonexistent headers
4915 # can be detected and how.
4916 cat >conftest.$ac_ext <<_ACEOF
4917/* confdefs.h. */
4918_ACEOF
4919cat confdefs.h >>conftest.$ac_ext
4920cat >>conftest.$ac_ext <<_ACEOF
4921/* end confdefs.h. */
4922#include <ac_nonexistent.h>
4923_ACEOF
4924if { (ac_try="$ac_cpp conftest.$ac_ext"
4925case "(($ac_try" in
4926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4927 *) ac_try_echo=$ac_try;;
4928esac
4929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4931 ac_status=$?
4932 grep -v '^ *+' conftest.er1 >conftest.err
4933 rm -f conftest.er1
4934 cat conftest.err >&5
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); } >/dev/null && {
4937 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4938 test ! -s conftest.err
4939 }; then
4940 # Broken: success on invalid input.
4941continue
4942else
4943 echo "$as_me: failed program was:" >&5
4944sed 's/^/| /' conftest.$ac_ext >&5
4945
4946 # Passes both tests.
4947ac_preproc_ok=:
4948break
4949fi
4950
4951rm -f conftest.err conftest.$ac_ext
4952
4953done
4954# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4955rm -f conftest.err conftest.$ac_ext
4956if $ac_preproc_ok; then
4957 break
4958fi
4959
4960 done
4961 ac_cv_prog_CXXCPP=$CXXCPP
4962
4963fi
4964 CXXCPP=$ac_cv_prog_CXXCPP
4965else
4966 ac_cv_prog_CXXCPP=$CXXCPP
4967fi
4968{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
4969echo "${ECHO_T}$CXXCPP" >&6; }
4970ac_preproc_ok=false
4971for ac_cxx_preproc_warn_flag in '' yes
4972do
4973 # Use a header file that comes with gcc, so configuring glibc
4974 # with a fresh cross-compiler works.
4975 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4976 # <limits.h> exists even on freestanding compilers.
4977 # On the NeXT, cc -E runs the code through the compiler's parser,
4978 # not just through cpp. "Syntax error" is here to catch this case.
4979 cat >conftest.$ac_ext <<_ACEOF
4980/* confdefs.h. */
4981_ACEOF
4982cat confdefs.h >>conftest.$ac_ext
4983cat >>conftest.$ac_ext <<_ACEOF
4984/* end confdefs.h. */
4985#ifdef __STDC__
4986# include <limits.h>
4987#else
4988# include <assert.h>
4989#endif
4990 Syntax error
4991_ACEOF
4992if { (ac_try="$ac_cpp conftest.$ac_ext"
4993case "(($ac_try" in
4994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4995 *) ac_try_echo=$ac_try;;
4996esac
4997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4999 ac_status=$?
5000 grep -v '^ *+' conftest.er1 >conftest.err
5001 rm -f conftest.er1
5002 cat conftest.err >&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); } >/dev/null && {
5005 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5006 test ! -s conftest.err
5007 }; then
5008 :
5009else
5010 echo "$as_me: failed program was:" >&5
5011sed 's/^/| /' conftest.$ac_ext >&5
5012
5013 # Broken: fails on valid input.
5014continue
5015fi
5016
5017rm -f conftest.err conftest.$ac_ext
5018
5019 # OK, works on sane cases. Now check whether nonexistent headers
5020 # can be detected and how.
5021 cat >conftest.$ac_ext <<_ACEOF
5022/* confdefs.h. */
5023_ACEOF
5024cat confdefs.h >>conftest.$ac_ext
5025cat >>conftest.$ac_ext <<_ACEOF
5026/* end confdefs.h. */
5027#include <ac_nonexistent.h>
5028_ACEOF
5029if { (ac_try="$ac_cpp conftest.$ac_ext"
5030case "(($ac_try" in
5031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5032 *) ac_try_echo=$ac_try;;
5033esac
5034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5036 ac_status=$?
5037 grep -v '^ *+' conftest.er1 >conftest.err
5038 rm -f conftest.er1
5039 cat conftest.err >&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); } >/dev/null && {
5042 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5043 test ! -s conftest.err
5044 }; then
5045 # Broken: success on invalid input.
5046continue
5047else
5048 echo "$as_me: failed program was:" >&5
5049sed 's/^/| /' conftest.$ac_ext >&5
5050
5051 # Passes both tests.
5052ac_preproc_ok=:
5053break
5054fi
5055
5056rm -f conftest.err conftest.$ac_ext
5057
5058done
5059# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5060rm -f conftest.err conftest.$ac_ext
5061if $ac_preproc_ok; then
5062 :
5063else
5064 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5065See \`config.log' for more details." >&5
5066echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5067See \`config.log' for more details." >&2;}
5068 { (exit 1); exit 1; }; }
5069fi
5070
5071ac_ext=cpp
5072ac_cpp='$CXXCPP $CPPFLAGS'
5073ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5074ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5075ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5076
5077
5078{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5079echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5080if test "${ac_cv_header_stdc+set}" = set; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5082else
5083 cat >conftest.$ac_ext <<_ACEOF
5084/* confdefs.h. */
5085_ACEOF
5086cat confdefs.h >>conftest.$ac_ext
5087cat >>conftest.$ac_ext <<_ACEOF
5088/* end confdefs.h. */
5089#include <stdlib.h>
5090#include <stdarg.h>
5091#include <string.h>
5092#include <float.h>
5093
5094int
5095main ()
5096{
5097
5098 ;
5099 return 0;
5100}
5101_ACEOF
5102rm -f conftest.$ac_objext
5103if { (ac_try="$ac_compile"
5104case "(($ac_try" in
5105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5106 *) ac_try_echo=$ac_try;;
5107esac
5108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5109 (eval "$ac_compile") 2>conftest.er1
5110 ac_status=$?
5111 grep -v '^ *+' conftest.er1 >conftest.err
5112 rm -f conftest.er1
5113 cat conftest.err >&5
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); } && {
5116 test -z "$ac_cxx_werror_flag" ||
5117 test ! -s conftest.err
5118 } && test -s conftest.$ac_objext; then
5119 ac_cv_header_stdc=yes
5120else
5121 echo "$as_me: failed program was:" >&5
5122sed 's/^/| /' conftest.$ac_ext >&5
5123
5124 ac_cv_header_stdc=no
5125fi
5126
5127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5128
5129if test $ac_cv_header_stdc = yes; then
5130 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5131 cat >conftest.$ac_ext <<_ACEOF
5132/* confdefs.h. */
5133_ACEOF
5134cat confdefs.h >>conftest.$ac_ext
5135cat >>conftest.$ac_ext <<_ACEOF
5136/* end confdefs.h. */
5137#include <string.h>
5138
5139_ACEOF
5140if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5141 $EGREP "memchr" >/dev/null 2>&1; then
5142 :
5143else
5144 ac_cv_header_stdc=no
5145fi
5146rm -f conftest*
5147
5148fi
5149
5150if test $ac_cv_header_stdc = yes; then
5151 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5152 cat >conftest.$ac_ext <<_ACEOF
5153/* confdefs.h. */
5154_ACEOF
5155cat confdefs.h >>conftest.$ac_ext
5156cat >>conftest.$ac_ext <<_ACEOF
5157/* end confdefs.h. */
5158#include <stdlib.h>
5159
5160_ACEOF
5161if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5162 $EGREP "free" >/dev/null 2>&1; then
5163 :
5164else
5165 ac_cv_header_stdc=no
5166fi
5167rm -f conftest*
5168
5169fi
5170
5171if test $ac_cv_header_stdc = yes; then
5172 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5173 if test "$cross_compiling" = yes; then
5174 :
5175else
5176 cat >conftest.$ac_ext <<_ACEOF
5177/* confdefs.h. */
5178_ACEOF
5179cat confdefs.h >>conftest.$ac_ext
5180cat >>conftest.$ac_ext <<_ACEOF
5181/* end confdefs.h. */
5182#include <ctype.h>
5183#include <stdlib.h>
5184#if ((' ' & 0x0FF) == 0x020)
5185# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5186# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5187#else
5188# define ISLOWER(c) \
5189 (('a' <= (c) && (c) <= 'i') \
5190 || ('j' <= (c) && (c) <= 'r') \
5191 || ('s' <= (c) && (c) <= 'z'))
5192# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5193#endif
5194
5195#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5196int
5197main ()
5198{
5199 int i;
5200 for (i = 0; i < 256; i++)
5201 if (XOR (islower (i), ISLOWER (i))
5202 || toupper (i) != TOUPPER (i))
5203 return 2;
5204 return 0;
5205}
5206_ACEOF
5207rm -f conftest$ac_exeext
5208if { (ac_try="$ac_link"
5209case "(($ac_try" in
5210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5211 *) ac_try_echo=$ac_try;;
5212esac
5213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5214 (eval "$ac_link") 2>&5
5215 ac_status=$?
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5218 { (case "(($ac_try" in
5219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5220 *) ac_try_echo=$ac_try;;
5221esac
5222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5223 (eval "$ac_try") 2>&5
5224 ac_status=$?
5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226 (exit $ac_status); }; }; then
5227 :
5228else
5229 echo "$as_me: program exited with status $ac_status" >&5
5230echo "$as_me: failed program was:" >&5
5231sed 's/^/| /' conftest.$ac_ext >&5
5232
5233( exit $ac_status )
5234ac_cv_header_stdc=no
5235fi
5236rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5237fi
5238
5239
5240fi
5241fi
5242{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5243echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5244if test $ac_cv_header_stdc = yes; then
5245
5246cat >>confdefs.h <<\_ACEOF
5247#define STDC_HEADERS 1
5248_ACEOF
5249
5250fi
5251
5252# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5263 inttypes.h stdint.h unistd.h
5264do
5265as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5266{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5267echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5268if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5269 echo $ECHO_N "(cached) $ECHO_C" >&6
5270else
5271 cat >conftest.$ac_ext <<_ACEOF
5272/* confdefs.h. */
5273_ACEOF
5274cat confdefs.h >>conftest.$ac_ext
5275cat >>conftest.$ac_ext <<_ACEOF
5276/* end confdefs.h. */
5277$ac_includes_default
5278
5279#include <$ac_header>
5280_ACEOF
5281rm -f conftest.$ac_objext
5282if { (ac_try="$ac_compile"
5283case "(($ac_try" in
5284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5285 *) ac_try_echo=$ac_try;;
5286esac
5287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5288 (eval "$ac_compile") 2>conftest.er1
5289 ac_status=$?
5290 grep -v '^ *+' conftest.er1 >conftest.err
5291 rm -f conftest.er1
5292 cat conftest.err >&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); } && {
5295 test -z "$ac_cxx_werror_flag" ||
5296 test ! -s conftest.err
5297 } && test -s conftest.$ac_objext; then
5298 eval "$as_ac_Header=yes"
5299else
5300 echo "$as_me: failed program was:" >&5
5301sed 's/^/| /' conftest.$ac_ext >&5
5302
5303 eval "$as_ac_Header=no"
5304fi
5305
5306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5307fi
5308ac_res=`eval echo '${'$as_ac_Header'}'`
5309 { echo "$as_me:$LINENO: result: $ac_res" >&5
5310echo "${ECHO_T}$ac_res" >&6; }
5311if test `eval echo '${'$as_ac_Header'}'` = yes; then
5312 cat >>confdefs.h <<_ACEOF
5313#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5314_ACEOF
5315
5316fi
5317
5318done
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329for ac_header in sys/inotify.h sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h sys/eventfd.h
5330do
5331as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5332if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5333 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5334echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5335if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5336 echo $ECHO_N "(cached) $ECHO_C" >&6
5337fi
5338ac_res=`eval echo '${'$as_ac_Header'}'`
5339 { echo "$as_me:$LINENO: result: $ac_res" >&5
5340echo "${ECHO_T}$ac_res" >&6; }
5341else
5342 # Is the header compilable?
5343{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5344echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5345cat >conftest.$ac_ext <<_ACEOF
5346/* confdefs.h. */
5347_ACEOF
5348cat confdefs.h >>conftest.$ac_ext
5349cat >>conftest.$ac_ext <<_ACEOF
5350/* end confdefs.h. */
5351$ac_includes_default
5352#include <$ac_header>
5353_ACEOF
5354rm -f conftest.$ac_objext
5355if { (ac_try="$ac_compile"
5356case "(($ac_try" in
5357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5358 *) ac_try_echo=$ac_try;;
5359esac
5360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5361 (eval "$ac_compile") 2>conftest.er1
5362 ac_status=$?
5363 grep -v '^ *+' conftest.er1 >conftest.err
5364 rm -f conftest.er1
5365 cat conftest.err >&5
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); } && {
5368 test -z "$ac_cxx_werror_flag" ||
5369 test ! -s conftest.err
5370 } && test -s conftest.$ac_objext; then
5371 ac_header_compiler=yes
5372else
5373 echo "$as_me: failed program was:" >&5
5374sed 's/^/| /' conftest.$ac_ext >&5
5375
5376 ac_header_compiler=no
5377fi
5378
5379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5380{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5381echo "${ECHO_T}$ac_header_compiler" >&6; }
5382
5383# Is the header present?
5384{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5385echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5386cat >conftest.$ac_ext <<_ACEOF
5387/* confdefs.h. */
5388_ACEOF
5389cat confdefs.h >>conftest.$ac_ext
5390cat >>conftest.$ac_ext <<_ACEOF
5391/* end confdefs.h. */
5392#include <$ac_header>
5393_ACEOF
5394if { (ac_try="$ac_cpp conftest.$ac_ext"
5395case "(($ac_try" in
5396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5397 *) ac_try_echo=$ac_try;;
5398esac
5399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5400 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5401 ac_status=$?
5402 grep -v '^ *+' conftest.er1 >conftest.err
5403 rm -f conftest.er1
5404 cat conftest.err >&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); } >/dev/null && {
5407 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5408 test ! -s conftest.err
5409 }; then
5410 ac_header_preproc=yes
5411else
5412 echo "$as_me: failed program was:" >&5
5413sed 's/^/| /' conftest.$ac_ext >&5
5414
5415 ac_header_preproc=no
5416fi
5417
5418rm -f conftest.err conftest.$ac_ext
5419{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5420echo "${ECHO_T}$ac_header_preproc" >&6; }
5421
5422# So? What about this header?
5423case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5424 yes:no: )
5425 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5426echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5428echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5429 ac_header_preproc=yes
5430 ;;
5431 no:yes:* )
5432 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5433echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5434 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5435echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5436 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5437echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5438 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5439echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5441echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5442 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5443echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5444
5445 ;;
5446esac
5447{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5448echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5449if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5451else
5452 eval "$as_ac_Header=\$ac_header_preproc"
5453fi
5454ac_res=`eval echo '${'$as_ac_Header'}'`
5455 { echo "$as_me:$LINENO: result: $ac_res" >&5
5456echo "${ECHO_T}$ac_res" >&6; }
5457
5458fi
5459if test `eval echo '${'$as_ac_Header'}'` = yes; then
5460 cat >>confdefs.h <<_ACEOF
5461#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5462_ACEOF
5463
5464fi
5465
5466done
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd
5477do
5478as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5479{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5480echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5481if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5482 echo $ECHO_N "(cached) $ECHO_C" >&6
5483else
5484 cat >conftest.$ac_ext <<_ACEOF
5485/* confdefs.h. */
5486_ACEOF
5487cat confdefs.h >>conftest.$ac_ext
5488cat >>conftest.$ac_ext <<_ACEOF
5489/* end confdefs.h. */
5490/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5492#define $ac_func innocuous_$ac_func
5493
5494/* System header to define __stub macros and hopefully few prototypes,
5495 which can conflict with char $ac_func (); below.
5496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5497 <limits.h> exists even on freestanding compilers. */
5498
5499#ifdef __STDC__
5500# include <limits.h>
5501#else
5502# include <assert.h>
5503#endif
5504
5505#undef $ac_func
5506
5507/* Override any GCC internal prototype to avoid an error.
5508 Use char because int might match the return type of a GCC
5509 builtin and then its argument prototype would still apply. */
5510#ifdef __cplusplus
5511extern "C"
5512#endif
5513char $ac_func ();
5514/* The GNU C library defines this for functions which it implements
5515 to always fail with ENOSYS. Some functions are actually named
5516 something starting with __ and the normal name is an alias. */
5517#if defined __stub_$ac_func || defined __stub___$ac_func
5518choke me
5519#endif
5520
5521int
5522main ()
5523{
5524return $ac_func ();
5525 ;
5526 return 0;
5527}
5528_ACEOF
5529rm -f conftest.$ac_objext conftest$ac_exeext
5530if { (ac_try="$ac_link"
5531case "(($ac_try" in
5532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5533 *) ac_try_echo=$ac_try;;
5534esac
5535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5536 (eval "$ac_link") 2>conftest.er1
5537 ac_status=$?
5538 grep -v '^ *+' conftest.er1 >conftest.err
5539 rm -f conftest.er1
5540 cat conftest.err >&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); } && {
5543 test -z "$ac_cxx_werror_flag" ||
5544 test ! -s conftest.err
5545 } && test -s conftest$ac_exeext &&
5546 $as_test_x conftest$ac_exeext; then
5547 eval "$as_ac_var=yes"
5548else
5549 echo "$as_me: failed program was:" >&5
5550sed 's/^/| /' conftest.$ac_ext >&5
5551
5552 eval "$as_ac_var=no"
5553fi
5554
5555rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5556 conftest$ac_exeext conftest.$ac_ext
5557fi
5558ac_res=`eval echo '${'$as_ac_var'}'`
5559 { echo "$as_me:$LINENO: result: $ac_res" >&5
5560echo "${ECHO_T}$ac_res" >&6; }
5561if test `eval echo '${'$as_ac_var'}'` = yes; then
5562 cat >>confdefs.h <<_ACEOF
5563#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5564_ACEOF
5565
5566fi
5567done
5568
5569
5570{ echo "$as_me:$LINENO: checking for clock_gettime" >&5
5571echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6; }
5572if test "${ac_cv_func_clock_gettime+set}" = set; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5574else
5575 cat >conftest.$ac_ext <<_ACEOF
5576/* confdefs.h. */
5577_ACEOF
5578cat confdefs.h >>conftest.$ac_ext
5579cat >>conftest.$ac_ext <<_ACEOF
5580/* end confdefs.h. */
5581/* Define clock_gettime to an innocuous variant, in case <limits.h> declares clock_gettime.
5582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5583#define clock_gettime innocuous_clock_gettime
5584
5585/* System header to define __stub macros and hopefully few prototypes,
5586 which can conflict with char clock_gettime (); below.
5587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5588 <limits.h> exists even on freestanding compilers. */
5589
5590#ifdef __STDC__
5591# include <limits.h>
5592#else
5593# include <assert.h>
5594#endif
5595
5596#undef clock_gettime
5597
5598/* Override any GCC internal prototype to avoid an error.
5599 Use char because int might match the return type of a GCC
5600 builtin and then its argument prototype would still apply. */
5601#ifdef __cplusplus
5602extern "C"
5603#endif
5604char clock_gettime ();
5605/* The GNU C library defines this for functions which it implements
5606 to always fail with ENOSYS. Some functions are actually named
5607 something starting with __ and the normal name is an alias. */
5608#if defined __stub_clock_gettime || defined __stub___clock_gettime
5609choke me
5610#endif
5611
5612int
5613main ()
5614{
5615return clock_gettime ();
5616 ;
5617 return 0;
5618}
5619_ACEOF
5620rm -f conftest.$ac_objext conftest$ac_exeext
5621if { (ac_try="$ac_link"
5622case "(($ac_try" in
5623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624 *) ac_try_echo=$ac_try;;
5625esac
5626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5627 (eval "$ac_link") 2>conftest.er1
5628 ac_status=$?
5629 grep -v '^ *+' conftest.er1 >conftest.err
5630 rm -f conftest.er1
5631 cat conftest.err >&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); } && {
5634 test -z "$ac_cxx_werror_flag" ||
5635 test ! -s conftest.err
5636 } && test -s conftest$ac_exeext &&
5637 $as_test_x conftest$ac_exeext; then
5638 ac_cv_func_clock_gettime=yes
5639else
5640 echo "$as_me: failed program was:" >&5
5641sed 's/^/| /' conftest.$ac_ext >&5
5642
5643 ac_cv_func_clock_gettime=no
5644fi
5645
5646rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5647 conftest$ac_exeext conftest.$ac_ext
5648fi
5649{ echo "$as_me:$LINENO: result: $ac_cv_func_clock_gettime" >&5
5650echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; }
5651if test $ac_cv_func_clock_gettime = yes; then
5652 :
5653else
5654
5655 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
5656
5657{ echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
5658echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
5659if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
5660 echo $ECHO_N "(cached) $ECHO_C" >&6
5661else
5662 ac_check_lib_save_LIBS=$LIBS
5663LIBS="-lrt $LIBS"
5664cat >conftest.$ac_ext <<_ACEOF
5665/* confdefs.h. */
5666_ACEOF
5667cat confdefs.h >>conftest.$ac_ext
5668cat >>conftest.$ac_ext <<_ACEOF
5669/* end confdefs.h. */
5670
5671/* Override any GCC internal prototype to avoid an error.
5672 Use char because int might match the return type of a GCC
5673 builtin and then its argument prototype would still apply. */
5674#ifdef __cplusplus
5675extern "C"
5676#endif
5677char clock_gettime ();
5678int
5679main ()
5680{
5681return clock_gettime ();
5682 ;
5683 return 0;
5684}
5685_ACEOF
5686rm -f conftest.$ac_objext conftest$ac_exeext
5687if { (ac_try="$ac_link"
5688case "(($ac_try" in
5689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5690 *) ac_try_echo=$ac_try;;
5691esac
5692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5693 (eval "$ac_link") 2>conftest.er1
5694 ac_status=$?
5695 grep -v '^ *+' conftest.er1 >conftest.err
5696 rm -f conftest.er1
5697 cat conftest.err >&5
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); } && {
5700 test -z "$ac_cxx_werror_flag" ||
5701 test ! -s conftest.err
5702 } && test -s conftest$ac_exeext &&
5703 $as_test_x conftest$ac_exeext; then
5704 ac_cv_lib_rt_clock_gettime=yes
5705else
5706 echo "$as_me: failed program was:" >&5
5707sed 's/^/| /' conftest.$ac_ext >&5
5708
5709 ac_cv_lib_rt_clock_gettime=no
5710fi
5711
5712rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5713 conftest$ac_exeext conftest.$ac_ext
5714LIBS=$ac_check_lib_save_LIBS
5715fi
5716{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
5717echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
5718if test $ac_cv_lib_rt_clock_gettime = yes; then
5719 cat >>confdefs.h <<_ACEOF
5720#define HAVE_LIBRT 1
5721_ACEOF
5722
5723 LIBS="-lrt $LIBS"
5724
5725fi
5726
5727 unset ac_cv_func_clock_gettime
5728
5729for ac_func in clock_gettime
5730do
5731as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5732{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5733echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5734if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5736else
5737 cat >conftest.$ac_ext <<_ACEOF
5738/* confdefs.h. */
5739_ACEOF
5740cat confdefs.h >>conftest.$ac_ext
5741cat >>conftest.$ac_ext <<_ACEOF
5742/* end confdefs.h. */
5743/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5745#define $ac_func innocuous_$ac_func
5746
5747/* System header to define __stub macros and hopefully few prototypes,
5748 which can conflict with char $ac_func (); below.
5749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5750 <limits.h> exists even on freestanding compilers. */
5751
5752#ifdef __STDC__
5753# include <limits.h>
5754#else
5755# include <assert.h>
5756#endif
5757
5758#undef $ac_func
5759
5760/* Override any GCC internal prototype to avoid an error.
5761 Use char because int might match the return type of a GCC
5762 builtin and then its argument prototype would still apply. */
5763#ifdef __cplusplus
5764extern "C"
5765#endif
5766char $ac_func ();
5767/* The GNU C library defines this for functions which it implements
5768 to always fail with ENOSYS. Some functions are actually named
5769 something starting with __ and the normal name is an alias. */
5770#if defined __stub_$ac_func || defined __stub___$ac_func
5771choke me
5772#endif
5773
5774int
5775main ()
5776{
5777return $ac_func ();
5778 ;
5779 return 0;
5780}
5781_ACEOF
5782rm -f conftest.$ac_objext conftest$ac_exeext
5783if { (ac_try="$ac_link"
5784case "(($ac_try" in
5785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5786 *) ac_try_echo=$ac_try;;
5787esac
5788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5789 (eval "$ac_link") 2>conftest.er1
5790 ac_status=$?
5791 grep -v '^ *+' conftest.er1 >conftest.err
5792 rm -f conftest.er1
5793 cat conftest.err >&5
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); } && {
5796 test -z "$ac_cxx_werror_flag" ||
5797 test ! -s conftest.err
5798 } && test -s conftest$ac_exeext &&
5799 $as_test_x conftest$ac_exeext; then
5800 eval "$as_ac_var=yes"
5801else
5802 echo "$as_me: failed program was:" >&5
5803sed 's/^/| /' conftest.$ac_ext >&5
5804
5805 eval "$as_ac_var=no"
5806fi
5807
5808rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5809 conftest$ac_exeext conftest.$ac_ext
5810fi
5811ac_res=`eval echo '${'$as_ac_var'}'`
5812 { echo "$as_me:$LINENO: result: $ac_res" >&5
5813echo "${ECHO_T}$ac_res" >&6; }
5814if test `eval echo '${'$as_ac_var'}'` = yes; then
5815 cat >>confdefs.h <<_ACEOF
5816#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5817_ACEOF
5818
5819fi
5820done
5821
5822 fi
5823
5824fi
5825
5826
5827{ echo "$as_me:$LINENO: checking for nanosleep" >&5
5828echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; }
5829if test "${ac_cv_func_nanosleep+set}" = set; then
5830 echo $ECHO_N "(cached) $ECHO_C" >&6
5831else
5832 cat >conftest.$ac_ext <<_ACEOF
5833/* confdefs.h. */
5834_ACEOF
5835cat confdefs.h >>conftest.$ac_ext
5836cat >>conftest.$ac_ext <<_ACEOF
5837/* end confdefs.h. */
5838/* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep.
5839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5840#define nanosleep innocuous_nanosleep
5841
5842/* System header to define __stub macros and hopefully few prototypes,
5843 which can conflict with char nanosleep (); below.
5844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5845 <limits.h> exists even on freestanding compilers. */
5846
5847#ifdef __STDC__
5848# include <limits.h>
5849#else
5850# include <assert.h>
5851#endif
5852
5853#undef nanosleep
5854
5855/* Override any GCC internal prototype to avoid an error.
5856 Use char because int might match the return type of a GCC
5857 builtin and then its argument prototype would still apply. */
5858#ifdef __cplusplus
5859extern "C"
5860#endif
5861char nanosleep ();
5862/* The GNU C library defines this for functions which it implements
5863 to always fail with ENOSYS. Some functions are actually named
5864 something starting with __ and the normal name is an alias. */
5865#if defined __stub_nanosleep || defined __stub___nanosleep
5866choke me
5867#endif
5868
5869int
5870main ()
5871{
5872return nanosleep ();
5873 ;
5874 return 0;
5875}
5876_ACEOF
5877rm -f conftest.$ac_objext conftest$ac_exeext
5878if { (ac_try="$ac_link"
5879case "(($ac_try" in
5880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5881 *) ac_try_echo=$ac_try;;
5882esac
5883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5884 (eval "$ac_link") 2>conftest.er1
5885 ac_status=$?
5886 grep -v '^ *+' conftest.er1 >conftest.err
5887 rm -f conftest.er1
5888 cat conftest.err >&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); } && {
5891 test -z "$ac_cxx_werror_flag" ||
5892 test ! -s conftest.err
5893 } && test -s conftest$ac_exeext &&
5894 $as_test_x conftest$ac_exeext; then
5895 ac_cv_func_nanosleep=yes
5896else
5897 echo "$as_me: failed program was:" >&5
5898sed 's/^/| /' conftest.$ac_ext >&5
5899
5900 ac_cv_func_nanosleep=no
5901fi
5902
5903rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5904 conftest$ac_exeext conftest.$ac_ext
5905fi
5906{ echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5
5907echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; }
5908if test $ac_cv_func_nanosleep = yes; then
5909 :
5910else
5911
5912 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
5913
5914{ echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
5915echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; }
5916if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
5917 echo $ECHO_N "(cached) $ECHO_C" >&6
5918else
5919 ac_check_lib_save_LIBS=$LIBS
5920LIBS="-lrt $LIBS"
5921cat >conftest.$ac_ext <<_ACEOF
5922/* confdefs.h. */
5923_ACEOF
5924cat confdefs.h >>conftest.$ac_ext
5925cat >>conftest.$ac_ext <<_ACEOF
5926/* end confdefs.h. */
5927
5928/* Override any GCC internal prototype to avoid an error.
5929 Use char because int might match the return type of a GCC
5930 builtin and then its argument prototype would still apply. */
5931#ifdef __cplusplus
5932extern "C"
5933#endif
5934char nanosleep ();
5935int
5936main ()
5937{
5938return nanosleep ();
5939 ;
5940 return 0;
5941}
5942_ACEOF
5943rm -f conftest.$ac_objext conftest$ac_exeext
5944if { (ac_try="$ac_link"
5945case "(($ac_try" in
5946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5947 *) ac_try_echo=$ac_try;;
5948esac
5949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5950 (eval "$ac_link") 2>conftest.er1
5951 ac_status=$?
5952 grep -v '^ *+' conftest.er1 >conftest.err
5953 rm -f conftest.er1
5954 cat conftest.err >&5
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); } && {
5957 test -z "$ac_cxx_werror_flag" ||
5958 test ! -s conftest.err
5959 } && test -s conftest$ac_exeext &&
5960 $as_test_x conftest$ac_exeext; then
5961 ac_cv_lib_rt_nanosleep=yes
5962else
5963 echo "$as_me: failed program was:" >&5
5964sed 's/^/| /' conftest.$ac_ext >&5
5965
5966 ac_cv_lib_rt_nanosleep=no
5967fi
5968
5969rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5970 conftest$ac_exeext conftest.$ac_ext
5971LIBS=$ac_check_lib_save_LIBS
5972fi
5973{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
5974echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; }
5975if test $ac_cv_lib_rt_nanosleep = yes; then
5976 cat >>confdefs.h <<_ACEOF
5977#define HAVE_LIBRT 1
5978_ACEOF
5979
5980 LIBS="-lrt $LIBS"
5981
5982fi
5983
5984 unset ac_cv_func_nanosleep
5985
5986for ac_func in nanosleep
5987do
5988as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5989{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5990echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5991if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5992 echo $ECHO_N "(cached) $ECHO_C" >&6
5993else
5994 cat >conftest.$ac_ext <<_ACEOF
5995/* confdefs.h. */
5996_ACEOF
5997cat confdefs.h >>conftest.$ac_ext
5998cat >>conftest.$ac_ext <<_ACEOF
5999/* end confdefs.h. */
6000/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6002#define $ac_func innocuous_$ac_func
6003
6004/* System header to define __stub macros and hopefully few prototypes,
6005 which can conflict with char $ac_func (); below.
6006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6007 <limits.h> exists even on freestanding compilers. */
6008
6009#ifdef __STDC__
6010# include <limits.h>
6011#else
6012# include <assert.h>
6013#endif
6014
6015#undef $ac_func
6016
6017/* Override any GCC internal prototype to avoid an error.
6018 Use char because int might match the return type of a GCC
6019 builtin and then its argument prototype would still apply. */
6020#ifdef __cplusplus
6021extern "C"
6022#endif
6023char $ac_func ();
6024/* The GNU C library defines this for functions which it implements
6025 to always fail with ENOSYS. Some functions are actually named
6026 something starting with __ and the normal name is an alias. */
6027#if defined __stub_$ac_func || defined __stub___$ac_func
6028choke me
6029#endif
6030
6031int
6032main ()
6033{
6034return $ac_func ();
6035 ;
6036 return 0;
6037}
6038_ACEOF
6039rm -f conftest.$ac_objext conftest$ac_exeext
6040if { (ac_try="$ac_link"
6041case "(($ac_try" in
6042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6043 *) ac_try_echo=$ac_try;;
6044esac
6045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6046 (eval "$ac_link") 2>conftest.er1
6047 ac_status=$?
6048 grep -v '^ *+' conftest.er1 >conftest.err
6049 rm -f conftest.er1
6050 cat conftest.err >&5
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); } && {
6053 test -z "$ac_cxx_werror_flag" ||
6054 test ! -s conftest.err
6055 } && test -s conftest$ac_exeext &&
6056 $as_test_x conftest$ac_exeext; then
6057 eval "$as_ac_var=yes"
6058else
6059 echo "$as_me: failed program was:" >&5
6060sed 's/^/| /' conftest.$ac_ext >&5
6061
6062 eval "$as_ac_var=no"
6063fi
6064
6065rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6066 conftest$ac_exeext conftest.$ac_ext
6067fi
6068ac_res=`eval echo '${'$as_ac_var'}'`
6069 { echo "$as_me:$LINENO: result: $ac_res" >&5
6070echo "${ECHO_T}$ac_res" >&6; }
6071if test `eval echo '${'$as_ac_var'}'` = yes; then
6072 cat >>confdefs.h <<_ACEOF
6073#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6074_ACEOF
6075
6076fi
6077done
6078
6079 fi
6080
6081fi
6082
6083
6084
6085{ echo "$as_me:$LINENO: checking for ceil in -lm" >&5
6086echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; }
6087if test "${ac_cv_lib_m_ceil+set}" = set; then
6088 echo $ECHO_N "(cached) $ECHO_C" >&6
6089else
6090 ac_check_lib_save_LIBS=$LIBS
6091LIBS="-lm $LIBS"
6092cat >conftest.$ac_ext <<_ACEOF
6093/* confdefs.h. */
6094_ACEOF
6095cat confdefs.h >>conftest.$ac_ext
6096cat >>conftest.$ac_ext <<_ACEOF
6097/* end confdefs.h. */
6098
6099/* Override any GCC internal prototype to avoid an error.
6100 Use char because int might match the return type of a GCC
6101 builtin and then its argument prototype would still apply. */
6102#ifdef __cplusplus
6103extern "C"
6104#endif
6105char ceil ();
6106int
6107main ()
6108{
6109return ceil ();
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 ac_cv_lib_m_ceil=yes
6133else
6134 echo "$as_me: failed program was:" >&5
6135sed 's/^/| /' conftest.$ac_ext >&5
6136
6137 ac_cv_lib_m_ceil=no
6138fi
6139
6140rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6141 conftest$ac_exeext conftest.$ac_ext
6142LIBS=$ac_check_lib_save_LIBS
6143fi
6144{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5
6145echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6; }
6146if test $ac_cv_lib_m_ceil = yes; then
6147 cat >>confdefs.h <<_ACEOF
6148#define HAVE_LIBM 1
6149_ACEOF
6150
6151 LIBS="-lm $LIBS"
6152
6153fi
6154
6155
6156
6157
4864 6158
4865 6159
4866 6160
4867# Extract the first word of "tic", so it can be a program name with args. 6161# Extract the first word of "tic", so it can be a program name with args.
4868set dummy tic; ac_word=$2 6162set dummy tic; ac_word=$2
4889 fi 6183 fi
4890done 6184done
4891done 6185done
4892IFS=$as_save_IFS 6186IFS=$as_save_IFS
4893 6187
6188 test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":"
4894 ;; 6189 ;;
4895esac 6190esac
4896fi 6191fi
4897TIC=$ac_cv_path_TIC 6192TIC=$ac_cv_path_TIC
4898if test -n "$TIC"; then 6193if test -n "$TIC"; then
4901else 6196else
4902 { echo "$as_me:$LINENO: result: no" >&5 6197 { echo "$as_me:$LINENO: result: no" >&5
4903echo "${ECHO_T}no" >&6; } 6198echo "${ECHO_T}no" >&6; }
4904fi 6199fi
4905 6200
4906
4907
4908
4909
4910ac_ext=cpp
4911ac_cpp='$CXXCPP $CPPFLAGS'
4912ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4913ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4914ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4915{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4916echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4917if test -z "$CXXCPP"; then
4918 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4919 echo $ECHO_N "(cached) $ECHO_C" >&6
4920else
4921 # Double quotes because CXXCPP needs to be expanded
4922 for CXXCPP in "$CXX -E" "/lib/cpp"
4923 do
4924 ac_preproc_ok=false
4925for ac_cxx_preproc_warn_flag in '' yes
4926do
4927 # Use a header file that comes with gcc, so configuring glibc
4928 # with a fresh cross-compiler works.
4929 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4930 # <limits.h> exists even on freestanding compilers.
4931 # On the NeXT, cc -E runs the code through the compiler's parser,
4932 # not just through cpp. "Syntax error" is here to catch this case.
4933 cat >conftest.$ac_ext <<_ACEOF
4934/* confdefs.h. */
4935_ACEOF
4936cat confdefs.h >>conftest.$ac_ext
4937cat >>conftest.$ac_ext <<_ACEOF
4938/* end confdefs.h. */
4939#ifdef __STDC__
4940# include <limits.h>
4941#else
4942# include <assert.h>
4943#endif
4944 Syntax error
4945_ACEOF
4946if { (ac_try="$ac_cpp conftest.$ac_ext"
4947case "(($ac_try" in
4948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4949 *) ac_try_echo=$ac_try;;
4950esac
4951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4953 ac_status=$?
4954 grep -v '^ *+' conftest.er1 >conftest.err
4955 rm -f conftest.er1
4956 cat conftest.err >&5
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); } >/dev/null && {
4959 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4960 test ! -s conftest.err
4961 }; then
4962 :
4963else
4964 echo "$as_me: failed program was:" >&5
4965sed 's/^/| /' conftest.$ac_ext >&5
4966
4967 # Broken: fails on valid input.
4968continue
4969fi
4970
4971rm -f conftest.err conftest.$ac_ext
4972
4973 # OK, works on sane cases. Now check whether nonexistent headers
4974 # can be detected and how.
4975 cat >conftest.$ac_ext <<_ACEOF
4976/* confdefs.h. */
4977_ACEOF
4978cat confdefs.h >>conftest.$ac_ext
4979cat >>conftest.$ac_ext <<_ACEOF
4980/* end confdefs.h. */
4981#include <ac_nonexistent.h>
4982_ACEOF
4983if { (ac_try="$ac_cpp conftest.$ac_ext"
4984case "(($ac_try" in
4985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4986 *) ac_try_echo=$ac_try;;
4987esac
4988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4990 ac_status=$?
4991 grep -v '^ *+' conftest.er1 >conftest.err
4992 rm -f conftest.er1
4993 cat conftest.err >&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); } >/dev/null && {
4996 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4997 test ! -s conftest.err
4998 }; then
4999 # Broken: success on invalid input.
5000continue
5001else
5002 echo "$as_me: failed program was:" >&5
5003sed 's/^/| /' conftest.$ac_ext >&5
5004
5005 # Passes both tests.
5006ac_preproc_ok=:
5007break
5008fi
5009
5010rm -f conftest.err conftest.$ac_ext
5011
5012done
5013# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5014rm -f conftest.err conftest.$ac_ext
5015if $ac_preproc_ok; then
5016 break
5017fi
5018
5019 done
5020 ac_cv_prog_CXXCPP=$CXXCPP
5021
5022fi
5023 CXXCPP=$ac_cv_prog_CXXCPP
5024else
5025 ac_cv_prog_CXXCPP=$CXXCPP
5026fi
5027{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5028echo "${ECHO_T}$CXXCPP" >&6; }
5029ac_preproc_ok=false
5030for ac_cxx_preproc_warn_flag in '' yes
5031do
5032 # Use a header file that comes with gcc, so configuring glibc
5033 # with a fresh cross-compiler works.
5034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5035 # <limits.h> exists even on freestanding compilers.
5036 # On the NeXT, cc -E runs the code through the compiler's parser,
5037 # not just through cpp. "Syntax error" is here to catch this case.
5038 cat >conftest.$ac_ext <<_ACEOF
5039/* confdefs.h. */
5040_ACEOF
5041cat confdefs.h >>conftest.$ac_ext
5042cat >>conftest.$ac_ext <<_ACEOF
5043/* end confdefs.h. */
5044#ifdef __STDC__
5045# include <limits.h>
5046#else
5047# include <assert.h>
5048#endif
5049 Syntax error
5050_ACEOF
5051if { (ac_try="$ac_cpp conftest.$ac_ext"
5052case "(($ac_try" in
5053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5054 *) ac_try_echo=$ac_try;;
5055esac
5056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5058 ac_status=$?
5059 grep -v '^ *+' conftest.er1 >conftest.err
5060 rm -f conftest.er1
5061 cat conftest.err >&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } >/dev/null && {
5064 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5065 test ! -s conftest.err
5066 }; then
5067 :
5068else
5069 echo "$as_me: failed program was:" >&5
5070sed 's/^/| /' conftest.$ac_ext >&5
5071
5072 # Broken: fails on valid input.
5073continue
5074fi
5075
5076rm -f conftest.err conftest.$ac_ext
5077
5078 # OK, works on sane cases. Now check whether nonexistent headers
5079 # can be detected and how.
5080 cat >conftest.$ac_ext <<_ACEOF
5081/* confdefs.h. */
5082_ACEOF
5083cat confdefs.h >>conftest.$ac_ext
5084cat >>conftest.$ac_ext <<_ACEOF
5085/* end confdefs.h. */
5086#include <ac_nonexistent.h>
5087_ACEOF
5088if { (ac_try="$ac_cpp conftest.$ac_ext"
5089case "(($ac_try" in
5090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5091 *) ac_try_echo=$ac_try;;
5092esac
5093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5095 ac_status=$?
5096 grep -v '^ *+' conftest.er1 >conftest.err
5097 rm -f conftest.er1
5098 cat conftest.err >&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); } >/dev/null && {
5101 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5102 test ! -s conftest.err
5103 }; then
5104 # Broken: success on invalid input.
5105continue
5106else
5107 echo "$as_me: failed program was:" >&5
5108sed 's/^/| /' conftest.$ac_ext >&5
5109
5110 # Passes both tests.
5111ac_preproc_ok=:
5112break
5113fi
5114
5115rm -f conftest.err conftest.$ac_ext
5116
5117done
5118# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5119rm -f conftest.err conftest.$ac_ext
5120if $ac_preproc_ok; then
5121 :
5122else
5123 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5124See \`config.log' for more details." >&5
5125echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5126See \`config.log' for more details." >&2;}
5127 { (exit 1); exit 1; }; }
5128fi
5129
5130ac_ext=cpp
5131ac_cpp='$CXXCPP $CPPFLAGS'
5132ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5133ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5134ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5135 6201
5136 6202
5137{ echo "$as_me:$LINENO: checking for X" >&5 6203{ echo "$as_me:$LINENO: checking for X" >&5
5138echo $ECHO_N "checking for X... $ECHO_C" >&6; } 6204echo $ECHO_N "checking for X... $ECHO_C" >&6; }
5139 6205
6445fi 7511fi
6446 7512
6447 LDFLAGS=$ac_save_LDFLAGS 7513 LDFLAGS=$ac_save_LDFLAGS
6448 7514
6449fi 7515fi
6450
6451 7516
6452 7517
6453AFTERIMAGE_CFLAGS= 7518AFTERIMAGE_CFLAGS=
6454AFTERIMAGE_LIBS= 7519AFTERIMAGE_LIBS=
6455AFTERIMAGE_VERSION= 7520AFTERIMAGE_VERSION=
6526echo "${ECHO_T}no" >&6; } 7591echo "${ECHO_T}no" >&6; }
6527 fi 7592 fi
6528 fi 7593 fi
6529fi 7594fi
6530 7595
6531if test x$support_afterimage != xyes -a x$support_xpm = xyes ; then
6532
6533
6534
6535# Initialize some more variables set by options.
6536# The variables have the same names as the options, with
6537# dashes changed to underlines.
6538
6539# If we find XPM, set shell vars xpm_includes and xpm_libraries to the
6540# paths, otherwise set no_xpm=yes.
6541# Uses ac_ vars as temps to allow command line to override cache and checks.
6542{ echo "$as_me:$LINENO: checking for libXpm" >&5
6543echo $ECHO_N "checking for libXpm... $ECHO_C" >&6; }
6544
6545
6546# Check whether --with-xpm_includes was given.
6547if test "${with_xpm_includes+set}" = set; then
6548 withval=$with_xpm_includes; xpm_includes="$withval"
6549else
6550 xpm_includes=NO
6551fi
6552
6553
6554# Check whether --with-xpm_library was given.
6555if test "${with_xpm_library+set}" = set; then
6556 withval=$with_xpm_library; xpm_libraries="$withval"
6557else
6558 xpm_libraries=NO
6559fi
6560
6561
6562# --without-xpm overrides everything else, but does not touch the cache.
6563
6564# Check whether --with-xpm was given.
6565if test "${with_xpm+set}" = set; then
6566 withval=$with_xpm;
6567fi
6568
6569if test "$with_xpm" = no; then
6570 have_xpm=disabled
6571else
6572 if test "${ac_cv_have_xpm+set}" = set; then
6573 echo $ECHO_N "(cached) $ECHO_C" >&6
6574else
6575
6576 vt_xpm_include_X11=no
6577 if test -n "$xpm_includes"; then
6578 vt_xpm_includes=$xpm_includes
6579 else
6580 vt_xpm_includes=NO
6581 fi
6582 if test -n "$xpm_libraries"; then
6583 vt_xpm_libraries=$xpm_libraries
6584 else
6585 vt_xpm_libraries=NO
6586 fi
6587
6588 if test "$vt_xpm_includes" = NO; then
6589 # Guess where to find xpm.h
6590
6591ac_save_CPPFLAGS="$CPPFLAGS"
6592CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6593
6594 # First, try using that file with no special directory specified.
6595cat >conftest.$ac_ext <<_ACEOF
6596/* confdefs.h. */
6597_ACEOF
6598cat confdefs.h >>conftest.$ac_ext
6599cat >>conftest.$ac_ext <<_ACEOF
6600/* end confdefs.h. */
6601#include <X11/xpm.h>
6602_ACEOF
6603if { (ac_try="$ac_cpp conftest.$ac_ext"
6604case "(($ac_try" in
6605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6606 *) ac_try_echo=$ac_try;;
6607esac
6608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6610 ac_status=$?
6611 grep -v '^ *+' conftest.er1 >conftest.err
6612 rm -f conftest.er1
6613 cat conftest.err >&5
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); } >/dev/null && {
6616 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6617 test ! -s conftest.err
6618 }; then
6619 # We can compile using X headers with no special include directory.
6620vt_xpm_includes=
6621vt_xpm_include_X11=yes
6622else
6623 echo "$as_me: failed program was:" >&5
6624sed 's/^/| /' conftest.$ac_ext >&5
6625
6626 CPPFLAGS="$ac_save_CPPFLAGS"
6627# Look for the header file in a standard set of common directories.
6628 for ac_dir in \
6629 /usr/X11/include \
6630 /usr/X11R6/include \
6631 /usr/X11R5/include \
6632 /usr/X11R4/include \
6633 \
6634 /usr/include/X11 \
6635 /usr/include/X11R6 \
6636 /usr/include/X11R5 \
6637 /usr/include/X11R4 \
6638 \
6639 /usr/local/X11/include \
6640 /usr/local/X11R6/include \
6641 /usr/local/X11R5/include \
6642 /usr/local/X11R4/include \
6643 \
6644 /usr/local/include/X11 \
6645 /usr/local/include/X11R6 \
6646 /usr/local/include/X11R5 \
6647 /usr/local/include/X11R4 \
6648 \
6649 /usr/X386/include \
6650 /usr/x386/include \
6651 /usr/XFree86/include/X11 \
6652 \
6653 /usr/include \
6654 /usr/local/include \
6655 /usr/unsupported/include \
6656 /usr/athena/include \
6657 /usr/local/x11r5/include \
6658 /usr/lpp/Xamples/include \
6659 \
6660 /usr/openwin/include \
6661 /usr/openwin/share/include \
6662 ; \
6663 do
6664 if test -r "$ac_dir/X11/xpm.h"; then
6665 vt_xpm_includes="$ac_dir"
6666 vt_xpm_include_X11=yes
6667 break
6668 else
6669 if test -r "$ac_dir/xpm.h"; then
6670 vt_xpm_includes=$ac_dir
6671 break
6672 fi
6673 fi
6674 done
6675fi
6676
6677rm -f conftest.err conftest.$ac_ext
6678fi
6679
6680if test "$vt_xpm_libraries" = NO; then
6681 # Check for the libraries.
6682
6683 # See if we find them without any special options.
6684 # Don't add to $LIBS permanently.
6685 ac_save_LIBS="$LIBS"
6686 LIBS="$LIBS $X_LIBS -lXpm -lX11"
6687cat >conftest.$ac_ext <<_ACEOF
6688/* confdefs.h. */
6689_ACEOF
6690cat confdefs.h >>conftest.$ac_ext
6691cat >>conftest.$ac_ext <<_ACEOF
6692/* end confdefs.h. */
6693
6694int
6695main ()
6696{
6697XpmReadFileToPixmap()
6698 ;
6699 return 0;
6700}
6701_ACEOF
6702rm -f conftest.$ac_objext conftest$ac_exeext
6703if { (ac_try="$ac_link"
6704case "(($ac_try" in
6705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6706 *) ac_try_echo=$ac_try;;
6707esac
6708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6709 (eval "$ac_link") 2>conftest.er1
6710 ac_status=$?
6711 grep -v '^ *+' conftest.er1 >conftest.err
6712 rm -f conftest.er1
6713 cat conftest.err >&5
6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); } && {
6716 test -z "$ac_cxx_werror_flag" ||
6717 test ! -s conftest.err
6718 } && test -s conftest$ac_exeext &&
6719 $as_test_x conftest$ac_exeext; then
6720 LIBS="$ac_save_LIBS"
6721# We can link libXpm with no special library path.
6722vt_xpm_libraries=
6723else
6724 echo "$as_me: failed program was:" >&5
6725sed 's/^/| /' conftest.$ac_ext >&5
6726
6727 LIBS="$ac_save_LIBS"
6728# First see if replacing the include by lib works.
6729for ac_dir in \
6730 `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
6731 /usr/X11/lib \
6732 /usr/X11R6/lib \
6733 /usr/X11R5/lib \
6734 /usr/X11R4/lib \
6735 \
6736 /usr/lib/X11 \
6737 /usr/lib/X11R6 \
6738 /usr/lib/X11R5 \
6739 /usr/lib/X11R4 \
6740 \
6741 /usr/local/X11/lib \
6742 /usr/local/X11R6/lib \
6743 /usr/local/X11R5/lib \
6744 /usr/local/X11R4/lib \
6745 \
6746 /usr/local/lib/X11 \
6747 /usr/local/lib/X11R6 \
6748 /usr/local/lib/X11R5 \
6749 /usr/local/lib/X11R4 \
6750 \
6751 /usr/X386/lib \
6752 /usr/x386/lib \
6753 /usr/XFree86/lib/X11 \
6754 \
6755 /usr/lib \
6756 /usr/local/lib \
6757 /usr/unsupported/lib \
6758 /usr/athena/lib \
6759 /usr/local/x11r5/lib \
6760 /usr/lpp/Xamples/lib \
6761 \
6762 /usr/openwin/lib \
6763 /usr/openwin/share/lib \
6764 ; \
6765do
6766 for ac_extension in a so sl; do
6767 if test -r $ac_dir/libXpm.$ac_extension; then
6768 vt_xpm_libraries=$ac_dir
6769 break 2
6770 fi
6771 done
6772done
6773fi
6774
6775rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6776 conftest$ac_exeext conftest.$ac_ext
6777fi
6778
6779
6780 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then
6781 ac_cv_have_xpm="have_xpm=no"
6782 else
6783 ac_cv_have_xpm="have_xpm=yes \
6784 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6785 vt_xpm_include_X11=$vt_xpm_include_X11"
6786 fi
6787fi
6788 eval "$ac_cv_have_xpm"
6789fi
6790
6791if test "$have_xpm" != yes; then
6792 { echo "$as_me:$LINENO: result: $have_xpm" >&5
6793echo "${ECHO_T}$have_xpm" >&6; }
6794 no_xpm=yes
6795else
6796 if test "$xpm_includes" != NO; then
6797 if test "$xpm_includes" = "$vt_xpm_includes"; then
6798 if test -r "$xpm_includes/X11/xpm.h"; then
6799 vt_xpm_include_X11=yes
6800 fi
6801 else
6802 vt_xpm_include_X11=no
6803 if test -z "$xpm_includes"; then
6804 cat >conftest.$ac_ext <<_ACEOF
6805/* confdefs.h. */
6806_ACEOF
6807cat confdefs.h >>conftest.$ac_ext
6808cat >>conftest.$ac_ext <<_ACEOF
6809/* end confdefs.h. */
6810#include <X11/xpm.h>
6811_ACEOF
6812if { (ac_try="$ac_cpp conftest.$ac_ext"
6813case "(($ac_try" in
6814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6815 *) ac_try_echo=$ac_try;;
6816esac
6817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6819 ac_status=$?
6820 grep -v '^ *+' conftest.er1 >conftest.err
6821 rm -f conftest.er1
6822 cat conftest.err >&5
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); } >/dev/null && {
6825 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6826 test ! -s conftest.err
6827 }; then
6828 vt_xpm_include_X11=yes
6829else
6830 echo "$as_me: failed program was:" >&5
6831sed 's/^/| /' conftest.$ac_ext >&5
6832
6833
6834fi
6835
6836rm -f conftest.err conftest.$ac_ext
6837 else
6838 if test -r "$xpm_includes/X11/xpm.h"; then
6839 vt_xpm_include_X11=yes
6840 fi
6841 fi
6842 fi
6843 vt_xpm_includes=$xpm_includes
6844 fi
6845 if test "x$xpm_libraries" != xNO; then
6846 vt_xpm_libraries=$xpm_libraries
6847 fi
6848 # Update the cache value to reflect the command line values.
6849 ac_cv_have_xpm="have_xpm=yes \
6850 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6851 vt_xpm_include_X11=$vt_xpm_include_X11"
6852 eval "$ac_cv_have_xpm"
6853 { echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5
6854echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6; }
6855 if test -n "$vt_xpm_includes"; then
6856 XPM_CPPFLAGS="-DHAVE_LIBXPM"
6857 fi
6858 if test -n "$vt_xpm_includes"; then
6859 XPM_CFLAGS="-I$vt_xpm_includes"
6860 fi
6861 XPM_LIBS="-lXpm"
6862 if test -n "$vt_xpm_libraries"; then
6863 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
6864 fi
6865 if test "x$vt_xpm_include_X11" = xyes; then
6866
6867cat >>confdefs.h <<\_ACEOF
6868#define XPM_INC_X11 1
6869_ACEOF
6870
6871 fi
6872fi
6873
6874
6875
6876
6877
6878 if test x$no_xpm = xyes; then
6879 support_xpm=needsmanualspecification
6880 fi
6881fi
6882
6883{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6884echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6885if test "${ac_cv_header_sys_wait_h+set}" = set; then
6886 echo $ECHO_N "(cached) $ECHO_C" >&6
6887else
6888 cat >conftest.$ac_ext <<_ACEOF
6889/* confdefs.h. */
6890_ACEOF
6891cat confdefs.h >>conftest.$ac_ext
6892cat >>conftest.$ac_ext <<_ACEOF
6893/* end confdefs.h. */
6894#include <sys/types.h>
6895#include <sys/wait.h>
6896#ifndef WEXITSTATUS
6897# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6898#endif
6899#ifndef WIFEXITED
6900# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6901#endif
6902
6903int
6904main ()
6905{
6906 int s;
6907 wait (&s);
6908 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6909 ;
6910 return 0;
6911}
6912_ACEOF
6913rm -f conftest.$ac_objext
6914if { (ac_try="$ac_compile"
6915case "(($ac_try" in
6916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6917 *) ac_try_echo=$ac_try;;
6918esac
6919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6920 (eval "$ac_compile") 2>conftest.er1
6921 ac_status=$?
6922 grep -v '^ *+' conftest.er1 >conftest.err
6923 rm -f conftest.er1
6924 cat conftest.err >&5
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); } && {
6927 test -z "$ac_cxx_werror_flag" ||
6928 test ! -s conftest.err
6929 } && test -s conftest.$ac_objext; then
6930 ac_cv_header_sys_wait_h=yes
6931else
6932 echo "$as_me: failed program was:" >&5
6933sed 's/^/| /' conftest.$ac_ext >&5
6934
6935 ac_cv_header_sys_wait_h=no
6936fi
6937
6938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6939fi
6940{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6941echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6942if test $ac_cv_header_sys_wait_h = yes; then
6943
6944cat >>confdefs.h <<\_ACEOF
6945#define HAVE_SYS_WAIT_H 1
6946_ACEOF
6947
6948fi
6949
6950{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6951echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6952if test "${ac_cv_header_stdc+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6954else
6955 cat >conftest.$ac_ext <<_ACEOF
6956/* confdefs.h. */
6957_ACEOF
6958cat confdefs.h >>conftest.$ac_ext
6959cat >>conftest.$ac_ext <<_ACEOF
6960/* end confdefs.h. */
6961#include <stdlib.h>
6962#include <stdarg.h>
6963#include <string.h>
6964#include <float.h>
6965
6966int
6967main ()
6968{
6969
6970 ;
6971 return 0;
6972}
6973_ACEOF
6974rm -f conftest.$ac_objext
6975if { (ac_try="$ac_compile"
6976case "(($ac_try" in
6977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6978 *) ac_try_echo=$ac_try;;
6979esac
6980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6981 (eval "$ac_compile") 2>conftest.er1
6982 ac_status=$?
6983 grep -v '^ *+' conftest.er1 >conftest.err
6984 rm -f conftest.er1
6985 cat conftest.err >&5
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); } && {
6988 test -z "$ac_cxx_werror_flag" ||
6989 test ! -s conftest.err
6990 } && test -s conftest.$ac_objext; then
6991 ac_cv_header_stdc=yes
6992else
6993 echo "$as_me: failed program was:" >&5
6994sed 's/^/| /' conftest.$ac_ext >&5
6995
6996 ac_cv_header_stdc=no
6997fi
6998
6999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7000
7001if test $ac_cv_header_stdc = yes; then
7002 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7003 cat >conftest.$ac_ext <<_ACEOF
7004/* confdefs.h. */
7005_ACEOF
7006cat confdefs.h >>conftest.$ac_ext
7007cat >>conftest.$ac_ext <<_ACEOF
7008/* end confdefs.h. */
7009#include <string.h>
7010
7011_ACEOF
7012if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7013 $EGREP "memchr" >/dev/null 2>&1; then
7014 :
7015else
7016 ac_cv_header_stdc=no
7017fi
7018rm -f conftest*
7019
7020fi
7021
7022if test $ac_cv_header_stdc = yes; then
7023 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7024 cat >conftest.$ac_ext <<_ACEOF
7025/* confdefs.h. */
7026_ACEOF
7027cat confdefs.h >>conftest.$ac_ext
7028cat >>conftest.$ac_ext <<_ACEOF
7029/* end confdefs.h. */
7030#include <stdlib.h>
7031
7032_ACEOF
7033if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7034 $EGREP "free" >/dev/null 2>&1; then
7035 :
7036else
7037 ac_cv_header_stdc=no
7038fi
7039rm -f conftest*
7040
7041fi
7042
7043if test $ac_cv_header_stdc = yes; then
7044 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7045 if test "$cross_compiling" = yes; then
7046 :
7047else
7048 cat >conftest.$ac_ext <<_ACEOF
7049/* confdefs.h. */
7050_ACEOF
7051cat confdefs.h >>conftest.$ac_ext
7052cat >>conftest.$ac_ext <<_ACEOF
7053/* end confdefs.h. */
7054#include <ctype.h>
7055#include <stdlib.h>
7056#if ((' ' & 0x0FF) == 0x020)
7057# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7058# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7059#else
7060# define ISLOWER(c) \
7061 (('a' <= (c) && (c) <= 'i') \
7062 || ('j' <= (c) && (c) <= 'r') \
7063 || ('s' <= (c) && (c) <= 'z'))
7064# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7065#endif
7066
7067#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7068int
7069main ()
7070{
7071 int i;
7072 for (i = 0; i < 256; i++)
7073 if (XOR (islower (i), ISLOWER (i))
7074 || toupper (i) != TOUPPER (i))
7075 return 2;
7076 return 0;
7077}
7078_ACEOF
7079rm -f conftest$ac_exeext
7080if { (ac_try="$ac_link"
7081case "(($ac_try" in
7082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7083 *) ac_try_echo=$ac_try;;
7084esac
7085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7086 (eval "$ac_link") 2>&5
7087 ac_status=$?
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7090 { (case "(($ac_try" in
7091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7092 *) ac_try_echo=$ac_try;;
7093esac
7094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7095 (eval "$ac_try") 2>&5
7096 ac_status=$?
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); }; }; then
7099 :
7100else
7101 echo "$as_me: program exited with status $ac_status" >&5
7102echo "$as_me: failed program was:" >&5
7103sed 's/^/| /' conftest.$ac_ext >&5
7104
7105( exit $ac_status )
7106ac_cv_header_stdc=no
7107fi
7108rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7109fi
7110
7111
7112fi
7113fi
7114{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7115echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7116if test $ac_cv_header_stdc = yes; then
7117
7118cat >>confdefs.h <<\_ACEOF
7119#define STDC_HEADERS 1
7120_ACEOF
7121
7122fi
7123
7124# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7135 inttypes.h stdint.h unistd.h
7136do
7137as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7138{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7139echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7140if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7141 echo $ECHO_N "(cached) $ECHO_C" >&6
7142else
7143 cat >conftest.$ac_ext <<_ACEOF
7144/* confdefs.h. */
7145_ACEOF
7146cat confdefs.h >>conftest.$ac_ext
7147cat >>conftest.$ac_ext <<_ACEOF
7148/* end confdefs.h. */
7149$ac_includes_default
7150
7151#include <$ac_header>
7152_ACEOF
7153rm -f conftest.$ac_objext
7154if { (ac_try="$ac_compile"
7155case "(($ac_try" in
7156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7157 *) ac_try_echo=$ac_try;;
7158esac
7159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7160 (eval "$ac_compile") 2>conftest.er1
7161 ac_status=$?
7162 grep -v '^ *+' conftest.er1 >conftest.err
7163 rm -f conftest.er1
7164 cat conftest.err >&5
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); } && {
7167 test -z "$ac_cxx_werror_flag" ||
7168 test ! -s conftest.err
7169 } && test -s conftest.$ac_objext; then
7170 eval "$as_ac_Header=yes"
7171else
7172 echo "$as_me: failed program was:" >&5
7173sed 's/^/| /' conftest.$ac_ext >&5
7174
7175 eval "$as_ac_Header=no"
7176fi
7177
7178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7179fi
7180ac_res=`eval echo '${'$as_ac_Header'}'`
7181 { echo "$as_me:$LINENO: result: $ac_res" >&5
7182echo "${ECHO_T}$ac_res" >&6; }
7183if test `eval echo '${'$as_ac_Header'}'` = yes; then
7184 cat >>confdefs.h <<_ACEOF
7185#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7186_ACEOF
7187
7188fi
7189
7190done
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203 7596
7204 7597
7205 7598
7206 7599
7207 7600
7208 7601
7209 7602
7210for ac_header in \ 7603for ac_header in \
7211 assert.h \
7212 fcntl.h \
7213 stdarg.h \
7214 stdlib.h \
7215 string.h \
7216 termios.h \
7217 unistd.h \
7218 sys/byteorder.h \ 7604 sys/byteorder.h \
7219 sys/ioctl.h \ 7605 sys/ioctl.h \
7220 sys/select.h \
7221 sys/sockio.h \ 7606 sys/sockio.h \
7222 sys/strredir.h \ 7607 sys/strredir.h \
7223 sys/time.h \
7224 stdint.h \ 7608 stdint.h \
7225 wchar.h \ 7609 wchar.h \
7226 cwchar \ 7610 cwchar \
7227 clocale \
7228 7611
7229do 7612do
7230as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7613as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7231if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7614if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7232 { echo "$as_me:$LINENO: checking for $ac_header" >&5 7615 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7363fi 7746fi
7364 7747
7365done 7748done
7366 7749
7367 7750
7368{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7369echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7370if test "${ac_cv_header_time+set}" = set; then
7371 echo $ECHO_N "(cached) $ECHO_C" >&6
7372else
7373 cat >conftest.$ac_ext <<_ACEOF
7374/* confdefs.h. */
7375_ACEOF
7376cat confdefs.h >>conftest.$ac_ext
7377cat >>conftest.$ac_ext <<_ACEOF
7378/* end confdefs.h. */
7379#include <sys/types.h>
7380#include <sys/time.h>
7381#include <time.h>
7382
7383int
7384main ()
7385{
7386if ((struct tm *) 0)
7387return 0;
7388 ;
7389 return 0;
7390}
7391_ACEOF
7392rm -f conftest.$ac_objext
7393if { (ac_try="$ac_compile"
7394case "(($ac_try" in
7395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7396 *) ac_try_echo=$ac_try;;
7397esac
7398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7399 (eval "$ac_compile") 2>conftest.er1
7400 ac_status=$?
7401 grep -v '^ *+' conftest.er1 >conftest.err
7402 rm -f conftest.er1
7403 cat conftest.err >&5
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); } && {
7406 test -z "$ac_cxx_werror_flag" ||
7407 test ! -s conftest.err
7408 } && test -s conftest.$ac_objext; then
7409 ac_cv_header_time=yes
7410else
7411 echo "$as_me: failed program was:" >&5
7412sed 's/^/| /' conftest.$ac_ext >&5
7413
7414 ac_cv_header_time=no
7415fi
7416
7417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7418fi
7419{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7420echo "${ECHO_T}$ac_cv_header_time" >&6; }
7421if test $ac_cv_header_time = yes; then
7422
7423cat >>confdefs.h <<\_ACEOF
7424#define TIME_WITH_SYS_TIME 1
7425_ACEOF
7426
7427fi
7428
7429
7430{ echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5
7431echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; }
7432if test "${rxvt_cv_header_sysioctl+set}" = set; then
7433 echo $ECHO_N "(cached) $ECHO_C" >&6
7434else
7435 cat >conftest.$ac_ext <<_ACEOF
7436/* confdefs.h. */
7437_ACEOF
7438cat confdefs.h >>conftest.$ac_ext
7439cat >>conftest.$ac_ext <<_ACEOF
7440/* end confdefs.h. */
7441#include <stdio.h>
7442#include <sys/ioctl.h>
7443#ifdef HAVE_TERMIOS_H
7444#include <termios.h>
7445#endif
7446int
7447main ()
7448{
7449int a = ECHO;
7450 ;
7451 return 0;
7452}
7453_ACEOF
7454rm -f conftest.$ac_objext
7455if { (ac_try="$ac_compile"
7456case "(($ac_try" in
7457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7458 *) ac_try_echo=$ac_try;;
7459esac
7460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7461 (eval "$ac_compile") 2>conftest.er1
7462 ac_status=$?
7463 grep -v '^ *+' conftest.er1 >conftest.err
7464 rm -f conftest.er1
7465 cat conftest.err >&5
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); } && {
7468 test -z "$ac_cxx_werror_flag" ||
7469 test ! -s conftest.err
7470 } && test -s conftest.$ac_objext; then
7471 rxvt_cv_header_sysioctl=yes
7472else
7473 echo "$as_me: failed program was:" >&5
7474sed 's/^/| /' conftest.$ac_ext >&5
7475
7476 rxvt_cv_header_sysioctl=no
7477fi
7478
7479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7480fi
7481{ echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7482echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6; }
7483
7484{ echo "$as_me:$LINENO: checking for XPointer" >&5 7751{ echo "$as_me:$LINENO: checking for XPointer" >&5
7485echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } 7752echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; }
7486if test "${rxvt_cv_xpointer+set}" = set; then 7753if test "${rxvt_cv_xpointer+set}" = set; then
7487 echo $ECHO_N "(cached) $ECHO_C" >&6 7754 echo $ECHO_N "(cached) $ECHO_C" >&6
7488else 7755else
7599cat >>confdefs.h <<\_ACEOF 7866cat >>confdefs.h <<\_ACEOF
7600#define XLIB_ILLEGAL_ACCESS 1 7867#define XLIB_ILLEGAL_ACCESS 1
7601_ACEOF 7868_ACEOF
7602 7869
7603fi 7870fi
7604
7605{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7606echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7607if test "${ac_cv_c_const+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7609else
7610 cat >conftest.$ac_ext <<_ACEOF
7611/* confdefs.h. */
7612_ACEOF
7613cat confdefs.h >>conftest.$ac_ext
7614cat >>conftest.$ac_ext <<_ACEOF
7615/* end confdefs.h. */
7616
7617int
7618main ()
7619{
7620/* FIXME: Include the comments suggested by Paul. */
7621#ifndef __cplusplus
7622 /* Ultrix mips cc rejects this. */
7623 typedef int charset[2];
7624 const charset cs;
7625 /* SunOS 4.1.1 cc rejects this. */
7626 char const *const *pcpcc;
7627 char **ppc;
7628 /* NEC SVR4.0.2 mips cc rejects this. */
7629 struct point {int x, y;};
7630 static struct point const zero = {0,0};
7631 /* AIX XL C 1.02.0.0 rejects this.
7632 It does not let you subtract one const X* pointer from another in
7633 an arm of an if-expression whose if-part is not a constant
7634 expression */
7635 const char *g = "string";
7636 pcpcc = &g + (g ? g-g : 0);
7637 /* HPUX 7.0 cc rejects these. */
7638 ++pcpcc;
7639 ppc = (char**) pcpcc;
7640 pcpcc = (char const *const *) ppc;
7641 { /* SCO 3.2v4 cc rejects this. */
7642 char *t;
7643 char const *s = 0 ? (char *) 0 : (char const *) 0;
7644
7645 *t++ = 0;
7646 if (s) return 0;
7647 }
7648 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7649 int x[] = {25, 17};
7650 const int *foo = &x[0];
7651 ++foo;
7652 }
7653 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7654 typedef const int *iptr;
7655 iptr p = 0;
7656 ++p;
7657 }
7658 { /* AIX XL C 1.02.0.0 rejects this saying
7659 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7660 struct s { int j; const int *ap[3]; };
7661 struct s *b; b->j = 5;
7662 }
7663 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7664 const int foo = 10;
7665 if (!foo) return 0;
7666 }
7667 return !cs[0] && !zero.x;
7668#endif
7669
7670 ;
7671 return 0;
7672}
7673_ACEOF
7674rm -f conftest.$ac_objext
7675if { (ac_try="$ac_compile"
7676case "(($ac_try" in
7677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7678 *) ac_try_echo=$ac_try;;
7679esac
7680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7681 (eval "$ac_compile") 2>conftest.er1
7682 ac_status=$?
7683 grep -v '^ *+' conftest.er1 >conftest.err
7684 rm -f conftest.er1
7685 cat conftest.err >&5
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); } && {
7688 test -z "$ac_cxx_werror_flag" ||
7689 test ! -s conftest.err
7690 } && test -s conftest.$ac_objext; then
7691 ac_cv_c_const=yes
7692else
7693 echo "$as_me: failed program was:" >&5
7694sed 's/^/| /' conftest.$ac_ext >&5
7695
7696 ac_cv_c_const=no
7697fi
7698
7699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7700fi
7701{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7702echo "${ECHO_T}$ac_cv_c_const" >&6; }
7703if test $ac_cv_c_const = no; then
7704
7705cat >>confdefs.h <<\_ACEOF
7706#define const
7707_ACEOF
7708
7709fi
7710
7711{ echo "$as_me:$LINENO: checking for inline" >&5
7712echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
7713if test "${ac_cv_c_inline+set}" = set; then
7714 echo $ECHO_N "(cached) $ECHO_C" >&6
7715else
7716 ac_cv_c_inline=no
7717for ac_kw in inline __inline__ __inline; do
7718 cat >conftest.$ac_ext <<_ACEOF
7719/* confdefs.h. */
7720_ACEOF
7721cat confdefs.h >>conftest.$ac_ext
7722cat >>conftest.$ac_ext <<_ACEOF
7723/* end confdefs.h. */
7724#ifndef __cplusplus
7725typedef int foo_t;
7726static $ac_kw foo_t static_foo () {return 0; }
7727$ac_kw foo_t foo () {return 0; }
7728#endif
7729
7730_ACEOF
7731rm -f conftest.$ac_objext
7732if { (ac_try="$ac_compile"
7733case "(($ac_try" in
7734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7735 *) ac_try_echo=$ac_try;;
7736esac
7737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7738 (eval "$ac_compile") 2>conftest.er1
7739 ac_status=$?
7740 grep -v '^ *+' conftest.er1 >conftest.err
7741 rm -f conftest.er1
7742 cat conftest.err >&5
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); } && {
7745 test -z "$ac_cxx_werror_flag" ||
7746 test ! -s conftest.err
7747 } && test -s conftest.$ac_objext; then
7748 ac_cv_c_inline=$ac_kw
7749else
7750 echo "$as_me: failed program was:" >&5
7751sed 's/^/| /' conftest.$ac_ext >&5
7752
7753
7754fi
7755
7756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7757 test "$ac_cv_c_inline" != no && break
7758done
7759
7760fi
7761{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7762echo "${ECHO_T}$ac_cv_c_inline" >&6; }
7763
7764
7765case $ac_cv_c_inline in
7766 inline | yes) ;;
7767 *)
7768 case $ac_cv_c_inline in
7769 no) ac_val=;;
7770 *) ac_val=$ac_cv_c_inline;;
7771 esac
7772 cat >>confdefs.h <<_ACEOF
7773#ifndef __cplusplus
7774#define inline $ac_val
7775#endif
7776_ACEOF
7777 ;;
7778esac
7779
7780
7781 7871
7782{ echo "$as_me:$LINENO: checking for mode_t" >&5 7872{ echo "$as_me:$LINENO: checking for mode_t" >&5
7783echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } 7873echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
7784if test "${ac_cv_type_mode_t+set}" = set; then 7874if test "${ac_cv_type_mode_t+set}" = set; then
7785 echo $ECHO_N "(cached) $ECHO_C" >&6 7875 echo $ECHO_N "(cached) $ECHO_C" >&6
7942_ACEOF 8032_ACEOF
7943 8033
7944fi 8034fi
7945 8035
7946 8036
7947{ echo "$as_me:$LINENO: checking for short" >&5 8037 { echo "$as_me:$LINENO: checking for int16_t" >&5
7948echo $ECHO_N "checking for short... $ECHO_C" >&6; } 8038echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
7949if test "${ac_cv_type_short+set}" = set; then 8039if test "${ac_cv_c_int16_t+set}" = set; then
7950 echo $ECHO_N "(cached) $ECHO_C" >&6 8040 echo $ECHO_N "(cached) $ECHO_C" >&6
7951else 8041else
8042 ac_cv_c_int16_t=no
8043 for ac_type in 'int16_t' 'int' 'long int' \
8044 'long long int' 'short int' 'signed char'; do
7952 cat >conftest.$ac_ext <<_ACEOF 8045 cat >conftest.$ac_ext <<_ACEOF
7953/* confdefs.h. */ 8046/* confdefs.h. */
7954_ACEOF 8047_ACEOF
7955cat confdefs.h >>conftest.$ac_ext 8048cat confdefs.h >>conftest.$ac_ext
7956cat >>conftest.$ac_ext <<_ACEOF 8049cat >>conftest.$ac_ext <<_ACEOF
7957/* end confdefs.h. */ 8050/* end confdefs.h. */
7958$ac_includes_default 8051$ac_includes_default
7959typedef short ac__type_new_;
7960int 8052int
7961main () 8053main ()
7962{ 8054{
7963if ((ac__type_new_ *) 0) 8055static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
7964 return 0; 8056test_array [0] = 0
7965if (sizeof (ac__type_new_)) 8057
7966 return 0;
7967 ; 8058 ;
7968 return 0; 8059 return 0;
7969} 8060}
7970_ACEOF 8061_ACEOF
7971rm -f conftest.$ac_objext 8062rm -f conftest.$ac_objext
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); } && { 8075 (exit $ac_status); } && {
7985 test -z "$ac_cxx_werror_flag" || 8076 test -z "$ac_cxx_werror_flag" ||
7986 test ! -s conftest.err 8077 test ! -s conftest.err
7987 } && test -s conftest.$ac_objext; then 8078 } && test -s conftest.$ac_objext; then
7988 ac_cv_type_short=yes
7989else
7990 echo "$as_me: failed program was:" >&5
7991sed 's/^/| /' conftest.$ac_ext >&5
7992
7993 ac_cv_type_short=no
7994fi
7995
7996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7997fi
7998{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7999echo "${ECHO_T}$ac_cv_type_short" >&6; }
8000
8001# The cast to long int works around a bug in the HP C Compiler
8002# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8003# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8004# This bug is HP SR number 8606223364.
8005{ echo "$as_me:$LINENO: checking size of short" >&5
8006echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8007if test "${ac_cv_sizeof_short+set}" = set; then
8008 echo $ECHO_N "(cached) $ECHO_C" >&6
8009else
8010 if test "$cross_compiling" = yes; then
8011 # Depending upon the size, compute the lo and hi bounds.
8012cat >conftest.$ac_ext <<_ACEOF 8079 cat >conftest.$ac_ext <<_ACEOF
8013/* confdefs.h. */ 8080/* confdefs.h. */
8014_ACEOF 8081_ACEOF
8015cat confdefs.h >>conftest.$ac_ext 8082cat confdefs.h >>conftest.$ac_ext
8016cat >>conftest.$ac_ext <<_ACEOF 8083cat >>conftest.$ac_ext <<_ACEOF
8017/* end confdefs.h. */ 8084/* end confdefs.h. */
8018$ac_includes_default 8085$ac_includes_default
8019 typedef short ac__type_sizeof_;
8020int 8086int
8021main () 8087main ()
8022{ 8088{
8023static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 8089static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
8090 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
8024test_array [0] = 0 8091test_array [0] = 0
8025 8092
8026 ; 8093 ;
8027 return 0; 8094 return 0;
8028} 8095}
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); } && { 8110 (exit $ac_status); } && {
8044 test -z "$ac_cxx_werror_flag" || 8111 test -z "$ac_cxx_werror_flag" ||
8045 test ! -s conftest.err 8112 test ! -s conftest.err
8046 } && test -s conftest.$ac_objext; then 8113 } && test -s conftest.$ac_objext; then
8047 ac_lo=0 ac_mid=0 8114 :
8048 while :; do 8115else
8116 echo "$as_me: failed program was:" >&5
8117sed 's/^/| /' conftest.$ac_ext >&5
8118
8119 case $ac_type in
8120 int16_t) ac_cv_c_int16_t=yes ;;
8121 *) ac_cv_c_int16_t=$ac_type ;;
8122esac
8123
8124fi
8125
8126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8127else
8128 echo "$as_me: failed program was:" >&5
8129sed 's/^/| /' conftest.$ac_ext >&5
8130
8131
8132fi
8133
8134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8135 test "$ac_cv_c_int16_t" != no && break
8136 done
8137fi
8138{ echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
8139echo "${ECHO_T}$ac_cv_c_int16_t" >&6; }
8140 case $ac_cv_c_int16_t in #(
8141 no|yes) ;; #(
8142 *)
8143
8144cat >>confdefs.h <<_ACEOF
8145#define int16_t $ac_cv_c_int16_t
8146_ACEOF
8147;;
8148 esac
8149
8150
8151 { echo "$as_me:$LINENO: checking for uint16_t" >&5
8152echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
8153if test "${ac_cv_c_uint16_t+set}" = set; then
8154 echo $ECHO_N "(cached) $ECHO_C" >&6
8155else
8156 ac_cv_c_uint16_t=no
8157 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
8158 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
8049 cat >conftest.$ac_ext <<_ACEOF 8159 cat >conftest.$ac_ext <<_ACEOF
8050/* confdefs.h. */ 8160/* confdefs.h. */
8051_ACEOF 8161_ACEOF
8052cat confdefs.h >>conftest.$ac_ext 8162cat confdefs.h >>conftest.$ac_ext
8053cat >>conftest.$ac_ext <<_ACEOF 8163cat >>conftest.$ac_ext <<_ACEOF
8054/* end confdefs.h. */ 8164/* end confdefs.h. */
8055$ac_includes_default 8165$ac_includes_default
8056 typedef short ac__type_sizeof_;
8057int 8166int
8058main () 8167main ()
8059{ 8168{
8060static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 8169static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
8061test_array [0] = 0 8170test_array [0] = 0
8062 8171
8063 ; 8172 ;
8064 return 0; 8173 return 0;
8065} 8174}
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); } && { 8189 (exit $ac_status); } && {
8081 test -z "$ac_cxx_werror_flag" || 8190 test -z "$ac_cxx_werror_flag" ||
8082 test ! -s conftest.err 8191 test ! -s conftest.err
8083 } && test -s conftest.$ac_objext; then 8192 } && test -s conftest.$ac_objext; then
8084 ac_hi=$ac_mid; break 8193 case $ac_type in
8194 uint16_t) ac_cv_c_uint16_t=yes ;;
8195 *) ac_cv_c_uint16_t=$ac_type ;;
8196esac
8197
8085else 8198else
8086 echo "$as_me: failed program was:" >&5 8199 echo "$as_me: failed program was:" >&5
8087sed 's/^/| /' conftest.$ac_ext >&5 8200sed 's/^/| /' conftest.$ac_ext >&5
8088 8201
8089 ac_lo=`expr $ac_mid + 1` 8202
8090 if test $ac_lo -le $ac_mid; then
8091 ac_lo= ac_hi=
8092 break
8093 fi
8094 ac_mid=`expr 2 '*' $ac_mid + 1`
8095fi 8203fi
8096 8204
8097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8206 test "$ac_cv_c_uint16_t" != no && break
8098 done 8207 done
8099else 8208fi
8100 echo "$as_me: failed program was:" >&5 8209{ echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
8101sed 's/^/| /' conftest.$ac_ext >&5 8210echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
8211 case $ac_cv_c_uint16_t in #(
8212 no|yes) ;; #(
8213 *)
8102 8214
8215
8216cat >>confdefs.h <<_ACEOF
8217#define uint16_t $ac_cv_c_uint16_t
8218_ACEOF
8219;;
8220 esac
8221
8222
8223 { echo "$as_me:$LINENO: checking for int32_t" >&5
8224echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
8225if test "${ac_cv_c_int32_t+set}" = set; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
8227else
8228 ac_cv_c_int32_t=no
8229 for ac_type in 'int32_t' 'int' 'long int' \
8230 'long long int' 'short int' 'signed char'; do
8103 cat >conftest.$ac_ext <<_ACEOF 8231 cat >conftest.$ac_ext <<_ACEOF
8104/* confdefs.h. */ 8232/* confdefs.h. */
8105_ACEOF 8233_ACEOF
8106cat confdefs.h >>conftest.$ac_ext 8234cat confdefs.h >>conftest.$ac_ext
8107cat >>conftest.$ac_ext <<_ACEOF 8235cat >>conftest.$ac_ext <<_ACEOF
8108/* end confdefs.h. */ 8236/* end confdefs.h. */
8109$ac_includes_default 8237$ac_includes_default
8110 typedef short ac__type_sizeof_;
8111int 8238int
8112main () 8239main ()
8113{ 8240{
8114static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 8241static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
8115test_array [0] = 0 8242test_array [0] = 0
8116 8243
8117 ; 8244 ;
8118 return 0; 8245 return 0;
8119} 8246}
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); } && { 8261 (exit $ac_status); } && {
8135 test -z "$ac_cxx_werror_flag" || 8262 test -z "$ac_cxx_werror_flag" ||
8136 test ! -s conftest.err 8263 test ! -s conftest.err
8137 } && test -s conftest.$ac_objext; then 8264 } && test -s conftest.$ac_objext; then
8138 ac_hi=-1 ac_mid=-1
8139 while :; do
8140 cat >conftest.$ac_ext <<_ACEOF 8265 cat >conftest.$ac_ext <<_ACEOF
8141/* confdefs.h. */ 8266/* confdefs.h. */
8142_ACEOF 8267_ACEOF
8143cat confdefs.h >>conftest.$ac_ext 8268cat confdefs.h >>conftest.$ac_ext
8144cat >>conftest.$ac_ext <<_ACEOF 8269cat >>conftest.$ac_ext <<_ACEOF
8145/* end confdefs.h. */ 8270/* end confdefs.h. */
8146$ac_includes_default 8271$ac_includes_default
8147 typedef short ac__type_sizeof_;
8148int 8272int
8149main () 8273main ()
8150{ 8274{
8151static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 8275static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
8276 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
8152test_array [0] = 0 8277test_array [0] = 0
8153 8278
8154 ; 8279 ;
8155 return 0; 8280 return 0;
8156} 8281}
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); } && { 8296 (exit $ac_status); } && {
8172 test -z "$ac_cxx_werror_flag" || 8297 test -z "$ac_cxx_werror_flag" ||
8173 test ! -s conftest.err 8298 test ! -s conftest.err
8174 } && test -s conftest.$ac_objext; then 8299 } && test -s conftest.$ac_objext; then
8175 ac_lo=$ac_mid; break 8300 :
8176else 8301else
8177 echo "$as_me: failed program was:" >&5 8302 echo "$as_me: failed program was:" >&5
8178sed 's/^/| /' conftest.$ac_ext >&5 8303sed 's/^/| /' conftest.$ac_ext >&5
8179 8304
8180 ac_hi=`expr '(' $ac_mid ')' - 1` 8305 case $ac_type in
8181 if test $ac_mid -le $ac_hi; then 8306 int32_t) ac_cv_c_int32_t=yes ;;
8182 ac_lo= ac_hi= 8307 *) ac_cv_c_int32_t=$ac_type ;;
8183 break 8308esac
8184 fi 8309
8185 ac_mid=`expr 2 '*' $ac_mid`
8186fi 8310fi
8187 8311
8188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8189 done
8190else 8313else
8191 echo "$as_me: failed program was:" >&5 8314 echo "$as_me: failed program was:" >&5
8192sed 's/^/| /' conftest.$ac_ext >&5 8315sed 's/^/| /' conftest.$ac_ext >&5
8193 8316
8194 ac_lo= ac_hi= 8317
8195fi 8318fi
8196 8319
8197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8321 test "$ac_cv_c_int32_t" != no && break
8322 done
8198fi 8323fi
8324{ echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
8325echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
8326 case $ac_cv_c_int32_t in #(
8327 no|yes) ;; #(
8328 *)
8199 8329
8200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8330cat >>confdefs.h <<_ACEOF
8201# Binary search between lo and hi bounds. 8331#define int32_t $ac_cv_c_int32_t
8202while test "x$ac_lo" != "x$ac_hi"; do 8332_ACEOF
8203 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 8333;;
8334 esac
8335
8336
8337 { echo "$as_me:$LINENO: checking for uint32_t" >&5
8338echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
8339if test "${ac_cv_c_uint32_t+set}" = set; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
8341else
8342 ac_cv_c_uint32_t=no
8343 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
8344 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
8204 cat >conftest.$ac_ext <<_ACEOF 8345 cat >conftest.$ac_ext <<_ACEOF
8205/* confdefs.h. */ 8346/* confdefs.h. */
8206_ACEOF 8347_ACEOF
8207cat confdefs.h >>conftest.$ac_ext 8348cat confdefs.h >>conftest.$ac_ext
8208cat >>conftest.$ac_ext <<_ACEOF 8349cat >>conftest.$ac_ext <<_ACEOF
8209/* end confdefs.h. */ 8350/* end confdefs.h. */
8210$ac_includes_default 8351$ac_includes_default
8211 typedef short ac__type_sizeof_;
8212int 8352int
8213main () 8353main ()
8214{ 8354{
8215static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 8355static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
8216test_array [0] = 0 8356test_array [0] = 0
8217 8357
8218 ; 8358 ;
8219 return 0; 8359 return 0;
8220} 8360}
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); } && { 8375 (exit $ac_status); } && {
8236 test -z "$ac_cxx_werror_flag" || 8376 test -z "$ac_cxx_werror_flag" ||
8237 test ! -s conftest.err 8377 test ! -s conftest.err
8238 } && test -s conftest.$ac_objext; then 8378 } && test -s conftest.$ac_objext; then
8239 ac_hi=$ac_mid 8379 case $ac_type in
8380 uint32_t) ac_cv_c_uint32_t=yes ;;
8381 *) ac_cv_c_uint32_t=$ac_type ;;
8382esac
8383
8240else 8384else
8241 echo "$as_me: failed program was:" >&5 8385 echo "$as_me: failed program was:" >&5
8242sed 's/^/| /' conftest.$ac_ext >&5 8386sed 's/^/| /' conftest.$ac_ext >&5
8243 8387
8244 ac_lo=`expr '(' $ac_mid ')' + 1` 8388
8245fi 8389fi
8246 8390
8247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8248done 8392 test "$ac_cv_c_uint32_t" != no && break
8249case $ac_lo in 8393 done
8250?*) ac_cv_sizeof_short=$ac_lo;;
8251'') if test "$ac_cv_type_short" = yes; then
8252 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8253See \`config.log' for more details." >&5
8254echo "$as_me: error: cannot compute sizeof (short)
8255See \`config.log' for more details." >&2;}
8256 { (exit 77); exit 77; }; }
8257 else
8258 ac_cv_sizeof_short=0
8259 fi ;;
8260esac
8261else
8262 cat >conftest.$ac_ext <<_ACEOF
8263/* confdefs.h. */
8264_ACEOF
8265cat confdefs.h >>conftest.$ac_ext
8266cat >>conftest.$ac_ext <<_ACEOF
8267/* end confdefs.h. */
8268$ac_includes_default
8269 typedef short ac__type_sizeof_;
8270static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8271static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8272#include <stdio.h>
8273#include <stdlib.h>
8274int
8275main ()
8276{
8277
8278 FILE *f = fopen ("conftest.val", "w");
8279 if (! f)
8280 return 1;
8281 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8282 {
8283 long int i = longval ();
8284 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8285 return 1;
8286 fprintf (f, "%ld\n", i);
8287 }
8288 else
8289 {
8290 unsigned long int i = ulongval ();
8291 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8292 return 1;
8293 fprintf (f, "%lu\n", i);
8294 }
8295 return ferror (f) || fclose (f) != 0;
8296
8297 ;
8298 return 0;
8299}
8300_ACEOF
8301rm -f conftest$ac_exeext
8302if { (ac_try="$ac_link"
8303case "(($ac_try" in
8304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305 *) ac_try_echo=$ac_try;;
8306esac
8307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308 (eval "$ac_link") 2>&5
8309 ac_status=$?
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8312 { (case "(($ac_try" in
8313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8314 *) ac_try_echo=$ac_try;;
8315esac
8316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8317 (eval "$ac_try") 2>&5
8318 ac_status=$?
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); }; }; then
8321 ac_cv_sizeof_short=`cat conftest.val`
8322else
8323 echo "$as_me: program exited with status $ac_status" >&5
8324echo "$as_me: failed program was:" >&5
8325sed 's/^/| /' conftest.$ac_ext >&5
8326
8327( exit $ac_status )
8328if test "$ac_cv_type_short" = yes; then
8329 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8330See \`config.log' for more details." >&5
8331echo "$as_me: error: cannot compute sizeof (short)
8332See \`config.log' for more details." >&2;}
8333 { (exit 77); exit 77; }; }
8334 else
8335 ac_cv_sizeof_short=0
8336 fi
8337fi 8394fi
8338rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8339fi
8340rm -f conftest.val
8341fi
8342{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 8395{ echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
8343echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } 8396echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
8397 case $ac_cv_c_uint32_t in #(
8398 no|yes) ;; #(
8399 *)
8344 8400
8401cat >>confdefs.h <<\_ACEOF
8402#define _UINT32_T 1
8403_ACEOF
8345 8404
8346 8405
8347cat >>confdefs.h <<_ACEOF 8406cat >>confdefs.h <<_ACEOF
8348#define SIZEOF_SHORT $ac_cv_sizeof_short 8407#define uint32_t $ac_cv_c_uint32_t
8349_ACEOF 8408_ACEOF
8350 8409;;
8351
8352{ echo "$as_me:$LINENO: checking for int" >&5
8353echo $ECHO_N "checking for int... $ECHO_C" >&6; }
8354if test "${ac_cv_type_int+set}" = set; then
8355 echo $ECHO_N "(cached) $ECHO_C" >&6
8356else
8357 cat >conftest.$ac_ext <<_ACEOF
8358/* confdefs.h. */
8359_ACEOF
8360cat confdefs.h >>conftest.$ac_ext
8361cat >>conftest.$ac_ext <<_ACEOF
8362/* end confdefs.h. */
8363$ac_includes_default
8364typedef int ac__type_new_;
8365int
8366main ()
8367{
8368if ((ac__type_new_ *) 0)
8369 return 0;
8370if (sizeof (ac__type_new_))
8371 return 0;
8372 ;
8373 return 0;
8374}
8375_ACEOF
8376rm -f conftest.$ac_objext
8377if { (ac_try="$ac_compile"
8378case "(($ac_try" in
8379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8380 *) ac_try_echo=$ac_try;;
8381esac 8410 esac
8382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8383 (eval "$ac_compile") 2>conftest.er1
8384 ac_status=$?
8385 grep -v '^ *+' conftest.er1 >conftest.err
8386 rm -f conftest.er1
8387 cat conftest.err >&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); } && {
8390 test -z "$ac_cxx_werror_flag" ||
8391 test ! -s conftest.err
8392 } && test -s conftest.$ac_objext; then
8393 ac_cv_type_int=yes
8394else
8395 echo "$as_me: failed program was:" >&5
8396sed 's/^/| /' conftest.$ac_ext >&5
8397 8411
8398 ac_cv_type_int=no
8399fi
8400 8412
8401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8402fi
8403{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8404echo "${ECHO_T}$ac_cv_type_int" >&6; }
8405 8413
8406# The cast to long int works around a bug in the HP C Compiler
8407# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8408# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8409# This bug is HP SR number 8606223364.
8410{ echo "$as_me:$LINENO: checking size of int" >&5
8411echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
8412if test "${ac_cv_sizeof_int+set}" = set; then
8413 echo $ECHO_N "(cached) $ECHO_C" >&6
8414else
8415 if test "$cross_compiling" = yes; then
8416 # Depending upon the size, compute the lo and hi bounds.
8417cat >conftest.$ac_ext <<_ACEOF
8418/* confdefs.h. */
8419_ACEOF
8420cat confdefs.h >>conftest.$ac_ext
8421cat >>conftest.$ac_ext <<_ACEOF
8422/* end confdefs.h. */
8423$ac_includes_default
8424 typedef int ac__type_sizeof_;
8425int
8426main ()
8427{
8428static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8429test_array [0] = 0
8430
8431 ;
8432 return 0;
8433}
8434_ACEOF
8435rm -f conftest.$ac_objext
8436if { (ac_try="$ac_compile"
8437case "(($ac_try" in
8438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8439 *) ac_try_echo=$ac_try;;
8440esac
8441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8442 (eval "$ac_compile") 2>conftest.er1
8443 ac_status=$?
8444 grep -v '^ *+' conftest.er1 >conftest.err
8445 rm -f conftest.er1
8446 cat conftest.err >&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); } && {
8449 test -z "$ac_cxx_werror_flag" ||
8450 test ! -s conftest.err
8451 } && test -s conftest.$ac_objext; then
8452 ac_lo=0 ac_mid=0
8453 while :; do
8454 cat >conftest.$ac_ext <<_ACEOF
8455/* confdefs.h. */
8456_ACEOF
8457cat confdefs.h >>conftest.$ac_ext
8458cat >>conftest.$ac_ext <<_ACEOF
8459/* end confdefs.h. */
8460$ac_includes_default
8461 typedef int ac__type_sizeof_;
8462int
8463main ()
8464{
8465static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8466test_array [0] = 0
8467
8468 ;
8469 return 0;
8470}
8471_ACEOF
8472rm -f conftest.$ac_objext
8473if { (ac_try="$ac_compile"
8474case "(($ac_try" in
8475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476 *) ac_try_echo=$ac_try;;
8477esac
8478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479 (eval "$ac_compile") 2>conftest.er1
8480 ac_status=$?
8481 grep -v '^ *+' conftest.er1 >conftest.err
8482 rm -f conftest.er1
8483 cat conftest.err >&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); } && {
8486 test -z "$ac_cxx_werror_flag" ||
8487 test ! -s conftest.err
8488 } && test -s conftest.$ac_objext; then
8489 ac_hi=$ac_mid; break
8490else
8491 echo "$as_me: failed program was:" >&5
8492sed 's/^/| /' conftest.$ac_ext >&5
8493
8494 ac_lo=`expr $ac_mid + 1`
8495 if test $ac_lo -le $ac_mid; then
8496 ac_lo= ac_hi=
8497 break
8498 fi
8499 ac_mid=`expr 2 '*' $ac_mid + 1`
8500fi
8501
8502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8503 done
8504else
8505 echo "$as_me: failed program was:" >&5
8506sed 's/^/| /' conftest.$ac_ext >&5
8507
8508 cat >conftest.$ac_ext <<_ACEOF
8509/* confdefs.h. */
8510_ACEOF
8511cat confdefs.h >>conftest.$ac_ext
8512cat >>conftest.$ac_ext <<_ACEOF
8513/* end confdefs.h. */
8514$ac_includes_default
8515 typedef int ac__type_sizeof_;
8516int
8517main ()
8518{
8519static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8520test_array [0] = 0
8521
8522 ;
8523 return 0;
8524}
8525_ACEOF
8526rm -f conftest.$ac_objext
8527if { (ac_try="$ac_compile"
8528case "(($ac_try" in
8529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530 *) ac_try_echo=$ac_try;;
8531esac
8532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8533 (eval "$ac_compile") 2>conftest.er1
8534 ac_status=$?
8535 grep -v '^ *+' conftest.er1 >conftest.err
8536 rm -f conftest.er1
8537 cat conftest.err >&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); } && {
8540 test -z "$ac_cxx_werror_flag" ||
8541 test ! -s conftest.err
8542 } && test -s conftest.$ac_objext; then
8543 ac_hi=-1 ac_mid=-1
8544 while :; do
8545 cat >conftest.$ac_ext <<_ACEOF
8546/* confdefs.h. */
8547_ACEOF
8548cat confdefs.h >>conftest.$ac_ext
8549cat >>conftest.$ac_ext <<_ACEOF
8550/* end confdefs.h. */
8551$ac_includes_default
8552 typedef int ac__type_sizeof_;
8553int
8554main ()
8555{
8556static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8557test_array [0] = 0
8558
8559 ;
8560 return 0;
8561}
8562_ACEOF
8563rm -f conftest.$ac_objext
8564if { (ac_try="$ac_compile"
8565case "(($ac_try" in
8566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8567 *) ac_try_echo=$ac_try;;
8568esac
8569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8570 (eval "$ac_compile") 2>conftest.er1
8571 ac_status=$?
8572 grep -v '^ *+' conftest.er1 >conftest.err
8573 rm -f conftest.er1
8574 cat conftest.err >&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); } && {
8577 test -z "$ac_cxx_werror_flag" ||
8578 test ! -s conftest.err
8579 } && test -s conftest.$ac_objext; then
8580 ac_lo=$ac_mid; break
8581else
8582 echo "$as_me: failed program was:" >&5
8583sed 's/^/| /' conftest.$ac_ext >&5
8584
8585 ac_hi=`expr '(' $ac_mid ')' - 1`
8586 if test $ac_mid -le $ac_hi; then
8587 ac_lo= ac_hi=
8588 break
8589 fi
8590 ac_mid=`expr 2 '*' $ac_mid`
8591fi
8592
8593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8594 done
8595else
8596 echo "$as_me: failed program was:" >&5
8597sed 's/^/| /' conftest.$ac_ext >&5
8598
8599 ac_lo= ac_hi=
8600fi
8601
8602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8603fi
8604
8605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8606# Binary search between lo and hi bounds.
8607while test "x$ac_lo" != "x$ac_hi"; do
8608 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8609 cat >conftest.$ac_ext <<_ACEOF
8610/* confdefs.h. */
8611_ACEOF
8612cat confdefs.h >>conftest.$ac_ext
8613cat >>conftest.$ac_ext <<_ACEOF
8614/* end confdefs.h. */
8615$ac_includes_default
8616 typedef int ac__type_sizeof_;
8617int
8618main ()
8619{
8620static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8621test_array [0] = 0
8622
8623 ;
8624 return 0;
8625}
8626_ACEOF
8627rm -f conftest.$ac_objext
8628if { (ac_try="$ac_compile"
8629case "(($ac_try" in
8630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8631 *) ac_try_echo=$ac_try;;
8632esac
8633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8634 (eval "$ac_compile") 2>conftest.er1
8635 ac_status=$?
8636 grep -v '^ *+' conftest.er1 >conftest.err
8637 rm -f conftest.er1
8638 cat conftest.err >&5
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); } && {
8641 test -z "$ac_cxx_werror_flag" ||
8642 test ! -s conftest.err
8643 } && test -s conftest.$ac_objext; then
8644 ac_hi=$ac_mid
8645else
8646 echo "$as_me: failed program was:" >&5
8647sed 's/^/| /' conftest.$ac_ext >&5
8648
8649 ac_lo=`expr '(' $ac_mid ')' + 1`
8650fi
8651
8652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8653done
8654case $ac_lo in
8655?*) ac_cv_sizeof_int=$ac_lo;;
8656'') if test "$ac_cv_type_int" = yes; then
8657 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8658See \`config.log' for more details." >&5
8659echo "$as_me: error: cannot compute sizeof (int)
8660See \`config.log' for more details." >&2;}
8661 { (exit 77); exit 77; }; }
8662 else
8663 ac_cv_sizeof_int=0
8664 fi ;;
8665esac
8666else
8667 cat >conftest.$ac_ext <<_ACEOF
8668/* confdefs.h. */
8669_ACEOF
8670cat confdefs.h >>conftest.$ac_ext
8671cat >>conftest.$ac_ext <<_ACEOF
8672/* end confdefs.h. */
8673$ac_includes_default
8674 typedef int ac__type_sizeof_;
8675static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8676static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8677#include <stdio.h>
8678#include <stdlib.h>
8679int
8680main ()
8681{
8682
8683 FILE *f = fopen ("conftest.val", "w");
8684 if (! f)
8685 return 1;
8686 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8687 {
8688 long int i = longval ();
8689 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8690 return 1;
8691 fprintf (f, "%ld\n", i);
8692 }
8693 else
8694 {
8695 unsigned long int i = ulongval ();
8696 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8697 return 1;
8698 fprintf (f, "%lu\n", i);
8699 }
8700 return ferror (f) || fclose (f) != 0;
8701
8702 ;
8703 return 0;
8704}
8705_ACEOF
8706rm -f conftest$ac_exeext
8707if { (ac_try="$ac_link"
8708case "(($ac_try" in
8709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8710 *) ac_try_echo=$ac_try;;
8711esac
8712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8713 (eval "$ac_link") 2>&5
8714 ac_status=$?
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8717 { (case "(($ac_try" in
8718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8719 *) ac_try_echo=$ac_try;;
8720esac
8721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8722 (eval "$ac_try") 2>&5
8723 ac_status=$?
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); }; }; then
8726 ac_cv_sizeof_int=`cat conftest.val`
8727else
8728 echo "$as_me: program exited with status $ac_status" >&5
8729echo "$as_me: failed program was:" >&5
8730sed 's/^/| /' conftest.$ac_ext >&5
8731
8732( exit $ac_status )
8733if test "$ac_cv_type_int" = yes; then
8734 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8735See \`config.log' for more details." >&5
8736echo "$as_me: error: cannot compute sizeof (int)
8737See \`config.log' for more details." >&2;}
8738 { (exit 77); exit 77; }; }
8739 else
8740 ac_cv_sizeof_int=0
8741 fi
8742fi
8743rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8744fi
8745rm -f conftest.val
8746fi
8747{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8748echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
8749
8750
8751
8752cat >>confdefs.h <<_ACEOF
8753#define SIZEOF_INT $ac_cv_sizeof_int
8754_ACEOF
8755
8756
8757{ echo "$as_me:$LINENO: checking for long long" >&5
8758echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8759if test "${ac_cv_type_long_long+set}" = set; then
8760 echo $ECHO_N "(cached) $ECHO_C" >&6
8761else
8762 cat >conftest.$ac_ext <<_ACEOF
8763/* confdefs.h. */
8764_ACEOF
8765cat confdefs.h >>conftest.$ac_ext
8766cat >>conftest.$ac_ext <<_ACEOF
8767/* end confdefs.h. */
8768$ac_includes_default
8769typedef long long ac__type_new_;
8770int
8771main ()
8772{
8773if ((ac__type_new_ *) 0)
8774 return 0;
8775if (sizeof (ac__type_new_))
8776 return 0;
8777 ;
8778 return 0;
8779}
8780_ACEOF
8781rm -f conftest.$ac_objext
8782if { (ac_try="$ac_compile"
8783case "(($ac_try" in
8784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8785 *) ac_try_echo=$ac_try;;
8786esac
8787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8788 (eval "$ac_compile") 2>conftest.er1
8789 ac_status=$?
8790 grep -v '^ *+' conftest.er1 >conftest.err
8791 rm -f conftest.er1
8792 cat conftest.err >&5
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); } && {
8795 test -z "$ac_cxx_werror_flag" ||
8796 test ! -s conftest.err
8797 } && test -s conftest.$ac_objext; then
8798 ac_cv_type_long_long=yes
8799else
8800 echo "$as_me: failed program was:" >&5
8801sed 's/^/| /' conftest.$ac_ext >&5
8802
8803 ac_cv_type_long_long=no
8804fi
8805
8806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8807fi
8808{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8809echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8810
8811# The cast to long int works around a bug in the HP C Compiler
8812# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8813# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8814# This bug is HP SR number 8606223364.
8815{ echo "$as_me:$LINENO: checking size of long long" >&5
8816echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
8817if test "${ac_cv_sizeof_long_long+set}" = set; then
8818 echo $ECHO_N "(cached) $ECHO_C" >&6
8819else
8820 if test "$cross_compiling" = yes; then
8821 # Depending upon the size, compute the lo and hi bounds.
8822cat >conftest.$ac_ext <<_ACEOF
8823/* confdefs.h. */
8824_ACEOF
8825cat confdefs.h >>conftest.$ac_ext
8826cat >>conftest.$ac_ext <<_ACEOF
8827/* end confdefs.h. */
8828$ac_includes_default
8829 typedef long long ac__type_sizeof_;
8830int
8831main ()
8832{
8833static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8834test_array [0] = 0
8835
8836 ;
8837 return 0;
8838}
8839_ACEOF
8840rm -f conftest.$ac_objext
8841if { (ac_try="$ac_compile"
8842case "(($ac_try" in
8843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8844 *) ac_try_echo=$ac_try;;
8845esac
8846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8847 (eval "$ac_compile") 2>conftest.er1
8848 ac_status=$?
8849 grep -v '^ *+' conftest.er1 >conftest.err
8850 rm -f conftest.er1
8851 cat conftest.err >&5
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); } && {
8854 test -z "$ac_cxx_werror_flag" ||
8855 test ! -s conftest.err
8856 } && test -s conftest.$ac_objext; then
8857 ac_lo=0 ac_mid=0
8858 while :; do
8859 cat >conftest.$ac_ext <<_ACEOF
8860/* confdefs.h. */
8861_ACEOF
8862cat confdefs.h >>conftest.$ac_ext
8863cat >>conftest.$ac_ext <<_ACEOF
8864/* end confdefs.h. */
8865$ac_includes_default
8866 typedef long long ac__type_sizeof_;
8867int
8868main ()
8869{
8870static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8871test_array [0] = 0
8872
8873 ;
8874 return 0;
8875}
8876_ACEOF
8877rm -f conftest.$ac_objext
8878if { (ac_try="$ac_compile"
8879case "(($ac_try" in
8880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8881 *) ac_try_echo=$ac_try;;
8882esac
8883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8884 (eval "$ac_compile") 2>conftest.er1
8885 ac_status=$?
8886 grep -v '^ *+' conftest.er1 >conftest.err
8887 rm -f conftest.er1
8888 cat conftest.err >&5
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); } && {
8891 test -z "$ac_cxx_werror_flag" ||
8892 test ! -s conftest.err
8893 } && test -s conftest.$ac_objext; then
8894 ac_hi=$ac_mid; break
8895else
8896 echo "$as_me: failed program was:" >&5
8897sed 's/^/| /' conftest.$ac_ext >&5
8898
8899 ac_lo=`expr $ac_mid + 1`
8900 if test $ac_lo -le $ac_mid; then
8901 ac_lo= ac_hi=
8902 break
8903 fi
8904 ac_mid=`expr 2 '*' $ac_mid + 1`
8905fi
8906
8907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8908 done
8909else
8910 echo "$as_me: failed program was:" >&5
8911sed 's/^/| /' conftest.$ac_ext >&5
8912
8913 cat >conftest.$ac_ext <<_ACEOF
8914/* confdefs.h. */
8915_ACEOF
8916cat confdefs.h >>conftest.$ac_ext
8917cat >>conftest.$ac_ext <<_ACEOF
8918/* end confdefs.h. */
8919$ac_includes_default
8920 typedef long long ac__type_sizeof_;
8921int
8922main ()
8923{
8924static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8925test_array [0] = 0
8926
8927 ;
8928 return 0;
8929}
8930_ACEOF
8931rm -f conftest.$ac_objext
8932if { (ac_try="$ac_compile"
8933case "(($ac_try" in
8934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8935 *) ac_try_echo=$ac_try;;
8936esac
8937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8938 (eval "$ac_compile") 2>conftest.er1
8939 ac_status=$?
8940 grep -v '^ *+' conftest.er1 >conftest.err
8941 rm -f conftest.er1
8942 cat conftest.err >&5
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); } && {
8945 test -z "$ac_cxx_werror_flag" ||
8946 test ! -s conftest.err
8947 } && test -s conftest.$ac_objext; then
8948 ac_hi=-1 ac_mid=-1
8949 while :; do
8950 cat >conftest.$ac_ext <<_ACEOF
8951/* confdefs.h. */
8952_ACEOF
8953cat confdefs.h >>conftest.$ac_ext
8954cat >>conftest.$ac_ext <<_ACEOF
8955/* end confdefs.h. */
8956$ac_includes_default
8957 typedef long long ac__type_sizeof_;
8958int
8959main ()
8960{
8961static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8962test_array [0] = 0
8963
8964 ;
8965 return 0;
8966}
8967_ACEOF
8968rm -f conftest.$ac_objext
8969if { (ac_try="$ac_compile"
8970case "(($ac_try" in
8971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8972 *) ac_try_echo=$ac_try;;
8973esac
8974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8975 (eval "$ac_compile") 2>conftest.er1
8976 ac_status=$?
8977 grep -v '^ *+' conftest.er1 >conftest.err
8978 rm -f conftest.er1
8979 cat conftest.err >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); } && {
8982 test -z "$ac_cxx_werror_flag" ||
8983 test ! -s conftest.err
8984 } && test -s conftest.$ac_objext; then
8985 ac_lo=$ac_mid; break
8986else
8987 echo "$as_me: failed program was:" >&5
8988sed 's/^/| /' conftest.$ac_ext >&5
8989
8990 ac_hi=`expr '(' $ac_mid ')' - 1`
8991 if test $ac_mid -le $ac_hi; then
8992 ac_lo= ac_hi=
8993 break
8994 fi
8995 ac_mid=`expr 2 '*' $ac_mid`
8996fi
8997
8998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8999 done
9000else
9001 echo "$as_me: failed program was:" >&5
9002sed 's/^/| /' conftest.$ac_ext >&5
9003
9004 ac_lo= ac_hi=
9005fi
9006
9007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9008fi
9009
9010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9011# Binary search between lo and hi bounds.
9012while test "x$ac_lo" != "x$ac_hi"; do
9013 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9014 cat >conftest.$ac_ext <<_ACEOF
9015/* confdefs.h. */
9016_ACEOF
9017cat confdefs.h >>conftest.$ac_ext
9018cat >>conftest.$ac_ext <<_ACEOF
9019/* end confdefs.h. */
9020$ac_includes_default
9021 typedef long long ac__type_sizeof_;
9022int
9023main ()
9024{
9025static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9026test_array [0] = 0
9027
9028 ;
9029 return 0;
9030}
9031_ACEOF
9032rm -f conftest.$ac_objext
9033if { (ac_try="$ac_compile"
9034case "(($ac_try" in
9035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9036 *) ac_try_echo=$ac_try;;
9037esac
9038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9039 (eval "$ac_compile") 2>conftest.er1
9040 ac_status=$?
9041 grep -v '^ *+' conftest.er1 >conftest.err
9042 rm -f conftest.er1
9043 cat conftest.err >&5
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); } && {
9046 test -z "$ac_cxx_werror_flag" ||
9047 test ! -s conftest.err
9048 } && test -s conftest.$ac_objext; then
9049 ac_hi=$ac_mid
9050else
9051 echo "$as_me: failed program was:" >&5
9052sed 's/^/| /' conftest.$ac_ext >&5
9053
9054 ac_lo=`expr '(' $ac_mid ')' + 1`
9055fi
9056
9057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9058done
9059case $ac_lo in
9060?*) ac_cv_sizeof_long_long=$ac_lo;;
9061'') if test "$ac_cv_type_long_long" = yes; then
9062 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9063See \`config.log' for more details." >&5
9064echo "$as_me: error: cannot compute sizeof (long long)
9065See \`config.log' for more details." >&2;}
9066 { (exit 77); exit 77; }; }
9067 else
9068 ac_cv_sizeof_long_long=0
9069 fi ;;
9070esac
9071else
9072 cat >conftest.$ac_ext <<_ACEOF
9073/* confdefs.h. */
9074_ACEOF
9075cat confdefs.h >>conftest.$ac_ext
9076cat >>conftest.$ac_ext <<_ACEOF
9077/* end confdefs.h. */
9078$ac_includes_default
9079 typedef long long ac__type_sizeof_;
9080static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9081static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9082#include <stdio.h>
9083#include <stdlib.h>
9084int
9085main ()
9086{
9087
9088 FILE *f = fopen ("conftest.val", "w");
9089 if (! f)
9090 return 1;
9091 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9092 {
9093 long int i = longval ();
9094 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9095 return 1;
9096 fprintf (f, "%ld\n", i);
9097 }
9098 else
9099 {
9100 unsigned long int i = ulongval ();
9101 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9102 return 1;
9103 fprintf (f, "%lu\n", i);
9104 }
9105 return ferror (f) || fclose (f) != 0;
9106
9107 ;
9108 return 0;
9109}
9110_ACEOF
9111rm -f conftest$ac_exeext
9112if { (ac_try="$ac_link"
9113case "(($ac_try" in
9114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9115 *) ac_try_echo=$ac_try;;
9116esac
9117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9118 (eval "$ac_link") 2>&5
9119 ac_status=$?
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9122 { (case "(($ac_try" in
9123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9124 *) ac_try_echo=$ac_try;;
9125esac
9126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9127 (eval "$ac_try") 2>&5
9128 ac_status=$?
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; }; then
9131 ac_cv_sizeof_long_long=`cat conftest.val`
9132else
9133 echo "$as_me: program exited with status $ac_status" >&5
9134echo "$as_me: failed program was:" >&5
9135sed 's/^/| /' conftest.$ac_ext >&5
9136
9137( exit $ac_status )
9138if test "$ac_cv_type_long_long" = yes; then
9139 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9140See \`config.log' for more details." >&5
9141echo "$as_me: error: cannot compute sizeof (long long)
9142See \`config.log' for more details." >&2;}
9143 { (exit 77); exit 77; }; }
9144 else
9145 ac_cv_sizeof_long_long=0
9146 fi
9147fi
9148rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9149fi
9150rm -f conftest.val
9151fi
9152{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
9153echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
9154
9155
9156
9157cat >>confdefs.h <<_ACEOF
9158#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9159_ACEOF
9160
9161
9162{ echo "$as_me:$LINENO: checking for int *" >&5
9163echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
9164if test "${ac_cv_type_int_p+set}" = set; then
9165 echo $ECHO_N "(cached) $ECHO_C" >&6
9166else
9167 cat >conftest.$ac_ext <<_ACEOF
9168/* confdefs.h. */
9169_ACEOF
9170cat confdefs.h >>conftest.$ac_ext
9171cat >>conftest.$ac_ext <<_ACEOF
9172/* end confdefs.h. */
9173$ac_includes_default
9174typedef int * ac__type_new_;
9175int
9176main ()
9177{
9178if ((ac__type_new_ *) 0)
9179 return 0;
9180if (sizeof (ac__type_new_))
9181 return 0;
9182 ;
9183 return 0;
9184}
9185_ACEOF
9186rm -f conftest.$ac_objext
9187if { (ac_try="$ac_compile"
9188case "(($ac_try" in
9189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9190 *) ac_try_echo=$ac_try;;
9191esac
9192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9193 (eval "$ac_compile") 2>conftest.er1
9194 ac_status=$?
9195 grep -v '^ *+' conftest.er1 >conftest.err
9196 rm -f conftest.er1
9197 cat conftest.err >&5
9198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199 (exit $ac_status); } && {
9200 test -z "$ac_cxx_werror_flag" ||
9201 test ! -s conftest.err
9202 } && test -s conftest.$ac_objext; then
9203 ac_cv_type_int_p=yes
9204else
9205 echo "$as_me: failed program was:" >&5
9206sed 's/^/| /' conftest.$ac_ext >&5
9207
9208 ac_cv_type_int_p=no
9209fi
9210
9211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9212fi
9213{ echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
9214echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
9215
9216# The cast to long int works around a bug in the HP C Compiler
9217# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9218# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9219# This bug is HP SR number 8606223364.
9220{ echo "$as_me:$LINENO: checking size of int *" >&5
9221echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
9222if test "${ac_cv_sizeof_int_p+set}" = set; then
9223 echo $ECHO_N "(cached) $ECHO_C" >&6
9224else
9225 if test "$cross_compiling" = yes; then
9226 # Depending upon the size, compute the lo and hi bounds.
9227cat >conftest.$ac_ext <<_ACEOF
9228/* confdefs.h. */
9229_ACEOF
9230cat confdefs.h >>conftest.$ac_ext
9231cat >>conftest.$ac_ext <<_ACEOF
9232/* end confdefs.h. */
9233$ac_includes_default
9234 typedef int * ac__type_sizeof_;
9235int
9236main ()
9237{
9238static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9239test_array [0] = 0
9240
9241 ;
9242 return 0;
9243}
9244_ACEOF
9245rm -f conftest.$ac_objext
9246if { (ac_try="$ac_compile"
9247case "(($ac_try" in
9248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9249 *) ac_try_echo=$ac_try;;
9250esac
9251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9252 (eval "$ac_compile") 2>conftest.er1
9253 ac_status=$?
9254 grep -v '^ *+' conftest.er1 >conftest.err
9255 rm -f conftest.er1
9256 cat conftest.err >&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); } && {
9259 test -z "$ac_cxx_werror_flag" ||
9260 test ! -s conftest.err
9261 } && test -s conftest.$ac_objext; then
9262 ac_lo=0 ac_mid=0
9263 while :; do
9264 cat >conftest.$ac_ext <<_ACEOF
9265/* confdefs.h. */
9266_ACEOF
9267cat confdefs.h >>conftest.$ac_ext
9268cat >>conftest.$ac_ext <<_ACEOF
9269/* end confdefs.h. */
9270$ac_includes_default
9271 typedef int * ac__type_sizeof_;
9272int
9273main ()
9274{
9275static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9276test_array [0] = 0
9277
9278 ;
9279 return 0;
9280}
9281_ACEOF
9282rm -f conftest.$ac_objext
9283if { (ac_try="$ac_compile"
9284case "(($ac_try" in
9285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9286 *) ac_try_echo=$ac_try;;
9287esac
9288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9289 (eval "$ac_compile") 2>conftest.er1
9290 ac_status=$?
9291 grep -v '^ *+' conftest.er1 >conftest.err
9292 rm -f conftest.er1
9293 cat conftest.err >&5
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); } && {
9296 test -z "$ac_cxx_werror_flag" ||
9297 test ! -s conftest.err
9298 } && test -s conftest.$ac_objext; then
9299 ac_hi=$ac_mid; break
9300else
9301 echo "$as_me: failed program was:" >&5
9302sed 's/^/| /' conftest.$ac_ext >&5
9303
9304 ac_lo=`expr $ac_mid + 1`
9305 if test $ac_lo -le $ac_mid; then
9306 ac_lo= ac_hi=
9307 break
9308 fi
9309 ac_mid=`expr 2 '*' $ac_mid + 1`
9310fi
9311
9312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9313 done
9314else
9315 echo "$as_me: failed program was:" >&5
9316sed 's/^/| /' conftest.$ac_ext >&5
9317
9318 cat >conftest.$ac_ext <<_ACEOF
9319/* confdefs.h. */
9320_ACEOF
9321cat confdefs.h >>conftest.$ac_ext
9322cat >>conftest.$ac_ext <<_ACEOF
9323/* end confdefs.h. */
9324$ac_includes_default
9325 typedef int * ac__type_sizeof_;
9326int
9327main ()
9328{
9329static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9330test_array [0] = 0
9331
9332 ;
9333 return 0;
9334}
9335_ACEOF
9336rm -f conftest.$ac_objext
9337if { (ac_try="$ac_compile"
9338case "(($ac_try" in
9339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9340 *) ac_try_echo=$ac_try;;
9341esac
9342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9343 (eval "$ac_compile") 2>conftest.er1
9344 ac_status=$?
9345 grep -v '^ *+' conftest.er1 >conftest.err
9346 rm -f conftest.er1
9347 cat conftest.err >&5
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); } && {
9350 test -z "$ac_cxx_werror_flag" ||
9351 test ! -s conftest.err
9352 } && test -s conftest.$ac_objext; then
9353 ac_hi=-1 ac_mid=-1
9354 while :; do
9355 cat >conftest.$ac_ext <<_ACEOF
9356/* confdefs.h. */
9357_ACEOF
9358cat confdefs.h >>conftest.$ac_ext
9359cat >>conftest.$ac_ext <<_ACEOF
9360/* end confdefs.h. */
9361$ac_includes_default
9362 typedef int * ac__type_sizeof_;
9363int
9364main ()
9365{
9366static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9367test_array [0] = 0
9368
9369 ;
9370 return 0;
9371}
9372_ACEOF
9373rm -f conftest.$ac_objext
9374if { (ac_try="$ac_compile"
9375case "(($ac_try" in
9376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9377 *) ac_try_echo=$ac_try;;
9378esac
9379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9380 (eval "$ac_compile") 2>conftest.er1
9381 ac_status=$?
9382 grep -v '^ *+' conftest.er1 >conftest.err
9383 rm -f conftest.er1
9384 cat conftest.err >&5
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); } && {
9387 test -z "$ac_cxx_werror_flag" ||
9388 test ! -s conftest.err
9389 } && test -s conftest.$ac_objext; then
9390 ac_lo=$ac_mid; break
9391else
9392 echo "$as_me: failed program was:" >&5
9393sed 's/^/| /' conftest.$ac_ext >&5
9394
9395 ac_hi=`expr '(' $ac_mid ')' - 1`
9396 if test $ac_mid -le $ac_hi; then
9397 ac_lo= ac_hi=
9398 break
9399 fi
9400 ac_mid=`expr 2 '*' $ac_mid`
9401fi
9402
9403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9404 done
9405else
9406 echo "$as_me: failed program was:" >&5
9407sed 's/^/| /' conftest.$ac_ext >&5
9408
9409 ac_lo= ac_hi=
9410fi
9411
9412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9413fi
9414
9415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9416# Binary search between lo and hi bounds.
9417while test "x$ac_lo" != "x$ac_hi"; do
9418 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9419 cat >conftest.$ac_ext <<_ACEOF
9420/* confdefs.h. */
9421_ACEOF
9422cat confdefs.h >>conftest.$ac_ext
9423cat >>conftest.$ac_ext <<_ACEOF
9424/* end confdefs.h. */
9425$ac_includes_default
9426 typedef int * ac__type_sizeof_;
9427int
9428main ()
9429{
9430static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9431test_array [0] = 0
9432
9433 ;
9434 return 0;
9435}
9436_ACEOF
9437rm -f conftest.$ac_objext
9438if { (ac_try="$ac_compile"
9439case "(($ac_try" in
9440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9441 *) ac_try_echo=$ac_try;;
9442esac
9443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9444 (eval "$ac_compile") 2>conftest.er1
9445 ac_status=$?
9446 grep -v '^ *+' conftest.er1 >conftest.err
9447 rm -f conftest.er1
9448 cat conftest.err >&5
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); } && {
9451 test -z "$ac_cxx_werror_flag" ||
9452 test ! -s conftest.err
9453 } && test -s conftest.$ac_objext; then
9454 ac_hi=$ac_mid
9455else
9456 echo "$as_me: failed program was:" >&5
9457sed 's/^/| /' conftest.$ac_ext >&5
9458
9459 ac_lo=`expr '(' $ac_mid ')' + 1`
9460fi
9461
9462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9463done
9464case $ac_lo in
9465?*) ac_cv_sizeof_int_p=$ac_lo;;
9466'') if test "$ac_cv_type_int_p" = yes; then
9467 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
9468See \`config.log' for more details." >&5
9469echo "$as_me: error: cannot compute sizeof (int *)
9470See \`config.log' for more details." >&2;}
9471 { (exit 77); exit 77; }; }
9472 else
9473 ac_cv_sizeof_int_p=0
9474 fi ;;
9475esac
9476else
9477 cat >conftest.$ac_ext <<_ACEOF
9478/* confdefs.h. */
9479_ACEOF
9480cat confdefs.h >>conftest.$ac_ext
9481cat >>conftest.$ac_ext <<_ACEOF
9482/* end confdefs.h. */
9483$ac_includes_default
9484 typedef int * ac__type_sizeof_;
9485static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9486static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9487#include <stdio.h>
9488#include <stdlib.h>
9489int
9490main ()
9491{
9492
9493 FILE *f = fopen ("conftest.val", "w");
9494 if (! f)
9495 return 1;
9496 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9497 {
9498 long int i = longval ();
9499 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9500 return 1;
9501 fprintf (f, "%ld\n", i);
9502 }
9503 else
9504 {
9505 unsigned long int i = ulongval ();
9506 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9507 return 1;
9508 fprintf (f, "%lu\n", i);
9509 }
9510 return ferror (f) || fclose (f) != 0;
9511
9512 ;
9513 return 0;
9514}
9515_ACEOF
9516rm -f conftest$ac_exeext
9517if { (ac_try="$ac_link"
9518case "(($ac_try" in
9519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9520 *) ac_try_echo=$ac_try;;
9521esac
9522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9523 (eval "$ac_link") 2>&5
9524 ac_status=$?
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9527 { (case "(($ac_try" in
9528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9529 *) ac_try_echo=$ac_try;;
9530esac
9531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9532 (eval "$ac_try") 2>&5
9533 ac_status=$?
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); }; }; then
9536 ac_cv_sizeof_int_p=`cat conftest.val`
9537else
9538 echo "$as_me: program exited with status $ac_status" >&5
9539echo "$as_me: failed program was:" >&5
9540sed 's/^/| /' conftest.$ac_ext >&5
9541
9542( exit $ac_status )
9543if test "$ac_cv_type_int_p" = yes; then
9544 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
9545See \`config.log' for more details." >&5
9546echo "$as_me: error: cannot compute sizeof (int *)
9547See \`config.log' for more details." >&2;}
9548 { (exit 77); exit 77; }; }
9549 else
9550 ac_cv_sizeof_int_p=0
9551 fi
9552fi
9553rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9554fi
9555rm -f conftest.val
9556fi
9557{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
9558echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
9559
9560
9561
9562cat >>confdefs.h <<_ACEOF
9563#define SIZEOF_INT_P $ac_cv_sizeof_int_p
9564_ACEOF
9565
9566
9567
9568
9569{ echo "$as_me:$LINENO: checking for int16_t" >&5
9570echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
9571if test "${rxvt_cv_int16_t+set}" = set; then
9572 echo $ECHO_N "(cached) $ECHO_C" >&6
9573else
9574 cat >conftest.$ac_ext <<_ACEOF
9575/* confdefs.h. */
9576_ACEOF
9577cat confdefs.h >>conftest.$ac_ext
9578cat >>conftest.$ac_ext <<_ACEOF
9579/* end confdefs.h. */
9580#include <stdint.h>
9581int
9582main ()
9583{
9584int16_t dummy;
9585 ;
9586 return 0;
9587}
9588_ACEOF
9589rm -f conftest.$ac_objext
9590if { (ac_try="$ac_compile"
9591case "(($ac_try" in
9592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9593 *) ac_try_echo=$ac_try;;
9594esac
9595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9596 (eval "$ac_compile") 2>conftest.er1
9597 ac_status=$?
9598 grep -v '^ *+' conftest.er1 >conftest.err
9599 rm -f conftest.er1
9600 cat conftest.err >&5
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); } && {
9603 test -z "$ac_cxx_werror_flag" ||
9604 test ! -s conftest.err
9605 } && test -s conftest.$ac_objext; then
9606 rxvt_cv_int16_t=yes
9607else
9608 echo "$as_me: failed program was:" >&5
9609sed 's/^/| /' conftest.$ac_ext >&5
9610
9611 if test "$ac_cv_sizeof_char" -ge 2; then
9612 rxvt_cv_int16_t=" char"
9613else
9614 if test "$ac_cv_sizeof_short" -ge 2; then
9615 rxvt_cv_int16_t=" short"
9616 else
9617 if test "$ac_cv_sizeof_int" -ge 2; then
9618 rxvt_cv_int16_t=" int"
9619 else
9620 if test "$ac_cv_sizeof_long" -ge 2; then
9621 rxvt_cv_int16_t=" long"
9622 else
9623 if test "$ac_cv_sizeof_long_long" -ge 2; then
9624 rxvt_cv_int16_t=" long long"
9625 else
9626 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
9627 fi
9628 fi
9629 fi
9630 fi
9631fi
9632fi
9633
9634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9635fi
9636{ echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
9637echo "${ECHO_T}$rxvt_cv_int16_t" >&6; }
9638if test x"$rxvt_cv_int16_t" != xyes; then
9639 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
9640else
9641 if test x"" = x; then
9642 rxvt_int16_typedef="/* typedef short int16_t; */"
9643 else
9644 rxvt_int16_typedef="/* typedef short int16_t; */"
9645 fi
9646fi
9647
9648{ echo "$as_me:$LINENO: checking for uint16_t" >&5
9649echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
9650if test "${rxvt_cv_uint16_t+set}" = set; then
9651 echo $ECHO_N "(cached) $ECHO_C" >&6
9652else
9653 cat >conftest.$ac_ext <<_ACEOF
9654/* confdefs.h. */
9655_ACEOF
9656cat confdefs.h >>conftest.$ac_ext
9657cat >>conftest.$ac_ext <<_ACEOF
9658/* end confdefs.h. */
9659#include <stdint.h>
9660int
9661main ()
9662{
9663uint16_t dummy;
9664 ;
9665 return 0;
9666}
9667_ACEOF
9668rm -f conftest.$ac_objext
9669if { (ac_try="$ac_compile"
9670case "(($ac_try" in
9671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9672 *) ac_try_echo=$ac_try;;
9673esac
9674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9675 (eval "$ac_compile") 2>conftest.er1
9676 ac_status=$?
9677 grep -v '^ *+' conftest.er1 >conftest.err
9678 rm -f conftest.er1
9679 cat conftest.err >&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); } && {
9682 test -z "$ac_cxx_werror_flag" ||
9683 test ! -s conftest.err
9684 } && test -s conftest.$ac_objext; then
9685 rxvt_cv_uint16_t=yes
9686else
9687 echo "$as_me: failed program was:" >&5
9688sed 's/^/| /' conftest.$ac_ext >&5
9689
9690 if test "$ac_cv_sizeof_char" -ge 2; then
9691 rxvt_cv_uint16_t="unsigned char"
9692else
9693 if test "$ac_cv_sizeof_short" -ge 2; then
9694 rxvt_cv_uint16_t="unsigned short"
9695 else
9696 if test "$ac_cv_sizeof_int" -ge 2; then
9697 rxvt_cv_uint16_t="unsigned int"
9698 else
9699 if test "$ac_cv_sizeof_long" -ge 2; then
9700 rxvt_cv_uint16_t="unsigned long"
9701 else
9702 if test "$ac_cv_sizeof_long_long" -ge 2; then
9703 rxvt_cv_uint16_t="unsigned long long"
9704 else
9705 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
9706 fi
9707 fi
9708 fi
9709 fi
9710fi
9711fi
9712
9713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9714fi
9715{ echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
9716echo "${ECHO_T}$rxvt_cv_uint16_t" >&6; }
9717if test x"$rxvt_cv_uint16_t" != xyes; then
9718 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
9719else
9720 if test x"unsigned" = x; then
9721 rxvt_uint16_typedef="/* typedef short uint16_t; */"
9722 else
9723 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
9724 fi
9725fi
9726
9727{ echo "$as_me:$LINENO: checking for int32_t" >&5
9728echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
9729if test "${rxvt_cv_int32_t+set}" = set; then
9730 echo $ECHO_N "(cached) $ECHO_C" >&6
9731else
9732 cat >conftest.$ac_ext <<_ACEOF
9733/* confdefs.h. */
9734_ACEOF
9735cat confdefs.h >>conftest.$ac_ext
9736cat >>conftest.$ac_ext <<_ACEOF
9737/* end confdefs.h. */
9738#include <stdint.h>
9739int
9740main ()
9741{
9742int32_t dummy;
9743 ;
9744 return 0;
9745}
9746_ACEOF
9747rm -f conftest.$ac_objext
9748if { (ac_try="$ac_compile"
9749case "(($ac_try" in
9750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751 *) ac_try_echo=$ac_try;;
9752esac
9753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9754 (eval "$ac_compile") 2>conftest.er1
9755 ac_status=$?
9756 grep -v '^ *+' conftest.er1 >conftest.err
9757 rm -f conftest.er1
9758 cat conftest.err >&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); } && {
9761 test -z "$ac_cxx_werror_flag" ||
9762 test ! -s conftest.err
9763 } && test -s conftest.$ac_objext; then
9764 rxvt_cv_int32_t=yes
9765else
9766 echo "$as_me: failed program was:" >&5
9767sed 's/^/| /' conftest.$ac_ext >&5
9768
9769 if test "$ac_cv_sizeof_char" -ge 4; then
9770 rxvt_cv_int32_t=" char"
9771else
9772 if test "$ac_cv_sizeof_short" -ge 4; then
9773 rxvt_cv_int32_t=" short"
9774 else
9775 if test "$ac_cv_sizeof_int" -ge 4; then
9776 rxvt_cv_int32_t=" int"
9777 else
9778 if test "$ac_cv_sizeof_long" -ge 4; then
9779 rxvt_cv_int32_t=" long"
9780 else
9781 if test "$ac_cv_sizeof_long_long" -ge 4; then
9782 rxvt_cv_int32_t=" long long"
9783 else
9784 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
9785 fi
9786 fi
9787 fi
9788 fi
9789fi
9790fi
9791
9792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9793fi
9794{ echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
9795echo "${ECHO_T}$rxvt_cv_int32_t" >&6; }
9796if test x"$rxvt_cv_int32_t" != xyes; then
9797 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
9798else
9799 if test x"" = x; then
9800 rxvt_int32_typedef="/* typedef int int32_t; */"
9801 else
9802 rxvt_int32_typedef="/* typedef int int32_t; */"
9803 fi
9804fi
9805
9806{ echo "$as_me:$LINENO: checking for uint32_t" >&5
9807echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
9808if test "${rxvt_cv_uint32_t+set}" = set; then
9809 echo $ECHO_N "(cached) $ECHO_C" >&6
9810else
9811 cat >conftest.$ac_ext <<_ACEOF
9812/* confdefs.h. */
9813_ACEOF
9814cat confdefs.h >>conftest.$ac_ext
9815cat >>conftest.$ac_ext <<_ACEOF
9816/* end confdefs.h. */
9817#include <stdint.h>
9818int
9819main ()
9820{
9821uint32_t dummy;
9822 ;
9823 return 0;
9824}
9825_ACEOF
9826rm -f conftest.$ac_objext
9827if { (ac_try="$ac_compile"
9828case "(($ac_try" in
9829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830 *) ac_try_echo=$ac_try;;
9831esac
9832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9833 (eval "$ac_compile") 2>conftest.er1
9834 ac_status=$?
9835 grep -v '^ *+' conftest.er1 >conftest.err
9836 rm -f conftest.er1
9837 cat conftest.err >&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } && {
9840 test -z "$ac_cxx_werror_flag" ||
9841 test ! -s conftest.err
9842 } && test -s conftest.$ac_objext; then
9843 rxvt_cv_uint32_t=yes
9844else
9845 echo "$as_me: failed program was:" >&5
9846sed 's/^/| /' conftest.$ac_ext >&5
9847
9848 if test "$ac_cv_sizeof_char" -ge 4; then
9849 rxvt_cv_uint32_t="unsigned char"
9850else
9851 if test "$ac_cv_sizeof_short" -ge 4; then
9852 rxvt_cv_uint32_t="unsigned short"
9853 else
9854 if test "$ac_cv_sizeof_int" -ge 4; then
9855 rxvt_cv_uint32_t="unsigned int"
9856 else
9857 if test "$ac_cv_sizeof_long" -ge 4; then
9858 rxvt_cv_uint32_t="unsigned long"
9859 else
9860 if test "$ac_cv_sizeof_long_long" -ge 4; then
9861 rxvt_cv_uint32_t="unsigned long long"
9862 else
9863 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
9864 fi
9865 fi
9866 fi
9867 fi
9868fi
9869fi
9870
9871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9872fi
9873{ echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
9874echo "${ECHO_T}$rxvt_cv_uint32_t" >&6; }
9875if test x"$rxvt_cv_uint32_t" != xyes; then
9876 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
9877else
9878 if test x"unsigned" = x; then
9879 rxvt_uint32_typedef="/* typedef int uint32_t; */"
9880 else
9881 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
9882 fi
9883fi
9884
9885if test "$ac_cv_sizeof_int_p" -eq 8; then
9886 rxvt_intp_define="#define intp_t int64_t"
9887 rxvt_u_intp_define="#define u_intp_t u_int64_t"
9888else
9889 if test "$ac_cv_sizeof_int_p" -eq 4; then
9890 rxvt_intp_define="#define intp_t int32_t"
9891 rxvt_u_intp_define="#define u_intp_t u_int32_t"
9892 else
9893 if test "$ac_cv_sizeof_int_p" -eq 2; then
9894 rxvt_intp_define="#define intp_t int16_t"
9895 rxvt_u_intp_define="#define u_intp_t u_int16_t"
9896 else
9897 rxvt_intp_define="#error set intp_t"
9898 rxvt_u_intp_define="#error set u_intp_t"
9899 fi
9900 fi
9901fi
9902
9903
9904
9905{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9906echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
9907if test "${ac_cv_type_signal+set}" = set; then
9908 echo $ECHO_N "(cached) $ECHO_C" >&6
9909else
9910 cat >conftest.$ac_ext <<_ACEOF
9911/* confdefs.h. */
9912_ACEOF
9913cat confdefs.h >>conftest.$ac_ext
9914cat >>conftest.$ac_ext <<_ACEOF
9915/* end confdefs.h. */
9916#include <sys/types.h>
9917#include <signal.h>
9918
9919int
9920main ()
9921{
9922return *(signal (0, 0)) (0) == 1;
9923 ;
9924 return 0;
9925}
9926_ACEOF
9927rm -f conftest.$ac_objext
9928if { (ac_try="$ac_compile"
9929case "(($ac_try" in
9930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9931 *) ac_try_echo=$ac_try;;
9932esac
9933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9934 (eval "$ac_compile") 2>conftest.er1
9935 ac_status=$?
9936 grep -v '^ *+' conftest.er1 >conftest.err
9937 rm -f conftest.er1
9938 cat conftest.err >&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); } && {
9941 test -z "$ac_cxx_werror_flag" ||
9942 test ! -s conftest.err
9943 } && test -s conftest.$ac_objext; then
9944 ac_cv_type_signal=int
9945else
9946 echo "$as_me: failed program was:" >&5
9947sed 's/^/| /' conftest.$ac_ext >&5
9948
9949 ac_cv_type_signal=void
9950fi
9951
9952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9953fi
9954{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9955echo "${ECHO_T}$ac_cv_type_signal" >&6; }
9956
9957cat >>confdefs.h <<_ACEOF
9958#define RETSIGTYPE $ac_cv_type_signal
9959_ACEOF
9960
9961
9962
9963
9964
9965
9966for ac_func in \ 8414for ac_func in unsetenv
9967 unsetenv \
9968 setutent \
9969 on_exit \
9970
9971do 8415do
9972as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8416as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9973{ echo "$as_me:$LINENO: checking for $ac_func" >&5 8417{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9974echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8418echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9975if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 8419if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11645 10089
11646fi 10090fi
11647 10091
11648 10092
11649 10093
11650{ echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
11651echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6; }
11652if test "${rxvt_cv_path_ttytab+set}" = set; then
11653 echo $ECHO_N "(cached) $ECHO_C" >&6
11654else
11655 for ttys_file in /etc/ttys /etc/ttytab;
11656do
11657 if test -f "$ttys_file" ; then
11658 rxvt_cv_path_ttytab=$ttys_file
11659 break
11660 fi
11661done
11662 10094
11663fi
11664{ echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
11665echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6; }
11666if test x$rxvt_cv_path_ttytab != x; then
11667
11668cat >>confdefs.h <<_ACEOF
11669#define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
11670_ACEOF
11671
11672fi
11673
11674
11675ac_save_LIBS=$LIBS 10095save_LIBS=$LIBS
11676ac_save_CFLAGS=$CFLAGS 10096save_CFLAGS=$CFLAGS
11677CFLAGS="$CFLAGS $X_CFLAGS" 10097CFLAGS="$CFLAGS $X_CFLAGS"
11678LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 10098LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
10099if test x$support_xim = xyes; then
11679{ echo "$as_me:$LINENO: checking for working Xlocale" >&5 10100 { echo "$as_me:$LINENO: checking for working Xlocale" >&5
11680echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } 10101echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; }
11681if test "${rxvt_cv_func_xlocale+set}" = set; then 10102if test "${rxvt_cv_func_xlocale+set}" = set; then
11682 echo $ECHO_N "(cached) $ECHO_C" >&6 10103 echo $ECHO_N "(cached) $ECHO_C" >&6
11683else 10104else
11684 if test "$cross_compiling" = yes; then 10105 if test "$cross_compiling" = yes; then
11685 : 10106 :
11686else 10107else
11687 cat >conftest.$ac_ext <<_ACEOF 10108 cat >conftest.$ac_ext <<_ACEOF
11688/* confdefs.h. */ 10109/* confdefs.h. */
11689_ACEOF 10110_ACEOF
11690cat confdefs.h >>conftest.$ac_ext 10111cat confdefs.h >>conftest.$ac_ext
11691cat >>conftest.$ac_ext <<_ACEOF 10112cat >>conftest.$ac_ext <<_ACEOF
11692/* end confdefs.h. */ 10113/* end confdefs.h. */
11693#include <X11/Xlib.h> 10114#include <X11/Xlib.h>
11694#include <stdlib.h> 10115 #include <stdlib.h>
11695main() { 10116 main() {
11696char *p; 10117 char *p;
11697if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) 10118 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
11698exit (XSupportsLocale() ? 0 : 1); 10119 exit (XSupportsLocale() ? 0 : 1);
11699else 10120 else
11700exit (1);} 10121 exit (1);}
11701_ACEOF 10122_ACEOF
11702rm -f conftest$ac_exeext 10123rm -f conftest$ac_exeext
11703if { (ac_try="$ac_link" 10124if { (ac_try="$ac_link"
11704case "(($ac_try" in 10125case "(($ac_try" in
11705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11718 (eval "$ac_try") 2>&5 10139 (eval "$ac_try") 2>&5
11719 ac_status=$? 10140 ac_status=$?
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); }; }; then 10142 (exit $ac_status); }; }; then
11722 rxvt_cv_func_xlocale=yes 10143 rxvt_cv_func_xlocale=yes
11723else 10144else
11724 echo "$as_me: program exited with status $ac_status" >&5 10145 echo "$as_me: program exited with status $ac_status" >&5
11725echo "$as_me: failed program was:" >&5 10146echo "$as_me: failed program was:" >&5
11726sed 's/^/| /' conftest.$ac_ext >&5 10147sed 's/^/| /' conftest.$ac_ext >&5
11727 10148
11733 10154
11734 10155
11735fi 10156fi
11736{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 10157{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
11737echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; } 10158echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; }
11738if test x$support_xim = xyes; then
11739 if test x$rxvt_cv_func_xlocale = xyes; then 10159 if test x$rxvt_cv_func_xlocale = xyes; then
11740 10160
11741cat >>confdefs.h <<\_ACEOF 10161cat >>confdefs.h <<\_ACEOF
11742#define USE_XIM 1 10162#define USE_XIM 1
11743_ACEOF 10163_ACEOF
11744 10164
10165 { echo "$as_me:$LINENO: checking for broken XIM callback" >&5
10166echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; }
10167if test "${rxvt_broken_ximcb+set}" = set; then
10168 echo $ECHO_N "(cached) $ECHO_C" >&6
10169else
10170 cat >conftest.$ac_ext <<_ACEOF
10171
10172 #include <X11/Xlib.h>
10173
10174 void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
10175
10176 void f() {
10177 XIMCallback cb;
10178 cb.callback = im_destroy_cb;
10179 }
10180
10181_ACEOF
10182rm -f conftest.$ac_objext
10183if { (ac_try="$ac_compile"
10184case "(($ac_try" in
10185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10186 *) ac_try_echo=$ac_try;;
10187esac
10188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10189 (eval "$ac_compile") 2>conftest.er1
10190 ac_status=$?
10191 grep -v '^ *+' conftest.er1 >conftest.err
10192 rm -f conftest.er1
10193 cat conftest.err >&5
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); } && {
10196 test -z "$ac_cxx_werror_flag" ||
10197 test ! -s conftest.err
10198 } && test -s conftest.$ac_objext; then
10199 rxvt_broken_ximcb=yes
10200else
10201 echo "$as_me: failed program was:" >&5
10202sed 's/^/| /' conftest.$ac_ext >&5
10203
10204 rxvt_broken_ximcb=no
10205fi
10206
10207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10208fi
10209{ echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
10210echo "${ECHO_T}$rxvt_broken_ximcb" >&6; }
10211
10212 if test x$rxvt_broken_ximcb = xyes; then
10213
10214cat >>confdefs.h <<\_ACEOF
10215#define XIMCB_PROTO_BROKEN 1
10216_ACEOF
10217
10218 fi
11745 fi 10219 fi
11746fi 10220fi
11747 10221
11748{ echo "$as_me:$LINENO: checking for working X setlocale" >&5 10222{ echo "$as_me:$LINENO: checking for working X setlocale" >&5
11749echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; } 10223echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; }
11802cat >>confdefs.h <<\_ACEOF 10276cat >>confdefs.h <<\_ACEOF
11803#define HAVE_XSETLOCALE 1 10277#define HAVE_XSETLOCALE 1
11804_ACEOF 10278_ACEOF
11805 10279
11806fi 10280fi
11807LIBS=$ac_save_LIBS 10281LIBS=$save_LIBS
11808CFLAGS=$ac_save_CFLAGS 10282CFLAGS=$save_CFLAGS
11809 10283
11810{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5 10284{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5
11811echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } 10285echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; }
11812if test "${rxvt_cv_func_setlocale+set}" = set; then 10286if test "${rxvt_cv_func_setlocale+set}" = set; then
11813 echo $ECHO_N "(cached) $ECHO_C" >&6 10287 echo $ECHO_N "(cached) $ECHO_C" >&6
12017echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} 10491echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;}
12018 { (exit 1); exit 1; }; } 10492 { (exit 1); exit 1; }; }
12019fi 10493fi
12020 10494
12021 10495
12022{ echo "$as_me:$LINENO: checking for broken XIM callback" >&5
12023echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; }
12024if test "${rxvt_broken_ximcb+set}" = set; then
12025 echo $ECHO_N "(cached) $ECHO_C" >&6
12026else
12027 cat >conftest.$ac_ext <<_ACEOF
12028
12029#include <X11/Xlib.h>
12030
12031void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
12032
12033void f() {
12034 XIMCallback cb;
12035 cb.callback = im_destroy_cb;
12036}
12037
12038_ACEOF
12039rm -f conftest.$ac_objext
12040if { (ac_try="$ac_compile"
12041case "(($ac_try" in
12042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12043 *) ac_try_echo=$ac_try;;
12044esac
12045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12046 (eval "$ac_compile") 2>conftest.er1
12047 ac_status=$?
12048 grep -v '^ *+' conftest.er1 >conftest.err
12049 rm -f conftest.er1
12050 cat conftest.err >&5
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); } && {
12053 test -z "$ac_cxx_werror_flag" ||
12054 test ! -s conftest.err
12055 } && test -s conftest.$ac_objext; then
12056 rxvt_broken_ximcb=yes
12057else
12058 echo "$as_me: failed program was:" >&5
12059sed 's/^/| /' conftest.$ac_ext >&5
12060
12061 rxvt_broken_ximcb=no
12062fi
12063
12064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12065fi
12066{ echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
12067echo "${ECHO_T}$rxvt_broken_ximcb" >&6; }
12068
12069if test x$rxvt_broken_ximcb = xyes; then
12070
12071cat >>confdefs.h <<\_ACEOF
12072#define XIMCB_PROTO_BROKEN 1
12073_ACEOF
12074
12075fi
12076 10496
12077 10497
12078 10498
12079 10499
12080 10500
12084 pty.h \ 10504 pty.h \
12085 util.h \ 10505 util.h \
12086 libutil.h \ 10506 libutil.h \
12087 sys/ioctl.h \ 10507 sys/ioctl.h \
12088 sys/stropts.h \ 10508 sys/stropts.h \
10509 stropts.h \
12089 10510
12090do 10511do
12091as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10512as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12092if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10513if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12093 { echo "$as_me:$LINENO: checking for $ac_header" >&5 10514 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12761echo "${ECHO_T}no" >&6; } 11182echo "${ECHO_T}no" >&6; }
12762fi 11183fi
12763 11184
12764 11185
12765 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then 11186 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
12766 LIBS="$LIBS `$PKG_CONFIG xft --libs`" 11187 X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS"
12767 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" 11188 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
12768 else 11189 else
12769 # Extract the first word of "xft-config", so it can be a program name with args. 11190 # Extract the first word of "xft-config", so it can be a program name with args.
12770set dummy xft-config; ac_word=$2 11191set dummy xft-config; ac_word=$2
12771{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11192{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12806echo "${ECHO_T}no" >&6; } 11227echo "${ECHO_T}no" >&6; }
12807fi 11228fi
12808 11229
12809 11230
12810 if test $XFT_CONFIG != no; then 11231 if test $XFT_CONFIG != no; then
12811 LIBS="$LIBS `$XFT_CONFIG --libs`" 11232 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
12812 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" 11233 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
12813 fi 11234 fi
12814 fi 11235 fi
12815 11236
11237 save_LIBS="$LIBS"
11238 LIBS="$LIBS $X_LIBS"
12816 11239
12817for ac_header in X11/Xft/Xft.h 11240for ac_header in X11/Xft/Xft.h
12818do 11241do
12819as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11242as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12820if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11243if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12953 support_xft=no 11376 support_xft=no
12954fi 11377fi
12955 11378
12956done 11379done
12957 11380
12958
12959{ echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 11381 { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
12960echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } 11382echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; }
12961if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then 11383if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then
12962 echo $ECHO_N "(cached) $ECHO_C" >&6 11384 echo $ECHO_N "(cached) $ECHO_C" >&6
12963else 11385else
12964 ac_check_lib_save_LIBS=$LIBS 11386 ac_check_lib_save_LIBS=$LIBS
13016LIBS=$ac_check_lib_save_LIBS 11438LIBS=$ac_check_lib_save_LIBS
13017fi 11439fi
13018{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 11440{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
13019echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } 11441echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; }
13020if test $ac_cv_lib_Xft_XftDrawString32 = yes; then 11442if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
13021 cat >>confdefs.h <<_ACEOF 11443 :
13022#define HAVE_LIBXFT 1
13023_ACEOF
13024
13025 LIBS="-lXft $LIBS"
13026
13027else 11444else
13028 support_xft=no 11445 support_xft=no
13029fi 11446fi
13030 11447
11448 LIBS="$save_LIBS"
13031 11449
13032 if test x$support_xft = xyes; then 11450 if test x$support_xft = xyes; then
13033 11451
13034cat >>confdefs.h <<\_ACEOF 11452cat >>confdefs.h <<\_ACEOF
13035#define XFT 1 11453#define XFT 1
13063cat >>confdefs.h <<\_ACEOF 11481cat >>confdefs.h <<\_ACEOF
13064#define OFF_FOCUS_FADING 1 11482#define OFF_FOCUS_FADING 1
13065_ACEOF 11483_ACEOF
13066 11484
13067fi 11485fi
13068if test x$support_tinting = xyes; then
13069
13070cat >>confdefs.h <<\_ACEOF
13071#define TINTING 1
13072_ACEOF
13073
13074fi
13075if test x$support_inheritpixmap = xyes; then 11486if test x$support_inheritpixmap = xyes; then
13076 11487
13077cat >>confdefs.h <<\_ACEOF 11488cat >>confdefs.h <<\_ACEOF
13078#define ENABLE_TRANSPARENCY 1 11489#define ENABLE_TRANSPARENCY 1
13079_ACEOF 11490_ACEOF
13091cat >>confdefs.h <<\_ACEOF 11502cat >>confdefs.h <<\_ACEOF
13092#define SELECTION_SCROLLING 1 11503#define SELECTION_SCROLLING 1
13093_ACEOF 11504_ACEOF
13094 11505
13095fi 11506fi
11507if test x$support_frills = xyes; then
11508
11509cat >>confdefs.h <<\_ACEOF
11510#define ENABLE_FRILLS 1
11511_ACEOF
11512
11513fi
13096if test x$support_mousewheel = xyes; then 11514if test x$support_mousewheel = xyes; then
13097 11515
13098cat >>confdefs.h <<\_ACEOF 11516cat >>confdefs.h <<\_ACEOF
13099#define MOUSE_WHEEL 1 11517#define MOUSE_WHEEL 1
13100_ACEOF 11518_ACEOF
13105cat >>confdefs.h <<\_ACEOF 11523cat >>confdefs.h <<\_ACEOF
13106#define MOUSE_SLIP_WHEELING 1 11524#define MOUSE_SLIP_WHEELING 1
13107_ACEOF 11525_ACEOF
13108 11526
13109fi 11527fi
13110if test x$support_xpm = xyes -o x$support_afterimage = xyes ; then
13111
13112cat >>confdefs.h <<\_ACEOF
13113#define XPM_BACKGROUND 1
13114_ACEOF
13115
13116fi
13117
13118if test x$support_afterimage = xyes; then 11528if test x$support_afterimage = xyes; then
13119 11529
13120cat >>confdefs.h <<\_ACEOF 11530cat >>confdefs.h <<\_ACEOF
13121#define HAVE_AFTERIMAGE 1 11531#define HAVE_AFTERIMAGE 1
13122_ACEOF 11532_ACEOF
13123 11533
11534
11535cat >>confdefs.h <<\_ACEOF
11536#define BG_IMAGE_FROM_FILE 1
11537_ACEOF
11538
13124fi 11539fi
11540
11541
11542scrolltypes=plain
11543
11544cat >>confdefs.h <<\_ACEOF
11545#define PLAIN_SCROLLBAR 1
11546_ACEOF
13125 11547
13126 11548
13127if test x$support_scroll_rxvt = xyes; then 11549if test x$support_scroll_rxvt = xyes; then
13128 11550
13129cat >>confdefs.h <<\_ACEOF 11551cat >>confdefs.h <<\_ACEOF
13130#define RXVT_SCROLLBAR 1 11552#define RXVT_SCROLLBAR 1
13131_ACEOF 11553_ACEOF
13132 11554
13133 scrolltypes="rxvt" 11555 scrolltypes="$scrolltypes rxvt"
13134fi 11556fi
13135if test x$support_scroll_next = xyes; then 11557if test x$support_scroll_next = xyes; then
13136 11558
13137cat >>confdefs.h <<\_ACEOF 11559cat >>confdefs.h <<\_ACEOF
13138#define NEXT_SCROLLBAR 1 11560#define NEXT_SCROLLBAR 1
13145cat >>confdefs.h <<\_ACEOF 11567cat >>confdefs.h <<\_ACEOF
13146#define XTERM_SCROLLBAR 1 11568#define XTERM_SCROLLBAR 1
13147_ACEOF 11569_ACEOF
13148 11570
13149 scrolltypes="$scrolltypes xterm" 11571 scrolltypes="$scrolltypes xterm"
13150fi
13151if test x$support_scroll_plain = xyes; then
13152
13153cat >>confdefs.h <<\_ACEOF
13154#define PLAIN_SCROLLBAR 1
13155_ACEOF
13156
13157 scrolltypes="$scrolltypes plain"
13158fi 11572fi
13159if test x$support_pointer_blank = xyes; then 11573if test x$support_pointer_blank = xyes; then
13160 11574
13161cat >>confdefs.h <<\_ACEOF 11575cat >>confdefs.h <<\_ACEOF
13162#define POINTER_BLANK 1 11576#define POINTER_BLANK 1
13399 11813
13400 11814
13401 11815
13402 11816
13403 11817
13404if test x$support_perl = xyes; then
13405 support_frills=yes
13406fi
13407
13408if test x$support_frills = xyes; then
13409
13410cat >>confdefs.h <<\_ACEOF
13411#define ENABLE_FRILLS 1
13412_ACEOF
13413
13414fi
13415
13416 11818
13417 11819
13418 11820
13419 11821
13420 11822
13437_ACEOF 11839_ACEOF
13438program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 11840program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
13439rm -f conftest.sed 11841rm -f conftest.sed
13440 11842
13441 11843
13442
13443
13444
13445if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
13446 include_stdint_h="#include <stdint.h>"
13447else
13448 include_stdint_h="/* #include <stdint.h> */"
13449fi
13450if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
13451 include_stdarg_h="#include <cstdarg>"
13452else
13453 include_stdarg_h="/* #include <cstdarg> */"
13454fi
13455if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
13456 include_stdlib_h="#include <cstdlib>"
13457else
13458 include_stdlib_h="/* #include <cstdlib> */"
13459fi
13460if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
13461 include_unistd_h="#include <unistd.h>"
13462else
13463 include_unistd_h="/* #include <unistd.h> */"
13464fi
13465if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
13466 include_string_h="#include <cstring>"
13467else
13468 include_string_h="/* #include <cstring> */"
13469fi
13470if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
13471 include_fcntl_h="#include <fcntl.h>"
13472else
13473 include_fcntl_h="/* #include <fcntl.h> */"
13474fi
13475if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
13476 include_util_h="#include <util.h>"
13477else
13478 include_util_h="/* #include <util.h> */"
13479fi
13480if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
13481 include_assert_h="#include <assert.h>"
13482else
13483 include_assert_h="/* #include <assert.h> */"
13484fi
13485if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
13486 include_sys_ioctl_h="#include <sys/ioctl.h>"
13487else
13488 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
13489fi
13490if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
13491 include_sys_select_h="#include <sys/select.h>"
13492else
13493 include_sys_select_h="/* #include <sys/select.h> */"
13494fi
13495if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
13496 include_sys_strredir_h="#include <sys/strredir.h>"
13497else
13498 include_sys_strredir_h="/* #include <sys/strredir.h> */"
13499fi
13500if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
13501 include_sys_time_h="#include <sys/time.h>"
13502else
13503 include_sys_time_h="/* #include <sys/time.h> */"
13504fi
13505if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
13506 include_time_h="#include <time.h>"
13507else
13508 include_time_h="/* #include <time.h> */"
13509fi
13510
13511ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" 11844ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile"
13512 11845
13513cat >confcache <<\_ACEOF 11846cat >confcache <<\_ACEOF
13514# This file is a shell script that caches the results of configure 11847# This file is a shell script that caches the results of configure
13515# tests run on this system so they can be shared between configure 11848# tests run on this system so they can be shared between configure
13516# scripts and configure runs, see configure's option --config-cache. 11849# scripts and configure runs, see configure's option --config-cache.
14065 case $ac_config_target in 12398 case $ac_config_target in
14066 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; 12399 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
14067 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12400 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14068 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 12401 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14069 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 12402 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14070 "src/rxvtlib.h") CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
14071 12403
14072 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 12404 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14073echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 12405echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14074 { (exit 1); exit 1; }; };; 12406 { (exit 1); exit 1; }; };;
14075 esac 12407 esac
14174host_cpu!$host_cpu$ac_delim 12506host_cpu!$host_cpu$ac_delim
14175host_vendor!$host_vendor$ac_delim 12507host_vendor!$host_vendor$ac_delim
14176host_os!$host_os$ac_delim 12508host_os!$host_os$ac_delim
14177VERSION!$VERSION$ac_delim 12509VERSION!$VERSION$ac_delim
14178DATE!$DATE$ac_delim 12510DATE!$DATE$ac_delim
14179LSMDATE!$LSMDATE$ac_delim
14180LIBVERSION!$LIBVERSION$ac_delim
14181CC!$CC$ac_delim 12511CC!$CC$ac_delim
14182CFLAGS!$CFLAGS$ac_delim 12512CFLAGS!$CFLAGS$ac_delim
14183LDFLAGS!$LDFLAGS$ac_delim 12513LDFLAGS!$LDFLAGS$ac_delim
14184CPPFLAGS!$CPPFLAGS$ac_delim 12514CPPFLAGS!$CPPFLAGS$ac_delim
14185ac_ct_CC!$ac_ct_CC$ac_delim 12515ac_ct_CC!$ac_ct_CC$ac_delim
14193INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 12523INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14194INSTALL_DATA!$INSTALL_DATA$ac_delim 12524INSTALL_DATA!$INSTALL_DATA$ac_delim
14195GREP!$GREP$ac_delim 12525GREP!$GREP$ac_delim
14196EGREP!$EGREP$ac_delim 12526EGREP!$EGREP$ac_delim
14197LINKER!$LINKER$ac_delim 12527LINKER!$LINKER$ac_delim
14198INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim
14199RXVTNAME!$RXVTNAME$ac_delim 12528RXVTNAME!$RXVTNAME$ac_delim
12529CXXCPP!$CXXCPP$ac_delim
14200TIC!$TIC$ac_delim 12530TIC!$TIC$ac_delim
14201XMKMF!$XMKMF$ac_delim 12531XMKMF!$XMKMF$ac_delim
14202CXXCPP!$CXXCPP$ac_delim
14203X_CFLAGS!$X_CFLAGS$ac_delim 12532X_CFLAGS!$X_CFLAGS$ac_delim
14204X_PRE_LIBS!$X_PRE_LIBS$ac_delim 12533X_PRE_LIBS!$X_PRE_LIBS$ac_delim
14205X_LIBS!$X_LIBS$ac_delim 12534X_LIBS!$X_LIBS$ac_delim
14206X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim 12535X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
14207afterimage_config!$afterimage_config$ac_delim 12536afterimage_config!$afterimage_config$ac_delim
14208XPM_CPPFLAGS!$XPM_CPPFLAGS$ac_delim
14209XPM_CFLAGS!$XPM_CFLAGS$ac_delim
14210XPM_LIBS!$XPM_LIBS$ac_delim
14211rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim
14212rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim
14213rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim
14214rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim
14215rxvt_intp_define!$rxvt_intp_define$ac_delim
14216rxvt_u_intp_define!$rxvt_u_intp_define$ac_delim
14217PKG_CONFIG!$PKG_CONFIG$ac_delim 12537PKG_CONFIG!$PKG_CONFIG$ac_delim
14218XFT_CONFIG!$XFT_CONFIG$ac_delim 12538XFT_CONFIG!$XFT_CONFIG$ac_delim
14219PERL!$PERL$ac_delim 12539PERL!$PERL$ac_delim
14220PERLLIB!$PERLLIB$ac_delim 12540PERLLIB!$PERLLIB$ac_delim
14221PERLFLAGS!$PERLFLAGS$ac_delim 12541PERLFLAGS!$PERLFLAGS$ac_delim
14222PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim 12542PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim
14223IF_PERL!$IF_PERL$ac_delim 12543IF_PERL!$IF_PERL$ac_delim
14224PERL_O!$PERL_O$ac_delim 12544PERL_O!$PERL_O$ac_delim
14225AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim 12545AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim
14226AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim 12546AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim
14227include_stdint_h!$include_stdint_h$ac_delim 12547LIBOBJS!$LIBOBJS$ac_delim
14228include_stdarg_h!$include_stdarg_h$ac_delim 12548LTLIBOBJS!$LTLIBOBJS$ac_delim
14229_ACEOF 12549_ACEOF
14230 12550
14231 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 12551 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 85; then
14232 break 12552 break
14233 elif $ac_last_try; then 12553 elif $ac_last_try; then
14234 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 12554 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14235echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 12555echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14236 { (exit 1); exit 1; }; } 12556 { (exit 1); exit 1; }; }
14245 ac_eof=`expr $ac_eof + 1` 12565 ac_eof=`expr $ac_eof + 1`
14246fi 12566fi
14247 12567
14248cat >>$CONFIG_STATUS <<_ACEOF 12568cat >>$CONFIG_STATUS <<_ACEOF
14249cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 12569cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14250/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14251_ACEOF
14252sed '
14253s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14254s/^/s,@/; s/!/@,|#_!!_#|/
14255:n
14256t n
14257s/'"$ac_delim"'$/,g/; t
14258s/$/\\/; p
14259N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14260' >>$CONFIG_STATUS <conf$$subs.sed
14261rm -f conf$$subs.sed
14262cat >>$CONFIG_STATUS <<_ACEOF
14263CEOF$ac_eof
14264_ACEOF
14265
14266
14267ac_delim='%!_!# '
14268for ac_last_try in false false false false false :; do
14269 cat >conf$$subs.sed <<_ACEOF
14270include_stdlib_h!$include_stdlib_h$ac_delim
14271include_unistd_h!$include_unistd_h$ac_delim
14272include_string_h!$include_string_h$ac_delim
14273include_fcntl_h!$include_fcntl_h$ac_delim
14274include_util_h!$include_util_h$ac_delim
14275include_assert_h!$include_assert_h$ac_delim
14276include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim
14277include_sys_select_h!$include_sys_select_h$ac_delim
14278include_sys_strredir_h!$include_sys_strredir_h$ac_delim
14279include_sys_time_h!$include_sys_time_h$ac_delim
14280include_time_h!$include_time_h$ac_delim
14281LIBOBJS!$LIBOBJS$ac_delim
14282LTLIBOBJS!$LTLIBOBJS$ac_delim
14283_ACEOF
14284
14285 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then
14286 break
14287 elif $ac_last_try; then
14288 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14289echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14290 { (exit 1); exit 1; }; }
14291 else
14292 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14293 fi
14294done
14295
14296ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14297if test -n "$ac_eof"; then
14298 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14299 ac_eof=`expr $ac_eof + 1`
14300fi
14301
14302cat >>$CONFIG_STATUS <<_ACEOF
14303cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
14304/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 12570/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14305_ACEOF 12571_ACEOF
14306sed ' 12572sed '
14307s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 12573s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14308s/^/s,@/; s/!/@,|#_!!_#|/ 12574s/^/s,@/; s/!/@,|#_!!_#|/
14561s&@builddir@&$ac_builddir&;t t 12827s&@builddir@&$ac_builddir&;t t
14562s&@abs_builddir@&$ac_abs_builddir&;t t 12828s&@abs_builddir@&$ac_abs_builddir&;t t
14563s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12829s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14564s&@INSTALL@&$ac_INSTALL&;t t 12830s&@INSTALL@&$ac_INSTALL&;t t
14565$ac_datarootdir_hack 12831$ac_datarootdir_hack
14566" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 12832" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
14567 12833
14568test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12834test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14569 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 12835 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14570 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 12836 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14571 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12837 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14719 Install path: ${prefix}/bin 12985 Install path: ${prefix}/bin
14720 Compiler: $CXX 12986 Compiler: $CXX
14721 Compiler flags: $CXXFLAGS 12987 Compiler flags: $CXXFLAGS
14722 Linker: $LINKER" 12988 Linker: $LINKER"
14723 12989
14724if test x$support_xpm = xyes; then
14725 echo " Xpm library: $XPM_LIBS"
14726fi
14727
14728if test x$support_afterimage = xyes; then
14729 echo " AfterImage support: yes"
14730fi
14731
14732
14733if test x$term != x; then 12990if test x$term != x; then
14734 echo " set TERM to: $term" 12991 echo " set TERM to: $term"
14735fi 12992fi
14736if test x$terminfo != x; then 12993if test x$terminfo != x; then
14737 echo " set TERMINFO to: $terminfo" 12994 echo " set TERMINFO to: $terminfo"
14743fi 13000fi
14744echo 13001echo
14745echo " embedded perl: $support_perl" 13002echo " embedded perl: $support_perl"
14746echo " libafterimage: $support_afterimage" 13003echo " libafterimage: $support_afterimage"
14747echo 13004echo
14748if test x$support_xpm = xneedsmanualspecification; then
14749 echo ".----------------------------------------------------------------."
14750 echo ". WARNING: --enable-xpm-background was specified however the ."
14751 echo ". XPM includes files and libraries could not be found. ."
14752 echo ". XPM backgrounds are now being DISABLED! If you want ."
14753 echo ". to use them you should rerun configure with the ."
14754 echo ". appropriate --with-xpm-includes=/path/to/xpm/includes ."
14755 echo ". and --with-xpm-library=/path/to/xpm/library lines. ."
14756 echo ".----------------------------------------------------------------."
14757fi
14758if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then 13005if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
14759 echo ".----------------------------------------------------------------." 13006 echo ".----------------------------------------------------------------."
14760 echo ". WARNING: --enable-xim was specified however the locale support ." 13007 echo ". WARNING: --enable-xim was specified however the locale support ."
14761 echo ". functions could not be found. ." 13008 echo ". functions could not be found. ."
14762 echo ". XIM is now being DISABLED! ." 13009 echo ". XIM is now being DISABLED! ."

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines