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

Comparing rxvt-unicode/configure (file contents):
Revision 1.102 by ayin, Tue May 8 11:24:45 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
697XPM_CPPFLAGS 688afterimage_config
698XPM_CFLAGS
699XPM_LIBS
700rxvt_int16_typedef
701rxvt_uint16_typedef
702rxvt_int32_typedef
703rxvt_uint32_typedef
704rxvt_intp_define
705rxvt_u_intp_define
706PKG_CONFIG 689PKG_CONFIG
707XFT_CONFIG 690XFT_CONFIG
708PERL 691PERL
709PERLLIB 692PERLLIB
710PERLFLAGS 693PERLFLAGS
711PERLPRIVLIBEXP 694PERLPRIVLIBEXP
712IF_PERL 695IF_PERL
713PERL_O 696PERL_O
714DEBUG 697AFTERIMAGE_CFLAGS
715DINCLUDE 698AFTERIMAGE_LIBS
716DLIB
717include_stdint_h
718include_stdarg_h
719include_stdlib_h
720include_unistd_h
721include_string_h
722include_fcntl_h
723include_util_h
724include_assert_h
725include_sys_ioctl_h
726include_sys_select_h
727include_sys_strredir_h
728include_sys_time_h
729include_time_h
730LIBOBJS 699LIBOBJS
731LTLIBOBJS' 700LTLIBOBJS'
732ac_subst_files='' 701ac_subst_files=''
733 ac_precious_vars='build_alias 702 ac_precious_vars='build_alias
734host_alias 703host_alias
740CPPFLAGS 709CPPFLAGS
741CXX 710CXX
742CXXFLAGS 711CXXFLAGS
743CCC 712CCC
744CPP 713CPP
745XMKMF
746CXXCPP' 714CXXCPP
715XMKMF'
747 716
748 717
749# Initialize some variables set by options. 718# Initialize some variables set by options.
750ac_init_help= 719ac_init_help=
751ac_init_version=false 720ac_init_version=false
1324 1293
1325Optional Features: 1294Optional Features:
1326 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1295 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1327 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1296 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1328 --enable-everything enable standard non-multichoice features 1297 --enable-everything enable standard non-multichoice features
1329 NOTE: this option is order dependent 1298 NOTE: this option is order dependent
1330 NOTE: automatically enabled with --enable-shared 1299 --enable-warnings turn on g++ warnings
1331 --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
1332 --enable-combining enable composition of base and combining characters 1301 --enable-combining enable composition of base and combining characters
1333 --enable-xft enable xft support on systems that have it 1302 --enable-xft enable xft support on systems that have it
1334 --enable-font-styles enable bold and italic support 1303 --enable-font-styles enable bold and italic support
1335 --enable-xpm-background enable XPM background pixmaps 1304 --enable-afterimage enable integration with libAfterImage for background images
1336 --enable-transparency enable transparent backgrounds 1305 --enable-transparency enable transparent backgrounds
1337 --enable-tinting enable tinting of transparent bg
1338 --enable-fading enable colors fading when off focus 1306 --enable-fading enable colors fading when off focus
1339 --enable-rxvt-scroll enable rxvt style scrollbar 1307 --enable-rxvt-scroll enable rxvt style scrollbar
1340 --enable-next-scroll enable NeXT style scrollbar 1308 --enable-next-scroll enable NeXT style scrollbar
1341 --enable-xterm-scroll enable Xterm style scrollbar 1309 --enable-xterm-scroll enable Xterm style scrollbar
1310 --enable-plain-scroll enable plain style scrollbar
1342 --enable-perl enable embedded perl interpreter 1311 --enable-perl enable embedded perl interpreter
1343 --enable-plain-scroll enable plain style scrollbar
1344 --enable-xim XIM (X Input Method) protocol support 1312 --enable-xim XIM (X Input Method) protocol support
1345 --disable-backspace-key disable handling of the backspace key 1313 --disable-backspace-key disable handling of the backspace key
1346 --disable-delete-key disable handling of the delete key 1314 --disable-delete-key disable handling of the delete key
1347 --disable-resources disable all resource checking 1315 --disable-resources disable all resource checking
1348 --enable-8bitctrls enable 8 bit control sequences (not recommended) 1316 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1349 --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)
1350 --disable-swapscreen disable swap screen support 1318 --disable-swapscreen disable swap screen support
1351 --enable-iso14755 enable support for extended ISO 14755 modes 1319 --enable-iso14755 enable support for extended ISO 14755 modes
1352 --enable-frills enable support for rarely used features 1320 --enable-frills enable support for rarely used features
1353 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 1321 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1354 --enable-selectionscrolling enable scrolling during selections 1322 --enable-selectionscrolling enable scrolling during selections
1355 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 1323 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1356 --enable-slipwheeling enable slip wheel scrolling (requires previous) 1324 --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel)
1357 --enable-smart-resize enable smart growth/shrink behaviour 1325 --enable-smart-resize enable smart growth/shrink behaviour
1358 --enable-text-blink enable blinking text 1326 --enable-text-blink enable blinking text
1359 --enable-pointer-blank enable pointer blank when typing or inactive pointer 1327 --enable-pointer-blank enable pointer blank when typing or inactive pointer
1360 --enable-utmp enable utmp (utmpx) support 1328 --enable-utmp enable utmp (utmpx) support
1361 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) 1329 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1362 --enable-lastlog enable lastlog support (requires --enable-utmp) 1330 --enable-lastlog enable lastlog support (requires --enable-utmp)
1363 1331
1364Optional Packages: 1332Optional Packages:
1365 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1333 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1366 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1334 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1335 --with-afterimage-config=DIR use libAfterImage config script in DIR
1367 --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)
1368 --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)
1369 --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)
1370 --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)
1371 --with-term=NAME set the terminal to NAME (default: rxvt) 1340 --with-term=NAME set the terminal to NAME (default: rxvt)
1372 --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
1373 --with-x use the X Window System 1342 --with-x use the X Window System
1374 --with-xpm-includes=DIR use XPM includes in DIR
1375 --with-xpm-library=DIR use XPM library in DIR
1376 --with-xpm use XPM
1377 1343
1378Some influential environment variables: 1344Some influential environment variables:
1379 CC C compiler command 1345 CC C compiler command
1380 CFLAGS C compiler flags 1346 CFLAGS C compiler flags
1381 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
1384 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
1385 you have headers in a nonstandard directory <include dir> 1351 you have headers in a nonstandard directory <include dir>
1386 CXX C++ compiler command 1352 CXX C++ compiler command
1387 CXXFLAGS C++ compiler flags 1353 CXXFLAGS C++ compiler flags
1388 CPP C preprocessor 1354 CPP C preprocessor
1355 CXXCPP C++ preprocessor
1389 XMKMF Path to xmkmf, Makefile generator for X Window System 1356 XMKMF Path to xmkmf, Makefile generator for X Window System
1390 CXXCPP C++ preprocessor
1391 1357
1392Use 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
1393it to find libraries and programs with nonstandard names/locations. 1359it to find libraries and programs with nonstandard names/locations.
1394 1360
1395_ACEOF 1361_ACEOF
1931 1897
1932 1898
1933 1899
1934VERSION=`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`
1935DATE=`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
1936echo "" 1903echo ""
1937echo "configuring for rxvt $VERSION" 1904echo "configuring for rxvt $VERSION"
1938echo "" 1905echo ""
1939 1906
1940orig_CXXFLAGS="$CXXFLAGS" 1907orig_CXXFLAGS="$CXXFLAGS"
1941
1942 1908
1943ac_ext=c 1909ac_ext=c
1944ac_cpp='$CPP $CPPFLAGS' 1910ac_cpp='$CPP $CPPFLAGS'
1945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1946ac_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'
3725echo "${ECHO_T}no" >&6; } 3691echo "${ECHO_T}no" >&6; }
3726fi 3692fi
3727rm -f conftest* 3693rm -f conftest*
3728 3694
3729 3695
3696
3697cat >>confdefs.h <<\_ACEOF
3698#define _GNU_SOURCE 1
3699_ACEOF
3700
3701
3730{ echo "$as_me:$LINENO: checking for library containing strerror" >&5 3702{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
3731echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } 3703echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3732if test "${ac_cv_search_strerror+set}" = set; then 3704if test "${ac_cv_search_strerror+set}" = set; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6 3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3734else 3706else
3881LINKER=$LINKER 3853LINKER=$LINKER
3882 3854
3883 3855
3884if test -z "$orig_CXXFLAGS"; then 3856if test -z "$orig_CXXFLAGS"; then
3885 if test x$GCC = xyes && test "x$GXX" = xyes; then 3857 if test x$GCC = xyes && test "x$GXX" = xyes; then
3886 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"
3887 cat >conftest.$ac_ext <<_ACEOF 3859 cat >conftest.$ac_ext <<_ACEOF
3888/* confdefs.h. */ 3860/* confdefs.h. */
3889_ACEOF 3861_ACEOF
3890cat confdefs.h >>conftest.$ac_ext 3862cat confdefs.h >>conftest.$ac_ext
3891cat >>conftest.$ac_ext <<_ACEOF 3863cat >>conftest.$ac_ext <<_ACEOF
3929 CXXFLAGS="-O" 3901 CXXFLAGS="-O"
3930 fi 3902 fi
3931 CFLAGS="$CXXFLAGS" 3903 CFLAGS="$CXXFLAGS"
3932fi 3904fi
3933 3905
3934
3935cat >>confdefs.h <<\_ACEOF
3936#define _GNU_SOURCE 1
3937_ACEOF
3938
3939
3940case $host in 3906case $host in
3941 *-*-solaris* ) 3907 *-*-solaris* )
3942 3908
3943cat >>confdefs.h <<\_ACEOF 3909cat >>confdefs.h <<\_ACEOF
3944#define _XOPEN_SOURCE_EXTENDED 1
3945_ACEOF
3946
3947
3948cat >>confdefs.h <<\_ACEOF
3949#define _XOPEN_SOURCE 2 3910#define _XOPEN_SOURCE 500
3950_ACEOF
3951
3952
3953cat >>confdefs.h <<\_ACEOF
3954#define __EXTENSIONS__ 1
3955_ACEOF 3911_ACEOF
3956 3912
3957 ;; 3913 ;;
3958esac 3914esac
3959
3960 3915
3961{ echo "$as_me:$LINENO: checking for setlocale" >&5 3916{ echo "$as_me:$LINENO: checking for setlocale" >&5
3962echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } 3917echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; }
3963if test "${ac_cv_func_setlocale+set}" = set; then 3918if test "${ac_cv_func_setlocale+set}" = set; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6 3919 echo $ECHO_N "(cached) $ECHO_C" >&6
4411fi 4366fi
4412 4367
4413fi 4368fi
4414 4369
4415 4370
4416
4417support_frills=yes 4371support_frills=yes
4418support_inheritpixmap=yes 4372support_inheritpixmap=yes
4419support_tinting=yes
4420support_fading=yes 4373support_fading=yes
4421support_keepscrolling=yes 4374support_keepscrolling=yes
4422support_selectionscrolling=yes 4375support_selectionscrolling=yes
4423support_mousewheel=yes 4376support_mousewheel=yes
4424support_mouseslipwheel=yes 4377support_mouseslipwheel=yes
4427support_scroll_rxvt=yes 4380support_scroll_rxvt=yes
4428support_scroll_next=yes 4381support_scroll_next=yes
4429support_scroll_xterm=yes 4382support_scroll_xterm=yes
4430support_scroll_plain=yes 4383support_scroll_plain=yes
4431support_xim=yes 4384support_xim=yes
4432support_xpm=yes 4385support_afterimage=yes
4386support_afterstep=yes
4433support_xft=yes 4387support_xft=yes
4434support_unicode3=no 4388support_unicode3=no
4435support_combining=yes 4389support_combining=yes
4436support_8bitctrls=no 4390support_8bitctrls=no
4437support_iso14755=yes 4391support_iso14755=yes
4438support_styles=yes 4392support_styles=yes
4439support_perl=yes 4393support_perl=yes
4440codesets=all 4394codesets=all
4441 4395
4442 4396
4443if test "x$enable_shared" = xyes; then
4444
4445cat >>confdefs.h <<\_ACEOF
4446#define LIBRXVT 1
4447_ACEOF
4448
4449 INSTALL_LIBRXVT=yes
4450fi
4451
4452
4453# Check whether --enable-everything was given. 4397# Check whether --enable-everything was given.
4454if test "${enable_everything+set}" = set; then 4398if test "${enable_everything+set}" = set; then
4455 enableval=$enable_everything; 4399 enableval=$enable_everything;
4456 if test x$enableval = xno; then 4400 if test x$enableval = xno; then
4457 support_frills=no 4401 support_frills=no
4458 support_inheritpixmap=no 4402 support_inheritpixmap=no
4459 support_tinting=no
4460 support_fading=no 4403 support_fading=no
4461 support_keepscrolling=no 4404 support_keepscrolling=no
4462 support_selectionscrolling=no 4405 support_selectionscrolling=no
4463 support_lastlog=no 4406 support_lastlog=no
4464 support_mousewheel=no 4407 support_mousewheel=no
4470 support_scroll_xterm=no 4413 support_scroll_xterm=no
4471 support_scroll_plain=no 4414 support_scroll_plain=no
4472 support_utmp=no 4415 support_utmp=no
4473 support_wtmp=no 4416 support_wtmp=no
4474 support_xim=no 4417 support_xim=no
4418 support_afterimage=no
4475 support_xpm=no 4419 support_afterstep=no
4476 support_xft=no 4420 support_xft=no
4477 support_unicode3=no 4421 support_unicode3=no
4478 support_combining=no 4422 support_combining=no
4479 support_8bitctrls=no 4423 support_8bitctrls=no
4480 support_iso14755=no 4424 support_iso14755=no
4483 codesets= 4427 codesets=
4484 fi 4428 fi
4485 if test x$enableval = xyes; then 4429 if test x$enableval = xyes; then
4486 support_frills=yes 4430 support_frills=yes
4487 support_inheritpixmap=yes 4431 support_inheritpixmap=yes
4488 support_tinting=yes
4489 support_fading=yes 4432 support_fading=yes
4490 support_keepscrolling=yes 4433 support_keepscrolling=yes
4491 support_selectionscrolling=yes 4434 support_selectionscrolling=yes
4492 support_lastlog=yes 4435 support_lastlog=yes
4493 support_mousewheel=yes 4436 support_mousewheel=yes
4499 support_scroll_xterm=yes 4442 support_scroll_xterm=yes
4500 support_scroll_plain=yes 4443 support_scroll_plain=yes
4501 support_utmp=yes 4444 support_utmp=yes
4502 support_wtmp=yes 4445 support_wtmp=yes
4503 support_xim=yes 4446 support_xim=yes
4447 support_afterimage=yes
4504 support_xpm=yes 4448 support_afterstep=yes
4505 support_xft=yes 4449 support_xft=yes
4506 support_unicode3=yes 4450 support_unicode3=yes
4507 support_combining=yes 4451 support_combining=yes
4508 #support_8bitctrls=yes 4452 #support_8bitctrls=yes
4509 support_iso14755=yes 4453 support_iso14755=yes
4513 fi 4457 fi
4514 4458
4515fi 4459fi
4516 4460
4517 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
4518# Check whether --enable-unicode3 was given. 4520# Check whether --enable-unicode3 was given.
4519if test "${enable_unicode3+set}" = set; then 4521if test "${enable_unicode3+set}" = set; then
4520 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
4521 support_unicode3=$enableval 4523 support_unicode3=$enableval
4522 fi 4524 fi
4545 support_styles=$enableval 4547 support_styles=$enableval
4546 fi 4548 fi
4547fi 4549fi
4548 4550
4549 4551
4550# Check whether --enable-xpm-background was given. 4552# Check whether --enable-afterimage was given.
4551if test "${enable_xpm_background+set}" = set; then 4553if test "${enable_afterimage+set}" = set; then
4552 enableval=$enable_xpm_background; if test x$enableval = xyes -o x$enableval = xno; then 4554 enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then
4553 support_xpm=$enableval 4555 support_afterimage=$enableval
4554 fi 4556 fi
4555fi 4557fi
4558
4559
4560
4561# Check whether --with-afterimage_config was given.
4562if test "${with_afterimage_config+set}" = set; then
4563 withval=$with_afterimage_config; if test "x$withval" != x; then
4564 afterimage_config=$withval/afterimage-config
4565 fi
4566fi
4567
4556 4568
4557 4569
4558# Check whether --enable-transparency was given. 4570# Check whether --enable-transparency was given.
4559if test "${enable_transparency+set}" = set; then 4571if test "${enable_transparency+set}" = set; then
4560 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
4561 support_inheritpixmap=$enableval 4573 support_inheritpixmap=$enableval
4562 fi 4574 fi
4563fi 4575fi
4564 4576
4565 4577
4566# Check whether --enable-tinting was given.
4567if test "${enable_tinting+set}" = set; then
4568 enableval=$enable_tinting; if test x$enableval = xyes -o x$enableval = xno; then
4569 support_tinting=$enableval
4570 fi
4571fi
4572
4573
4574# Check whether --enable-fading was given. 4578# Check whether --enable-fading was given.
4575if test "${enable_fading+set}" = set; then 4579if test "${enable_fading+set}" = set; then
4576 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
4577 support_fading=$enableval 4581 support_fading=$enableval
4578 fi 4582 fi
4601 support_scroll_xterm=$enableval 4605 support_scroll_xterm=$enableval
4602 fi 4606 fi
4603fi 4607fi
4604 4608
4605 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
4606# Check whether --enable-perl was given. 4618# Check whether --enable-perl was given.
4607if test "${enable_perl+set}" = set; then 4619if test "${enable_perl+set}" = set; then
4608 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
4609 support_perl=$enableval 4621 support_perl=$enableval
4610 fi
4611fi
4612
4613
4614# Check whether --enable-plain-scroll was given.
4615if test "${enable_plain_scroll+set}" = set; then
4616 enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4617 support_scroll_plain=$enableval
4618 fi 4622 fi
4619fi 4623fi
4620 4624
4621 4625
4622 4626
4852 fi 4856 fi
4853fi 4857fi
4854 4858
4855 4859
4856 4860
4857# Extract the first word of "mv", so it can be a program name with args. 4861LIBEV_M4_AVOID_LIBRT=1
4858set dummy mv; ac_word=$2 4862
4859{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4863ac_ext=cpp
4860echo $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
4861if test "${ac_cv_path_MV+set}" = set; then 4871 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6 4872 echo $ECHO_N "(cached) $ECHO_C" >&6
4863else 4873else
4864 case $MV in 4874 # Double quotes because CXXCPP needs to be expanded
4865 [\\/]* | ?:[\\/]*) 4875 for CXXCPP in "$CXX -E" "/lib/cpp"
4866 ac_cv_path_MV="$MV" # Let the user override the test with a path. 4876 do
4867 ;; 4877 ac_preproc_ok=false
4868 *) 4878for ac_cxx_preproc_warn_flag in '' yes
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870for as_dir in $PATH
4871do 4879do
4872 IFS=$as_save_IFS 4880 # Use a header file that comes with gcc, so configuring glibc
4873 test -z "$as_dir" && as_dir=. 4881 # with a fresh cross-compiler works.
4874 for ac_exec_ext in '' $ac_executable_extensions; do 4882 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4875 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.
4876 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,
4877 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.
4878 break 2 4886 cat >conftest.$ac_ext <<_ACEOF
4879 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
4880done 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
4881done 5070done
4882IFS=$as_save_IFS 5071# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4883 5072rm -f conftest.err conftest.$ac_ext
4884 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 5073if $ac_preproc_ok; then
4885 ;; 5074 :
4886esac
4887fi
4888MV=$ac_cv_path_MV
4889if test -n "$MV"; then
4890 { echo "$as_me:$LINENO: result: $MV" >&5
4891echo "${ECHO_T}$MV" >&6; }
4892else 5075else
4893 { echo "$as_me:$LINENO: result: no" >&5 5076 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4894echo "${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; }; }
4895fi 5081fi
4896 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
4897 5088
4898# Extract the first word of "cp", so it can be a program name with args. 5089
4899set dummy cp; ac_word=$2
4900{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5090{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5091echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4902if test "${ac_cv_path_CP+set}" = set; then 5092if test "${ac_cv_header_stdc+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6 5093 echo $ECHO_N "(cached) $ECHO_C" >&6
4904else 5094else
4905 case $CP in 5095 cat >conftest.$ac_ext <<_ACEOF
4906 [\\/]* | ?:[\\/]*) 5096/* confdefs.h. */
4907 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
4908 ;; 5110 ;
4909 *) 5111 return 0;
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5112}
4911for 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
4912do 5276do
4913 IFS=$as_save_IFS 5277as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4914 test -z "$as_dir" && as_dir=. 5278{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4915 for ac_exec_ext in '' $ac_executable_extensions; do 5279echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4916 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
4917 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5281 echo $ECHO_N "(cached) $ECHO_C" >&6
4918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5282else
4919 break 2 5283 cat >conftest.$ac_ext <<_ACEOF
4920 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
4921done 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
4922done 5477done
4923IFS=$as_save_IFS
4924 5478
4925 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4926 ;;
4927esac
4928fi
4929CP=$ac_cv_path_CP
4930if test -n "$CP"; then
4931 { echo "$as_me:$LINENO: result: $CP" >&5
4932echo "${ECHO_T}$CP" >&6; }
4933else
4934 { echo "$as_me:$LINENO: result: no" >&5
4935echo "${ECHO_T}no" >&6; }
4936fi
4937 5479
4938 5480
4939# Extract the first word of "ln", so it can be a program name with args. 5481
4940set 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`
4941{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5489{ echo "$as_me:$LINENO: checking for $ac_func" >&5
4942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5490echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4943if test "${ac_cv_path_LN+set}" = set; then 5491if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4944 echo $ECHO_N "(cached) $ECHO_C" >&6 5492 echo $ECHO_N "(cached) $ECHO_C" >&6
4945else 5493else
4946 case $LN in 5494 cat >conftest.$ac_ext <<_ACEOF
4947 [\\/]* | ?:[\\/]*) 5495/* confdefs.h. */
4948 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 ();
4949 ;; 5535 ;
4950 *) 5536 return 0;
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5537}
4952for 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
4953do 5740do
4954 IFS=$as_save_IFS 5741as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4955 test -z "$as_dir" && as_dir=. 5742{ echo "$as_me:$LINENO: checking for $ac_func" >&5
4956 for ac_exec_ext in '' $ac_executable_extensions; do 5743echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4957 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
4958 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 5745 echo $ECHO_N "(cached) $ECHO_C" >&6
4959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5746else
4960 break 2 5747 cat >conftest.$ac_ext <<_ACEOF
4961 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
4962done 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
4963done 6087done
4964IFS=$as_save_IFS
4965 6088
4966 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" 6089 fi
4967 ;;
4968esac
4969fi
4970LN=$ac_cv_path_LN
4971if test -n "$LN"; then
4972 { echo "$as_me:$LINENO: result: $LN" >&5
4973echo "${ECHO_T}$LN" >&6; }
4974else
4975 { echo "$as_me:$LINENO: result: no" >&5
4976echo "${ECHO_T}no" >&6; }
4977fi
4978 6090
6091fi
4979 6092
4980# Extract the first word of "sed", so it can be a program name with args. 6093
4981set dummy sed; ac_word=$2 6094
4982{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6095{ echo "$as_me:$LINENO: checking for ceil in -lm" >&5
4983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6096echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; }
4984if test "${ac_cv_path_SED+set}" = set; then 6097if test "${ac_cv_lib_m_ceil+set}" = set; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6 6098 echo $ECHO_N "(cached) $ECHO_C" >&6
4986else 6099else
4987 case $SED in 6100 ac_check_lib_save_LIBS=$LIBS
4988 [\\/]* | ?:[\\/]*) 6101LIBS="-lm $LIBS"
4989 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 ();
4990 ;; 6120 ;
4991 *) 6121 return 0;
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6122}
4993for as_dir in $PATH 6123_ACEOF
4994do 6124rm -f conftest.$ac_objext conftest$ac_exeext
4995 IFS=$as_save_IFS 6125if { (ac_try="$ac_link"
4996 test -z "$as_dir" && as_dir=. 6126case "(($ac_try" in
4997 for ac_exec_ext in '' $ac_executable_extensions; do 6127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4998 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;;
4999 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5001 break 2
5002 fi
5003done
5004done
5005IFS=$as_save_IFS
5006
5007 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5008 ;;
5009esac 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
5010fi 6148fi
5011SED=$ac_cv_path_SED 6149
5012if 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
5013 { echo "$as_me:$LINENO: result: $SED" >&5 6154{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5
5014echo "${ECHO_T}$SED" >&6; } 6155echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6; }
5015else 6156if test $ac_cv_lib_m_ceil = yes; then
5016 { echo "$as_me:$LINENO: result: no" >&5 6157 cat >>confdefs.h <<_ACEOF
5017echo "${ECHO_T}no" >&6; } 6158#define HAVE_LIBM 1
5018fi 6159_ACEOF
5019 6160
6161 LIBS="-lm $LIBS"
5020 6162
5021# Extract the first word of "echo", so it can be a program name with args.
5022set dummy echo; ac_word=$2
5023{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5025if test "${ac_cv_path_ECHO+set}" = set; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5027else
5028 case $ECHO in
5029 [\\/]* | ?:[\\/]*)
5030 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5031 ;;
5032 *)
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034for as_dir in $PATH
5035do
5036 IFS=$as_save_IFS
5037 test -z "$as_dir" && as_dir=.
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5040 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5042 break 2
5043 fi
5044done
5045done
5046IFS=$as_save_IFS
5047
5048 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5049 ;;
5050esac
5051fi 6163fi
5052ECHO=$ac_cv_path_ECHO
5053if test -n "$ECHO"; then
5054 { echo "$as_me:$LINENO: result: $ECHO" >&5
5055echo "${ECHO_T}$ECHO" >&6; }
5056else
5057 { echo "$as_me:$LINENO: result: no" >&5
5058echo "${ECHO_T}no" >&6; }
5059fi
5060 6164
5061 6165
5062# Extract the first word of "cmp", so it can be a program name with args.
5063set dummy cmp; ac_word=$2
5064{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5066if test "${ac_cv_path_CMP+set}" = set; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5068else
5069 case $CMP in
5070 [\\/]* | ?:[\\/]*)
5071 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5072 ;;
5073 *)
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075for as_dir in $PATH
5076do
5077 IFS=$as_save_IFS
5078 test -z "$as_dir" && as_dir=.
5079 for ac_exec_ext in '' $ac_executable_extensions; do
5080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5081 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5083 break 2
5084 fi
5085done
5086done
5087IFS=$as_save_IFS
5088 6166
5089 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" 6167
5090 ;; 6168
5091esac
5092fi
5093CMP=$ac_cv_path_CMP
5094if test -n "$CMP"; then
5095 { echo "$as_me:$LINENO: result: $CMP" >&5
5096echo "${ECHO_T}$CMP" >&6; }
5097else
5098 { echo "$as_me:$LINENO: result: no" >&5
5099echo "${ECHO_T}no" >&6; }
5100fi
5101 6169
5102 6170
5103# 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.
5104set dummy tic; ac_word=$2 6172set dummy tic; ac_word=$2
5105{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6173{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5125 fi 6193 fi
5126done 6194done
5127done 6195done
5128IFS=$as_save_IFS 6196IFS=$as_save_IFS
5129 6197
6198 test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":"
5130 ;; 6199 ;;
5131esac 6200esac
5132fi 6201fi
5133TIC=$ac_cv_path_TIC 6202TIC=$ac_cv_path_TIC
5134if test -n "$TIC"; then 6203if test -n "$TIC"; then
5137else 6206else
5138 { echo "$as_me:$LINENO: result: no" >&5 6207 { echo "$as_me:$LINENO: result: no" >&5
5139echo "${ECHO_T}no" >&6; } 6208echo "${ECHO_T}no" >&6; }
5140fi 6209fi
5141 6210
5142
5143
5144
5145
5146ac_ext=cpp
5147ac_cpp='$CXXCPP $CPPFLAGS'
5148ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5149ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5150ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5151{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5152echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5153if test -z "$CXXCPP"; then
5154 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
5156else
5157 # Double quotes because CXXCPP needs to be expanded
5158 for CXXCPP in "$CXX -E" "/lib/cpp"
5159 do
5160 ac_preproc_ok=false
5161for ac_cxx_preproc_warn_flag in '' yes
5162do
5163 # Use a header file that comes with gcc, so configuring glibc
5164 # with a fresh cross-compiler works.
5165 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5166 # <limits.h> exists even on freestanding compilers.
5167 # On the NeXT, cc -E runs the code through the compiler's parser,
5168 # not just through cpp. "Syntax error" is here to catch this case.
5169 cat >conftest.$ac_ext <<_ACEOF
5170/* confdefs.h. */
5171_ACEOF
5172cat confdefs.h >>conftest.$ac_ext
5173cat >>conftest.$ac_ext <<_ACEOF
5174/* end confdefs.h. */
5175#ifdef __STDC__
5176# include <limits.h>
5177#else
5178# include <assert.h>
5179#endif
5180 Syntax error
5181_ACEOF
5182if { (ac_try="$ac_cpp conftest.$ac_ext"
5183case "(($ac_try" in
5184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5185 *) ac_try_echo=$ac_try;;
5186esac
5187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5189 ac_status=$?
5190 grep -v '^ *+' conftest.er1 >conftest.err
5191 rm -f conftest.er1
5192 cat conftest.err >&5
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); } >/dev/null && {
5195 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5196 test ! -s conftest.err
5197 }; then
5198 :
5199else
5200 echo "$as_me: failed program was:" >&5
5201sed 's/^/| /' conftest.$ac_ext >&5
5202
5203 # Broken: fails on valid input.
5204continue
5205fi
5206
5207rm -f conftest.err conftest.$ac_ext
5208
5209 # OK, works on sane cases. Now check whether nonexistent headers
5210 # can be detected and how.
5211 cat >conftest.$ac_ext <<_ACEOF
5212/* confdefs.h. */
5213_ACEOF
5214cat confdefs.h >>conftest.$ac_ext
5215cat >>conftest.$ac_ext <<_ACEOF
5216/* end confdefs.h. */
5217#include <ac_nonexistent.h>
5218_ACEOF
5219if { (ac_try="$ac_cpp conftest.$ac_ext"
5220case "(($ac_try" in
5221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5222 *) ac_try_echo=$ac_try;;
5223esac
5224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5226 ac_status=$?
5227 grep -v '^ *+' conftest.er1 >conftest.err
5228 rm -f conftest.er1
5229 cat conftest.err >&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); } >/dev/null && {
5232 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5233 test ! -s conftest.err
5234 }; then
5235 # Broken: success on invalid input.
5236continue
5237else
5238 echo "$as_me: failed program was:" >&5
5239sed 's/^/| /' conftest.$ac_ext >&5
5240
5241 # Passes both tests.
5242ac_preproc_ok=:
5243break
5244fi
5245
5246rm -f conftest.err conftest.$ac_ext
5247
5248done
5249# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5250rm -f conftest.err conftest.$ac_ext
5251if $ac_preproc_ok; then
5252 break
5253fi
5254
5255 done
5256 ac_cv_prog_CXXCPP=$CXXCPP
5257
5258fi
5259 CXXCPP=$ac_cv_prog_CXXCPP
5260else
5261 ac_cv_prog_CXXCPP=$CXXCPP
5262fi
5263{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5264echo "${ECHO_T}$CXXCPP" >&6; }
5265ac_preproc_ok=false
5266for ac_cxx_preproc_warn_flag in '' yes
5267do
5268 # Use a header file that comes with gcc, so configuring glibc
5269 # with a fresh cross-compiler works.
5270 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5271 # <limits.h> exists even on freestanding compilers.
5272 # On the NeXT, cc -E runs the code through the compiler's parser,
5273 # not just through cpp. "Syntax error" is here to catch this case.
5274 cat >conftest.$ac_ext <<_ACEOF
5275/* confdefs.h. */
5276_ACEOF
5277cat confdefs.h >>conftest.$ac_ext
5278cat >>conftest.$ac_ext <<_ACEOF
5279/* end confdefs.h. */
5280#ifdef __STDC__
5281# include <limits.h>
5282#else
5283# include <assert.h>
5284#endif
5285 Syntax error
5286_ACEOF
5287if { (ac_try="$ac_cpp conftest.$ac_ext"
5288case "(($ac_try" in
5289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5290 *) ac_try_echo=$ac_try;;
5291esac
5292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5294 ac_status=$?
5295 grep -v '^ *+' conftest.er1 >conftest.err
5296 rm -f conftest.er1
5297 cat conftest.err >&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); } >/dev/null && {
5300 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5301 test ! -s conftest.err
5302 }; then
5303 :
5304else
5305 echo "$as_me: failed program was:" >&5
5306sed 's/^/| /' conftest.$ac_ext >&5
5307
5308 # Broken: fails on valid input.
5309continue
5310fi
5311
5312rm -f conftest.err conftest.$ac_ext
5313
5314 # OK, works on sane cases. Now check whether nonexistent headers
5315 # can be detected and how.
5316 cat >conftest.$ac_ext <<_ACEOF
5317/* confdefs.h. */
5318_ACEOF
5319cat confdefs.h >>conftest.$ac_ext
5320cat >>conftest.$ac_ext <<_ACEOF
5321/* end confdefs.h. */
5322#include <ac_nonexistent.h>
5323_ACEOF
5324if { (ac_try="$ac_cpp conftest.$ac_ext"
5325case "(($ac_try" in
5326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5327 *) ac_try_echo=$ac_try;;
5328esac
5329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5331 ac_status=$?
5332 grep -v '^ *+' conftest.er1 >conftest.err
5333 rm -f conftest.er1
5334 cat conftest.err >&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } >/dev/null && {
5337 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5338 test ! -s conftest.err
5339 }; then
5340 # Broken: success on invalid input.
5341continue
5342else
5343 echo "$as_me: failed program was:" >&5
5344sed 's/^/| /' conftest.$ac_ext >&5
5345
5346 # Passes both tests.
5347ac_preproc_ok=:
5348break
5349fi
5350
5351rm -f conftest.err conftest.$ac_ext
5352
5353done
5354# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5355rm -f conftest.err conftest.$ac_ext
5356if $ac_preproc_ok; then
5357 :
5358else
5359 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5360See \`config.log' for more details." >&5
5361echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5362See \`config.log' for more details." >&2;}
5363 { (exit 1); exit 1; }; }
5364fi
5365
5366ac_ext=cpp
5367ac_cpp='$CXXCPP $CPPFLAGS'
5368ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5369ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5370ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5371 6211
5372 6212
5373{ echo "$as_me:$LINENO: checking for X" >&5 6213{ echo "$as_me:$LINENO: checking for X" >&5
5374echo $ECHO_N "checking for X... $ECHO_C" >&6; } 6214echo $ECHO_N "checking for X... $ECHO_C" >&6; }
5375 6215
6683 LDFLAGS=$ac_save_LDFLAGS 7523 LDFLAGS=$ac_save_LDFLAGS
6684 7524
6685fi 7525fi
6686 7526
6687 7527
7528AFTERIMAGE_CFLAGS=
7529AFTERIMAGE_LIBS=
7530AFTERIMAGE_VERSION=
6688 7531
6689if test x$support_xpm = xyes; then 7532if test x$support_afterimage = xyes; then
7533 support_afterimage=no
6690 7534
6691 7535 if test "x$afterimage_config" = "x" ; then
6692 7536 # Extract the first word of "afterimage-config", so it can be a program name with args.
6693# Initialize some more variables set by options. 7537set dummy afterimage-config; ac_word=$2
6694# The variables have the same names as the options, with
6695# dashes changed to underlines.
6696
6697# If we find XPM, set shell vars xpm_includes and xpm_libraries to the
6698# paths, otherwise set no_xpm=yes.
6699# Uses ac_ vars as temps to allow command line to override cache and checks.
6700{ echo "$as_me:$LINENO: checking for libXpm" >&5 7538{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6701echo $ECHO_N "checking for libXpm... $ECHO_C" >&6; } 7539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6702
6703
6704# Check whether --with-xpm_includes was given.
6705if test "${with_xpm_includes+set}" = set; then
6706 withval=$with_xpm_includes; xpm_includes="$withval"
6707else
6708 xpm_includes=NO
6709fi
6710
6711
6712# Check whether --with-xpm_library was given.
6713if test "${with_xpm_library+set}" = set; then
6714 withval=$with_xpm_library; xpm_libraries="$withval"
6715else
6716 xpm_libraries=NO
6717fi
6718
6719
6720# --without-xpm overrides everything else, but does not touch the cache.
6721
6722# Check whether --with-xpm was given.
6723if test "${with_xpm+set}" = set; then
6724 withval=$with_xpm;
6725fi
6726
6727if test "$with_xpm" = no; then
6728 have_xpm=disabled
6729else
6730 if test "${ac_cv_have_xpm+set}" = set; then 7540if test "${ac_cv_path_afterimage_config+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6 7541 echo $ECHO_N "(cached) $ECHO_C" >&6
6732else 7542else
6733 7543 case $afterimage_config in
6734 vt_xpm_include_X11=no 7544 [\\/]* | ?:[\\/]*)
6735 if test -n "$xpm_includes"; then 7545 ac_cv_path_afterimage_config="$afterimage_config" # Let the user override the test with a path.
6736 vt_xpm_includes=$xpm_includes 7546 ;;
6737 else 7547 *)
6738 vt_xpm_includes=NO 7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549for as_dir in $PATH
7550do
7551 IFS=$as_save_IFS
7552 test -z "$as_dir" && as_dir=.
7553 for ac_exec_ext in '' $ac_executable_extensions; do
7554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7555 ac_cv_path_afterimage_config="$as_dir/$ac_word$ac_exec_ext"
7556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7557 break 2
6739 fi 7558 fi
6740 if test -n "$xpm_libraries"; then 7559done
6741 vt_xpm_libraries=$xpm_libraries 7560done
7561IFS=$as_save_IFS
7562
7563 test -z "$ac_cv_path_afterimage_config" && ac_cv_path_afterimage_config="no"
7564 ;;
7565esac
7566fi
7567afterimage_config=$ac_cv_path_afterimage_config
7568if test -n "$afterimage_config"; then
7569 { echo "$as_me:$LINENO: result: $afterimage_config" >&5
7570echo "${ECHO_T}$afterimage_config" >&6; }
6742 else 7571else
6743 vt_xpm_libraries=NO 7572 { echo "$as_me:$LINENO: result: no" >&5
7573echo "${ECHO_T}no" >&6; }
7574fi
7575
7576
6744 fi 7577 fi
6745 7578 if test "x$afterimage_config" != "xno" ; then
6746 if test "$vt_xpm_includes" = NO; then 7579 { echo "$as_me:$LINENO: checking for libAfterImage version >= 1.15" >&5
6747 # Guess where to find xpm.h 7580echo $ECHO_N "checking for libAfterImage version >= 1.15... $ECHO_C" >&6; }
6748 7581 xAFTERIMAGE_VERSION=`$afterimage_config --version`
6749ac_save_CPPFLAGS="$CPPFLAGS" 7582 if test -n "$xAFTERIMAGE_VERSION" ; then
6750CPPFLAGS="$CPPFLAGS $X_CFLAGS" 7583 xAFTERIMAGE_CFLAGS=`$afterimage_config --cflags`
6751 7584 xAFTERIMAGE_LIBS=`$afterimage_config --libs`
6752 # First, try using that file with no special directory specified. 7585 if test "x$xAFTERIMAGE_LIBS" != "x"; then
6753cat >conftest.$ac_ext <<_ACEOF 7586 libai_ver_major=`echo $xAFTERIMAGE_VERSION | cut -f 1 -d .`
6754/* confdefs.h. */ 7587 libai_ver_minor=`echo $xAFTERIMAGE_VERSION | cut -f 2 -d .`
6755_ACEOF 7588 if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then
6756cat confdefs.h >>conftest.$ac_ext 7589 support_afterimage=yes
6757cat >>conftest.$ac_ext <<_ACEOF 7590 AFTERIMAGE_CFLAGS="$xAFTERIMAGE_CFLAGS"
6758/* end confdefs.h. */ 7591 AFTERIMAGE_LIBS="$xAFTERIMAGE_LIBS"
6759#include <X11/xpm.h> 7592 AFTERIMAGE_VERSION="$xAFTERIMAGE_VERSION"
6760_ACEOF
6761if { (ac_try="$ac_cpp conftest.$ac_ext"
6762case "(($ac_try" in
6763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6764 *) ac_try_echo=$ac_try;;
6765esac
6766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6768 ac_status=$?
6769 grep -v '^ *+' conftest.er1 >conftest.err
6770 rm -f conftest.er1
6771 cat conftest.err >&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); } >/dev/null && {
6774 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6775 test ! -s conftest.err
6776 }; then
6777 # We can compile using X headers with no special include directory.
6778vt_xpm_includes=
6779vt_xpm_include_X11=yes
6780else
6781 echo "$as_me: failed program was:" >&5
6782sed 's/^/| /' conftest.$ac_ext >&5
6783
6784 CPPFLAGS="$ac_save_CPPFLAGS"
6785# Look for the header file in a standard set of common directories.
6786 for ac_dir in \
6787 /usr/X11/include \
6788 /usr/X11R6/include \
6789 /usr/X11R5/include \
6790 /usr/X11R4/include \
6791 \
6792 /usr/include/X11 \
6793 /usr/include/X11R6 \
6794 /usr/include/X11R5 \
6795 /usr/include/X11R4 \
6796 \
6797 /usr/local/X11/include \
6798 /usr/local/X11R6/include \
6799 /usr/local/X11R5/include \
6800 /usr/local/X11R4/include \
6801 \
6802 /usr/local/include/X11 \
6803 /usr/local/include/X11R6 \
6804 /usr/local/include/X11R5 \
6805 /usr/local/include/X11R4 \
6806 \
6807 /usr/X386/include \
6808 /usr/x386/include \
6809 /usr/XFree86/include/X11 \
6810 \
6811 /usr/include \
6812 /usr/local/include \
6813 /usr/unsupported/include \
6814 /usr/athena/include \
6815 /usr/local/x11r5/include \
6816 /usr/lpp/Xamples/include \
6817 \
6818 /usr/openwin/include \
6819 /usr/openwin/share/include \
6820 ; \
6821 do
6822 if test -r "$ac_dir/X11/xpm.h"; then
6823 vt_xpm_includes="$ac_dir"
6824 vt_xpm_include_X11=yes
6825 break
6826 else
6827 if test -r "$ac_dir/xpm.h"; then
6828 vt_xpm_includes=$ac_dir
6829 break
6830 fi
6831 fi
6832 done
6833fi
6834
6835rm -f conftest.err conftest.$ac_ext
6836fi
6837
6838if test "$vt_xpm_libraries" = NO; then
6839 # Check for the libraries.
6840
6841 # See if we find them without any special options.
6842 # Don't add to $LIBS permanently.
6843 ac_save_LIBS="$LIBS"
6844 LIBS="$LIBS $X_LIBS -lXpm -lX11"
6845cat >conftest.$ac_ext <<_ACEOF
6846/* confdefs.h. */
6847_ACEOF
6848cat confdefs.h >>conftest.$ac_ext
6849cat >>conftest.$ac_ext <<_ACEOF
6850/* end confdefs.h. */
6851
6852int
6853main ()
6854{
6855XpmReadFileToPixmap()
6856 ;
6857 return 0;
6858}
6859_ACEOF
6860rm -f conftest.$ac_objext conftest$ac_exeext
6861if { (ac_try="$ac_link"
6862case "(($ac_try" in
6863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6864 *) ac_try_echo=$ac_try;;
6865esac
6866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6867 (eval "$ac_link") 2>conftest.er1
6868 ac_status=$?
6869 grep -v '^ *+' conftest.er1 >conftest.err
6870 rm -f conftest.er1
6871 cat conftest.err >&5
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); } && {
6874 test -z "$ac_cxx_werror_flag" ||
6875 test ! -s conftest.err
6876 } && test -s conftest$ac_exeext &&
6877 $as_test_x conftest$ac_exeext; then
6878 LIBS="$ac_save_LIBS"
6879# We can link libXpm with no special library path.
6880vt_xpm_libraries=
6881else
6882 echo "$as_me: failed program was:" >&5
6883sed 's/^/| /' conftest.$ac_ext >&5
6884
6885 LIBS="$ac_save_LIBS"
6886# First see if replacing the include by lib works.
6887for ac_dir in \
6888 `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
6889 /usr/X11/lib \
6890 /usr/X11R6/lib \
6891 /usr/X11R5/lib \
6892 /usr/X11R4/lib \
6893 \
6894 /usr/lib/X11 \
6895 /usr/lib/X11R6 \
6896 /usr/lib/X11R5 \
6897 /usr/lib/X11R4 \
6898 \
6899 /usr/local/X11/lib \
6900 /usr/local/X11R6/lib \
6901 /usr/local/X11R5/lib \
6902 /usr/local/X11R4/lib \
6903 \
6904 /usr/local/lib/X11 \
6905 /usr/local/lib/X11R6 \
6906 /usr/local/lib/X11R5 \
6907 /usr/local/lib/X11R4 \
6908 \
6909 /usr/X386/lib \
6910 /usr/x386/lib \
6911 /usr/XFree86/lib/X11 \
6912 \
6913 /usr/lib \
6914 /usr/local/lib \
6915 /usr/unsupported/lib \
6916 /usr/athena/lib \
6917 /usr/local/x11r5/lib \
6918 /usr/lpp/Xamples/lib \
6919 \
6920 /usr/openwin/lib \
6921 /usr/openwin/share/lib \
6922 ; \
6923do
6924 for ac_extension in a so sl; do
6925 if test -r $ac_dir/libXpm.$ac_extension; then
6926 vt_xpm_libraries=$ac_dir
6927 break 2
6928 fi
6929 done
6930done
6931fi
6932
6933rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6934 conftest$ac_exeext conftest.$ac_ext
6935fi
6936
6937
6938 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then
6939 ac_cv_have_xpm="have_xpm=no"
6940 else
6941 ac_cv_have_xpm="have_xpm=yes \
6942 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6943 vt_xpm_include_X11=$vt_xpm_include_X11"
6944 fi
6945fi
6946 eval "$ac_cv_have_xpm"
6947fi
6948
6949if test "$have_xpm" != yes; then
6950 { echo "$as_me:$LINENO: result: $have_xpm" >&5
6951echo "${ECHO_T}$have_xpm" >&6; }
6952 no_xpm=yes
6953else
6954 if test "$xpm_includes" != NO; then
6955 if test "$xpm_includes" = "$vt_xpm_includes"; then
6956 if test -r "$xpm_includes/X11/xpm.h"; then
6957 vt_xpm_include_X11=yes
6958 fi
6959 else
6960 vt_xpm_include_X11=no
6961 if test -z "$xpm_includes"; then
6962 cat >conftest.$ac_ext <<_ACEOF
6963/* confdefs.h. */
6964_ACEOF
6965cat confdefs.h >>conftest.$ac_ext
6966cat >>conftest.$ac_ext <<_ACEOF
6967/* end confdefs.h. */
6968#include <X11/xpm.h>
6969_ACEOF
6970if { (ac_try="$ac_cpp conftest.$ac_ext"
6971case "(($ac_try" in
6972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6973 *) ac_try_echo=$ac_try;;
6974esac
6975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6977 ac_status=$?
6978 grep -v '^ *+' conftest.er1 >conftest.err
6979 rm -f conftest.er1
6980 cat conftest.err >&5
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); } >/dev/null && {
6983 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6984 test ! -s conftest.err
6985 }; then
6986 vt_xpm_include_X11=yes
6987else
6988 echo "$as_me: failed program was:" >&5
6989sed 's/^/| /' conftest.$ac_ext >&5
6990
6991
6992fi
6993
6994rm -f conftest.err conftest.$ac_ext
6995 else
6996 if test -r "$xpm_includes/X11/xpm.h"; then
6997 vt_xpm_include_X11=yes
6998 fi 7593 fi
6999 fi 7594 fi
7000 fi 7595 fi
7001 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
7002 fi 7603 fi
7003 if test "x$xpm_libraries" != xNO; then
7004 vt_xpm_libraries=$xpm_libraries
7005 fi
7006 # Update the cache value to reflect the command line values.
7007 ac_cv_have_xpm="have_xpm=yes \
7008 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
7009 vt_xpm_include_X11=$vt_xpm_include_X11"
7010 eval "$ac_cv_have_xpm"
7011 { echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5
7012echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6; }
7013 if test -n "$vt_xpm_includes"; then
7014 XPM_CPPFLAGS="-DHAVE_LIBXPM"
7015 fi
7016 if test -n "$vt_xpm_includes"; then
7017 XPM_CFLAGS="-I$vt_xpm_includes"
7018 fi
7019 XPM_LIBS="-lXpm"
7020 if test -n "$vt_xpm_libraries"; then
7021 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
7022 fi
7023 if test "x$vt_xpm_include_X11" = xyes; then
7024
7025cat >>confdefs.h <<\_ACEOF
7026#define XPM_INC_X11 1
7027_ACEOF
7028
7029 fi
7030fi 7604fi
7031
7032
7033
7034
7035
7036 if test x$no_xpm = xyes; then
7037 support_xpm=needsmanualspecification
7038 fi
7039fi
7040
7041{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7042echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7043if test "${ac_cv_header_sys_wait_h+set}" = set; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7045else
7046 cat >conftest.$ac_ext <<_ACEOF
7047/* confdefs.h. */
7048_ACEOF
7049cat confdefs.h >>conftest.$ac_ext
7050cat >>conftest.$ac_ext <<_ACEOF
7051/* end confdefs.h. */
7052#include <sys/types.h>
7053#include <sys/wait.h>
7054#ifndef WEXITSTATUS
7055# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7056#endif
7057#ifndef WIFEXITED
7058# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7059#endif
7060
7061int
7062main ()
7063{
7064 int s;
7065 wait (&s);
7066 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7067 ;
7068 return 0;
7069}
7070_ACEOF
7071rm -f conftest.$ac_objext
7072if { (ac_try="$ac_compile"
7073case "(($ac_try" in
7074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7075 *) ac_try_echo=$ac_try;;
7076esac
7077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7078 (eval "$ac_compile") 2>conftest.er1
7079 ac_status=$?
7080 grep -v '^ *+' conftest.er1 >conftest.err
7081 rm -f conftest.er1
7082 cat conftest.err >&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } && {
7085 test -z "$ac_cxx_werror_flag" ||
7086 test ! -s conftest.err
7087 } && test -s conftest.$ac_objext; then
7088 ac_cv_header_sys_wait_h=yes
7089else
7090 echo "$as_me: failed program was:" >&5
7091sed 's/^/| /' conftest.$ac_ext >&5
7092
7093 ac_cv_header_sys_wait_h=no
7094fi
7095
7096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7097fi
7098{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7099echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7100if test $ac_cv_header_sys_wait_h = yes; then
7101
7102cat >>confdefs.h <<\_ACEOF
7103#define HAVE_SYS_WAIT_H 1
7104_ACEOF
7105
7106fi
7107
7108{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7109echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7110if test "${ac_cv_header_stdc+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7112else
7113 cat >conftest.$ac_ext <<_ACEOF
7114/* confdefs.h. */
7115_ACEOF
7116cat confdefs.h >>conftest.$ac_ext
7117cat >>conftest.$ac_ext <<_ACEOF
7118/* end confdefs.h. */
7119#include <stdlib.h>
7120#include <stdarg.h>
7121#include <string.h>
7122#include <float.h>
7123
7124int
7125main ()
7126{
7127
7128 ;
7129 return 0;
7130}
7131_ACEOF
7132rm -f conftest.$ac_objext
7133if { (ac_try="$ac_compile"
7134case "(($ac_try" in
7135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7136 *) ac_try_echo=$ac_try;;
7137esac
7138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7139 (eval "$ac_compile") 2>conftest.er1
7140 ac_status=$?
7141 grep -v '^ *+' conftest.er1 >conftest.err
7142 rm -f conftest.er1
7143 cat conftest.err >&5
7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); } && {
7146 test -z "$ac_cxx_werror_flag" ||
7147 test ! -s conftest.err
7148 } && test -s conftest.$ac_objext; then
7149 ac_cv_header_stdc=yes
7150else
7151 echo "$as_me: failed program was:" >&5
7152sed 's/^/| /' conftest.$ac_ext >&5
7153
7154 ac_cv_header_stdc=no
7155fi
7156
7157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7158
7159if test $ac_cv_header_stdc = yes; then
7160 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7161 cat >conftest.$ac_ext <<_ACEOF
7162/* confdefs.h. */
7163_ACEOF
7164cat confdefs.h >>conftest.$ac_ext
7165cat >>conftest.$ac_ext <<_ACEOF
7166/* end confdefs.h. */
7167#include <string.h>
7168
7169_ACEOF
7170if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7171 $EGREP "memchr" >/dev/null 2>&1; then
7172 :
7173else
7174 ac_cv_header_stdc=no
7175fi
7176rm -f conftest*
7177
7178fi
7179
7180if test $ac_cv_header_stdc = yes; then
7181 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7182 cat >conftest.$ac_ext <<_ACEOF
7183/* confdefs.h. */
7184_ACEOF
7185cat confdefs.h >>conftest.$ac_ext
7186cat >>conftest.$ac_ext <<_ACEOF
7187/* end confdefs.h. */
7188#include <stdlib.h>
7189
7190_ACEOF
7191if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7192 $EGREP "free" >/dev/null 2>&1; then
7193 :
7194else
7195 ac_cv_header_stdc=no
7196fi
7197rm -f conftest*
7198
7199fi
7200
7201if test $ac_cv_header_stdc = yes; then
7202 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7203 if test "$cross_compiling" = yes; then
7204 :
7205else
7206 cat >conftest.$ac_ext <<_ACEOF
7207/* confdefs.h. */
7208_ACEOF
7209cat confdefs.h >>conftest.$ac_ext
7210cat >>conftest.$ac_ext <<_ACEOF
7211/* end confdefs.h. */
7212#include <ctype.h>
7213#include <stdlib.h>
7214#if ((' ' & 0x0FF) == 0x020)
7215# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7216# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7217#else
7218# define ISLOWER(c) \
7219 (('a' <= (c) && (c) <= 'i') \
7220 || ('j' <= (c) && (c) <= 'r') \
7221 || ('s' <= (c) && (c) <= 'z'))
7222# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7223#endif
7224
7225#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7226int
7227main ()
7228{
7229 int i;
7230 for (i = 0; i < 256; i++)
7231 if (XOR (islower (i), ISLOWER (i))
7232 || toupper (i) != TOUPPER (i))
7233 return 2;
7234 return 0;
7235}
7236_ACEOF
7237rm -f conftest$ac_exeext
7238if { (ac_try="$ac_link"
7239case "(($ac_try" in
7240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7241 *) ac_try_echo=$ac_try;;
7242esac
7243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7244 (eval "$ac_link") 2>&5
7245 ac_status=$?
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7248 { (case "(($ac_try" in
7249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7250 *) ac_try_echo=$ac_try;;
7251esac
7252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7253 (eval "$ac_try") 2>&5
7254 ac_status=$?
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); }; }; then
7257 :
7258else
7259 echo "$as_me: program exited with status $ac_status" >&5
7260echo "$as_me: failed program was:" >&5
7261sed 's/^/| /' conftest.$ac_ext >&5
7262
7263( exit $ac_status )
7264ac_cv_header_stdc=no
7265fi
7266rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7267fi
7268
7269
7270fi
7271fi
7272{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7273echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7274if test $ac_cv_header_stdc = yes; then
7275
7276cat >>confdefs.h <<\_ACEOF
7277#define STDC_HEADERS 1
7278_ACEOF
7279
7280fi
7281
7282# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7293 inttypes.h stdint.h unistd.h
7294do
7295as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7296{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7297echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7298if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7299 echo $ECHO_N "(cached) $ECHO_C" >&6
7300else
7301 cat >conftest.$ac_ext <<_ACEOF
7302/* confdefs.h. */
7303_ACEOF
7304cat confdefs.h >>conftest.$ac_ext
7305cat >>conftest.$ac_ext <<_ACEOF
7306/* end confdefs.h. */
7307$ac_includes_default
7308
7309#include <$ac_header>
7310_ACEOF
7311rm -f conftest.$ac_objext
7312if { (ac_try="$ac_compile"
7313case "(($ac_try" in
7314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7315 *) ac_try_echo=$ac_try;;
7316esac
7317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7318 (eval "$ac_compile") 2>conftest.er1
7319 ac_status=$?
7320 grep -v '^ *+' conftest.er1 >conftest.err
7321 rm -f conftest.er1
7322 cat conftest.err >&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); } && {
7325 test -z "$ac_cxx_werror_flag" ||
7326 test ! -s conftest.err
7327 } && test -s conftest.$ac_objext; then
7328 eval "$as_ac_Header=yes"
7329else
7330 echo "$as_me: failed program was:" >&5
7331sed 's/^/| /' conftest.$ac_ext >&5
7332
7333 eval "$as_ac_Header=no"
7334fi
7335
7336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7337fi
7338ac_res=`eval echo '${'$as_ac_Header'}'`
7339 { echo "$as_me:$LINENO: result: $ac_res" >&5
7340echo "${ECHO_T}$ac_res" >&6; }
7341if test `eval echo '${'$as_ac_Header'}'` = yes; then
7342 cat >>confdefs.h <<_ACEOF
7343#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7344_ACEOF
7345
7346fi
7347
7348done
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360 7605
7361 7606
7362 7607
7363 7608
7364 7609
7365 7610
7366 7611
7367 7612
7368for ac_header in \ 7613for ac_header in \
7369 assert.h \
7370 fcntl.h \
7371 stdarg.h \
7372 stdlib.h \
7373 string.h \
7374 termios.h \
7375 unistd.h \
7376 sys/byteorder.h \ 7614 sys/byteorder.h \
7377 sys/ioctl.h \ 7615 sys/ioctl.h \
7378 sys/select.h \
7379 sys/sockio.h \ 7616 sys/sockio.h \
7380 sys/strredir.h \ 7617 sys/strredir.h \
7381 sys/time.h \
7382 stdint.h \ 7618 stdint.h \
7383 wchar.h \ 7619 wchar.h \
7384 cwchar \ 7620 cwchar \
7385 clocale \
7386 7621
7387do 7622do
7388as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7623as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7389if { 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
7390 { echo "$as_me:$LINENO: checking for $ac_header" >&5 7625 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7521fi 7756fi
7522 7757
7523done 7758done
7524 7759
7525 7760
7526{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7527echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7528if test "${ac_cv_header_time+set}" = set; then
7529 echo $ECHO_N "(cached) $ECHO_C" >&6
7530else
7531 cat >conftest.$ac_ext <<_ACEOF
7532/* confdefs.h. */
7533_ACEOF
7534cat confdefs.h >>conftest.$ac_ext
7535cat >>conftest.$ac_ext <<_ACEOF
7536/* end confdefs.h. */
7537#include <sys/types.h>
7538#include <sys/time.h>
7539#include <time.h>
7540
7541int
7542main ()
7543{
7544if ((struct tm *) 0)
7545return 0;
7546 ;
7547 return 0;
7548}
7549_ACEOF
7550rm -f conftest.$ac_objext
7551if { (ac_try="$ac_compile"
7552case "(($ac_try" in
7553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7554 *) ac_try_echo=$ac_try;;
7555esac
7556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7557 (eval "$ac_compile") 2>conftest.er1
7558 ac_status=$?
7559 grep -v '^ *+' conftest.er1 >conftest.err
7560 rm -f conftest.er1
7561 cat conftest.err >&5
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); } && {
7564 test -z "$ac_cxx_werror_flag" ||
7565 test ! -s conftest.err
7566 } && test -s conftest.$ac_objext; then
7567 ac_cv_header_time=yes
7568else
7569 echo "$as_me: failed program was:" >&5
7570sed 's/^/| /' conftest.$ac_ext >&5
7571
7572 ac_cv_header_time=no
7573fi
7574
7575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7576fi
7577{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7578echo "${ECHO_T}$ac_cv_header_time" >&6; }
7579if test $ac_cv_header_time = yes; then
7580
7581cat >>confdefs.h <<\_ACEOF
7582#define TIME_WITH_SYS_TIME 1
7583_ACEOF
7584
7585fi
7586
7587
7588{ echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5
7589echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; }
7590if test "${rxvt_cv_header_sysioctl+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7592else
7593 cat >conftest.$ac_ext <<_ACEOF
7594/* confdefs.h. */
7595_ACEOF
7596cat confdefs.h >>conftest.$ac_ext
7597cat >>conftest.$ac_ext <<_ACEOF
7598/* end confdefs.h. */
7599#include <stdio.h>
7600#include <sys/ioctl.h>
7601#ifdef HAVE_TERMIOS_H
7602#include <termios.h>
7603#endif
7604int
7605main ()
7606{
7607int a = ECHO;
7608 ;
7609 return 0;
7610}
7611_ACEOF
7612rm -f conftest.$ac_objext
7613if { (ac_try="$ac_compile"
7614case "(($ac_try" in
7615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7616 *) ac_try_echo=$ac_try;;
7617esac
7618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7619 (eval "$ac_compile") 2>conftest.er1
7620 ac_status=$?
7621 grep -v '^ *+' conftest.er1 >conftest.err
7622 rm -f conftest.er1
7623 cat conftest.err >&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); } && {
7626 test -z "$ac_cxx_werror_flag" ||
7627 test ! -s conftest.err
7628 } && test -s conftest.$ac_objext; then
7629 rxvt_cv_header_sysioctl=yes
7630else
7631 echo "$as_me: failed program was:" >&5
7632sed 's/^/| /' conftest.$ac_ext >&5
7633
7634 rxvt_cv_header_sysioctl=no
7635fi
7636
7637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7638fi
7639{ echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7640echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6; }
7641
7642if test -n "$GCC"; then
7643 LDARG="-Wl,"
7644else
7645 LDARG=""
7646fi
7647R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-rpath '$LDARG'\1/g'
7648
7649ac_save_CFLAGS=$CFLAGS
7650ac_save_LIBS=$LIBS
7651CFLAGS="$CFLAGS $X_CFLAGS"
7652LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7653{ echo "$as_me:$LINENO: checking for -rpath dynamic library path recording" >&5
7654echo $ECHO_N "checking for -rpath dynamic library path recording... $ECHO_C" >&6; }
7655if test "${rxvt_cv_rpath+set}" = set; then
7656 echo $ECHO_N "(cached) $ECHO_C" >&6
7657else
7658 if test "$cross_compiling" = yes; then
7659 { echo "$as_me:$LINENO: WARNING: You may need to check the LIBS line" >&5
7660echo "$as_me: WARNING: You may need to check the LIBS line" >&2;}
7661else
7662 cat >conftest.$ac_ext <<_ACEOF
7663/* confdefs.h. */
7664_ACEOF
7665cat confdefs.h >>conftest.$ac_ext
7666cat >>conftest.$ac_ext <<_ACEOF
7667/* end confdefs.h. */
7668#include <X11/Xlib.h>
7669#include <stdlib.h>
7670main()
7671{
7672 exit(0);
7673 (void) XOpenDisplay("foobar");
7674}
7675_ACEOF
7676rm -f conftest$ac_exeext
7677if { (ac_try="$ac_link"
7678case "(($ac_try" in
7679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7680 *) ac_try_echo=$ac_try;;
7681esac
7682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7683 (eval "$ac_link") 2>&5
7684 ac_status=$?
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7687 { (case "(($ac_try" in
7688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7689 *) ac_try_echo=$ac_try;;
7690esac
7691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7692 (eval "$ac_try") 2>&5
7693 ac_status=$?
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; }; then
7696 rxvt_cv_rpath=yes
7697else
7698 echo "$as_me: program exited with status $ac_status" >&5
7699echo "$as_me: failed program was:" >&5
7700sed 's/^/| /' conftest.$ac_ext >&5
7701
7702( exit $ac_status )
7703rxvt_cv_rpath=no
7704fi
7705rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7706fi
7707
7708
7709fi
7710{ echo "$as_me:$LINENO: result: $rxvt_cv_rpath" >&5
7711echo "${ECHO_T}$rxvt_cv_rpath" >&6; }
7712if test x$rxvt_cv_rpath != xyes; then
7713 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g'
7714 LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7715 { echo "$as_me:$LINENO: checking for -R dynamic library path recording" >&5
7716echo $ECHO_N "checking for -R dynamic library path recording... $ECHO_C" >&6; }
7717if test "${rxvt_cv_R+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7719else
7720 if test "$cross_compiling" = yes; then
7721 rxvt_cv_R=no
7722else
7723 cat >conftest.$ac_ext <<_ACEOF
7724/* confdefs.h. */
7725_ACEOF
7726cat confdefs.h >>conftest.$ac_ext
7727cat >>conftest.$ac_ext <<_ACEOF
7728/* end confdefs.h. */
7729#include <X11/Xlib.h>
7730#include <stdlib.h>
7731main()
7732{
7733 exit(0);
7734 (void) XOpenDisplay("foobar");
7735}
7736_ACEOF
7737rm -f conftest$ac_exeext
7738if { (ac_try="$ac_link"
7739case "(($ac_try" in
7740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7741 *) ac_try_echo=$ac_try;;
7742esac
7743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7744 (eval "$ac_link") 2>&5
7745 ac_status=$?
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7748 { (case "(($ac_try" in
7749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7750 *) ac_try_echo=$ac_try;;
7751esac
7752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7753 (eval "$ac_try") 2>&5
7754 ac_status=$?
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); }; }; then
7757 rxvt_cv_R=yes
7758else
7759 echo "$as_me: program exited with status $ac_status" >&5
7760echo "$as_me: failed program was:" >&5
7761sed 's/^/| /' conftest.$ac_ext >&5
7762
7763( exit $ac_status )
7764rxvt_cv_R=no
7765fi
7766rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7767fi
7768
7769
7770fi
7771{ echo "$as_me:$LINENO: result: $rxvt_cv_R" >&5
7772echo "${ECHO_T}$rxvt_cv_R" >&6; }
7773 if test x$rxvt_cv_R != xyes; then
7774 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7775 fi
7776fi
7777
7778{ echo "$as_me:$LINENO: checking for XPointer" >&5 7761{ echo "$as_me:$LINENO: checking for XPointer" >&5
7779echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } 7762echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; }
7780if test "${rxvt_cv_xpointer+set}" = set; then 7763if test "${rxvt_cv_xpointer+set}" = set; then
7781 echo $ECHO_N "(cached) $ECHO_C" >&6 7764 echo $ECHO_N "(cached) $ECHO_C" >&6
7782else 7765else
7829cat >>confdefs.h <<\_ACEOF 7812cat >>confdefs.h <<\_ACEOF
7830#define HAVE_XPOINTER 1 7813#define HAVE_XPOINTER 1
7831_ACEOF 7814_ACEOF
7832 7815
7833fi 7816fi
7834LIBS=$ac_save_LIBS
7835CFLAGS=$ac_save_CFLAGS
7836 7817
7837{ echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5 7818{ echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5
7838echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6; } 7819echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6; }
7839if test "${rxvt_xlib_illegal_access+set}" = set; then 7820if test "${rxvt_xlib_illegal_access+set}" = set; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6 7821 echo $ECHO_N "(cached) $ECHO_C" >&6
7895cat >>confdefs.h <<\_ACEOF 7876cat >>confdefs.h <<\_ACEOF
7896#define XLIB_ILLEGAL_ACCESS 1 7877#define XLIB_ILLEGAL_ACCESS 1
7897_ACEOF 7878_ACEOF
7898 7879
7899fi 7880fi
7900
7901{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7902echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7903if test "${ac_cv_c_const+set}" = set; then
7904 echo $ECHO_N "(cached) $ECHO_C" >&6
7905else
7906 cat >conftest.$ac_ext <<_ACEOF
7907/* confdefs.h. */
7908_ACEOF
7909cat confdefs.h >>conftest.$ac_ext
7910cat >>conftest.$ac_ext <<_ACEOF
7911/* end confdefs.h. */
7912
7913int
7914main ()
7915{
7916/* FIXME: Include the comments suggested by Paul. */
7917#ifndef __cplusplus
7918 /* Ultrix mips cc rejects this. */
7919 typedef int charset[2];
7920 const charset cs;
7921 /* SunOS 4.1.1 cc rejects this. */
7922 char const *const *pcpcc;
7923 char **ppc;
7924 /* NEC SVR4.0.2 mips cc rejects this. */
7925 struct point {int x, y;};
7926 static struct point const zero = {0,0};
7927 /* AIX XL C 1.02.0.0 rejects this.
7928 It does not let you subtract one const X* pointer from another in
7929 an arm of an if-expression whose if-part is not a constant
7930 expression */
7931 const char *g = "string";
7932 pcpcc = &g + (g ? g-g : 0);
7933 /* HPUX 7.0 cc rejects these. */
7934 ++pcpcc;
7935 ppc = (char**) pcpcc;
7936 pcpcc = (char const *const *) ppc;
7937 { /* SCO 3.2v4 cc rejects this. */
7938 char *t;
7939 char const *s = 0 ? (char *) 0 : (char const *) 0;
7940
7941 *t++ = 0;
7942 if (s) return 0;
7943 }
7944 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7945 int x[] = {25, 17};
7946 const int *foo = &x[0];
7947 ++foo;
7948 }
7949 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7950 typedef const int *iptr;
7951 iptr p = 0;
7952 ++p;
7953 }
7954 { /* AIX XL C 1.02.0.0 rejects this saying
7955 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7956 struct s { int j; const int *ap[3]; };
7957 struct s *b; b->j = 5;
7958 }
7959 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7960 const int foo = 10;
7961 if (!foo) return 0;
7962 }
7963 return !cs[0] && !zero.x;
7964#endif
7965
7966 ;
7967 return 0;
7968}
7969_ACEOF
7970rm -f conftest.$ac_objext
7971if { (ac_try="$ac_compile"
7972case "(($ac_try" in
7973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7974 *) ac_try_echo=$ac_try;;
7975esac
7976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7977 (eval "$ac_compile") 2>conftest.er1
7978 ac_status=$?
7979 grep -v '^ *+' conftest.er1 >conftest.err
7980 rm -f conftest.er1
7981 cat conftest.err >&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); } && {
7984 test -z "$ac_cxx_werror_flag" ||
7985 test ! -s conftest.err
7986 } && test -s conftest.$ac_objext; then
7987 ac_cv_c_const=yes
7988else
7989 echo "$as_me: failed program was:" >&5
7990sed 's/^/| /' conftest.$ac_ext >&5
7991
7992 ac_cv_c_const=no
7993fi
7994
7995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7996fi
7997{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7998echo "${ECHO_T}$ac_cv_c_const" >&6; }
7999if test $ac_cv_c_const = no; then
8000
8001cat >>confdefs.h <<\_ACEOF
8002#define const
8003_ACEOF
8004
8005fi
8006
8007{ echo "$as_me:$LINENO: checking for inline" >&5
8008echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8009if test "${ac_cv_c_inline+set}" = set; then
8010 echo $ECHO_N "(cached) $ECHO_C" >&6
8011else
8012 ac_cv_c_inline=no
8013for ac_kw in inline __inline__ __inline; do
8014 cat >conftest.$ac_ext <<_ACEOF
8015/* confdefs.h. */
8016_ACEOF
8017cat confdefs.h >>conftest.$ac_ext
8018cat >>conftest.$ac_ext <<_ACEOF
8019/* end confdefs.h. */
8020#ifndef __cplusplus
8021typedef int foo_t;
8022static $ac_kw foo_t static_foo () {return 0; }
8023$ac_kw foo_t foo () {return 0; }
8024#endif
8025
8026_ACEOF
8027rm -f conftest.$ac_objext
8028if { (ac_try="$ac_compile"
8029case "(($ac_try" in
8030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8031 *) ac_try_echo=$ac_try;;
8032esac
8033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8034 (eval "$ac_compile") 2>conftest.er1
8035 ac_status=$?
8036 grep -v '^ *+' conftest.er1 >conftest.err
8037 rm -f conftest.er1
8038 cat conftest.err >&5
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); } && {
8041 test -z "$ac_cxx_werror_flag" ||
8042 test ! -s conftest.err
8043 } && test -s conftest.$ac_objext; then
8044 ac_cv_c_inline=$ac_kw
8045else
8046 echo "$as_me: failed program was:" >&5
8047sed 's/^/| /' conftest.$ac_ext >&5
8048
8049
8050fi
8051
8052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8053 test "$ac_cv_c_inline" != no && break
8054done
8055
8056fi
8057{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8058echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8059
8060
8061case $ac_cv_c_inline in
8062 inline | yes) ;;
8063 *)
8064 case $ac_cv_c_inline in
8065 no) ac_val=;;
8066 *) ac_val=$ac_cv_c_inline;;
8067 esac
8068 cat >>confdefs.h <<_ACEOF
8069#ifndef __cplusplus
8070#define inline $ac_val
8071#endif
8072_ACEOF
8073 ;;
8074esac
8075
8076
8077 7881
8078{ echo "$as_me:$LINENO: checking for mode_t" >&5 7882{ echo "$as_me:$LINENO: checking for mode_t" >&5
8079echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } 7883echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
8080if test "${ac_cv_type_mode_t+set}" = set; then 7884if test "${ac_cv_type_mode_t+set}" = set; then
8081 echo $ECHO_N "(cached) $ECHO_C" >&6 7885 echo $ECHO_N "(cached) $ECHO_C" >&6
8238_ACEOF 8042_ACEOF
8239 8043
8240fi 8044fi
8241 8045
8242 8046
8243{ echo "$as_me:$LINENO: checking for short" >&5 8047 { echo "$as_me:$LINENO: checking for int16_t" >&5
8244echo $ECHO_N "checking for short... $ECHO_C" >&6; } 8048echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
8245if test "${ac_cv_type_short+set}" = set; then 8049if test "${ac_cv_c_int16_t+set}" = set; then
8246 echo $ECHO_N "(cached) $ECHO_C" >&6 8050 echo $ECHO_N "(cached) $ECHO_C" >&6
8247else 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
8248 cat >conftest.$ac_ext <<_ACEOF 8055 cat >conftest.$ac_ext <<_ACEOF
8249/* confdefs.h. */ 8056/* confdefs.h. */
8250_ACEOF 8057_ACEOF
8251cat confdefs.h >>conftest.$ac_ext 8058cat confdefs.h >>conftest.$ac_ext
8252cat >>conftest.$ac_ext <<_ACEOF 8059cat >>conftest.$ac_ext <<_ACEOF
8253/* end confdefs.h. */ 8060/* end confdefs.h. */
8254$ac_includes_default 8061$ac_includes_default
8255typedef short ac__type_new_;
8256int 8062int
8257main () 8063main ()
8258{ 8064{
8259if ((ac__type_new_ *) 0) 8065static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
8260 return 0; 8066test_array [0] = 0
8261if (sizeof (ac__type_new_)) 8067
8262 return 0;
8263 ; 8068 ;
8264 return 0; 8069 return 0;
8265} 8070}
8266_ACEOF 8071_ACEOF
8267rm -f conftest.$ac_objext 8072rm -f conftest.$ac_objext
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); } && { 8085 (exit $ac_status); } && {
8281 test -z "$ac_cxx_werror_flag" || 8086 test -z "$ac_cxx_werror_flag" ||
8282 test ! -s conftest.err 8087 test ! -s conftest.err
8283 } && test -s conftest.$ac_objext; then 8088 } && test -s conftest.$ac_objext; then
8284 ac_cv_type_short=yes
8285else
8286 echo "$as_me: failed program was:" >&5
8287sed 's/^/| /' conftest.$ac_ext >&5
8288
8289 ac_cv_type_short=no
8290fi
8291
8292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8293fi
8294{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8295echo "${ECHO_T}$ac_cv_type_short" >&6; }
8296
8297# The cast to long int works around a bug in the HP C Compiler
8298# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8299# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8300# This bug is HP SR number 8606223364.
8301{ echo "$as_me:$LINENO: checking size of short" >&5
8302echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8303if test "${ac_cv_sizeof_short+set}" = set; then
8304 echo $ECHO_N "(cached) $ECHO_C" >&6
8305else
8306 if test "$cross_compiling" = yes; then
8307 # Depending upon the size, compute the lo and hi bounds.
8308cat >conftest.$ac_ext <<_ACEOF 8089 cat >conftest.$ac_ext <<_ACEOF
8309/* confdefs.h. */ 8090/* confdefs.h. */
8310_ACEOF 8091_ACEOF
8311cat confdefs.h >>conftest.$ac_ext 8092cat confdefs.h >>conftest.$ac_ext
8312cat >>conftest.$ac_ext <<_ACEOF 8093cat >>conftest.$ac_ext <<_ACEOF
8313/* end confdefs.h. */ 8094/* end confdefs.h. */
8314$ac_includes_default 8095$ac_includes_default
8315 typedef short ac__type_sizeof_;
8316int 8096int
8317main () 8097main ()
8318{ 8098{
8319static 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))];
8320test_array [0] = 0 8101test_array [0] = 0
8321 8102
8322 ; 8103 ;
8323 return 0; 8104 return 0;
8324} 8105}
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); } && { 8120 (exit $ac_status); } && {
8340 test -z "$ac_cxx_werror_flag" || 8121 test -z "$ac_cxx_werror_flag" ||
8341 test ! -s conftest.err 8122 test ! -s conftest.err
8342 } && test -s conftest.$ac_objext; then 8123 } && test -s conftest.$ac_objext; then
8343 ac_lo=0 ac_mid=0 8124 :
8344 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
8345 cat >conftest.$ac_ext <<_ACEOF 8169 cat >conftest.$ac_ext <<_ACEOF
8346/* confdefs.h. */ 8170/* confdefs.h. */
8347_ACEOF 8171_ACEOF
8348cat confdefs.h >>conftest.$ac_ext 8172cat confdefs.h >>conftest.$ac_ext
8349cat >>conftest.$ac_ext <<_ACEOF 8173cat >>conftest.$ac_ext <<_ACEOF
8350/* end confdefs.h. */ 8174/* end confdefs.h. */
8351$ac_includes_default 8175$ac_includes_default
8352 typedef short ac__type_sizeof_;
8353int 8176int
8354main () 8177main ()
8355{ 8178{
8356static 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)];
8357test_array [0] = 0 8180test_array [0] = 0
8358 8181
8359 ; 8182 ;
8360 return 0; 8183 return 0;
8361} 8184}
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); } && { 8199 (exit $ac_status); } && {
8377 test -z "$ac_cxx_werror_flag" || 8200 test -z "$ac_cxx_werror_flag" ||
8378 test ! -s conftest.err 8201 test ! -s conftest.err
8379 } && test -s conftest.$ac_objext; then 8202 } && test -s conftest.$ac_objext; then
8380 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
8381else 8208else
8382 echo "$as_me: failed program was:" >&5 8209 echo "$as_me: failed program was:" >&5
8383sed 's/^/| /' conftest.$ac_ext >&5 8210sed 's/^/| /' conftest.$ac_ext >&5
8384 8211
8385 ac_lo=`expr $ac_mid + 1` 8212
8386 if test $ac_lo -le $ac_mid; then
8387 ac_lo= ac_hi=
8388 break
8389 fi
8390 ac_mid=`expr 2 '*' $ac_mid + 1`
8391fi 8213fi
8392 8214
8393rm -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
8394 done 8217 done
8395else 8218fi
8396 echo "$as_me: failed program was:" >&5 8219{ echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
8397sed '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 *)
8398 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
8399 cat >conftest.$ac_ext <<_ACEOF 8241 cat >conftest.$ac_ext <<_ACEOF
8400/* confdefs.h. */ 8242/* confdefs.h. */
8401_ACEOF 8243_ACEOF
8402cat confdefs.h >>conftest.$ac_ext 8244cat confdefs.h >>conftest.$ac_ext
8403cat >>conftest.$ac_ext <<_ACEOF 8245cat >>conftest.$ac_ext <<_ACEOF
8404/* end confdefs.h. */ 8246/* end confdefs.h. */
8405$ac_includes_default 8247$ac_includes_default
8406 typedef short ac__type_sizeof_;
8407int 8248int
8408main () 8249main ()
8409{ 8250{
8410static 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))];
8411test_array [0] = 0 8252test_array [0] = 0
8412 8253
8413 ; 8254 ;
8414 return 0; 8255 return 0;
8415} 8256}
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); } && { 8271 (exit $ac_status); } && {
8431 test -z "$ac_cxx_werror_flag" || 8272 test -z "$ac_cxx_werror_flag" ||
8432 test ! -s conftest.err 8273 test ! -s conftest.err
8433 } && test -s conftest.$ac_objext; then 8274 } && test -s conftest.$ac_objext; then
8434 ac_hi=-1 ac_mid=-1
8435 while :; do
8436 cat >conftest.$ac_ext <<_ACEOF 8275 cat >conftest.$ac_ext <<_ACEOF
8437/* confdefs.h. */ 8276/* confdefs.h. */
8438_ACEOF 8277_ACEOF
8439cat confdefs.h >>conftest.$ac_ext 8278cat confdefs.h >>conftest.$ac_ext
8440cat >>conftest.$ac_ext <<_ACEOF 8279cat >>conftest.$ac_ext <<_ACEOF
8441/* end confdefs.h. */ 8280/* end confdefs.h. */
8442$ac_includes_default 8281$ac_includes_default
8443 typedef short ac__type_sizeof_;
8444int 8282int
8445main () 8283main ()
8446{ 8284{
8447static 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))];
8448test_array [0] = 0 8287test_array [0] = 0
8449 8288
8450 ; 8289 ;
8451 return 0; 8290 return 0;
8452} 8291}
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); } && { 8306 (exit $ac_status); } && {
8468 test -z "$ac_cxx_werror_flag" || 8307 test -z "$ac_cxx_werror_flag" ||
8469 test ! -s conftest.err 8308 test ! -s conftest.err
8470 } && test -s conftest.$ac_objext; then 8309 } && test -s conftest.$ac_objext; then
8471 ac_lo=$ac_mid; break 8310 :
8472else 8311else
8473 echo "$as_me: failed program was:" >&5 8312 echo "$as_me: failed program was:" >&5
8474sed 's/^/| /' conftest.$ac_ext >&5 8313sed 's/^/| /' conftest.$ac_ext >&5
8475 8314
8476 ac_hi=`expr '(' $ac_mid ')' - 1` 8315 case $ac_type in
8477 if test $ac_mid -le $ac_hi; then 8316 int32_t) ac_cv_c_int32_t=yes ;;
8478 ac_lo= ac_hi= 8317 *) ac_cv_c_int32_t=$ac_type ;;
8479 break 8318esac
8480 fi 8319
8481 ac_mid=`expr 2 '*' $ac_mid`
8482fi 8320fi
8483 8321
8484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8485 done
8486else 8323else
8487 echo "$as_me: failed program was:" >&5 8324 echo "$as_me: failed program was:" >&5
8488sed 's/^/| /' conftest.$ac_ext >&5 8325sed 's/^/| /' conftest.$ac_ext >&5
8489 8326
8490 ac_lo= ac_hi= 8327
8491fi 8328fi
8492 8329
8493rm -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
8494fi 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 *)
8495 8339
8496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8340cat >>confdefs.h <<_ACEOF
8497# Binary search between lo and hi bounds. 8341#define int32_t $ac_cv_c_int32_t
8498while test "x$ac_lo" != "x$ac_hi"; do 8342_ACEOF
8499 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
8500 cat >conftest.$ac_ext <<_ACEOF 8355 cat >conftest.$ac_ext <<_ACEOF
8501/* confdefs.h. */ 8356/* confdefs.h. */
8502_ACEOF 8357_ACEOF
8503cat confdefs.h >>conftest.$ac_ext 8358cat confdefs.h >>conftest.$ac_ext
8504cat >>conftest.$ac_ext <<_ACEOF 8359cat >>conftest.$ac_ext <<_ACEOF
8505/* end confdefs.h. */ 8360/* end confdefs.h. */
8506$ac_includes_default 8361$ac_includes_default
8507 typedef short ac__type_sizeof_;
8508int 8362int
8509main () 8363main ()
8510{ 8364{
8511static 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)];
8512test_array [0] = 0 8366test_array [0] = 0
8513 8367
8514 ; 8368 ;
8515 return 0; 8369 return 0;
8516} 8370}
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); } && { 8385 (exit $ac_status); } && {
8532 test -z "$ac_cxx_werror_flag" || 8386 test -z "$ac_cxx_werror_flag" ||
8533 test ! -s conftest.err 8387 test ! -s conftest.err
8534 } && test -s conftest.$ac_objext; then 8388 } && test -s conftest.$ac_objext; then
8535 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
8536else 8394else
8537 echo "$as_me: failed program was:" >&5 8395 echo "$as_me: failed program was:" >&5
8538sed 's/^/| /' conftest.$ac_ext >&5 8396sed 's/^/| /' conftest.$ac_ext >&5
8539 8397
8540 ac_lo=`expr '(' $ac_mid ')' + 1` 8398
8541fi 8399fi
8542 8400
8543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8544done 8402 test "$ac_cv_c_uint32_t" != no && break
8545case $ac_lo in 8403 done
8546?*) ac_cv_sizeof_short=$ac_lo;;
8547'') if test "$ac_cv_type_short" = yes; then
8548 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8549See \`config.log' for more details." >&5
8550echo "$as_me: error: cannot compute sizeof (short)
8551See \`config.log' for more details." >&2;}
8552 { (exit 77); exit 77; }; }
8553 else
8554 ac_cv_sizeof_short=0
8555 fi ;;
8556esac
8557else
8558 cat >conftest.$ac_ext <<_ACEOF
8559/* confdefs.h. */
8560_ACEOF
8561cat confdefs.h >>conftest.$ac_ext
8562cat >>conftest.$ac_ext <<_ACEOF
8563/* end confdefs.h. */
8564$ac_includes_default
8565 typedef short ac__type_sizeof_;
8566static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8567static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8568#include <stdio.h>
8569#include <stdlib.h>
8570int
8571main ()
8572{
8573
8574 FILE *f = fopen ("conftest.val", "w");
8575 if (! f)
8576 return 1;
8577 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8578 {
8579 long int i = longval ();
8580 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8581 return 1;
8582 fprintf (f, "%ld\n", i);
8583 }
8584 else
8585 {
8586 unsigned long int i = ulongval ();
8587 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8588 return 1;
8589 fprintf (f, "%lu\n", i);
8590 }
8591 return ferror (f) || fclose (f) != 0;
8592
8593 ;
8594 return 0;
8595}
8596_ACEOF
8597rm -f conftest$ac_exeext
8598if { (ac_try="$ac_link"
8599case "(($ac_try" in
8600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8601 *) ac_try_echo=$ac_try;;
8602esac
8603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8604 (eval "$ac_link") 2>&5
8605 ac_status=$?
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8608 { (case "(($ac_try" in
8609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8610 *) ac_try_echo=$ac_try;;
8611esac
8612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8613 (eval "$ac_try") 2>&5
8614 ac_status=$?
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); }; }; then
8617 ac_cv_sizeof_short=`cat conftest.val`
8618else
8619 echo "$as_me: program exited with status $ac_status" >&5
8620echo "$as_me: failed program was:" >&5
8621sed 's/^/| /' conftest.$ac_ext >&5
8622
8623( exit $ac_status )
8624if test "$ac_cv_type_short" = yes; then
8625 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8626See \`config.log' for more details." >&5
8627echo "$as_me: error: cannot compute sizeof (short)
8628See \`config.log' for more details." >&2;}
8629 { (exit 77); exit 77; }; }
8630 else
8631 ac_cv_sizeof_short=0
8632 fi
8633fi 8404fi
8634rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8635fi
8636rm -f conftest.val
8637fi
8638{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 8405{ echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
8639echo "${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 *)
8640 8410
8411cat >>confdefs.h <<\_ACEOF
8412#define _UINT32_T 1
8413_ACEOF
8641 8414
8642 8415
8643cat >>confdefs.h <<_ACEOF 8416cat >>confdefs.h <<_ACEOF
8644#define SIZEOF_SHORT $ac_cv_sizeof_short 8417#define uint32_t $ac_cv_c_uint32_t
8645_ACEOF 8418_ACEOF
8646 8419;;
8647
8648{ echo "$as_me:$LINENO: checking for int" >&5
8649echo $ECHO_N "checking for int... $ECHO_C" >&6; }
8650if test "${ac_cv_type_int+set}" = set; then
8651 echo $ECHO_N "(cached) $ECHO_C" >&6
8652else
8653 cat >conftest.$ac_ext <<_ACEOF
8654/* confdefs.h. */
8655_ACEOF
8656cat confdefs.h >>conftest.$ac_ext
8657cat >>conftest.$ac_ext <<_ACEOF
8658/* end confdefs.h. */
8659$ac_includes_default
8660typedef int ac__type_new_;
8661int
8662main ()
8663{
8664if ((ac__type_new_ *) 0)
8665 return 0;
8666if (sizeof (ac__type_new_))
8667 return 0;
8668 ;
8669 return 0;
8670}
8671_ACEOF
8672rm -f conftest.$ac_objext
8673if { (ac_try="$ac_compile"
8674case "(($ac_try" in
8675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8676 *) ac_try_echo=$ac_try;;
8677esac 8420 esac
8678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8679 (eval "$ac_compile") 2>conftest.er1
8680 ac_status=$?
8681 grep -v '^ *+' conftest.er1 >conftest.err
8682 rm -f conftest.er1
8683 cat conftest.err >&5
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); } && {
8686 test -z "$ac_cxx_werror_flag" ||
8687 test ! -s conftest.err
8688 } && test -s conftest.$ac_objext; then
8689 ac_cv_type_int=yes
8690else
8691 echo "$as_me: failed program was:" >&5
8692sed 's/^/| /' conftest.$ac_ext >&5
8693 8421
8694 ac_cv_type_int=no
8695fi
8696 8422
8697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8698fi
8699{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8700echo "${ECHO_T}$ac_cv_type_int" >&6; }
8701 8423
8702# The cast to long int works around a bug in the HP C Compiler
8703# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8704# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8705# This bug is HP SR number 8606223364.
8706{ echo "$as_me:$LINENO: checking size of int" >&5
8707echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
8708if test "${ac_cv_sizeof_int+set}" = set; then
8709 echo $ECHO_N "(cached) $ECHO_C" >&6
8710else
8711 if test "$cross_compiling" = yes; then
8712 # Depending upon the size, compute the lo and hi bounds.
8713cat >conftest.$ac_ext <<_ACEOF
8714/* confdefs.h. */
8715_ACEOF
8716cat confdefs.h >>conftest.$ac_ext
8717cat >>conftest.$ac_ext <<_ACEOF
8718/* end confdefs.h. */
8719$ac_includes_default
8720 typedef int ac__type_sizeof_;
8721int
8722main ()
8723{
8724static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8725test_array [0] = 0
8726
8727 ;
8728 return 0;
8729}
8730_ACEOF
8731rm -f conftest.$ac_objext
8732if { (ac_try="$ac_compile"
8733case "(($ac_try" in
8734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8735 *) ac_try_echo=$ac_try;;
8736esac
8737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8738 (eval "$ac_compile") 2>conftest.er1
8739 ac_status=$?
8740 grep -v '^ *+' conftest.er1 >conftest.err
8741 rm -f conftest.er1
8742 cat conftest.err >&5
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); } && {
8745 test -z "$ac_cxx_werror_flag" ||
8746 test ! -s conftest.err
8747 } && test -s conftest.$ac_objext; then
8748 ac_lo=0 ac_mid=0
8749 while :; do
8750 cat >conftest.$ac_ext <<_ACEOF
8751/* confdefs.h. */
8752_ACEOF
8753cat confdefs.h >>conftest.$ac_ext
8754cat >>conftest.$ac_ext <<_ACEOF
8755/* end confdefs.h. */
8756$ac_includes_default
8757 typedef int ac__type_sizeof_;
8758int
8759main ()
8760{
8761static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8762test_array [0] = 0
8763
8764 ;
8765 return 0;
8766}
8767_ACEOF
8768rm -f conftest.$ac_objext
8769if { (ac_try="$ac_compile"
8770case "(($ac_try" in
8771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8772 *) ac_try_echo=$ac_try;;
8773esac
8774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8775 (eval "$ac_compile") 2>conftest.er1
8776 ac_status=$?
8777 grep -v '^ *+' conftest.er1 >conftest.err
8778 rm -f conftest.er1
8779 cat conftest.err >&5
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); } && {
8782 test -z "$ac_cxx_werror_flag" ||
8783 test ! -s conftest.err
8784 } && test -s conftest.$ac_objext; then
8785 ac_hi=$ac_mid; break
8786else
8787 echo "$as_me: failed program was:" >&5
8788sed 's/^/| /' conftest.$ac_ext >&5
8789
8790 ac_lo=`expr $ac_mid + 1`
8791 if test $ac_lo -le $ac_mid; then
8792 ac_lo= ac_hi=
8793 break
8794 fi
8795 ac_mid=`expr 2 '*' $ac_mid + 1`
8796fi
8797
8798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8799 done
8800else
8801 echo "$as_me: failed program was:" >&5
8802sed 's/^/| /' conftest.$ac_ext >&5
8803
8804 cat >conftest.$ac_ext <<_ACEOF
8805/* confdefs.h. */
8806_ACEOF
8807cat confdefs.h >>conftest.$ac_ext
8808cat >>conftest.$ac_ext <<_ACEOF
8809/* end confdefs.h. */
8810$ac_includes_default
8811 typedef int ac__type_sizeof_;
8812int
8813main ()
8814{
8815static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8816test_array [0] = 0
8817
8818 ;
8819 return 0;
8820}
8821_ACEOF
8822rm -f conftest.$ac_objext
8823if { (ac_try="$ac_compile"
8824case "(($ac_try" in
8825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8826 *) ac_try_echo=$ac_try;;
8827esac
8828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8829 (eval "$ac_compile") 2>conftest.er1
8830 ac_status=$?
8831 grep -v '^ *+' conftest.er1 >conftest.err
8832 rm -f conftest.er1
8833 cat conftest.err >&5
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); } && {
8836 test -z "$ac_cxx_werror_flag" ||
8837 test ! -s conftest.err
8838 } && test -s conftest.$ac_objext; then
8839 ac_hi=-1 ac_mid=-1
8840 while :; do
8841 cat >conftest.$ac_ext <<_ACEOF
8842/* confdefs.h. */
8843_ACEOF
8844cat confdefs.h >>conftest.$ac_ext
8845cat >>conftest.$ac_ext <<_ACEOF
8846/* end confdefs.h. */
8847$ac_includes_default
8848 typedef int ac__type_sizeof_;
8849int
8850main ()
8851{
8852static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8853test_array [0] = 0
8854
8855 ;
8856 return 0;
8857}
8858_ACEOF
8859rm -f conftest.$ac_objext
8860if { (ac_try="$ac_compile"
8861case "(($ac_try" in
8862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8863 *) ac_try_echo=$ac_try;;
8864esac
8865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8866 (eval "$ac_compile") 2>conftest.er1
8867 ac_status=$?
8868 grep -v '^ *+' conftest.er1 >conftest.err
8869 rm -f conftest.er1
8870 cat conftest.err >&5
8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 (exit $ac_status); } && {
8873 test -z "$ac_cxx_werror_flag" ||
8874 test ! -s conftest.err
8875 } && test -s conftest.$ac_objext; then
8876 ac_lo=$ac_mid; break
8877else
8878 echo "$as_me: failed program was:" >&5
8879sed 's/^/| /' conftest.$ac_ext >&5
8880
8881 ac_hi=`expr '(' $ac_mid ')' - 1`
8882 if test $ac_mid -le $ac_hi; then
8883 ac_lo= ac_hi=
8884 break
8885 fi
8886 ac_mid=`expr 2 '*' $ac_mid`
8887fi
8888
8889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8890 done
8891else
8892 echo "$as_me: failed program was:" >&5
8893sed 's/^/| /' conftest.$ac_ext >&5
8894
8895 ac_lo= ac_hi=
8896fi
8897
8898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8899fi
8900
8901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8902# Binary search between lo and hi bounds.
8903while test "x$ac_lo" != "x$ac_hi"; do
8904 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8905 cat >conftest.$ac_ext <<_ACEOF
8906/* confdefs.h. */
8907_ACEOF
8908cat confdefs.h >>conftest.$ac_ext
8909cat >>conftest.$ac_ext <<_ACEOF
8910/* end confdefs.h. */
8911$ac_includes_default
8912 typedef int ac__type_sizeof_;
8913int
8914main ()
8915{
8916static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8917test_array [0] = 0
8918
8919 ;
8920 return 0;
8921}
8922_ACEOF
8923rm -f conftest.$ac_objext
8924if { (ac_try="$ac_compile"
8925case "(($ac_try" in
8926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8927 *) ac_try_echo=$ac_try;;
8928esac
8929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8930 (eval "$ac_compile") 2>conftest.er1
8931 ac_status=$?
8932 grep -v '^ *+' conftest.er1 >conftest.err
8933 rm -f conftest.er1
8934 cat conftest.err >&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); } && {
8937 test -z "$ac_cxx_werror_flag" ||
8938 test ! -s conftest.err
8939 } && test -s conftest.$ac_objext; then
8940 ac_hi=$ac_mid
8941else
8942 echo "$as_me: failed program was:" >&5
8943sed 's/^/| /' conftest.$ac_ext >&5
8944
8945 ac_lo=`expr '(' $ac_mid ')' + 1`
8946fi
8947
8948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8949done
8950case $ac_lo in
8951?*) ac_cv_sizeof_int=$ac_lo;;
8952'') if test "$ac_cv_type_int" = yes; then
8953 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8954See \`config.log' for more details." >&5
8955echo "$as_me: error: cannot compute sizeof (int)
8956See \`config.log' for more details." >&2;}
8957 { (exit 77); exit 77; }; }
8958 else
8959 ac_cv_sizeof_int=0
8960 fi ;;
8961esac
8962else
8963 cat >conftest.$ac_ext <<_ACEOF
8964/* confdefs.h. */
8965_ACEOF
8966cat confdefs.h >>conftest.$ac_ext
8967cat >>conftest.$ac_ext <<_ACEOF
8968/* end confdefs.h. */
8969$ac_includes_default
8970 typedef int ac__type_sizeof_;
8971static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8972static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8973#include <stdio.h>
8974#include <stdlib.h>
8975int
8976main ()
8977{
8978
8979 FILE *f = fopen ("conftest.val", "w");
8980 if (! f)
8981 return 1;
8982 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8983 {
8984 long int i = longval ();
8985 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8986 return 1;
8987 fprintf (f, "%ld\n", i);
8988 }
8989 else
8990 {
8991 unsigned long int i = ulongval ();
8992 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8993 return 1;
8994 fprintf (f, "%lu\n", i);
8995 }
8996 return ferror (f) || fclose (f) != 0;
8997
8998 ;
8999 return 0;
9000}
9001_ACEOF
9002rm -f conftest$ac_exeext
9003if { (ac_try="$ac_link"
9004case "(($ac_try" in
9005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9006 *) ac_try_echo=$ac_try;;
9007esac
9008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9009 (eval "$ac_link") 2>&5
9010 ac_status=$?
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9013 { (case "(($ac_try" in
9014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9015 *) ac_try_echo=$ac_try;;
9016esac
9017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9018 (eval "$ac_try") 2>&5
9019 ac_status=$?
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); }; }; then
9022 ac_cv_sizeof_int=`cat conftest.val`
9023else
9024 echo "$as_me: program exited with status $ac_status" >&5
9025echo "$as_me: failed program was:" >&5
9026sed 's/^/| /' conftest.$ac_ext >&5
9027
9028( exit $ac_status )
9029if test "$ac_cv_type_int" = yes; then
9030 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
9031See \`config.log' for more details." >&5
9032echo "$as_me: error: cannot compute sizeof (int)
9033See \`config.log' for more details." >&2;}
9034 { (exit 77); exit 77; }; }
9035 else
9036 ac_cv_sizeof_int=0
9037 fi
9038fi
9039rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9040fi
9041rm -f conftest.val
9042fi
9043{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
9044echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
9045
9046
9047
9048cat >>confdefs.h <<_ACEOF
9049#define SIZEOF_INT $ac_cv_sizeof_int
9050_ACEOF
9051
9052
9053{ echo "$as_me:$LINENO: checking for long long" >&5
9054echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
9055if test "${ac_cv_type_long_long+set}" = set; then
9056 echo $ECHO_N "(cached) $ECHO_C" >&6
9057else
9058 cat >conftest.$ac_ext <<_ACEOF
9059/* confdefs.h. */
9060_ACEOF
9061cat confdefs.h >>conftest.$ac_ext
9062cat >>conftest.$ac_ext <<_ACEOF
9063/* end confdefs.h. */
9064$ac_includes_default
9065typedef long long ac__type_new_;
9066int
9067main ()
9068{
9069if ((ac__type_new_ *) 0)
9070 return 0;
9071if (sizeof (ac__type_new_))
9072 return 0;
9073 ;
9074 return 0;
9075}
9076_ACEOF
9077rm -f conftest.$ac_objext
9078if { (ac_try="$ac_compile"
9079case "(($ac_try" in
9080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9081 *) ac_try_echo=$ac_try;;
9082esac
9083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9084 (eval "$ac_compile") 2>conftest.er1
9085 ac_status=$?
9086 grep -v '^ *+' conftest.er1 >conftest.err
9087 rm -f conftest.er1
9088 cat conftest.err >&5
9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090 (exit $ac_status); } && {
9091 test -z "$ac_cxx_werror_flag" ||
9092 test ! -s conftest.err
9093 } && test -s conftest.$ac_objext; then
9094 ac_cv_type_long_long=yes
9095else
9096 echo "$as_me: failed program was:" >&5
9097sed 's/^/| /' conftest.$ac_ext >&5
9098
9099 ac_cv_type_long_long=no
9100fi
9101
9102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9103fi
9104{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9105echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
9106
9107# The cast to long int works around a bug in the HP C Compiler
9108# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9109# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9110# This bug is HP SR number 8606223364.
9111{ echo "$as_me:$LINENO: checking size of long long" >&5
9112echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
9113if test "${ac_cv_sizeof_long_long+set}" = set; then
9114 echo $ECHO_N "(cached) $ECHO_C" >&6
9115else
9116 if test "$cross_compiling" = yes; then
9117 # Depending upon the size, compute the lo and hi bounds.
9118cat >conftest.$ac_ext <<_ACEOF
9119/* confdefs.h. */
9120_ACEOF
9121cat confdefs.h >>conftest.$ac_ext
9122cat >>conftest.$ac_ext <<_ACEOF
9123/* end confdefs.h. */
9124$ac_includes_default
9125 typedef long long ac__type_sizeof_;
9126int
9127main ()
9128{
9129static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9130test_array [0] = 0
9131
9132 ;
9133 return 0;
9134}
9135_ACEOF
9136rm -f conftest.$ac_objext
9137if { (ac_try="$ac_compile"
9138case "(($ac_try" in
9139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9140 *) ac_try_echo=$ac_try;;
9141esac
9142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9143 (eval "$ac_compile") 2>conftest.er1
9144 ac_status=$?
9145 grep -v '^ *+' conftest.er1 >conftest.err
9146 rm -f conftest.er1
9147 cat conftest.err >&5
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); } && {
9150 test -z "$ac_cxx_werror_flag" ||
9151 test ! -s conftest.err
9152 } && test -s conftest.$ac_objext; then
9153 ac_lo=0 ac_mid=0
9154 while :; do
9155 cat >conftest.$ac_ext <<_ACEOF
9156/* confdefs.h. */
9157_ACEOF
9158cat confdefs.h >>conftest.$ac_ext
9159cat >>conftest.$ac_ext <<_ACEOF
9160/* end confdefs.h. */
9161$ac_includes_default
9162 typedef long long ac__type_sizeof_;
9163int
9164main ()
9165{
9166static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9167test_array [0] = 0
9168
9169 ;
9170 return 0;
9171}
9172_ACEOF
9173rm -f conftest.$ac_objext
9174if { (ac_try="$ac_compile"
9175case "(($ac_try" in
9176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9177 *) ac_try_echo=$ac_try;;
9178esac
9179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9180 (eval "$ac_compile") 2>conftest.er1
9181 ac_status=$?
9182 grep -v '^ *+' conftest.er1 >conftest.err
9183 rm -f conftest.er1
9184 cat conftest.err >&5
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); } && {
9187 test -z "$ac_cxx_werror_flag" ||
9188 test ! -s conftest.err
9189 } && test -s conftest.$ac_objext; then
9190 ac_hi=$ac_mid; break
9191else
9192 echo "$as_me: failed program was:" >&5
9193sed 's/^/| /' conftest.$ac_ext >&5
9194
9195 ac_lo=`expr $ac_mid + 1`
9196 if test $ac_lo -le $ac_mid; then
9197 ac_lo= ac_hi=
9198 break
9199 fi
9200 ac_mid=`expr 2 '*' $ac_mid + 1`
9201fi
9202
9203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9204 done
9205else
9206 echo "$as_me: failed program was:" >&5
9207sed 's/^/| /' conftest.$ac_ext >&5
9208
9209 cat >conftest.$ac_ext <<_ACEOF
9210/* confdefs.h. */
9211_ACEOF
9212cat confdefs.h >>conftest.$ac_ext
9213cat >>conftest.$ac_ext <<_ACEOF
9214/* end confdefs.h. */
9215$ac_includes_default
9216 typedef long long ac__type_sizeof_;
9217int
9218main ()
9219{
9220static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9221test_array [0] = 0
9222
9223 ;
9224 return 0;
9225}
9226_ACEOF
9227rm -f conftest.$ac_objext
9228if { (ac_try="$ac_compile"
9229case "(($ac_try" in
9230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9231 *) ac_try_echo=$ac_try;;
9232esac
9233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9234 (eval "$ac_compile") 2>conftest.er1
9235 ac_status=$?
9236 grep -v '^ *+' conftest.er1 >conftest.err
9237 rm -f conftest.er1
9238 cat conftest.err >&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); } && {
9241 test -z "$ac_cxx_werror_flag" ||
9242 test ! -s conftest.err
9243 } && test -s conftest.$ac_objext; then
9244 ac_hi=-1 ac_mid=-1
9245 while :; do
9246 cat >conftest.$ac_ext <<_ACEOF
9247/* confdefs.h. */
9248_ACEOF
9249cat confdefs.h >>conftest.$ac_ext
9250cat >>conftest.$ac_ext <<_ACEOF
9251/* end confdefs.h. */
9252$ac_includes_default
9253 typedef long long ac__type_sizeof_;
9254int
9255main ()
9256{
9257static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9258test_array [0] = 0
9259
9260 ;
9261 return 0;
9262}
9263_ACEOF
9264rm -f conftest.$ac_objext
9265if { (ac_try="$ac_compile"
9266case "(($ac_try" in
9267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9268 *) ac_try_echo=$ac_try;;
9269esac
9270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9271 (eval "$ac_compile") 2>conftest.er1
9272 ac_status=$?
9273 grep -v '^ *+' conftest.er1 >conftest.err
9274 rm -f conftest.er1
9275 cat conftest.err >&5
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); } && {
9278 test -z "$ac_cxx_werror_flag" ||
9279 test ! -s conftest.err
9280 } && test -s conftest.$ac_objext; then
9281 ac_lo=$ac_mid; break
9282else
9283 echo "$as_me: failed program was:" >&5
9284sed 's/^/| /' conftest.$ac_ext >&5
9285
9286 ac_hi=`expr '(' $ac_mid ')' - 1`
9287 if test $ac_mid -le $ac_hi; then
9288 ac_lo= ac_hi=
9289 break
9290 fi
9291 ac_mid=`expr 2 '*' $ac_mid`
9292fi
9293
9294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9295 done
9296else
9297 echo "$as_me: failed program was:" >&5
9298sed 's/^/| /' conftest.$ac_ext >&5
9299
9300 ac_lo= ac_hi=
9301fi
9302
9303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9304fi
9305
9306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9307# Binary search between lo and hi bounds.
9308while test "x$ac_lo" != "x$ac_hi"; do
9309 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9310 cat >conftest.$ac_ext <<_ACEOF
9311/* confdefs.h. */
9312_ACEOF
9313cat confdefs.h >>conftest.$ac_ext
9314cat >>conftest.$ac_ext <<_ACEOF
9315/* end confdefs.h. */
9316$ac_includes_default
9317 typedef long long ac__type_sizeof_;
9318int
9319main ()
9320{
9321static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9322test_array [0] = 0
9323
9324 ;
9325 return 0;
9326}
9327_ACEOF
9328rm -f conftest.$ac_objext
9329if { (ac_try="$ac_compile"
9330case "(($ac_try" in
9331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9332 *) ac_try_echo=$ac_try;;
9333esac
9334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9335 (eval "$ac_compile") 2>conftest.er1
9336 ac_status=$?
9337 grep -v '^ *+' conftest.er1 >conftest.err
9338 rm -f conftest.er1
9339 cat conftest.err >&5
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 (exit $ac_status); } && {
9342 test -z "$ac_cxx_werror_flag" ||
9343 test ! -s conftest.err
9344 } && test -s conftest.$ac_objext; then
9345 ac_hi=$ac_mid
9346else
9347 echo "$as_me: failed program was:" >&5
9348sed 's/^/| /' conftest.$ac_ext >&5
9349
9350 ac_lo=`expr '(' $ac_mid ')' + 1`
9351fi
9352
9353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9354done
9355case $ac_lo in
9356?*) ac_cv_sizeof_long_long=$ac_lo;;
9357'') if test "$ac_cv_type_long_long" = yes; then
9358 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9359See \`config.log' for more details." >&5
9360echo "$as_me: error: cannot compute sizeof (long long)
9361See \`config.log' for more details." >&2;}
9362 { (exit 77); exit 77; }; }
9363 else
9364 ac_cv_sizeof_long_long=0
9365 fi ;;
9366esac
9367else
9368 cat >conftest.$ac_ext <<_ACEOF
9369/* confdefs.h. */
9370_ACEOF
9371cat confdefs.h >>conftest.$ac_ext
9372cat >>conftest.$ac_ext <<_ACEOF
9373/* end confdefs.h. */
9374$ac_includes_default
9375 typedef long long ac__type_sizeof_;
9376static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9377static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9378#include <stdio.h>
9379#include <stdlib.h>
9380int
9381main ()
9382{
9383
9384 FILE *f = fopen ("conftest.val", "w");
9385 if (! f)
9386 return 1;
9387 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9388 {
9389 long int i = longval ();
9390 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9391 return 1;
9392 fprintf (f, "%ld\n", i);
9393 }
9394 else
9395 {
9396 unsigned long int i = ulongval ();
9397 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9398 return 1;
9399 fprintf (f, "%lu\n", i);
9400 }
9401 return ferror (f) || fclose (f) != 0;
9402
9403 ;
9404 return 0;
9405}
9406_ACEOF
9407rm -f conftest$ac_exeext
9408if { (ac_try="$ac_link"
9409case "(($ac_try" in
9410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9411 *) ac_try_echo=$ac_try;;
9412esac
9413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9414 (eval "$ac_link") 2>&5
9415 ac_status=$?
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9418 { (case "(($ac_try" in
9419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9420 *) ac_try_echo=$ac_try;;
9421esac
9422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9423 (eval "$ac_try") 2>&5
9424 ac_status=$?
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); }; }; then
9427 ac_cv_sizeof_long_long=`cat conftest.val`
9428else
9429 echo "$as_me: program exited with status $ac_status" >&5
9430echo "$as_me: failed program was:" >&5
9431sed 's/^/| /' conftest.$ac_ext >&5
9432
9433( exit $ac_status )
9434if test "$ac_cv_type_long_long" = yes; then
9435 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9436See \`config.log' for more details." >&5
9437echo "$as_me: error: cannot compute sizeof (long long)
9438See \`config.log' for more details." >&2;}
9439 { (exit 77); exit 77; }; }
9440 else
9441 ac_cv_sizeof_long_long=0
9442 fi
9443fi
9444rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9445fi
9446rm -f conftest.val
9447fi
9448{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
9449echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
9450
9451
9452
9453cat >>confdefs.h <<_ACEOF
9454#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9455_ACEOF
9456
9457
9458{ echo "$as_me:$LINENO: checking for int *" >&5
9459echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
9460if test "${ac_cv_type_int_p+set}" = set; then
9461 echo $ECHO_N "(cached) $ECHO_C" >&6
9462else
9463 cat >conftest.$ac_ext <<_ACEOF
9464/* confdefs.h. */
9465_ACEOF
9466cat confdefs.h >>conftest.$ac_ext
9467cat >>conftest.$ac_ext <<_ACEOF
9468/* end confdefs.h. */
9469$ac_includes_default
9470typedef int * ac__type_new_;
9471int
9472main ()
9473{
9474if ((ac__type_new_ *) 0)
9475 return 0;
9476if (sizeof (ac__type_new_))
9477 return 0;
9478 ;
9479 return 0;
9480}
9481_ACEOF
9482rm -f conftest.$ac_objext
9483if { (ac_try="$ac_compile"
9484case "(($ac_try" in
9485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9486 *) ac_try_echo=$ac_try;;
9487esac
9488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9489 (eval "$ac_compile") 2>conftest.er1
9490 ac_status=$?
9491 grep -v '^ *+' conftest.er1 >conftest.err
9492 rm -f conftest.er1
9493 cat conftest.err >&5
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 (exit $ac_status); } && {
9496 test -z "$ac_cxx_werror_flag" ||
9497 test ! -s conftest.err
9498 } && test -s conftest.$ac_objext; then
9499 ac_cv_type_int_p=yes
9500else
9501 echo "$as_me: failed program was:" >&5
9502sed 's/^/| /' conftest.$ac_ext >&5
9503
9504 ac_cv_type_int_p=no
9505fi
9506
9507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9508fi
9509{ echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
9510echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
9511
9512# The cast to long int works around a bug in the HP C Compiler
9513# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9514# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9515# This bug is HP SR number 8606223364.
9516{ echo "$as_me:$LINENO: checking size of int *" >&5
9517echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
9518if test "${ac_cv_sizeof_int_p+set}" = set; then
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
9520else
9521 if test "$cross_compiling" = yes; then
9522 # Depending upon the size, compute the lo and hi bounds.
9523cat >conftest.$ac_ext <<_ACEOF
9524/* confdefs.h. */
9525_ACEOF
9526cat confdefs.h >>conftest.$ac_ext
9527cat >>conftest.$ac_ext <<_ACEOF
9528/* end confdefs.h. */
9529$ac_includes_default
9530 typedef int * ac__type_sizeof_;
9531int
9532main ()
9533{
9534static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9535test_array [0] = 0
9536
9537 ;
9538 return 0;
9539}
9540_ACEOF
9541rm -f conftest.$ac_objext
9542if { (ac_try="$ac_compile"
9543case "(($ac_try" in
9544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9545 *) ac_try_echo=$ac_try;;
9546esac
9547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9548 (eval "$ac_compile") 2>conftest.er1
9549 ac_status=$?
9550 grep -v '^ *+' conftest.er1 >conftest.err
9551 rm -f conftest.er1
9552 cat conftest.err >&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); } && {
9555 test -z "$ac_cxx_werror_flag" ||
9556 test ! -s conftest.err
9557 } && test -s conftest.$ac_objext; then
9558 ac_lo=0 ac_mid=0
9559 while :; do
9560 cat >conftest.$ac_ext <<_ACEOF
9561/* confdefs.h. */
9562_ACEOF
9563cat confdefs.h >>conftest.$ac_ext
9564cat >>conftest.$ac_ext <<_ACEOF
9565/* end confdefs.h. */
9566$ac_includes_default
9567 typedef int * ac__type_sizeof_;
9568int
9569main ()
9570{
9571static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9572test_array [0] = 0
9573
9574 ;
9575 return 0;
9576}
9577_ACEOF
9578rm -f conftest.$ac_objext
9579if { (ac_try="$ac_compile"
9580case "(($ac_try" in
9581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9582 *) ac_try_echo=$ac_try;;
9583esac
9584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9585 (eval "$ac_compile") 2>conftest.er1
9586 ac_status=$?
9587 grep -v '^ *+' conftest.er1 >conftest.err
9588 rm -f conftest.er1
9589 cat conftest.err >&5
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); } && {
9592 test -z "$ac_cxx_werror_flag" ||
9593 test ! -s conftest.err
9594 } && test -s conftest.$ac_objext; then
9595 ac_hi=$ac_mid; break
9596else
9597 echo "$as_me: failed program was:" >&5
9598sed 's/^/| /' conftest.$ac_ext >&5
9599
9600 ac_lo=`expr $ac_mid + 1`
9601 if test $ac_lo -le $ac_mid; then
9602 ac_lo= ac_hi=
9603 break
9604 fi
9605 ac_mid=`expr 2 '*' $ac_mid + 1`
9606fi
9607
9608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9609 done
9610else
9611 echo "$as_me: failed program was:" >&5
9612sed 's/^/| /' conftest.$ac_ext >&5
9613
9614 cat >conftest.$ac_ext <<_ACEOF
9615/* confdefs.h. */
9616_ACEOF
9617cat confdefs.h >>conftest.$ac_ext
9618cat >>conftest.$ac_ext <<_ACEOF
9619/* end confdefs.h. */
9620$ac_includes_default
9621 typedef int * ac__type_sizeof_;
9622int
9623main ()
9624{
9625static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9626test_array [0] = 0
9627
9628 ;
9629 return 0;
9630}
9631_ACEOF
9632rm -f conftest.$ac_objext
9633if { (ac_try="$ac_compile"
9634case "(($ac_try" in
9635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9636 *) ac_try_echo=$ac_try;;
9637esac
9638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9639 (eval "$ac_compile") 2>conftest.er1
9640 ac_status=$?
9641 grep -v '^ *+' conftest.er1 >conftest.err
9642 rm -f conftest.er1
9643 cat conftest.err >&5
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); } && {
9646 test -z "$ac_cxx_werror_flag" ||
9647 test ! -s conftest.err
9648 } && test -s conftest.$ac_objext; then
9649 ac_hi=-1 ac_mid=-1
9650 while :; do
9651 cat >conftest.$ac_ext <<_ACEOF
9652/* confdefs.h. */
9653_ACEOF
9654cat confdefs.h >>conftest.$ac_ext
9655cat >>conftest.$ac_ext <<_ACEOF
9656/* end confdefs.h. */
9657$ac_includes_default
9658 typedef int * ac__type_sizeof_;
9659int
9660main ()
9661{
9662static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9663test_array [0] = 0
9664
9665 ;
9666 return 0;
9667}
9668_ACEOF
9669rm -f conftest.$ac_objext
9670if { (ac_try="$ac_compile"
9671case "(($ac_try" in
9672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9673 *) ac_try_echo=$ac_try;;
9674esac
9675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9676 (eval "$ac_compile") 2>conftest.er1
9677 ac_status=$?
9678 grep -v '^ *+' conftest.er1 >conftest.err
9679 rm -f conftest.er1
9680 cat conftest.err >&5
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); } && {
9683 test -z "$ac_cxx_werror_flag" ||
9684 test ! -s conftest.err
9685 } && test -s conftest.$ac_objext; then
9686 ac_lo=$ac_mid; break
9687else
9688 echo "$as_me: failed program was:" >&5
9689sed 's/^/| /' conftest.$ac_ext >&5
9690
9691 ac_hi=`expr '(' $ac_mid ')' - 1`
9692 if test $ac_mid -le $ac_hi; then
9693 ac_lo= ac_hi=
9694 break
9695 fi
9696 ac_mid=`expr 2 '*' $ac_mid`
9697fi
9698
9699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9700 done
9701else
9702 echo "$as_me: failed program was:" >&5
9703sed 's/^/| /' conftest.$ac_ext >&5
9704
9705 ac_lo= ac_hi=
9706fi
9707
9708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9709fi
9710
9711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9712# Binary search between lo and hi bounds.
9713while test "x$ac_lo" != "x$ac_hi"; do
9714 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9715 cat >conftest.$ac_ext <<_ACEOF
9716/* confdefs.h. */
9717_ACEOF
9718cat confdefs.h >>conftest.$ac_ext
9719cat >>conftest.$ac_ext <<_ACEOF
9720/* end confdefs.h. */
9721$ac_includes_default
9722 typedef int * ac__type_sizeof_;
9723int
9724main ()
9725{
9726static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9727test_array [0] = 0
9728
9729 ;
9730 return 0;
9731}
9732_ACEOF
9733rm -f conftest.$ac_objext
9734if { (ac_try="$ac_compile"
9735case "(($ac_try" in
9736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9737 *) ac_try_echo=$ac_try;;
9738esac
9739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9740 (eval "$ac_compile") 2>conftest.er1
9741 ac_status=$?
9742 grep -v '^ *+' conftest.er1 >conftest.err
9743 rm -f conftest.er1
9744 cat conftest.err >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); } && {
9747 test -z "$ac_cxx_werror_flag" ||
9748 test ! -s conftest.err
9749 } && test -s conftest.$ac_objext; then
9750 ac_hi=$ac_mid
9751else
9752 echo "$as_me: failed program was:" >&5
9753sed 's/^/| /' conftest.$ac_ext >&5
9754
9755 ac_lo=`expr '(' $ac_mid ')' + 1`
9756fi
9757
9758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9759done
9760case $ac_lo in
9761?*) ac_cv_sizeof_int_p=$ac_lo;;
9762'') if test "$ac_cv_type_int_p" = yes; then
9763 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
9764See \`config.log' for more details." >&5
9765echo "$as_me: error: cannot compute sizeof (int *)
9766See \`config.log' for more details." >&2;}
9767 { (exit 77); exit 77; }; }
9768 else
9769 ac_cv_sizeof_int_p=0
9770 fi ;;
9771esac
9772else
9773 cat >conftest.$ac_ext <<_ACEOF
9774/* confdefs.h. */
9775_ACEOF
9776cat confdefs.h >>conftest.$ac_ext
9777cat >>conftest.$ac_ext <<_ACEOF
9778/* end confdefs.h. */
9779$ac_includes_default
9780 typedef int * ac__type_sizeof_;
9781static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9782static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9783#include <stdio.h>
9784#include <stdlib.h>
9785int
9786main ()
9787{
9788
9789 FILE *f = fopen ("conftest.val", "w");
9790 if (! f)
9791 return 1;
9792 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9793 {
9794 long int i = longval ();
9795 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9796 return 1;
9797 fprintf (f, "%ld\n", i);
9798 }
9799 else
9800 {
9801 unsigned long int i = ulongval ();
9802 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9803 return 1;
9804 fprintf (f, "%lu\n", i);
9805 }
9806 return ferror (f) || fclose (f) != 0;
9807
9808 ;
9809 return 0;
9810}
9811_ACEOF
9812rm -f conftest$ac_exeext
9813if { (ac_try="$ac_link"
9814case "(($ac_try" in
9815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9816 *) ac_try_echo=$ac_try;;
9817esac
9818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9819 (eval "$ac_link") 2>&5
9820 ac_status=$?
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9823 { (case "(($ac_try" in
9824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9825 *) ac_try_echo=$ac_try;;
9826esac
9827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9828 (eval "$ac_try") 2>&5
9829 ac_status=$?
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; }; then
9832 ac_cv_sizeof_int_p=`cat conftest.val`
9833else
9834 echo "$as_me: program exited with status $ac_status" >&5
9835echo "$as_me: failed program was:" >&5
9836sed 's/^/| /' conftest.$ac_ext >&5
9837
9838( exit $ac_status )
9839if test "$ac_cv_type_int_p" = yes; then
9840 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
9841See \`config.log' for more details." >&5
9842echo "$as_me: error: cannot compute sizeof (int *)
9843See \`config.log' for more details." >&2;}
9844 { (exit 77); exit 77; }; }
9845 else
9846 ac_cv_sizeof_int_p=0
9847 fi
9848fi
9849rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9850fi
9851rm -f conftest.val
9852fi
9853{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
9854echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
9855
9856
9857
9858cat >>confdefs.h <<_ACEOF
9859#define SIZEOF_INT_P $ac_cv_sizeof_int_p
9860_ACEOF
9861
9862
9863
9864
9865{ echo "$as_me:$LINENO: checking for int16_t" >&5
9866echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
9867if test "${rxvt_cv_int16_t+set}" = set; then
9868 echo $ECHO_N "(cached) $ECHO_C" >&6
9869else
9870 cat >conftest.$ac_ext <<_ACEOF
9871/* confdefs.h. */
9872_ACEOF
9873cat confdefs.h >>conftest.$ac_ext
9874cat >>conftest.$ac_ext <<_ACEOF
9875/* end confdefs.h. */
9876#include <stdint.h>
9877int
9878main ()
9879{
9880int16_t dummy;
9881 ;
9882 return 0;
9883}
9884_ACEOF
9885rm -f conftest.$ac_objext
9886if { (ac_try="$ac_compile"
9887case "(($ac_try" in
9888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9889 *) ac_try_echo=$ac_try;;
9890esac
9891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9892 (eval "$ac_compile") 2>conftest.er1
9893 ac_status=$?
9894 grep -v '^ *+' conftest.er1 >conftest.err
9895 rm -f conftest.er1
9896 cat conftest.err >&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); } && {
9899 test -z "$ac_cxx_werror_flag" ||
9900 test ! -s conftest.err
9901 } && test -s conftest.$ac_objext; then
9902 rxvt_cv_int16_t=yes
9903else
9904 echo "$as_me: failed program was:" >&5
9905sed 's/^/| /' conftest.$ac_ext >&5
9906
9907 if test "$ac_cv_sizeof_char" -ge 2; then
9908 rxvt_cv_int16_t=" char"
9909else
9910 if test "$ac_cv_sizeof_short" -ge 2; then
9911 rxvt_cv_int16_t=" short"
9912 else
9913 if test "$ac_cv_sizeof_int" -ge 2; then
9914 rxvt_cv_int16_t=" int"
9915 else
9916 if test "$ac_cv_sizeof_long" -ge 2; then
9917 rxvt_cv_int16_t=" long"
9918 else
9919 if test "$ac_cv_sizeof_long_long" -ge 2; then
9920 rxvt_cv_int16_t=" long long"
9921 else
9922 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
9923 fi
9924 fi
9925 fi
9926 fi
9927fi
9928fi
9929
9930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9931fi
9932{ echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
9933echo "${ECHO_T}$rxvt_cv_int16_t" >&6; }
9934if test x"$rxvt_cv_int16_t" != xyes; then
9935 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
9936else
9937 if test x"" = x; then
9938 rxvt_int16_typedef="/* typedef short int16_t; */"
9939 else
9940 rxvt_int16_typedef="/* typedef short int16_t; */"
9941 fi
9942fi
9943
9944{ echo "$as_me:$LINENO: checking for uint16_t" >&5
9945echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
9946if test "${rxvt_cv_uint16_t+set}" = set; then
9947 echo $ECHO_N "(cached) $ECHO_C" >&6
9948else
9949 cat >conftest.$ac_ext <<_ACEOF
9950/* confdefs.h. */
9951_ACEOF
9952cat confdefs.h >>conftest.$ac_ext
9953cat >>conftest.$ac_ext <<_ACEOF
9954/* end confdefs.h. */
9955#include <stdint.h>
9956int
9957main ()
9958{
9959uint16_t dummy;
9960 ;
9961 return 0;
9962}
9963_ACEOF
9964rm -f conftest.$ac_objext
9965if { (ac_try="$ac_compile"
9966case "(($ac_try" in
9967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968 *) ac_try_echo=$ac_try;;
9969esac
9970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971 (eval "$ac_compile") 2>conftest.er1
9972 ac_status=$?
9973 grep -v '^ *+' conftest.er1 >conftest.err
9974 rm -f conftest.er1
9975 cat conftest.err >&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); } && {
9978 test -z "$ac_cxx_werror_flag" ||
9979 test ! -s conftest.err
9980 } && test -s conftest.$ac_objext; then
9981 rxvt_cv_uint16_t=yes
9982else
9983 echo "$as_me: failed program was:" >&5
9984sed 's/^/| /' conftest.$ac_ext >&5
9985
9986 if test "$ac_cv_sizeof_char" -ge 2; then
9987 rxvt_cv_uint16_t="unsigned char"
9988else
9989 if test "$ac_cv_sizeof_short" -ge 2; then
9990 rxvt_cv_uint16_t="unsigned short"
9991 else
9992 if test "$ac_cv_sizeof_int" -ge 2; then
9993 rxvt_cv_uint16_t="unsigned int"
9994 else
9995 if test "$ac_cv_sizeof_long" -ge 2; then
9996 rxvt_cv_uint16_t="unsigned long"
9997 else
9998 if test "$ac_cv_sizeof_long_long" -ge 2; then
9999 rxvt_cv_uint16_t="unsigned long long"
10000 else
10001 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
10002 fi
10003 fi
10004 fi
10005 fi
10006fi
10007fi
10008
10009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10010fi
10011{ echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
10012echo "${ECHO_T}$rxvt_cv_uint16_t" >&6; }
10013if test x"$rxvt_cv_uint16_t" != xyes; then
10014 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
10015else
10016 if test x"unsigned" = x; then
10017 rxvt_uint16_typedef="/* typedef short uint16_t; */"
10018 else
10019 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
10020 fi
10021fi
10022
10023{ echo "$as_me:$LINENO: checking for int32_t" >&5
10024echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
10025if test "${rxvt_cv_int32_t+set}" = set; then
10026 echo $ECHO_N "(cached) $ECHO_C" >&6
10027else
10028 cat >conftest.$ac_ext <<_ACEOF
10029/* confdefs.h. */
10030_ACEOF
10031cat confdefs.h >>conftest.$ac_ext
10032cat >>conftest.$ac_ext <<_ACEOF
10033/* end confdefs.h. */
10034#include <stdint.h>
10035int
10036main ()
10037{
10038int32_t dummy;
10039 ;
10040 return 0;
10041}
10042_ACEOF
10043rm -f conftest.$ac_objext
10044if { (ac_try="$ac_compile"
10045case "(($ac_try" in
10046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10047 *) ac_try_echo=$ac_try;;
10048esac
10049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10050 (eval "$ac_compile") 2>conftest.er1
10051 ac_status=$?
10052 grep -v '^ *+' conftest.er1 >conftest.err
10053 rm -f conftest.er1
10054 cat conftest.err >&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); } && {
10057 test -z "$ac_cxx_werror_flag" ||
10058 test ! -s conftest.err
10059 } && test -s conftest.$ac_objext; then
10060 rxvt_cv_int32_t=yes
10061else
10062 echo "$as_me: failed program was:" >&5
10063sed 's/^/| /' conftest.$ac_ext >&5
10064
10065 if test "$ac_cv_sizeof_char" -ge 4; then
10066 rxvt_cv_int32_t=" char"
10067else
10068 if test "$ac_cv_sizeof_short" -ge 4; then
10069 rxvt_cv_int32_t=" short"
10070 else
10071 if test "$ac_cv_sizeof_int" -ge 4; then
10072 rxvt_cv_int32_t=" int"
10073 else
10074 if test "$ac_cv_sizeof_long" -ge 4; then
10075 rxvt_cv_int32_t=" long"
10076 else
10077 if test "$ac_cv_sizeof_long_long" -ge 4; then
10078 rxvt_cv_int32_t=" long long"
10079 else
10080 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
10081 fi
10082 fi
10083 fi
10084 fi
10085fi
10086fi
10087
10088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10089fi
10090{ echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
10091echo "${ECHO_T}$rxvt_cv_int32_t" >&6; }
10092if test x"$rxvt_cv_int32_t" != xyes; then
10093 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
10094else
10095 if test x"" = x; then
10096 rxvt_int32_typedef="/* typedef int int32_t; */"
10097 else
10098 rxvt_int32_typedef="/* typedef int int32_t; */"
10099 fi
10100fi
10101
10102{ echo "$as_me:$LINENO: checking for uint32_t" >&5
10103echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
10104if test "${rxvt_cv_uint32_t+set}" = set; then
10105 echo $ECHO_N "(cached) $ECHO_C" >&6
10106else
10107 cat >conftest.$ac_ext <<_ACEOF
10108/* confdefs.h. */
10109_ACEOF
10110cat confdefs.h >>conftest.$ac_ext
10111cat >>conftest.$ac_ext <<_ACEOF
10112/* end confdefs.h. */
10113#include <stdint.h>
10114int
10115main ()
10116{
10117uint32_t dummy;
10118 ;
10119 return 0;
10120}
10121_ACEOF
10122rm -f conftest.$ac_objext
10123if { (ac_try="$ac_compile"
10124case "(($ac_try" in
10125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10126 *) ac_try_echo=$ac_try;;
10127esac
10128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10129 (eval "$ac_compile") 2>conftest.er1
10130 ac_status=$?
10131 grep -v '^ *+' conftest.er1 >conftest.err
10132 rm -f conftest.er1
10133 cat conftest.err >&5
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); } && {
10136 test -z "$ac_cxx_werror_flag" ||
10137 test ! -s conftest.err
10138 } && test -s conftest.$ac_objext; then
10139 rxvt_cv_uint32_t=yes
10140else
10141 echo "$as_me: failed program was:" >&5
10142sed 's/^/| /' conftest.$ac_ext >&5
10143
10144 if test "$ac_cv_sizeof_char" -ge 4; then
10145 rxvt_cv_uint32_t="unsigned char"
10146else
10147 if test "$ac_cv_sizeof_short" -ge 4; then
10148 rxvt_cv_uint32_t="unsigned short"
10149 else
10150 if test "$ac_cv_sizeof_int" -ge 4; then
10151 rxvt_cv_uint32_t="unsigned int"
10152 else
10153 if test "$ac_cv_sizeof_long" -ge 4; then
10154 rxvt_cv_uint32_t="unsigned long"
10155 else
10156 if test "$ac_cv_sizeof_long_long" -ge 4; then
10157 rxvt_cv_uint32_t="unsigned long long"
10158 else
10159 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
10160 fi
10161 fi
10162 fi
10163 fi
10164fi
10165fi
10166
10167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10168fi
10169{ echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
10170echo "${ECHO_T}$rxvt_cv_uint32_t" >&6; }
10171if test x"$rxvt_cv_uint32_t" != xyes; then
10172 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
10173else
10174 if test x"unsigned" = x; then
10175 rxvt_uint32_typedef="/* typedef int uint32_t; */"
10176 else
10177 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
10178 fi
10179fi
10180
10181if test "$ac_cv_sizeof_int_p" -eq 8; then
10182 rxvt_intp_define="#define intp_t int64_t"
10183 rxvt_u_intp_define="#define u_intp_t u_int64_t"
10184else
10185 if test "$ac_cv_sizeof_int_p" -eq 4; then
10186 rxvt_intp_define="#define intp_t int32_t"
10187 rxvt_u_intp_define="#define u_intp_t u_int32_t"
10188 else
10189 if test "$ac_cv_sizeof_int_p" -eq 2; then
10190 rxvt_intp_define="#define intp_t int16_t"
10191 rxvt_u_intp_define="#define u_intp_t u_int16_t"
10192 else
10193 rxvt_intp_define="#error set intp_t"
10194 rxvt_u_intp_define="#error set u_intp_t"
10195 fi
10196 fi
10197fi
10198
10199
10200
10201{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10202echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
10203if test "${ac_cv_type_signal+set}" = set; then
10204 echo $ECHO_N "(cached) $ECHO_C" >&6
10205else
10206 cat >conftest.$ac_ext <<_ACEOF
10207/* confdefs.h. */
10208_ACEOF
10209cat confdefs.h >>conftest.$ac_ext
10210cat >>conftest.$ac_ext <<_ACEOF
10211/* end confdefs.h. */
10212#include <sys/types.h>
10213#include <signal.h>
10214
10215int
10216main ()
10217{
10218return *(signal (0, 0)) (0) == 1;
10219 ;
10220 return 0;
10221}
10222_ACEOF
10223rm -f conftest.$ac_objext
10224if { (ac_try="$ac_compile"
10225case "(($ac_try" in
10226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227 *) ac_try_echo=$ac_try;;
10228esac
10229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10230 (eval "$ac_compile") 2>conftest.er1
10231 ac_status=$?
10232 grep -v '^ *+' conftest.er1 >conftest.err
10233 rm -f conftest.er1
10234 cat conftest.err >&5
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); } && {
10237 test -z "$ac_cxx_werror_flag" ||
10238 test ! -s conftest.err
10239 } && test -s conftest.$ac_objext; then
10240 ac_cv_type_signal=int
10241else
10242 echo "$as_me: failed program was:" >&5
10243sed 's/^/| /' conftest.$ac_ext >&5
10244
10245 ac_cv_type_signal=void
10246fi
10247
10248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10249fi
10250{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10251echo "${ECHO_T}$ac_cv_type_signal" >&6; }
10252
10253cat >>confdefs.h <<_ACEOF
10254#define RETSIGTYPE $ac_cv_type_signal
10255_ACEOF
10256
10257
10258
10259
10260
10261
10262for ac_func in \ 8424for ac_func in unsetenv
10263 unsetenv \
10264 setutent \
10265 on_exit \
10266
10267do 8425do
10268as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8426as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10269{ echo "$as_me:$LINENO: checking for $ac_func" >&5 8427{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10270echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8428echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10271if { 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
10410 8568
10411 8569
10412 8570
10413 8571
10414for ac_func in \ 8572for ac_func in \
10415 ttyslot \
10416 updwtmp \ 8573 updwtmp \
10417 updwtmpx \ 8574 updwtmpx \
8575 updlastlogx \
10418 8576
10419do 8577do
10420as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8578as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10421{ echo "$as_me:$LINENO: checking for $ac_func" >&5 8579{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10422echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8580echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11843 10001
11844cat >>confdefs.h <<_ACEOF 10002cat >>confdefs.h <<_ACEOF
11845#define LASTLOG_FILE "$path_lastlog" 10003#define LASTLOG_FILE "$path_lastlog"
11846_ACEOF 10004_ACEOF
11847 10005
11848 if test -d "$path_lastlog"; then
11849
11850cat >>confdefs.h <<\_ACEOF
11851#define LASTLOG_IS_DIR 1
11852_ACEOF
11853
11854 fi
11855fi 10006fi
11856 10007
11857{ echo "$as_me:$LINENO: checking where lastlogx is located" >&5 10008{ echo "$as_me:$LINENO: checking where lastlogx is located" >&5
11858echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } 10009echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; }
11859if test "${path_lastlogx+set}" = set; then 10010if test "${path_lastlogx+set}" = set; then
11941 10092
11942fi 10093fi
11943 10094
11944 10095
11945 10096
11946{ echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
11947echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6; }
11948if test "${rxvt_cv_path_ttytab+set}" = set; then
11949 echo $ECHO_N "(cached) $ECHO_C" >&6
11950else
11951 for ttys_file in /etc/ttys /etc/ttytab;
11952do
11953 if test -f "$ttys_file" ; then
11954 rxvt_cv_path_ttytab=$ttys_file
11955 break
11956 fi
11957done
11958 10097
11959fi
11960{ echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
11961echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6; }
11962if test x$rxvt_cv_path_ttytab != x; then
11963
11964cat >>confdefs.h <<_ACEOF
11965#define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
11966_ACEOF
11967
11968fi
11969
11970
11971ac_save_LIBS=$LIBS 10098save_LIBS=$LIBS
11972ac_save_CFLAGS=$CFLAGS 10099save_CFLAGS=$CFLAGS
11973CFLAGS="$CFLAGS $X_CFLAGS" 10100CFLAGS="$CFLAGS $X_CFLAGS"
11974LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 10101LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
11975if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then 10102if test x$support_xim = xyes; then
11976 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
11977fi
11978{ echo "$as_me:$LINENO: checking for working Xlocale" >&5 10103 { echo "$as_me:$LINENO: checking for working Xlocale" >&5
11979echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } 10104echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; }
11980if test "${rxvt_cv_func_xlocale+set}" = set; then 10105if test "${rxvt_cv_func_xlocale+set}" = set; then
11981 echo $ECHO_N "(cached) $ECHO_C" >&6 10106 echo $ECHO_N "(cached) $ECHO_C" >&6
11982else 10107else
11983 if test "$cross_compiling" = yes; then 10108 if test "$cross_compiling" = yes; then
11984 { echo "$as_me:$LINENO: WARNING: Define NO_XLOCALE in config.h manually" >&5 10109 :
11985echo "$as_me: WARNING: Define NO_XLOCALE in config.h manually" >&2;}
11986else 10110else
11987 cat >conftest.$ac_ext <<_ACEOF 10111 cat >conftest.$ac_ext <<_ACEOF
11988/* confdefs.h. */ 10112/* confdefs.h. */
11989_ACEOF 10113_ACEOF
11990cat confdefs.h >>conftest.$ac_ext 10114cat confdefs.h >>conftest.$ac_ext
11991cat >>conftest.$ac_ext <<_ACEOF 10115cat >>conftest.$ac_ext <<_ACEOF
11992/* end confdefs.h. */ 10116/* end confdefs.h. */
11993#include <X11/Xlib.h> 10117#include <X11/Xlib.h>
11994#include <stdlib.h> 10118 #include <stdlib.h>
11995main() { 10119 main() {
11996char *p; 10120 char *p;
11997if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) 10121 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
11998exit (XSupportsLocale() ? 0 : 1); 10122 exit (XSupportsLocale() ? 0 : 1);
11999else 10123 else
12000exit (1);} 10124 exit (1);}
12001_ACEOF 10125_ACEOF
12002rm -f conftest$ac_exeext 10126rm -f conftest$ac_exeext
12003if { (ac_try="$ac_link" 10127if { (ac_try="$ac_link"
12004case "(($ac_try" in 10128case "(($ac_try" in
12005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12018 (eval "$ac_try") 2>&5 10142 (eval "$ac_try") 2>&5
12019 ac_status=$? 10143 ac_status=$?
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); }; }; then 10145 (exit $ac_status); }; }; then
12022 rxvt_cv_func_xlocale=yes 10146 rxvt_cv_func_xlocale=yes
12023else 10147else
12024 echo "$as_me: program exited with status $ac_status" >&5 10148 echo "$as_me: program exited with status $ac_status" >&5
12025echo "$as_me: failed program was:" >&5 10149echo "$as_me: failed program was:" >&5
12026sed 's/^/| /' conftest.$ac_ext >&5 10150sed 's/^/| /' conftest.$ac_ext >&5
12027 10151
12033 10157
12034 10158
12035fi 10159fi
12036{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 10160{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
12037echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; } 10161echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; }
12038if test x$rxvt_cv_func_xlocale = xyes; then 10162 if test x$rxvt_cv_func_xlocale = xyes; then
12039 10163
12040cat >>confdefs.h <<\_ACEOF 10164cat >>confdefs.h <<\_ACEOF
12041#define HAVE_XLOCALE 1 10165#define USE_XIM 1
12042_ACEOF 10166_ACEOF
12043 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
12044fi 10223fi
12045 10224
12046{ echo "$as_me:$LINENO: checking for working X setlocale" >&5 10225{ echo "$as_me:$LINENO: checking for working X setlocale" >&5
12047echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; } 10226echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; }
12048if test "${rxvt_cv_func_xsetlocale+set}" = set; then 10227if test "${rxvt_cv_func_xsetlocale+set}" = set; then
12100cat >>confdefs.h <<\_ACEOF 10279cat >>confdefs.h <<\_ACEOF
12101#define HAVE_XSETLOCALE 1 10280#define HAVE_XSETLOCALE 1
12102_ACEOF 10281_ACEOF
12103 10282
12104fi 10283fi
12105LIBS=$ac_save_LIBS 10284LIBS=$save_LIBS
12106CFLAGS=$ac_save_CFLAGS 10285CFLAGS=$save_CFLAGS
12107 10286
12108{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5 10287{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5
12109echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } 10288echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; }
12110if test "${rxvt_cv_func_setlocale+set}" = set; then 10289if test "${rxvt_cv_func_setlocale+set}" = set; then
12111 echo $ECHO_N "(cached) $ECHO_C" >&6 10290 echo $ECHO_N "(cached) $ECHO_C" >&6
12314 { { 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
12315echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} 10494echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;}
12316 { (exit 1); exit 1; }; } 10495 { (exit 1); exit 1; }; }
12317fi 10496fi
12318 10497
12319
12320{ echo "$as_me:$LINENO: checking for broken XIM callback" >&5
12321echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; }
12322if test "${rxvt_broken_ximcb+set}" = set; then
12323 echo $ECHO_N "(cached) $ECHO_C" >&6
12324else
12325 cat >conftest.$ac_ext <<_ACEOF
12326
12327#include <X11/Xlib.h>
12328
12329void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
12330
12331void f() {
12332 XIMCallback cb;
12333 cb.callback = im_destroy_cb;
12334}
12335
12336_ACEOF
12337rm -f conftest.$ac_objext
12338if { (ac_try="$ac_compile"
12339case "(($ac_try" in
12340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12341 *) ac_try_echo=$ac_try;;
12342esac
12343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12344 (eval "$ac_compile") 2>conftest.er1
12345 ac_status=$?
12346 grep -v '^ *+' conftest.er1 >conftest.err
12347 rm -f conftest.er1
12348 cat conftest.err >&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); } && {
12351 test -z "$ac_cxx_werror_flag" ||
12352 test ! -s conftest.err
12353 } && test -s conftest.$ac_objext; then
12354 rxvt_broken_ximcb=yes
12355else
12356 echo "$as_me: failed program was:" >&5
12357sed 's/^/| /' conftest.$ac_ext >&5
12358
12359 rxvt_broken_ximcb=no
12360fi
12361
12362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12363fi
12364{ echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
12365echo "${ECHO_T}$rxvt_broken_ximcb" >&6; }
12366
12367if test x$rxvt_broken_ximcb = xyes; then
12368
12369cat >>confdefs.h <<\_ACEOF
12370#define XIMCB_PROTO_BROKEN 1
12371_ACEOF
12372
12373fi
12374 10498
12375 10499
12376 10500
12377 10501
12378 10502
13059echo "${ECHO_T}no" >&6; } 11183echo "${ECHO_T}no" >&6; }
13060fi 11184fi
13061 11185
13062 11186
13063 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then 11187 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
13064 LIBS="$LIBS `$PKG_CONFIG xft --libs`" 11188 X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS"
13065 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" 11189 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
13066 else 11190 else
13067 # 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.
13068set dummy xft-config; ac_word=$2 11192set dummy xft-config; ac_word=$2
13069{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11193{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13104echo "${ECHO_T}no" >&6; } 11228echo "${ECHO_T}no" >&6; }
13105fi 11229fi
13106 11230
13107 11231
13108 if test $XFT_CONFIG != no; then 11232 if test $XFT_CONFIG != no; then
13109 LIBS="$LIBS `$XFT_CONFIG --libs`" 11233 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
13110 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" 11234 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
13111 fi 11235 fi
13112 fi 11236 fi
13113 11237
11238 save_LIBS="$LIBS"
11239 LIBS="$LIBS $X_LIBS"
13114 11240
13115for ac_header in X11/Xft/Xft.h 11241for ac_header in X11/Xft/Xft.h
13116do 11242do
13117as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11243as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13118if { 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
13251 support_xft=no 11377 support_xft=no
13252fi 11378fi
13253 11379
13254done 11380done
13255 11381
13256
13257{ echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 11382 { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
13258echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } 11383echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; }
13259if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then 11384if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then
13260 echo $ECHO_N "(cached) $ECHO_C" >&6 11385 echo $ECHO_N "(cached) $ECHO_C" >&6
13261else 11386else
13262 ac_check_lib_save_LIBS=$LIBS 11387 ac_check_lib_save_LIBS=$LIBS
13314LIBS=$ac_check_lib_save_LIBS 11439LIBS=$ac_check_lib_save_LIBS
13315fi 11440fi
13316{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 11441{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
13317echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } 11442echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; }
13318if test $ac_cv_lib_Xft_XftDrawString32 = yes; then 11443if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
13319 cat >>confdefs.h <<_ACEOF 11444 :
13320#define HAVE_LIBXFT 1
13321_ACEOF
13322
13323 LIBS="-lXft $LIBS"
13324
13325else 11445else
13326 support_xft=no 11446 support_xft=no
13327fi 11447fi
13328 11448
11449 LIBS="$save_LIBS"
13329 11450
13330 if test x$support_xft = xyes; then 11451 if test x$support_xft = xyes; then
13331 11452
13332cat >>confdefs.h <<\_ACEOF 11453cat >>confdefs.h <<\_ACEOF
13333#define XFT 1 11454#define XFT 1
13361cat >>confdefs.h <<\_ACEOF 11482cat >>confdefs.h <<\_ACEOF
13362#define OFF_FOCUS_FADING 1 11483#define OFF_FOCUS_FADING 1
13363_ACEOF 11484_ACEOF
13364 11485
13365fi 11486fi
13366if test x$support_tinting = xyes; then 11487if test x$support_inheritpixmap = xyes; then
13367 11488
13368cat >>confdefs.h <<\_ACEOF 11489cat >>confdefs.h <<\_ACEOF
13369#define TINTING 1
13370_ACEOF
13371
13372fi
13373if test x$support_inheritpixmap = xyes; then
13374
13375cat >>confdefs.h <<\_ACEOF
13376#define TRANSPARENT 1 11490#define ENABLE_TRANSPARENCY 1
13377_ACEOF 11491_ACEOF
13378 11492
13379fi 11493fi
13380if test x$support_keepscrolling = xno; then 11494if test x$support_keepscrolling = xno; then
13381 11495
13410cat >>confdefs.h <<\_ACEOF 11524cat >>confdefs.h <<\_ACEOF
13411#define MOUSE_SLIP_WHEELING 1 11525#define MOUSE_SLIP_WHEELING 1
13412_ACEOF 11526_ACEOF
13413 11527
13414fi 11528fi
13415if test x$support_xim = xyes -o x$multichar_set = xyes; then 11529if test x$support_afterimage = xyes; then
13416 if test x$rxvt_cv_func_xlocale = xyes; then
13417 11530
13418cat >>confdefs.h <<\_ACEOF 11531cat >>confdefs.h <<\_ACEOF
13419#define USE_XIM 1 11532#define HAVE_AFTERIMAGE 1
13420_ACEOF 11533_ACEOF
13421 11534
13422 fi
13423fi
13424if test x$support_xpm = xyes; then
13425 11535
13426cat >>confdefs.h <<\_ACEOF 11536cat >>confdefs.h <<\_ACEOF
13427#define XPM_BACKGROUND 1 11537#define BG_IMAGE_FROM_FILE 1
13428_ACEOF 11538_ACEOF
13429 11539
13430fi 11540fi
11541
11542
13431if test x$support_scroll_rxvt = xyes; then 11543if test x$support_scroll_rxvt = xyes; then
13432 11544
13433cat >>confdefs.h <<\_ACEOF 11545cat >>confdefs.h <<\_ACEOF
13434#define RXVT_SCROLLBAR 1 11546#define RXVT_SCROLLBAR 1
13435_ACEOF 11547_ACEOF
13703 11815
13704 11816
13705 11817
13706 11818
13707 11819
13708if test x$support_perl = xyes; then
13709 support_frills=yes
13710fi
13711 11820
13712 11821
13713 11822
13714 11823
13715 11824
13716 11825
13717 11826
13718
13719if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
13720 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
13721 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
13722 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
13723 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
13724 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
13725fi
13726 11827
13727 11828
13728 11829
13729 11830
13730 11831
13740_ACEOF 11841_ACEOF
13741program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 11842program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
13742rm -f conftest.sed 11843rm -f conftest.sed
13743 11844
13744 11845
13745
13746
13747
13748if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
13749 include_stdint_h="#include <stdint.h>"
13750else
13751 include_stdint_h="/* #include <stdint.h> */"
13752fi
13753if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
13754 include_stdarg_h="#include <cstdarg>"
13755else
13756 include_stdarg_h="/* #include <cstdarg> */"
13757fi
13758if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
13759 include_stdlib_h="#include <cstdlib>"
13760else
13761 include_stdlib_h="/* #include <cstdlib> */"
13762fi
13763if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
13764 include_unistd_h="#include <unistd.h>"
13765else
13766 include_unistd_h="/* #include <unistd.h> */"
13767fi
13768if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
13769 include_string_h="#include <cstring>"
13770else
13771 include_string_h="/* #include <cstring> */"
13772fi
13773if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
13774 include_fcntl_h="#include <fcntl.h>"
13775else
13776 include_fcntl_h="/* #include <fcntl.h> */"
13777fi
13778if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
13779 include_util_h="#include <util.h>"
13780else
13781 include_util_h="/* #include <util.h> */"
13782fi
13783if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
13784 include_assert_h="#include <assert.h>"
13785else
13786 include_assert_h="/* #include <assert.h> */"
13787fi
13788if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
13789 include_sys_ioctl_h="#include <sys/ioctl.h>"
13790else
13791 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
13792fi
13793if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
13794 include_sys_select_h="#include <sys/select.h>"
13795else
13796 include_sys_select_h="/* #include <sys/select.h> */"
13797fi
13798if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
13799 include_sys_strredir_h="#include <sys/strredir.h>"
13800else
13801 include_sys_strredir_h="/* #include <sys/strredir.h> */"
13802fi
13803if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
13804 include_sys_time_h="#include <sys/time.h>"
13805else
13806 include_sys_time_h="/* #include <sys/time.h> */"
13807fi
13808if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
13809 include_time_h="#include <time.h>"
13810else
13811 include_time_h="/* #include <time.h> */"
13812fi
13813
13814ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" 11846ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile"
13815 11847
13816cat >confcache <<\_ACEOF 11848cat >confcache <<\_ACEOF
13817# 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
13818# 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
13819# scripts and configure runs, see configure's option --config-cache. 11851# scripts and configure runs, see configure's option --config-cache.
14368 case $ac_config_target in 12400 case $ac_config_target in
14369 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; 12401 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
14370 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12402 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14371 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 12403 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14372 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 12404 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14373 "src/rxvtlib.h") CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
14374 12405
14375 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 12406 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14376echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 12407echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14377 { (exit 1); exit 1; }; };; 12408 { (exit 1); exit 1; }; };;
14378 esac 12409 esac
14477host_cpu!$host_cpu$ac_delim 12508host_cpu!$host_cpu$ac_delim
14478host_vendor!$host_vendor$ac_delim 12509host_vendor!$host_vendor$ac_delim
14479host_os!$host_os$ac_delim 12510host_os!$host_os$ac_delim
14480VERSION!$VERSION$ac_delim 12511VERSION!$VERSION$ac_delim
14481DATE!$DATE$ac_delim 12512DATE!$DATE$ac_delim
14482LSMDATE!$LSMDATE$ac_delim
14483LIBVERSION!$LIBVERSION$ac_delim
14484CC!$CC$ac_delim 12513CC!$CC$ac_delim
14485CFLAGS!$CFLAGS$ac_delim 12514CFLAGS!$CFLAGS$ac_delim
14486LDFLAGS!$LDFLAGS$ac_delim 12515LDFLAGS!$LDFLAGS$ac_delim
14487CPPFLAGS!$CPPFLAGS$ac_delim 12516CPPFLAGS!$CPPFLAGS$ac_delim
14488ac_ct_CC!$ac_ct_CC$ac_delim 12517ac_ct_CC!$ac_ct_CC$ac_delim
14496INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 12525INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14497INSTALL_DATA!$INSTALL_DATA$ac_delim 12526INSTALL_DATA!$INSTALL_DATA$ac_delim
14498GREP!$GREP$ac_delim 12527GREP!$GREP$ac_delim
14499EGREP!$EGREP$ac_delim 12528EGREP!$EGREP$ac_delim
14500LINKER!$LINKER$ac_delim 12529LINKER!$LINKER$ac_delim
14501INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim
14502RXVTNAME!$RXVTNAME$ac_delim 12530RXVTNAME!$RXVTNAME$ac_delim
14503MV!$MV$ac_delim
14504CP!$CP$ac_delim 12531CXXCPP!$CXXCPP$ac_delim
14505LN!$LN$ac_delim
14506SED!$SED$ac_delim
14507ECHO!$ECHO$ac_delim
14508CMP!$CMP$ac_delim
14509TIC!$TIC$ac_delim 12532TIC!$TIC$ac_delim
14510XMKMF!$XMKMF$ac_delim 12533XMKMF!$XMKMF$ac_delim
14511CXXCPP!$CXXCPP$ac_delim
14512X_CFLAGS!$X_CFLAGS$ac_delim 12534X_CFLAGS!$X_CFLAGS$ac_delim
14513X_PRE_LIBS!$X_PRE_LIBS$ac_delim 12535X_PRE_LIBS!$X_PRE_LIBS$ac_delim
14514X_LIBS!$X_LIBS$ac_delim 12536X_LIBS!$X_LIBS$ac_delim
14515X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim 12537X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
14516XPM_CPPFLAGS!$XPM_CPPFLAGS$ac_delim 12538afterimage_config!$afterimage_config$ac_delim
14517XPM_CFLAGS!$XPM_CFLAGS$ac_delim
14518XPM_LIBS!$XPM_LIBS$ac_delim
14519rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim
14520rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim
14521rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim
14522rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim
14523rxvt_intp_define!$rxvt_intp_define$ac_delim
14524rxvt_u_intp_define!$rxvt_u_intp_define$ac_delim
14525PKG_CONFIG!$PKG_CONFIG$ac_delim 12539PKG_CONFIG!$PKG_CONFIG$ac_delim
14526XFT_CONFIG!$XFT_CONFIG$ac_delim 12540XFT_CONFIG!$XFT_CONFIG$ac_delim
14527PERL!$PERL$ac_delim 12541PERL!$PERL$ac_delim
14528PERLLIB!$PERLLIB$ac_delim 12542PERLLIB!$PERLLIB$ac_delim
14529PERLFLAGS!$PERLFLAGS$ac_delim 12543PERLFLAGS!$PERLFLAGS$ac_delim
14530PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim 12544PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim
14531IF_PERL!$IF_PERL$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
14532_ACEOF 12551_ACEOF
14533 12552
14534 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
14535 break 12554 break
14536 elif $ac_last_try; then 12555 elif $ac_last_try; then
14537 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 12556 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14538echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 12557echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14539 { (exit 1); exit 1; }; } 12558 { (exit 1); exit 1; }; }
14548 ac_eof=`expr $ac_eof + 1` 12567 ac_eof=`expr $ac_eof + 1`
14549fi 12568fi
14550 12569
14551cat >>$CONFIG_STATUS <<_ACEOF 12570cat >>$CONFIG_STATUS <<_ACEOF
14552cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 12571cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14553/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14554_ACEOF
14555sed '
14556s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14557s/^/s,@/; s/!/@,|#_!!_#|/
14558:n
14559t n
14560s/'"$ac_delim"'$/,g/; t
14561s/$/\\/; p
14562N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14563' >>$CONFIG_STATUS <conf$$subs.sed
14564rm -f conf$$subs.sed
14565cat >>$CONFIG_STATUS <<_ACEOF
14566CEOF$ac_eof
14567_ACEOF
14568
14569
14570ac_delim='%!_!# '
14571for ac_last_try in false false false false false :; do
14572 cat >conf$$subs.sed <<_ACEOF
14573PERL_O!$PERL_O$ac_delim
14574DEBUG!$DEBUG$ac_delim
14575DINCLUDE!$DINCLUDE$ac_delim
14576DLIB!$DLIB$ac_delim
14577include_stdint_h!$include_stdint_h$ac_delim
14578include_stdarg_h!$include_stdarg_h$ac_delim
14579include_stdlib_h!$include_stdlib_h$ac_delim
14580include_unistd_h!$include_unistd_h$ac_delim
14581include_string_h!$include_string_h$ac_delim
14582include_fcntl_h!$include_fcntl_h$ac_delim
14583include_util_h!$include_util_h$ac_delim
14584include_assert_h!$include_assert_h$ac_delim
14585include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim
14586include_sys_select_h!$include_sys_select_h$ac_delim
14587include_sys_strredir_h!$include_sys_strredir_h$ac_delim
14588include_sys_time_h!$include_sys_time_h$ac_delim
14589include_time_h!$include_time_h$ac_delim
14590LIBOBJS!$LIBOBJS$ac_delim
14591LTLIBOBJS!$LTLIBOBJS$ac_delim
14592_ACEOF
14593
14594 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
14595 break
14596 elif $ac_last_try; then
14597 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14598echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14599 { (exit 1); exit 1; }; }
14600 else
14601 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14602 fi
14603done
14604
14605ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14606if test -n "$ac_eof"; then
14607 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14608 ac_eof=`expr $ac_eof + 1`
14609fi
14610
14611cat >>$CONFIG_STATUS <<_ACEOF
14612cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
14613/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 12572/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14614_ACEOF 12573_ACEOF
14615sed ' 12574sed '
14616s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 12575s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14617s/^/s,@/; s/!/@,|#_!!_#|/ 12576s/^/s,@/; s/!/@,|#_!!_#|/
14870s&@builddir@&$ac_builddir&;t t 12829s&@builddir@&$ac_builddir&;t t
14871s&@abs_builddir@&$ac_abs_builddir&;t t 12830s&@abs_builddir@&$ac_abs_builddir&;t t
14872s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12831s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14873s&@INSTALL@&$ac_INSTALL&;t t 12832s&@INSTALL@&$ac_INSTALL&;t t
14874$ac_datarootdir_hack 12833$ac_datarootdir_hack
14875" $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
14876 12835
14877test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12836test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14878 { 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"; } &&
14879 { 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"; } &&
14880 { 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'
15028 Install path: ${prefix}/bin 12987 Install path: ${prefix}/bin
15029 Compiler: $CXX 12988 Compiler: $CXX
15030 Compiler flags: $CXXFLAGS 12989 Compiler flags: $CXXFLAGS
15031 Linker: $LINKER" 12990 Linker: $LINKER"
15032 12991
15033if test x$support_xpm = xyes; then
15034 echo " Xpm library: $XPM_LIBS"
15035fi
15036
15037if test x$term != x; then 12992if test x$term != x; then
15038 echo " set TERM to: $term" 12993 echo " set TERM to: $term"
15039fi 12994fi
15040if test x$terminfo != x; then 12995if test x$terminfo != x; then
15041 echo " set TERMINFO to: $terminfo" 12996 echo " set TERMINFO to: $terminfo"
15045if test x$RESFALLBACK != x; then 13000if test x$RESFALLBACK != x; then
15046 echo " resource class fallback: $RESFALLBACK" 13001 echo " resource class fallback: $RESFALLBACK"
15047fi 13002fi
15048echo 13003echo
15049echo " embedded perl: $support_perl" 13004echo " embedded perl: $support_perl"
13005echo " libafterimage: $support_afterimage"
15050echo 13006echo
15051if test x$support_xpm = xneedsmanualspecification; then
15052 echo ".----------------------------------------------------------------."
15053 echo ". WARNING: --enable-xpm-background was specified however the ."
15054 echo ". XPM includes files and libraries could not be found. ."
15055 echo ". XPM backgrounds are now being DISABLED! If you want ."
15056 echo ". to use them you should rerun configure with the ."
15057 echo ". appropriate --with-xpm-includes=/path/to/xpm/includes ."
15058 echo ". and --with-xpm-library=/path/to/xpm/library lines. ."
15059 echo ".----------------------------------------------------------------."
15060fi
15061if 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
15062 echo ".----------------------------------------------------------------." 13008 echo ".----------------------------------------------------------------."
15063 echo ". WARNING: --enable-xim was specified however the locale support ." 13009 echo ". WARNING: --enable-xim was specified however the locale support ."
15064 echo ". functions could not be found. ." 13010 echo ". functions could not be found. ."
15065 echo ". XIM is now being DISABLED! ." 13011 echo ". XIM is now being DISABLED! ."

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines