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

Comparing rxvt-unicode/configure (file contents):
Revision 1.103 by root, Sat Jun 9 13:04:27 2007 UTC vs.
Revision 1.125 by root, Sun Jan 6 21:34:57 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
684MV 681CXXCPP
685CP
686LN
687SED
688ECHO
689CMP
690TIC 682TIC
691XMKMF 683XMKMF
692CXXCPP
693X_CFLAGS 684X_CFLAGS
694X_PRE_LIBS 685X_PRE_LIBS
695X_LIBS 686X_LIBS
696X_EXTRA_LIBS 687X_EXTRA_LIBS
697afterimage_config 688afterimage_config
698XPM_CPPFLAGS
699XPM_CFLAGS
700XPM_LIBS
701rxvt_int16_typedef
702rxvt_uint16_typedef
703rxvt_int32_typedef
704rxvt_uint32_typedef
705rxvt_intp_define
706rxvt_u_intp_define
707PKG_CONFIG 689PKG_CONFIG
708XFT_CONFIG 690XFT_CONFIG
709PERL 691PERL
710PERLLIB 692PERLLIB
711PERLFLAGS 693PERLFLAGS
712PERLPRIVLIBEXP 694PERLPRIVLIBEXP
713IF_PERL 695IF_PERL
714PERL_O 696PERL_O
715DEBUG
716DINCLUDE
717DLIB
718LIBAFTERIMAGE_CFLAGS 697AFTERIMAGE_CFLAGS
719AFTERIMAGE_LIBS 698AFTERIMAGE_LIBS
720include_stdint_h
721include_stdarg_h
722include_stdlib_h
723include_unistd_h
724include_string_h
725include_fcntl_h
726include_util_h
727include_assert_h
728include_sys_ioctl_h
729include_sys_select_h
730include_sys_strredir_h
731include_sys_time_h
732include_time_h
733LIBOBJS 699LIBOBJS
734LTLIBOBJS' 700LTLIBOBJS'
735ac_subst_files='' 701ac_subst_files=''
736 ac_precious_vars='build_alias 702 ac_precious_vars='build_alias
737host_alias 703host_alias
743CPPFLAGS 709CPPFLAGS
744CXX 710CXX
745CXXFLAGS 711CXXFLAGS
746CCC 712CCC
747CPP 713CPP
748XMKMF
749CXXCPP' 714CXXCPP
715XMKMF'
750 716
751 717
752# Initialize some variables set by options. 718# Initialize some variables set by options.
753ac_init_help= 719ac_init_help=
754ac_init_version=false 720ac_init_version=false
1327 1293
1328Optional Features: 1294Optional Features:
1329 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1295 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1330 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1296 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1331 --enable-everything enable standard non-multichoice features 1297 --enable-everything enable standard non-multichoice features
1332 NOTE: this option is order dependent 1298 NOTE: this option is order dependent
1333 NOTE: automatically enabled with --enable-shared 1299 --enable-warnings turn on g++ warnings
1334 --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
1335 --enable-combining enable composition of base and combining characters 1301 --enable-combining enable composition of base and combining characters
1336 --enable-xft enable xft support on systems that have it 1302 --enable-xft enable xft support on systems that have it
1337 --enable-font-styles enable bold and italic support 1303 --enable-font-styles enable bold and italic support
1338 --enable-xpm-background enable background pixmaps
1339 --enable-afterimage enable integration with libAfterImage for background images 1304 --enable-afterimage enable integration with libAfterImage for background images
1340 --enable-afterstep enable integration with AfterStep window manager
1341 --enable-transparency enable transparent backgrounds 1305 --enable-transparency enable transparent backgrounds
1342 --enable-tinting enable tinting of transparent bg
1343 --enable-fading enable colors fading when off focus 1306 --enable-fading enable colors fading when off focus
1344 --enable-rxvt-scroll enable rxvt style scrollbar 1307 --enable-rxvt-scroll enable rxvt style scrollbar
1345 --enable-next-scroll enable NeXT style scrollbar 1308 --enable-next-scroll enable NeXT style scrollbar
1346 --enable-xterm-scroll enable Xterm style scrollbar 1309 --enable-xterm-scroll enable Xterm style scrollbar
1310 --enable-plain-scroll enable plain style scrollbar
1347 --enable-perl enable embedded perl interpreter 1311 --enable-perl enable embedded perl interpreter
1348 --enable-plain-scroll enable plain style scrollbar
1349 --enable-xim XIM (X Input Method) protocol support 1312 --enable-xim XIM (X Input Method) protocol support
1350 --disable-backspace-key disable handling of the backspace key 1313 --disable-backspace-key disable handling of the backspace key
1351 --disable-delete-key disable handling of the delete key 1314 --disable-delete-key disable handling of the delete key
1352 --disable-resources disable all resource checking 1315 --disable-resources disable all resource checking
1353 --enable-8bitctrls enable 8 bit control sequences (not recommended) 1316 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1354 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) 1317 --enable-fallback[=CLASS] fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
1355 --disable-swapscreen disable swap screen support 1318 --disable-swapscreen disable swap screen support
1356 --enable-iso14755 enable support for extended ISO 14755 modes 1319 --enable-iso14755 enable support for extended ISO 14755 modes
1357 --enable-frills enable support for rarely used features 1320 --enable-frills enable support for rarely used features
1358 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 1321 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1359 --enable-selectionscrolling enable scrolling during selections 1322 --enable-selectionscrolling enable scrolling during selections
1360 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 1323 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1361 --enable-slipwheeling enable slip wheel scrolling (requires previous) 1324 --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel)
1362 --enable-smart-resize enable smart growth/shrink behaviour 1325 --enable-smart-resize enable smart growth/shrink behaviour
1363 --enable-text-blink enable blinking text 1326 --enable-text-blink enable blinking text
1364 --enable-pointer-blank enable pointer blank when typing or inactive pointer 1327 --enable-pointer-blank enable pointer blank when typing or inactive pointer
1365 --enable-utmp enable utmp (utmpx) support 1328 --enable-utmp enable utmp (utmpx) support
1366 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) 1329 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1368 1331
1369Optional Packages: 1332Optional Packages:
1370 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1333 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1371 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1334 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1372 --with-afterimage-config=DIR use libAfterImage config script in DIR 1335 --with-afterimage-config=DIR use libAfterImage config script in DIR
1373 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) 1336 --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
1374 --with-res-name=NAME use this as default resource name (default: urxvt) 1337 --with-res-name=NAME use this as default resource name (default: urxvt)
1375 --with-res-class=CLASS use this as the resource class (default: URxvt) 1338 --with-res-class=CLASS use this as the resource class (default: URxvt)
1376 --with-name=NAME set the basename for the installed binaries (default: urxvt) 1339 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1377 --with-term=NAME set the terminal to NAME (default: rxvt) 1340 --with-term=NAME set the terminal to NAME (default: rxvt)
1378 --with-terminfo=PATH set the path to the terminfo tree to PATH 1341 --with-terminfo=PATH set the path to the terminfo tree to PATH
1379 --with-x use the X Window System 1342 --with-x use the X Window System
1380 --with-xpm-includes=DIR use XPM includes in DIR
1381 --with-xpm-library=DIR use XPM library in DIR
1382 --with-xpm use XPM
1383 1343
1384Some influential environment variables: 1344Some influential environment variables:
1385 CC C compiler command 1345 CC C compiler command
1386 CFLAGS C compiler flags 1346 CFLAGS C compiler flags
1387 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1347 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1390 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1350 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1391 you have headers in a nonstandard directory <include dir> 1351 you have headers in a nonstandard directory <include dir>
1392 CXX C++ compiler command 1352 CXX C++ compiler command
1393 CXXFLAGS C++ compiler flags 1353 CXXFLAGS C++ compiler flags
1394 CPP C preprocessor 1354 CPP C preprocessor
1355 CXXCPP C++ preprocessor
1395 XMKMF Path to xmkmf, Makefile generator for X Window System 1356 XMKMF Path to xmkmf, Makefile generator for X Window System
1396 CXXCPP C++ preprocessor
1397 1357
1398Use these variables to override the choices made by `configure' or to help 1358Use these variables to override the choices made by `configure' or to help
1399it to find libraries and programs with nonstandard names/locations. 1359it to find libraries and programs with nonstandard names/locations.
1400 1360
1401_ACEOF 1361_ACEOF
1937 1897
1938 1898
1939 1899
1940VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1900VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1941DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1901DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1902
1942echo "" 1903echo ""
1943echo "configuring for rxvt $VERSION" 1904echo "configuring for rxvt $VERSION"
1944echo "" 1905echo ""
1945 1906
1946orig_CXXFLAGS="$CXXFLAGS" 1907orig_CXXFLAGS="$CXXFLAGS"
1947
1948 1908
1949ac_ext=c 1909ac_ext=c
1950ac_cpp='$CPP $CPPFLAGS' 1910ac_cpp='$CPP $CPPFLAGS'
1951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3731echo "${ECHO_T}no" >&6; } 3691echo "${ECHO_T}no" >&6; }
3732fi 3692fi
3733rm -f conftest* 3693rm -f conftest*
3734 3694
3735 3695
3696
3697cat >>confdefs.h <<\_ACEOF
3698#define _GNU_SOURCE 1
3699_ACEOF
3700
3701
3736{ echo "$as_me:$LINENO: checking for library containing strerror" >&5 3702{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
3737echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } 3703echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3738if test "${ac_cv_search_strerror+set}" = set; then 3704if test "${ac_cv_search_strerror+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6 3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3740else 3706else
3887LINKER=$LINKER 3853LINKER=$LINKER
3888 3854
3889 3855
3890if test -z "$orig_CXXFLAGS"; then 3856if test -z "$orig_CXXFLAGS"; then
3891 if test x$GCC = xyes && test "x$GXX" = xyes; then 3857 if test x$GCC = xyes && test "x$GXX" = xyes; then
3892 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" 3858 CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs"
3893 cat >conftest.$ac_ext <<_ACEOF 3859 cat >conftest.$ac_ext <<_ACEOF
3894/* confdefs.h. */ 3860/* confdefs.h. */
3895_ACEOF 3861_ACEOF
3896cat confdefs.h >>conftest.$ac_ext 3862cat confdefs.h >>conftest.$ac_ext
3897cat >>conftest.$ac_ext <<_ACEOF 3863cat >>conftest.$ac_ext <<_ACEOF
3935 CXXFLAGS="-O" 3901 CXXFLAGS="-O"
3936 fi 3902 fi
3937 CFLAGS="$CXXFLAGS" 3903 CFLAGS="$CXXFLAGS"
3938fi 3904fi
3939 3905
3940
3941cat >>confdefs.h <<\_ACEOF
3942#define _GNU_SOURCE 1
3943_ACEOF
3944
3945
3946case $host in 3906case $host in
3947 *-*-solaris* ) 3907 *-*-solaris* )
3948 3908
3949cat >>confdefs.h <<\_ACEOF 3909cat >>confdefs.h <<\_ACEOF
3950#define _XOPEN_SOURCE_EXTENDED 1
3951_ACEOF
3952
3953
3954cat >>confdefs.h <<\_ACEOF
3955#define _XOPEN_SOURCE 2 3910#define _XOPEN_SOURCE 500
3956_ACEOF
3957
3958
3959cat >>confdefs.h <<\_ACEOF
3960#define __EXTENSIONS__ 1
3961_ACEOF 3911_ACEOF
3962 3912
3963 ;; 3913 ;;
3964esac 3914esac
3965
3966 3915
3967{ echo "$as_me:$LINENO: checking for setlocale" >&5 3916{ echo "$as_me:$LINENO: checking for setlocale" >&5
3968echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } 3917echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; }
3969if test "${ac_cv_func_setlocale+set}" = set; then 3918if test "${ac_cv_func_setlocale+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6 3919 echo $ECHO_N "(cached) $ECHO_C" >&6
4417fi 4366fi
4418 4367
4419fi 4368fi
4420 4369
4421 4370
4422
4423support_frills=yes 4371support_frills=yes
4424support_inheritpixmap=yes 4372support_inheritpixmap=yes
4425support_tinting=yes
4426support_fading=yes 4373support_fading=yes
4427support_keepscrolling=yes 4374support_keepscrolling=yes
4428support_selectionscrolling=yes 4375support_selectionscrolling=yes
4429support_mousewheel=yes 4376support_mousewheel=yes
4430support_mouseslipwheel=yes 4377support_mouseslipwheel=yes
4433support_scroll_rxvt=yes 4380support_scroll_rxvt=yes
4434support_scroll_next=yes 4381support_scroll_next=yes
4435support_scroll_xterm=yes 4382support_scroll_xterm=yes
4436support_scroll_plain=yes 4383support_scroll_plain=yes
4437support_xim=yes 4384support_xim=yes
4438support_xpm=yes
4439support_afterimage=yes 4385support_afterimage=yes
4440support_afterstep=yes 4386support_afterstep=yes
4441support_xft=yes 4387support_xft=yes
4442support_unicode3=no 4388support_unicode3=no
4443support_combining=yes 4389support_combining=yes
4446support_styles=yes 4392support_styles=yes
4447support_perl=yes 4393support_perl=yes
4448codesets=all 4394codesets=all
4449 4395
4450 4396
4451if test "x$enable_shared" = xyes; then
4452
4453cat >>confdefs.h <<\_ACEOF
4454#define LIBRXVT 1
4455_ACEOF
4456
4457 INSTALL_LIBRXVT=yes
4458fi
4459
4460
4461# Check whether --enable-everything was given. 4397# Check whether --enable-everything was given.
4462if test "${enable_everything+set}" = set; then 4398if test "${enable_everything+set}" = set; then
4463 enableval=$enable_everything; 4399 enableval=$enable_everything;
4464 if test x$enableval = xno; then 4400 if test x$enableval = xno; then
4465 support_frills=no 4401 support_frills=no
4466 support_inheritpixmap=no 4402 support_inheritpixmap=no
4467 support_tinting=no
4468 support_fading=no 4403 support_fading=no
4469 support_keepscrolling=no 4404 support_keepscrolling=no
4470 support_selectionscrolling=no 4405 support_selectionscrolling=no
4471 support_lastlog=no 4406 support_lastlog=no
4472 support_mousewheel=no 4407 support_mousewheel=no
4478 support_scroll_xterm=no 4413 support_scroll_xterm=no
4479 support_scroll_plain=no 4414 support_scroll_plain=no
4480 support_utmp=no 4415 support_utmp=no
4481 support_wtmp=no 4416 support_wtmp=no
4482 support_xim=no 4417 support_xim=no
4483 support_xpm=no
4484 support_afterimage=no 4418 support_afterimage=no
4485 support_afterstep=no 4419 support_afterstep=no
4486 support_xft=no 4420 support_xft=no
4487 support_unicode3=no 4421 support_unicode3=no
4488 support_combining=no 4422 support_combining=no
4493 codesets= 4427 codesets=
4494 fi 4428 fi
4495 if test x$enableval = xyes; then 4429 if test x$enableval = xyes; then
4496 support_frills=yes 4430 support_frills=yes
4497 support_inheritpixmap=yes 4431 support_inheritpixmap=yes
4498 support_tinting=yes
4499 support_fading=yes 4432 support_fading=yes
4500 support_keepscrolling=yes 4433 support_keepscrolling=yes
4501 support_selectionscrolling=yes 4434 support_selectionscrolling=yes
4502 support_lastlog=yes 4435 support_lastlog=yes
4503 support_mousewheel=yes 4436 support_mousewheel=yes
4509 support_scroll_xterm=yes 4442 support_scroll_xterm=yes
4510 support_scroll_plain=yes 4443 support_scroll_plain=yes
4511 support_utmp=yes 4444 support_utmp=yes
4512 support_wtmp=yes 4445 support_wtmp=yes
4513 support_xim=yes 4446 support_xim=yes
4514 support_xpm=yes
4515 support_afterimage=yes 4447 support_afterimage=yes
4516 support_afterstep=yes 4448 support_afterstep=yes
4517 support_xft=yes 4449 support_xft=yes
4518 support_unicode3=yes 4450 support_unicode3=yes
4519 support_combining=yes 4451 support_combining=yes
4525 fi 4457 fi
4526 4458
4527fi 4459fi
4528 4460
4529 4461
4462WARNINGS=no
4463# Check whether --enable-warnings was given.
4464if test "${enable_warnings+set}" = set; then
4465 enableval=$enable_warnings; if test x$enableval = xyes; then
4466 WARNINGS=yes
4467 fi
4468fi
4469
4470if test x$GXX = xyes; then
4471 if test $WARNINGS = yes; then
4472 save_CXXFLAGS="$CXXFLAGS"
4473 CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-non-virtual-dtor"
4474 cat >conftest.$ac_ext <<_ACEOF
4475/* confdefs.h. */
4476_ACEOF
4477cat confdefs.h >>conftest.$ac_ext
4478cat >>conftest.$ac_ext <<_ACEOF
4479/* end confdefs.h. */
4480
4481int
4482main ()
4483{
4484
4485 ;
4486 return 0;
4487}
4488_ACEOF
4489rm -f conftest.$ac_objext
4490if { (ac_try="$ac_compile"
4491case "(($ac_try" in
4492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4493 *) ac_try_echo=$ac_try;;
4494esac
4495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4496 (eval "$ac_compile") 2>conftest.er1
4497 ac_status=$?
4498 grep -v '^ *+' conftest.er1 >conftest.err
4499 rm -f conftest.er1
4500 cat conftest.err >&5
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); } && {
4503 test -z "$ac_cxx_werror_flag" ||
4504 test ! -s conftest.err
4505 } && test -s conftest.$ac_objext; then
4506 :
4507else
4508 echo "$as_me: failed program was:" >&5
4509sed 's/^/| /' conftest.$ac_ext >&5
4510
4511 CXXFLAGS="$save_CXXFLAGS"
4512fi
4513
4514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4515 else
4516 CXXFLAGS="$CXXFLAGS -w"
4517 fi
4518fi
4519
4530# Check whether --enable-unicode3 was given. 4520# Check whether --enable-unicode3 was given.
4531if test "${enable_unicode3+set}" = set; then 4521if test "${enable_unicode3+set}" = set; then
4532 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then 4522 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then
4533 support_unicode3=$enableval 4523 support_unicode3=$enableval
4534 fi 4524 fi
4557 support_styles=$enableval 4547 support_styles=$enableval
4558 fi 4548 fi
4559fi 4549fi
4560 4550
4561 4551
4562# Check whether --enable-xpm-background was given.
4563if test "${enable_xpm_background+set}" = set; then
4564 enableval=$enable_xpm_background; if test x$enableval = xyes -o x$enableval = xno; then
4565 support_xpm=$enableval
4566 fi
4567fi
4568
4569
4570# Check whether --enable-afterimage was given. 4552# Check whether --enable-afterimage was given.
4571if test "${enable_afterimage+set}" = set; then 4553if test "${enable_afterimage+set}" = set; then
4572 enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then 4554 enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then
4573 support_afterimage=$enableval 4555 support_afterimage=$enableval
4574 fi 4556 fi
4576 4558
4577 4559
4578 4560
4579# Check whether --with-afterimage_config was given. 4561# Check whether --with-afterimage_config was given.
4580if test "${with_afterimage_config+set}" = set; then 4562if test "${with_afterimage_config+set}" = set; then
4581 withval=$with_afterimage_config; afterimage_config="$withval" 4563 withval=$with_afterimage_config; if test "x$withval" != x; then
4582fi 4564 afterimage_config=$withval/afterimage-config
4583
4584
4585# Check whether --enable-afterstep was given.
4586if test "${enable_afterstep+set}" = set; then
4587 enableval=$enable_afterstep; if test x$enableval = xyes -o x$enableval = xno; then
4588 support_afterstep=$enableval
4589 fi 4565 fi
4590fi 4566fi
4567
4591 4568
4592 4569
4593# Check whether --enable-transparency was given. 4570# Check whether --enable-transparency was given.
4594if test "${enable_transparency+set}" = set; then 4571if test "${enable_transparency+set}" = set; then
4595 enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then 4572 enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then
4596 support_inheritpixmap=$enableval 4573 support_inheritpixmap=$enableval
4597 fi 4574 fi
4598fi 4575fi
4599 4576
4600 4577
4601# Check whether --enable-tinting was given.
4602if test "${enable_tinting+set}" = set; then
4603 enableval=$enable_tinting; if test x$enableval = xyes -o x$enableval = xno; then
4604 support_tinting=$enableval
4605 fi
4606fi
4607
4608
4609# Check whether --enable-fading was given. 4578# Check whether --enable-fading was given.
4610if test "${enable_fading+set}" = set; then 4579if test "${enable_fading+set}" = set; then
4611 enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then 4580 enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then
4612 support_fading=$enableval 4581 support_fading=$enableval
4613 fi 4582 fi
4636 support_scroll_xterm=$enableval 4605 support_scroll_xterm=$enableval
4637 fi 4606 fi
4638fi 4607fi
4639 4608
4640 4609
4610# Check whether --enable-plain-scroll was given.
4611if test "${enable_plain_scroll+set}" = set; then
4612 enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4613 support_scroll_plain=$enableval
4614 fi
4615fi
4616
4617
4641# Check whether --enable-perl was given. 4618# Check whether --enable-perl was given.
4642if test "${enable_perl+set}" = set; then 4619if test "${enable_perl+set}" = set; then
4643 enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then 4620 enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then
4644 support_perl=$enableval 4621 support_perl=$enableval
4645 fi
4646fi
4647
4648
4649# Check whether --enable-plain-scroll was given.
4650if test "${enable_plain_scroll+set}" = set; then
4651 enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4652 support_scroll_plain=$enableval
4653 fi 4622 fi
4654fi 4623fi
4655 4624
4656 4625
4657 4626
4887 fi 4856 fi
4888fi 4857fi
4889 4858
4890 4859
4891 4860
4892# Extract the first word of "mv", so it can be a program name with args. 4861LIBEV_M4_AVOID_LIBRT=1
4893set dummy mv; ac_word=$2 4862
4894{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4863ac_ext=cpp
4895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4864ac_cpp='$CXXCPP $CPPFLAGS'
4865ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4866ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4867ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4868{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4869echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4870if test -z "$CXXCPP"; then
4896if test "${ac_cv_path_MV+set}" = set; then 4871 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4897 echo $ECHO_N "(cached) $ECHO_C" >&6 4872 echo $ECHO_N "(cached) $ECHO_C" >&6
4898else 4873else
4899 case $MV in 4874 # Double quotes because CXXCPP needs to be expanded
4900 [\\/]* | ?:[\\/]*) 4875 for CXXCPP in "$CXX -E" "/lib/cpp"
4901 ac_cv_path_MV="$MV" # Let the user override the test with a path. 4876 do
4902 ;; 4877 ac_preproc_ok=false
4903 *) 4878for ac_cxx_preproc_warn_flag in '' yes
4904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905for as_dir in $PATH
4906do 4879do
4907 IFS=$as_save_IFS 4880 # Use a header file that comes with gcc, so configuring glibc
4908 test -z "$as_dir" && as_dir=. 4881 # with a fresh cross-compiler works.
4909 for ac_exec_ext in '' $ac_executable_extensions; do 4882 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4883 # <limits.h> exists even on freestanding compilers.
4911 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 4884 # On the NeXT, cc -E runs the code through the compiler's parser,
4912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4885 # not just through cpp. "Syntax error" is here to catch this case.
4913 break 2 4886 cat >conftest.$ac_ext <<_ACEOF
4914 fi 4887/* confdefs.h. */
4888_ACEOF
4889cat confdefs.h >>conftest.$ac_ext
4890cat >>conftest.$ac_ext <<_ACEOF
4891/* end confdefs.h. */
4892#ifdef __STDC__
4893# include <limits.h>
4894#else
4895# include <assert.h>
4896#endif
4897 Syntax error
4898_ACEOF
4899if { (ac_try="$ac_cpp conftest.$ac_ext"
4900case "(($ac_try" in
4901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4902 *) ac_try_echo=$ac_try;;
4903esac
4904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4906 ac_status=$?
4907 grep -v '^ *+' conftest.er1 >conftest.err
4908 rm -f conftest.er1
4909 cat conftest.err >&5
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); } >/dev/null && {
4912 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4913 test ! -s conftest.err
4914 }; then
4915 :
4916else
4917 echo "$as_me: failed program was:" >&5
4918sed 's/^/| /' conftest.$ac_ext >&5
4919
4920 # Broken: fails on valid input.
4921continue
4922fi
4923
4924rm -f conftest.err conftest.$ac_ext
4925
4926 # OK, works on sane cases. Now check whether nonexistent headers
4927 # can be detected and how.
4928 cat >conftest.$ac_ext <<_ACEOF
4929/* confdefs.h. */
4930_ACEOF
4931cat confdefs.h >>conftest.$ac_ext
4932cat >>conftest.$ac_ext <<_ACEOF
4933/* end confdefs.h. */
4934#include <ac_nonexistent.h>
4935_ACEOF
4936if { (ac_try="$ac_cpp conftest.$ac_ext"
4937case "(($ac_try" in
4938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4939 *) ac_try_echo=$ac_try;;
4940esac
4941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4943 ac_status=$?
4944 grep -v '^ *+' conftest.er1 >conftest.err
4945 rm -f conftest.er1
4946 cat conftest.err >&5
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); } >/dev/null && {
4949 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4950 test ! -s conftest.err
4951 }; then
4952 # Broken: success on invalid input.
4953continue
4954else
4955 echo "$as_me: failed program was:" >&5
4956sed 's/^/| /' conftest.$ac_ext >&5
4957
4958 # Passes both tests.
4959ac_preproc_ok=:
4960break
4961fi
4962
4963rm -f conftest.err conftest.$ac_ext
4964
4915done 4965done
4966# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4967rm -f conftest.err conftest.$ac_ext
4968if $ac_preproc_ok; then
4969 break
4970fi
4971
4972 done
4973 ac_cv_prog_CXXCPP=$CXXCPP
4974
4975fi
4976 CXXCPP=$ac_cv_prog_CXXCPP
4977else
4978 ac_cv_prog_CXXCPP=$CXXCPP
4979fi
4980{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
4981echo "${ECHO_T}$CXXCPP" >&6; }
4982ac_preproc_ok=false
4983for ac_cxx_preproc_warn_flag in '' yes
4984do
4985 # Use a header file that comes with gcc, so configuring glibc
4986 # with a fresh cross-compiler works.
4987 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4988 # <limits.h> exists even on freestanding compilers.
4989 # On the NeXT, cc -E runs the code through the compiler's parser,
4990 # not just through cpp. "Syntax error" is here to catch this case.
4991 cat >conftest.$ac_ext <<_ACEOF
4992/* confdefs.h. */
4993_ACEOF
4994cat confdefs.h >>conftest.$ac_ext
4995cat >>conftest.$ac_ext <<_ACEOF
4996/* end confdefs.h. */
4997#ifdef __STDC__
4998# include <limits.h>
4999#else
5000# include <assert.h>
5001#endif
5002 Syntax error
5003_ACEOF
5004if { (ac_try="$ac_cpp conftest.$ac_ext"
5005case "(($ac_try" in
5006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5007 *) ac_try_echo=$ac_try;;
5008esac
5009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5011 ac_status=$?
5012 grep -v '^ *+' conftest.er1 >conftest.err
5013 rm -f conftest.er1
5014 cat conftest.err >&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); } >/dev/null && {
5017 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5018 test ! -s conftest.err
5019 }; then
5020 :
5021else
5022 echo "$as_me: failed program was:" >&5
5023sed 's/^/| /' conftest.$ac_ext >&5
5024
5025 # Broken: fails on valid input.
5026continue
5027fi
5028
5029rm -f conftest.err conftest.$ac_ext
5030
5031 # OK, works on sane cases. Now check whether nonexistent headers
5032 # can be detected and how.
5033 cat >conftest.$ac_ext <<_ACEOF
5034/* confdefs.h. */
5035_ACEOF
5036cat confdefs.h >>conftest.$ac_ext
5037cat >>conftest.$ac_ext <<_ACEOF
5038/* end confdefs.h. */
5039#include <ac_nonexistent.h>
5040_ACEOF
5041if { (ac_try="$ac_cpp conftest.$ac_ext"
5042case "(($ac_try" in
5043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5044 *) ac_try_echo=$ac_try;;
5045esac
5046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5048 ac_status=$?
5049 grep -v '^ *+' conftest.er1 >conftest.err
5050 rm -f conftest.er1
5051 cat conftest.err >&5
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); } >/dev/null && {
5054 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5055 test ! -s conftest.err
5056 }; then
5057 # Broken: success on invalid input.
5058continue
5059else
5060 echo "$as_me: failed program was:" >&5
5061sed 's/^/| /' conftest.$ac_ext >&5
5062
5063 # Passes both tests.
5064ac_preproc_ok=:
5065break
5066fi
5067
5068rm -f conftest.err conftest.$ac_ext
5069
4916done 5070done
4917IFS=$as_save_IFS 5071# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4918 5072rm -f conftest.err conftest.$ac_ext
4919 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 5073if $ac_preproc_ok; then
4920 ;; 5074 :
4921esac
4922fi
4923MV=$ac_cv_path_MV
4924if test -n "$MV"; then
4925 { echo "$as_me:$LINENO: result: $MV" >&5
4926echo "${ECHO_T}$MV" >&6; }
4927else 5075else
4928 { echo "$as_me:$LINENO: result: no" >&5 5076 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4929echo "${ECHO_T}no" >&6; } 5077See \`config.log' for more details." >&5
5078echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5079See \`config.log' for more details." >&2;}
5080 { (exit 1); exit 1; }; }
4930fi 5081fi
4931 5082
5083ac_ext=cpp
5084ac_cpp='$CXXCPP $CPPFLAGS'
5085ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5086ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5087ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4932 5088
4933# Extract the first word of "cp", so it can be a program name with args. 5089
4934set dummy cp; ac_word=$2
4935{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5090{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5091echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4937if test "${ac_cv_path_CP+set}" = set; then 5092if test "${ac_cv_header_stdc+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6 5093 echo $ECHO_N "(cached) $ECHO_C" >&6
4939else 5094else
4940 case $CP in 5095 cat >conftest.$ac_ext <<_ACEOF
4941 [\\/]* | ?:[\\/]*) 5096/* confdefs.h. */
4942 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5097_ACEOF
5098cat confdefs.h >>conftest.$ac_ext
5099cat >>conftest.$ac_ext <<_ACEOF
5100/* end confdefs.h. */
5101#include <stdlib.h>
5102#include <stdarg.h>
5103#include <string.h>
5104#include <float.h>
5105
5106int
5107main ()
5108{
5109
4943 ;; 5110 ;
4944 *) 5111 return 0;
4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5112}
4946for as_dir in $PATH 5113_ACEOF
5114rm -f conftest.$ac_objext
5115if { (ac_try="$ac_compile"
5116case "(($ac_try" in
5117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5118 *) ac_try_echo=$ac_try;;
5119esac
5120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5121 (eval "$ac_compile") 2>conftest.er1
5122 ac_status=$?
5123 grep -v '^ *+' conftest.er1 >conftest.err
5124 rm -f conftest.er1
5125 cat conftest.err >&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } && {
5128 test -z "$ac_cxx_werror_flag" ||
5129 test ! -s conftest.err
5130 } && test -s conftest.$ac_objext; then
5131 ac_cv_header_stdc=yes
5132else
5133 echo "$as_me: failed program was:" >&5
5134sed 's/^/| /' conftest.$ac_ext >&5
5135
5136 ac_cv_header_stdc=no
5137fi
5138
5139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5140
5141if test $ac_cv_header_stdc = yes; then
5142 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5143 cat >conftest.$ac_ext <<_ACEOF
5144/* confdefs.h. */
5145_ACEOF
5146cat confdefs.h >>conftest.$ac_ext
5147cat >>conftest.$ac_ext <<_ACEOF
5148/* end confdefs.h. */
5149#include <string.h>
5150
5151_ACEOF
5152if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5153 $EGREP "memchr" >/dev/null 2>&1; then
5154 :
5155else
5156 ac_cv_header_stdc=no
5157fi
5158rm -f conftest*
5159
5160fi
5161
5162if test $ac_cv_header_stdc = yes; then
5163 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5164 cat >conftest.$ac_ext <<_ACEOF
5165/* confdefs.h. */
5166_ACEOF
5167cat confdefs.h >>conftest.$ac_ext
5168cat >>conftest.$ac_ext <<_ACEOF
5169/* end confdefs.h. */
5170#include <stdlib.h>
5171
5172_ACEOF
5173if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5174 $EGREP "free" >/dev/null 2>&1; then
5175 :
5176else
5177 ac_cv_header_stdc=no
5178fi
5179rm -f conftest*
5180
5181fi
5182
5183if test $ac_cv_header_stdc = yes; then
5184 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5185 if test "$cross_compiling" = yes; then
5186 :
5187else
5188 cat >conftest.$ac_ext <<_ACEOF
5189/* confdefs.h. */
5190_ACEOF
5191cat confdefs.h >>conftest.$ac_ext
5192cat >>conftest.$ac_ext <<_ACEOF
5193/* end confdefs.h. */
5194#include <ctype.h>
5195#include <stdlib.h>
5196#if ((' ' & 0x0FF) == 0x020)
5197# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5198# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5199#else
5200# define ISLOWER(c) \
5201 (('a' <= (c) && (c) <= 'i') \
5202 || ('j' <= (c) && (c) <= 'r') \
5203 || ('s' <= (c) && (c) <= 'z'))
5204# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5205#endif
5206
5207#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5208int
5209main ()
5210{
5211 int i;
5212 for (i = 0; i < 256; i++)
5213 if (XOR (islower (i), ISLOWER (i))
5214 || toupper (i) != TOUPPER (i))
5215 return 2;
5216 return 0;
5217}
5218_ACEOF
5219rm -f conftest$ac_exeext
5220if { (ac_try="$ac_link"
5221case "(($ac_try" in
5222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5223 *) ac_try_echo=$ac_try;;
5224esac
5225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5226 (eval "$ac_link") 2>&5
5227 ac_status=$?
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5230 { (case "(($ac_try" in
5231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5232 *) ac_try_echo=$ac_try;;
5233esac
5234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5235 (eval "$ac_try") 2>&5
5236 ac_status=$?
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); }; }; then
5239 :
5240else
5241 echo "$as_me: program exited with status $ac_status" >&5
5242echo "$as_me: failed program was:" >&5
5243sed 's/^/| /' conftest.$ac_ext >&5
5244
5245( exit $ac_status )
5246ac_cv_header_stdc=no
5247fi
5248rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5249fi
5250
5251
5252fi
5253fi
5254{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5255echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5256if test $ac_cv_header_stdc = yes; then
5257
5258cat >>confdefs.h <<\_ACEOF
5259#define STDC_HEADERS 1
5260_ACEOF
5261
5262fi
5263
5264# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5275 inttypes.h stdint.h unistd.h
4947do 5276do
4948 IFS=$as_save_IFS 5277as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4949 test -z "$as_dir" && as_dir=. 5278{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4950 for ac_exec_ext in '' $ac_executable_extensions; do 5279echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5280if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4952 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5281 echo $ECHO_N "(cached) $ECHO_C" >&6
4953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5282else
4954 break 2 5283 cat >conftest.$ac_ext <<_ACEOF
4955 fi 5284/* confdefs.h. */
5285_ACEOF
5286cat confdefs.h >>conftest.$ac_ext
5287cat >>conftest.$ac_ext <<_ACEOF
5288/* end confdefs.h. */
5289$ac_includes_default
5290
5291#include <$ac_header>
5292_ACEOF
5293rm -f conftest.$ac_objext
5294if { (ac_try="$ac_compile"
5295case "(($ac_try" in
5296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5297 *) ac_try_echo=$ac_try;;
5298esac
5299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5300 (eval "$ac_compile") 2>conftest.er1
5301 ac_status=$?
5302 grep -v '^ *+' conftest.er1 >conftest.err
5303 rm -f conftest.er1
5304 cat conftest.err >&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); } && {
5307 test -z "$ac_cxx_werror_flag" ||
5308 test ! -s conftest.err
5309 } && test -s conftest.$ac_objext; then
5310 eval "$as_ac_Header=yes"
5311else
5312 echo "$as_me: failed program was:" >&5
5313sed 's/^/| /' conftest.$ac_ext >&5
5314
5315 eval "$as_ac_Header=no"
5316fi
5317
5318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5319fi
5320ac_res=`eval echo '${'$as_ac_Header'}'`
5321 { echo "$as_me:$LINENO: result: $ac_res" >&5
5322echo "${ECHO_T}$ac_res" >&6; }
5323if test `eval echo '${'$as_ac_Header'}'` = yes; then
5324 cat >>confdefs.h <<_ACEOF
5325#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5326_ACEOF
5327
5328fi
5329
4956done 5330done
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340for ac_header in sys/inotify.h sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h
5341do
5342as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5343if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5344 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5345echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5346if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5348fi
5349ac_res=`eval echo '${'$as_ac_Header'}'`
5350 { echo "$as_me:$LINENO: result: $ac_res" >&5
5351echo "${ECHO_T}$ac_res" >&6; }
5352else
5353 # Is the header compilable?
5354{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5355echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5356cat >conftest.$ac_ext <<_ACEOF
5357/* confdefs.h. */
5358_ACEOF
5359cat confdefs.h >>conftest.$ac_ext
5360cat >>conftest.$ac_ext <<_ACEOF
5361/* end confdefs.h. */
5362$ac_includes_default
5363#include <$ac_header>
5364_ACEOF
5365rm -f conftest.$ac_objext
5366if { (ac_try="$ac_compile"
5367case "(($ac_try" in
5368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5369 *) ac_try_echo=$ac_try;;
5370esac
5371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5372 (eval "$ac_compile") 2>conftest.er1
5373 ac_status=$?
5374 grep -v '^ *+' conftest.er1 >conftest.err
5375 rm -f conftest.er1
5376 cat conftest.err >&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); } && {
5379 test -z "$ac_cxx_werror_flag" ||
5380 test ! -s conftest.err
5381 } && test -s conftest.$ac_objext; then
5382 ac_header_compiler=yes
5383else
5384 echo "$as_me: failed program was:" >&5
5385sed 's/^/| /' conftest.$ac_ext >&5
5386
5387 ac_header_compiler=no
5388fi
5389
5390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5391{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5392echo "${ECHO_T}$ac_header_compiler" >&6; }
5393
5394# Is the header present?
5395{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5396echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5397cat >conftest.$ac_ext <<_ACEOF
5398/* confdefs.h. */
5399_ACEOF
5400cat confdefs.h >>conftest.$ac_ext
5401cat >>conftest.$ac_ext <<_ACEOF
5402/* end confdefs.h. */
5403#include <$ac_header>
5404_ACEOF
5405if { (ac_try="$ac_cpp conftest.$ac_ext"
5406case "(($ac_try" in
5407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5408 *) ac_try_echo=$ac_try;;
5409esac
5410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5412 ac_status=$?
5413 grep -v '^ *+' conftest.er1 >conftest.err
5414 rm -f conftest.er1
5415 cat conftest.err >&5
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); } >/dev/null && {
5418 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5419 test ! -s conftest.err
5420 }; then
5421 ac_header_preproc=yes
5422else
5423 echo "$as_me: failed program was:" >&5
5424sed 's/^/| /' conftest.$ac_ext >&5
5425
5426 ac_header_preproc=no
5427fi
5428
5429rm -f conftest.err conftest.$ac_ext
5430{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5431echo "${ECHO_T}$ac_header_preproc" >&6; }
5432
5433# So? What about this header?
5434case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5435 yes:no: )
5436 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5437echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5439echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5440 ac_header_preproc=yes
5441 ;;
5442 no:yes:* )
5443 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5444echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5445 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5446echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5447 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5448echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5449 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5450echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5452echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5453 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5454echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5455
5456 ;;
5457esac
5458{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5459echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5460if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5461 echo $ECHO_N "(cached) $ECHO_C" >&6
5462else
5463 eval "$as_ac_Header=\$ac_header_preproc"
5464fi
5465ac_res=`eval echo '${'$as_ac_Header'}'`
5466 { echo "$as_me:$LINENO: result: $ac_res" >&5
5467echo "${ECHO_T}$ac_res" >&6; }
5468
5469fi
5470if test `eval echo '${'$as_ac_Header'}'` = yes; then
5471 cat >>confdefs.h <<_ACEOF
5472#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5473_ACEOF
5474
5475fi
5476
4957done 5477done
4958IFS=$as_save_IFS
4959 5478
4960 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4961 ;;
4962esac
4963fi
4964CP=$ac_cv_path_CP
4965if test -n "$CP"; then
4966 { echo "$as_me:$LINENO: result: $CP" >&5
4967echo "${ECHO_T}$CP" >&6; }
4968else
4969 { echo "$as_me:$LINENO: result: no" >&5
4970echo "${ECHO_T}no" >&6; }
4971fi
4972 5479
4973 5480
4974# Extract the first word of "ln", so it can be a program name with args. 5481
4975set dummy ln; ac_word=$2 5482
5483
5484
5485
5486for ac_func in inotify_init epoll_ctl kqueue port_create poll select
5487do
5488as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4976{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5489{ echo "$as_me:$LINENO: checking for $ac_func" >&5
4977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5490echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4978if test "${ac_cv_path_LN+set}" = set; then 5491if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4979 echo $ECHO_N "(cached) $ECHO_C" >&6 5492 echo $ECHO_N "(cached) $ECHO_C" >&6
4980else 5493else
4981 case $LN in 5494 cat >conftest.$ac_ext <<_ACEOF
4982 [\\/]* | ?:[\\/]*) 5495/* confdefs.h. */
4983 ac_cv_path_LN="$LN" # Let the user override the test with a path. 5496_ACEOF
5497cat confdefs.h >>conftest.$ac_ext
5498cat >>conftest.$ac_ext <<_ACEOF
5499/* end confdefs.h. */
5500/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5502#define $ac_func innocuous_$ac_func
5503
5504/* System header to define __stub macros and hopefully few prototypes,
5505 which can conflict with char $ac_func (); below.
5506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5507 <limits.h> exists even on freestanding compilers. */
5508
5509#ifdef __STDC__
5510# include <limits.h>
5511#else
5512# include <assert.h>
5513#endif
5514
5515#undef $ac_func
5516
5517/* Override any GCC internal prototype to avoid an error.
5518 Use char because int might match the return type of a GCC
5519 builtin and then its argument prototype would still apply. */
5520#ifdef __cplusplus
5521extern "C"
5522#endif
5523char $ac_func ();
5524/* The GNU C library defines this for functions which it implements
5525 to always fail with ENOSYS. Some functions are actually named
5526 something starting with __ and the normal name is an alias. */
5527#if defined __stub_$ac_func || defined __stub___$ac_func
5528choke me
5529#endif
5530
5531int
5532main ()
5533{
5534return $ac_func ();
4984 ;; 5535 ;
4985 *) 5536 return 0;
4986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5537}
4987for as_dir in $PATH 5538_ACEOF
5539rm -f conftest.$ac_objext conftest$ac_exeext
5540if { (ac_try="$ac_link"
5541case "(($ac_try" in
5542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5543 *) ac_try_echo=$ac_try;;
5544esac
5545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5546 (eval "$ac_link") 2>conftest.er1
5547 ac_status=$?
5548 grep -v '^ *+' conftest.er1 >conftest.err
5549 rm -f conftest.er1
5550 cat conftest.err >&5
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); } && {
5553 test -z "$ac_cxx_werror_flag" ||
5554 test ! -s conftest.err
5555 } && test -s conftest$ac_exeext &&
5556 $as_test_x conftest$ac_exeext; then
5557 eval "$as_ac_var=yes"
5558else
5559 echo "$as_me: failed program was:" >&5
5560sed 's/^/| /' conftest.$ac_ext >&5
5561
5562 eval "$as_ac_var=no"
5563fi
5564
5565rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5566 conftest$ac_exeext conftest.$ac_ext
5567fi
5568ac_res=`eval echo '${'$as_ac_var'}'`
5569 { echo "$as_me:$LINENO: result: $ac_res" >&5
5570echo "${ECHO_T}$ac_res" >&6; }
5571if test `eval echo '${'$as_ac_var'}'` = yes; then
5572 cat >>confdefs.h <<_ACEOF
5573#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5574_ACEOF
5575
5576fi
5577done
5578
5579
5580{ echo "$as_me:$LINENO: checking for clock_gettime" >&5
5581echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6; }
5582if test "${ac_cv_func_clock_gettime+set}" = set; then
5583 echo $ECHO_N "(cached) $ECHO_C" >&6
5584else
5585 cat >conftest.$ac_ext <<_ACEOF
5586/* confdefs.h. */
5587_ACEOF
5588cat confdefs.h >>conftest.$ac_ext
5589cat >>conftest.$ac_ext <<_ACEOF
5590/* end confdefs.h. */
5591/* Define clock_gettime to an innocuous variant, in case <limits.h> declares clock_gettime.
5592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5593#define clock_gettime innocuous_clock_gettime
5594
5595/* System header to define __stub macros and hopefully few prototypes,
5596 which can conflict with char clock_gettime (); below.
5597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5598 <limits.h> exists even on freestanding compilers. */
5599
5600#ifdef __STDC__
5601# include <limits.h>
5602#else
5603# include <assert.h>
5604#endif
5605
5606#undef clock_gettime
5607
5608/* Override any GCC internal prototype to avoid an error.
5609 Use char because int might match the return type of a GCC
5610 builtin and then its argument prototype would still apply. */
5611#ifdef __cplusplus
5612extern "C"
5613#endif
5614char clock_gettime ();
5615/* The GNU C library defines this for functions which it implements
5616 to always fail with ENOSYS. Some functions are actually named
5617 something starting with __ and the normal name is an alias. */
5618#if defined __stub_clock_gettime || defined __stub___clock_gettime
5619choke me
5620#endif
5621
5622int
5623main ()
5624{
5625return clock_gettime ();
5626 ;
5627 return 0;
5628}
5629_ACEOF
5630rm -f conftest.$ac_objext conftest$ac_exeext
5631if { (ac_try="$ac_link"
5632case "(($ac_try" in
5633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5634 *) ac_try_echo=$ac_try;;
5635esac
5636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5637 (eval "$ac_link") 2>conftest.er1
5638 ac_status=$?
5639 grep -v '^ *+' conftest.er1 >conftest.err
5640 rm -f conftest.er1
5641 cat conftest.err >&5
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); } && {
5644 test -z "$ac_cxx_werror_flag" ||
5645 test ! -s conftest.err
5646 } && test -s conftest$ac_exeext &&
5647 $as_test_x conftest$ac_exeext; then
5648 ac_cv_func_clock_gettime=yes
5649else
5650 echo "$as_me: failed program was:" >&5
5651sed 's/^/| /' conftest.$ac_ext >&5
5652
5653 ac_cv_func_clock_gettime=no
5654fi
5655
5656rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5657 conftest$ac_exeext conftest.$ac_ext
5658fi
5659{ echo "$as_me:$LINENO: result: $ac_cv_func_clock_gettime" >&5
5660echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; }
5661if test $ac_cv_func_clock_gettime = yes; then
5662 :
5663else
5664
5665 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
5666
5667{ echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
5668echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
5669if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
5670 echo $ECHO_N "(cached) $ECHO_C" >&6
5671else
5672 ac_check_lib_save_LIBS=$LIBS
5673LIBS="-lrt $LIBS"
5674cat >conftest.$ac_ext <<_ACEOF
5675/* confdefs.h. */
5676_ACEOF
5677cat confdefs.h >>conftest.$ac_ext
5678cat >>conftest.$ac_ext <<_ACEOF
5679/* end confdefs.h. */
5680
5681/* Override any GCC internal prototype to avoid an error.
5682 Use char because int might match the return type of a GCC
5683 builtin and then its argument prototype would still apply. */
5684#ifdef __cplusplus
5685extern "C"
5686#endif
5687char clock_gettime ();
5688int
5689main ()
5690{
5691return clock_gettime ();
5692 ;
5693 return 0;
5694}
5695_ACEOF
5696rm -f conftest.$ac_objext conftest$ac_exeext
5697if { (ac_try="$ac_link"
5698case "(($ac_try" in
5699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700 *) ac_try_echo=$ac_try;;
5701esac
5702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703 (eval "$ac_link") 2>conftest.er1
5704 ac_status=$?
5705 grep -v '^ *+' conftest.er1 >conftest.err
5706 rm -f conftest.er1
5707 cat conftest.err >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } && {
5710 test -z "$ac_cxx_werror_flag" ||
5711 test ! -s conftest.err
5712 } && test -s conftest$ac_exeext &&
5713 $as_test_x conftest$ac_exeext; then
5714 ac_cv_lib_rt_clock_gettime=yes
5715else
5716 echo "$as_me: failed program was:" >&5
5717sed 's/^/| /' conftest.$ac_ext >&5
5718
5719 ac_cv_lib_rt_clock_gettime=no
5720fi
5721
5722rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5723 conftest$ac_exeext conftest.$ac_ext
5724LIBS=$ac_check_lib_save_LIBS
5725fi
5726{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
5727echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
5728if test $ac_cv_lib_rt_clock_gettime = yes; then
5729 cat >>confdefs.h <<_ACEOF
5730#define HAVE_LIBRT 1
5731_ACEOF
5732
5733 LIBS="-lrt $LIBS"
5734
5735fi
5736
5737 unset ac_cv_func_clock_gettime
5738
5739for ac_func in clock_gettime
4988do 5740do
4989 IFS=$as_save_IFS 5741as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4990 test -z "$as_dir" && as_dir=. 5742{ echo "$as_me:$LINENO: checking for $ac_func" >&5
4991 for ac_exec_ext in '' $ac_executable_extensions; do 5743echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5744if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4993 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 5745 echo $ECHO_N "(cached) $ECHO_C" >&6
4994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5746else
4995 break 2 5747 cat >conftest.$ac_ext <<_ACEOF
4996 fi 5748/* confdefs.h. */
5749_ACEOF
5750cat confdefs.h >>conftest.$ac_ext
5751cat >>conftest.$ac_ext <<_ACEOF
5752/* end confdefs.h. */
5753/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5755#define $ac_func innocuous_$ac_func
5756
5757/* System header to define __stub macros and hopefully few prototypes,
5758 which can conflict with char $ac_func (); below.
5759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5760 <limits.h> exists even on freestanding compilers. */
5761
5762#ifdef __STDC__
5763# include <limits.h>
5764#else
5765# include <assert.h>
5766#endif
5767
5768#undef $ac_func
5769
5770/* Override any GCC internal prototype to avoid an error.
5771 Use char because int might match the return type of a GCC
5772 builtin and then its argument prototype would still apply. */
5773#ifdef __cplusplus
5774extern "C"
5775#endif
5776char $ac_func ();
5777/* The GNU C library defines this for functions which it implements
5778 to always fail with ENOSYS. Some functions are actually named
5779 something starting with __ and the normal name is an alias. */
5780#if defined __stub_$ac_func || defined __stub___$ac_func
5781choke me
5782#endif
5783
5784int
5785main ()
5786{
5787return $ac_func ();
5788 ;
5789 return 0;
5790}
5791_ACEOF
5792rm -f conftest.$ac_objext conftest$ac_exeext
5793if { (ac_try="$ac_link"
5794case "(($ac_try" in
5795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5796 *) ac_try_echo=$ac_try;;
5797esac
5798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5799 (eval "$ac_link") 2>conftest.er1
5800 ac_status=$?
5801 grep -v '^ *+' conftest.er1 >conftest.err
5802 rm -f conftest.er1
5803 cat conftest.err >&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); } && {
5806 test -z "$ac_cxx_werror_flag" ||
5807 test ! -s conftest.err
5808 } && test -s conftest$ac_exeext &&
5809 $as_test_x conftest$ac_exeext; then
5810 eval "$as_ac_var=yes"
5811else
5812 echo "$as_me: failed program was:" >&5
5813sed 's/^/| /' conftest.$ac_ext >&5
5814
5815 eval "$as_ac_var=no"
5816fi
5817
5818rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5819 conftest$ac_exeext conftest.$ac_ext
5820fi
5821ac_res=`eval echo '${'$as_ac_var'}'`
5822 { echo "$as_me:$LINENO: result: $ac_res" >&5
5823echo "${ECHO_T}$ac_res" >&6; }
5824if test `eval echo '${'$as_ac_var'}'` = yes; then
5825 cat >>confdefs.h <<_ACEOF
5826#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5827_ACEOF
5828
5829fi
4997done 5830done
5831
5832 fi
5833
5834fi
5835
5836
5837{ echo "$as_me:$LINENO: checking for nanosleep" >&5
5838echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; }
5839if test "${ac_cv_func_nanosleep+set}" = set; then
5840 echo $ECHO_N "(cached) $ECHO_C" >&6
5841else
5842 cat >conftest.$ac_ext <<_ACEOF
5843/* confdefs.h. */
5844_ACEOF
5845cat confdefs.h >>conftest.$ac_ext
5846cat >>conftest.$ac_ext <<_ACEOF
5847/* end confdefs.h. */
5848/* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep.
5849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5850#define nanosleep innocuous_nanosleep
5851
5852/* System header to define __stub macros and hopefully few prototypes,
5853 which can conflict with char nanosleep (); below.
5854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5855 <limits.h> exists even on freestanding compilers. */
5856
5857#ifdef __STDC__
5858# include <limits.h>
5859#else
5860# include <assert.h>
5861#endif
5862
5863#undef nanosleep
5864
5865/* Override any GCC internal prototype to avoid an error.
5866 Use char because int might match the return type of a GCC
5867 builtin and then its argument prototype would still apply. */
5868#ifdef __cplusplus
5869extern "C"
5870#endif
5871char nanosleep ();
5872/* The GNU C library defines this for functions which it implements
5873 to always fail with ENOSYS. Some functions are actually named
5874 something starting with __ and the normal name is an alias. */
5875#if defined __stub_nanosleep || defined __stub___nanosleep
5876choke me
5877#endif
5878
5879int
5880main ()
5881{
5882return nanosleep ();
5883 ;
5884 return 0;
5885}
5886_ACEOF
5887rm -f conftest.$ac_objext conftest$ac_exeext
5888if { (ac_try="$ac_link"
5889case "(($ac_try" in
5890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5891 *) ac_try_echo=$ac_try;;
5892esac
5893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5894 (eval "$ac_link") 2>conftest.er1
5895 ac_status=$?
5896 grep -v '^ *+' conftest.er1 >conftest.err
5897 rm -f conftest.er1
5898 cat conftest.err >&5
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); } && {
5901 test -z "$ac_cxx_werror_flag" ||
5902 test ! -s conftest.err
5903 } && test -s conftest$ac_exeext &&
5904 $as_test_x conftest$ac_exeext; then
5905 ac_cv_func_nanosleep=yes
5906else
5907 echo "$as_me: failed program was:" >&5
5908sed 's/^/| /' conftest.$ac_ext >&5
5909
5910 ac_cv_func_nanosleep=no
5911fi
5912
5913rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5914 conftest$ac_exeext conftest.$ac_ext
5915fi
5916{ echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5
5917echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; }
5918if test $ac_cv_func_nanosleep = yes; then
5919 :
5920else
5921
5922 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
5923
5924{ echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
5925echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; }
5926if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
5928else
5929 ac_check_lib_save_LIBS=$LIBS
5930LIBS="-lrt $LIBS"
5931cat >conftest.$ac_ext <<_ACEOF
5932/* confdefs.h. */
5933_ACEOF
5934cat confdefs.h >>conftest.$ac_ext
5935cat >>conftest.$ac_ext <<_ACEOF
5936/* end confdefs.h. */
5937
5938/* Override any GCC internal prototype to avoid an error.
5939 Use char because int might match the return type of a GCC
5940 builtin and then its argument prototype would still apply. */
5941#ifdef __cplusplus
5942extern "C"
5943#endif
5944char nanosleep ();
5945int
5946main ()
5947{
5948return nanosleep ();
5949 ;
5950 return 0;
5951}
5952_ACEOF
5953rm -f conftest.$ac_objext conftest$ac_exeext
5954if { (ac_try="$ac_link"
5955case "(($ac_try" in
5956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5957 *) ac_try_echo=$ac_try;;
5958esac
5959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5960 (eval "$ac_link") 2>conftest.er1
5961 ac_status=$?
5962 grep -v '^ *+' conftest.er1 >conftest.err
5963 rm -f conftest.er1
5964 cat conftest.err >&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); } && {
5967 test -z "$ac_cxx_werror_flag" ||
5968 test ! -s conftest.err
5969 } && test -s conftest$ac_exeext &&
5970 $as_test_x conftest$ac_exeext; then
5971 ac_cv_lib_rt_nanosleep=yes
5972else
5973 echo "$as_me: failed program was:" >&5
5974sed 's/^/| /' conftest.$ac_ext >&5
5975
5976 ac_cv_lib_rt_nanosleep=no
5977fi
5978
5979rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5980 conftest$ac_exeext conftest.$ac_ext
5981LIBS=$ac_check_lib_save_LIBS
5982fi
5983{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
5984echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; }
5985if test $ac_cv_lib_rt_nanosleep = yes; then
5986 cat >>confdefs.h <<_ACEOF
5987#define HAVE_LIBRT 1
5988_ACEOF
5989
5990 LIBS="-lrt $LIBS"
5991
5992fi
5993
5994 unset ac_cv_func_nanosleep
5995
5996for ac_func in nanosleep
5997do
5998as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5999{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6000echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6001if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6002 echo $ECHO_N "(cached) $ECHO_C" >&6
6003else
6004 cat >conftest.$ac_ext <<_ACEOF
6005/* confdefs.h. */
6006_ACEOF
6007cat confdefs.h >>conftest.$ac_ext
6008cat >>conftest.$ac_ext <<_ACEOF
6009/* end confdefs.h. */
6010/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6012#define $ac_func innocuous_$ac_func
6013
6014/* System header to define __stub macros and hopefully few prototypes,
6015 which can conflict with char $ac_func (); below.
6016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6017 <limits.h> exists even on freestanding compilers. */
6018
6019#ifdef __STDC__
6020# include <limits.h>
6021#else
6022# include <assert.h>
6023#endif
6024
6025#undef $ac_func
6026
6027/* Override any GCC internal prototype to avoid an error.
6028 Use char because int might match the return type of a GCC
6029 builtin and then its argument prototype would still apply. */
6030#ifdef __cplusplus
6031extern "C"
6032#endif
6033char $ac_func ();
6034/* The GNU C library defines this for functions which it implements
6035 to always fail with ENOSYS. Some functions are actually named
6036 something starting with __ and the normal name is an alias. */
6037#if defined __stub_$ac_func || defined __stub___$ac_func
6038choke me
6039#endif
6040
6041int
6042main ()
6043{
6044return $ac_func ();
6045 ;
6046 return 0;
6047}
6048_ACEOF
6049rm -f conftest.$ac_objext conftest$ac_exeext
6050if { (ac_try="$ac_link"
6051case "(($ac_try" in
6052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6053 *) ac_try_echo=$ac_try;;
6054esac
6055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6056 (eval "$ac_link") 2>conftest.er1
6057 ac_status=$?
6058 grep -v '^ *+' conftest.er1 >conftest.err
6059 rm -f conftest.er1
6060 cat conftest.err >&5
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); } && {
6063 test -z "$ac_cxx_werror_flag" ||
6064 test ! -s conftest.err
6065 } && test -s conftest$ac_exeext &&
6066 $as_test_x conftest$ac_exeext; then
6067 eval "$as_ac_var=yes"
6068else
6069 echo "$as_me: failed program was:" >&5
6070sed 's/^/| /' conftest.$ac_ext >&5
6071
6072 eval "$as_ac_var=no"
6073fi
6074
6075rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6076 conftest$ac_exeext conftest.$ac_ext
6077fi
6078ac_res=`eval echo '${'$as_ac_var'}'`
6079 { echo "$as_me:$LINENO: result: $ac_res" >&5
6080echo "${ECHO_T}$ac_res" >&6; }
6081if test `eval echo '${'$as_ac_var'}'` = yes; then
6082 cat >>confdefs.h <<_ACEOF
6083#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6084_ACEOF
6085
6086fi
4998done 6087done
4999IFS=$as_save_IFS
5000 6088
5001 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" 6089 fi
5002 ;;
5003esac
5004fi
5005LN=$ac_cv_path_LN
5006if test -n "$LN"; then
5007 { echo "$as_me:$LINENO: result: $LN" >&5
5008echo "${ECHO_T}$LN" >&6; }
5009else
5010 { echo "$as_me:$LINENO: result: no" >&5
5011echo "${ECHO_T}no" >&6; }
5012fi
5013 6090
6091fi
5014 6092
5015# Extract the first word of "sed", so it can be a program name with args. 6093
5016set dummy sed; ac_word=$2 6094
5017{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6095{ echo "$as_me:$LINENO: checking for ceil in -lm" >&5
5018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6096echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; }
5019if test "${ac_cv_path_SED+set}" = set; then 6097if test "${ac_cv_lib_m_ceil+set}" = set; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6 6098 echo $ECHO_N "(cached) $ECHO_C" >&6
5021else 6099else
5022 case $SED in 6100 ac_check_lib_save_LIBS=$LIBS
5023 [\\/]* | ?:[\\/]*) 6101LIBS="-lm $LIBS"
5024 ac_cv_path_SED="$SED" # Let the user override the test with a path. 6102cat >conftest.$ac_ext <<_ACEOF
6103/* confdefs.h. */
6104_ACEOF
6105cat confdefs.h >>conftest.$ac_ext
6106cat >>conftest.$ac_ext <<_ACEOF
6107/* end confdefs.h. */
6108
6109/* Override any GCC internal prototype to avoid an error.
6110 Use char because int might match the return type of a GCC
6111 builtin and then its argument prototype would still apply. */
6112#ifdef __cplusplus
6113extern "C"
6114#endif
6115char ceil ();
6116int
6117main ()
6118{
6119return ceil ();
5025 ;; 6120 ;
5026 *) 6121 return 0;
5027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6122}
5028for as_dir in $PATH 6123_ACEOF
5029do 6124rm -f conftest.$ac_objext conftest$ac_exeext
5030 IFS=$as_save_IFS 6125if { (ac_try="$ac_link"
5031 test -z "$as_dir" && as_dir=. 6126case "(($ac_try" in
5032 for ac_exec_ext in '' $ac_executable_extensions; do 6127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6128 *) ac_try_echo=$ac_try;;
5034 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5036 break 2
5037 fi
5038done
5039done
5040IFS=$as_save_IFS
5041
5042 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5043 ;;
5044esac 6129esac
6130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6131 (eval "$ac_link") 2>conftest.er1
6132 ac_status=$?
6133 grep -v '^ *+' conftest.er1 >conftest.err
6134 rm -f conftest.er1
6135 cat conftest.err >&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); } && {
6138 test -z "$ac_cxx_werror_flag" ||
6139 test ! -s conftest.err
6140 } && test -s conftest$ac_exeext &&
6141 $as_test_x conftest$ac_exeext; then
6142 ac_cv_lib_m_ceil=yes
6143else
6144 echo "$as_me: failed program was:" >&5
6145sed 's/^/| /' conftest.$ac_ext >&5
6146
6147 ac_cv_lib_m_ceil=no
5045fi 6148fi
5046SED=$ac_cv_path_SED 6149
5047if test -n "$SED"; then 6150rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6151 conftest$ac_exeext conftest.$ac_ext
6152LIBS=$ac_check_lib_save_LIBS
6153fi
5048 { echo "$as_me:$LINENO: result: $SED" >&5 6154{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5
5049echo "${ECHO_T}$SED" >&6; } 6155echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6; }
5050else 6156if test $ac_cv_lib_m_ceil = yes; then
5051 { echo "$as_me:$LINENO: result: no" >&5 6157 cat >>confdefs.h <<_ACEOF
5052echo "${ECHO_T}no" >&6; } 6158#define HAVE_LIBM 1
5053fi 6159_ACEOF
5054 6160
6161 LIBS="-lm $LIBS"
5055 6162
5056# Extract the first word of "echo", so it can be a program name with args.
5057set dummy echo; ac_word=$2
5058{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5060if test "${ac_cv_path_ECHO+set}" = set; then
5061 echo $ECHO_N "(cached) $ECHO_C" >&6
5062else
5063 case $ECHO in
5064 [\\/]* | ?:[\\/]*)
5065 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5066 ;;
5067 *)
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069for as_dir in $PATH
5070do
5071 IFS=$as_save_IFS
5072 test -z "$as_dir" && as_dir=.
5073 for ac_exec_ext in '' $ac_executable_extensions; do
5074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5075 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5077 break 2
5078 fi
5079done
5080done
5081IFS=$as_save_IFS
5082
5083 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5084 ;;
5085esac
5086fi 6163fi
5087ECHO=$ac_cv_path_ECHO
5088if test -n "$ECHO"; then
5089 { echo "$as_me:$LINENO: result: $ECHO" >&5
5090echo "${ECHO_T}$ECHO" >&6; }
5091else
5092 { echo "$as_me:$LINENO: result: no" >&5
5093echo "${ECHO_T}no" >&6; }
5094fi
5095 6164
5096 6165
5097# Extract the first word of "cmp", so it can be a program name with args.
5098set dummy cmp; ac_word=$2
5099{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5101if test "${ac_cv_path_CMP+set}" = set; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5103else
5104 case $CMP in
5105 [\\/]* | ?:[\\/]*)
5106 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5107 ;;
5108 *)
5109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110for as_dir in $PATH
5111do
5112 IFS=$as_save_IFS
5113 test -z "$as_dir" && as_dir=.
5114 for ac_exec_ext in '' $ac_executable_extensions; do
5115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5116 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5118 break 2
5119 fi
5120done
5121done
5122IFS=$as_save_IFS
5123 6166
5124 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" 6167
5125 ;; 6168
5126esac
5127fi
5128CMP=$ac_cv_path_CMP
5129if test -n "$CMP"; then
5130 { echo "$as_me:$LINENO: result: $CMP" >&5
5131echo "${ECHO_T}$CMP" >&6; }
5132else
5133 { echo "$as_me:$LINENO: result: no" >&5
5134echo "${ECHO_T}no" >&6; }
5135fi
5136 6169
5137 6170
5138# Extract the first word of "tic", so it can be a program name with args. 6171# Extract the first word of "tic", so it can be a program name with args.
5139set dummy tic; ac_word=$2 6172set dummy tic; ac_word=$2
5140{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6173{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5160 fi 6193 fi
5161done 6194done
5162done 6195done
5163IFS=$as_save_IFS 6196IFS=$as_save_IFS
5164 6197
6198 test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":"
5165 ;; 6199 ;;
5166esac 6200esac
5167fi 6201fi
5168TIC=$ac_cv_path_TIC 6202TIC=$ac_cv_path_TIC
5169if test -n "$TIC"; then 6203if test -n "$TIC"; then
5172else 6206else
5173 { echo "$as_me:$LINENO: result: no" >&5 6207 { echo "$as_me:$LINENO: result: no" >&5
5174echo "${ECHO_T}no" >&6; } 6208echo "${ECHO_T}no" >&6; }
5175fi 6209fi
5176 6210
5177
5178
5179
5180
5181ac_ext=cpp
5182ac_cpp='$CXXCPP $CPPFLAGS'
5183ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5184ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5185ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5186{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5187echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5188if test -z "$CXXCPP"; then
5189 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5190 echo $ECHO_N "(cached) $ECHO_C" >&6
5191else
5192 # Double quotes because CXXCPP needs to be expanded
5193 for CXXCPP in "$CXX -E" "/lib/cpp"
5194 do
5195 ac_preproc_ok=false
5196for ac_cxx_preproc_warn_flag in '' yes
5197do
5198 # Use a header file that comes with gcc, so configuring glibc
5199 # with a fresh cross-compiler works.
5200 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5201 # <limits.h> exists even on freestanding compilers.
5202 # On the NeXT, cc -E runs the code through the compiler's parser,
5203 # not just through cpp. "Syntax error" is here to catch this case.
5204 cat >conftest.$ac_ext <<_ACEOF
5205/* confdefs.h. */
5206_ACEOF
5207cat confdefs.h >>conftest.$ac_ext
5208cat >>conftest.$ac_ext <<_ACEOF
5209/* end confdefs.h. */
5210#ifdef __STDC__
5211# include <limits.h>
5212#else
5213# include <assert.h>
5214#endif
5215 Syntax error
5216_ACEOF
5217if { (ac_try="$ac_cpp conftest.$ac_ext"
5218case "(($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_cpp conftest.$ac_ext") 2>conftest.er1
5224 ac_status=$?
5225 grep -v '^ *+' conftest.er1 >conftest.err
5226 rm -f conftest.er1
5227 cat conftest.err >&5
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); } >/dev/null && {
5230 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5231 test ! -s conftest.err
5232 }; then
5233 :
5234else
5235 echo "$as_me: failed program was:" >&5
5236sed 's/^/| /' conftest.$ac_ext >&5
5237
5238 # Broken: fails on valid input.
5239continue
5240fi
5241
5242rm -f conftest.err conftest.$ac_ext
5243
5244 # OK, works on sane cases. Now check whether nonexistent headers
5245 # can be detected and how.
5246 cat >conftest.$ac_ext <<_ACEOF
5247/* confdefs.h. */
5248_ACEOF
5249cat confdefs.h >>conftest.$ac_ext
5250cat >>conftest.$ac_ext <<_ACEOF
5251/* end confdefs.h. */
5252#include <ac_nonexistent.h>
5253_ACEOF
5254if { (ac_try="$ac_cpp conftest.$ac_ext"
5255case "(($ac_try" in
5256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5257 *) ac_try_echo=$ac_try;;
5258esac
5259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5261 ac_status=$?
5262 grep -v '^ *+' conftest.er1 >conftest.err
5263 rm -f conftest.er1
5264 cat conftest.err >&5
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); } >/dev/null && {
5267 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5268 test ! -s conftest.err
5269 }; then
5270 # Broken: success on invalid input.
5271continue
5272else
5273 echo "$as_me: failed program was:" >&5
5274sed 's/^/| /' conftest.$ac_ext >&5
5275
5276 # Passes both tests.
5277ac_preproc_ok=:
5278break
5279fi
5280
5281rm -f conftest.err conftest.$ac_ext
5282
5283done
5284# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5285rm -f conftest.err conftest.$ac_ext
5286if $ac_preproc_ok; then
5287 break
5288fi
5289
5290 done
5291 ac_cv_prog_CXXCPP=$CXXCPP
5292
5293fi
5294 CXXCPP=$ac_cv_prog_CXXCPP
5295else
5296 ac_cv_prog_CXXCPP=$CXXCPP
5297fi
5298{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5299echo "${ECHO_T}$CXXCPP" >&6; }
5300ac_preproc_ok=false
5301for ac_cxx_preproc_warn_flag in '' yes
5302do
5303 # Use a header file that comes with gcc, so configuring glibc
5304 # with a fresh cross-compiler works.
5305 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5306 # <limits.h> exists even on freestanding compilers.
5307 # On the NeXT, cc -E runs the code through the compiler's parser,
5308 # not just through cpp. "Syntax error" is here to catch this case.
5309 cat >conftest.$ac_ext <<_ACEOF
5310/* confdefs.h. */
5311_ACEOF
5312cat confdefs.h >>conftest.$ac_ext
5313cat >>conftest.$ac_ext <<_ACEOF
5314/* end confdefs.h. */
5315#ifdef __STDC__
5316# include <limits.h>
5317#else
5318# include <assert.h>
5319#endif
5320 Syntax error
5321_ACEOF
5322if { (ac_try="$ac_cpp conftest.$ac_ext"
5323case "(($ac_try" in
5324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5325 *) ac_try_echo=$ac_try;;
5326esac
5327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5328 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5329 ac_status=$?
5330 grep -v '^ *+' conftest.er1 >conftest.err
5331 rm -f conftest.er1
5332 cat conftest.err >&5
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); } >/dev/null && {
5335 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5336 test ! -s conftest.err
5337 }; then
5338 :
5339else
5340 echo "$as_me: failed program was:" >&5
5341sed 's/^/| /' conftest.$ac_ext >&5
5342
5343 # Broken: fails on valid input.
5344continue
5345fi
5346
5347rm -f conftest.err conftest.$ac_ext
5348
5349 # OK, works on sane cases. Now check whether nonexistent headers
5350 # can be detected and how.
5351 cat >conftest.$ac_ext <<_ACEOF
5352/* confdefs.h. */
5353_ACEOF
5354cat confdefs.h >>conftest.$ac_ext
5355cat >>conftest.$ac_ext <<_ACEOF
5356/* end confdefs.h. */
5357#include <ac_nonexistent.h>
5358_ACEOF
5359if { (ac_try="$ac_cpp conftest.$ac_ext"
5360case "(($ac_try" in
5361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5362 *) ac_try_echo=$ac_try;;
5363esac
5364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5366 ac_status=$?
5367 grep -v '^ *+' conftest.er1 >conftest.err
5368 rm -f conftest.er1
5369 cat conftest.err >&5
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); } >/dev/null && {
5372 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5373 test ! -s conftest.err
5374 }; then
5375 # Broken: success on invalid input.
5376continue
5377else
5378 echo "$as_me: failed program was:" >&5
5379sed 's/^/| /' conftest.$ac_ext >&5
5380
5381 # Passes both tests.
5382ac_preproc_ok=:
5383break
5384fi
5385
5386rm -f conftest.err conftest.$ac_ext
5387
5388done
5389# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5390rm -f conftest.err conftest.$ac_ext
5391if $ac_preproc_ok; then
5392 :
5393else
5394 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5395See \`config.log' for more details." >&5
5396echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5397See \`config.log' for more details." >&2;}
5398 { (exit 1); exit 1; }; }
5399fi
5400
5401ac_ext=cpp
5402ac_cpp='$CXXCPP $CPPFLAGS'
5403ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5404ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5405ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5406 6211
5407 6212
5408{ echo "$as_me:$LINENO: checking for X" >&5 6213{ echo "$as_me:$LINENO: checking for X" >&5
5409echo $ECHO_N "checking for X... $ECHO_C" >&6; } 6214echo $ECHO_N "checking for X... $ECHO_C" >&6; }
5410 6215
6718 LDFLAGS=$ac_save_LDFLAGS 7523 LDFLAGS=$ac_save_LDFLAGS
6719 7524
6720fi 7525fi
6721 7526
6722 7527
6723
6724LIBAFTERIMAGE_CFLAGS= 7528AFTERIMAGE_CFLAGS=
6725AFTERIMAGE_LIBS= 7529AFTERIMAGE_LIBS=
6726have_afterimage= 7530AFTERIMAGE_VERSION=
6727 7531
6728if test x$support_afterimage = xyes; then 7532if test x$support_afterimage = xyes; then
6729 support_afterimage=no 7533 support_afterimage=no
6730 7534
6731 if test "x$afterimage_config" = "x" ; then 7535 if test "x$afterimage_config" = "x" ; then
6732 # Extract the first word of "afterimage-config", so it can be a program name with args. 7536 # Extract the first word of "afterimage-config", so it can be a program name with args.
6733set dummy afterimage-config; ac_word=$2 7537set dummy afterimage-config; ac_word=$2
6734{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7538{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6736if test "${ac_cv_path_afterimage_config+set}" = set; then 7540if test "${ac_cv_path_afterimage_config+set}" = set; then
6768 { echo "$as_me:$LINENO: result: no" >&5 7572 { echo "$as_me:$LINENO: result: no" >&5
6769echo "${ECHO_T}no" >&6; } 7573echo "${ECHO_T}no" >&6; }
6770fi 7574fi
6771 7575
6772 7576
6773 else
6774 afterimage_config=$afterimage_config/afterimage-config
6775 fi 7577 fi
6776 7578 if test "x$afterimage_config" != "xno" ; then
6777 { echo "$as_me:$LINENO: checking for libAfterImage" >&5 7579 { echo "$as_me:$LINENO: checking for libAfterImage version >= 1.15" >&5
6778echo $ECHO_N "checking for libAfterImage... $ECHO_C" >&6; } 7580echo $ECHO_N "checking for libAfterImage version >= 1.15... $ECHO_C" >&6; }
6779 if $afterimage_config --version >/dev/null 2>&1 ; then 7581 xAFTERIMAGE_VERSION=`$afterimage_config --version`
7582 if test -n "$xAFTERIMAGE_VERSION" ; then
6780 LIBAFTERIMAGE_CFLAGS=`$afterimage_config --cflags` 7583 xAFTERIMAGE_CFLAGS=`$afterimage_config --cflags`
6781 AFTERIMAGE_LIBS=`$afterimage_config --libs` 7584 xAFTERIMAGE_LIBS=`$afterimage_config --libs`
6782 if test "x$AFTERIMAGE_LIBS" != "x"; then 7585 if test "x$xAFTERIMAGE_LIBS" != "x"; then
7586 libai_ver_major=`echo $xAFTERIMAGE_VERSION | cut -f 1 -d .`
7587 libai_ver_minor=`echo $xAFTERIMAGE_VERSION | cut -f 2 -d .`
7588 if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then
6783 support_afterimage=yes 7589 support_afterimage=yes
6784 fi 7590 AFTERIMAGE_CFLAGS="$xAFTERIMAGE_CFLAGS"
6785 fi 7591 AFTERIMAGE_LIBS="$xAFTERIMAGE_LIBS"
6786 7592 AFTERIMAGE_VERSION="$xAFTERIMAGE_VERSION"
6787 if test "x$support_afterimage" = "xyes"; then
6788 { echo "$as_me:$LINENO: result: $AFTERIMAGE_LIBS" >&5
6789echo "${ECHO_T}$AFTERIMAGE_LIBS" >&6; }
6790 else
6791 { echo "$as_me:$LINENO: result: no" >&5
6792echo "${ECHO_T}no" >&6; }
6793 fi
6794fi
6795
6796if test x$support_afterimage != xyes -a x$support_xpm = xyes ; then
6797
6798
6799
6800# Initialize some more variables set by options.
6801# The variables have the same names as the options, with
6802# dashes changed to underlines.
6803
6804# If we find XPM, set shell vars xpm_includes and xpm_libraries to the
6805# paths, otherwise set no_xpm=yes.
6806# Uses ac_ vars as temps to allow command line to override cache and checks.
6807{ echo "$as_me:$LINENO: checking for libXpm" >&5
6808echo $ECHO_N "checking for libXpm... $ECHO_C" >&6; }
6809
6810
6811# Check whether --with-xpm_includes was given.
6812if test "${with_xpm_includes+set}" = set; then
6813 withval=$with_xpm_includes; xpm_includes="$withval"
6814else
6815 xpm_includes=NO
6816fi
6817
6818
6819# Check whether --with-xpm_library was given.
6820if test "${with_xpm_library+set}" = set; then
6821 withval=$with_xpm_library; xpm_libraries="$withval"
6822else
6823 xpm_libraries=NO
6824fi
6825
6826
6827# --without-xpm overrides everything else, but does not touch the cache.
6828
6829# Check whether --with-xpm was given.
6830if test "${with_xpm+set}" = set; then
6831 withval=$with_xpm;
6832fi
6833
6834if test "$with_xpm" = no; then
6835 have_xpm=disabled
6836else
6837 if test "${ac_cv_have_xpm+set}" = set; then
6838 echo $ECHO_N "(cached) $ECHO_C" >&6
6839else
6840
6841 vt_xpm_include_X11=no
6842 if test -n "$xpm_includes"; then
6843 vt_xpm_includes=$xpm_includes
6844 else
6845 vt_xpm_includes=NO
6846 fi
6847 if test -n "$xpm_libraries"; then
6848 vt_xpm_libraries=$xpm_libraries
6849 else
6850 vt_xpm_libraries=NO
6851 fi
6852
6853 if test "$vt_xpm_includes" = NO; then
6854 # Guess where to find xpm.h
6855
6856ac_save_CPPFLAGS="$CPPFLAGS"
6857CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6858
6859 # First, try using that file with no special directory specified.
6860cat >conftest.$ac_ext <<_ACEOF
6861/* confdefs.h. */
6862_ACEOF
6863cat confdefs.h >>conftest.$ac_ext
6864cat >>conftest.$ac_ext <<_ACEOF
6865/* end confdefs.h. */
6866#include <X11/xpm.h>
6867_ACEOF
6868if { (ac_try="$ac_cpp conftest.$ac_ext"
6869case "(($ac_try" in
6870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6871 *) ac_try_echo=$ac_try;;
6872esac
6873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6875 ac_status=$?
6876 grep -v '^ *+' conftest.er1 >conftest.err
6877 rm -f conftest.er1
6878 cat conftest.err >&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } >/dev/null && {
6881 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6882 test ! -s conftest.err
6883 }; then
6884 # We can compile using X headers with no special include directory.
6885vt_xpm_includes=
6886vt_xpm_include_X11=yes
6887else
6888 echo "$as_me: failed program was:" >&5
6889sed 's/^/| /' conftest.$ac_ext >&5
6890
6891 CPPFLAGS="$ac_save_CPPFLAGS"
6892# Look for the header file in a standard set of common directories.
6893 for ac_dir in \
6894 /usr/X11/include \
6895 /usr/X11R6/include \
6896 /usr/X11R5/include \
6897 /usr/X11R4/include \
6898 \
6899 /usr/include/X11 \
6900 /usr/include/X11R6 \
6901 /usr/include/X11R5 \
6902 /usr/include/X11R4 \
6903 \
6904 /usr/local/X11/include \
6905 /usr/local/X11R6/include \
6906 /usr/local/X11R5/include \
6907 /usr/local/X11R4/include \
6908 \
6909 /usr/local/include/X11 \
6910 /usr/local/include/X11R6 \
6911 /usr/local/include/X11R5 \
6912 /usr/local/include/X11R4 \
6913 \
6914 /usr/X386/include \
6915 /usr/x386/include \
6916 /usr/XFree86/include/X11 \
6917 \
6918 /usr/include \
6919 /usr/local/include \
6920 /usr/unsupported/include \
6921 /usr/athena/include \
6922 /usr/local/x11r5/include \
6923 /usr/lpp/Xamples/include \
6924 \
6925 /usr/openwin/include \
6926 /usr/openwin/share/include \
6927 ; \
6928 do
6929 if test -r "$ac_dir/X11/xpm.h"; then
6930 vt_xpm_includes="$ac_dir"
6931 vt_xpm_include_X11=yes
6932 break
6933 else
6934 if test -r "$ac_dir/xpm.h"; then
6935 vt_xpm_includes=$ac_dir
6936 break
6937 fi
6938 fi
6939 done
6940fi
6941
6942rm -f conftest.err conftest.$ac_ext
6943fi
6944
6945if test "$vt_xpm_libraries" = NO; then
6946 # Check for the libraries.
6947
6948 # See if we find them without any special options.
6949 # Don't add to $LIBS permanently.
6950 ac_save_LIBS="$LIBS"
6951 LIBS="$LIBS $X_LIBS -lXpm -lX11"
6952cat >conftest.$ac_ext <<_ACEOF
6953/* confdefs.h. */
6954_ACEOF
6955cat confdefs.h >>conftest.$ac_ext
6956cat >>conftest.$ac_ext <<_ACEOF
6957/* end confdefs.h. */
6958
6959int
6960main ()
6961{
6962XpmReadFileToPixmap()
6963 ;
6964 return 0;
6965}
6966_ACEOF
6967rm -f conftest.$ac_objext conftest$ac_exeext
6968if { (ac_try="$ac_link"
6969case "(($ac_try" in
6970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6971 *) ac_try_echo=$ac_try;;
6972esac
6973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6974 (eval "$ac_link") 2>conftest.er1
6975 ac_status=$?
6976 grep -v '^ *+' conftest.er1 >conftest.err
6977 rm -f conftest.er1
6978 cat conftest.err >&5
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); } && {
6981 test -z "$ac_cxx_werror_flag" ||
6982 test ! -s conftest.err
6983 } && test -s conftest$ac_exeext &&
6984 $as_test_x conftest$ac_exeext; then
6985 LIBS="$ac_save_LIBS"
6986# We can link libXpm with no special library path.
6987vt_xpm_libraries=
6988else
6989 echo "$as_me: failed program was:" >&5
6990sed 's/^/| /' conftest.$ac_ext >&5
6991
6992 LIBS="$ac_save_LIBS"
6993# First see if replacing the include by lib works.
6994for ac_dir in \
6995 `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
6996 /usr/X11/lib \
6997 /usr/X11R6/lib \
6998 /usr/X11R5/lib \
6999 /usr/X11R4/lib \
7000 \
7001 /usr/lib/X11 \
7002 /usr/lib/X11R6 \
7003 /usr/lib/X11R5 \
7004 /usr/lib/X11R4 \
7005 \
7006 /usr/local/X11/lib \
7007 /usr/local/X11R6/lib \
7008 /usr/local/X11R5/lib \
7009 /usr/local/X11R4/lib \
7010 \
7011 /usr/local/lib/X11 \
7012 /usr/local/lib/X11R6 \
7013 /usr/local/lib/X11R5 \
7014 /usr/local/lib/X11R4 \
7015 \
7016 /usr/X386/lib \
7017 /usr/x386/lib \
7018 /usr/XFree86/lib/X11 \
7019 \
7020 /usr/lib \
7021 /usr/local/lib \
7022 /usr/unsupported/lib \
7023 /usr/athena/lib \
7024 /usr/local/x11r5/lib \
7025 /usr/lpp/Xamples/lib \
7026 \
7027 /usr/openwin/lib \
7028 /usr/openwin/share/lib \
7029 ; \
7030do
7031 for ac_extension in a so sl; do
7032 if test -r $ac_dir/libXpm.$ac_extension; then
7033 vt_xpm_libraries=$ac_dir
7034 break 2
7035 fi
7036 done
7037done
7038fi
7039
7040rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7041 conftest$ac_exeext conftest.$ac_ext
7042fi
7043
7044
7045 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then
7046 ac_cv_have_xpm="have_xpm=no"
7047 else
7048 ac_cv_have_xpm="have_xpm=yes \
7049 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
7050 vt_xpm_include_X11=$vt_xpm_include_X11"
7051 fi
7052fi
7053 eval "$ac_cv_have_xpm"
7054fi
7055
7056if test "$have_xpm" != yes; then
7057 { echo "$as_me:$LINENO: result: $have_xpm" >&5
7058echo "${ECHO_T}$have_xpm" >&6; }
7059 no_xpm=yes
7060else
7061 if test "$xpm_includes" != NO; then
7062 if test "$xpm_includes" = "$vt_xpm_includes"; then
7063 if test -r "$xpm_includes/X11/xpm.h"; then
7064 vt_xpm_include_X11=yes
7065 fi
7066 else
7067 vt_xpm_include_X11=no
7068 if test -z "$xpm_includes"; then
7069 cat >conftest.$ac_ext <<_ACEOF
7070/* confdefs.h. */
7071_ACEOF
7072cat confdefs.h >>conftest.$ac_ext
7073cat >>conftest.$ac_ext <<_ACEOF
7074/* end confdefs.h. */
7075#include <X11/xpm.h>
7076_ACEOF
7077if { (ac_try="$ac_cpp conftest.$ac_ext"
7078case "(($ac_try" in
7079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7080 *) ac_try_echo=$ac_try;;
7081esac
7082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7084 ac_status=$?
7085 grep -v '^ *+' conftest.er1 >conftest.err
7086 rm -f conftest.er1
7087 cat conftest.err >&5
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); } >/dev/null && {
7090 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7091 test ! -s conftest.err
7092 }; then
7093 vt_xpm_include_X11=yes
7094else
7095 echo "$as_me: failed program was:" >&5
7096sed 's/^/| /' conftest.$ac_ext >&5
7097
7098
7099fi
7100
7101rm -f conftest.err conftest.$ac_ext
7102 else
7103 if test -r "$xpm_includes/X11/xpm.h"; then
7104 vt_xpm_include_X11=yes
7105 fi 7593 fi
7106 fi 7594 fi
7107 fi 7595 fi
7108 vt_xpm_includes=$xpm_includes 7596 if test "x$support_afterimage" = "xyes"; then
7597 { echo "$as_me:$LINENO: result: $AFTERIMAGE_LIBS" >&5
7598echo "${ECHO_T}$AFTERIMAGE_LIBS" >&6; }
7599 else
7600 { echo "$as_me:$LINENO: result: no" >&5
7601echo "${ECHO_T}no" >&6; }
7602 fi
7109 fi 7603 fi
7110 if test "x$xpm_libraries" != xNO; then
7111 vt_xpm_libraries=$xpm_libraries
7112 fi
7113 # Update the cache value to reflect the command line values.
7114 ac_cv_have_xpm="have_xpm=yes \
7115 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
7116 vt_xpm_include_X11=$vt_xpm_include_X11"
7117 eval "$ac_cv_have_xpm"
7118 { echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5
7119echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6; }
7120 if test -n "$vt_xpm_includes"; then
7121 XPM_CPPFLAGS="-DHAVE_LIBXPM"
7122 fi
7123 if test -n "$vt_xpm_includes"; then
7124 XPM_CFLAGS="-I$vt_xpm_includes"
7125 fi
7126 XPM_LIBS="-lXpm"
7127 if test -n "$vt_xpm_libraries"; then
7128 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
7129 fi
7130 if test "x$vt_xpm_include_X11" = xyes; then
7131
7132cat >>confdefs.h <<\_ACEOF
7133#define XPM_INC_X11 1
7134_ACEOF
7135
7136 fi
7137fi 7604fi
7138
7139
7140
7141
7142
7143 if test x$no_xpm = xyes; then
7144 support_xpm=needsmanualspecification
7145 fi
7146fi
7147
7148{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7149echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7150if test "${ac_cv_header_sys_wait_h+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7152else
7153 cat >conftest.$ac_ext <<_ACEOF
7154/* confdefs.h. */
7155_ACEOF
7156cat confdefs.h >>conftest.$ac_ext
7157cat >>conftest.$ac_ext <<_ACEOF
7158/* end confdefs.h. */
7159#include <sys/types.h>
7160#include <sys/wait.h>
7161#ifndef WEXITSTATUS
7162# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7163#endif
7164#ifndef WIFEXITED
7165# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7166#endif
7167
7168int
7169main ()
7170{
7171 int s;
7172 wait (&s);
7173 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7174 ;
7175 return 0;
7176}
7177_ACEOF
7178rm -f conftest.$ac_objext
7179if { (ac_try="$ac_compile"
7180case "(($ac_try" in
7181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7182 *) ac_try_echo=$ac_try;;
7183esac
7184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7185 (eval "$ac_compile") 2>conftest.er1
7186 ac_status=$?
7187 grep -v '^ *+' conftest.er1 >conftest.err
7188 rm -f conftest.er1
7189 cat conftest.err >&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); } && {
7192 test -z "$ac_cxx_werror_flag" ||
7193 test ! -s conftest.err
7194 } && test -s conftest.$ac_objext; then
7195 ac_cv_header_sys_wait_h=yes
7196else
7197 echo "$as_me: failed program was:" >&5
7198sed 's/^/| /' conftest.$ac_ext >&5
7199
7200 ac_cv_header_sys_wait_h=no
7201fi
7202
7203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7204fi
7205{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7206echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7207if test $ac_cv_header_sys_wait_h = yes; then
7208
7209cat >>confdefs.h <<\_ACEOF
7210#define HAVE_SYS_WAIT_H 1
7211_ACEOF
7212
7213fi
7214
7215{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7216echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7217if test "${ac_cv_header_stdc+set}" = set; then
7218 echo $ECHO_N "(cached) $ECHO_C" >&6
7219else
7220 cat >conftest.$ac_ext <<_ACEOF
7221/* confdefs.h. */
7222_ACEOF
7223cat confdefs.h >>conftest.$ac_ext
7224cat >>conftest.$ac_ext <<_ACEOF
7225/* end confdefs.h. */
7226#include <stdlib.h>
7227#include <stdarg.h>
7228#include <string.h>
7229#include <float.h>
7230
7231int
7232main ()
7233{
7234
7235 ;
7236 return 0;
7237}
7238_ACEOF
7239rm -f conftest.$ac_objext
7240if { (ac_try="$ac_compile"
7241case "(($ac_try" in
7242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7243 *) ac_try_echo=$ac_try;;
7244esac
7245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7246 (eval "$ac_compile") 2>conftest.er1
7247 ac_status=$?
7248 grep -v '^ *+' conftest.er1 >conftest.err
7249 rm -f conftest.er1
7250 cat conftest.err >&5
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); } && {
7253 test -z "$ac_cxx_werror_flag" ||
7254 test ! -s conftest.err
7255 } && test -s conftest.$ac_objext; then
7256 ac_cv_header_stdc=yes
7257else
7258 echo "$as_me: failed program was:" >&5
7259sed 's/^/| /' conftest.$ac_ext >&5
7260
7261 ac_cv_header_stdc=no
7262fi
7263
7264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7265
7266if test $ac_cv_header_stdc = yes; then
7267 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7268 cat >conftest.$ac_ext <<_ACEOF
7269/* confdefs.h. */
7270_ACEOF
7271cat confdefs.h >>conftest.$ac_ext
7272cat >>conftest.$ac_ext <<_ACEOF
7273/* end confdefs.h. */
7274#include <string.h>
7275
7276_ACEOF
7277if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7278 $EGREP "memchr" >/dev/null 2>&1; then
7279 :
7280else
7281 ac_cv_header_stdc=no
7282fi
7283rm -f conftest*
7284
7285fi
7286
7287if test $ac_cv_header_stdc = yes; then
7288 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7289 cat >conftest.$ac_ext <<_ACEOF
7290/* confdefs.h. */
7291_ACEOF
7292cat confdefs.h >>conftest.$ac_ext
7293cat >>conftest.$ac_ext <<_ACEOF
7294/* end confdefs.h. */
7295#include <stdlib.h>
7296
7297_ACEOF
7298if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7299 $EGREP "free" >/dev/null 2>&1; then
7300 :
7301else
7302 ac_cv_header_stdc=no
7303fi
7304rm -f conftest*
7305
7306fi
7307
7308if test $ac_cv_header_stdc = yes; then
7309 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7310 if test "$cross_compiling" = yes; then
7311 :
7312else
7313 cat >conftest.$ac_ext <<_ACEOF
7314/* confdefs.h. */
7315_ACEOF
7316cat confdefs.h >>conftest.$ac_ext
7317cat >>conftest.$ac_ext <<_ACEOF
7318/* end confdefs.h. */
7319#include <ctype.h>
7320#include <stdlib.h>
7321#if ((' ' & 0x0FF) == 0x020)
7322# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7323# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7324#else
7325# define ISLOWER(c) \
7326 (('a' <= (c) && (c) <= 'i') \
7327 || ('j' <= (c) && (c) <= 'r') \
7328 || ('s' <= (c) && (c) <= 'z'))
7329# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7330#endif
7331
7332#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7333int
7334main ()
7335{
7336 int i;
7337 for (i = 0; i < 256; i++)
7338 if (XOR (islower (i), ISLOWER (i))
7339 || toupper (i) != TOUPPER (i))
7340 return 2;
7341 return 0;
7342}
7343_ACEOF
7344rm -f conftest$ac_exeext
7345if { (ac_try="$ac_link"
7346case "(($ac_try" in
7347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7348 *) ac_try_echo=$ac_try;;
7349esac
7350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7351 (eval "$ac_link") 2>&5
7352 ac_status=$?
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7355 { (case "(($ac_try" in
7356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7357 *) ac_try_echo=$ac_try;;
7358esac
7359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7360 (eval "$ac_try") 2>&5
7361 ac_status=$?
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); }; }; then
7364 :
7365else
7366 echo "$as_me: program exited with status $ac_status" >&5
7367echo "$as_me: failed program was:" >&5
7368sed 's/^/| /' conftest.$ac_ext >&5
7369
7370( exit $ac_status )
7371ac_cv_header_stdc=no
7372fi
7373rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7374fi
7375
7376
7377fi
7378fi
7379{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7380echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7381if test $ac_cv_header_stdc = yes; then
7382
7383cat >>confdefs.h <<\_ACEOF
7384#define STDC_HEADERS 1
7385_ACEOF
7386
7387fi
7388
7389# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7400 inttypes.h stdint.h unistd.h
7401do
7402as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7403{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7404echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7405if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7407else
7408 cat >conftest.$ac_ext <<_ACEOF
7409/* confdefs.h. */
7410_ACEOF
7411cat confdefs.h >>conftest.$ac_ext
7412cat >>conftest.$ac_ext <<_ACEOF
7413/* end confdefs.h. */
7414$ac_includes_default
7415
7416#include <$ac_header>
7417_ACEOF
7418rm -f conftest.$ac_objext
7419if { (ac_try="$ac_compile"
7420case "(($ac_try" in
7421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7422 *) ac_try_echo=$ac_try;;
7423esac
7424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7425 (eval "$ac_compile") 2>conftest.er1
7426 ac_status=$?
7427 grep -v '^ *+' conftest.er1 >conftest.err
7428 rm -f conftest.er1
7429 cat conftest.err >&5
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); } && {
7432 test -z "$ac_cxx_werror_flag" ||
7433 test ! -s conftest.err
7434 } && test -s conftest.$ac_objext; then
7435 eval "$as_ac_Header=yes"
7436else
7437 echo "$as_me: failed program was:" >&5
7438sed 's/^/| /' conftest.$ac_ext >&5
7439
7440 eval "$as_ac_Header=no"
7441fi
7442
7443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7444fi
7445ac_res=`eval echo '${'$as_ac_Header'}'`
7446 { echo "$as_me:$LINENO: result: $ac_res" >&5
7447echo "${ECHO_T}$ac_res" >&6; }
7448if test `eval echo '${'$as_ac_Header'}'` = yes; then
7449 cat >>confdefs.h <<_ACEOF
7450#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7451_ACEOF
7452
7453fi
7454
7455done
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467 7605
7468 7606
7469 7607
7470 7608
7471 7609
7472 7610
7473 7611
7474 7612
7475for ac_header in \ 7613for ac_header in \
7476 assert.h \
7477 fcntl.h \
7478 stdarg.h \
7479 stdlib.h \
7480 string.h \
7481 termios.h \
7482 unistd.h \
7483 sys/byteorder.h \ 7614 sys/byteorder.h \
7484 sys/ioctl.h \ 7615 sys/ioctl.h \
7485 sys/select.h \
7486 sys/sockio.h \ 7616 sys/sockio.h \
7487 sys/strredir.h \ 7617 sys/strredir.h \
7488 sys/time.h \
7489 stdint.h \ 7618 stdint.h \
7490 wchar.h \ 7619 wchar.h \
7491 cwchar \ 7620 cwchar \
7492 clocale \
7493 7621
7494do 7622do
7495as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7623as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7496if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7624if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7497 { echo "$as_me:$LINENO: checking for $ac_header" >&5 7625 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7628fi 7756fi
7629 7757
7630done 7758done
7631 7759
7632 7760
7633{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7634echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7635if test "${ac_cv_header_time+set}" = set; then
7636 echo $ECHO_N "(cached) $ECHO_C" >&6
7637else
7638 cat >conftest.$ac_ext <<_ACEOF
7639/* confdefs.h. */
7640_ACEOF
7641cat confdefs.h >>conftest.$ac_ext
7642cat >>conftest.$ac_ext <<_ACEOF
7643/* end confdefs.h. */
7644#include <sys/types.h>
7645#include <sys/time.h>
7646#include <time.h>
7647
7648int
7649main ()
7650{
7651if ((struct tm *) 0)
7652return 0;
7653 ;
7654 return 0;
7655}
7656_ACEOF
7657rm -f conftest.$ac_objext
7658if { (ac_try="$ac_compile"
7659case "(($ac_try" in
7660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7661 *) ac_try_echo=$ac_try;;
7662esac
7663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7664 (eval "$ac_compile") 2>conftest.er1
7665 ac_status=$?
7666 grep -v '^ *+' conftest.er1 >conftest.err
7667 rm -f conftest.er1
7668 cat conftest.err >&5
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); } && {
7671 test -z "$ac_cxx_werror_flag" ||
7672 test ! -s conftest.err
7673 } && test -s conftest.$ac_objext; then
7674 ac_cv_header_time=yes
7675else
7676 echo "$as_me: failed program was:" >&5
7677sed 's/^/| /' conftest.$ac_ext >&5
7678
7679 ac_cv_header_time=no
7680fi
7681
7682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7683fi
7684{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7685echo "${ECHO_T}$ac_cv_header_time" >&6; }
7686if test $ac_cv_header_time = yes; then
7687
7688cat >>confdefs.h <<\_ACEOF
7689#define TIME_WITH_SYS_TIME 1
7690_ACEOF
7691
7692fi
7693
7694
7695{ echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5
7696echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; }
7697if test "${rxvt_cv_header_sysioctl+set}" = set; then
7698 echo $ECHO_N "(cached) $ECHO_C" >&6
7699else
7700 cat >conftest.$ac_ext <<_ACEOF
7701/* confdefs.h. */
7702_ACEOF
7703cat confdefs.h >>conftest.$ac_ext
7704cat >>conftest.$ac_ext <<_ACEOF
7705/* end confdefs.h. */
7706#include <stdio.h>
7707#include <sys/ioctl.h>
7708#ifdef HAVE_TERMIOS_H
7709#include <termios.h>
7710#endif
7711int
7712main ()
7713{
7714int a = ECHO;
7715 ;
7716 return 0;
7717}
7718_ACEOF
7719rm -f conftest.$ac_objext
7720if { (ac_try="$ac_compile"
7721case "(($ac_try" in
7722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7723 *) ac_try_echo=$ac_try;;
7724esac
7725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7726 (eval "$ac_compile") 2>conftest.er1
7727 ac_status=$?
7728 grep -v '^ *+' conftest.er1 >conftest.err
7729 rm -f conftest.er1
7730 cat conftest.err >&5
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); } && {
7733 test -z "$ac_cxx_werror_flag" ||
7734 test ! -s conftest.err
7735 } && test -s conftest.$ac_objext; then
7736 rxvt_cv_header_sysioctl=yes
7737else
7738 echo "$as_me: failed program was:" >&5
7739sed 's/^/| /' conftest.$ac_ext >&5
7740
7741 rxvt_cv_header_sysioctl=no
7742fi
7743
7744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7745fi
7746{ echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7747echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6; }
7748
7749if test -n "$GCC"; then
7750 LDARG="-Wl,"
7751else
7752 LDARG=""
7753fi
7754R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-rpath '$LDARG'\1/g'
7755
7756ac_save_CFLAGS=$CFLAGS
7757ac_save_LIBS=$LIBS
7758CFLAGS="$CFLAGS $X_CFLAGS"
7759LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7760{ echo "$as_me:$LINENO: checking for -rpath dynamic library path recording" >&5
7761echo $ECHO_N "checking for -rpath dynamic library path recording... $ECHO_C" >&6; }
7762if test "${rxvt_cv_rpath+set}" = set; then
7763 echo $ECHO_N "(cached) $ECHO_C" >&6
7764else
7765 if test "$cross_compiling" = yes; then
7766 { echo "$as_me:$LINENO: WARNING: You may need to check the LIBS line" >&5
7767echo "$as_me: WARNING: You may need to check the LIBS line" >&2;}
7768else
7769 cat >conftest.$ac_ext <<_ACEOF
7770/* confdefs.h. */
7771_ACEOF
7772cat confdefs.h >>conftest.$ac_ext
7773cat >>conftest.$ac_ext <<_ACEOF
7774/* end confdefs.h. */
7775#include <X11/Xlib.h>
7776#include <stdlib.h>
7777main()
7778{
7779 exit(0);
7780 (void) XOpenDisplay("foobar");
7781}
7782_ACEOF
7783rm -f conftest$ac_exeext
7784if { (ac_try="$ac_link"
7785case "(($ac_try" in
7786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7787 *) ac_try_echo=$ac_try;;
7788esac
7789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7790 (eval "$ac_link") 2>&5
7791 ac_status=$?
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7794 { (case "(($ac_try" in
7795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7796 *) ac_try_echo=$ac_try;;
7797esac
7798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7799 (eval "$ac_try") 2>&5
7800 ac_status=$?
7801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802 (exit $ac_status); }; }; then
7803 rxvt_cv_rpath=yes
7804else
7805 echo "$as_me: program exited with status $ac_status" >&5
7806echo "$as_me: failed program was:" >&5
7807sed 's/^/| /' conftest.$ac_ext >&5
7808
7809( exit $ac_status )
7810rxvt_cv_rpath=no
7811fi
7812rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7813fi
7814
7815
7816fi
7817{ echo "$as_me:$LINENO: result: $rxvt_cv_rpath" >&5
7818echo "${ECHO_T}$rxvt_cv_rpath" >&6; }
7819if test x$rxvt_cv_rpath != xyes; then
7820 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g'
7821 LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7822 { echo "$as_me:$LINENO: checking for -R dynamic library path recording" >&5
7823echo $ECHO_N "checking for -R dynamic library path recording... $ECHO_C" >&6; }
7824if test "${rxvt_cv_R+set}" = set; then
7825 echo $ECHO_N "(cached) $ECHO_C" >&6
7826else
7827 if test "$cross_compiling" = yes; then
7828 rxvt_cv_R=no
7829else
7830 cat >conftest.$ac_ext <<_ACEOF
7831/* confdefs.h. */
7832_ACEOF
7833cat confdefs.h >>conftest.$ac_ext
7834cat >>conftest.$ac_ext <<_ACEOF
7835/* end confdefs.h. */
7836#include <X11/Xlib.h>
7837#include <stdlib.h>
7838main()
7839{
7840 exit(0);
7841 (void) XOpenDisplay("foobar");
7842}
7843_ACEOF
7844rm -f conftest$ac_exeext
7845if { (ac_try="$ac_link"
7846case "(($ac_try" in
7847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7848 *) ac_try_echo=$ac_try;;
7849esac
7850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7851 (eval "$ac_link") 2>&5
7852 ac_status=$?
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7855 { (case "(($ac_try" in
7856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7857 *) ac_try_echo=$ac_try;;
7858esac
7859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7860 (eval "$ac_try") 2>&5
7861 ac_status=$?
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); }; }; then
7864 rxvt_cv_R=yes
7865else
7866 echo "$as_me: program exited with status $ac_status" >&5
7867echo "$as_me: failed program was:" >&5
7868sed 's/^/| /' conftest.$ac_ext >&5
7869
7870( exit $ac_status )
7871rxvt_cv_R=no
7872fi
7873rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7874fi
7875
7876
7877fi
7878{ echo "$as_me:$LINENO: result: $rxvt_cv_R" >&5
7879echo "${ECHO_T}$rxvt_cv_R" >&6; }
7880 if test x$rxvt_cv_R != xyes; then
7881 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7882 fi
7883fi
7884
7885{ echo "$as_me:$LINENO: checking for XPointer" >&5 7761{ echo "$as_me:$LINENO: checking for XPointer" >&5
7886echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } 7762echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; }
7887if test "${rxvt_cv_xpointer+set}" = set; then 7763if test "${rxvt_cv_xpointer+set}" = set; then
7888 echo $ECHO_N "(cached) $ECHO_C" >&6 7764 echo $ECHO_N "(cached) $ECHO_C" >&6
7889else 7765else
7936cat >>confdefs.h <<\_ACEOF 7812cat >>confdefs.h <<\_ACEOF
7937#define HAVE_XPOINTER 1 7813#define HAVE_XPOINTER 1
7938_ACEOF 7814_ACEOF
7939 7815
7940fi 7816fi
7941LIBS=$ac_save_LIBS
7942CFLAGS=$ac_save_CFLAGS
7943 7817
7944{ echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5 7818{ echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5
7945echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6; } 7819echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6; }
7946if test "${rxvt_xlib_illegal_access+set}" = set; then 7820if test "${rxvt_xlib_illegal_access+set}" = set; then
7947 echo $ECHO_N "(cached) $ECHO_C" >&6 7821 echo $ECHO_N "(cached) $ECHO_C" >&6
8002cat >>confdefs.h <<\_ACEOF 7876cat >>confdefs.h <<\_ACEOF
8003#define XLIB_ILLEGAL_ACCESS 1 7877#define XLIB_ILLEGAL_ACCESS 1
8004_ACEOF 7878_ACEOF
8005 7879
8006fi 7880fi
8007
8008{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8009echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8010if test "${ac_cv_c_const+set}" = set; then
8011 echo $ECHO_N "(cached) $ECHO_C" >&6
8012else
8013 cat >conftest.$ac_ext <<_ACEOF
8014/* confdefs.h. */
8015_ACEOF
8016cat confdefs.h >>conftest.$ac_ext
8017cat >>conftest.$ac_ext <<_ACEOF
8018/* end confdefs.h. */
8019
8020int
8021main ()
8022{
8023/* FIXME: Include the comments suggested by Paul. */
8024#ifndef __cplusplus
8025 /* Ultrix mips cc rejects this. */
8026 typedef int charset[2];
8027 const charset cs;
8028 /* SunOS 4.1.1 cc rejects this. */
8029 char const *const *pcpcc;
8030 char **ppc;
8031 /* NEC SVR4.0.2 mips cc rejects this. */
8032 struct point {int x, y;};
8033 static struct point const zero = {0,0};
8034 /* AIX XL C 1.02.0.0 rejects this.
8035 It does not let you subtract one const X* pointer from another in
8036 an arm of an if-expression whose if-part is not a constant
8037 expression */
8038 const char *g = "string";
8039 pcpcc = &g + (g ? g-g : 0);
8040 /* HPUX 7.0 cc rejects these. */
8041 ++pcpcc;
8042 ppc = (char**) pcpcc;
8043 pcpcc = (char const *const *) ppc;
8044 { /* SCO 3.2v4 cc rejects this. */
8045 char *t;
8046 char const *s = 0 ? (char *) 0 : (char const *) 0;
8047
8048 *t++ = 0;
8049 if (s) return 0;
8050 }
8051 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8052 int x[] = {25, 17};
8053 const int *foo = &x[0];
8054 ++foo;
8055 }
8056 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8057 typedef const int *iptr;
8058 iptr p = 0;
8059 ++p;
8060 }
8061 { /* AIX XL C 1.02.0.0 rejects this saying
8062 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8063 struct s { int j; const int *ap[3]; };
8064 struct s *b; b->j = 5;
8065 }
8066 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8067 const int foo = 10;
8068 if (!foo) return 0;
8069 }
8070 return !cs[0] && !zero.x;
8071#endif
8072
8073 ;
8074 return 0;
8075}
8076_ACEOF
8077rm -f conftest.$ac_objext
8078if { (ac_try="$ac_compile"
8079case "(($ac_try" in
8080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8081 *) ac_try_echo=$ac_try;;
8082esac
8083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8084 (eval "$ac_compile") 2>conftest.er1
8085 ac_status=$?
8086 grep -v '^ *+' conftest.er1 >conftest.err
8087 rm -f conftest.er1
8088 cat conftest.err >&5
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); } && {
8091 test -z "$ac_cxx_werror_flag" ||
8092 test ! -s conftest.err
8093 } && test -s conftest.$ac_objext; then
8094 ac_cv_c_const=yes
8095else
8096 echo "$as_me: failed program was:" >&5
8097sed 's/^/| /' conftest.$ac_ext >&5
8098
8099 ac_cv_c_const=no
8100fi
8101
8102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8103fi
8104{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8105echo "${ECHO_T}$ac_cv_c_const" >&6; }
8106if test $ac_cv_c_const = no; then
8107
8108cat >>confdefs.h <<\_ACEOF
8109#define const
8110_ACEOF
8111
8112fi
8113
8114{ echo "$as_me:$LINENO: checking for inline" >&5
8115echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8116if test "${ac_cv_c_inline+set}" = set; then
8117 echo $ECHO_N "(cached) $ECHO_C" >&6
8118else
8119 ac_cv_c_inline=no
8120for ac_kw in inline __inline__ __inline; do
8121 cat >conftest.$ac_ext <<_ACEOF
8122/* confdefs.h. */
8123_ACEOF
8124cat confdefs.h >>conftest.$ac_ext
8125cat >>conftest.$ac_ext <<_ACEOF
8126/* end confdefs.h. */
8127#ifndef __cplusplus
8128typedef int foo_t;
8129static $ac_kw foo_t static_foo () {return 0; }
8130$ac_kw foo_t foo () {return 0; }
8131#endif
8132
8133_ACEOF
8134rm -f conftest.$ac_objext
8135if { (ac_try="$ac_compile"
8136case "(($ac_try" in
8137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8138 *) ac_try_echo=$ac_try;;
8139esac
8140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8141 (eval "$ac_compile") 2>conftest.er1
8142 ac_status=$?
8143 grep -v '^ *+' conftest.er1 >conftest.err
8144 rm -f conftest.er1
8145 cat conftest.err >&5
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); } && {
8148 test -z "$ac_cxx_werror_flag" ||
8149 test ! -s conftest.err
8150 } && test -s conftest.$ac_objext; then
8151 ac_cv_c_inline=$ac_kw
8152else
8153 echo "$as_me: failed program was:" >&5
8154sed 's/^/| /' conftest.$ac_ext >&5
8155
8156
8157fi
8158
8159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8160 test "$ac_cv_c_inline" != no && break
8161done
8162
8163fi
8164{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8165echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8166
8167
8168case $ac_cv_c_inline in
8169 inline | yes) ;;
8170 *)
8171 case $ac_cv_c_inline in
8172 no) ac_val=;;
8173 *) ac_val=$ac_cv_c_inline;;
8174 esac
8175 cat >>confdefs.h <<_ACEOF
8176#ifndef __cplusplus
8177#define inline $ac_val
8178#endif
8179_ACEOF
8180 ;;
8181esac
8182
8183
8184 7881
8185{ echo "$as_me:$LINENO: checking for mode_t" >&5 7882{ echo "$as_me:$LINENO: checking for mode_t" >&5
8186echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } 7883echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
8187if test "${ac_cv_type_mode_t+set}" = set; then 7884if test "${ac_cv_type_mode_t+set}" = set; then
8188 echo $ECHO_N "(cached) $ECHO_C" >&6 7885 echo $ECHO_N "(cached) $ECHO_C" >&6
8345_ACEOF 8042_ACEOF
8346 8043
8347fi 8044fi
8348 8045
8349 8046
8350{ echo "$as_me:$LINENO: checking for short" >&5 8047 { echo "$as_me:$LINENO: checking for int16_t" >&5
8351echo $ECHO_N "checking for short... $ECHO_C" >&6; } 8048echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
8352if test "${ac_cv_type_short+set}" = set; then 8049if test "${ac_cv_c_int16_t+set}" = set; then
8353 echo $ECHO_N "(cached) $ECHO_C" >&6 8050 echo $ECHO_N "(cached) $ECHO_C" >&6
8354else 8051else
8052 ac_cv_c_int16_t=no
8053 for ac_type in 'int16_t' 'int' 'long int' \
8054 'long long int' 'short int' 'signed char'; do
8355 cat >conftest.$ac_ext <<_ACEOF 8055 cat >conftest.$ac_ext <<_ACEOF
8356/* confdefs.h. */ 8056/* confdefs.h. */
8357_ACEOF 8057_ACEOF
8358cat confdefs.h >>conftest.$ac_ext 8058cat confdefs.h >>conftest.$ac_ext
8359cat >>conftest.$ac_ext <<_ACEOF 8059cat >>conftest.$ac_ext <<_ACEOF
8360/* end confdefs.h. */ 8060/* end confdefs.h. */
8361$ac_includes_default 8061$ac_includes_default
8362typedef short ac__type_new_;
8363int 8062int
8364main () 8063main ()
8365{ 8064{
8366if ((ac__type_new_ *) 0) 8065static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
8367 return 0; 8066test_array [0] = 0
8368if (sizeof (ac__type_new_)) 8067
8369 return 0;
8370 ; 8068 ;
8371 return 0; 8069 return 0;
8372} 8070}
8373_ACEOF 8071_ACEOF
8374rm -f conftest.$ac_objext 8072rm -f conftest.$ac_objext
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); } && { 8085 (exit $ac_status); } && {
8388 test -z "$ac_cxx_werror_flag" || 8086 test -z "$ac_cxx_werror_flag" ||
8389 test ! -s conftest.err 8087 test ! -s conftest.err
8390 } && test -s conftest.$ac_objext; then 8088 } && test -s conftest.$ac_objext; then
8391 ac_cv_type_short=yes
8392else
8393 echo "$as_me: failed program was:" >&5
8394sed 's/^/| /' conftest.$ac_ext >&5
8395
8396 ac_cv_type_short=no
8397fi
8398
8399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8400fi
8401{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8402echo "${ECHO_T}$ac_cv_type_short" >&6; }
8403
8404# The cast to long int works around a bug in the HP C Compiler
8405# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8406# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8407# This bug is HP SR number 8606223364.
8408{ echo "$as_me:$LINENO: checking size of short" >&5
8409echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8410if test "${ac_cv_sizeof_short+set}" = set; then
8411 echo $ECHO_N "(cached) $ECHO_C" >&6
8412else
8413 if test "$cross_compiling" = yes; then
8414 # Depending upon the size, compute the lo and hi bounds.
8415cat >conftest.$ac_ext <<_ACEOF 8089 cat >conftest.$ac_ext <<_ACEOF
8416/* confdefs.h. */ 8090/* confdefs.h. */
8417_ACEOF 8091_ACEOF
8418cat confdefs.h >>conftest.$ac_ext 8092cat confdefs.h >>conftest.$ac_ext
8419cat >>conftest.$ac_ext <<_ACEOF 8093cat >>conftest.$ac_ext <<_ACEOF
8420/* end confdefs.h. */ 8094/* end confdefs.h. */
8421$ac_includes_default 8095$ac_includes_default
8422 typedef short ac__type_sizeof_;
8423int 8096int
8424main () 8097main ()
8425{ 8098{
8426static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 8099static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
8100 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
8427test_array [0] = 0 8101test_array [0] = 0
8428 8102
8429 ; 8103 ;
8430 return 0; 8104 return 0;
8431} 8105}
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); } && { 8120 (exit $ac_status); } && {
8447 test -z "$ac_cxx_werror_flag" || 8121 test -z "$ac_cxx_werror_flag" ||
8448 test ! -s conftest.err 8122 test ! -s conftest.err
8449 } && test -s conftest.$ac_objext; then 8123 } && test -s conftest.$ac_objext; then
8450 ac_lo=0 ac_mid=0 8124 :
8451 while :; do 8125else
8126 echo "$as_me: failed program was:" >&5
8127sed 's/^/| /' conftest.$ac_ext >&5
8128
8129 case $ac_type in
8130 int16_t) ac_cv_c_int16_t=yes ;;
8131 *) ac_cv_c_int16_t=$ac_type ;;
8132esac
8133
8134fi
8135
8136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8137else
8138 echo "$as_me: failed program was:" >&5
8139sed 's/^/| /' conftest.$ac_ext >&5
8140
8141
8142fi
8143
8144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8145 test "$ac_cv_c_int16_t" != no && break
8146 done
8147fi
8148{ echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
8149echo "${ECHO_T}$ac_cv_c_int16_t" >&6; }
8150 case $ac_cv_c_int16_t in #(
8151 no|yes) ;; #(
8152 *)
8153
8154cat >>confdefs.h <<_ACEOF
8155#define int16_t $ac_cv_c_int16_t
8156_ACEOF
8157;;
8158 esac
8159
8160
8161 { echo "$as_me:$LINENO: checking for uint16_t" >&5
8162echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
8163if test "${ac_cv_c_uint16_t+set}" = set; then
8164 echo $ECHO_N "(cached) $ECHO_C" >&6
8165else
8166 ac_cv_c_uint16_t=no
8167 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
8168 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
8452 cat >conftest.$ac_ext <<_ACEOF 8169 cat >conftest.$ac_ext <<_ACEOF
8453/* confdefs.h. */ 8170/* confdefs.h. */
8454_ACEOF 8171_ACEOF
8455cat confdefs.h >>conftest.$ac_ext 8172cat confdefs.h >>conftest.$ac_ext
8456cat >>conftest.$ac_ext <<_ACEOF 8173cat >>conftest.$ac_ext <<_ACEOF
8457/* end confdefs.h. */ 8174/* end confdefs.h. */
8458$ac_includes_default 8175$ac_includes_default
8459 typedef short ac__type_sizeof_;
8460int 8176int
8461main () 8177main ()
8462{ 8178{
8463static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 8179static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
8464test_array [0] = 0 8180test_array [0] = 0
8465 8181
8466 ; 8182 ;
8467 return 0; 8183 return 0;
8468} 8184}
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); } && { 8199 (exit $ac_status); } && {
8484 test -z "$ac_cxx_werror_flag" || 8200 test -z "$ac_cxx_werror_flag" ||
8485 test ! -s conftest.err 8201 test ! -s conftest.err
8486 } && test -s conftest.$ac_objext; then 8202 } && test -s conftest.$ac_objext; then
8487 ac_hi=$ac_mid; break 8203 case $ac_type in
8204 uint16_t) ac_cv_c_uint16_t=yes ;;
8205 *) ac_cv_c_uint16_t=$ac_type ;;
8206esac
8207
8488else 8208else
8489 echo "$as_me: failed program was:" >&5 8209 echo "$as_me: failed program was:" >&5
8490sed 's/^/| /' conftest.$ac_ext >&5 8210sed 's/^/| /' conftest.$ac_ext >&5
8491 8211
8492 ac_lo=`expr $ac_mid + 1` 8212
8493 if test $ac_lo -le $ac_mid; then
8494 ac_lo= ac_hi=
8495 break
8496 fi
8497 ac_mid=`expr 2 '*' $ac_mid + 1`
8498fi 8213fi
8499 8214
8500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8216 test "$ac_cv_c_uint16_t" != no && break
8501 done 8217 done
8502else 8218fi
8503 echo "$as_me: failed program was:" >&5 8219{ echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
8504sed 's/^/| /' conftest.$ac_ext >&5 8220echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
8221 case $ac_cv_c_uint16_t in #(
8222 no|yes) ;; #(
8223 *)
8505 8224
8225
8226cat >>confdefs.h <<_ACEOF
8227#define uint16_t $ac_cv_c_uint16_t
8228_ACEOF
8229;;
8230 esac
8231
8232
8233 { echo "$as_me:$LINENO: checking for int32_t" >&5
8234echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
8235if test "${ac_cv_c_int32_t+set}" = set; then
8236 echo $ECHO_N "(cached) $ECHO_C" >&6
8237else
8238 ac_cv_c_int32_t=no
8239 for ac_type in 'int32_t' 'int' 'long int' \
8240 'long long int' 'short int' 'signed char'; do
8506 cat >conftest.$ac_ext <<_ACEOF 8241 cat >conftest.$ac_ext <<_ACEOF
8507/* confdefs.h. */ 8242/* confdefs.h. */
8508_ACEOF 8243_ACEOF
8509cat confdefs.h >>conftest.$ac_ext 8244cat confdefs.h >>conftest.$ac_ext
8510cat >>conftest.$ac_ext <<_ACEOF 8245cat >>conftest.$ac_ext <<_ACEOF
8511/* end confdefs.h. */ 8246/* end confdefs.h. */
8512$ac_includes_default 8247$ac_includes_default
8513 typedef short ac__type_sizeof_;
8514int 8248int
8515main () 8249main ()
8516{ 8250{
8517static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 8251static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
8518test_array [0] = 0 8252test_array [0] = 0
8519 8253
8520 ; 8254 ;
8521 return 0; 8255 return 0;
8522} 8256}
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); } && { 8271 (exit $ac_status); } && {
8538 test -z "$ac_cxx_werror_flag" || 8272 test -z "$ac_cxx_werror_flag" ||
8539 test ! -s conftest.err 8273 test ! -s conftest.err
8540 } && test -s conftest.$ac_objext; then 8274 } && test -s conftest.$ac_objext; then
8541 ac_hi=-1 ac_mid=-1
8542 while :; do
8543 cat >conftest.$ac_ext <<_ACEOF 8275 cat >conftest.$ac_ext <<_ACEOF
8544/* confdefs.h. */ 8276/* confdefs.h. */
8545_ACEOF 8277_ACEOF
8546cat confdefs.h >>conftest.$ac_ext 8278cat confdefs.h >>conftest.$ac_ext
8547cat >>conftest.$ac_ext <<_ACEOF 8279cat >>conftest.$ac_ext <<_ACEOF
8548/* end confdefs.h. */ 8280/* end confdefs.h. */
8549$ac_includes_default 8281$ac_includes_default
8550 typedef short ac__type_sizeof_;
8551int 8282int
8552main () 8283main ()
8553{ 8284{
8554static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 8285static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
8286 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
8555test_array [0] = 0 8287test_array [0] = 0
8556 8288
8557 ; 8289 ;
8558 return 0; 8290 return 0;
8559} 8291}
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); } && { 8306 (exit $ac_status); } && {
8575 test -z "$ac_cxx_werror_flag" || 8307 test -z "$ac_cxx_werror_flag" ||
8576 test ! -s conftest.err 8308 test ! -s conftest.err
8577 } && test -s conftest.$ac_objext; then 8309 } && test -s conftest.$ac_objext; then
8578 ac_lo=$ac_mid; break 8310 :
8579else 8311else
8580 echo "$as_me: failed program was:" >&5 8312 echo "$as_me: failed program was:" >&5
8581sed 's/^/| /' conftest.$ac_ext >&5 8313sed 's/^/| /' conftest.$ac_ext >&5
8582 8314
8583 ac_hi=`expr '(' $ac_mid ')' - 1` 8315 case $ac_type in
8584 if test $ac_mid -le $ac_hi; then 8316 int32_t) ac_cv_c_int32_t=yes ;;
8585 ac_lo= ac_hi= 8317 *) ac_cv_c_int32_t=$ac_type ;;
8586 break 8318esac
8587 fi 8319
8588 ac_mid=`expr 2 '*' $ac_mid`
8589fi 8320fi
8590 8321
8591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8592 done
8593else 8323else
8594 echo "$as_me: failed program was:" >&5 8324 echo "$as_me: failed program was:" >&5
8595sed 's/^/| /' conftest.$ac_ext >&5 8325sed 's/^/| /' conftest.$ac_ext >&5
8596 8326
8597 ac_lo= ac_hi= 8327
8598fi 8328fi
8599 8329
8600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8331 test "$ac_cv_c_int32_t" != no && break
8332 done
8601fi 8333fi
8334{ echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
8335echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
8336 case $ac_cv_c_int32_t in #(
8337 no|yes) ;; #(
8338 *)
8602 8339
8603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8340cat >>confdefs.h <<_ACEOF
8604# Binary search between lo and hi bounds. 8341#define int32_t $ac_cv_c_int32_t
8605while test "x$ac_lo" != "x$ac_hi"; do 8342_ACEOF
8606 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 8343;;
8344 esac
8345
8346
8347 { echo "$as_me:$LINENO: checking for uint32_t" >&5
8348echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
8349if test "${ac_cv_c_uint32_t+set}" = set; then
8350 echo $ECHO_N "(cached) $ECHO_C" >&6
8351else
8352 ac_cv_c_uint32_t=no
8353 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
8354 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
8607 cat >conftest.$ac_ext <<_ACEOF 8355 cat >conftest.$ac_ext <<_ACEOF
8608/* confdefs.h. */ 8356/* confdefs.h. */
8609_ACEOF 8357_ACEOF
8610cat confdefs.h >>conftest.$ac_ext 8358cat confdefs.h >>conftest.$ac_ext
8611cat >>conftest.$ac_ext <<_ACEOF 8359cat >>conftest.$ac_ext <<_ACEOF
8612/* end confdefs.h. */ 8360/* end confdefs.h. */
8613$ac_includes_default 8361$ac_includes_default
8614 typedef short ac__type_sizeof_;
8615int 8362int
8616main () 8363main ()
8617{ 8364{
8618static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 8365static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
8619test_array [0] = 0 8366test_array [0] = 0
8620 8367
8621 ; 8368 ;
8622 return 0; 8369 return 0;
8623} 8370}
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); } && { 8385 (exit $ac_status); } && {
8639 test -z "$ac_cxx_werror_flag" || 8386 test -z "$ac_cxx_werror_flag" ||
8640 test ! -s conftest.err 8387 test ! -s conftest.err
8641 } && test -s conftest.$ac_objext; then 8388 } && test -s conftest.$ac_objext; then
8642 ac_hi=$ac_mid 8389 case $ac_type in
8390 uint32_t) ac_cv_c_uint32_t=yes ;;
8391 *) ac_cv_c_uint32_t=$ac_type ;;
8392esac
8393
8643else 8394else
8644 echo "$as_me: failed program was:" >&5 8395 echo "$as_me: failed program was:" >&5
8645sed 's/^/| /' conftest.$ac_ext >&5 8396sed 's/^/| /' conftest.$ac_ext >&5
8646 8397
8647 ac_lo=`expr '(' $ac_mid ')' + 1` 8398
8648fi 8399fi
8649 8400
8650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8651done 8402 test "$ac_cv_c_uint32_t" != no && break
8652case $ac_lo in 8403 done
8653?*) ac_cv_sizeof_short=$ac_lo;;
8654'') if test "$ac_cv_type_short" = yes; then
8655 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8656See \`config.log' for more details." >&5
8657echo "$as_me: error: cannot compute sizeof (short)
8658See \`config.log' for more details." >&2;}
8659 { (exit 77); exit 77; }; }
8660 else
8661 ac_cv_sizeof_short=0
8662 fi ;;
8663esac
8664else
8665 cat >conftest.$ac_ext <<_ACEOF
8666/* confdefs.h. */
8667_ACEOF
8668cat confdefs.h >>conftest.$ac_ext
8669cat >>conftest.$ac_ext <<_ACEOF
8670/* end confdefs.h. */
8671$ac_includes_default
8672 typedef short ac__type_sizeof_;
8673static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8674static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8675#include <stdio.h>
8676#include <stdlib.h>
8677int
8678main ()
8679{
8680
8681 FILE *f = fopen ("conftest.val", "w");
8682 if (! f)
8683 return 1;
8684 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8685 {
8686 long int i = longval ();
8687 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8688 return 1;
8689 fprintf (f, "%ld\n", i);
8690 }
8691 else
8692 {
8693 unsigned long int i = ulongval ();
8694 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8695 return 1;
8696 fprintf (f, "%lu\n", i);
8697 }
8698 return ferror (f) || fclose (f) != 0;
8699
8700 ;
8701 return 0;
8702}
8703_ACEOF
8704rm -f conftest$ac_exeext
8705if { (ac_try="$ac_link"
8706case "(($ac_try" in
8707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8708 *) ac_try_echo=$ac_try;;
8709esac
8710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8711 (eval "$ac_link") 2>&5
8712 ac_status=$?
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8715 { (case "(($ac_try" in
8716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8717 *) ac_try_echo=$ac_try;;
8718esac
8719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8720 (eval "$ac_try") 2>&5
8721 ac_status=$?
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); }; }; then
8724 ac_cv_sizeof_short=`cat conftest.val`
8725else
8726 echo "$as_me: program exited with status $ac_status" >&5
8727echo "$as_me: failed program was:" >&5
8728sed 's/^/| /' conftest.$ac_ext >&5
8729
8730( exit $ac_status )
8731if test "$ac_cv_type_short" = yes; then
8732 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8733See \`config.log' for more details." >&5
8734echo "$as_me: error: cannot compute sizeof (short)
8735See \`config.log' for more details." >&2;}
8736 { (exit 77); exit 77; }; }
8737 else
8738 ac_cv_sizeof_short=0
8739 fi
8740fi 8404fi
8741rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8742fi
8743rm -f conftest.val
8744fi
8745{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 8405{ echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
8746echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } 8406echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
8407 case $ac_cv_c_uint32_t in #(
8408 no|yes) ;; #(
8409 *)
8747 8410
8411cat >>confdefs.h <<\_ACEOF
8412#define _UINT32_T 1
8413_ACEOF
8748 8414
8749 8415
8750cat >>confdefs.h <<_ACEOF 8416cat >>confdefs.h <<_ACEOF
8751#define SIZEOF_SHORT $ac_cv_sizeof_short 8417#define uint32_t $ac_cv_c_uint32_t
8752_ACEOF 8418_ACEOF
8753 8419;;
8754
8755{ echo "$as_me:$LINENO: checking for int" >&5
8756echo $ECHO_N "checking for int... $ECHO_C" >&6; }
8757if test "${ac_cv_type_int+set}" = set; then
8758 echo $ECHO_N "(cached) $ECHO_C" >&6
8759else
8760 cat >conftest.$ac_ext <<_ACEOF
8761/* confdefs.h. */
8762_ACEOF
8763cat confdefs.h >>conftest.$ac_ext
8764cat >>conftest.$ac_ext <<_ACEOF
8765/* end confdefs.h. */
8766$ac_includes_default
8767typedef int ac__type_new_;
8768int
8769main ()
8770{
8771if ((ac__type_new_ *) 0)
8772 return 0;
8773if (sizeof (ac__type_new_))
8774 return 0;
8775 ;
8776 return 0;
8777}
8778_ACEOF
8779rm -f conftest.$ac_objext
8780if { (ac_try="$ac_compile"
8781case "(($ac_try" in
8782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8783 *) ac_try_echo=$ac_try;;
8784esac 8420 esac
8785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8786 (eval "$ac_compile") 2>conftest.er1
8787 ac_status=$?
8788 grep -v '^ *+' conftest.er1 >conftest.err
8789 rm -f conftest.er1
8790 cat conftest.err >&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); } && {
8793 test -z "$ac_cxx_werror_flag" ||
8794 test ! -s conftest.err
8795 } && test -s conftest.$ac_objext; then
8796 ac_cv_type_int=yes
8797else
8798 echo "$as_me: failed program was:" >&5
8799sed 's/^/| /' conftest.$ac_ext >&5
8800 8421
8801 ac_cv_type_int=no
8802fi
8803 8422
8804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8805fi
8806{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8807echo "${ECHO_T}$ac_cv_type_int" >&6; }
8808 8423
8809# The cast to long int works around a bug in the HP C Compiler
8810# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8811# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8812# This bug is HP SR number 8606223364.
8813{ echo "$as_me:$LINENO: checking size of int" >&5
8814echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
8815if test "${ac_cv_sizeof_int+set}" = set; then
8816 echo $ECHO_N "(cached) $ECHO_C" >&6
8817else
8818 if test "$cross_compiling" = yes; then
8819 # Depending upon the size, compute the lo and hi bounds.
8820cat >conftest.$ac_ext <<_ACEOF
8821/* confdefs.h. */
8822_ACEOF
8823cat confdefs.h >>conftest.$ac_ext
8824cat >>conftest.$ac_ext <<_ACEOF
8825/* end confdefs.h. */
8826$ac_includes_default
8827 typedef int ac__type_sizeof_;
8828int
8829main ()
8830{
8831static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8832test_array [0] = 0
8833
8834 ;
8835 return 0;
8836}
8837_ACEOF
8838rm -f conftest.$ac_objext
8839if { (ac_try="$ac_compile"
8840case "(($ac_try" in
8841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842 *) ac_try_echo=$ac_try;;
8843esac
8844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8845 (eval "$ac_compile") 2>conftest.er1
8846 ac_status=$?
8847 grep -v '^ *+' conftest.er1 >conftest.err
8848 rm -f conftest.er1
8849 cat conftest.err >&5
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); } && {
8852 test -z "$ac_cxx_werror_flag" ||
8853 test ! -s conftest.err
8854 } && test -s conftest.$ac_objext; then
8855 ac_lo=0 ac_mid=0
8856 while :; do
8857 cat >conftest.$ac_ext <<_ACEOF
8858/* confdefs.h. */
8859_ACEOF
8860cat confdefs.h >>conftest.$ac_ext
8861cat >>conftest.$ac_ext <<_ACEOF
8862/* end confdefs.h. */
8863$ac_includes_default
8864 typedef int ac__type_sizeof_;
8865int
8866main ()
8867{
8868static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8869test_array [0] = 0
8870
8871 ;
8872 return 0;
8873}
8874_ACEOF
8875rm -f conftest.$ac_objext
8876if { (ac_try="$ac_compile"
8877case "(($ac_try" in
8878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8879 *) ac_try_echo=$ac_try;;
8880esac
8881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8882 (eval "$ac_compile") 2>conftest.er1
8883 ac_status=$?
8884 grep -v '^ *+' conftest.er1 >conftest.err
8885 rm -f conftest.er1
8886 cat conftest.err >&5
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); } && {
8889 test -z "$ac_cxx_werror_flag" ||
8890 test ! -s conftest.err
8891 } && test -s conftest.$ac_objext; then
8892 ac_hi=$ac_mid; break
8893else
8894 echo "$as_me: failed program was:" >&5
8895sed 's/^/| /' conftest.$ac_ext >&5
8896
8897 ac_lo=`expr $ac_mid + 1`
8898 if test $ac_lo -le $ac_mid; then
8899 ac_lo= ac_hi=
8900 break
8901 fi
8902 ac_mid=`expr 2 '*' $ac_mid + 1`
8903fi
8904
8905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8906 done
8907else
8908 echo "$as_me: failed program was:" >&5
8909sed 's/^/| /' conftest.$ac_ext >&5
8910
8911 cat >conftest.$ac_ext <<_ACEOF
8912/* confdefs.h. */
8913_ACEOF
8914cat confdefs.h >>conftest.$ac_ext
8915cat >>conftest.$ac_ext <<_ACEOF
8916/* end confdefs.h. */
8917$ac_includes_default
8918 typedef int ac__type_sizeof_;
8919int
8920main ()
8921{
8922static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8923test_array [0] = 0
8924
8925 ;
8926 return 0;
8927}
8928_ACEOF
8929rm -f conftest.$ac_objext
8930if { (ac_try="$ac_compile"
8931case "(($ac_try" in
8932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8933 *) ac_try_echo=$ac_try;;
8934esac
8935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8936 (eval "$ac_compile") 2>conftest.er1
8937 ac_status=$?
8938 grep -v '^ *+' conftest.er1 >conftest.err
8939 rm -f conftest.er1
8940 cat conftest.err >&5
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 (exit $ac_status); } && {
8943 test -z "$ac_cxx_werror_flag" ||
8944 test ! -s conftest.err
8945 } && test -s conftest.$ac_objext; then
8946 ac_hi=-1 ac_mid=-1
8947 while :; do
8948 cat >conftest.$ac_ext <<_ACEOF
8949/* confdefs.h. */
8950_ACEOF
8951cat confdefs.h >>conftest.$ac_ext
8952cat >>conftest.$ac_ext <<_ACEOF
8953/* end confdefs.h. */
8954$ac_includes_default
8955 typedef int ac__type_sizeof_;
8956int
8957main ()
8958{
8959static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8960test_array [0] = 0
8961
8962 ;
8963 return 0;
8964}
8965_ACEOF
8966rm -f conftest.$ac_objext
8967if { (ac_try="$ac_compile"
8968case "(($ac_try" in
8969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8970 *) ac_try_echo=$ac_try;;
8971esac
8972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8973 (eval "$ac_compile") 2>conftest.er1
8974 ac_status=$?
8975 grep -v '^ *+' conftest.er1 >conftest.err
8976 rm -f conftest.er1
8977 cat conftest.err >&5
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); } && {
8980 test -z "$ac_cxx_werror_flag" ||
8981 test ! -s conftest.err
8982 } && test -s conftest.$ac_objext; then
8983 ac_lo=$ac_mid; break
8984else
8985 echo "$as_me: failed program was:" >&5
8986sed 's/^/| /' conftest.$ac_ext >&5
8987
8988 ac_hi=`expr '(' $ac_mid ')' - 1`
8989 if test $ac_mid -le $ac_hi; then
8990 ac_lo= ac_hi=
8991 break
8992 fi
8993 ac_mid=`expr 2 '*' $ac_mid`
8994fi
8995
8996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8997 done
8998else
8999 echo "$as_me: failed program was:" >&5
9000sed 's/^/| /' conftest.$ac_ext >&5
9001
9002 ac_lo= ac_hi=
9003fi
9004
9005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9006fi
9007
9008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9009# Binary search between lo and hi bounds.
9010while test "x$ac_lo" != "x$ac_hi"; do
9011 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9012 cat >conftest.$ac_ext <<_ACEOF
9013/* confdefs.h. */
9014_ACEOF
9015cat confdefs.h >>conftest.$ac_ext
9016cat >>conftest.$ac_ext <<_ACEOF
9017/* end confdefs.h. */
9018$ac_includes_default
9019 typedef int ac__type_sizeof_;
9020int
9021main ()
9022{
9023static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9024test_array [0] = 0
9025
9026 ;
9027 return 0;
9028}
9029_ACEOF
9030rm -f conftest.$ac_objext
9031if { (ac_try="$ac_compile"
9032case "(($ac_try" in
9033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9034 *) ac_try_echo=$ac_try;;
9035esac
9036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9037 (eval "$ac_compile") 2>conftest.er1
9038 ac_status=$?
9039 grep -v '^ *+' conftest.er1 >conftest.err
9040 rm -f conftest.er1
9041 cat conftest.err >&5
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); } && {
9044 test -z "$ac_cxx_werror_flag" ||
9045 test ! -s conftest.err
9046 } && test -s conftest.$ac_objext; then
9047 ac_hi=$ac_mid
9048else
9049 echo "$as_me: failed program was:" >&5
9050sed 's/^/| /' conftest.$ac_ext >&5
9051
9052 ac_lo=`expr '(' $ac_mid ')' + 1`
9053fi
9054
9055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9056done
9057case $ac_lo in
9058?*) ac_cv_sizeof_int=$ac_lo;;
9059'') if test "$ac_cv_type_int" = yes; then
9060 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
9061See \`config.log' for more details." >&5
9062echo "$as_me: error: cannot compute sizeof (int)
9063See \`config.log' for more details." >&2;}
9064 { (exit 77); exit 77; }; }
9065 else
9066 ac_cv_sizeof_int=0
9067 fi ;;
9068esac
9069else
9070 cat >conftest.$ac_ext <<_ACEOF
9071/* confdefs.h. */
9072_ACEOF
9073cat confdefs.h >>conftest.$ac_ext
9074cat >>conftest.$ac_ext <<_ACEOF
9075/* end confdefs.h. */
9076$ac_includes_default
9077 typedef int ac__type_sizeof_;
9078static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9079static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9080#include <stdio.h>
9081#include <stdlib.h>
9082int
9083main ()
9084{
9085
9086 FILE *f = fopen ("conftest.val", "w");
9087 if (! f)
9088 return 1;
9089 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9090 {
9091 long int i = longval ();
9092 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9093 return 1;
9094 fprintf (f, "%ld\n", i);
9095 }
9096 else
9097 {
9098 unsigned long int i = ulongval ();
9099 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9100 return 1;
9101 fprintf (f, "%lu\n", i);
9102 }
9103 return ferror (f) || fclose (f) != 0;
9104
9105 ;
9106 return 0;
9107}
9108_ACEOF
9109rm -f conftest$ac_exeext
9110if { (ac_try="$ac_link"
9111case "(($ac_try" in
9112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9113 *) ac_try_echo=$ac_try;;
9114esac
9115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9116 (eval "$ac_link") 2>&5
9117 ac_status=$?
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9120 { (case "(($ac_try" in
9121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9122 *) ac_try_echo=$ac_try;;
9123esac
9124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9125 (eval "$ac_try") 2>&5
9126 ac_status=$?
9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 (exit $ac_status); }; }; then
9129 ac_cv_sizeof_int=`cat conftest.val`
9130else
9131 echo "$as_me: program exited with status $ac_status" >&5
9132echo "$as_me: failed program was:" >&5
9133sed 's/^/| /' conftest.$ac_ext >&5
9134
9135( exit $ac_status )
9136if test "$ac_cv_type_int" = yes; then
9137 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
9138See \`config.log' for more details." >&5
9139echo "$as_me: error: cannot compute sizeof (int)
9140See \`config.log' for more details." >&2;}
9141 { (exit 77); exit 77; }; }
9142 else
9143 ac_cv_sizeof_int=0
9144 fi
9145fi
9146rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9147fi
9148rm -f conftest.val
9149fi
9150{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
9151echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
9152
9153
9154
9155cat >>confdefs.h <<_ACEOF
9156#define SIZEOF_INT $ac_cv_sizeof_int
9157_ACEOF
9158
9159
9160{ echo "$as_me:$LINENO: checking for long long" >&5
9161echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
9162if test "${ac_cv_type_long_long+set}" = set; then
9163 echo $ECHO_N "(cached) $ECHO_C" >&6
9164else
9165 cat >conftest.$ac_ext <<_ACEOF
9166/* confdefs.h. */
9167_ACEOF
9168cat confdefs.h >>conftest.$ac_ext
9169cat >>conftest.$ac_ext <<_ACEOF
9170/* end confdefs.h. */
9171$ac_includes_default
9172typedef long long ac__type_new_;
9173int
9174main ()
9175{
9176if ((ac__type_new_ *) 0)
9177 return 0;
9178if (sizeof (ac__type_new_))
9179 return 0;
9180 ;
9181 return 0;
9182}
9183_ACEOF
9184rm -f conftest.$ac_objext
9185if { (ac_try="$ac_compile"
9186case "(($ac_try" in
9187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9188 *) ac_try_echo=$ac_try;;
9189esac
9190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9191 (eval "$ac_compile") 2>conftest.er1
9192 ac_status=$?
9193 grep -v '^ *+' conftest.er1 >conftest.err
9194 rm -f conftest.er1
9195 cat conftest.err >&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } && {
9198 test -z "$ac_cxx_werror_flag" ||
9199 test ! -s conftest.err
9200 } && test -s conftest.$ac_objext; then
9201 ac_cv_type_long_long=yes
9202else
9203 echo "$as_me: failed program was:" >&5
9204sed 's/^/| /' conftest.$ac_ext >&5
9205
9206 ac_cv_type_long_long=no
9207fi
9208
9209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9210fi
9211{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9212echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
9213
9214# The cast to long int works around a bug in the HP C Compiler
9215# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9216# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9217# This bug is HP SR number 8606223364.
9218{ echo "$as_me:$LINENO: checking size of long long" >&5
9219echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
9220if test "${ac_cv_sizeof_long_long+set}" = set; then
9221 echo $ECHO_N "(cached) $ECHO_C" >&6
9222else
9223 if test "$cross_compiling" = yes; then
9224 # Depending upon the size, compute the lo and hi bounds.
9225cat >conftest.$ac_ext <<_ACEOF
9226/* confdefs.h. */
9227_ACEOF
9228cat confdefs.h >>conftest.$ac_ext
9229cat >>conftest.$ac_ext <<_ACEOF
9230/* end confdefs.h. */
9231$ac_includes_default
9232 typedef long long ac__type_sizeof_;
9233int
9234main ()
9235{
9236static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9237test_array [0] = 0
9238
9239 ;
9240 return 0;
9241}
9242_ACEOF
9243rm -f conftest.$ac_objext
9244if { (ac_try="$ac_compile"
9245case "(($ac_try" in
9246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9247 *) ac_try_echo=$ac_try;;
9248esac
9249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9250 (eval "$ac_compile") 2>conftest.er1
9251 ac_status=$?
9252 grep -v '^ *+' conftest.er1 >conftest.err
9253 rm -f conftest.er1
9254 cat conftest.err >&5
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 (exit $ac_status); } && {
9257 test -z "$ac_cxx_werror_flag" ||
9258 test ! -s conftest.err
9259 } && test -s conftest.$ac_objext; then
9260 ac_lo=0 ac_mid=0
9261 while :; do
9262 cat >conftest.$ac_ext <<_ACEOF
9263/* confdefs.h. */
9264_ACEOF
9265cat confdefs.h >>conftest.$ac_ext
9266cat >>conftest.$ac_ext <<_ACEOF
9267/* end confdefs.h. */
9268$ac_includes_default
9269 typedef long long ac__type_sizeof_;
9270int
9271main ()
9272{
9273static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9274test_array [0] = 0
9275
9276 ;
9277 return 0;
9278}
9279_ACEOF
9280rm -f conftest.$ac_objext
9281if { (ac_try="$ac_compile"
9282case "(($ac_try" in
9283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9284 *) ac_try_echo=$ac_try;;
9285esac
9286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9287 (eval "$ac_compile") 2>conftest.er1
9288 ac_status=$?
9289 grep -v '^ *+' conftest.er1 >conftest.err
9290 rm -f conftest.er1
9291 cat conftest.err >&5
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); } && {
9294 test -z "$ac_cxx_werror_flag" ||
9295 test ! -s conftest.err
9296 } && test -s conftest.$ac_objext; then
9297 ac_hi=$ac_mid; break
9298else
9299 echo "$as_me: failed program was:" >&5
9300sed 's/^/| /' conftest.$ac_ext >&5
9301
9302 ac_lo=`expr $ac_mid + 1`
9303 if test $ac_lo -le $ac_mid; then
9304 ac_lo= ac_hi=
9305 break
9306 fi
9307 ac_mid=`expr 2 '*' $ac_mid + 1`
9308fi
9309
9310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9311 done
9312else
9313 echo "$as_me: failed program was:" >&5
9314sed 's/^/| /' conftest.$ac_ext >&5
9315
9316 cat >conftest.$ac_ext <<_ACEOF
9317/* confdefs.h. */
9318_ACEOF
9319cat confdefs.h >>conftest.$ac_ext
9320cat >>conftest.$ac_ext <<_ACEOF
9321/* end confdefs.h. */
9322$ac_includes_default
9323 typedef long long ac__type_sizeof_;
9324int
9325main ()
9326{
9327static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9328test_array [0] = 0
9329
9330 ;
9331 return 0;
9332}
9333_ACEOF
9334rm -f conftest.$ac_objext
9335if { (ac_try="$ac_compile"
9336case "(($ac_try" in
9337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9338 *) ac_try_echo=$ac_try;;
9339esac
9340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9341 (eval "$ac_compile") 2>conftest.er1
9342 ac_status=$?
9343 grep -v '^ *+' conftest.er1 >conftest.err
9344 rm -f conftest.er1
9345 cat conftest.err >&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); } && {
9348 test -z "$ac_cxx_werror_flag" ||
9349 test ! -s conftest.err
9350 } && test -s conftest.$ac_objext; then
9351 ac_hi=-1 ac_mid=-1
9352 while :; do
9353 cat >conftest.$ac_ext <<_ACEOF
9354/* confdefs.h. */
9355_ACEOF
9356cat confdefs.h >>conftest.$ac_ext
9357cat >>conftest.$ac_ext <<_ACEOF
9358/* end confdefs.h. */
9359$ac_includes_default
9360 typedef long long ac__type_sizeof_;
9361int
9362main ()
9363{
9364static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9365test_array [0] = 0
9366
9367 ;
9368 return 0;
9369}
9370_ACEOF
9371rm -f conftest.$ac_objext
9372if { (ac_try="$ac_compile"
9373case "(($ac_try" in
9374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9375 *) ac_try_echo=$ac_try;;
9376esac
9377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9378 (eval "$ac_compile") 2>conftest.er1
9379 ac_status=$?
9380 grep -v '^ *+' conftest.er1 >conftest.err
9381 rm -f conftest.er1
9382 cat conftest.err >&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); } && {
9385 test -z "$ac_cxx_werror_flag" ||
9386 test ! -s conftest.err
9387 } && test -s conftest.$ac_objext; then
9388 ac_lo=$ac_mid; break
9389else
9390 echo "$as_me: failed program was:" >&5
9391sed 's/^/| /' conftest.$ac_ext >&5
9392
9393 ac_hi=`expr '(' $ac_mid ')' - 1`
9394 if test $ac_mid -le $ac_hi; then
9395 ac_lo= ac_hi=
9396 break
9397 fi
9398 ac_mid=`expr 2 '*' $ac_mid`
9399fi
9400
9401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9402 done
9403else
9404 echo "$as_me: failed program was:" >&5
9405sed 's/^/| /' conftest.$ac_ext >&5
9406
9407 ac_lo= ac_hi=
9408fi
9409
9410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9411fi
9412
9413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9414# Binary search between lo and hi bounds.
9415while test "x$ac_lo" != "x$ac_hi"; do
9416 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9417 cat >conftest.$ac_ext <<_ACEOF
9418/* confdefs.h. */
9419_ACEOF
9420cat confdefs.h >>conftest.$ac_ext
9421cat >>conftest.$ac_ext <<_ACEOF
9422/* end confdefs.h. */
9423$ac_includes_default
9424 typedef long long ac__type_sizeof_;
9425int
9426main ()
9427{
9428static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9429test_array [0] = 0
9430
9431 ;
9432 return 0;
9433}
9434_ACEOF
9435rm -f conftest.$ac_objext
9436if { (ac_try="$ac_compile"
9437case "(($ac_try" in
9438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9439 *) ac_try_echo=$ac_try;;
9440esac
9441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9442 (eval "$ac_compile") 2>conftest.er1
9443 ac_status=$?
9444 grep -v '^ *+' conftest.er1 >conftest.err
9445 rm -f conftest.er1
9446 cat conftest.err >&5
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); } && {
9449 test -z "$ac_cxx_werror_flag" ||
9450 test ! -s conftest.err
9451 } && test -s conftest.$ac_objext; then
9452 ac_hi=$ac_mid
9453else
9454 echo "$as_me: failed program was:" >&5
9455sed 's/^/| /' conftest.$ac_ext >&5
9456
9457 ac_lo=`expr '(' $ac_mid ')' + 1`
9458fi
9459
9460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9461done
9462case $ac_lo in
9463?*) ac_cv_sizeof_long_long=$ac_lo;;
9464'') if test "$ac_cv_type_long_long" = yes; then
9465 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9466See \`config.log' for more details." >&5
9467echo "$as_me: error: cannot compute sizeof (long long)
9468See \`config.log' for more details." >&2;}
9469 { (exit 77); exit 77; }; }
9470 else
9471 ac_cv_sizeof_long_long=0
9472 fi ;;
9473esac
9474else
9475 cat >conftest.$ac_ext <<_ACEOF
9476/* confdefs.h. */
9477_ACEOF
9478cat confdefs.h >>conftest.$ac_ext
9479cat >>conftest.$ac_ext <<_ACEOF
9480/* end confdefs.h. */
9481$ac_includes_default
9482 typedef long long ac__type_sizeof_;
9483static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9484static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9485#include <stdio.h>
9486#include <stdlib.h>
9487int
9488main ()
9489{
9490
9491 FILE *f = fopen ("conftest.val", "w");
9492 if (! f)
9493 return 1;
9494 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9495 {
9496 long int i = longval ();
9497 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9498 return 1;
9499 fprintf (f, "%ld\n", i);
9500 }
9501 else
9502 {
9503 unsigned long int i = ulongval ();
9504 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9505 return 1;
9506 fprintf (f, "%lu\n", i);
9507 }
9508 return ferror (f) || fclose (f) != 0;
9509
9510 ;
9511 return 0;
9512}
9513_ACEOF
9514rm -f conftest$ac_exeext
9515if { (ac_try="$ac_link"
9516case "(($ac_try" in
9517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9518 *) ac_try_echo=$ac_try;;
9519esac
9520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9521 (eval "$ac_link") 2>&5
9522 ac_status=$?
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9525 { (case "(($ac_try" in
9526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9527 *) ac_try_echo=$ac_try;;
9528esac
9529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9530 (eval "$ac_try") 2>&5
9531 ac_status=$?
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); }; }; then
9534 ac_cv_sizeof_long_long=`cat conftest.val`
9535else
9536 echo "$as_me: program exited with status $ac_status" >&5
9537echo "$as_me: failed program was:" >&5
9538sed 's/^/| /' conftest.$ac_ext >&5
9539
9540( exit $ac_status )
9541if test "$ac_cv_type_long_long" = yes; then
9542 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9543See \`config.log' for more details." >&5
9544echo "$as_me: error: cannot compute sizeof (long long)
9545See \`config.log' for more details." >&2;}
9546 { (exit 77); exit 77; }; }
9547 else
9548 ac_cv_sizeof_long_long=0
9549 fi
9550fi
9551rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9552fi
9553rm -f conftest.val
9554fi
9555{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
9556echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
9557
9558
9559
9560cat >>confdefs.h <<_ACEOF
9561#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9562_ACEOF
9563
9564
9565{ echo "$as_me:$LINENO: checking for int *" >&5
9566echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
9567if test "${ac_cv_type_int_p+set}" = set; then
9568 echo $ECHO_N "(cached) $ECHO_C" >&6
9569else
9570 cat >conftest.$ac_ext <<_ACEOF
9571/* confdefs.h. */
9572_ACEOF
9573cat confdefs.h >>conftest.$ac_ext
9574cat >>conftest.$ac_ext <<_ACEOF
9575/* end confdefs.h. */
9576$ac_includes_default
9577typedef int * ac__type_new_;
9578int
9579main ()
9580{
9581if ((ac__type_new_ *) 0)
9582 return 0;
9583if (sizeof (ac__type_new_))
9584 return 0;
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 ac_cv_type_int_p=yes
9607else
9608 echo "$as_me: failed program was:" >&5
9609sed 's/^/| /' conftest.$ac_ext >&5
9610
9611 ac_cv_type_int_p=no
9612fi
9613
9614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9615fi
9616{ echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
9617echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
9618
9619# The cast to long int works around a bug in the HP C Compiler
9620# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9621# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9622# This bug is HP SR number 8606223364.
9623{ echo "$as_me:$LINENO: checking size of int *" >&5
9624echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
9625if test "${ac_cv_sizeof_int_p+set}" = set; then
9626 echo $ECHO_N "(cached) $ECHO_C" >&6
9627else
9628 if test "$cross_compiling" = yes; then
9629 # Depending upon the size, compute the lo and hi bounds.
9630cat >conftest.$ac_ext <<_ACEOF
9631/* confdefs.h. */
9632_ACEOF
9633cat confdefs.h >>conftest.$ac_ext
9634cat >>conftest.$ac_ext <<_ACEOF
9635/* end confdefs.h. */
9636$ac_includes_default
9637 typedef int * ac__type_sizeof_;
9638int
9639main ()
9640{
9641static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9642test_array [0] = 0
9643
9644 ;
9645 return 0;
9646}
9647_ACEOF
9648rm -f conftest.$ac_objext
9649if { (ac_try="$ac_compile"
9650case "(($ac_try" in
9651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9652 *) ac_try_echo=$ac_try;;
9653esac
9654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9655 (eval "$ac_compile") 2>conftest.er1
9656 ac_status=$?
9657 grep -v '^ *+' conftest.er1 >conftest.err
9658 rm -f conftest.er1
9659 cat conftest.err >&5
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); } && {
9662 test -z "$ac_cxx_werror_flag" ||
9663 test ! -s conftest.err
9664 } && test -s conftest.$ac_objext; then
9665 ac_lo=0 ac_mid=0
9666 while :; do
9667 cat >conftest.$ac_ext <<_ACEOF
9668/* confdefs.h. */
9669_ACEOF
9670cat confdefs.h >>conftest.$ac_ext
9671cat >>conftest.$ac_ext <<_ACEOF
9672/* end confdefs.h. */
9673$ac_includes_default
9674 typedef int * ac__type_sizeof_;
9675int
9676main ()
9677{
9678static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9679test_array [0] = 0
9680
9681 ;
9682 return 0;
9683}
9684_ACEOF
9685rm -f conftest.$ac_objext
9686if { (ac_try="$ac_compile"
9687case "(($ac_try" in
9688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9689 *) ac_try_echo=$ac_try;;
9690esac
9691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9692 (eval "$ac_compile") 2>conftest.er1
9693 ac_status=$?
9694 grep -v '^ *+' conftest.er1 >conftest.err
9695 rm -f conftest.er1
9696 cat conftest.err >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); } && {
9699 test -z "$ac_cxx_werror_flag" ||
9700 test ! -s conftest.err
9701 } && test -s conftest.$ac_objext; then
9702 ac_hi=$ac_mid; break
9703else
9704 echo "$as_me: failed program was:" >&5
9705sed 's/^/| /' conftest.$ac_ext >&5
9706
9707 ac_lo=`expr $ac_mid + 1`
9708 if test $ac_lo -le $ac_mid; then
9709 ac_lo= ac_hi=
9710 break
9711 fi
9712 ac_mid=`expr 2 '*' $ac_mid + 1`
9713fi
9714
9715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9716 done
9717else
9718 echo "$as_me: failed program was:" >&5
9719sed 's/^/| /' conftest.$ac_ext >&5
9720
9721 cat >conftest.$ac_ext <<_ACEOF
9722/* confdefs.h. */
9723_ACEOF
9724cat confdefs.h >>conftest.$ac_ext
9725cat >>conftest.$ac_ext <<_ACEOF
9726/* end confdefs.h. */
9727$ac_includes_default
9728 typedef int * ac__type_sizeof_;
9729int
9730main ()
9731{
9732static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9733test_array [0] = 0
9734
9735 ;
9736 return 0;
9737}
9738_ACEOF
9739rm -f conftest.$ac_objext
9740if { (ac_try="$ac_compile"
9741case "(($ac_try" in
9742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9743 *) ac_try_echo=$ac_try;;
9744esac
9745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9746 (eval "$ac_compile") 2>conftest.er1
9747 ac_status=$?
9748 grep -v '^ *+' conftest.er1 >conftest.err
9749 rm -f conftest.er1
9750 cat conftest.err >&5
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); } && {
9753 test -z "$ac_cxx_werror_flag" ||
9754 test ! -s conftest.err
9755 } && test -s conftest.$ac_objext; then
9756 ac_hi=-1 ac_mid=-1
9757 while :; do
9758 cat >conftest.$ac_ext <<_ACEOF
9759/* confdefs.h. */
9760_ACEOF
9761cat confdefs.h >>conftest.$ac_ext
9762cat >>conftest.$ac_ext <<_ACEOF
9763/* end confdefs.h. */
9764$ac_includes_default
9765 typedef int * ac__type_sizeof_;
9766int
9767main ()
9768{
9769static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9770test_array [0] = 0
9771
9772 ;
9773 return 0;
9774}
9775_ACEOF
9776rm -f conftest.$ac_objext
9777if { (ac_try="$ac_compile"
9778case "(($ac_try" in
9779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9780 *) ac_try_echo=$ac_try;;
9781esac
9782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9783 (eval "$ac_compile") 2>conftest.er1
9784 ac_status=$?
9785 grep -v '^ *+' conftest.er1 >conftest.err
9786 rm -f conftest.er1
9787 cat conftest.err >&5
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); } && {
9790 test -z "$ac_cxx_werror_flag" ||
9791 test ! -s conftest.err
9792 } && test -s conftest.$ac_objext; then
9793 ac_lo=$ac_mid; break
9794else
9795 echo "$as_me: failed program was:" >&5
9796sed 's/^/| /' conftest.$ac_ext >&5
9797
9798 ac_hi=`expr '(' $ac_mid ')' - 1`
9799 if test $ac_mid -le $ac_hi; then
9800 ac_lo= ac_hi=
9801 break
9802 fi
9803 ac_mid=`expr 2 '*' $ac_mid`
9804fi
9805
9806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9807 done
9808else
9809 echo "$as_me: failed program was:" >&5
9810sed 's/^/| /' conftest.$ac_ext >&5
9811
9812 ac_lo= ac_hi=
9813fi
9814
9815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9816fi
9817
9818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9819# Binary search between lo and hi bounds.
9820while test "x$ac_lo" != "x$ac_hi"; do
9821 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9822 cat >conftest.$ac_ext <<_ACEOF
9823/* confdefs.h. */
9824_ACEOF
9825cat confdefs.h >>conftest.$ac_ext
9826cat >>conftest.$ac_ext <<_ACEOF
9827/* end confdefs.h. */
9828$ac_includes_default
9829 typedef int * ac__type_sizeof_;
9830int
9831main ()
9832{
9833static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9834test_array [0] = 0
9835
9836 ;
9837 return 0;
9838}
9839_ACEOF
9840rm -f conftest.$ac_objext
9841if { (ac_try="$ac_compile"
9842case "(($ac_try" in
9843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9844 *) ac_try_echo=$ac_try;;
9845esac
9846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9847 (eval "$ac_compile") 2>conftest.er1
9848 ac_status=$?
9849 grep -v '^ *+' conftest.er1 >conftest.err
9850 rm -f conftest.er1
9851 cat conftest.err >&5
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); } && {
9854 test -z "$ac_cxx_werror_flag" ||
9855 test ! -s conftest.err
9856 } && test -s conftest.$ac_objext; then
9857 ac_hi=$ac_mid
9858else
9859 echo "$as_me: failed program was:" >&5
9860sed 's/^/| /' conftest.$ac_ext >&5
9861
9862 ac_lo=`expr '(' $ac_mid ')' + 1`
9863fi
9864
9865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9866done
9867case $ac_lo in
9868?*) ac_cv_sizeof_int_p=$ac_lo;;
9869'') if test "$ac_cv_type_int_p" = yes; then
9870 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
9871See \`config.log' for more details." >&5
9872echo "$as_me: error: cannot compute sizeof (int *)
9873See \`config.log' for more details." >&2;}
9874 { (exit 77); exit 77; }; }
9875 else
9876 ac_cv_sizeof_int_p=0
9877 fi ;;
9878esac
9879else
9880 cat >conftest.$ac_ext <<_ACEOF
9881/* confdefs.h. */
9882_ACEOF
9883cat confdefs.h >>conftest.$ac_ext
9884cat >>conftest.$ac_ext <<_ACEOF
9885/* end confdefs.h. */
9886$ac_includes_default
9887 typedef int * ac__type_sizeof_;
9888static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9889static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9890#include <stdio.h>
9891#include <stdlib.h>
9892int
9893main ()
9894{
9895
9896 FILE *f = fopen ("conftest.val", "w");
9897 if (! f)
9898 return 1;
9899 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9900 {
9901 long int i = longval ();
9902 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9903 return 1;
9904 fprintf (f, "%ld\n", i);
9905 }
9906 else
9907 {
9908 unsigned long int i = ulongval ();
9909 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9910 return 1;
9911 fprintf (f, "%lu\n", i);
9912 }
9913 return ferror (f) || fclose (f) != 0;
9914
9915 ;
9916 return 0;
9917}
9918_ACEOF
9919rm -f conftest$ac_exeext
9920if { (ac_try="$ac_link"
9921case "(($ac_try" in
9922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9923 *) ac_try_echo=$ac_try;;
9924esac
9925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9926 (eval "$ac_link") 2>&5
9927 ac_status=$?
9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9930 { (case "(($ac_try" in
9931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9932 *) ac_try_echo=$ac_try;;
9933esac
9934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9935 (eval "$ac_try") 2>&5
9936 ac_status=$?
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); }; }; then
9939 ac_cv_sizeof_int_p=`cat conftest.val`
9940else
9941 echo "$as_me: program exited with status $ac_status" >&5
9942echo "$as_me: failed program was:" >&5
9943sed 's/^/| /' conftest.$ac_ext >&5
9944
9945( exit $ac_status )
9946if test "$ac_cv_type_int_p" = yes; then
9947 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
9948See \`config.log' for more details." >&5
9949echo "$as_me: error: cannot compute sizeof (int *)
9950See \`config.log' for more details." >&2;}
9951 { (exit 77); exit 77; }; }
9952 else
9953 ac_cv_sizeof_int_p=0
9954 fi
9955fi
9956rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9957fi
9958rm -f conftest.val
9959fi
9960{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
9961echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
9962
9963
9964
9965cat >>confdefs.h <<_ACEOF
9966#define SIZEOF_INT_P $ac_cv_sizeof_int_p
9967_ACEOF
9968
9969
9970
9971
9972{ echo "$as_me:$LINENO: checking for int16_t" >&5
9973echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
9974if test "${rxvt_cv_int16_t+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9976else
9977 cat >conftest.$ac_ext <<_ACEOF
9978/* confdefs.h. */
9979_ACEOF
9980cat confdefs.h >>conftest.$ac_ext
9981cat >>conftest.$ac_ext <<_ACEOF
9982/* end confdefs.h. */
9983#include <stdint.h>
9984int
9985main ()
9986{
9987int16_t dummy;
9988 ;
9989 return 0;
9990}
9991_ACEOF
9992rm -f conftest.$ac_objext
9993if { (ac_try="$ac_compile"
9994case "(($ac_try" in
9995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9996 *) ac_try_echo=$ac_try;;
9997esac
9998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9999 (eval "$ac_compile") 2>conftest.er1
10000 ac_status=$?
10001 grep -v '^ *+' conftest.er1 >conftest.err
10002 rm -f conftest.er1
10003 cat conftest.err >&5
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); } && {
10006 test -z "$ac_cxx_werror_flag" ||
10007 test ! -s conftest.err
10008 } && test -s conftest.$ac_objext; then
10009 rxvt_cv_int16_t=yes
10010else
10011 echo "$as_me: failed program was:" >&5
10012sed 's/^/| /' conftest.$ac_ext >&5
10013
10014 if test "$ac_cv_sizeof_char" -ge 2; then
10015 rxvt_cv_int16_t=" char"
10016else
10017 if test "$ac_cv_sizeof_short" -ge 2; then
10018 rxvt_cv_int16_t=" short"
10019 else
10020 if test "$ac_cv_sizeof_int" -ge 2; then
10021 rxvt_cv_int16_t=" int"
10022 else
10023 if test "$ac_cv_sizeof_long" -ge 2; then
10024 rxvt_cv_int16_t=" long"
10025 else
10026 if test "$ac_cv_sizeof_long_long" -ge 2; then
10027 rxvt_cv_int16_t=" long long"
10028 else
10029 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
10030 fi
10031 fi
10032 fi
10033 fi
10034fi
10035fi
10036
10037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10038fi
10039{ echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
10040echo "${ECHO_T}$rxvt_cv_int16_t" >&6; }
10041if test x"$rxvt_cv_int16_t" != xyes; then
10042 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
10043else
10044 if test x"" = x; then
10045 rxvt_int16_typedef="/* typedef short int16_t; */"
10046 else
10047 rxvt_int16_typedef="/* typedef short int16_t; */"
10048 fi
10049fi
10050
10051{ echo "$as_me:$LINENO: checking for uint16_t" >&5
10052echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
10053if test "${rxvt_cv_uint16_t+set}" = set; then
10054 echo $ECHO_N "(cached) $ECHO_C" >&6
10055else
10056 cat >conftest.$ac_ext <<_ACEOF
10057/* confdefs.h. */
10058_ACEOF
10059cat confdefs.h >>conftest.$ac_ext
10060cat >>conftest.$ac_ext <<_ACEOF
10061/* end confdefs.h. */
10062#include <stdint.h>
10063int
10064main ()
10065{
10066uint16_t dummy;
10067 ;
10068 return 0;
10069}
10070_ACEOF
10071rm -f conftest.$ac_objext
10072if { (ac_try="$ac_compile"
10073case "(($ac_try" in
10074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10075 *) ac_try_echo=$ac_try;;
10076esac
10077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10078 (eval "$ac_compile") 2>conftest.er1
10079 ac_status=$?
10080 grep -v '^ *+' conftest.er1 >conftest.err
10081 rm -f conftest.er1
10082 cat conftest.err >&5
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); } && {
10085 test -z "$ac_cxx_werror_flag" ||
10086 test ! -s conftest.err
10087 } && test -s conftest.$ac_objext; then
10088 rxvt_cv_uint16_t=yes
10089else
10090 echo "$as_me: failed program was:" >&5
10091sed 's/^/| /' conftest.$ac_ext >&5
10092
10093 if test "$ac_cv_sizeof_char" -ge 2; then
10094 rxvt_cv_uint16_t="unsigned char"
10095else
10096 if test "$ac_cv_sizeof_short" -ge 2; then
10097 rxvt_cv_uint16_t="unsigned short"
10098 else
10099 if test "$ac_cv_sizeof_int" -ge 2; then
10100 rxvt_cv_uint16_t="unsigned int"
10101 else
10102 if test "$ac_cv_sizeof_long" -ge 2; then
10103 rxvt_cv_uint16_t="unsigned long"
10104 else
10105 if test "$ac_cv_sizeof_long_long" -ge 2; then
10106 rxvt_cv_uint16_t="unsigned long long"
10107 else
10108 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
10109 fi
10110 fi
10111 fi
10112 fi
10113fi
10114fi
10115
10116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10117fi
10118{ echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
10119echo "${ECHO_T}$rxvt_cv_uint16_t" >&6; }
10120if test x"$rxvt_cv_uint16_t" != xyes; then
10121 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
10122else
10123 if test x"unsigned" = x; then
10124 rxvt_uint16_typedef="/* typedef short uint16_t; */"
10125 else
10126 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
10127 fi
10128fi
10129
10130{ echo "$as_me:$LINENO: checking for int32_t" >&5
10131echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
10132if test "${rxvt_cv_int32_t+set}" = set; then
10133 echo $ECHO_N "(cached) $ECHO_C" >&6
10134else
10135 cat >conftest.$ac_ext <<_ACEOF
10136/* confdefs.h. */
10137_ACEOF
10138cat confdefs.h >>conftest.$ac_ext
10139cat >>conftest.$ac_ext <<_ACEOF
10140/* end confdefs.h. */
10141#include <stdint.h>
10142int
10143main ()
10144{
10145int32_t dummy;
10146 ;
10147 return 0;
10148}
10149_ACEOF
10150rm -f conftest.$ac_objext
10151if { (ac_try="$ac_compile"
10152case "(($ac_try" in
10153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10154 *) ac_try_echo=$ac_try;;
10155esac
10156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10157 (eval "$ac_compile") 2>conftest.er1
10158 ac_status=$?
10159 grep -v '^ *+' conftest.er1 >conftest.err
10160 rm -f conftest.er1
10161 cat conftest.err >&5
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); } && {
10164 test -z "$ac_cxx_werror_flag" ||
10165 test ! -s conftest.err
10166 } && test -s conftest.$ac_objext; then
10167 rxvt_cv_int32_t=yes
10168else
10169 echo "$as_me: failed program was:" >&5
10170sed 's/^/| /' conftest.$ac_ext >&5
10171
10172 if test "$ac_cv_sizeof_char" -ge 4; then
10173 rxvt_cv_int32_t=" char"
10174else
10175 if test "$ac_cv_sizeof_short" -ge 4; then
10176 rxvt_cv_int32_t=" short"
10177 else
10178 if test "$ac_cv_sizeof_int" -ge 4; then
10179 rxvt_cv_int32_t=" int"
10180 else
10181 if test "$ac_cv_sizeof_long" -ge 4; then
10182 rxvt_cv_int32_t=" long"
10183 else
10184 if test "$ac_cv_sizeof_long_long" -ge 4; then
10185 rxvt_cv_int32_t=" long long"
10186 else
10187 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
10188 fi
10189 fi
10190 fi
10191 fi
10192fi
10193fi
10194
10195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10196fi
10197{ echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
10198echo "${ECHO_T}$rxvt_cv_int32_t" >&6; }
10199if test x"$rxvt_cv_int32_t" != xyes; then
10200 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
10201else
10202 if test x"" = x; then
10203 rxvt_int32_typedef="/* typedef int int32_t; */"
10204 else
10205 rxvt_int32_typedef="/* typedef int int32_t; */"
10206 fi
10207fi
10208
10209{ echo "$as_me:$LINENO: checking for uint32_t" >&5
10210echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
10211if test "${rxvt_cv_uint32_t+set}" = set; then
10212 echo $ECHO_N "(cached) $ECHO_C" >&6
10213else
10214 cat >conftest.$ac_ext <<_ACEOF
10215/* confdefs.h. */
10216_ACEOF
10217cat confdefs.h >>conftest.$ac_ext
10218cat >>conftest.$ac_ext <<_ACEOF
10219/* end confdefs.h. */
10220#include <stdint.h>
10221int
10222main ()
10223{
10224uint32_t dummy;
10225 ;
10226 return 0;
10227}
10228_ACEOF
10229rm -f conftest.$ac_objext
10230if { (ac_try="$ac_compile"
10231case "(($ac_try" in
10232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10233 *) ac_try_echo=$ac_try;;
10234esac
10235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10236 (eval "$ac_compile") 2>conftest.er1
10237 ac_status=$?
10238 grep -v '^ *+' conftest.er1 >conftest.err
10239 rm -f conftest.er1
10240 cat conftest.err >&5
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); } && {
10243 test -z "$ac_cxx_werror_flag" ||
10244 test ! -s conftest.err
10245 } && test -s conftest.$ac_objext; then
10246 rxvt_cv_uint32_t=yes
10247else
10248 echo "$as_me: failed program was:" >&5
10249sed 's/^/| /' conftest.$ac_ext >&5
10250
10251 if test "$ac_cv_sizeof_char" -ge 4; then
10252 rxvt_cv_uint32_t="unsigned char"
10253else
10254 if test "$ac_cv_sizeof_short" -ge 4; then
10255 rxvt_cv_uint32_t="unsigned short"
10256 else
10257 if test "$ac_cv_sizeof_int" -ge 4; then
10258 rxvt_cv_uint32_t="unsigned int"
10259 else
10260 if test "$ac_cv_sizeof_long" -ge 4; then
10261 rxvt_cv_uint32_t="unsigned long"
10262 else
10263 if test "$ac_cv_sizeof_long_long" -ge 4; then
10264 rxvt_cv_uint32_t="unsigned long long"
10265 else
10266 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
10267 fi
10268 fi
10269 fi
10270 fi
10271fi
10272fi
10273
10274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10275fi
10276{ echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
10277echo "${ECHO_T}$rxvt_cv_uint32_t" >&6; }
10278if test x"$rxvt_cv_uint32_t" != xyes; then
10279 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
10280else
10281 if test x"unsigned" = x; then
10282 rxvt_uint32_typedef="/* typedef int uint32_t; */"
10283 else
10284 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
10285 fi
10286fi
10287
10288if test "$ac_cv_sizeof_int_p" -eq 8; then
10289 rxvt_intp_define="#define intp_t int64_t"
10290 rxvt_u_intp_define="#define u_intp_t u_int64_t"
10291else
10292 if test "$ac_cv_sizeof_int_p" -eq 4; then
10293 rxvt_intp_define="#define intp_t int32_t"
10294 rxvt_u_intp_define="#define u_intp_t u_int32_t"
10295 else
10296 if test "$ac_cv_sizeof_int_p" -eq 2; then
10297 rxvt_intp_define="#define intp_t int16_t"
10298 rxvt_u_intp_define="#define u_intp_t u_int16_t"
10299 else
10300 rxvt_intp_define="#error set intp_t"
10301 rxvt_u_intp_define="#error set u_intp_t"
10302 fi
10303 fi
10304fi
10305
10306
10307
10308{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10309echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
10310if test "${ac_cv_type_signal+set}" = set; then
10311 echo $ECHO_N "(cached) $ECHO_C" >&6
10312else
10313 cat >conftest.$ac_ext <<_ACEOF
10314/* confdefs.h. */
10315_ACEOF
10316cat confdefs.h >>conftest.$ac_ext
10317cat >>conftest.$ac_ext <<_ACEOF
10318/* end confdefs.h. */
10319#include <sys/types.h>
10320#include <signal.h>
10321
10322int
10323main ()
10324{
10325return *(signal (0, 0)) (0) == 1;
10326 ;
10327 return 0;
10328}
10329_ACEOF
10330rm -f conftest.$ac_objext
10331if { (ac_try="$ac_compile"
10332case "(($ac_try" in
10333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10334 *) ac_try_echo=$ac_try;;
10335esac
10336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10337 (eval "$ac_compile") 2>conftest.er1
10338 ac_status=$?
10339 grep -v '^ *+' conftest.er1 >conftest.err
10340 rm -f conftest.er1
10341 cat conftest.err >&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); } && {
10344 test -z "$ac_cxx_werror_flag" ||
10345 test ! -s conftest.err
10346 } && test -s conftest.$ac_objext; then
10347 ac_cv_type_signal=int
10348else
10349 echo "$as_me: failed program was:" >&5
10350sed 's/^/| /' conftest.$ac_ext >&5
10351
10352 ac_cv_type_signal=void
10353fi
10354
10355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10356fi
10357{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10358echo "${ECHO_T}$ac_cv_type_signal" >&6; }
10359
10360cat >>confdefs.h <<_ACEOF
10361#define RETSIGTYPE $ac_cv_type_signal
10362_ACEOF
10363
10364
10365
10366
10367
10368
10369for ac_func in \ 8424for ac_func in unsetenv
10370 unsetenv \
10371 setutent \
10372 on_exit \
10373
10374do 8425do
10375as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8426as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10376{ echo "$as_me:$LINENO: checking for $ac_func" >&5 8427{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10377echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8428echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10378if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 8429if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10517 8568
10518 8569
10519 8570
10520 8571
10521for ac_func in \ 8572for ac_func in \
10522 ttyslot \
10523 updwtmp \ 8573 updwtmp \
10524 updwtmpx \ 8574 updwtmpx \
8575 updlastlogx \
10525 8576
10526do 8577do
10527as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8578as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10528{ echo "$as_me:$LINENO: checking for $ac_func" >&5 8579{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10529echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8580echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11950 10001
11951cat >>confdefs.h <<_ACEOF 10002cat >>confdefs.h <<_ACEOF
11952#define LASTLOG_FILE "$path_lastlog" 10003#define LASTLOG_FILE "$path_lastlog"
11953_ACEOF 10004_ACEOF
11954 10005
11955 if test -d "$path_lastlog"; then
11956
11957cat >>confdefs.h <<\_ACEOF
11958#define LASTLOG_IS_DIR 1
11959_ACEOF
11960
11961 fi
11962fi 10006fi
11963 10007
11964{ echo "$as_me:$LINENO: checking where lastlogx is located" >&5 10008{ echo "$as_me:$LINENO: checking where lastlogx is located" >&5
11965echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } 10009echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; }
11966if test "${path_lastlogx+set}" = set; then 10010if test "${path_lastlogx+set}" = set; then
12048 10092
12049fi 10093fi
12050 10094
12051 10095
12052 10096
12053{ echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
12054echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6; }
12055if test "${rxvt_cv_path_ttytab+set}" = set; then
12056 echo $ECHO_N "(cached) $ECHO_C" >&6
12057else
12058 for ttys_file in /etc/ttys /etc/ttytab;
12059do
12060 if test -f "$ttys_file" ; then
12061 rxvt_cv_path_ttytab=$ttys_file
12062 break
12063 fi
12064done
12065 10097
12066fi
12067{ echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
12068echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6; }
12069if test x$rxvt_cv_path_ttytab != x; then
12070
12071cat >>confdefs.h <<_ACEOF
12072#define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
12073_ACEOF
12074
12075fi
12076
12077
12078ac_save_LIBS=$LIBS 10098save_LIBS=$LIBS
12079ac_save_CFLAGS=$CFLAGS 10099save_CFLAGS=$CFLAGS
12080CFLAGS="$CFLAGS $X_CFLAGS" 10100CFLAGS="$CFLAGS $X_CFLAGS"
12081LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 10101LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
12082if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then 10102if test x$support_xim = xyes; then
12083 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
12084fi
12085{ echo "$as_me:$LINENO: checking for working Xlocale" >&5 10103 { echo "$as_me:$LINENO: checking for working Xlocale" >&5
12086echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } 10104echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; }
12087if test "${rxvt_cv_func_xlocale+set}" = set; then 10105if test "${rxvt_cv_func_xlocale+set}" = set; then
12088 echo $ECHO_N "(cached) $ECHO_C" >&6 10106 echo $ECHO_N "(cached) $ECHO_C" >&6
12089else 10107else
12090 if test "$cross_compiling" = yes; then 10108 if test "$cross_compiling" = yes; then
12091 { echo "$as_me:$LINENO: WARNING: Define NO_XLOCALE in config.h manually" >&5 10109 :
12092echo "$as_me: WARNING: Define NO_XLOCALE in config.h manually" >&2;}
12093else 10110else
12094 cat >conftest.$ac_ext <<_ACEOF 10111 cat >conftest.$ac_ext <<_ACEOF
12095/* confdefs.h. */ 10112/* confdefs.h. */
12096_ACEOF 10113_ACEOF
12097cat confdefs.h >>conftest.$ac_ext 10114cat confdefs.h >>conftest.$ac_ext
12098cat >>conftest.$ac_ext <<_ACEOF 10115cat >>conftest.$ac_ext <<_ACEOF
12099/* end confdefs.h. */ 10116/* end confdefs.h. */
12100#include <X11/Xlib.h> 10117#include <X11/Xlib.h>
12101#include <stdlib.h> 10118 #include <stdlib.h>
12102main() { 10119 main() {
12103char *p; 10120 char *p;
12104if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) 10121 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
12105exit (XSupportsLocale() ? 0 : 1); 10122 exit (XSupportsLocale() ? 0 : 1);
12106else 10123 else
12107exit (1);} 10124 exit (1);}
12108_ACEOF 10125_ACEOF
12109rm -f conftest$ac_exeext 10126rm -f conftest$ac_exeext
12110if { (ac_try="$ac_link" 10127if { (ac_try="$ac_link"
12111case "(($ac_try" in 10128case "(($ac_try" in
12112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12125 (eval "$ac_try") 2>&5 10142 (eval "$ac_try") 2>&5
12126 ac_status=$? 10143 ac_status=$?
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; }; then 10145 (exit $ac_status); }; }; then
12129 rxvt_cv_func_xlocale=yes 10146 rxvt_cv_func_xlocale=yes
12130else 10147else
12131 echo "$as_me: program exited with status $ac_status" >&5 10148 echo "$as_me: program exited with status $ac_status" >&5
12132echo "$as_me: failed program was:" >&5 10149echo "$as_me: failed program was:" >&5
12133sed 's/^/| /' conftest.$ac_ext >&5 10150sed 's/^/| /' conftest.$ac_ext >&5
12134 10151
12140 10157
12141 10158
12142fi 10159fi
12143{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 10160{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
12144echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; } 10161echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; }
12145if test x$rxvt_cv_func_xlocale = xyes; then 10162 if test x$rxvt_cv_func_xlocale = xyes; then
12146 10163
12147cat >>confdefs.h <<\_ACEOF 10164cat >>confdefs.h <<\_ACEOF
12148#define HAVE_XLOCALE 1 10165#define USE_XIM 1
12149_ACEOF 10166_ACEOF
12150 10167
10168 { echo "$as_me:$LINENO: checking for broken XIM callback" >&5
10169echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; }
10170if test "${rxvt_broken_ximcb+set}" = set; then
10171 echo $ECHO_N "(cached) $ECHO_C" >&6
10172else
10173 cat >conftest.$ac_ext <<_ACEOF
10174
10175 #include <X11/Xlib.h>
10176
10177 void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
10178
10179 void f() {
10180 XIMCallback cb;
10181 cb.callback = im_destroy_cb;
10182 }
10183
10184_ACEOF
10185rm -f conftest.$ac_objext
10186if { (ac_try="$ac_compile"
10187case "(($ac_try" in
10188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10189 *) ac_try_echo=$ac_try;;
10190esac
10191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10192 (eval "$ac_compile") 2>conftest.er1
10193 ac_status=$?
10194 grep -v '^ *+' conftest.er1 >conftest.err
10195 rm -f conftest.er1
10196 cat conftest.err >&5
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); } && {
10199 test -z "$ac_cxx_werror_flag" ||
10200 test ! -s conftest.err
10201 } && test -s conftest.$ac_objext; then
10202 rxvt_broken_ximcb=yes
10203else
10204 echo "$as_me: failed program was:" >&5
10205sed 's/^/| /' conftest.$ac_ext >&5
10206
10207 rxvt_broken_ximcb=no
10208fi
10209
10210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10211fi
10212{ echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
10213echo "${ECHO_T}$rxvt_broken_ximcb" >&6; }
10214
10215 if test x$rxvt_broken_ximcb = xyes; then
10216
10217cat >>confdefs.h <<\_ACEOF
10218#define XIMCB_PROTO_BROKEN 1
10219_ACEOF
10220
10221 fi
10222 fi
12151fi 10223fi
12152 10224
12153{ echo "$as_me:$LINENO: checking for working X setlocale" >&5 10225{ echo "$as_me:$LINENO: checking for working X setlocale" >&5
12154echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; } 10226echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; }
12155if test "${rxvt_cv_func_xsetlocale+set}" = set; then 10227if test "${rxvt_cv_func_xsetlocale+set}" = set; then
12207cat >>confdefs.h <<\_ACEOF 10279cat >>confdefs.h <<\_ACEOF
12208#define HAVE_XSETLOCALE 1 10280#define HAVE_XSETLOCALE 1
12209_ACEOF 10281_ACEOF
12210 10282
12211fi 10283fi
12212LIBS=$ac_save_LIBS 10284LIBS=$save_LIBS
12213CFLAGS=$ac_save_CFLAGS 10285CFLAGS=$save_CFLAGS
12214 10286
12215{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5 10287{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5
12216echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } 10288echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; }
12217if test "${rxvt_cv_func_setlocale+set}" = set; then 10289if test "${rxvt_cv_func_setlocale+set}" = set; then
12218 echo $ECHO_N "(cached) $ECHO_C" >&6 10290 echo $ECHO_N "(cached) $ECHO_C" >&6
12421 { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5 10493 { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5
12422echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} 10494echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;}
12423 { (exit 1); exit 1; }; } 10495 { (exit 1); exit 1; }; }
12424fi 10496fi
12425 10497
12426
12427{ echo "$as_me:$LINENO: checking for broken XIM callback" >&5
12428echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; }
12429if test "${rxvt_broken_ximcb+set}" = set; then
12430 echo $ECHO_N "(cached) $ECHO_C" >&6
12431else
12432 cat >conftest.$ac_ext <<_ACEOF
12433
12434#include <X11/Xlib.h>
12435
12436void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
12437
12438void f() {
12439 XIMCallback cb;
12440 cb.callback = im_destroy_cb;
12441}
12442
12443_ACEOF
12444rm -f conftest.$ac_objext
12445if { (ac_try="$ac_compile"
12446case "(($ac_try" in
12447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12448 *) ac_try_echo=$ac_try;;
12449esac
12450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12451 (eval "$ac_compile") 2>conftest.er1
12452 ac_status=$?
12453 grep -v '^ *+' conftest.er1 >conftest.err
12454 rm -f conftest.er1
12455 cat conftest.err >&5
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); } && {
12458 test -z "$ac_cxx_werror_flag" ||
12459 test ! -s conftest.err
12460 } && test -s conftest.$ac_objext; then
12461 rxvt_broken_ximcb=yes
12462else
12463 echo "$as_me: failed program was:" >&5
12464sed 's/^/| /' conftest.$ac_ext >&5
12465
12466 rxvt_broken_ximcb=no
12467fi
12468
12469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12470fi
12471{ echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
12472echo "${ECHO_T}$rxvt_broken_ximcb" >&6; }
12473
12474if test x$rxvt_broken_ximcb = xyes; then
12475
12476cat >>confdefs.h <<\_ACEOF
12477#define XIMCB_PROTO_BROKEN 1
12478_ACEOF
12479
12480fi
12481 10498
12482 10499
12483 10500
12484 10501
12485 10502
13166echo "${ECHO_T}no" >&6; } 11183echo "${ECHO_T}no" >&6; }
13167fi 11184fi
13168 11185
13169 11186
13170 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then 11187 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
13171 LIBS="$LIBS `$PKG_CONFIG xft --libs`" 11188 X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS"
13172 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" 11189 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
13173 else 11190 else
13174 # Extract the first word of "xft-config", so it can be a program name with args. 11191 # Extract the first word of "xft-config", so it can be a program name with args.
13175set dummy xft-config; ac_word=$2 11192set dummy xft-config; ac_word=$2
13176{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11193{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13211echo "${ECHO_T}no" >&6; } 11228echo "${ECHO_T}no" >&6; }
13212fi 11229fi
13213 11230
13214 11231
13215 if test $XFT_CONFIG != no; then 11232 if test $XFT_CONFIG != no; then
13216 LIBS="$LIBS `$XFT_CONFIG --libs`" 11233 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
13217 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" 11234 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
13218 fi 11235 fi
13219 fi 11236 fi
13220 11237
11238 save_LIBS="$LIBS"
11239 LIBS="$LIBS $X_LIBS"
13221 11240
13222for ac_header in X11/Xft/Xft.h 11241for ac_header in X11/Xft/Xft.h
13223do 11242do
13224as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11243as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13225if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11244if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13358 support_xft=no 11377 support_xft=no
13359fi 11378fi
13360 11379
13361done 11380done
13362 11381
13363
13364{ echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 11382 { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
13365echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } 11383echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; }
13366if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then 11384if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then
13367 echo $ECHO_N "(cached) $ECHO_C" >&6 11385 echo $ECHO_N "(cached) $ECHO_C" >&6
13368else 11386else
13369 ac_check_lib_save_LIBS=$LIBS 11387 ac_check_lib_save_LIBS=$LIBS
13421LIBS=$ac_check_lib_save_LIBS 11439LIBS=$ac_check_lib_save_LIBS
13422fi 11440fi
13423{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 11441{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
13424echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } 11442echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; }
13425if test $ac_cv_lib_Xft_XftDrawString32 = yes; then 11443if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
13426 cat >>confdefs.h <<_ACEOF 11444 :
13427#define HAVE_LIBXFT 1
13428_ACEOF
13429
13430 LIBS="-lXft $LIBS"
13431
13432else 11445else
13433 support_xft=no 11446 support_xft=no
13434fi 11447fi
13435 11448
11449 LIBS="$save_LIBS"
13436 11450
13437 if test x$support_xft = xyes; then 11451 if test x$support_xft = xyes; then
13438 11452
13439cat >>confdefs.h <<\_ACEOF 11453cat >>confdefs.h <<\_ACEOF
13440#define XFT 1 11454#define XFT 1
13468cat >>confdefs.h <<\_ACEOF 11482cat >>confdefs.h <<\_ACEOF
13469#define OFF_FOCUS_FADING 1 11483#define OFF_FOCUS_FADING 1
13470_ACEOF 11484_ACEOF
13471 11485
13472fi 11486fi
13473if test x$support_tinting = xyes; then 11487if test x$support_inheritpixmap = xyes; then
13474 11488
13475cat >>confdefs.h <<\_ACEOF 11489cat >>confdefs.h <<\_ACEOF
13476#define TINTING 1
13477_ACEOF
13478
13479fi
13480if test x$support_inheritpixmap = xyes; then
13481
13482cat >>confdefs.h <<\_ACEOF
13483#define TRANSPARENT 1 11490#define ENABLE_TRANSPARENCY 1
13484_ACEOF 11491_ACEOF
13485 11492
13486fi 11493fi
13487if test x$support_keepscrolling = xno; then 11494if test x$support_keepscrolling = xno; then
13488 11495
13517cat >>confdefs.h <<\_ACEOF 11524cat >>confdefs.h <<\_ACEOF
13518#define MOUSE_SLIP_WHEELING 1 11525#define MOUSE_SLIP_WHEELING 1
13519_ACEOF 11526_ACEOF
13520 11527
13521fi 11528fi
13522if test x$support_xim = xyes -o x$multichar_set = xyes; then
13523 if test x$rxvt_cv_func_xlocale = xyes; then
13524
13525cat >>confdefs.h <<\_ACEOF
13526#define USE_XIM 1
13527_ACEOF
13528
13529 fi
13530fi
13531if test x$support_xpm = xyes -o x$support_afterimage = xyes ; then
13532
13533cat >>confdefs.h <<\_ACEOF
13534#define XPM_BACKGROUND 1
13535_ACEOF
13536
13537fi
13538
13539if test x$support_afterimage = xyes; then 11529if test x$support_afterimage = xyes; then
13540 11530
13541cat >>confdefs.h <<\_ACEOF 11531cat >>confdefs.h <<\_ACEOF
13542#define HAVE_AFTERIMAGE 1 11532#define HAVE_AFTERIMAGE 1
13543_ACEOF 11533_ACEOF
13544 11534
13545fi
13546
13547if test x$support_afterstep = xyes; then
13548 11535
13549cat >>confdefs.h <<\_ACEOF 11536cat >>confdefs.h <<\_ACEOF
13550#define AFTERSTEP_INTEGRATION 1 11537#define BG_IMAGE_FROM_FILE 1
13551_ACEOF 11538_ACEOF
13552 11539
13553fi 11540fi
11541
13554 11542
13555if test x$support_scroll_rxvt = xyes; then 11543if test x$support_scroll_rxvt = xyes; then
13556 11544
13557cat >>confdefs.h <<\_ACEOF 11545cat >>confdefs.h <<\_ACEOF
13558#define RXVT_SCROLLBAR 1 11546#define RXVT_SCROLLBAR 1
13827 11815
13828 11816
13829 11817
13830 11818
13831 11819
13832if test x$support_perl = xyes; then
13833 support_frills=yes
13834fi
13835 11820
13836 11821
13837 11822
13838 11823
13839
13840
13841
13842
13843if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
13844 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
13845 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
13846 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
13847 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
13848 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
13849fi
13850 11824
13851 11825
13852 11826
13853 11827
13854 11828
13867_ACEOF 11841_ACEOF
13868program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 11842program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
13869rm -f conftest.sed 11843rm -f conftest.sed
13870 11844
13871 11845
13872
13873
13874
13875if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
13876 include_stdint_h="#include <stdint.h>"
13877else
13878 include_stdint_h="/* #include <stdint.h> */"
13879fi
13880if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
13881 include_stdarg_h="#include <cstdarg>"
13882else
13883 include_stdarg_h="/* #include <cstdarg> */"
13884fi
13885if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
13886 include_stdlib_h="#include <cstdlib>"
13887else
13888 include_stdlib_h="/* #include <cstdlib> */"
13889fi
13890if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
13891 include_unistd_h="#include <unistd.h>"
13892else
13893 include_unistd_h="/* #include <unistd.h> */"
13894fi
13895if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
13896 include_string_h="#include <cstring>"
13897else
13898 include_string_h="/* #include <cstring> */"
13899fi
13900if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
13901 include_fcntl_h="#include <fcntl.h>"
13902else
13903 include_fcntl_h="/* #include <fcntl.h> */"
13904fi
13905if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
13906 include_util_h="#include <util.h>"
13907else
13908 include_util_h="/* #include <util.h> */"
13909fi
13910if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
13911 include_assert_h="#include <assert.h>"
13912else
13913 include_assert_h="/* #include <assert.h> */"
13914fi
13915if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
13916 include_sys_ioctl_h="#include <sys/ioctl.h>"
13917else
13918 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
13919fi
13920if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
13921 include_sys_select_h="#include <sys/select.h>"
13922else
13923 include_sys_select_h="/* #include <sys/select.h> */"
13924fi
13925if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
13926 include_sys_strredir_h="#include <sys/strredir.h>"
13927else
13928 include_sys_strredir_h="/* #include <sys/strredir.h> */"
13929fi
13930if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
13931 include_sys_time_h="#include <sys/time.h>"
13932else
13933 include_sys_time_h="/* #include <sys/time.h> */"
13934fi
13935if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
13936 include_time_h="#include <time.h>"
13937else
13938 include_time_h="/* #include <time.h> */"
13939fi
13940
13941ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" 11846ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile"
13942 11847
13943cat >confcache <<\_ACEOF 11848cat >confcache <<\_ACEOF
13944# This file is a shell script that caches the results of configure 11849# This file is a shell script that caches the results of configure
13945# tests run on this system so they can be shared between configure 11850# tests run on this system so they can be shared between configure
13946# scripts and configure runs, see configure's option --config-cache. 11851# scripts and configure runs, see configure's option --config-cache.
14495 case $ac_config_target in 12400 case $ac_config_target in
14496 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; 12401 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
14497 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12402 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14498 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 12403 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14499 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 12404 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14500 "src/rxvtlib.h") CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
14501 12405
14502 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 12406 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14503echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 12407echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14504 { (exit 1); exit 1; }; };; 12408 { (exit 1); exit 1; }; };;
14505 esac 12409 esac
14604host_cpu!$host_cpu$ac_delim 12508host_cpu!$host_cpu$ac_delim
14605host_vendor!$host_vendor$ac_delim 12509host_vendor!$host_vendor$ac_delim
14606host_os!$host_os$ac_delim 12510host_os!$host_os$ac_delim
14607VERSION!$VERSION$ac_delim 12511VERSION!$VERSION$ac_delim
14608DATE!$DATE$ac_delim 12512DATE!$DATE$ac_delim
14609LSMDATE!$LSMDATE$ac_delim
14610LIBVERSION!$LIBVERSION$ac_delim
14611CC!$CC$ac_delim 12513CC!$CC$ac_delim
14612CFLAGS!$CFLAGS$ac_delim 12514CFLAGS!$CFLAGS$ac_delim
14613LDFLAGS!$LDFLAGS$ac_delim 12515LDFLAGS!$LDFLAGS$ac_delim
14614CPPFLAGS!$CPPFLAGS$ac_delim 12516CPPFLAGS!$CPPFLAGS$ac_delim
14615ac_ct_CC!$ac_ct_CC$ac_delim 12517ac_ct_CC!$ac_ct_CC$ac_delim
14623INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 12525INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14624INSTALL_DATA!$INSTALL_DATA$ac_delim 12526INSTALL_DATA!$INSTALL_DATA$ac_delim
14625GREP!$GREP$ac_delim 12527GREP!$GREP$ac_delim
14626EGREP!$EGREP$ac_delim 12528EGREP!$EGREP$ac_delim
14627LINKER!$LINKER$ac_delim 12529LINKER!$LINKER$ac_delim
14628INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim
14629RXVTNAME!$RXVTNAME$ac_delim 12530RXVTNAME!$RXVTNAME$ac_delim
14630MV!$MV$ac_delim
14631CP!$CP$ac_delim 12531CXXCPP!$CXXCPP$ac_delim
14632LN!$LN$ac_delim
14633SED!$SED$ac_delim
14634ECHO!$ECHO$ac_delim
14635CMP!$CMP$ac_delim
14636TIC!$TIC$ac_delim 12532TIC!$TIC$ac_delim
14637XMKMF!$XMKMF$ac_delim 12533XMKMF!$XMKMF$ac_delim
14638CXXCPP!$CXXCPP$ac_delim
14639X_CFLAGS!$X_CFLAGS$ac_delim 12534X_CFLAGS!$X_CFLAGS$ac_delim
14640X_PRE_LIBS!$X_PRE_LIBS$ac_delim 12535X_PRE_LIBS!$X_PRE_LIBS$ac_delim
14641X_LIBS!$X_LIBS$ac_delim 12536X_LIBS!$X_LIBS$ac_delim
14642X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim 12537X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
14643afterimage_config!$afterimage_config$ac_delim 12538afterimage_config!$afterimage_config$ac_delim
14644XPM_CPPFLAGS!$XPM_CPPFLAGS$ac_delim
14645XPM_CFLAGS!$XPM_CFLAGS$ac_delim
14646XPM_LIBS!$XPM_LIBS$ac_delim
14647rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim
14648rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim
14649rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim
14650rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim
14651rxvt_intp_define!$rxvt_intp_define$ac_delim
14652rxvt_u_intp_define!$rxvt_u_intp_define$ac_delim
14653PKG_CONFIG!$PKG_CONFIG$ac_delim 12539PKG_CONFIG!$PKG_CONFIG$ac_delim
14654XFT_CONFIG!$XFT_CONFIG$ac_delim 12540XFT_CONFIG!$XFT_CONFIG$ac_delim
14655PERL!$PERL$ac_delim 12541PERL!$PERL$ac_delim
14656PERLLIB!$PERLLIB$ac_delim 12542PERLLIB!$PERLLIB$ac_delim
14657PERLFLAGS!$PERLFLAGS$ac_delim 12543PERLFLAGS!$PERLFLAGS$ac_delim
14658PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim 12544PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim
12545IF_PERL!$IF_PERL$ac_delim
12546PERL_O!$PERL_O$ac_delim
12547AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim
12548AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim
12549LIBOBJS!$LIBOBJS$ac_delim
12550LTLIBOBJS!$LTLIBOBJS$ac_delim
14659_ACEOF 12551_ACEOF
14660 12552
14661 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 12553 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 85; then
14662 break 12554 break
14663 elif $ac_last_try; then 12555 elif $ac_last_try; then
14664 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 12556 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14665echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 12557echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14666 { (exit 1); exit 1; }; } 12558 { (exit 1); exit 1; }; }
14675 ac_eof=`expr $ac_eof + 1` 12567 ac_eof=`expr $ac_eof + 1`
14676fi 12568fi
14677 12569
14678cat >>$CONFIG_STATUS <<_ACEOF 12570cat >>$CONFIG_STATUS <<_ACEOF
14679cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 12571cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14680/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14681_ACEOF
14682sed '
14683s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14684s/^/s,@/; s/!/@,|#_!!_#|/
14685:n
14686t n
14687s/'"$ac_delim"'$/,g/; t
14688s/$/\\/; p
14689N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14690' >>$CONFIG_STATUS <conf$$subs.sed
14691rm -f conf$$subs.sed
14692cat >>$CONFIG_STATUS <<_ACEOF
14693CEOF$ac_eof
14694_ACEOF
14695
14696
14697ac_delim='%!_!# '
14698for ac_last_try in false false false false false :; do
14699 cat >conf$$subs.sed <<_ACEOF
14700IF_PERL!$IF_PERL$ac_delim
14701PERL_O!$PERL_O$ac_delim
14702DEBUG!$DEBUG$ac_delim
14703DINCLUDE!$DINCLUDE$ac_delim
14704DLIB!$DLIB$ac_delim
14705LIBAFTERIMAGE_CFLAGS!$LIBAFTERIMAGE_CFLAGS$ac_delim
14706AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim
14707include_stdint_h!$include_stdint_h$ac_delim
14708include_stdarg_h!$include_stdarg_h$ac_delim
14709include_stdlib_h!$include_stdlib_h$ac_delim
14710include_unistd_h!$include_unistd_h$ac_delim
14711include_string_h!$include_string_h$ac_delim
14712include_fcntl_h!$include_fcntl_h$ac_delim
14713include_util_h!$include_util_h$ac_delim
14714include_assert_h!$include_assert_h$ac_delim
14715include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim
14716include_sys_select_h!$include_sys_select_h$ac_delim
14717include_sys_strredir_h!$include_sys_strredir_h$ac_delim
14718include_sys_time_h!$include_sys_time_h$ac_delim
14719include_time_h!$include_time_h$ac_delim
14720LIBOBJS!$LIBOBJS$ac_delim
14721LTLIBOBJS!$LTLIBOBJS$ac_delim
14722_ACEOF
14723
14724 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
14725 break
14726 elif $ac_last_try; then
14727 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14728echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14729 { (exit 1); exit 1; }; }
14730 else
14731 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14732 fi
14733done
14734
14735ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14736if test -n "$ac_eof"; then
14737 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14738 ac_eof=`expr $ac_eof + 1`
14739fi
14740
14741cat >>$CONFIG_STATUS <<_ACEOF
14742cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
14743/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 12572/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14744_ACEOF 12573_ACEOF
14745sed ' 12574sed '
14746s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 12575s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14747s/^/s,@/; s/!/@,|#_!!_#|/ 12576s/^/s,@/; s/!/@,|#_!!_#|/
15000s&@builddir@&$ac_builddir&;t t 12829s&@builddir@&$ac_builddir&;t t
15001s&@abs_builddir@&$ac_abs_builddir&;t t 12830s&@abs_builddir@&$ac_abs_builddir&;t t
15002s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12831s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15003s&@INSTALL@&$ac_INSTALL&;t t 12832s&@INSTALL@&$ac_INSTALL&;t t
15004$ac_datarootdir_hack 12833$ac_datarootdir_hack
15005" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 12834" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
15006 12835
15007test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12836test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15008 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 12837 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15009 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 12838 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15010 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12839 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15158 Install path: ${prefix}/bin 12987 Install path: ${prefix}/bin
15159 Compiler: $CXX 12988 Compiler: $CXX
15160 Compiler flags: $CXXFLAGS 12989 Compiler flags: $CXXFLAGS
15161 Linker: $LINKER" 12990 Linker: $LINKER"
15162 12991
15163if test x$support_xpm = xyes; then
15164 echo " Xpm library: $XPM_LIBS"
15165fi
15166
15167if test x$support_afterimage = xyes; then
15168 echo " AfterImage support: yes"
15169fi
15170
15171if test x$support_afterstep = xyes; then
15172 echo " AfterStep intergration: yes"
15173fi
15174
15175if test x$term != x; then 12992if test x$term != x; then
15176 echo " set TERM to: $term" 12993 echo " set TERM to: $term"
15177fi 12994fi
15178if test x$terminfo != x; then 12995if test x$terminfo != x; then
15179 echo " set TERMINFO to: $terminfo" 12996 echo " set TERMINFO to: $terminfo"
15183if test x$RESFALLBACK != x; then 13000if test x$RESFALLBACK != x; then
15184 echo " resource class fallback: $RESFALLBACK" 13001 echo " resource class fallback: $RESFALLBACK"
15185fi 13002fi
15186echo 13003echo
15187echo " embedded perl: $support_perl" 13004echo " embedded perl: $support_perl"
13005echo " libafterimage: $support_afterimage"
15188echo 13006echo
15189if test x$support_xpm = xneedsmanualspecification; then
15190 echo ".----------------------------------------------------------------."
15191 echo ". WARNING: --enable-xpm-background was specified however the ."
15192 echo ". XPM includes files and libraries could not be found. ."
15193 echo ". XPM backgrounds are now being DISABLED! If you want ."
15194 echo ". to use them you should rerun configure with the ."
15195 echo ". appropriate --with-xpm-includes=/path/to/xpm/includes ."
15196 echo ". and --with-xpm-library=/path/to/xpm/library lines. ."
15197 echo ".----------------------------------------------------------------."
15198fi
15199if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then 13007if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
15200 echo ".----------------------------------------------------------------." 13008 echo ".----------------------------------------------------------------."
15201 echo ". WARNING: --enable-xim was specified however the locale support ." 13009 echo ". WARNING: --enable-xim was specified however the locale support ."
15202 echo ". functions could not be found. ." 13010 echo ". functions could not be found. ."
15203 echo ". XIM is now being DISABLED! ." 13011 echo ". XIM is now being DISABLED! ."

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines