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

Comparing rxvt-unicode/configure (file contents):
Revision 1.108 by ayin, Fri Jul 27 10:09:39 2007 UTC vs.
Revision 1.121 by ayin, Tue Dec 11 00:01:28 2007 UTC

658host_cpu 658host_cpu
659host_vendor 659host_vendor
660host_os 660host_os
661VERSION 661VERSION
662DATE 662DATE
663LSMDATE
664LIBVERSION
665CC 663CC
666CFLAGS 664CFLAGS
667LDFLAGS 665LDFLAGS
668CPPFLAGS 666CPPFLAGS
669ac_ct_CC 667ac_ct_CC
677INSTALL_SCRIPT 675INSTALL_SCRIPT
678INSTALL_DATA 676INSTALL_DATA
679GREP 677GREP
680EGREP 678EGREP
681LINKER 679LINKER
682INSTALL_LIBRXVT
683RXVTNAME 680RXVTNAME
681CXXCPP
684TIC 682TIC
685XMKMF 683XMKMF
686CXXCPP
687X_CFLAGS 684X_CFLAGS
688X_PRE_LIBS 685X_PRE_LIBS
689X_LIBS 686X_LIBS
690X_EXTRA_LIBS 687X_EXTRA_LIBS
691afterimage_config 688afterimage_config
692XPM_CPPFLAGS
693XPM_CFLAGS
694XPM_LIBS
695rxvt_int16_typedef 689rxvt_int16_typedef
696rxvt_uint16_typedef 690rxvt_uint16_typedef
697rxvt_int32_typedef 691rxvt_int32_typedef
698rxvt_uint32_typedef 692rxvt_uint32_typedef
699rxvt_intp_define 693rxvt_intp_define
734CPPFLAGS 728CPPFLAGS
735CXX 729CXX
736CXXFLAGS 730CXXFLAGS
737CCC 731CCC
738CPP 732CPP
739XMKMF
740CXXCPP' 733CXXCPP
734XMKMF'
741 735
742 736
743# Initialize some variables set by options. 737# Initialize some variables set by options.
744ac_init_help= 738ac_init_help=
745ac_init_version=false 739ac_init_version=false
1319Optional Features: 1313Optional Features:
1320 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1314 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1321 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1315 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1322 --enable-everything enable standard non-multichoice features 1316 --enable-everything enable standard non-multichoice features
1323 NOTE: this option is order dependent 1317 NOTE: this option is order dependent
1324 NOTE: automatically enabled with --enable-shared 1318 --enable-warnings turn on g++ warnings
1325 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters 1319 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1326 --enable-combining enable composition of base and combining characters 1320 --enable-combining enable composition of base and combining characters
1327 --enable-xft enable xft support on systems that have it 1321 --enable-xft enable xft support on systems that have it
1328 --enable-font-styles enable bold and italic support 1322 --enable-font-styles enable bold and italic support
1329 --enable-xpm-background enable background pixmaps
1330 --enable-afterimage enable integration with libAfterImage for background images 1323 --enable-afterimage enable integration with libAfterImage for background images
1331 --enable-afterstep enable integration with AfterStep window manager
1332 --enable-transparency enable transparent backgrounds 1324 --enable-transparency enable transparent backgrounds
1333 --enable-tinting enable tinting of transparent bg
1334 --enable-fading enable colors fading when off focus 1325 --enable-fading enable colors fading when off focus
1335 --enable-rxvt-scroll enable rxvt style scrollbar 1326 --enable-rxvt-scroll enable rxvt style scrollbar
1336 --enable-next-scroll enable NeXT style scrollbar 1327 --enable-next-scroll enable NeXT style scrollbar
1337 --enable-xterm-scroll enable Xterm style scrollbar 1328 --enable-xterm-scroll enable Xterm style scrollbar
1329 --enable-plain-scroll enable plain style scrollbar
1338 --enable-perl enable embedded perl interpreter 1330 --enable-perl enable embedded perl interpreter
1339 --enable-plain-scroll enable plain style scrollbar
1340 --enable-xim XIM (X Input Method) protocol support 1331 --enable-xim XIM (X Input Method) protocol support
1341 --disable-backspace-key disable handling of the backspace key 1332 --disable-backspace-key disable handling of the backspace key
1342 --disable-delete-key disable handling of the delete key 1333 --disable-delete-key disable handling of the delete key
1343 --disable-resources disable all resource checking 1334 --disable-resources disable all resource checking
1344 --enable-8bitctrls enable 8 bit control sequences (not recommended) 1335 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1345 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) 1336 --enable-fallback[=CLASS] fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
1346 --disable-swapscreen disable swap screen support 1337 --disable-swapscreen disable swap screen support
1347 --enable-iso14755 enable support for extended ISO 14755 modes 1338 --enable-iso14755 enable support for extended ISO 14755 modes
1348 --enable-frills enable support for rarely used features 1339 --enable-frills enable support for rarely used features
1349 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 1340 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1350 --enable-selectionscrolling enable scrolling during selections 1341 --enable-selectionscrolling enable scrolling during selections
1351 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 1342 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1352 --enable-slipwheeling enable slip wheel scrolling (requires previous) 1343 --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel)
1353 --enable-smart-resize enable smart growth/shrink behaviour 1344 --enable-smart-resize enable smart growth/shrink behaviour
1354 --enable-text-blink enable blinking text 1345 --enable-text-blink enable blinking text
1355 --enable-pointer-blank enable pointer blank when typing or inactive pointer 1346 --enable-pointer-blank enable pointer blank when typing or inactive pointer
1356 --enable-utmp enable utmp (utmpx) support 1347 --enable-utmp enable utmp (utmpx) support
1357 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) 1348 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1359 1350
1360Optional Packages: 1351Optional Packages:
1361 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1352 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1362 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1353 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1363 --with-afterimage-config=DIR use libAfterImage config script in DIR 1354 --with-afterimage-config=DIR use libAfterImage config script in DIR
1364 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) 1355 --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
1365 --with-res-name=NAME use this as default resource name (default: urxvt) 1356 --with-res-name=NAME use this as default resource name (default: urxvt)
1366 --with-res-class=CLASS use this as the resource class (default: URxvt) 1357 --with-res-class=CLASS use this as the resource class (default: URxvt)
1367 --with-name=NAME set the basename for the installed binaries (default: urxvt) 1358 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1368 --with-term=NAME set the terminal to NAME (default: rxvt) 1359 --with-term=NAME set the terminal to NAME (default: rxvt)
1369 --with-terminfo=PATH set the path to the terminfo tree to PATH 1360 --with-terminfo=PATH set the path to the terminfo tree to PATH
1370 --with-x use the X Window System 1361 --with-x use the X Window System
1371 --with-xpm-includes=DIR use XPM includes in DIR
1372 --with-xpm-library=DIR use XPM library in DIR
1373 --with-xpm use XPM
1374 1362
1375Some influential environment variables: 1363Some influential environment variables:
1376 CC C compiler command 1364 CC C compiler command
1377 CFLAGS C compiler flags 1365 CFLAGS C compiler flags
1378 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1366 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1381 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1369 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1382 you have headers in a nonstandard directory <include dir> 1370 you have headers in a nonstandard directory <include dir>
1383 CXX C++ compiler command 1371 CXX C++ compiler command
1384 CXXFLAGS C++ compiler flags 1372 CXXFLAGS C++ compiler flags
1385 CPP C preprocessor 1373 CPP C preprocessor
1374 CXXCPP C++ preprocessor
1386 XMKMF Path to xmkmf, Makefile generator for X Window System 1375 XMKMF Path to xmkmf, Makefile generator for X Window System
1387 CXXCPP C++ preprocessor
1388 1376
1389Use these variables to override the choices made by `configure' or to help 1377Use these variables to override the choices made by `configure' or to help
1390it to find libraries and programs with nonstandard names/locations. 1378it to find libraries and programs with nonstandard names/locations.
1391 1379
1392_ACEOF 1380_ACEOF
1928 1916
1929 1917
1930 1918
1931VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1919VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1932DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1920DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1921
1933echo "" 1922echo ""
1934echo "configuring for rxvt $VERSION" 1923echo "configuring for rxvt $VERSION"
1935echo "" 1924echo ""
1936 1925
1937orig_CXXFLAGS="$CXXFLAGS" 1926orig_CXXFLAGS="$CXXFLAGS"
1938
1939 1927
1940ac_ext=c 1928ac_ext=c
1941ac_cpp='$CPP $CPPFLAGS' 1929ac_cpp='$CPP $CPPFLAGS'
1942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3722echo "${ECHO_T}no" >&6; } 3710echo "${ECHO_T}no" >&6; }
3723fi 3711fi
3724rm -f conftest* 3712rm -f conftest*
3725 3713
3726 3714
3715
3716cat >>confdefs.h <<\_ACEOF
3717#define _GNU_SOURCE 1
3718_ACEOF
3719
3720
3727{ echo "$as_me:$LINENO: checking for library containing strerror" >&5 3721{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
3728echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } 3722echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3729if test "${ac_cv_search_strerror+set}" = set; then 3723if test "${ac_cv_search_strerror+set}" = set; then
3730 echo $ECHO_N "(cached) $ECHO_C" >&6 3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3731else 3725else
3878LINKER=$LINKER 3872LINKER=$LINKER
3879 3873
3880 3874
3881if test -z "$orig_CXXFLAGS"; then 3875if test -z "$orig_CXXFLAGS"; then
3882 if test x$GCC = xyes && test "x$GXX" = xyes; then 3876 if test x$GCC = xyes && test "x$GXX" = xyes; then
3883 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" 3877 CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs"
3884 cat >conftest.$ac_ext <<_ACEOF 3878 cat >conftest.$ac_ext <<_ACEOF
3885/* confdefs.h. */ 3879/* confdefs.h. */
3886_ACEOF 3880_ACEOF
3887cat confdefs.h >>conftest.$ac_ext 3881cat confdefs.h >>conftest.$ac_ext
3888cat >>conftest.$ac_ext <<_ACEOF 3882cat >>conftest.$ac_ext <<_ACEOF
3926 CXXFLAGS="-O" 3920 CXXFLAGS="-O"
3927 fi 3921 fi
3928 CFLAGS="$CXXFLAGS" 3922 CFLAGS="$CXXFLAGS"
3929fi 3923fi
3930 3924
3931
3932cat >>confdefs.h <<\_ACEOF
3933#define _GNU_SOURCE 1
3934_ACEOF
3935
3936
3937case $host in 3925case $host in
3938 *-*-solaris* ) 3926 *-*-solaris* )
3939 3927
3940cat >>confdefs.h <<\_ACEOF 3928cat >>confdefs.h <<\_ACEOF
3941#define _XOPEN_SOURCE 500 3929#define _XOPEN_SOURCE 500
3942_ACEOF 3930_ACEOF
3943 3931
3944 ;; 3932 ;;
3945esac 3933esac
3946
3947 3934
3948{ echo "$as_me:$LINENO: checking for setlocale" >&5 3935{ echo "$as_me:$LINENO: checking for setlocale" >&5
3949echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } 3936echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; }
3950if test "${ac_cv_func_setlocale+set}" = set; then 3937if test "${ac_cv_func_setlocale+set}" = set; then
3951 echo $ECHO_N "(cached) $ECHO_C" >&6 3938 echo $ECHO_N "(cached) $ECHO_C" >&6
4401 4388
4402 4389
4403 4390
4404support_frills=yes 4391support_frills=yes
4405support_inheritpixmap=yes 4392support_inheritpixmap=yes
4406support_tinting=yes
4407support_fading=yes 4393support_fading=yes
4408support_keepscrolling=yes 4394support_keepscrolling=yes
4409support_selectionscrolling=yes 4395support_selectionscrolling=yes
4410support_mousewheel=yes 4396support_mousewheel=yes
4411support_mouseslipwheel=yes 4397support_mouseslipwheel=yes
4414support_scroll_rxvt=yes 4400support_scroll_rxvt=yes
4415support_scroll_next=yes 4401support_scroll_next=yes
4416support_scroll_xterm=yes 4402support_scroll_xterm=yes
4417support_scroll_plain=yes 4403support_scroll_plain=yes
4418support_xim=yes 4404support_xim=yes
4419support_xpm=yes
4420support_afterimage=yes 4405support_afterimage=yes
4421support_afterstep=yes 4406support_afterstep=yes
4422support_xft=yes 4407support_xft=yes
4423support_unicode3=no 4408support_unicode3=no
4424support_combining=yes 4409support_combining=yes
4427support_styles=yes 4412support_styles=yes
4428support_perl=yes 4413support_perl=yes
4429codesets=all 4414codesets=all
4430 4415
4431 4416
4432if test "x$enable_shared" = xyes; then
4433
4434cat >>confdefs.h <<\_ACEOF
4435#define LIBRXVT 1
4436_ACEOF
4437
4438 INSTALL_LIBRXVT=yes
4439fi
4440
4441 4417
4442# Check whether --enable-everything was given. 4418# Check whether --enable-everything was given.
4443if test "${enable_everything+set}" = set; then 4419if test "${enable_everything+set}" = set; then
4444 enableval=$enable_everything; 4420 enableval=$enable_everything;
4445 if test x$enableval = xno; then 4421 if test x$enableval = xno; then
4446 support_frills=no 4422 support_frills=no
4447 support_inheritpixmap=no 4423 support_inheritpixmap=no
4448 support_tinting=no
4449 support_fading=no 4424 support_fading=no
4450 support_keepscrolling=no 4425 support_keepscrolling=no
4451 support_selectionscrolling=no 4426 support_selectionscrolling=no
4452 support_lastlog=no 4427 support_lastlog=no
4453 support_mousewheel=no 4428 support_mousewheel=no
4459 support_scroll_xterm=no 4434 support_scroll_xterm=no
4460 support_scroll_plain=no 4435 support_scroll_plain=no
4461 support_utmp=no 4436 support_utmp=no
4462 support_wtmp=no 4437 support_wtmp=no
4463 support_xim=no 4438 support_xim=no
4464 support_xpm=no
4465 support_afterimage=no 4439 support_afterimage=no
4466 support_afterstep=no 4440 support_afterstep=no
4467 support_xft=no 4441 support_xft=no
4468 support_unicode3=no 4442 support_unicode3=no
4469 support_combining=no 4443 support_combining=no
4474 codesets= 4448 codesets=
4475 fi 4449 fi
4476 if test x$enableval = xyes; then 4450 if test x$enableval = xyes; then
4477 support_frills=yes 4451 support_frills=yes
4478 support_inheritpixmap=yes 4452 support_inheritpixmap=yes
4479 support_tinting=yes
4480 support_fading=yes 4453 support_fading=yes
4481 support_keepscrolling=yes 4454 support_keepscrolling=yes
4482 support_selectionscrolling=yes 4455 support_selectionscrolling=yes
4483 support_lastlog=yes 4456 support_lastlog=yes
4484 support_mousewheel=yes 4457 support_mousewheel=yes
4490 support_scroll_xterm=yes 4463 support_scroll_xterm=yes
4491 support_scroll_plain=yes 4464 support_scroll_plain=yes
4492 support_utmp=yes 4465 support_utmp=yes
4493 support_wtmp=yes 4466 support_wtmp=yes
4494 support_xim=yes 4467 support_xim=yes
4495 support_xpm=yes
4496 support_afterimage=yes 4468 support_afterimage=yes
4497 support_afterstep=yes 4469 support_afterstep=yes
4498 support_xft=yes 4470 support_xft=yes
4499 support_unicode3=yes 4471 support_unicode3=yes
4500 support_combining=yes 4472 support_combining=yes
4506 fi 4478 fi
4507 4479
4508fi 4480fi
4509 4481
4510 4482
4483WARNINGS=no
4484# Check whether --enable-warnings was given.
4485if test "${enable_warnings+set}" = set; then
4486 enableval=$enable_warnings; if test x$enableval = xyes; then
4487 WARNINGS=yes
4488 fi
4489fi
4490
4491if test x$GXX = xyes; then
4492 if test $WARNINGS = yes; then
4493 save_CXXFLAGS="$CXXFLAGS"
4494 CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-non-virtual-dtor"
4495 cat >conftest.$ac_ext <<_ACEOF
4496/* confdefs.h. */
4497_ACEOF
4498cat confdefs.h >>conftest.$ac_ext
4499cat >>conftest.$ac_ext <<_ACEOF
4500/* end confdefs.h. */
4501
4502int
4503main ()
4504{
4505
4506 ;
4507 return 0;
4508}
4509_ACEOF
4510rm -f conftest.$ac_objext
4511if { (ac_try="$ac_compile"
4512case "(($ac_try" in
4513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514 *) ac_try_echo=$ac_try;;
4515esac
4516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4517 (eval "$ac_compile") 2>conftest.er1
4518 ac_status=$?
4519 grep -v '^ *+' conftest.er1 >conftest.err
4520 rm -f conftest.er1
4521 cat conftest.err >&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); } && {
4524 test -z "$ac_cxx_werror_flag" ||
4525 test ! -s conftest.err
4526 } && test -s conftest.$ac_objext; then
4527 :
4528else
4529 echo "$as_me: failed program was:" >&5
4530sed 's/^/| /' conftest.$ac_ext >&5
4531
4532 CXXFLAGS="$save_CXXFLAGS"
4533fi
4534
4535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4536 else
4537 CXXFLAGS="$CXXFLAGS -w"
4538 fi
4539fi
4540
4511# Check whether --enable-unicode3 was given. 4541# Check whether --enable-unicode3 was given.
4512if test "${enable_unicode3+set}" = set; then 4542if test "${enable_unicode3+set}" = set; then
4513 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then 4543 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then
4514 support_unicode3=$enableval 4544 support_unicode3=$enableval
4515 fi 4545 fi
4538 support_styles=$enableval 4568 support_styles=$enableval
4539 fi 4569 fi
4540fi 4570fi
4541 4571
4542 4572
4543# Check whether --enable-xpm-background was given.
4544if test "${enable_xpm_background+set}" = set; then
4545 enableval=$enable_xpm_background; if test x$enableval = xyes -o x$enableval = xno; then
4546 support_xpm=$enableval
4547 fi
4548fi
4549
4550
4551# Check whether --enable-afterimage was given. 4573# Check whether --enable-afterimage was given.
4552if test "${enable_afterimage+set}" = set; then 4574if test "${enable_afterimage+set}" = set; then
4553 enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then 4575 enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then
4554 support_afterimage=$enableval 4576 support_afterimage=$enableval
4555 fi 4577 fi
4563 afterimage_config=$withval/afterimage-config 4585 afterimage_config=$withval/afterimage-config
4564 fi 4586 fi
4565fi 4587fi
4566 4588
4567 4589
4568# Check whether --enable-afterstep was given.
4569if test "${enable_afterstep+set}" = set; then
4570 enableval=$enable_afterstep; if test x$enableval = xyes -o x$enableval = xno; then
4571 support_afterstep=$enableval
4572 fi
4573fi
4574
4575 4590
4576# Check whether --enable-transparency was given. 4591# Check whether --enable-transparency was given.
4577if test "${enable_transparency+set}" = set; then 4592if test "${enable_transparency+set}" = set; then
4578 enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then 4593 enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then
4579 support_inheritpixmap=$enableval 4594 support_inheritpixmap=$enableval
4580 fi 4595 fi
4581fi 4596fi
4582 4597
4583 4598
4584# Check whether --enable-tinting was given.
4585if test "${enable_tinting+set}" = set; then
4586 enableval=$enable_tinting; if test x$enableval = xyes -o x$enableval = xno; then
4587 support_tinting=$enableval
4588 fi
4589fi
4590
4591
4592# Check whether --enable-fading was given. 4599# Check whether --enable-fading was given.
4593if test "${enable_fading+set}" = set; then 4600if test "${enable_fading+set}" = set; then
4594 enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then 4601 enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then
4595 support_fading=$enableval 4602 support_fading=$enableval
4596 fi 4603 fi
4619 support_scroll_xterm=$enableval 4626 support_scroll_xterm=$enableval
4620 fi 4627 fi
4621fi 4628fi
4622 4629
4623 4630
4631# Check whether --enable-plain-scroll was given.
4632if test "${enable_plain_scroll+set}" = set; then
4633 enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4634 support_scroll_plain=$enableval
4635 fi
4636fi
4637
4638
4624# Check whether --enable-perl was given. 4639# Check whether --enable-perl was given.
4625if test "${enable_perl+set}" = set; then 4640if test "${enable_perl+set}" = set; then
4626 enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then 4641 enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then
4627 support_perl=$enableval 4642 support_perl=$enableval
4628 fi
4629fi
4630
4631
4632# Check whether --enable-plain-scroll was given.
4633if test "${enable_plain_scroll+set}" = set; then
4634 enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4635 support_scroll_plain=$enableval
4636 fi 4643 fi
4637fi 4644fi
4638 4645
4639 4646
4640 4647
4867#define RXVT_TERMINFO "$withval" 4874#define RXVT_TERMINFO "$withval"
4868_ACEOF 4875_ACEOF
4869 terminfo="$withval" 4876 terminfo="$withval"
4870 fi 4877 fi
4871fi 4878fi
4879
4880
4881
4882LIBEV_M4_AVOID_LIBRT=1
4883
4884ac_ext=cpp
4885ac_cpp='$CXXCPP $CPPFLAGS'
4886ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4887ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4888ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4889{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4890echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4891if test -z "$CXXCPP"; then
4892 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4893 echo $ECHO_N "(cached) $ECHO_C" >&6
4894else
4895 # Double quotes because CXXCPP needs to be expanded
4896 for CXXCPP in "$CXX -E" "/lib/cpp"
4897 do
4898 ac_preproc_ok=false
4899for ac_cxx_preproc_warn_flag in '' yes
4900do
4901 # Use a header file that comes with gcc, so configuring glibc
4902 # with a fresh cross-compiler works.
4903 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4904 # <limits.h> exists even on freestanding compilers.
4905 # On the NeXT, cc -E runs the code through the compiler's parser,
4906 # not just through cpp. "Syntax error" is here to catch this case.
4907 cat >conftest.$ac_ext <<_ACEOF
4908/* confdefs.h. */
4909_ACEOF
4910cat confdefs.h >>conftest.$ac_ext
4911cat >>conftest.$ac_ext <<_ACEOF
4912/* end confdefs.h. */
4913#ifdef __STDC__
4914# include <limits.h>
4915#else
4916# include <assert.h>
4917#endif
4918 Syntax error
4919_ACEOF
4920if { (ac_try="$ac_cpp conftest.$ac_ext"
4921case "(($ac_try" in
4922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4923 *) ac_try_echo=$ac_try;;
4924esac
4925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4927 ac_status=$?
4928 grep -v '^ *+' conftest.er1 >conftest.err
4929 rm -f conftest.er1
4930 cat conftest.err >&5
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); } >/dev/null && {
4933 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4934 test ! -s conftest.err
4935 }; then
4936 :
4937else
4938 echo "$as_me: failed program was:" >&5
4939sed 's/^/| /' conftest.$ac_ext >&5
4940
4941 # Broken: fails on valid input.
4942continue
4943fi
4944
4945rm -f conftest.err conftest.$ac_ext
4946
4947 # OK, works on sane cases. Now check whether nonexistent headers
4948 # can be detected and how.
4949 cat >conftest.$ac_ext <<_ACEOF
4950/* confdefs.h. */
4951_ACEOF
4952cat confdefs.h >>conftest.$ac_ext
4953cat >>conftest.$ac_ext <<_ACEOF
4954/* end confdefs.h. */
4955#include <ac_nonexistent.h>
4956_ACEOF
4957if { (ac_try="$ac_cpp conftest.$ac_ext"
4958case "(($ac_try" in
4959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4960 *) ac_try_echo=$ac_try;;
4961esac
4962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4964 ac_status=$?
4965 grep -v '^ *+' conftest.er1 >conftest.err
4966 rm -f conftest.er1
4967 cat conftest.err >&5
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); } >/dev/null && {
4970 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4971 test ! -s conftest.err
4972 }; then
4973 # Broken: success on invalid input.
4974continue
4975else
4976 echo "$as_me: failed program was:" >&5
4977sed 's/^/| /' conftest.$ac_ext >&5
4978
4979 # Passes both tests.
4980ac_preproc_ok=:
4981break
4982fi
4983
4984rm -f conftest.err conftest.$ac_ext
4985
4986done
4987# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4988rm -f conftest.err conftest.$ac_ext
4989if $ac_preproc_ok; then
4990 break
4991fi
4992
4993 done
4994 ac_cv_prog_CXXCPP=$CXXCPP
4995
4996fi
4997 CXXCPP=$ac_cv_prog_CXXCPP
4998else
4999 ac_cv_prog_CXXCPP=$CXXCPP
5000fi
5001{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5002echo "${ECHO_T}$CXXCPP" >&6; }
5003ac_preproc_ok=false
5004for ac_cxx_preproc_warn_flag in '' yes
5005do
5006 # Use a header file that comes with gcc, so configuring glibc
5007 # with a fresh cross-compiler works.
5008 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5009 # <limits.h> exists even on freestanding compilers.
5010 # On the NeXT, cc -E runs the code through the compiler's parser,
5011 # not just through cpp. "Syntax error" is here to catch this case.
5012 cat >conftest.$ac_ext <<_ACEOF
5013/* confdefs.h. */
5014_ACEOF
5015cat confdefs.h >>conftest.$ac_ext
5016cat >>conftest.$ac_ext <<_ACEOF
5017/* end confdefs.h. */
5018#ifdef __STDC__
5019# include <limits.h>
5020#else
5021# include <assert.h>
5022#endif
5023 Syntax error
5024_ACEOF
5025if { (ac_try="$ac_cpp conftest.$ac_ext"
5026case "(($ac_try" in
5027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5028 *) ac_try_echo=$ac_try;;
5029esac
5030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5032 ac_status=$?
5033 grep -v '^ *+' conftest.er1 >conftest.err
5034 rm -f conftest.er1
5035 cat conftest.err >&5
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); } >/dev/null && {
5038 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5039 test ! -s conftest.err
5040 }; then
5041 :
5042else
5043 echo "$as_me: failed program was:" >&5
5044sed 's/^/| /' conftest.$ac_ext >&5
5045
5046 # Broken: fails on valid input.
5047continue
5048fi
5049
5050rm -f conftest.err conftest.$ac_ext
5051
5052 # OK, works on sane cases. Now check whether nonexistent headers
5053 # can be detected and how.
5054 cat >conftest.$ac_ext <<_ACEOF
5055/* confdefs.h. */
5056_ACEOF
5057cat confdefs.h >>conftest.$ac_ext
5058cat >>conftest.$ac_ext <<_ACEOF
5059/* end confdefs.h. */
5060#include <ac_nonexistent.h>
5061_ACEOF
5062if { (ac_try="$ac_cpp conftest.$ac_ext"
5063case "(($ac_try" in
5064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5065 *) ac_try_echo=$ac_try;;
5066esac
5067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5069 ac_status=$?
5070 grep -v '^ *+' conftest.er1 >conftest.err
5071 rm -f conftest.er1
5072 cat conftest.err >&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); } >/dev/null && {
5075 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5076 test ! -s conftest.err
5077 }; then
5078 # Broken: success on invalid input.
5079continue
5080else
5081 echo "$as_me: failed program was:" >&5
5082sed 's/^/| /' conftest.$ac_ext >&5
5083
5084 # Passes both tests.
5085ac_preproc_ok=:
5086break
5087fi
5088
5089rm -f conftest.err conftest.$ac_ext
5090
5091done
5092# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5093rm -f conftest.err conftest.$ac_ext
5094if $ac_preproc_ok; then
5095 :
5096else
5097 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5098See \`config.log' for more details." >&5
5099echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5100See \`config.log' for more details." >&2;}
5101 { (exit 1); exit 1; }; }
5102fi
5103
5104ac_ext=cpp
5105ac_cpp='$CXXCPP $CPPFLAGS'
5106ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5107ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5108ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5109
5110
5111{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5112echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5113if test "${ac_cv_header_stdc+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5115else
5116 cat >conftest.$ac_ext <<_ACEOF
5117/* confdefs.h. */
5118_ACEOF
5119cat confdefs.h >>conftest.$ac_ext
5120cat >>conftest.$ac_ext <<_ACEOF
5121/* end confdefs.h. */
5122#include <stdlib.h>
5123#include <stdarg.h>
5124#include <string.h>
5125#include <float.h>
5126
5127int
5128main ()
5129{
5130
5131 ;
5132 return 0;
5133}
5134_ACEOF
5135rm -f conftest.$ac_objext
5136if { (ac_try="$ac_compile"
5137case "(($ac_try" in
5138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5139 *) ac_try_echo=$ac_try;;
5140esac
5141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5142 (eval "$ac_compile") 2>conftest.er1
5143 ac_status=$?
5144 grep -v '^ *+' conftest.er1 >conftest.err
5145 rm -f conftest.er1
5146 cat conftest.err >&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); } && {
5149 test -z "$ac_cxx_werror_flag" ||
5150 test ! -s conftest.err
5151 } && test -s conftest.$ac_objext; then
5152 ac_cv_header_stdc=yes
5153else
5154 echo "$as_me: failed program was:" >&5
5155sed 's/^/| /' conftest.$ac_ext >&5
5156
5157 ac_cv_header_stdc=no
5158fi
5159
5160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5161
5162if test $ac_cv_header_stdc = yes; then
5163 # SunOS 4.x string.h does not declare mem*, 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 <string.h>
5171
5172_ACEOF
5173if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5174 $EGREP "memchr" >/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 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5185 cat >conftest.$ac_ext <<_ACEOF
5186/* confdefs.h. */
5187_ACEOF
5188cat confdefs.h >>conftest.$ac_ext
5189cat >>conftest.$ac_ext <<_ACEOF
5190/* end confdefs.h. */
5191#include <stdlib.h>
5192
5193_ACEOF
5194if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5195 $EGREP "free" >/dev/null 2>&1; then
5196 :
5197else
5198 ac_cv_header_stdc=no
5199fi
5200rm -f conftest*
5201
5202fi
5203
5204if test $ac_cv_header_stdc = yes; then
5205 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5206 if test "$cross_compiling" = yes; then
5207 :
5208else
5209 cat >conftest.$ac_ext <<_ACEOF
5210/* confdefs.h. */
5211_ACEOF
5212cat confdefs.h >>conftest.$ac_ext
5213cat >>conftest.$ac_ext <<_ACEOF
5214/* end confdefs.h. */
5215#include <ctype.h>
5216#include <stdlib.h>
5217#if ((' ' & 0x0FF) == 0x020)
5218# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5219# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5220#else
5221# define ISLOWER(c) \
5222 (('a' <= (c) && (c) <= 'i') \
5223 || ('j' <= (c) && (c) <= 'r') \
5224 || ('s' <= (c) && (c) <= 'z'))
5225# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5226#endif
5227
5228#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5229int
5230main ()
5231{
5232 int i;
5233 for (i = 0; i < 256; i++)
5234 if (XOR (islower (i), ISLOWER (i))
5235 || toupper (i) != TOUPPER (i))
5236 return 2;
5237 return 0;
5238}
5239_ACEOF
5240rm -f conftest$ac_exeext
5241if { (ac_try="$ac_link"
5242case "(($ac_try" in
5243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5244 *) ac_try_echo=$ac_try;;
5245esac
5246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5247 (eval "$ac_link") 2>&5
5248 ac_status=$?
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5251 { (case "(($ac_try" in
5252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5253 *) ac_try_echo=$ac_try;;
5254esac
5255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5256 (eval "$ac_try") 2>&5
5257 ac_status=$?
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); }; }; then
5260 :
5261else
5262 echo "$as_me: program exited with status $ac_status" >&5
5263echo "$as_me: failed program was:" >&5
5264sed 's/^/| /' conftest.$ac_ext >&5
5265
5266( exit $ac_status )
5267ac_cv_header_stdc=no
5268fi
5269rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5270fi
5271
5272
5273fi
5274fi
5275{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5276echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5277if test $ac_cv_header_stdc = yes; then
5278
5279cat >>confdefs.h <<\_ACEOF
5280#define STDC_HEADERS 1
5281_ACEOF
5282
5283fi
5284
5285# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5296 inttypes.h stdint.h unistd.h
5297do
5298as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5299{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5300echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5301if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5303else
5304 cat >conftest.$ac_ext <<_ACEOF
5305/* confdefs.h. */
5306_ACEOF
5307cat confdefs.h >>conftest.$ac_ext
5308cat >>conftest.$ac_ext <<_ACEOF
5309/* end confdefs.h. */
5310$ac_includes_default
5311
5312#include <$ac_header>
5313_ACEOF
5314rm -f conftest.$ac_objext
5315if { (ac_try="$ac_compile"
5316case "(($ac_try" in
5317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5318 *) ac_try_echo=$ac_try;;
5319esac
5320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5321 (eval "$ac_compile") 2>conftest.er1
5322 ac_status=$?
5323 grep -v '^ *+' conftest.er1 >conftest.err
5324 rm -f conftest.er1
5325 cat conftest.err >&5
5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); } && {
5328 test -z "$ac_cxx_werror_flag" ||
5329 test ! -s conftest.err
5330 } && test -s conftest.$ac_objext; then
5331 eval "$as_ac_Header=yes"
5332else
5333 echo "$as_me: failed program was:" >&5
5334sed 's/^/| /' conftest.$ac_ext >&5
5335
5336 eval "$as_ac_Header=no"
5337fi
5338
5339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5340fi
5341ac_res=`eval echo '${'$as_ac_Header'}'`
5342 { echo "$as_me:$LINENO: result: $ac_res" >&5
5343echo "${ECHO_T}$ac_res" >&6; }
5344if test `eval echo '${'$as_ac_Header'}'` = yes; then
5345 cat >>confdefs.h <<_ACEOF
5346#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5347_ACEOF
5348
5349fi
5350
5351done
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361for ac_header in sys/inotify.h sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h
5362do
5363as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5364if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5365 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5366echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5367if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5368 echo $ECHO_N "(cached) $ECHO_C" >&6
5369fi
5370ac_res=`eval echo '${'$as_ac_Header'}'`
5371 { echo "$as_me:$LINENO: result: $ac_res" >&5
5372echo "${ECHO_T}$ac_res" >&6; }
5373else
5374 # Is the header compilable?
5375{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5376echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5377cat >conftest.$ac_ext <<_ACEOF
5378/* confdefs.h. */
5379_ACEOF
5380cat confdefs.h >>conftest.$ac_ext
5381cat >>conftest.$ac_ext <<_ACEOF
5382/* end confdefs.h. */
5383$ac_includes_default
5384#include <$ac_header>
5385_ACEOF
5386rm -f conftest.$ac_objext
5387if { (ac_try="$ac_compile"
5388case "(($ac_try" in
5389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5390 *) ac_try_echo=$ac_try;;
5391esac
5392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5393 (eval "$ac_compile") 2>conftest.er1
5394 ac_status=$?
5395 grep -v '^ *+' conftest.er1 >conftest.err
5396 rm -f conftest.er1
5397 cat conftest.err >&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); } && {
5400 test -z "$ac_cxx_werror_flag" ||
5401 test ! -s conftest.err
5402 } && test -s conftest.$ac_objext; then
5403 ac_header_compiler=yes
5404else
5405 echo "$as_me: failed program was:" >&5
5406sed 's/^/| /' conftest.$ac_ext >&5
5407
5408 ac_header_compiler=no
5409fi
5410
5411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5412{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5413echo "${ECHO_T}$ac_header_compiler" >&6; }
5414
5415# Is the header present?
5416{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5417echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5418cat >conftest.$ac_ext <<_ACEOF
5419/* confdefs.h. */
5420_ACEOF
5421cat confdefs.h >>conftest.$ac_ext
5422cat >>conftest.$ac_ext <<_ACEOF
5423/* end confdefs.h. */
5424#include <$ac_header>
5425_ACEOF
5426if { (ac_try="$ac_cpp conftest.$ac_ext"
5427case "(($ac_try" in
5428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5429 *) ac_try_echo=$ac_try;;
5430esac
5431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5433 ac_status=$?
5434 grep -v '^ *+' conftest.er1 >conftest.err
5435 rm -f conftest.er1
5436 cat conftest.err >&5
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); } >/dev/null && {
5439 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5440 test ! -s conftest.err
5441 }; then
5442 ac_header_preproc=yes
5443else
5444 echo "$as_me: failed program was:" >&5
5445sed 's/^/| /' conftest.$ac_ext >&5
5446
5447 ac_header_preproc=no
5448fi
5449
5450rm -f conftest.err conftest.$ac_ext
5451{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5452echo "${ECHO_T}$ac_header_preproc" >&6; }
5453
5454# So? What about this header?
5455case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5456 yes:no: )
5457 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5458echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5460echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5461 ac_header_preproc=yes
5462 ;;
5463 no:yes:* )
5464 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5465echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5466 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5467echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5468 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5469echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5470 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5471echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5473echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5474 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5475echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5476
5477 ;;
5478esac
5479{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5480echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5481if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5482 echo $ECHO_N "(cached) $ECHO_C" >&6
5483else
5484 eval "$as_ac_Header=\$ac_header_preproc"
5485fi
5486ac_res=`eval echo '${'$as_ac_Header'}'`
5487 { echo "$as_me:$LINENO: result: $ac_res" >&5
5488echo "${ECHO_T}$ac_res" >&6; }
5489
5490fi
5491if test `eval echo '${'$as_ac_Header'}'` = yes; then
5492 cat >>confdefs.h <<_ACEOF
5493#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5494_ACEOF
5495
5496fi
5497
5498done
5499
5500
5501
5502
5503
5504
5505
5506
5507for ac_func in inotify_init epoll_ctl kqueue port_create poll select
5508do
5509as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5510{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5511echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5512if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5513 echo $ECHO_N "(cached) $ECHO_C" >&6
5514else
5515 cat >conftest.$ac_ext <<_ACEOF
5516/* confdefs.h. */
5517_ACEOF
5518cat confdefs.h >>conftest.$ac_ext
5519cat >>conftest.$ac_ext <<_ACEOF
5520/* end confdefs.h. */
5521/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5523#define $ac_func innocuous_$ac_func
5524
5525/* System header to define __stub macros and hopefully few prototypes,
5526 which can conflict with char $ac_func (); below.
5527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5528 <limits.h> exists even on freestanding compilers. */
5529
5530#ifdef __STDC__
5531# include <limits.h>
5532#else
5533# include <assert.h>
5534#endif
5535
5536#undef $ac_func
5537
5538/* Override any GCC internal prototype to avoid an error.
5539 Use char because int might match the return type of a GCC
5540 builtin and then its argument prototype would still apply. */
5541#ifdef __cplusplus
5542extern "C"
5543#endif
5544char $ac_func ();
5545/* The GNU C library defines this for functions which it implements
5546 to always fail with ENOSYS. Some functions are actually named
5547 something starting with __ and the normal name is an alias. */
5548#if defined __stub_$ac_func || defined __stub___$ac_func
5549choke me
5550#endif
5551
5552int
5553main ()
5554{
5555return $ac_func ();
5556 ;
5557 return 0;
5558}
5559_ACEOF
5560rm -f conftest.$ac_objext conftest$ac_exeext
5561if { (ac_try="$ac_link"
5562case "(($ac_try" in
5563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5564 *) ac_try_echo=$ac_try;;
5565esac
5566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5567 (eval "$ac_link") 2>conftest.er1
5568 ac_status=$?
5569 grep -v '^ *+' conftest.er1 >conftest.err
5570 rm -f conftest.er1
5571 cat conftest.err >&5
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); } && {
5574 test -z "$ac_cxx_werror_flag" ||
5575 test ! -s conftest.err
5576 } && test -s conftest$ac_exeext &&
5577 $as_test_x conftest$ac_exeext; then
5578 eval "$as_ac_var=yes"
5579else
5580 echo "$as_me: failed program was:" >&5
5581sed 's/^/| /' conftest.$ac_ext >&5
5582
5583 eval "$as_ac_var=no"
5584fi
5585
5586rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5587 conftest$ac_exeext conftest.$ac_ext
5588fi
5589ac_res=`eval echo '${'$as_ac_var'}'`
5590 { echo "$as_me:$LINENO: result: $ac_res" >&5
5591echo "${ECHO_T}$ac_res" >&6; }
5592if test `eval echo '${'$as_ac_var'}'` = yes; then
5593 cat >>confdefs.h <<_ACEOF
5594#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5595_ACEOF
5596
5597fi
5598done
5599
5600
5601{ echo "$as_me:$LINENO: checking for clock_gettime" >&5
5602echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6; }
5603if test "${ac_cv_func_clock_gettime+set}" = set; then
5604 echo $ECHO_N "(cached) $ECHO_C" >&6
5605else
5606 cat >conftest.$ac_ext <<_ACEOF
5607/* confdefs.h. */
5608_ACEOF
5609cat confdefs.h >>conftest.$ac_ext
5610cat >>conftest.$ac_ext <<_ACEOF
5611/* end confdefs.h. */
5612/* Define clock_gettime to an innocuous variant, in case <limits.h> declares clock_gettime.
5613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5614#define clock_gettime innocuous_clock_gettime
5615
5616/* System header to define __stub macros and hopefully few prototypes,
5617 which can conflict with char clock_gettime (); below.
5618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5619 <limits.h> exists even on freestanding compilers. */
5620
5621#ifdef __STDC__
5622# include <limits.h>
5623#else
5624# include <assert.h>
5625#endif
5626
5627#undef clock_gettime
5628
5629/* Override any GCC internal prototype to avoid an error.
5630 Use char because int might match the return type of a GCC
5631 builtin and then its argument prototype would still apply. */
5632#ifdef __cplusplus
5633extern "C"
5634#endif
5635char clock_gettime ();
5636/* The GNU C library defines this for functions which it implements
5637 to always fail with ENOSYS. Some functions are actually named
5638 something starting with __ and the normal name is an alias. */
5639#if defined __stub_clock_gettime || defined __stub___clock_gettime
5640choke me
5641#endif
5642
5643int
5644main ()
5645{
5646return clock_gettime ();
5647 ;
5648 return 0;
5649}
5650_ACEOF
5651rm -f conftest.$ac_objext conftest$ac_exeext
5652if { (ac_try="$ac_link"
5653case "(($ac_try" in
5654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5655 *) ac_try_echo=$ac_try;;
5656esac
5657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5658 (eval "$ac_link") 2>conftest.er1
5659 ac_status=$?
5660 grep -v '^ *+' conftest.er1 >conftest.err
5661 rm -f conftest.er1
5662 cat conftest.err >&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); } && {
5665 test -z "$ac_cxx_werror_flag" ||
5666 test ! -s conftest.err
5667 } && test -s conftest$ac_exeext &&
5668 $as_test_x conftest$ac_exeext; then
5669 ac_cv_func_clock_gettime=yes
5670else
5671 echo "$as_me: failed program was:" >&5
5672sed 's/^/| /' conftest.$ac_ext >&5
5673
5674 ac_cv_func_clock_gettime=no
5675fi
5676
5677rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5678 conftest$ac_exeext conftest.$ac_ext
5679fi
5680{ echo "$as_me:$LINENO: result: $ac_cv_func_clock_gettime" >&5
5681echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; }
5682if test $ac_cv_func_clock_gettime = yes; then
5683 :
5684else
5685
5686 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
5687
5688{ echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
5689echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
5690if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
5692else
5693 ac_check_lib_save_LIBS=$LIBS
5694LIBS="-lrt $LIBS"
5695cat >conftest.$ac_ext <<_ACEOF
5696/* confdefs.h. */
5697_ACEOF
5698cat confdefs.h >>conftest.$ac_ext
5699cat >>conftest.$ac_ext <<_ACEOF
5700/* end confdefs.h. */
5701
5702/* Override any GCC internal prototype to avoid an error.
5703 Use char because int might match the return type of a GCC
5704 builtin and then its argument prototype would still apply. */
5705#ifdef __cplusplus
5706extern "C"
5707#endif
5708char clock_gettime ();
5709int
5710main ()
5711{
5712return clock_gettime ();
5713 ;
5714 return 0;
5715}
5716_ACEOF
5717rm -f conftest.$ac_objext conftest$ac_exeext
5718if { (ac_try="$ac_link"
5719case "(($ac_try" in
5720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721 *) ac_try_echo=$ac_try;;
5722esac
5723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724 (eval "$ac_link") 2>conftest.er1
5725 ac_status=$?
5726 grep -v '^ *+' conftest.er1 >conftest.err
5727 rm -f conftest.er1
5728 cat conftest.err >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } && {
5731 test -z "$ac_cxx_werror_flag" ||
5732 test ! -s conftest.err
5733 } && test -s conftest$ac_exeext &&
5734 $as_test_x conftest$ac_exeext; then
5735 ac_cv_lib_rt_clock_gettime=yes
5736else
5737 echo "$as_me: failed program was:" >&5
5738sed 's/^/| /' conftest.$ac_ext >&5
5739
5740 ac_cv_lib_rt_clock_gettime=no
5741fi
5742
5743rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5744 conftest$ac_exeext conftest.$ac_ext
5745LIBS=$ac_check_lib_save_LIBS
5746fi
5747{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
5748echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
5749if test $ac_cv_lib_rt_clock_gettime = yes; then
5750 cat >>confdefs.h <<_ACEOF
5751#define HAVE_LIBRT 1
5752_ACEOF
5753
5754 LIBS="-lrt $LIBS"
5755
5756fi
5757
5758 unset ac_cv_func_clock_gettime
5759
5760for ac_func in clock_gettime
5761do
5762as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5763{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5764echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5765if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5767else
5768 cat >conftest.$ac_ext <<_ACEOF
5769/* confdefs.h. */
5770_ACEOF
5771cat confdefs.h >>conftest.$ac_ext
5772cat >>conftest.$ac_ext <<_ACEOF
5773/* end confdefs.h. */
5774/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5776#define $ac_func innocuous_$ac_func
5777
5778/* System header to define __stub macros and hopefully few prototypes,
5779 which can conflict with char $ac_func (); below.
5780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5781 <limits.h> exists even on freestanding compilers. */
5782
5783#ifdef __STDC__
5784# include <limits.h>
5785#else
5786# include <assert.h>
5787#endif
5788
5789#undef $ac_func
5790
5791/* Override any GCC internal prototype to avoid an error.
5792 Use char because int might match the return type of a GCC
5793 builtin and then its argument prototype would still apply. */
5794#ifdef __cplusplus
5795extern "C"
5796#endif
5797char $ac_func ();
5798/* The GNU C library defines this for functions which it implements
5799 to always fail with ENOSYS. Some functions are actually named
5800 something starting with __ and the normal name is an alias. */
5801#if defined __stub_$ac_func || defined __stub___$ac_func
5802choke me
5803#endif
5804
5805int
5806main ()
5807{
5808return $ac_func ();
5809 ;
5810 return 0;
5811}
5812_ACEOF
5813rm -f conftest.$ac_objext conftest$ac_exeext
5814if { (ac_try="$ac_link"
5815case "(($ac_try" in
5816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5817 *) ac_try_echo=$ac_try;;
5818esac
5819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5820 (eval "$ac_link") 2>conftest.er1
5821 ac_status=$?
5822 grep -v '^ *+' conftest.er1 >conftest.err
5823 rm -f conftest.er1
5824 cat conftest.err >&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); } && {
5827 test -z "$ac_cxx_werror_flag" ||
5828 test ! -s conftest.err
5829 } && test -s conftest$ac_exeext &&
5830 $as_test_x conftest$ac_exeext; then
5831 eval "$as_ac_var=yes"
5832else
5833 echo "$as_me: failed program was:" >&5
5834sed 's/^/| /' conftest.$ac_ext >&5
5835
5836 eval "$as_ac_var=no"
5837fi
5838
5839rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5840 conftest$ac_exeext conftest.$ac_ext
5841fi
5842ac_res=`eval echo '${'$as_ac_var'}'`
5843 { echo "$as_me:$LINENO: result: $ac_res" >&5
5844echo "${ECHO_T}$ac_res" >&6; }
5845if test `eval echo '${'$as_ac_var'}'` = yes; then
5846 cat >>confdefs.h <<_ACEOF
5847#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5848_ACEOF
5849
5850fi
5851done
5852
5853 fi
5854
5855fi
5856
5857
5858
5859{ echo "$as_me:$LINENO: checking for ceil in -lm" >&5
5860echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; }
5861if test "${ac_cv_lib_m_ceil+set}" = set; then
5862 echo $ECHO_N "(cached) $ECHO_C" >&6
5863else
5864 ac_check_lib_save_LIBS=$LIBS
5865LIBS="-lm $LIBS"
5866cat >conftest.$ac_ext <<_ACEOF
5867/* confdefs.h. */
5868_ACEOF
5869cat confdefs.h >>conftest.$ac_ext
5870cat >>conftest.$ac_ext <<_ACEOF
5871/* end confdefs.h. */
5872
5873/* Override any GCC internal prototype to avoid an error.
5874 Use char because int might match the return type of a GCC
5875 builtin and then its argument prototype would still apply. */
5876#ifdef __cplusplus
5877extern "C"
5878#endif
5879char ceil ();
5880int
5881main ()
5882{
5883return ceil ();
5884 ;
5885 return 0;
5886}
5887_ACEOF
5888rm -f conftest.$ac_objext conftest$ac_exeext
5889if { (ac_try="$ac_link"
5890case "(($ac_try" in
5891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5892 *) ac_try_echo=$ac_try;;
5893esac
5894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5895 (eval "$ac_link") 2>conftest.er1
5896 ac_status=$?
5897 grep -v '^ *+' conftest.er1 >conftest.err
5898 rm -f conftest.er1
5899 cat conftest.err >&5
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); } && {
5902 test -z "$ac_cxx_werror_flag" ||
5903 test ! -s conftest.err
5904 } && test -s conftest$ac_exeext &&
5905 $as_test_x conftest$ac_exeext; then
5906 ac_cv_lib_m_ceil=yes
5907else
5908 echo "$as_me: failed program was:" >&5
5909sed 's/^/| /' conftest.$ac_ext >&5
5910
5911 ac_cv_lib_m_ceil=no
5912fi
5913
5914rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5915 conftest$ac_exeext conftest.$ac_ext
5916LIBS=$ac_check_lib_save_LIBS
5917fi
5918{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5
5919echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6; }
5920if test $ac_cv_lib_m_ceil = yes; then
5921 cat >>confdefs.h <<_ACEOF
5922#define HAVE_LIBM 1
5923_ACEOF
5924
5925 LIBS="-lm $LIBS"
5926
5927fi
5928
5929
5930
5931
4872 5932
4873 5933
4874 5934
4875# Extract the first word of "tic", so it can be a program name with args. 5935# Extract the first word of "tic", so it can be a program name with args.
4876set dummy tic; ac_word=$2 5936set dummy tic; ac_word=$2
4897 fi 5957 fi
4898done 5958done
4899done 5959done
4900IFS=$as_save_IFS 5960IFS=$as_save_IFS
4901 5961
5962 test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":"
4902 ;; 5963 ;;
4903esac 5964esac
4904fi 5965fi
4905TIC=$ac_cv_path_TIC 5966TIC=$ac_cv_path_TIC
4906if test -n "$TIC"; then 5967if test -n "$TIC"; then
4909else 5970else
4910 { echo "$as_me:$LINENO: result: no" >&5 5971 { echo "$as_me:$LINENO: result: no" >&5
4911echo "${ECHO_T}no" >&6; } 5972echo "${ECHO_T}no" >&6; }
4912fi 5973fi
4913 5974
4914
4915
4916
4917
4918ac_ext=cpp
4919ac_cpp='$CXXCPP $CPPFLAGS'
4920ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4921ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4922ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4923{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4924echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4925if test -z "$CXXCPP"; then
4926 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4927 echo $ECHO_N "(cached) $ECHO_C" >&6
4928else
4929 # Double quotes because CXXCPP needs to be expanded
4930 for CXXCPP in "$CXX -E" "/lib/cpp"
4931 do
4932 ac_preproc_ok=false
4933for ac_cxx_preproc_warn_flag in '' yes
4934do
4935 # Use a header file that comes with gcc, so configuring glibc
4936 # with a fresh cross-compiler works.
4937 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4938 # <limits.h> exists even on freestanding compilers.
4939 # On the NeXT, cc -E runs the code through the compiler's parser,
4940 # not just through cpp. "Syntax error" is here to catch this case.
4941 cat >conftest.$ac_ext <<_ACEOF
4942/* confdefs.h. */
4943_ACEOF
4944cat confdefs.h >>conftest.$ac_ext
4945cat >>conftest.$ac_ext <<_ACEOF
4946/* end confdefs.h. */
4947#ifdef __STDC__
4948# include <limits.h>
4949#else
4950# include <assert.h>
4951#endif
4952 Syntax error
4953_ACEOF
4954if { (ac_try="$ac_cpp conftest.$ac_ext"
4955case "(($ac_try" in
4956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4957 *) ac_try_echo=$ac_try;;
4958esac
4959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4961 ac_status=$?
4962 grep -v '^ *+' conftest.er1 >conftest.err
4963 rm -f conftest.er1
4964 cat conftest.err >&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } >/dev/null && {
4967 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4968 test ! -s conftest.err
4969 }; then
4970 :
4971else
4972 echo "$as_me: failed program was:" >&5
4973sed 's/^/| /' conftest.$ac_ext >&5
4974
4975 # Broken: fails on valid input.
4976continue
4977fi
4978
4979rm -f conftest.err conftest.$ac_ext
4980
4981 # OK, works on sane cases. Now check whether nonexistent headers
4982 # can be detected and how.
4983 cat >conftest.$ac_ext <<_ACEOF
4984/* confdefs.h. */
4985_ACEOF
4986cat confdefs.h >>conftest.$ac_ext
4987cat >>conftest.$ac_ext <<_ACEOF
4988/* end confdefs.h. */
4989#include <ac_nonexistent.h>
4990_ACEOF
4991if { (ac_try="$ac_cpp conftest.$ac_ext"
4992case "(($ac_try" in
4993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4994 *) ac_try_echo=$ac_try;;
4995esac
4996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4998 ac_status=$?
4999 grep -v '^ *+' conftest.er1 >conftest.err
5000 rm -f conftest.er1
5001 cat conftest.err >&5
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); } >/dev/null && {
5004 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5005 test ! -s conftest.err
5006 }; then
5007 # Broken: success on invalid input.
5008continue
5009else
5010 echo "$as_me: failed program was:" >&5
5011sed 's/^/| /' conftest.$ac_ext >&5
5012
5013 # Passes both tests.
5014ac_preproc_ok=:
5015break
5016fi
5017
5018rm -f conftest.err conftest.$ac_ext
5019
5020done
5021# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5022rm -f conftest.err conftest.$ac_ext
5023if $ac_preproc_ok; then
5024 break
5025fi
5026
5027 done
5028 ac_cv_prog_CXXCPP=$CXXCPP
5029
5030fi
5031 CXXCPP=$ac_cv_prog_CXXCPP
5032else
5033 ac_cv_prog_CXXCPP=$CXXCPP
5034fi
5035{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5036echo "${ECHO_T}$CXXCPP" >&6; }
5037ac_preproc_ok=false
5038for ac_cxx_preproc_warn_flag in '' yes
5039do
5040 # Use a header file that comes with gcc, so configuring glibc
5041 # with a fresh cross-compiler works.
5042 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5043 # <limits.h> exists even on freestanding compilers.
5044 # On the NeXT, cc -E runs the code through the compiler's parser,
5045 # not just through cpp. "Syntax error" is here to catch this case.
5046 cat >conftest.$ac_ext <<_ACEOF
5047/* confdefs.h. */
5048_ACEOF
5049cat confdefs.h >>conftest.$ac_ext
5050cat >>conftest.$ac_ext <<_ACEOF
5051/* end confdefs.h. */
5052#ifdef __STDC__
5053# include <limits.h>
5054#else
5055# include <assert.h>
5056#endif
5057 Syntax error
5058_ACEOF
5059if { (ac_try="$ac_cpp conftest.$ac_ext"
5060case "(($ac_try" in
5061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062 *) ac_try_echo=$ac_try;;
5063esac
5064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5066 ac_status=$?
5067 grep -v '^ *+' conftest.er1 >conftest.err
5068 rm -f conftest.er1
5069 cat conftest.err >&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); } >/dev/null && {
5072 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5073 test ! -s conftest.err
5074 }; then
5075 :
5076else
5077 echo "$as_me: failed program was:" >&5
5078sed 's/^/| /' conftest.$ac_ext >&5
5079
5080 # Broken: fails on valid input.
5081continue
5082fi
5083
5084rm -f conftest.err conftest.$ac_ext
5085
5086 # OK, works on sane cases. Now check whether nonexistent headers
5087 # can be detected and how.
5088 cat >conftest.$ac_ext <<_ACEOF
5089/* confdefs.h. */
5090_ACEOF
5091cat confdefs.h >>conftest.$ac_ext
5092cat >>conftest.$ac_ext <<_ACEOF
5093/* end confdefs.h. */
5094#include <ac_nonexistent.h>
5095_ACEOF
5096if { (ac_try="$ac_cpp conftest.$ac_ext"
5097case "(($ac_try" in
5098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5099 *) ac_try_echo=$ac_try;;
5100esac
5101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5103 ac_status=$?
5104 grep -v '^ *+' conftest.er1 >conftest.err
5105 rm -f conftest.er1
5106 cat conftest.err >&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); } >/dev/null && {
5109 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5110 test ! -s conftest.err
5111 }; then
5112 # Broken: success on invalid input.
5113continue
5114else
5115 echo "$as_me: failed program was:" >&5
5116sed 's/^/| /' conftest.$ac_ext >&5
5117
5118 # Passes both tests.
5119ac_preproc_ok=:
5120break
5121fi
5122
5123rm -f conftest.err conftest.$ac_ext
5124
5125done
5126# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5127rm -f conftest.err conftest.$ac_ext
5128if $ac_preproc_ok; then
5129 :
5130else
5131 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5132See \`config.log' for more details." >&5
5133echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5134See \`config.log' for more details." >&2;}
5135 { (exit 1); exit 1; }; }
5136fi
5137
5138ac_ext=cpp
5139ac_cpp='$CXXCPP $CPPFLAGS'
5140ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5141ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5142ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5143 5975
5144 5976
5145{ echo "$as_me:$LINENO: checking for X" >&5 5977{ echo "$as_me:$LINENO: checking for X" >&5
5146echo $ECHO_N "checking for X... $ECHO_C" >&6; } 5978echo $ECHO_N "checking for X... $ECHO_C" >&6; }
5147 5979
6455 LDFLAGS=$ac_save_LDFLAGS 7287 LDFLAGS=$ac_save_LDFLAGS
6456 7288
6457fi 7289fi
6458 7290
6459 7291
6460
6461AFTERIMAGE_CFLAGS= 7292AFTERIMAGE_CFLAGS=
6462AFTERIMAGE_LIBS= 7293AFTERIMAGE_LIBS=
6463AFTERIMAGE_VERSION= 7294AFTERIMAGE_VERSION=
6464 7295
6465if test x$support_afterimage = xyes; then 7296if test x$support_afterimage = xyes; then
6506echo "${ECHO_T}no" >&6; } 7337echo "${ECHO_T}no" >&6; }
6507fi 7338fi
6508 7339
6509 7340
6510 fi 7341 fi
7342 if test "x$afterimage_config" != "xno" ; then
6511 { echo "$as_me:$LINENO: checking for libAfterImage version >= 1.15" >&5 7343 { echo "$as_me:$LINENO: checking for libAfterImage version >= 1.15" >&5
6512echo $ECHO_N "checking for libAfterImage version >= 1.15... $ECHO_C" >&6; } 7344echo $ECHO_N "checking for libAfterImage version >= 1.15... $ECHO_C" >&6; }
6513 AFTERIMAGE_VERSION=`$afterimage_config --version` 7345 xAFTERIMAGE_VERSION=`$afterimage_config --version`
6514 if test -n $AFTERIMAGE_VERSION ; then 7346 if test -n "$xAFTERIMAGE_VERSION" ; then
6515 AFTERIMAGE_CFLAGS=`$afterimage_config --cflags` 7347 xAFTERIMAGE_CFLAGS=`$afterimage_config --cflags`
6516 AFTERIMAGE_LIBS=`$afterimage_config --libs` 7348 xAFTERIMAGE_LIBS=`$afterimage_config --libs`
6517 if test "x$AFTERIMAGE_LIBS" != "x"; then 7349 if test "x$xAFTERIMAGE_LIBS" != "x"; then
6518 libai_ver_major=`echo $AFTERIMAGE_VERSION | cut -f 1 -d .` 7350 libai_ver_major=`echo $xAFTERIMAGE_VERSION | cut -f 1 -d .`
6519 libai_ver_minor=`echo $AFTERIMAGE_VERSION | cut -f 2 -d .` 7351 libai_ver_minor=`echo $xAFTERIMAGE_VERSION | cut -f 2 -d .`
6520 if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then 7352 if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then
6521 support_afterimage=yes 7353 support_afterimage=yes
6522 fi 7354 AFTERIMAGE_CFLAGS="$xAFTERIMAGE_CFLAGS"
6523 fi 7355 AFTERIMAGE_LIBS="$xAFTERIMAGE_LIBS"
6524 fi 7356 AFTERIMAGE_VERSION="$xAFTERIMAGE_VERSION"
6525
6526 if test "x$support_afterimage" = "xyes"; then
6527 { echo "$as_me:$LINENO: result: $AFTERIMAGE_LIBS" >&5
6528echo "${ECHO_T}$AFTERIMAGE_LIBS" >&6; }
6529 else
6530 { echo "$as_me:$LINENO: result: no" >&5
6531echo "${ECHO_T}no" >&6; }
6532 fi
6533fi
6534
6535if test x$support_afterimage != xyes -a x$support_xpm = xyes ; then
6536
6537
6538
6539# Initialize some more variables set by options.
6540# The variables have the same names as the options, with
6541# dashes changed to underlines.
6542
6543# If we find XPM, set shell vars xpm_includes and xpm_libraries to the
6544# paths, otherwise set no_xpm=yes.
6545# Uses ac_ vars as temps to allow command line to override cache and checks.
6546{ echo "$as_me:$LINENO: checking for libXpm" >&5
6547echo $ECHO_N "checking for libXpm... $ECHO_C" >&6; }
6548
6549
6550# Check whether --with-xpm_includes was given.
6551if test "${with_xpm_includes+set}" = set; then
6552 withval=$with_xpm_includes; xpm_includes="$withval"
6553else
6554 xpm_includes=NO
6555fi
6556
6557
6558# Check whether --with-xpm_library was given.
6559if test "${with_xpm_library+set}" = set; then
6560 withval=$with_xpm_library; xpm_libraries="$withval"
6561else
6562 xpm_libraries=NO
6563fi
6564
6565
6566# --without-xpm overrides everything else, but does not touch the cache.
6567
6568# Check whether --with-xpm was given.
6569if test "${with_xpm+set}" = set; then
6570 withval=$with_xpm;
6571fi
6572
6573if test "$with_xpm" = no; then
6574 have_xpm=disabled
6575else
6576 if test "${ac_cv_have_xpm+set}" = set; then
6577 echo $ECHO_N "(cached) $ECHO_C" >&6
6578else
6579
6580 vt_xpm_include_X11=no
6581 if test -n "$xpm_includes"; then
6582 vt_xpm_includes=$xpm_includes
6583 else
6584 vt_xpm_includes=NO
6585 fi
6586 if test -n "$xpm_libraries"; then
6587 vt_xpm_libraries=$xpm_libraries
6588 else
6589 vt_xpm_libraries=NO
6590 fi
6591
6592 if test "$vt_xpm_includes" = NO; then
6593 # Guess where to find xpm.h
6594
6595ac_save_CPPFLAGS="$CPPFLAGS"
6596CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6597
6598 # First, try using that file with no special directory specified.
6599cat >conftest.$ac_ext <<_ACEOF
6600/* confdefs.h. */
6601_ACEOF
6602cat confdefs.h >>conftest.$ac_ext
6603cat >>conftest.$ac_ext <<_ACEOF
6604/* end confdefs.h. */
6605#include <X11/xpm.h>
6606_ACEOF
6607if { (ac_try="$ac_cpp conftest.$ac_ext"
6608case "(($ac_try" in
6609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6610 *) ac_try_echo=$ac_try;;
6611esac
6612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6614 ac_status=$?
6615 grep -v '^ *+' conftest.er1 >conftest.err
6616 rm -f conftest.er1
6617 cat conftest.err >&5
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); } >/dev/null && {
6620 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6621 test ! -s conftest.err
6622 }; then
6623 # We can compile using X headers with no special include directory.
6624vt_xpm_includes=
6625vt_xpm_include_X11=yes
6626else
6627 echo "$as_me: failed program was:" >&5
6628sed 's/^/| /' conftest.$ac_ext >&5
6629
6630 CPPFLAGS="$ac_save_CPPFLAGS"
6631# Look for the header file in a standard set of common directories.
6632 for ac_dir in \
6633 /usr/X11/include \
6634 /usr/X11R6/include \
6635 /usr/X11R5/include \
6636 /usr/X11R4/include \
6637 \
6638 /usr/include/X11 \
6639 /usr/include/X11R6 \
6640 /usr/include/X11R5 \
6641 /usr/include/X11R4 \
6642 \
6643 /usr/local/X11/include \
6644 /usr/local/X11R6/include \
6645 /usr/local/X11R5/include \
6646 /usr/local/X11R4/include \
6647 \
6648 /usr/local/include/X11 \
6649 /usr/local/include/X11R6 \
6650 /usr/local/include/X11R5 \
6651 /usr/local/include/X11R4 \
6652 \
6653 /usr/X386/include \
6654 /usr/x386/include \
6655 /usr/XFree86/include/X11 \
6656 \
6657 /usr/include \
6658 /usr/local/include \
6659 /usr/unsupported/include \
6660 /usr/athena/include \
6661 /usr/local/x11r5/include \
6662 /usr/lpp/Xamples/include \
6663 \
6664 /usr/openwin/include \
6665 /usr/openwin/share/include \
6666 ; \
6667 do
6668 if test -r "$ac_dir/X11/xpm.h"; then
6669 vt_xpm_includes="$ac_dir"
6670 vt_xpm_include_X11=yes
6671 break
6672 else
6673 if test -r "$ac_dir/xpm.h"; then
6674 vt_xpm_includes=$ac_dir
6675 break
6676 fi
6677 fi
6678 done
6679fi
6680
6681rm -f conftest.err conftest.$ac_ext
6682fi
6683
6684if test "$vt_xpm_libraries" = NO; then
6685 # Check for the libraries.
6686
6687 # See if we find them without any special options.
6688 # Don't add to $LIBS permanently.
6689 ac_save_LIBS="$LIBS"
6690 LIBS="$LIBS $X_LIBS -lXpm -lX11"
6691cat >conftest.$ac_ext <<_ACEOF
6692/* confdefs.h. */
6693_ACEOF
6694cat confdefs.h >>conftest.$ac_ext
6695cat >>conftest.$ac_ext <<_ACEOF
6696/* end confdefs.h. */
6697
6698int
6699main ()
6700{
6701XpmReadFileToPixmap()
6702 ;
6703 return 0;
6704}
6705_ACEOF
6706rm -f conftest.$ac_objext conftest$ac_exeext
6707if { (ac_try="$ac_link"
6708case "(($ac_try" in
6709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6710 *) ac_try_echo=$ac_try;;
6711esac
6712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6713 (eval "$ac_link") 2>conftest.er1
6714 ac_status=$?
6715 grep -v '^ *+' conftest.er1 >conftest.err
6716 rm -f conftest.er1
6717 cat conftest.err >&5
6718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719 (exit $ac_status); } && {
6720 test -z "$ac_cxx_werror_flag" ||
6721 test ! -s conftest.err
6722 } && test -s conftest$ac_exeext &&
6723 $as_test_x conftest$ac_exeext; then
6724 LIBS="$ac_save_LIBS"
6725# We can link libXpm with no special library path.
6726vt_xpm_libraries=
6727else
6728 echo "$as_me: failed program was:" >&5
6729sed 's/^/| /' conftest.$ac_ext >&5
6730
6731 LIBS="$ac_save_LIBS"
6732# First see if replacing the include by lib works.
6733for ac_dir in \
6734 `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
6735 /usr/X11/lib \
6736 /usr/X11R6/lib \
6737 /usr/X11R5/lib \
6738 /usr/X11R4/lib \
6739 \
6740 /usr/lib/X11 \
6741 /usr/lib/X11R6 \
6742 /usr/lib/X11R5 \
6743 /usr/lib/X11R4 \
6744 \
6745 /usr/local/X11/lib \
6746 /usr/local/X11R6/lib \
6747 /usr/local/X11R5/lib \
6748 /usr/local/X11R4/lib \
6749 \
6750 /usr/local/lib/X11 \
6751 /usr/local/lib/X11R6 \
6752 /usr/local/lib/X11R5 \
6753 /usr/local/lib/X11R4 \
6754 \
6755 /usr/X386/lib \
6756 /usr/x386/lib \
6757 /usr/XFree86/lib/X11 \
6758 \
6759 /usr/lib \
6760 /usr/local/lib \
6761 /usr/unsupported/lib \
6762 /usr/athena/lib \
6763 /usr/local/x11r5/lib \
6764 /usr/lpp/Xamples/lib \
6765 \
6766 /usr/openwin/lib \
6767 /usr/openwin/share/lib \
6768 ; \
6769do
6770 for ac_extension in a so sl; do
6771 if test -r $ac_dir/libXpm.$ac_extension; then
6772 vt_xpm_libraries=$ac_dir
6773 break 2
6774 fi
6775 done
6776done
6777fi
6778
6779rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6780 conftest$ac_exeext conftest.$ac_ext
6781fi
6782
6783
6784 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then
6785 ac_cv_have_xpm="have_xpm=no"
6786 else
6787 ac_cv_have_xpm="have_xpm=yes \
6788 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6789 vt_xpm_include_X11=$vt_xpm_include_X11"
6790 fi
6791fi
6792 eval "$ac_cv_have_xpm"
6793fi
6794
6795if test "$have_xpm" != yes; then
6796 { echo "$as_me:$LINENO: result: $have_xpm" >&5
6797echo "${ECHO_T}$have_xpm" >&6; }
6798 no_xpm=yes
6799else
6800 if test "$xpm_includes" != NO; then
6801 if test "$xpm_includes" = "$vt_xpm_includes"; then
6802 if test -r "$xpm_includes/X11/xpm.h"; then
6803 vt_xpm_include_X11=yes
6804 fi
6805 else
6806 vt_xpm_include_X11=no
6807 if test -z "$xpm_includes"; then
6808 cat >conftest.$ac_ext <<_ACEOF
6809/* confdefs.h. */
6810_ACEOF
6811cat confdefs.h >>conftest.$ac_ext
6812cat >>conftest.$ac_ext <<_ACEOF
6813/* end confdefs.h. */
6814#include <X11/xpm.h>
6815_ACEOF
6816if { (ac_try="$ac_cpp conftest.$ac_ext"
6817case "(($ac_try" in
6818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6819 *) ac_try_echo=$ac_try;;
6820esac
6821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6823 ac_status=$?
6824 grep -v '^ *+' conftest.er1 >conftest.err
6825 rm -f conftest.er1
6826 cat conftest.err >&5
6827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 (exit $ac_status); } >/dev/null && {
6829 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6830 test ! -s conftest.err
6831 }; then
6832 vt_xpm_include_X11=yes
6833else
6834 echo "$as_me: failed program was:" >&5
6835sed 's/^/| /' conftest.$ac_ext >&5
6836
6837
6838fi
6839
6840rm -f conftest.err conftest.$ac_ext
6841 else
6842 if test -r "$xpm_includes/X11/xpm.h"; then
6843 vt_xpm_include_X11=yes
6844 fi 7357 fi
6845 fi 7358 fi
6846 fi 7359 fi
6847 vt_xpm_includes=$xpm_includes 7360 if test "x$support_afterimage" = "xyes"; then
7361 { echo "$as_me:$LINENO: result: $AFTERIMAGE_LIBS" >&5
7362echo "${ECHO_T}$AFTERIMAGE_LIBS" >&6; }
7363 else
7364 { echo "$as_me:$LINENO: result: no" >&5
7365echo "${ECHO_T}no" >&6; }
7366 fi
6848 fi 7367 fi
6849 if test "x$xpm_libraries" != xNO; then
6850 vt_xpm_libraries=$xpm_libraries
6851 fi
6852 # Update the cache value to reflect the command line values.
6853 ac_cv_have_xpm="have_xpm=yes \
6854 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6855 vt_xpm_include_X11=$vt_xpm_include_X11"
6856 eval "$ac_cv_have_xpm"
6857 { echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5
6858echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6; }
6859 if test -n "$vt_xpm_includes"; then
6860 XPM_CPPFLAGS="-DHAVE_LIBXPM"
6861 fi
6862 if test -n "$vt_xpm_includes"; then
6863 XPM_CFLAGS="-I$vt_xpm_includes"
6864 fi
6865 XPM_LIBS="-lXpm"
6866 if test -n "$vt_xpm_libraries"; then
6867 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
6868 fi
6869 if test "x$vt_xpm_include_X11" = xyes; then
6870
6871cat >>confdefs.h <<\_ACEOF
6872#define XPM_INC_X11 1
6873_ACEOF
6874
6875 fi
6876fi 7368fi
6877
6878
6879
6880
6881
6882 if test x$no_xpm = xyes; then
6883 support_xpm=needsmanualspecification
6884 fi
6885fi
6886
6887{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6888echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6889if test "${ac_cv_header_sys_wait_h+set}" = set; then
6890 echo $ECHO_N "(cached) $ECHO_C" >&6
6891else
6892 cat >conftest.$ac_ext <<_ACEOF
6893/* confdefs.h. */
6894_ACEOF
6895cat confdefs.h >>conftest.$ac_ext
6896cat >>conftest.$ac_ext <<_ACEOF
6897/* end confdefs.h. */
6898#include <sys/types.h>
6899#include <sys/wait.h>
6900#ifndef WEXITSTATUS
6901# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6902#endif
6903#ifndef WIFEXITED
6904# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6905#endif
6906
6907int
6908main ()
6909{
6910 int s;
6911 wait (&s);
6912 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6913 ;
6914 return 0;
6915}
6916_ACEOF
6917rm -f conftest.$ac_objext
6918if { (ac_try="$ac_compile"
6919case "(($ac_try" in
6920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6921 *) ac_try_echo=$ac_try;;
6922esac
6923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6924 (eval "$ac_compile") 2>conftest.er1
6925 ac_status=$?
6926 grep -v '^ *+' conftest.er1 >conftest.err
6927 rm -f conftest.er1
6928 cat conftest.err >&5
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); } && {
6931 test -z "$ac_cxx_werror_flag" ||
6932 test ! -s conftest.err
6933 } && test -s conftest.$ac_objext; then
6934 ac_cv_header_sys_wait_h=yes
6935else
6936 echo "$as_me: failed program was:" >&5
6937sed 's/^/| /' conftest.$ac_ext >&5
6938
6939 ac_cv_header_sys_wait_h=no
6940fi
6941
6942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6943fi
6944{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6945echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6946if test $ac_cv_header_sys_wait_h = yes; then
6947
6948cat >>confdefs.h <<\_ACEOF
6949#define HAVE_SYS_WAIT_H 1
6950_ACEOF
6951
6952fi
6953
6954{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6955echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6956if test "${ac_cv_header_stdc+set}" = set; then
6957 echo $ECHO_N "(cached) $ECHO_C" >&6
6958else
6959 cat >conftest.$ac_ext <<_ACEOF
6960/* confdefs.h. */
6961_ACEOF
6962cat confdefs.h >>conftest.$ac_ext
6963cat >>conftest.$ac_ext <<_ACEOF
6964/* end confdefs.h. */
6965#include <stdlib.h>
6966#include <stdarg.h>
6967#include <string.h>
6968#include <float.h>
6969
6970int
6971main ()
6972{
6973
6974 ;
6975 return 0;
6976}
6977_ACEOF
6978rm -f conftest.$ac_objext
6979if { (ac_try="$ac_compile"
6980case "(($ac_try" in
6981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6982 *) ac_try_echo=$ac_try;;
6983esac
6984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6985 (eval "$ac_compile") 2>conftest.er1
6986 ac_status=$?
6987 grep -v '^ *+' conftest.er1 >conftest.err
6988 rm -f conftest.er1
6989 cat conftest.err >&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); } && {
6992 test -z "$ac_cxx_werror_flag" ||
6993 test ! -s conftest.err
6994 } && test -s conftest.$ac_objext; then
6995 ac_cv_header_stdc=yes
6996else
6997 echo "$as_me: failed program was:" >&5
6998sed 's/^/| /' conftest.$ac_ext >&5
6999
7000 ac_cv_header_stdc=no
7001fi
7002
7003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7004
7005if test $ac_cv_header_stdc = yes; then
7006 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7007 cat >conftest.$ac_ext <<_ACEOF
7008/* confdefs.h. */
7009_ACEOF
7010cat confdefs.h >>conftest.$ac_ext
7011cat >>conftest.$ac_ext <<_ACEOF
7012/* end confdefs.h. */
7013#include <string.h>
7014
7015_ACEOF
7016if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7017 $EGREP "memchr" >/dev/null 2>&1; then
7018 :
7019else
7020 ac_cv_header_stdc=no
7021fi
7022rm -f conftest*
7023
7024fi
7025
7026if test $ac_cv_header_stdc = yes; then
7027 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7028 cat >conftest.$ac_ext <<_ACEOF
7029/* confdefs.h. */
7030_ACEOF
7031cat confdefs.h >>conftest.$ac_ext
7032cat >>conftest.$ac_ext <<_ACEOF
7033/* end confdefs.h. */
7034#include <stdlib.h>
7035
7036_ACEOF
7037if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7038 $EGREP "free" >/dev/null 2>&1; then
7039 :
7040else
7041 ac_cv_header_stdc=no
7042fi
7043rm -f conftest*
7044
7045fi
7046
7047if test $ac_cv_header_stdc = yes; then
7048 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7049 if test "$cross_compiling" = yes; then
7050 :
7051else
7052 cat >conftest.$ac_ext <<_ACEOF
7053/* confdefs.h. */
7054_ACEOF
7055cat confdefs.h >>conftest.$ac_ext
7056cat >>conftest.$ac_ext <<_ACEOF
7057/* end confdefs.h. */
7058#include <ctype.h>
7059#include <stdlib.h>
7060#if ((' ' & 0x0FF) == 0x020)
7061# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7062# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7063#else
7064# define ISLOWER(c) \
7065 (('a' <= (c) && (c) <= 'i') \
7066 || ('j' <= (c) && (c) <= 'r') \
7067 || ('s' <= (c) && (c) <= 'z'))
7068# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7069#endif
7070
7071#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7072int
7073main ()
7074{
7075 int i;
7076 for (i = 0; i < 256; i++)
7077 if (XOR (islower (i), ISLOWER (i))
7078 || toupper (i) != TOUPPER (i))
7079 return 2;
7080 return 0;
7081}
7082_ACEOF
7083rm -f conftest$ac_exeext
7084if { (ac_try="$ac_link"
7085case "(($ac_try" in
7086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7087 *) ac_try_echo=$ac_try;;
7088esac
7089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7090 (eval "$ac_link") 2>&5
7091 ac_status=$?
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7094 { (case "(($ac_try" in
7095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7096 *) ac_try_echo=$ac_try;;
7097esac
7098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7099 (eval "$ac_try") 2>&5
7100 ac_status=$?
7101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102 (exit $ac_status); }; }; then
7103 :
7104else
7105 echo "$as_me: program exited with status $ac_status" >&5
7106echo "$as_me: failed program was:" >&5
7107sed 's/^/| /' conftest.$ac_ext >&5
7108
7109( exit $ac_status )
7110ac_cv_header_stdc=no
7111fi
7112rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7113fi
7114
7115
7116fi
7117fi
7118{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7119echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7120if test $ac_cv_header_stdc = yes; then
7121
7122cat >>confdefs.h <<\_ACEOF
7123#define STDC_HEADERS 1
7124_ACEOF
7125
7126fi
7127
7128# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7139 inttypes.h stdint.h unistd.h
7140do
7141as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7142{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7143echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7144if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
7146else
7147 cat >conftest.$ac_ext <<_ACEOF
7148/* confdefs.h. */
7149_ACEOF
7150cat confdefs.h >>conftest.$ac_ext
7151cat >>conftest.$ac_ext <<_ACEOF
7152/* end confdefs.h. */
7153$ac_includes_default
7154
7155#include <$ac_header>
7156_ACEOF
7157rm -f conftest.$ac_objext
7158if { (ac_try="$ac_compile"
7159case "(($ac_try" in
7160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7161 *) ac_try_echo=$ac_try;;
7162esac
7163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7164 (eval "$ac_compile") 2>conftest.er1
7165 ac_status=$?
7166 grep -v '^ *+' conftest.er1 >conftest.err
7167 rm -f conftest.er1
7168 cat conftest.err >&5
7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); } && {
7171 test -z "$ac_cxx_werror_flag" ||
7172 test ! -s conftest.err
7173 } && test -s conftest.$ac_objext; then
7174 eval "$as_ac_Header=yes"
7175else
7176 echo "$as_me: failed program was:" >&5
7177sed 's/^/| /' conftest.$ac_ext >&5
7178
7179 eval "$as_ac_Header=no"
7180fi
7181
7182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7183fi
7184ac_res=`eval echo '${'$as_ac_Header'}'`
7185 { echo "$as_me:$LINENO: result: $ac_res" >&5
7186echo "${ECHO_T}$ac_res" >&6; }
7187if test `eval echo '${'$as_ac_Header'}'` = yes; then
7188 cat >>confdefs.h <<_ACEOF
7189#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7190_ACEOF
7191
7192fi
7193
7194done
7195
7196 7369
7197 7370
7198 7371
7199 7372
7200 7373
7367fi 7540fi
7368 7541
7369done 7542done
7370 7543
7371 7544
7372{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7373echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7374if test "${ac_cv_header_time+set}" = set; then
7375 echo $ECHO_N "(cached) $ECHO_C" >&6
7376else
7377 cat >conftest.$ac_ext <<_ACEOF
7378/* confdefs.h. */
7379_ACEOF
7380cat confdefs.h >>conftest.$ac_ext
7381cat >>conftest.$ac_ext <<_ACEOF
7382/* end confdefs.h. */
7383#include <sys/types.h>
7384#include <sys/time.h>
7385#include <time.h>
7386
7387int
7388main ()
7389{
7390if ((struct tm *) 0)
7391return 0;
7392 ;
7393 return 0;
7394}
7395_ACEOF
7396rm -f conftest.$ac_objext
7397if { (ac_try="$ac_compile"
7398case "(($ac_try" in
7399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7400 *) ac_try_echo=$ac_try;;
7401esac
7402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7403 (eval "$ac_compile") 2>conftest.er1
7404 ac_status=$?
7405 grep -v '^ *+' conftest.er1 >conftest.err
7406 rm -f conftest.er1
7407 cat conftest.err >&5
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); } && {
7410 test -z "$ac_cxx_werror_flag" ||
7411 test ! -s conftest.err
7412 } && test -s conftest.$ac_objext; then
7413 ac_cv_header_time=yes
7414else
7415 echo "$as_me: failed program was:" >&5
7416sed 's/^/| /' conftest.$ac_ext >&5
7417
7418 ac_cv_header_time=no
7419fi
7420
7421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7422fi
7423{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7424echo "${ECHO_T}$ac_cv_header_time" >&6; }
7425if test $ac_cv_header_time = yes; then
7426
7427cat >>confdefs.h <<\_ACEOF
7428#define TIME_WITH_SYS_TIME 1
7429_ACEOF
7430
7431fi
7432
7433
7434{ echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5 7545{ echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5
7435echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; } 7546echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; }
7436if test "${rxvt_cv_header_sysioctl+set}" = set; then 7547if test "${rxvt_cv_header_sysioctl+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6 7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7438else 7549else
7603cat >>confdefs.h <<\_ACEOF 7714cat >>confdefs.h <<\_ACEOF
7604#define XLIB_ILLEGAL_ACCESS 1 7715#define XLIB_ILLEGAL_ACCESS 1
7605_ACEOF 7716_ACEOF
7606 7717
7607fi 7718fi
7608
7609{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7610echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7611if test "${ac_cv_c_const+set}" = set; then
7612 echo $ECHO_N "(cached) $ECHO_C" >&6
7613else
7614 cat >conftest.$ac_ext <<_ACEOF
7615/* confdefs.h. */
7616_ACEOF
7617cat confdefs.h >>conftest.$ac_ext
7618cat >>conftest.$ac_ext <<_ACEOF
7619/* end confdefs.h. */
7620
7621int
7622main ()
7623{
7624/* FIXME: Include the comments suggested by Paul. */
7625#ifndef __cplusplus
7626 /* Ultrix mips cc rejects this. */
7627 typedef int charset[2];
7628 const charset cs;
7629 /* SunOS 4.1.1 cc rejects this. */
7630 char const *const *pcpcc;
7631 char **ppc;
7632 /* NEC SVR4.0.2 mips cc rejects this. */
7633 struct point {int x, y;};
7634 static struct point const zero = {0,0};
7635 /* AIX XL C 1.02.0.0 rejects this.
7636 It does not let you subtract one const X* pointer from another in
7637 an arm of an if-expression whose if-part is not a constant
7638 expression */
7639 const char *g = "string";
7640 pcpcc = &g + (g ? g-g : 0);
7641 /* HPUX 7.0 cc rejects these. */
7642 ++pcpcc;
7643 ppc = (char**) pcpcc;
7644 pcpcc = (char const *const *) ppc;
7645 { /* SCO 3.2v4 cc rejects this. */
7646 char *t;
7647 char const *s = 0 ? (char *) 0 : (char const *) 0;
7648
7649 *t++ = 0;
7650 if (s) return 0;
7651 }
7652 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7653 int x[] = {25, 17};
7654 const int *foo = &x[0];
7655 ++foo;
7656 }
7657 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7658 typedef const int *iptr;
7659 iptr p = 0;
7660 ++p;
7661 }
7662 { /* AIX XL C 1.02.0.0 rejects this saying
7663 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7664 struct s { int j; const int *ap[3]; };
7665 struct s *b; b->j = 5;
7666 }
7667 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7668 const int foo = 10;
7669 if (!foo) return 0;
7670 }
7671 return !cs[0] && !zero.x;
7672#endif
7673
7674 ;
7675 return 0;
7676}
7677_ACEOF
7678rm -f conftest.$ac_objext
7679if { (ac_try="$ac_compile"
7680case "(($ac_try" in
7681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7682 *) ac_try_echo=$ac_try;;
7683esac
7684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7685 (eval "$ac_compile") 2>conftest.er1
7686 ac_status=$?
7687 grep -v '^ *+' conftest.er1 >conftest.err
7688 rm -f conftest.er1
7689 cat conftest.err >&5
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); } && {
7692 test -z "$ac_cxx_werror_flag" ||
7693 test ! -s conftest.err
7694 } && test -s conftest.$ac_objext; then
7695 ac_cv_c_const=yes
7696else
7697 echo "$as_me: failed program was:" >&5
7698sed 's/^/| /' conftest.$ac_ext >&5
7699
7700 ac_cv_c_const=no
7701fi
7702
7703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7704fi
7705{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7706echo "${ECHO_T}$ac_cv_c_const" >&6; }
7707if test $ac_cv_c_const = no; then
7708
7709cat >>confdefs.h <<\_ACEOF
7710#define const
7711_ACEOF
7712
7713fi
7714
7715{ echo "$as_me:$LINENO: checking for inline" >&5
7716echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
7717if test "${ac_cv_c_inline+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7719else
7720 ac_cv_c_inline=no
7721for ac_kw in inline __inline__ __inline; do
7722 cat >conftest.$ac_ext <<_ACEOF
7723/* confdefs.h. */
7724_ACEOF
7725cat confdefs.h >>conftest.$ac_ext
7726cat >>conftest.$ac_ext <<_ACEOF
7727/* end confdefs.h. */
7728#ifndef __cplusplus
7729typedef int foo_t;
7730static $ac_kw foo_t static_foo () {return 0; }
7731$ac_kw foo_t foo () {return 0; }
7732#endif
7733
7734_ACEOF
7735rm -f conftest.$ac_objext
7736if { (ac_try="$ac_compile"
7737case "(($ac_try" in
7738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7739 *) ac_try_echo=$ac_try;;
7740esac
7741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7742 (eval "$ac_compile") 2>conftest.er1
7743 ac_status=$?
7744 grep -v '^ *+' conftest.er1 >conftest.err
7745 rm -f conftest.er1
7746 cat conftest.err >&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); } && {
7749 test -z "$ac_cxx_werror_flag" ||
7750 test ! -s conftest.err
7751 } && test -s conftest.$ac_objext; then
7752 ac_cv_c_inline=$ac_kw
7753else
7754 echo "$as_me: failed program was:" >&5
7755sed 's/^/| /' conftest.$ac_ext >&5
7756
7757
7758fi
7759
7760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7761 test "$ac_cv_c_inline" != no && break
7762done
7763
7764fi
7765{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7766echo "${ECHO_T}$ac_cv_c_inline" >&6; }
7767
7768
7769case $ac_cv_c_inline in
7770 inline | yes) ;;
7771 *)
7772 case $ac_cv_c_inline in
7773 no) ac_val=;;
7774 *) ac_val=$ac_cv_c_inline;;
7775 esac
7776 cat >>confdefs.h <<_ACEOF
7777#ifndef __cplusplus
7778#define inline $ac_val
7779#endif
7780_ACEOF
7781 ;;
7782esac
7783
7784
7785 7719
7786{ echo "$as_me:$LINENO: checking for mode_t" >&5 7720{ echo "$as_me:$LINENO: checking for mode_t" >&5
7787echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } 7721echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
7788if test "${ac_cv_type_mode_t+set}" = set; then 7722if test "${ac_cv_type_mode_t+set}" = set; then
7789 echo $ECHO_N "(cached) $ECHO_C" >&6 7723 echo $ECHO_N "(cached) $ECHO_C" >&6
9904 fi 9838 fi
9905fi 9839fi
9906 9840
9907 9841
9908 9842
9909{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9910echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
9911if test "${ac_cv_type_signal+set}" = set; then
9912 echo $ECHO_N "(cached) $ECHO_C" >&6
9913else
9914 cat >conftest.$ac_ext <<_ACEOF
9915/* confdefs.h. */
9916_ACEOF
9917cat confdefs.h >>conftest.$ac_ext
9918cat >>conftest.$ac_ext <<_ACEOF
9919/* end confdefs.h. */
9920#include <sys/types.h>
9921#include <signal.h>
9922 9843
9923int
9924main ()
9925{
9926return *(signal (0, 0)) (0) == 1;
9927 ;
9928 return 0;
9929}
9930_ACEOF
9931rm -f conftest.$ac_objext
9932if { (ac_try="$ac_compile"
9933case "(($ac_try" in
9934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9935 *) ac_try_echo=$ac_try;;
9936esac
9937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9938 (eval "$ac_compile") 2>conftest.er1
9939 ac_status=$?
9940 grep -v '^ *+' conftest.er1 >conftest.err
9941 rm -f conftest.er1
9942 cat conftest.err >&5
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); } && {
9945 test -z "$ac_cxx_werror_flag" ||
9946 test ! -s conftest.err
9947 } && test -s conftest.$ac_objext; then
9948 ac_cv_type_signal=int
9949else
9950 echo "$as_me: failed program was:" >&5
9951sed 's/^/| /' conftest.$ac_ext >&5
9952
9953 ac_cv_type_signal=void
9954fi
9955
9956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9957fi
9958{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9959echo "${ECHO_T}$ac_cv_type_signal" >&6; }
9960
9961cat >>confdefs.h <<_ACEOF
9962#define RETSIGTYPE $ac_cv_type_signal
9963_ACEOF
9964
9965
9966
9967
9968
9969
9970for ac_func in \ 9844for ac_func in unsetenv
9971 unsetenv \
9972 setutent \
9973 on_exit \
9974
9975do 9845do
9976as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9846as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9977{ echo "$as_me:$LINENO: checking for $ac_func" >&5 9847{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9978echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 9848echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9979if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 9849if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10118 9988
10119 9989
10120 9990
10121 9991
10122for ac_func in \ 9992for ac_func in \
10123 ttyslot \
10124 updwtmp \ 9993 updwtmp \
10125 updwtmpx \ 9994 updwtmpx \
9995 updlastlogx \
10126 9996
10127do 9997do
10128as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9998as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10129{ echo "$as_me:$LINENO: checking for $ac_func" >&5 9999{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10130echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10000echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10216fi 10086fi
10217done 10087done
10218 10088
10219 10089
10220 10090
10221
10222
10223for ac_header in \ 10091for ac_header in lastlog.h
10224 utmp.h \
10225 utmpx.h \
10226 lastlog.h \
10227
10228do 10092do
10229as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10093as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10230if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10094if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10231 { echo "$as_me:$LINENO: checking for $ac_header" >&5 10095 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10232echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10096echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10363 10227
10364done 10228done
10365 10229
10366 10230
10367 10231
10368if test "${ac_cv_header_utmp_h+set}" = set; then 10232
10233for ac_header in utmp.h
10234do
10235as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10236if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10369 { echo "$as_me:$LINENO: checking for utmp.h" >&5 10237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10370echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } 10238echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10371if test "${ac_cv_header_utmp_h+set}" = set; then 10239if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10372 echo $ECHO_N "(cached) $ECHO_C" >&6 10240 echo $ECHO_N "(cached) $ECHO_C" >&6
10373fi 10241fi
10242ac_res=`eval echo '${'$as_ac_Header'}'`
10374{ echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 10243 { echo "$as_me:$LINENO: result: $ac_res" >&5
10375echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } 10244echo "${ECHO_T}$ac_res" >&6; }
10376else 10245else
10377 # Is the header compilable? 10246 # Is the header compilable?
10378{ echo "$as_me:$LINENO: checking utmp.h usability" >&5 10247{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10379echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6; } 10248echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10380cat >conftest.$ac_ext <<_ACEOF 10249cat >conftest.$ac_ext <<_ACEOF
10381/* confdefs.h. */ 10250/* confdefs.h. */
10382_ACEOF 10251_ACEOF
10383cat confdefs.h >>conftest.$ac_ext 10252cat confdefs.h >>conftest.$ac_ext
10384cat >>conftest.$ac_ext <<_ACEOF 10253cat >>conftest.$ac_ext <<_ACEOF
10385/* end confdefs.h. */ 10254/* end confdefs.h. */
10386$ac_includes_default 10255$ac_includes_default
10387#include <utmp.h> 10256#include <$ac_header>
10388_ACEOF 10257_ACEOF
10389rm -f conftest.$ac_objext 10258rm -f conftest.$ac_objext
10390if { (ac_try="$ac_compile" 10259if { (ac_try="$ac_compile"
10391case "(($ac_try" in 10260case "(($ac_try" in
10392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10415{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10284{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10416echo "${ECHO_T}$ac_header_compiler" >&6; } 10285echo "${ECHO_T}$ac_header_compiler" >&6; }
10417 10286
10418# Is the header present? 10287# Is the header present?
10419{ echo "$as_me:$LINENO: checking utmp.h presence" >&5 10288{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10420echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6; } 10289echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10421cat >conftest.$ac_ext <<_ACEOF 10290cat >conftest.$ac_ext <<_ACEOF
10422/* confdefs.h. */ 10291/* confdefs.h. */
10423_ACEOF 10292_ACEOF
10424cat confdefs.h >>conftest.$ac_ext 10293cat confdefs.h >>conftest.$ac_ext
10425cat >>conftest.$ac_ext <<_ACEOF 10294cat >>conftest.$ac_ext <<_ACEOF
10426/* end confdefs.h. */ 10295/* end confdefs.h. */
10427#include <utmp.h> 10296#include <$ac_header>
10428_ACEOF 10297_ACEOF
10429if { (ac_try="$ac_cpp conftest.$ac_ext" 10298if { (ac_try="$ac_cpp conftest.$ac_ext"
10430case "(($ac_try" in 10299case "(($ac_try" in
10431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10432 *) ac_try_echo=$ac_try;; 10301 *) ac_try_echo=$ac_try;;
10455echo "${ECHO_T}$ac_header_preproc" >&6; } 10324echo "${ECHO_T}$ac_header_preproc" >&6; }
10456 10325
10457# So? What about this header? 10326# So? What about this header?
10458case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 10327case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10459 yes:no: ) 10328 yes:no: )
10460 { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 10329 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10461echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 10330echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10462 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5 10331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10463echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;} 10332echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10464 ac_header_preproc=yes 10333 ac_header_preproc=yes
10465 ;; 10334 ;;
10466 no:yes:* ) 10335 no:yes:* )
10467 { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5 10336 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10468echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;} 10337echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10469 { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5 10338 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10470echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;} 10339echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10471 { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5 10340 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10472echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;} 10341echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10473 { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5 10342 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10474echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;} 10343echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10475 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5 10344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10476echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;} 10345echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10477 { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5 10346 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10478echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;} 10347echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10479 10348
10480 ;; 10349 ;;
10481esac 10350esac
10482{ echo "$as_me:$LINENO: checking for utmp.h" >&5 10351{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10483echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } 10352echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10484if test "${ac_cv_header_utmp_h+set}" = set; then 10353if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10485 echo $ECHO_N "(cached) $ECHO_C" >&6 10354 echo $ECHO_N "(cached) $ECHO_C" >&6
10486else 10355else
10487 ac_cv_header_utmp_h=$ac_header_preproc 10356 eval "$as_ac_Header=\$ac_header_preproc"
10488fi 10357fi
10358ac_res=`eval echo '${'$as_ac_Header'}'`
10489{ echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 10359 { echo "$as_me:$LINENO: result: $ac_res" >&5
10490echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } 10360echo "${ECHO_T}$ac_res" >&6; }
10491 10361
10492fi 10362fi
10493if test $ac_cv_header_utmp_h = yes; then 10363if test `eval echo '${'$as_ac_Header'}'` = yes; then
10364 cat >>confdefs.h <<_ACEOF
10365#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10366_ACEOF
10494 { echo "$as_me:$LINENO: checking for struct utmp" >&5 10367 { echo "$as_me:$LINENO: checking for struct utmp" >&5
10495echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; } 10368echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; }
10496if test "${struct_utmp+set}" = set; then 10369if test "${struct_utmp+set}" = set; then
10497 echo $ECHO_N "(cached) $ECHO_C" >&6 10370 echo $ECHO_N "(cached) $ECHO_C" >&6
10498else 10371else
10499 cat >conftest.$ac_ext <<_ACEOF 10372 cat >conftest.$ac_ext <<_ACEOF
10666 10539
10667fi 10540fi
10668 10541
10669fi 10542fi
10670 10543
10544done
10671 10545
10672 10546
10673if test "${ac_cv_header_utmpx_h+set}" = set; then 10547
10548for ac_header in utmpx.h
10549do
10550as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10551if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10674 { echo "$as_me:$LINENO: checking for utmpx.h" >&5 10552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10675echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } 10553echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10676if test "${ac_cv_header_utmpx_h+set}" = set; then 10554if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10677 echo $ECHO_N "(cached) $ECHO_C" >&6 10555 echo $ECHO_N "(cached) $ECHO_C" >&6
10678fi 10556fi
10557ac_res=`eval echo '${'$as_ac_Header'}'`
10679{ echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 10558 { echo "$as_me:$LINENO: result: $ac_res" >&5
10680echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } 10559echo "${ECHO_T}$ac_res" >&6; }
10681else 10560else
10682 # Is the header compilable? 10561 # Is the header compilable?
10683{ echo "$as_me:$LINENO: checking utmpx.h usability" >&5 10562{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10684echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6; } 10563echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10685cat >conftest.$ac_ext <<_ACEOF 10564cat >conftest.$ac_ext <<_ACEOF
10686/* confdefs.h. */ 10565/* confdefs.h. */
10687_ACEOF 10566_ACEOF
10688cat confdefs.h >>conftest.$ac_ext 10567cat confdefs.h >>conftest.$ac_ext
10689cat >>conftest.$ac_ext <<_ACEOF 10568cat >>conftest.$ac_ext <<_ACEOF
10690/* end confdefs.h. */ 10569/* end confdefs.h. */
10691$ac_includes_default 10570$ac_includes_default
10692#include <utmpx.h> 10571#include <$ac_header>
10693_ACEOF 10572_ACEOF
10694rm -f conftest.$ac_objext 10573rm -f conftest.$ac_objext
10695if { (ac_try="$ac_compile" 10574if { (ac_try="$ac_compile"
10696case "(($ac_try" in 10575case "(($ac_try" in
10697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10720{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10599{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10721echo "${ECHO_T}$ac_header_compiler" >&6; } 10600echo "${ECHO_T}$ac_header_compiler" >&6; }
10722 10601
10723# Is the header present? 10602# Is the header present?
10724{ echo "$as_me:$LINENO: checking utmpx.h presence" >&5 10603{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10725echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6; } 10604echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10726cat >conftest.$ac_ext <<_ACEOF 10605cat >conftest.$ac_ext <<_ACEOF
10727/* confdefs.h. */ 10606/* confdefs.h. */
10728_ACEOF 10607_ACEOF
10729cat confdefs.h >>conftest.$ac_ext 10608cat confdefs.h >>conftest.$ac_ext
10730cat >>conftest.$ac_ext <<_ACEOF 10609cat >>conftest.$ac_ext <<_ACEOF
10731/* end confdefs.h. */ 10610/* end confdefs.h. */
10732#include <utmpx.h> 10611#include <$ac_header>
10733_ACEOF 10612_ACEOF
10734if { (ac_try="$ac_cpp conftest.$ac_ext" 10613if { (ac_try="$ac_cpp conftest.$ac_ext"
10735case "(($ac_try" in 10614case "(($ac_try" in
10736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10737 *) ac_try_echo=$ac_try;; 10616 *) ac_try_echo=$ac_try;;
10760echo "${ECHO_T}$ac_header_preproc" >&6; } 10639echo "${ECHO_T}$ac_header_preproc" >&6; }
10761 10640
10762# So? What about this header? 10641# So? What about this header?
10763case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 10642case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10764 yes:no: ) 10643 yes:no: )
10765 { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5 10644 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10766echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 10645echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10767 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5 10646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10768echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;} 10647echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10769 ac_header_preproc=yes 10648 ac_header_preproc=yes
10770 ;; 10649 ;;
10771 no:yes:* ) 10650 no:yes:* )
10772 { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5 10651 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10773echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;} 10652echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10774 { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5 10653 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10775echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;} 10654echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10776 { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5 10655 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10777echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;} 10656echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10778 { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5 10657 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10779echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;} 10658echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10780 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5 10659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10781echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;} 10660echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10782 { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5 10661 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10783echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;} 10662echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10784 10663
10785 ;; 10664 ;;
10786esac 10665esac
10787{ echo "$as_me:$LINENO: checking for utmpx.h" >&5 10666{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10788echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } 10667echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10789if test "${ac_cv_header_utmpx_h+set}" = set; then 10668if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10790 echo $ECHO_N "(cached) $ECHO_C" >&6 10669 echo $ECHO_N "(cached) $ECHO_C" >&6
10791else 10670else
10792 ac_cv_header_utmpx_h=$ac_header_preproc 10671 eval "$as_ac_Header=\$ac_header_preproc"
10793fi 10672fi
10673ac_res=`eval echo '${'$as_ac_Header'}'`
10794{ echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 10674 { echo "$as_me:$LINENO: result: $ac_res" >&5
10795echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } 10675echo "${ECHO_T}$ac_res" >&6; }
10796 10676
10797fi 10677fi
10798if test $ac_cv_header_utmpx_h = yes; then 10678if test `eval echo '${'$as_ac_Header'}'` = yes; then
10679 cat >>confdefs.h <<_ACEOF
10680#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10681_ACEOF
10799 { echo "$as_me:$LINENO: checking for struct utmpx" >&5 10682 { echo "$as_me:$LINENO: checking for struct utmpx" >&5
10800echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; } 10683echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; }
10801if test "${struct_utmpx+set}" = set; then 10684if test "${struct_utmpx+set}" = set; then
10802 echo $ECHO_N "(cached) $ECHO_C" >&6 10685 echo $ECHO_N "(cached) $ECHO_C" >&6
10803else 10686else
10804 cat >conftest.$ac_ext <<_ACEOF 10687 cat >conftest.$ac_ext <<_ACEOF
10971 10854
10972fi 10855fi
10973 10856
10974fi 10857fi
10975 10858
10859done
10976 10860
10977{ echo "$as_me:$LINENO: checking for struct lastlog" >&5 10861{ echo "$as_me:$LINENO: checking for struct lastlog" >&5
10978echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } 10862echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; }
10979if test "${struct_lastlog+set}" = set; then 10863if test "${struct_lastlog+set}" = set; then
10980 echo $ECHO_N "(cached) $ECHO_C" >&6 10864 echo $ECHO_N "(cached) $ECHO_C" >&6
11551 11435
11552cat >>confdefs.h <<_ACEOF 11436cat >>confdefs.h <<_ACEOF
11553#define LASTLOG_FILE "$path_lastlog" 11437#define LASTLOG_FILE "$path_lastlog"
11554_ACEOF 11438_ACEOF
11555 11439
11556 if test -d "$path_lastlog"; then
11557
11558cat >>confdefs.h <<\_ACEOF
11559#define LASTLOG_IS_DIR 1
11560_ACEOF
11561
11562 fi
11563fi 11440fi
11564 11441
11565{ echo "$as_me:$LINENO: checking where lastlogx is located" >&5 11442{ echo "$as_me:$LINENO: checking where lastlogx is located" >&5
11566echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } 11443echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; }
11567if test "${path_lastlogx+set}" = set; then 11444if test "${path_lastlogx+set}" = set; then
11649 11526
11650fi 11527fi
11651 11528
11652 11529
11653 11530
11654{ echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
11655echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6; }
11656if test "${rxvt_cv_path_ttytab+set}" = set; then
11657 echo $ECHO_N "(cached) $ECHO_C" >&6
11658else
11659 for ttys_file in /etc/ttys /etc/ttytab;
11660do
11661 if test -f "$ttys_file" ; then
11662 rxvt_cv_path_ttytab=$ttys_file
11663 break
11664 fi
11665done
11666 11531
11667fi
11668{ echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
11669echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6; }
11670if test x$rxvt_cv_path_ttytab != x; then
11671
11672cat >>confdefs.h <<_ACEOF
11673#define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
11674_ACEOF
11675
11676fi
11677
11678
11679ac_save_LIBS=$LIBS 11532save_LIBS=$LIBS
11680ac_save_CFLAGS=$CFLAGS 11533save_CFLAGS=$CFLAGS
11681CFLAGS="$CFLAGS $X_CFLAGS" 11534CFLAGS="$CFLAGS $X_CFLAGS"
11682LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 11535LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
11536if test x$support_xim = xyes; then
11683{ echo "$as_me:$LINENO: checking for working Xlocale" >&5 11537 { echo "$as_me:$LINENO: checking for working Xlocale" >&5
11684echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } 11538echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; }
11685if test "${rxvt_cv_func_xlocale+set}" = set; then 11539if test "${rxvt_cv_func_xlocale+set}" = set; then
11686 echo $ECHO_N "(cached) $ECHO_C" >&6 11540 echo $ECHO_N "(cached) $ECHO_C" >&6
11687else 11541else
11688 if test "$cross_compiling" = yes; then 11542 if test "$cross_compiling" = yes; then
11689 : 11543 :
11690else 11544else
11691 cat >conftest.$ac_ext <<_ACEOF 11545 cat >conftest.$ac_ext <<_ACEOF
11692/* confdefs.h. */ 11546/* confdefs.h. */
11693_ACEOF 11547_ACEOF
11694cat confdefs.h >>conftest.$ac_ext 11548cat confdefs.h >>conftest.$ac_ext
11695cat >>conftest.$ac_ext <<_ACEOF 11549cat >>conftest.$ac_ext <<_ACEOF
11696/* end confdefs.h. */ 11550/* end confdefs.h. */
11697#include <X11/Xlib.h> 11551#include <X11/Xlib.h>
11698#include <stdlib.h> 11552 #include <stdlib.h>
11699main() { 11553 main() {
11700char *p; 11554 char *p;
11701if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) 11555 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
11702exit (XSupportsLocale() ? 0 : 1); 11556 exit (XSupportsLocale() ? 0 : 1);
11703else 11557 else
11704exit (1);} 11558 exit (1);}
11705_ACEOF 11559_ACEOF
11706rm -f conftest$ac_exeext 11560rm -f conftest$ac_exeext
11707if { (ac_try="$ac_link" 11561if { (ac_try="$ac_link"
11708case "(($ac_try" in 11562case "(($ac_try" in
11709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11722 (eval "$ac_try") 2>&5 11576 (eval "$ac_try") 2>&5
11723 ac_status=$? 11577 ac_status=$?
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); }; }; then 11579 (exit $ac_status); }; }; then
11726 rxvt_cv_func_xlocale=yes 11580 rxvt_cv_func_xlocale=yes
11727else 11581else
11728 echo "$as_me: program exited with status $ac_status" >&5 11582 echo "$as_me: program exited with status $ac_status" >&5
11729echo "$as_me: failed program was:" >&5 11583echo "$as_me: failed program was:" >&5
11730sed 's/^/| /' conftest.$ac_ext >&5 11584sed 's/^/| /' conftest.$ac_ext >&5
11731 11585
11737 11591
11738 11592
11739fi 11593fi
11740{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 11594{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
11741echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; } 11595echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; }
11742if test x$support_xim = xyes; then
11743 if test x$rxvt_cv_func_xlocale = xyes; then 11596 if test x$rxvt_cv_func_xlocale = xyes; then
11744 11597
11745cat >>confdefs.h <<\_ACEOF 11598cat >>confdefs.h <<\_ACEOF
11746#define USE_XIM 1 11599#define USE_XIM 1
11747_ACEOF 11600_ACEOF
11748 11601
11602 { echo "$as_me:$LINENO: checking for broken XIM callback" >&5
11603echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; }
11604if test "${rxvt_broken_ximcb+set}" = set; then
11605 echo $ECHO_N "(cached) $ECHO_C" >&6
11606else
11607 cat >conftest.$ac_ext <<_ACEOF
11608
11609 #include <X11/Xlib.h>
11610
11611 void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
11612
11613 void f() {
11614 XIMCallback cb;
11615 cb.callback = im_destroy_cb;
11616 }
11617
11618_ACEOF
11619rm -f conftest.$ac_objext
11620if { (ac_try="$ac_compile"
11621case "(($ac_try" in
11622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11623 *) ac_try_echo=$ac_try;;
11624esac
11625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11626 (eval "$ac_compile") 2>conftest.er1
11627 ac_status=$?
11628 grep -v '^ *+' conftest.er1 >conftest.err
11629 rm -f conftest.er1
11630 cat conftest.err >&5
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); } && {
11633 test -z "$ac_cxx_werror_flag" ||
11634 test ! -s conftest.err
11635 } && test -s conftest.$ac_objext; then
11636 rxvt_broken_ximcb=yes
11637else
11638 echo "$as_me: failed program was:" >&5
11639sed 's/^/| /' conftest.$ac_ext >&5
11640
11641 rxvt_broken_ximcb=no
11642fi
11643
11644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11645fi
11646{ echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
11647echo "${ECHO_T}$rxvt_broken_ximcb" >&6; }
11648
11649 if test x$rxvt_broken_ximcb = xyes; then
11650
11651cat >>confdefs.h <<\_ACEOF
11652#define XIMCB_PROTO_BROKEN 1
11653_ACEOF
11654
11655 fi
11749 fi 11656 fi
11750fi 11657fi
11751 11658
11752{ echo "$as_me:$LINENO: checking for working X setlocale" >&5 11659{ echo "$as_me:$LINENO: checking for working X setlocale" >&5
11753echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; } 11660echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; }
11806cat >>confdefs.h <<\_ACEOF 11713cat >>confdefs.h <<\_ACEOF
11807#define HAVE_XSETLOCALE 1 11714#define HAVE_XSETLOCALE 1
11808_ACEOF 11715_ACEOF
11809 11716
11810fi 11717fi
11811LIBS=$ac_save_LIBS 11718LIBS=$save_LIBS
11812CFLAGS=$ac_save_CFLAGS 11719CFLAGS=$save_CFLAGS
11813 11720
11814{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5 11721{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5
11815echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } 11722echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; }
11816if test "${rxvt_cv_func_setlocale+set}" = set; then 11723if test "${rxvt_cv_func_setlocale+set}" = set; then
11817 echo $ECHO_N "(cached) $ECHO_C" >&6 11724 echo $ECHO_N "(cached) $ECHO_C" >&6
12020 { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5 11927 { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5
12021echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} 11928echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;}
12022 { (exit 1); exit 1; }; } 11929 { (exit 1); exit 1; }; }
12023fi 11930fi
12024 11931
12025
12026{ echo "$as_me:$LINENO: checking for broken XIM callback" >&5
12027echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; }
12028if test "${rxvt_broken_ximcb+set}" = set; then
12029 echo $ECHO_N "(cached) $ECHO_C" >&6
12030else
12031 cat >conftest.$ac_ext <<_ACEOF
12032
12033#include <X11/Xlib.h>
12034
12035void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
12036
12037void f() {
12038 XIMCallback cb;
12039 cb.callback = im_destroy_cb;
12040}
12041
12042_ACEOF
12043rm -f conftest.$ac_objext
12044if { (ac_try="$ac_compile"
12045case "(($ac_try" in
12046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12047 *) ac_try_echo=$ac_try;;
12048esac
12049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12050 (eval "$ac_compile") 2>conftest.er1
12051 ac_status=$?
12052 grep -v '^ *+' conftest.er1 >conftest.err
12053 rm -f conftest.er1
12054 cat conftest.err >&5
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); } && {
12057 test -z "$ac_cxx_werror_flag" ||
12058 test ! -s conftest.err
12059 } && test -s conftest.$ac_objext; then
12060 rxvt_broken_ximcb=yes
12061else
12062 echo "$as_me: failed program was:" >&5
12063sed 's/^/| /' conftest.$ac_ext >&5
12064
12065 rxvt_broken_ximcb=no
12066fi
12067
12068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12069fi
12070{ echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
12071echo "${ECHO_T}$rxvt_broken_ximcb" >&6; }
12072
12073if test x$rxvt_broken_ximcb = xyes; then
12074
12075cat >>confdefs.h <<\_ACEOF
12076#define XIMCB_PROTO_BROKEN 1
12077_ACEOF
12078
12079fi
12080 11932
12081 11933
12082 11934
12083 11935
12084 11936
12765echo "${ECHO_T}no" >&6; } 12617echo "${ECHO_T}no" >&6; }
12766fi 12618fi
12767 12619
12768 12620
12769 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then 12621 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
12770 LIBS="$LIBS `$PKG_CONFIG xft --libs`" 12622 X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS"
12771 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" 12623 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
12772 else 12624 else
12773 # Extract the first word of "xft-config", so it can be a program name with args. 12625 # Extract the first word of "xft-config", so it can be a program name with args.
12774set dummy xft-config; ac_word=$2 12626set dummy xft-config; ac_word=$2
12775{ echo "$as_me:$LINENO: checking for $ac_word" >&5 12627{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12810echo "${ECHO_T}no" >&6; } 12662echo "${ECHO_T}no" >&6; }
12811fi 12663fi
12812 12664
12813 12665
12814 if test $XFT_CONFIG != no; then 12666 if test $XFT_CONFIG != no; then
12815 LIBS="$LIBS `$XFT_CONFIG --libs`" 12667 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
12816 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" 12668 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
12817 fi 12669 fi
12818 fi 12670 fi
12819 12671
12672 save_LIBS="$LIBS"
12673 LIBS="$LIBS $X_LIBS"
12820 12674
12821for ac_header in X11/Xft/Xft.h 12675for ac_header in X11/Xft/Xft.h
12822do 12676do
12823as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12677as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12824if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12678if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12957 support_xft=no 12811 support_xft=no
12958fi 12812fi
12959 12813
12960done 12814done
12961 12815
12962
12963{ echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 12816 { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
12964echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } 12817echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; }
12965if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then 12818if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then
12966 echo $ECHO_N "(cached) $ECHO_C" >&6 12819 echo $ECHO_N "(cached) $ECHO_C" >&6
12967else 12820else
12968 ac_check_lib_save_LIBS=$LIBS 12821 ac_check_lib_save_LIBS=$LIBS
13020LIBS=$ac_check_lib_save_LIBS 12873LIBS=$ac_check_lib_save_LIBS
13021fi 12874fi
13022{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 12875{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
13023echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } 12876echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; }
13024if test $ac_cv_lib_Xft_XftDrawString32 = yes; then 12877if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
13025 cat >>confdefs.h <<_ACEOF 12878 :
13026#define HAVE_LIBXFT 1
13027_ACEOF
13028
13029 LIBS="-lXft $LIBS"
13030
13031else 12879else
13032 support_xft=no 12880 support_xft=no
13033fi 12881fi
13034 12882
12883 LIBS="$save_LIBS"
13035 12884
13036 if test x$support_xft = xyes; then 12885 if test x$support_xft = xyes; then
13037 12886
13038cat >>confdefs.h <<\_ACEOF 12887cat >>confdefs.h <<\_ACEOF
13039#define XFT 1 12888#define XFT 1
13067cat >>confdefs.h <<\_ACEOF 12916cat >>confdefs.h <<\_ACEOF
13068#define OFF_FOCUS_FADING 1 12917#define OFF_FOCUS_FADING 1
13069_ACEOF 12918_ACEOF
13070 12919
13071fi 12920fi
13072if test x$support_tinting = xyes; then
13073
13074cat >>confdefs.h <<\_ACEOF
13075#define TINTING 1
13076_ACEOF
13077
13078fi
13079if test x$support_inheritpixmap = xyes; then 12921if test x$support_inheritpixmap = xyes; then
13080 12922
13081cat >>confdefs.h <<\_ACEOF 12923cat >>confdefs.h <<\_ACEOF
13082#define ENABLE_TRANSPARENCY 1 12924#define ENABLE_TRANSPARENCY 1
13083_ACEOF 12925_ACEOF
13095cat >>confdefs.h <<\_ACEOF 12937cat >>confdefs.h <<\_ACEOF
13096#define SELECTION_SCROLLING 1 12938#define SELECTION_SCROLLING 1
13097_ACEOF 12939_ACEOF
13098 12940
13099fi 12941fi
12942if test x$support_frills = xyes; then
12943
12944cat >>confdefs.h <<\_ACEOF
12945#define ENABLE_FRILLS 1
12946_ACEOF
12947
12948fi
13100if test x$support_mousewheel = xyes; then 12949if test x$support_mousewheel = xyes; then
13101 12950
13102cat >>confdefs.h <<\_ACEOF 12951cat >>confdefs.h <<\_ACEOF
13103#define MOUSE_WHEEL 1 12952#define MOUSE_WHEEL 1
13104_ACEOF 12953_ACEOF
13109cat >>confdefs.h <<\_ACEOF 12958cat >>confdefs.h <<\_ACEOF
13110#define MOUSE_SLIP_WHEELING 1 12959#define MOUSE_SLIP_WHEELING 1
13111_ACEOF 12960_ACEOF
13112 12961
13113fi 12962fi
13114if test x$support_xpm = xyes -o x$support_afterimage = xyes ; then
13115
13116cat >>confdefs.h <<\_ACEOF
13117#define XPM_BACKGROUND 1
13118_ACEOF
13119
13120fi
13121
13122if test x$support_afterimage = xyes; then 12963if test x$support_afterimage = xyes; then
13123 12964
13124cat >>confdefs.h <<\_ACEOF 12965cat >>confdefs.h <<\_ACEOF
13125#define HAVE_AFTERIMAGE 1 12966#define HAVE_AFTERIMAGE 1
13126_ACEOF 12967_ACEOF
13127 12968
13128fi
13129
13130if test x$support_afterstep = xyes; then
13131 12969
13132cat >>confdefs.h <<\_ACEOF 12970cat >>confdefs.h <<\_ACEOF
13133#define AFTERSTEP_INTEGRATION 1 12971#define BG_IMAGE_FROM_FILE 1
13134_ACEOF 12972_ACEOF
13135 12973
13136fi 12974fi
12975
13137 12976
13138if test x$support_scroll_rxvt = xyes; then 12977if test x$support_scroll_rxvt = xyes; then
13139 12978
13140cat >>confdefs.h <<\_ACEOF 12979cat >>confdefs.h <<\_ACEOF
13141#define RXVT_SCROLLBAR 1 12980#define RXVT_SCROLLBAR 1
13409 13248
13410 13249
13411 13250
13412 13251
13413 13252
13414
13415if test x$support_perl = xyes; then
13416 support_frills=yes
13417fi
13418
13419if test x$support_frills = xyes; then
13420
13421cat >>confdefs.h <<\_ACEOF
13422#define ENABLE_FRILLS 1
13423_ACEOF
13424
13425fi
13426 13253
13427 13254
13428 13255
13429 13256
13430 13257
14185host_cpu!$host_cpu$ac_delim 14012host_cpu!$host_cpu$ac_delim
14186host_vendor!$host_vendor$ac_delim 14013host_vendor!$host_vendor$ac_delim
14187host_os!$host_os$ac_delim 14014host_os!$host_os$ac_delim
14188VERSION!$VERSION$ac_delim 14015VERSION!$VERSION$ac_delim
14189DATE!$DATE$ac_delim 14016DATE!$DATE$ac_delim
14190LSMDATE!$LSMDATE$ac_delim
14191LIBVERSION!$LIBVERSION$ac_delim
14192CC!$CC$ac_delim 14017CC!$CC$ac_delim
14193CFLAGS!$CFLAGS$ac_delim 14018CFLAGS!$CFLAGS$ac_delim
14194LDFLAGS!$LDFLAGS$ac_delim 14019LDFLAGS!$LDFLAGS$ac_delim
14195CPPFLAGS!$CPPFLAGS$ac_delim 14020CPPFLAGS!$CPPFLAGS$ac_delim
14196ac_ct_CC!$ac_ct_CC$ac_delim 14021ac_ct_CC!$ac_ct_CC$ac_delim
14204INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 14029INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14205INSTALL_DATA!$INSTALL_DATA$ac_delim 14030INSTALL_DATA!$INSTALL_DATA$ac_delim
14206GREP!$GREP$ac_delim 14031GREP!$GREP$ac_delim
14207EGREP!$EGREP$ac_delim 14032EGREP!$EGREP$ac_delim
14208LINKER!$LINKER$ac_delim 14033LINKER!$LINKER$ac_delim
14209INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim
14210RXVTNAME!$RXVTNAME$ac_delim 14034RXVTNAME!$RXVTNAME$ac_delim
14035CXXCPP!$CXXCPP$ac_delim
14211TIC!$TIC$ac_delim 14036TIC!$TIC$ac_delim
14212XMKMF!$XMKMF$ac_delim 14037XMKMF!$XMKMF$ac_delim
14213CXXCPP!$CXXCPP$ac_delim
14214X_CFLAGS!$X_CFLAGS$ac_delim 14038X_CFLAGS!$X_CFLAGS$ac_delim
14215X_PRE_LIBS!$X_PRE_LIBS$ac_delim 14039X_PRE_LIBS!$X_PRE_LIBS$ac_delim
14216X_LIBS!$X_LIBS$ac_delim 14040X_LIBS!$X_LIBS$ac_delim
14217X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim 14041X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
14218afterimage_config!$afterimage_config$ac_delim 14042afterimage_config!$afterimage_config$ac_delim
14219XPM_CPPFLAGS!$XPM_CPPFLAGS$ac_delim
14220XPM_CFLAGS!$XPM_CFLAGS$ac_delim
14221XPM_LIBS!$XPM_LIBS$ac_delim
14222rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim 14043rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim
14223rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim 14044rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim
14224rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim 14045rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim
14225rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim 14046rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim
14226rxvt_intp_define!$rxvt_intp_define$ac_delim 14047rxvt_intp_define!$rxvt_intp_define$ac_delim
14235PERL_O!$PERL_O$ac_delim 14056PERL_O!$PERL_O$ac_delim
14236AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim 14057AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim
14237AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim 14058AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim
14238include_stdint_h!$include_stdint_h$ac_delim 14059include_stdint_h!$include_stdint_h$ac_delim
14239include_stdarg_h!$include_stdarg_h$ac_delim 14060include_stdarg_h!$include_stdarg_h$ac_delim
14061include_stdlib_h!$include_stdlib_h$ac_delim
14062include_unistd_h!$include_unistd_h$ac_delim
14063include_string_h!$include_string_h$ac_delim
14064include_fcntl_h!$include_fcntl_h$ac_delim
14065include_util_h!$include_util_h$ac_delim
14066include_assert_h!$include_assert_h$ac_delim
14240_ACEOF 14067_ACEOF
14241 14068
14242 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 14069 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
14243 break 14070 break
14244 elif $ac_last_try; then 14071 elif $ac_last_try; then
14276 14103
14277 14104
14278ac_delim='%!_!# ' 14105ac_delim='%!_!# '
14279for ac_last_try in false false false false false :; do 14106for ac_last_try in false false false false false :; do
14280 cat >conf$$subs.sed <<_ACEOF 14107 cat >conf$$subs.sed <<_ACEOF
14281include_stdlib_h!$include_stdlib_h$ac_delim
14282include_unistd_h!$include_unistd_h$ac_delim
14283include_string_h!$include_string_h$ac_delim
14284include_fcntl_h!$include_fcntl_h$ac_delim
14285include_util_h!$include_util_h$ac_delim
14286include_assert_h!$include_assert_h$ac_delim
14287include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim 14108include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim
14288include_sys_select_h!$include_sys_select_h$ac_delim 14109include_sys_select_h!$include_sys_select_h$ac_delim
14289include_sys_strredir_h!$include_sys_strredir_h$ac_delim 14110include_sys_strredir_h!$include_sys_strredir_h$ac_delim
14290include_sys_time_h!$include_sys_time_h$ac_delim 14111include_sys_time_h!$include_sys_time_h$ac_delim
14291include_time_h!$include_time_h$ac_delim 14112include_time_h!$include_time_h$ac_delim
14292LIBOBJS!$LIBOBJS$ac_delim 14113LIBOBJS!$LIBOBJS$ac_delim
14293LTLIBOBJS!$LTLIBOBJS$ac_delim 14114LTLIBOBJS!$LTLIBOBJS$ac_delim
14294_ACEOF 14115_ACEOF
14295 14116
14296 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then 14117 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
14297 break 14118 break
14298 elif $ac_last_try; then 14119 elif $ac_last_try; then
14299 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14120 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14300echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14121echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14301 { (exit 1); exit 1; }; } 14122 { (exit 1); exit 1; }; }
14730 Install path: ${prefix}/bin 14551 Install path: ${prefix}/bin
14731 Compiler: $CXX 14552 Compiler: $CXX
14732 Compiler flags: $CXXFLAGS 14553 Compiler flags: $CXXFLAGS
14733 Linker: $LINKER" 14554 Linker: $LINKER"
14734 14555
14735if test x$support_xpm = xyes; then
14736 echo " Xpm library: $XPM_LIBS"
14737fi
14738
14739if test x$support_afterimage = xyes; then
14740 echo " AfterImage support: yes"
14741fi
14742
14743if test x$support_afterstep = xyes; then
14744 echo " AfterStep integration: yes"
14745fi
14746
14747if test x$term != x; then 14556if test x$term != x; then
14748 echo " set TERM to: $term" 14557 echo " set TERM to: $term"
14749fi 14558fi
14750if test x$terminfo != x; then 14559if test x$terminfo != x; then
14751 echo " set TERMINFO to: $terminfo" 14560 echo " set TERMINFO to: $terminfo"
14755if test x$RESFALLBACK != x; then 14564if test x$RESFALLBACK != x; then
14756 echo " resource class fallback: $RESFALLBACK" 14565 echo " resource class fallback: $RESFALLBACK"
14757fi 14566fi
14758echo 14567echo
14759echo " embedded perl: $support_perl" 14568echo " embedded perl: $support_perl"
14569echo " libafterimage: $support_afterimage"
14760echo 14570echo
14761if test x$support_xpm = xneedsmanualspecification; then
14762 echo ".----------------------------------------------------------------."
14763 echo ". WARNING: --enable-xpm-background was specified however the ."
14764 echo ". XPM includes files and libraries could not be found. ."
14765 echo ". XPM backgrounds are now being DISABLED! If you want ."
14766 echo ". to use them you should rerun configure with the ."
14767 echo ". appropriate --with-xpm-includes=/path/to/xpm/includes ."
14768 echo ". and --with-xpm-library=/path/to/xpm/library lines. ."
14769 echo ".----------------------------------------------------------------."
14770fi
14771if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then 14571if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
14772 echo ".----------------------------------------------------------------." 14572 echo ".----------------------------------------------------------------."
14773 echo ". WARNING: --enable-xim was specified however the locale support ." 14573 echo ". WARNING: --enable-xim was specified however the locale support ."
14774 echo ". functions could not be found. ." 14574 echo ". functions could not be found. ."
14775 echo ". XIM is now being DISABLED! ." 14575 echo ". XIM is now being DISABLED! ."

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines