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

Comparing rxvt-unicode/configure (file contents):
Revision 1.105 by root, Tue Jun 26 00:40:18 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
682CXXLIB
683INSTALL_LIBRXVT
684RXVTNAME 680RXVTNAME
681CXXCPP
685TIC 682TIC
686XMKMF 683XMKMF
687CXXCPP
688X_CFLAGS 684X_CFLAGS
689X_PRE_LIBS 685X_PRE_LIBS
690X_LIBS 686X_LIBS
691X_EXTRA_LIBS 687X_EXTRA_LIBS
692afterimage_config 688afterimage_config
693XPM_CPPFLAGS
694XPM_CFLAGS
695XPM_LIBS
696rxvt_int16_typedef 689rxvt_int16_typedef
697rxvt_uint16_typedef 690rxvt_uint16_typedef
698rxvt_int32_typedef 691rxvt_int32_typedef
699rxvt_uint32_typedef 692rxvt_uint32_typedef
700rxvt_intp_define 693rxvt_intp_define
705PERLLIB 698PERLLIB
706PERLFLAGS 699PERLFLAGS
707PERLPRIVLIBEXP 700PERLPRIVLIBEXP
708IF_PERL 701IF_PERL
709PERL_O 702PERL_O
710LIBAFTERIMAGE_CFLAGS 703AFTERIMAGE_CFLAGS
711AFTERIMAGE_LIBS 704AFTERIMAGE_LIBS
712include_stdint_h 705include_stdint_h
713include_stdarg_h 706include_stdarg_h
714include_stdlib_h 707include_stdlib_h
715include_unistd_h 708include_unistd_h
735CPPFLAGS 728CPPFLAGS
736CXX 729CXX
737CXXFLAGS 730CXXFLAGS
738CCC 731CCC
739CPP 732CPP
740XMKMF
741CXXCPP' 733CXXCPP
734XMKMF'
742 735
743 736
744# Initialize some variables set by options. 737# Initialize some variables set by options.
745ac_init_help= 738ac_init_help=
746ac_init_version=false 739ac_init_version=false
1320Optional Features: 1313Optional Features:
1321 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1314 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1322 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1315 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1323 --enable-everything enable standard non-multichoice features 1316 --enable-everything enable standard non-multichoice features
1324 NOTE: this option is order dependent 1317 NOTE: this option is order dependent
1325 NOTE: automatically enabled with --enable-shared 1318 --enable-warnings turn on g++ warnings
1326 --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
1327 --enable-combining enable composition of base and combining characters 1320 --enable-combining enable composition of base and combining characters
1328 --enable-xft enable xft support on systems that have it 1321 --enable-xft enable xft support on systems that have it
1329 --enable-font-styles enable bold and italic support 1322 --enable-font-styles enable bold and italic support
1330 --enable-xpm-background enable background pixmaps
1331 --enable-afterimage enable integration with libAfterImage for background images 1323 --enable-afterimage enable integration with libAfterImage for background images
1332 --enable-afterstep enable integration with AfterStep window manager
1333 --enable-transparency enable transparent backgrounds 1324 --enable-transparency enable transparent backgrounds
1334 --enable-tinting enable tinting of transparent bg
1335 --enable-fading enable colors fading when off focus 1325 --enable-fading enable colors fading when off focus
1336 --enable-rxvt-scroll enable rxvt style scrollbar 1326 --enable-rxvt-scroll enable rxvt style scrollbar
1337 --enable-next-scroll enable NeXT style scrollbar 1327 --enable-next-scroll enable NeXT style scrollbar
1338 --enable-xterm-scroll enable Xterm style scrollbar 1328 --enable-xterm-scroll enable Xterm style scrollbar
1329 --enable-plain-scroll enable plain style scrollbar
1339 --enable-perl enable embedded perl interpreter 1330 --enable-perl enable embedded perl interpreter
1340 --enable-plain-scroll enable plain style scrollbar
1341 --enable-xim XIM (X Input Method) protocol support 1331 --enable-xim XIM (X Input Method) protocol support
1342 --disable-backspace-key disable handling of the backspace key 1332 --disable-backspace-key disable handling of the backspace key
1343 --disable-delete-key disable handling of the delete key 1333 --disable-delete-key disable handling of the delete key
1344 --disable-resources disable all resource checking 1334 --disable-resources disable all resource checking
1345 --enable-8bitctrls enable 8 bit control sequences (not recommended) 1335 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1346 --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)
1347 --disable-swapscreen disable swap screen support 1337 --disable-swapscreen disable swap screen support
1348 --enable-iso14755 enable support for extended ISO 14755 modes 1338 --enable-iso14755 enable support for extended ISO 14755 modes
1349 --enable-frills enable support for rarely used features 1339 --enable-frills enable support for rarely used features
1350 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 1340 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1351 --enable-selectionscrolling enable scrolling during selections 1341 --enable-selectionscrolling enable scrolling during selections
1352 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 1342 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1353 --enable-slipwheeling enable slip wheel scrolling (requires previous) 1343 --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel)
1354 --enable-smart-resize enable smart growth/shrink behaviour 1344 --enable-smart-resize enable smart growth/shrink behaviour
1355 --enable-text-blink enable blinking text 1345 --enable-text-blink enable blinking text
1356 --enable-pointer-blank enable pointer blank when typing or inactive pointer 1346 --enable-pointer-blank enable pointer blank when typing or inactive pointer
1357 --enable-utmp enable utmp (utmpx) support 1347 --enable-utmp enable utmp (utmpx) support
1358 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) 1348 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1360 1350
1361Optional Packages: 1351Optional Packages:
1362 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1352 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1363 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1353 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1364 --with-afterimage-config=DIR use libAfterImage config script in DIR 1354 --with-afterimage-config=DIR use libAfterImage config script in DIR
1365 --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)
1366 --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)
1367 --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)
1368 --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)
1369 --with-term=NAME set the terminal to NAME (default: rxvt) 1359 --with-term=NAME set the terminal to NAME (default: rxvt)
1370 --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
1371 --with-x use the X Window System 1361 --with-x use the X Window System
1372 --with-xpm-includes=DIR use XPM includes in DIR
1373 --with-xpm-library=DIR use XPM library in DIR
1374 --with-xpm use XPM
1375 1362
1376Some influential environment variables: 1363Some influential environment variables:
1377 CC C compiler command 1364 CC C compiler command
1378 CFLAGS C compiler flags 1365 CFLAGS C compiler flags
1379 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
1382 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
1383 you have headers in a nonstandard directory <include dir> 1370 you have headers in a nonstandard directory <include dir>
1384 CXX C++ compiler command 1371 CXX C++ compiler command
1385 CXXFLAGS C++ compiler flags 1372 CXXFLAGS C++ compiler flags
1386 CPP C preprocessor 1373 CPP C preprocessor
1374 CXXCPP C++ preprocessor
1387 XMKMF Path to xmkmf, Makefile generator for X Window System 1375 XMKMF Path to xmkmf, Makefile generator for X Window System
1388 CXXCPP C++ preprocessor
1389 1376
1390Use 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
1391it to find libraries and programs with nonstandard names/locations. 1378it to find libraries and programs with nonstandard names/locations.
1392 1379
1393_ACEOF 1380_ACEOF
1929 1916
1930 1917
1931 1918
1932VERSION=`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`
1933DATE=`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
1934echo "" 1922echo ""
1935echo "configuring for rxvt $VERSION" 1923echo "configuring for rxvt $VERSION"
1936echo "" 1924echo ""
1937 1925
1938orig_CXXFLAGS="$CXXFLAGS" 1926orig_CXXFLAGS="$CXXFLAGS"
1939
1940 1927
1941ac_ext=c 1928ac_ext=c
1942ac_cpp='$CPP $CPPFLAGS' 1929ac_cpp='$CPP $CPPFLAGS'
1943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1944ac_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'
3723echo "${ECHO_T}no" >&6; } 3710echo "${ECHO_T}no" >&6; }
3724fi 3711fi
3725rm -f conftest* 3712rm -f conftest*
3726 3713
3727 3714
3715
3716cat >>confdefs.h <<\_ACEOF
3717#define _GNU_SOURCE 1
3718_ACEOF
3719
3720
3728{ echo "$as_me:$LINENO: checking for library containing strerror" >&5 3721{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
3729echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } 3722echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3730if test "${ac_cv_search_strerror+set}" = set; then 3723if test "${ac_cv_search_strerror+set}" = set; then
3731 echo $ECHO_N "(cached) $ECHO_C" >&6 3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3732else 3725else
3855 (exit $ac_status); } && { 3848 (exit $ac_status); } && {
3856 test -z "$ac_cxx_werror_flag" || 3849 test -z "$ac_cxx_werror_flag" ||
3857 test ! -s conftest.err 3850 test ! -s conftest.err
3858 } && test -s conftest$ac_exeext && 3851 } && test -s conftest$ac_exeext &&
3859 $as_test_x conftest$ac_exeext; then 3852 $as_test_x conftest$ac_exeext; then
3860
3861 { echo "$as_me:$LINENO: result: ok" >&5 3853 { echo "$as_me:$LINENO: result: ok" >&5
3862echo "${ECHO_T}ok" >&6; } 3854echo "${ECHO_T}ok" >&6; }
3863 CXXLIB="-lsupc++"
3864
3865else 3855else
3866 echo "$as_me: failed program was:" >&5 3856 echo "$as_me: failed program was:" >&5
3867sed 's/^/| /' conftest.$ac_ext >&5 3857sed 's/^/| /' conftest.$ac_ext >&5
3868 3858
3869 3859
3880 CXX="$save_CXX" 3870 CXX="$save_CXX"
3881fi 3871fi
3882LINKER=$LINKER 3872LINKER=$LINKER
3883 3873
3884 3874
3885
3886if test -z "$orig_CXXFLAGS"; then 3875if test -z "$orig_CXXFLAGS"; then
3887 if test x$GCC = xyes && test "x$GXX" = xyes; then 3876 if test x$GCC = xyes && test "x$GXX" = xyes; then
3888 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"
3889 cat >conftest.$ac_ext <<_ACEOF 3878 cat >conftest.$ac_ext <<_ACEOF
3890/* confdefs.h. */ 3879/* confdefs.h. */
3891_ACEOF 3880_ACEOF
3892cat confdefs.h >>conftest.$ac_ext 3881cat confdefs.h >>conftest.$ac_ext
3893cat >>conftest.$ac_ext <<_ACEOF 3882cat >>conftest.$ac_ext <<_ACEOF
3931 CXXFLAGS="-O" 3920 CXXFLAGS="-O"
3932 fi 3921 fi
3933 CFLAGS="$CXXFLAGS" 3922 CFLAGS="$CXXFLAGS"
3934fi 3923fi
3935 3924
3936
3937cat >>confdefs.h <<\_ACEOF
3938#define _GNU_SOURCE 1
3939_ACEOF
3940
3941
3942case $host in 3925case $host in
3943 *-*-solaris* ) 3926 *-*-solaris* )
3944 3927
3945cat >>confdefs.h <<\_ACEOF 3928cat >>confdefs.h <<\_ACEOF
3946#define _XOPEN_SOURCE 500 3929#define _XOPEN_SOURCE 500
3947_ACEOF 3930_ACEOF
3948 3931
3949 ;; 3932 ;;
3950esac 3933esac
3951
3952 3934
3953{ echo "$as_me:$LINENO: checking for setlocale" >&5 3935{ echo "$as_me:$LINENO: checking for setlocale" >&5
3954echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } 3936echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; }
3955if test "${ac_cv_func_setlocale+set}" = set; then 3937if test "${ac_cv_func_setlocale+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6 3938 echo $ECHO_N "(cached) $ECHO_C" >&6
4406 4388
4407 4389
4408 4390
4409support_frills=yes 4391support_frills=yes
4410support_inheritpixmap=yes 4392support_inheritpixmap=yes
4411support_tinting=yes
4412support_fading=yes 4393support_fading=yes
4413support_keepscrolling=yes 4394support_keepscrolling=yes
4414support_selectionscrolling=yes 4395support_selectionscrolling=yes
4415support_mousewheel=yes 4396support_mousewheel=yes
4416support_mouseslipwheel=yes 4397support_mouseslipwheel=yes
4419support_scroll_rxvt=yes 4400support_scroll_rxvt=yes
4420support_scroll_next=yes 4401support_scroll_next=yes
4421support_scroll_xterm=yes 4402support_scroll_xterm=yes
4422support_scroll_plain=yes 4403support_scroll_plain=yes
4423support_xim=yes 4404support_xim=yes
4424support_xpm=yes
4425support_afterimage=yes 4405support_afterimage=yes
4426support_afterstep=yes 4406support_afterstep=yes
4427support_xft=yes 4407support_xft=yes
4428support_unicode3=no 4408support_unicode3=no
4429support_combining=yes 4409support_combining=yes
4432support_styles=yes 4412support_styles=yes
4433support_perl=yes 4413support_perl=yes
4434codesets=all 4414codesets=all
4435 4415
4436 4416
4437if test "x$enable_shared" = xyes; then
4438
4439cat >>confdefs.h <<\_ACEOF
4440#define LIBRXVT 1
4441_ACEOF
4442
4443 INSTALL_LIBRXVT=yes
4444fi
4445
4446 4417
4447# Check whether --enable-everything was given. 4418# Check whether --enable-everything was given.
4448if test "${enable_everything+set}" = set; then 4419if test "${enable_everything+set}" = set; then
4449 enableval=$enable_everything; 4420 enableval=$enable_everything;
4450 if test x$enableval = xno; then 4421 if test x$enableval = xno; then
4451 support_frills=no 4422 support_frills=no
4452 support_inheritpixmap=no 4423 support_inheritpixmap=no
4453 support_tinting=no
4454 support_fading=no 4424 support_fading=no
4455 support_keepscrolling=no 4425 support_keepscrolling=no
4456 support_selectionscrolling=no 4426 support_selectionscrolling=no
4457 support_lastlog=no 4427 support_lastlog=no
4458 support_mousewheel=no 4428 support_mousewheel=no
4464 support_scroll_xterm=no 4434 support_scroll_xterm=no
4465 support_scroll_plain=no 4435 support_scroll_plain=no
4466 support_utmp=no 4436 support_utmp=no
4467 support_wtmp=no 4437 support_wtmp=no
4468 support_xim=no 4438 support_xim=no
4469 support_xpm=no
4470 support_afterimage=no 4439 support_afterimage=no
4471 support_afterstep=no 4440 support_afterstep=no
4472 support_xft=no 4441 support_xft=no
4473 support_unicode3=no 4442 support_unicode3=no
4474 support_combining=no 4443 support_combining=no
4479 codesets= 4448 codesets=
4480 fi 4449 fi
4481 if test x$enableval = xyes; then 4450 if test x$enableval = xyes; then
4482 support_frills=yes 4451 support_frills=yes
4483 support_inheritpixmap=yes 4452 support_inheritpixmap=yes
4484 support_tinting=yes
4485 support_fading=yes 4453 support_fading=yes
4486 support_keepscrolling=yes 4454 support_keepscrolling=yes
4487 support_selectionscrolling=yes 4455 support_selectionscrolling=yes
4488 support_lastlog=yes 4456 support_lastlog=yes
4489 support_mousewheel=yes 4457 support_mousewheel=yes
4495 support_scroll_xterm=yes 4463 support_scroll_xterm=yes
4496 support_scroll_plain=yes 4464 support_scroll_plain=yes
4497 support_utmp=yes 4465 support_utmp=yes
4498 support_wtmp=yes 4466 support_wtmp=yes
4499 support_xim=yes 4467 support_xim=yes
4500 support_xpm=yes
4501 support_afterimage=yes 4468 support_afterimage=yes
4502 support_afterstep=yes 4469 support_afterstep=yes
4503 support_xft=yes 4470 support_xft=yes
4504 support_unicode3=yes 4471 support_unicode3=yes
4505 support_combining=yes 4472 support_combining=yes
4511 fi 4478 fi
4512 4479
4513fi 4480fi
4514 4481
4515 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
4516# Check whether --enable-unicode3 was given. 4541# Check whether --enable-unicode3 was given.
4517if test "${enable_unicode3+set}" = set; then 4542if test "${enable_unicode3+set}" = set; then
4518 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
4519 support_unicode3=$enableval 4544 support_unicode3=$enableval
4520 fi 4545 fi
4543 support_styles=$enableval 4568 support_styles=$enableval
4544 fi 4569 fi
4545fi 4570fi
4546 4571
4547 4572
4548# Check whether --enable-xpm-background was given.
4549if test "${enable_xpm_background+set}" = set; then
4550 enableval=$enable_xpm_background; if test x$enableval = xyes -o x$enableval = xno; then
4551 support_xpm=$enableval
4552 fi
4553fi
4554
4555
4556# Check whether --enable-afterimage was given. 4573# Check whether --enable-afterimage was given.
4557if test "${enable_afterimage+set}" = set; then 4574if test "${enable_afterimage+set}" = set; then
4558 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
4559 support_afterimage=$enableval 4576 support_afterimage=$enableval
4560 fi 4577 fi
4568 afterimage_config=$withval/afterimage-config 4585 afterimage_config=$withval/afterimage-config
4569 fi 4586 fi
4570fi 4587fi
4571 4588
4572 4589
4573# Check whether --enable-afterstep was given.
4574if test "${enable_afterstep+set}" = set; then
4575 enableval=$enable_afterstep; if test x$enableval = xyes -o x$enableval = xno; then
4576 support_afterstep=$enableval
4577 fi
4578fi
4579
4580 4590
4581# Check whether --enable-transparency was given. 4591# Check whether --enable-transparency was given.
4582if test "${enable_transparency+set}" = set; then 4592if test "${enable_transparency+set}" = set; then
4583 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
4584 support_inheritpixmap=$enableval 4594 support_inheritpixmap=$enableval
4585 fi 4595 fi
4586fi 4596fi
4587 4597
4588 4598
4589# Check whether --enable-tinting was given.
4590if test "${enable_tinting+set}" = set; then
4591 enableval=$enable_tinting; if test x$enableval = xyes -o x$enableval = xno; then
4592 support_tinting=$enableval
4593 fi
4594fi
4595
4596
4597# Check whether --enable-fading was given. 4599# Check whether --enable-fading was given.
4598if test "${enable_fading+set}" = set; then 4600if test "${enable_fading+set}" = set; then
4599 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
4600 support_fading=$enableval 4602 support_fading=$enableval
4601 fi 4603 fi
4624 support_scroll_xterm=$enableval 4626 support_scroll_xterm=$enableval
4625 fi 4627 fi
4626fi 4628fi
4627 4629
4628 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
4629# Check whether --enable-perl was given. 4639# Check whether --enable-perl was given.
4630if test "${enable_perl+set}" = set; then 4640if test "${enable_perl+set}" = set; then
4631 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
4632 support_perl=$enableval 4642 support_perl=$enableval
4633 fi
4634fi
4635
4636
4637# Check whether --enable-plain-scroll was given.
4638if test "${enable_plain_scroll+set}" = set; then
4639 enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4640 support_scroll_plain=$enableval
4641 fi 4643 fi
4642fi 4644fi
4643 4645
4644 4646
4645 4647
4872#define RXVT_TERMINFO "$withval" 4874#define RXVT_TERMINFO "$withval"
4873_ACEOF 4875_ACEOF
4874 terminfo="$withval" 4876 terminfo="$withval"
4875 fi 4877 fi
4876fi 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
4877 5932
4878 5933
4879 5934
4880# 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.
4881set dummy tic; ac_word=$2 5936set dummy tic; ac_word=$2
4902 fi 5957 fi
4903done 5958done
4904done 5959done
4905IFS=$as_save_IFS 5960IFS=$as_save_IFS
4906 5961
5962 test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":"
4907 ;; 5963 ;;
4908esac 5964esac
4909fi 5965fi
4910TIC=$ac_cv_path_TIC 5966TIC=$ac_cv_path_TIC
4911if test -n "$TIC"; then 5967if test -n "$TIC"; then
4914else 5970else
4915 { echo "$as_me:$LINENO: result: no" >&5 5971 { echo "$as_me:$LINENO: result: no" >&5
4916echo "${ECHO_T}no" >&6; } 5972echo "${ECHO_T}no" >&6; }
4917fi 5973fi
4918 5974
4919
4920
4921
4922
4923ac_ext=cpp
4924ac_cpp='$CXXCPP $CPPFLAGS'
4925ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4926ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4927ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4928{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4929echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4930if test -z "$CXXCPP"; then
4931 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4932 echo $ECHO_N "(cached) $ECHO_C" >&6
4933else
4934 # Double quotes because CXXCPP needs to be expanded
4935 for CXXCPP in "$CXX -E" "/lib/cpp"
4936 do
4937 ac_preproc_ok=false
4938for ac_cxx_preproc_warn_flag in '' yes
4939do
4940 # Use a header file that comes with gcc, so configuring glibc
4941 # with a fresh cross-compiler works.
4942 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4943 # <limits.h> exists even on freestanding compilers.
4944 # On the NeXT, cc -E runs the code through the compiler's parser,
4945 # not just through cpp. "Syntax error" is here to catch this case.
4946 cat >conftest.$ac_ext <<_ACEOF
4947/* confdefs.h. */
4948_ACEOF
4949cat confdefs.h >>conftest.$ac_ext
4950cat >>conftest.$ac_ext <<_ACEOF
4951/* end confdefs.h. */
4952#ifdef __STDC__
4953# include <limits.h>
4954#else
4955# include <assert.h>
4956#endif
4957 Syntax error
4958_ACEOF
4959if { (ac_try="$ac_cpp conftest.$ac_ext"
4960case "(($ac_try" in
4961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4962 *) ac_try_echo=$ac_try;;
4963esac
4964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4965 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4966 ac_status=$?
4967 grep -v '^ *+' conftest.er1 >conftest.err
4968 rm -f conftest.er1
4969 cat conftest.err >&5
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); } >/dev/null && {
4972 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4973 test ! -s conftest.err
4974 }; then
4975 :
4976else
4977 echo "$as_me: failed program was:" >&5
4978sed 's/^/| /' conftest.$ac_ext >&5
4979
4980 # Broken: fails on valid input.
4981continue
4982fi
4983
4984rm -f conftest.err conftest.$ac_ext
4985
4986 # OK, works on sane cases. Now check whether nonexistent headers
4987 # can be detected and how.
4988 cat >conftest.$ac_ext <<_ACEOF
4989/* confdefs.h. */
4990_ACEOF
4991cat confdefs.h >>conftest.$ac_ext
4992cat >>conftest.$ac_ext <<_ACEOF
4993/* end confdefs.h. */
4994#include <ac_nonexistent.h>
4995_ACEOF
4996if { (ac_try="$ac_cpp conftest.$ac_ext"
4997case "(($ac_try" in
4998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4999 *) ac_try_echo=$ac_try;;
5000esac
5001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5002 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5003 ac_status=$?
5004 grep -v '^ *+' conftest.er1 >conftest.err
5005 rm -f conftest.er1
5006 cat conftest.err >&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); } >/dev/null && {
5009 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5010 test ! -s conftest.err
5011 }; then
5012 # Broken: success on invalid input.
5013continue
5014else
5015 echo "$as_me: failed program was:" >&5
5016sed 's/^/| /' conftest.$ac_ext >&5
5017
5018 # Passes both tests.
5019ac_preproc_ok=:
5020break
5021fi
5022
5023rm -f conftest.err conftest.$ac_ext
5024
5025done
5026# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5027rm -f conftest.err conftest.$ac_ext
5028if $ac_preproc_ok; then
5029 break
5030fi
5031
5032 done
5033 ac_cv_prog_CXXCPP=$CXXCPP
5034
5035fi
5036 CXXCPP=$ac_cv_prog_CXXCPP
5037else
5038 ac_cv_prog_CXXCPP=$CXXCPP
5039fi
5040{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5041echo "${ECHO_T}$CXXCPP" >&6; }
5042ac_preproc_ok=false
5043for ac_cxx_preproc_warn_flag in '' yes
5044do
5045 # Use a header file that comes with gcc, so configuring glibc
5046 # with a fresh cross-compiler works.
5047 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5048 # <limits.h> exists even on freestanding compilers.
5049 # On the NeXT, cc -E runs the code through the compiler's parser,
5050 # not just through cpp. "Syntax error" is here to catch this case.
5051 cat >conftest.$ac_ext <<_ACEOF
5052/* confdefs.h. */
5053_ACEOF
5054cat confdefs.h >>conftest.$ac_ext
5055cat >>conftest.$ac_ext <<_ACEOF
5056/* end confdefs.h. */
5057#ifdef __STDC__
5058# include <limits.h>
5059#else
5060# include <assert.h>
5061#endif
5062 Syntax error
5063_ACEOF
5064if { (ac_try="$ac_cpp conftest.$ac_ext"
5065case "(($ac_try" in
5066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5067 *) ac_try_echo=$ac_try;;
5068esac
5069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5071 ac_status=$?
5072 grep -v '^ *+' conftest.er1 >conftest.err
5073 rm -f conftest.er1
5074 cat conftest.err >&5
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); } >/dev/null && {
5077 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5078 test ! -s conftest.err
5079 }; then
5080 :
5081else
5082 echo "$as_me: failed program was:" >&5
5083sed 's/^/| /' conftest.$ac_ext >&5
5084
5085 # Broken: fails on valid input.
5086continue
5087fi
5088
5089rm -f conftest.err conftest.$ac_ext
5090
5091 # OK, works on sane cases. Now check whether nonexistent headers
5092 # can be detected and how.
5093 cat >conftest.$ac_ext <<_ACEOF
5094/* confdefs.h. */
5095_ACEOF
5096cat confdefs.h >>conftest.$ac_ext
5097cat >>conftest.$ac_ext <<_ACEOF
5098/* end confdefs.h. */
5099#include <ac_nonexistent.h>
5100_ACEOF
5101if { (ac_try="$ac_cpp conftest.$ac_ext"
5102case "(($ac_try" in
5103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5104 *) ac_try_echo=$ac_try;;
5105esac
5106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5107 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5108 ac_status=$?
5109 grep -v '^ *+' conftest.er1 >conftest.err
5110 rm -f conftest.er1
5111 cat conftest.err >&5
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); } >/dev/null && {
5114 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5115 test ! -s conftest.err
5116 }; then
5117 # Broken: success on invalid input.
5118continue
5119else
5120 echo "$as_me: failed program was:" >&5
5121sed 's/^/| /' conftest.$ac_ext >&5
5122
5123 # Passes both tests.
5124ac_preproc_ok=:
5125break
5126fi
5127
5128rm -f conftest.err conftest.$ac_ext
5129
5130done
5131# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5132rm -f conftest.err conftest.$ac_ext
5133if $ac_preproc_ok; then
5134 :
5135else
5136 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5137See \`config.log' for more details." >&5
5138echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5139See \`config.log' for more details." >&2;}
5140 { (exit 1); exit 1; }; }
5141fi
5142
5143ac_ext=cpp
5144ac_cpp='$CXXCPP $CPPFLAGS'
5145ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5146ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5147ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5148 5975
5149 5976
5150{ echo "$as_me:$LINENO: checking for X" >&5 5977{ echo "$as_me:$LINENO: checking for X" >&5
5151echo $ECHO_N "checking for X... $ECHO_C" >&6; } 5978echo $ECHO_N "checking for X... $ECHO_C" >&6; }
5152 5979
6460 LDFLAGS=$ac_save_LDFLAGS 7287 LDFLAGS=$ac_save_LDFLAGS
6461 7288
6462fi 7289fi
6463 7290
6464 7291
6465
6466LIBAFTERIMAGE_CFLAGS= 7292AFTERIMAGE_CFLAGS=
6467AFTERIMAGE_LIBS= 7293AFTERIMAGE_LIBS=
6468have_afterimage= 7294AFTERIMAGE_VERSION=
6469 7295
6470if test x$support_afterimage = xyes; then 7296if test x$support_afterimage = xyes; then
6471 support_afterimage=no 7297 support_afterimage=no
6472 7298
6473 if test "x$afterimage_config" = "x" ; then 7299 if test "x$afterimage_config" = "x" ; then
6511echo "${ECHO_T}no" >&6; } 7337echo "${ECHO_T}no" >&6; }
6512fi 7338fi
6513 7339
6514 7340
6515 fi 7341 fi
6516 7342 if test "x$afterimage_config" != "xno" ; then
6517 { echo "$as_me:$LINENO: checking for libAfterImage" >&5 7343 { echo "$as_me:$LINENO: checking for libAfterImage version >= 1.15" >&5
6518echo $ECHO_N "checking for libAfterImage... $ECHO_C" >&6; } 7344echo $ECHO_N "checking for libAfterImage version >= 1.15... $ECHO_C" >&6; }
6519 if $afterimage_config --version >/dev/null 2>&1 ; then 7345 xAFTERIMAGE_VERSION=`$afterimage_config --version`
7346 if test -n "$xAFTERIMAGE_VERSION" ; then
6520 LIBAFTERIMAGE_CFLAGS=`$afterimage_config --cflags` 7347 xAFTERIMAGE_CFLAGS=`$afterimage_config --cflags`
6521 AFTERIMAGE_LIBS=`$afterimage_config --libs` 7348 xAFTERIMAGE_LIBS=`$afterimage_config --libs`
6522 if test "x$AFTERIMAGE_LIBS" != "x"; then 7349 if test "x$xAFTERIMAGE_LIBS" != "x"; then
7350 libai_ver_major=`echo $xAFTERIMAGE_VERSION | cut -f 1 -d .`
7351 libai_ver_minor=`echo $xAFTERIMAGE_VERSION | cut -f 2 -d .`
7352 if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then
6523 support_afterimage=yes 7353 support_afterimage=yes
6524 fi 7354 AFTERIMAGE_CFLAGS="$xAFTERIMAGE_CFLAGS"
6525 fi 7355 AFTERIMAGE_LIBS="$xAFTERIMAGE_LIBS"
6526 7356 AFTERIMAGE_VERSION="$xAFTERIMAGE_VERSION"
6527 if test "x$support_afterimage" = "xyes"; then
6528 { echo "$as_me:$LINENO: result: $AFTERIMAGE_LIBS" >&5
6529echo "${ECHO_T}$AFTERIMAGE_LIBS" >&6; }
6530 else
6531 { echo "$as_me:$LINENO: result: no" >&5
6532echo "${ECHO_T}no" >&6; }
6533 fi
6534fi
6535
6536if test x$support_afterimage != xyes -a x$support_xpm = xyes ; then
6537
6538
6539
6540# Initialize some more variables set by options.
6541# The variables have the same names as the options, with
6542# dashes changed to underlines.
6543
6544# If we find XPM, set shell vars xpm_includes and xpm_libraries to the
6545# paths, otherwise set no_xpm=yes.
6546# Uses ac_ vars as temps to allow command line to override cache and checks.
6547{ echo "$as_me:$LINENO: checking for libXpm" >&5
6548echo $ECHO_N "checking for libXpm... $ECHO_C" >&6; }
6549
6550
6551# Check whether --with-xpm_includes was given.
6552if test "${with_xpm_includes+set}" = set; then
6553 withval=$with_xpm_includes; xpm_includes="$withval"
6554else
6555 xpm_includes=NO
6556fi
6557
6558
6559# Check whether --with-xpm_library was given.
6560if test "${with_xpm_library+set}" = set; then
6561 withval=$with_xpm_library; xpm_libraries="$withval"
6562else
6563 xpm_libraries=NO
6564fi
6565
6566
6567# --without-xpm overrides everything else, but does not touch the cache.
6568
6569# Check whether --with-xpm was given.
6570if test "${with_xpm+set}" = set; then
6571 withval=$with_xpm;
6572fi
6573
6574if test "$with_xpm" = no; then
6575 have_xpm=disabled
6576else
6577 if test "${ac_cv_have_xpm+set}" = set; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
6579else
6580
6581 vt_xpm_include_X11=no
6582 if test -n "$xpm_includes"; then
6583 vt_xpm_includes=$xpm_includes
6584 else
6585 vt_xpm_includes=NO
6586 fi
6587 if test -n "$xpm_libraries"; then
6588 vt_xpm_libraries=$xpm_libraries
6589 else
6590 vt_xpm_libraries=NO
6591 fi
6592
6593 if test "$vt_xpm_includes" = NO; then
6594 # Guess where to find xpm.h
6595
6596ac_save_CPPFLAGS="$CPPFLAGS"
6597CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6598
6599 # First, try using that file with no special directory specified.
6600cat >conftest.$ac_ext <<_ACEOF
6601/* confdefs.h. */
6602_ACEOF
6603cat confdefs.h >>conftest.$ac_ext
6604cat >>conftest.$ac_ext <<_ACEOF
6605/* end confdefs.h. */
6606#include <X11/xpm.h>
6607_ACEOF
6608if { (ac_try="$ac_cpp conftest.$ac_ext"
6609case "(($ac_try" in
6610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6611 *) ac_try_echo=$ac_try;;
6612esac
6613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6615 ac_status=$?
6616 grep -v '^ *+' conftest.er1 >conftest.err
6617 rm -f conftest.er1
6618 cat conftest.err >&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); } >/dev/null && {
6621 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6622 test ! -s conftest.err
6623 }; then
6624 # We can compile using X headers with no special include directory.
6625vt_xpm_includes=
6626vt_xpm_include_X11=yes
6627else
6628 echo "$as_me: failed program was:" >&5
6629sed 's/^/| /' conftest.$ac_ext >&5
6630
6631 CPPFLAGS="$ac_save_CPPFLAGS"
6632# Look for the header file in a standard set of common directories.
6633 for ac_dir in \
6634 /usr/X11/include \
6635 /usr/X11R6/include \
6636 /usr/X11R5/include \
6637 /usr/X11R4/include \
6638 \
6639 /usr/include/X11 \
6640 /usr/include/X11R6 \
6641 /usr/include/X11R5 \
6642 /usr/include/X11R4 \
6643 \
6644 /usr/local/X11/include \
6645 /usr/local/X11R6/include \
6646 /usr/local/X11R5/include \
6647 /usr/local/X11R4/include \
6648 \
6649 /usr/local/include/X11 \
6650 /usr/local/include/X11R6 \
6651 /usr/local/include/X11R5 \
6652 /usr/local/include/X11R4 \
6653 \
6654 /usr/X386/include \
6655 /usr/x386/include \
6656 /usr/XFree86/include/X11 \
6657 \
6658 /usr/include \
6659 /usr/local/include \
6660 /usr/unsupported/include \
6661 /usr/athena/include \
6662 /usr/local/x11r5/include \
6663 /usr/lpp/Xamples/include \
6664 \
6665 /usr/openwin/include \
6666 /usr/openwin/share/include \
6667 ; \
6668 do
6669 if test -r "$ac_dir/X11/xpm.h"; then
6670 vt_xpm_includes="$ac_dir"
6671 vt_xpm_include_X11=yes
6672 break
6673 else
6674 if test -r "$ac_dir/xpm.h"; then
6675 vt_xpm_includes=$ac_dir
6676 break
6677 fi
6678 fi
6679 done
6680fi
6681
6682rm -f conftest.err conftest.$ac_ext
6683fi
6684
6685if test "$vt_xpm_libraries" = NO; then
6686 # Check for the libraries.
6687
6688 # See if we find them without any special options.
6689 # Don't add to $LIBS permanently.
6690 ac_save_LIBS="$LIBS"
6691 LIBS="$LIBS $X_LIBS -lXpm -lX11"
6692cat >conftest.$ac_ext <<_ACEOF
6693/* confdefs.h. */
6694_ACEOF
6695cat confdefs.h >>conftest.$ac_ext
6696cat >>conftest.$ac_ext <<_ACEOF
6697/* end confdefs.h. */
6698
6699int
6700main ()
6701{
6702XpmReadFileToPixmap()
6703 ;
6704 return 0;
6705}
6706_ACEOF
6707rm -f conftest.$ac_objext conftest$ac_exeext
6708if { (ac_try="$ac_link"
6709case "(($ac_try" in
6710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6711 *) ac_try_echo=$ac_try;;
6712esac
6713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6714 (eval "$ac_link") 2>conftest.er1
6715 ac_status=$?
6716 grep -v '^ *+' conftest.er1 >conftest.err
6717 rm -f conftest.er1
6718 cat conftest.err >&5
6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); } && {
6721 test -z "$ac_cxx_werror_flag" ||
6722 test ! -s conftest.err
6723 } && test -s conftest$ac_exeext &&
6724 $as_test_x conftest$ac_exeext; then
6725 LIBS="$ac_save_LIBS"
6726# We can link libXpm with no special library path.
6727vt_xpm_libraries=
6728else
6729 echo "$as_me: failed program was:" >&5
6730sed 's/^/| /' conftest.$ac_ext >&5
6731
6732 LIBS="$ac_save_LIBS"
6733# First see if replacing the include by lib works.
6734for ac_dir in \
6735 `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
6736 /usr/X11/lib \
6737 /usr/X11R6/lib \
6738 /usr/X11R5/lib \
6739 /usr/X11R4/lib \
6740 \
6741 /usr/lib/X11 \
6742 /usr/lib/X11R6 \
6743 /usr/lib/X11R5 \
6744 /usr/lib/X11R4 \
6745 \
6746 /usr/local/X11/lib \
6747 /usr/local/X11R6/lib \
6748 /usr/local/X11R5/lib \
6749 /usr/local/X11R4/lib \
6750 \
6751 /usr/local/lib/X11 \
6752 /usr/local/lib/X11R6 \
6753 /usr/local/lib/X11R5 \
6754 /usr/local/lib/X11R4 \
6755 \
6756 /usr/X386/lib \
6757 /usr/x386/lib \
6758 /usr/XFree86/lib/X11 \
6759 \
6760 /usr/lib \
6761 /usr/local/lib \
6762 /usr/unsupported/lib \
6763 /usr/athena/lib \
6764 /usr/local/x11r5/lib \
6765 /usr/lpp/Xamples/lib \
6766 \
6767 /usr/openwin/lib \
6768 /usr/openwin/share/lib \
6769 ; \
6770do
6771 for ac_extension in a so sl; do
6772 if test -r $ac_dir/libXpm.$ac_extension; then
6773 vt_xpm_libraries=$ac_dir
6774 break 2
6775 fi
6776 done
6777done
6778fi
6779
6780rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6781 conftest$ac_exeext conftest.$ac_ext
6782fi
6783
6784
6785 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then
6786 ac_cv_have_xpm="have_xpm=no"
6787 else
6788 ac_cv_have_xpm="have_xpm=yes \
6789 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6790 vt_xpm_include_X11=$vt_xpm_include_X11"
6791 fi
6792fi
6793 eval "$ac_cv_have_xpm"
6794fi
6795
6796if test "$have_xpm" != yes; then
6797 { echo "$as_me:$LINENO: result: $have_xpm" >&5
6798echo "${ECHO_T}$have_xpm" >&6; }
6799 no_xpm=yes
6800else
6801 if test "$xpm_includes" != NO; then
6802 if test "$xpm_includes" = "$vt_xpm_includes"; then
6803 if test -r "$xpm_includes/X11/xpm.h"; then
6804 vt_xpm_include_X11=yes
6805 fi
6806 else
6807 vt_xpm_include_X11=no
6808 if test -z "$xpm_includes"; then
6809 cat >conftest.$ac_ext <<_ACEOF
6810/* confdefs.h. */
6811_ACEOF
6812cat confdefs.h >>conftest.$ac_ext
6813cat >>conftest.$ac_ext <<_ACEOF
6814/* end confdefs.h. */
6815#include <X11/xpm.h>
6816_ACEOF
6817if { (ac_try="$ac_cpp conftest.$ac_ext"
6818case "(($ac_try" in
6819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6820 *) ac_try_echo=$ac_try;;
6821esac
6822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6824 ac_status=$?
6825 grep -v '^ *+' conftest.er1 >conftest.err
6826 rm -f conftest.er1
6827 cat conftest.err >&5
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); } >/dev/null && {
6830 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6831 test ! -s conftest.err
6832 }; then
6833 vt_xpm_include_X11=yes
6834else
6835 echo "$as_me: failed program was:" >&5
6836sed 's/^/| /' conftest.$ac_ext >&5
6837
6838
6839fi
6840
6841rm -f conftest.err conftest.$ac_ext
6842 else
6843 if test -r "$xpm_includes/X11/xpm.h"; then
6844 vt_xpm_include_X11=yes
6845 fi 7357 fi
6846 fi 7358 fi
6847 fi 7359 fi
6848 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
6849 fi 7367 fi
6850 if test "x$xpm_libraries" != xNO; then
6851 vt_xpm_libraries=$xpm_libraries
6852 fi
6853 # Update the cache value to reflect the command line values.
6854 ac_cv_have_xpm="have_xpm=yes \
6855 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6856 vt_xpm_include_X11=$vt_xpm_include_X11"
6857 eval "$ac_cv_have_xpm"
6858 { echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5
6859echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6; }
6860 if test -n "$vt_xpm_includes"; then
6861 XPM_CPPFLAGS="-DHAVE_LIBXPM"
6862 fi
6863 if test -n "$vt_xpm_includes"; then
6864 XPM_CFLAGS="-I$vt_xpm_includes"
6865 fi
6866 XPM_LIBS="-lXpm"
6867 if test -n "$vt_xpm_libraries"; then
6868 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
6869 fi
6870 if test "x$vt_xpm_include_X11" = xyes; then
6871
6872cat >>confdefs.h <<\_ACEOF
6873#define XPM_INC_X11 1
6874_ACEOF
6875
6876 fi
6877fi 7368fi
6878
6879
6880
6881
6882
6883 if test x$no_xpm = xyes; then
6884 support_xpm=needsmanualspecification
6885 fi
6886fi
6887
6888{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6889echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6890if test "${ac_cv_header_sys_wait_h+set}" = set; then
6891 echo $ECHO_N "(cached) $ECHO_C" >&6
6892else
6893 cat >conftest.$ac_ext <<_ACEOF
6894/* confdefs.h. */
6895_ACEOF
6896cat confdefs.h >>conftest.$ac_ext
6897cat >>conftest.$ac_ext <<_ACEOF
6898/* end confdefs.h. */
6899#include <sys/types.h>
6900#include <sys/wait.h>
6901#ifndef WEXITSTATUS
6902# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6903#endif
6904#ifndef WIFEXITED
6905# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6906#endif
6907
6908int
6909main ()
6910{
6911 int s;
6912 wait (&s);
6913 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6914 ;
6915 return 0;
6916}
6917_ACEOF
6918rm -f conftest.$ac_objext
6919if { (ac_try="$ac_compile"
6920case "(($ac_try" in
6921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6922 *) ac_try_echo=$ac_try;;
6923esac
6924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6925 (eval "$ac_compile") 2>conftest.er1
6926 ac_status=$?
6927 grep -v '^ *+' conftest.er1 >conftest.err
6928 rm -f conftest.er1
6929 cat conftest.err >&5
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); } && {
6932 test -z "$ac_cxx_werror_flag" ||
6933 test ! -s conftest.err
6934 } && test -s conftest.$ac_objext; then
6935 ac_cv_header_sys_wait_h=yes
6936else
6937 echo "$as_me: failed program was:" >&5
6938sed 's/^/| /' conftest.$ac_ext >&5
6939
6940 ac_cv_header_sys_wait_h=no
6941fi
6942
6943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6944fi
6945{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6946echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6947if test $ac_cv_header_sys_wait_h = yes; then
6948
6949cat >>confdefs.h <<\_ACEOF
6950#define HAVE_SYS_WAIT_H 1
6951_ACEOF
6952
6953fi
6954
6955{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6956echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6957if test "${ac_cv_header_stdc+set}" = set; then
6958 echo $ECHO_N "(cached) $ECHO_C" >&6
6959else
6960 cat >conftest.$ac_ext <<_ACEOF
6961/* confdefs.h. */
6962_ACEOF
6963cat confdefs.h >>conftest.$ac_ext
6964cat >>conftest.$ac_ext <<_ACEOF
6965/* end confdefs.h. */
6966#include <stdlib.h>
6967#include <stdarg.h>
6968#include <string.h>
6969#include <float.h>
6970
6971int
6972main ()
6973{
6974
6975 ;
6976 return 0;
6977}
6978_ACEOF
6979rm -f conftest.$ac_objext
6980if { (ac_try="$ac_compile"
6981case "(($ac_try" in
6982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6983 *) ac_try_echo=$ac_try;;
6984esac
6985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6986 (eval "$ac_compile") 2>conftest.er1
6987 ac_status=$?
6988 grep -v '^ *+' conftest.er1 >conftest.err
6989 rm -f conftest.er1
6990 cat conftest.err >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); } && {
6993 test -z "$ac_cxx_werror_flag" ||
6994 test ! -s conftest.err
6995 } && test -s conftest.$ac_objext; then
6996 ac_cv_header_stdc=yes
6997else
6998 echo "$as_me: failed program was:" >&5
6999sed 's/^/| /' conftest.$ac_ext >&5
7000
7001 ac_cv_header_stdc=no
7002fi
7003
7004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7005
7006if test $ac_cv_header_stdc = yes; then
7007 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7008 cat >conftest.$ac_ext <<_ACEOF
7009/* confdefs.h. */
7010_ACEOF
7011cat confdefs.h >>conftest.$ac_ext
7012cat >>conftest.$ac_ext <<_ACEOF
7013/* end confdefs.h. */
7014#include <string.h>
7015
7016_ACEOF
7017if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7018 $EGREP "memchr" >/dev/null 2>&1; then
7019 :
7020else
7021 ac_cv_header_stdc=no
7022fi
7023rm -f conftest*
7024
7025fi
7026
7027if test $ac_cv_header_stdc = yes; then
7028 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7029 cat >conftest.$ac_ext <<_ACEOF
7030/* confdefs.h. */
7031_ACEOF
7032cat confdefs.h >>conftest.$ac_ext
7033cat >>conftest.$ac_ext <<_ACEOF
7034/* end confdefs.h. */
7035#include <stdlib.h>
7036
7037_ACEOF
7038if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7039 $EGREP "free" >/dev/null 2>&1; then
7040 :
7041else
7042 ac_cv_header_stdc=no
7043fi
7044rm -f conftest*
7045
7046fi
7047
7048if test $ac_cv_header_stdc = yes; then
7049 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7050 if test "$cross_compiling" = yes; then
7051 :
7052else
7053 cat >conftest.$ac_ext <<_ACEOF
7054/* confdefs.h. */
7055_ACEOF
7056cat confdefs.h >>conftest.$ac_ext
7057cat >>conftest.$ac_ext <<_ACEOF
7058/* end confdefs.h. */
7059#include <ctype.h>
7060#include <stdlib.h>
7061#if ((' ' & 0x0FF) == 0x020)
7062# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7063# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7064#else
7065# define ISLOWER(c) \
7066 (('a' <= (c) && (c) <= 'i') \
7067 || ('j' <= (c) && (c) <= 'r') \
7068 || ('s' <= (c) && (c) <= 'z'))
7069# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7070#endif
7071
7072#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7073int
7074main ()
7075{
7076 int i;
7077 for (i = 0; i < 256; i++)
7078 if (XOR (islower (i), ISLOWER (i))
7079 || toupper (i) != TOUPPER (i))
7080 return 2;
7081 return 0;
7082}
7083_ACEOF
7084rm -f conftest$ac_exeext
7085if { (ac_try="$ac_link"
7086case "(($ac_try" in
7087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7088 *) ac_try_echo=$ac_try;;
7089esac
7090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7091 (eval "$ac_link") 2>&5
7092 ac_status=$?
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7095 { (case "(($ac_try" in
7096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7097 *) ac_try_echo=$ac_try;;
7098esac
7099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7100 (eval "$ac_try") 2>&5
7101 ac_status=$?
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); }; }; then
7104 :
7105else
7106 echo "$as_me: program exited with status $ac_status" >&5
7107echo "$as_me: failed program was:" >&5
7108sed 's/^/| /' conftest.$ac_ext >&5
7109
7110( exit $ac_status )
7111ac_cv_header_stdc=no
7112fi
7113rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7114fi
7115
7116
7117fi
7118fi
7119{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7120echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7121if test $ac_cv_header_stdc = yes; then
7122
7123cat >>confdefs.h <<\_ACEOF
7124#define STDC_HEADERS 1
7125_ACEOF
7126
7127fi
7128
7129# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7140 inttypes.h stdint.h unistd.h
7141do
7142as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7143{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7144echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7145if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7147else
7148 cat >conftest.$ac_ext <<_ACEOF
7149/* confdefs.h. */
7150_ACEOF
7151cat confdefs.h >>conftest.$ac_ext
7152cat >>conftest.$ac_ext <<_ACEOF
7153/* end confdefs.h. */
7154$ac_includes_default
7155
7156#include <$ac_header>
7157_ACEOF
7158rm -f conftest.$ac_objext
7159if { (ac_try="$ac_compile"
7160case "(($ac_try" in
7161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7162 *) ac_try_echo=$ac_try;;
7163esac
7164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7165 (eval "$ac_compile") 2>conftest.er1
7166 ac_status=$?
7167 grep -v '^ *+' conftest.er1 >conftest.err
7168 rm -f conftest.er1
7169 cat conftest.err >&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); } && {
7172 test -z "$ac_cxx_werror_flag" ||
7173 test ! -s conftest.err
7174 } && test -s conftest.$ac_objext; then
7175 eval "$as_ac_Header=yes"
7176else
7177 echo "$as_me: failed program was:" >&5
7178sed 's/^/| /' conftest.$ac_ext >&5
7179
7180 eval "$as_ac_Header=no"
7181fi
7182
7183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7184fi
7185ac_res=`eval echo '${'$as_ac_Header'}'`
7186 { echo "$as_me:$LINENO: result: $ac_res" >&5
7187echo "${ECHO_T}$ac_res" >&6; }
7188if test `eval echo '${'$as_ac_Header'}'` = yes; then
7189 cat >>confdefs.h <<_ACEOF
7190#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7191_ACEOF
7192
7193fi
7194
7195done
7196
7197 7369
7198 7370
7199 7371
7200 7372
7201 7373
7368fi 7540fi
7369 7541
7370done 7542done
7371 7543
7372 7544
7373{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7374echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7375if test "${ac_cv_header_time+set}" = set; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
7377else
7378 cat >conftest.$ac_ext <<_ACEOF
7379/* confdefs.h. */
7380_ACEOF
7381cat confdefs.h >>conftest.$ac_ext
7382cat >>conftest.$ac_ext <<_ACEOF
7383/* end confdefs.h. */
7384#include <sys/types.h>
7385#include <sys/time.h>
7386#include <time.h>
7387
7388int
7389main ()
7390{
7391if ((struct tm *) 0)
7392return 0;
7393 ;
7394 return 0;
7395}
7396_ACEOF
7397rm -f conftest.$ac_objext
7398if { (ac_try="$ac_compile"
7399case "(($ac_try" in
7400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7401 *) ac_try_echo=$ac_try;;
7402esac
7403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7404 (eval "$ac_compile") 2>conftest.er1
7405 ac_status=$?
7406 grep -v '^ *+' conftest.er1 >conftest.err
7407 rm -f conftest.er1
7408 cat conftest.err >&5
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); } && {
7411 test -z "$ac_cxx_werror_flag" ||
7412 test ! -s conftest.err
7413 } && test -s conftest.$ac_objext; then
7414 ac_cv_header_time=yes
7415else
7416 echo "$as_me: failed program was:" >&5
7417sed 's/^/| /' conftest.$ac_ext >&5
7418
7419 ac_cv_header_time=no
7420fi
7421
7422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7423fi
7424{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7425echo "${ECHO_T}$ac_cv_header_time" >&6; }
7426if test $ac_cv_header_time = yes; then
7427
7428cat >>confdefs.h <<\_ACEOF
7429#define TIME_WITH_SYS_TIME 1
7430_ACEOF
7431
7432fi
7433
7434
7435{ 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
7436echo $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; }
7437if test "${rxvt_cv_header_sysioctl+set}" = set; then 7547if test "${rxvt_cv_header_sysioctl+set}" = set; then
7438 echo $ECHO_N "(cached) $ECHO_C" >&6 7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7439else 7549else
7484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7485fi 7595fi
7486{ echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5 7596{ echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7487echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6; } 7597echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6; }
7488 7598
7489if test -n "$GCC"; then
7490 LDARG="-Wl,"
7491else
7492 LDARG=""
7493fi
7494R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-rpath '$LDARG'\1/g'
7495
7496ac_save_CFLAGS=$CFLAGS
7497ac_save_LIBS=$LIBS
7498CFLAGS="$CFLAGS $X_CFLAGS"
7499LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7500{ echo "$as_me:$LINENO: checking for -rpath dynamic library path recording" >&5
7501echo $ECHO_N "checking for -rpath dynamic library path recording... $ECHO_C" >&6; }
7502if test "${rxvt_cv_rpath+set}" = set; then
7503 echo $ECHO_N "(cached) $ECHO_C" >&6
7504else
7505 if test "$cross_compiling" = yes; then
7506 { echo "$as_me:$LINENO: WARNING: You may need to check the LIBS line" >&5
7507echo "$as_me: WARNING: You may need to check the LIBS line" >&2;}
7508else
7509 cat >conftest.$ac_ext <<_ACEOF
7510/* confdefs.h. */
7511_ACEOF
7512cat confdefs.h >>conftest.$ac_ext
7513cat >>conftest.$ac_ext <<_ACEOF
7514/* end confdefs.h. */
7515#include <X11/Xlib.h>
7516#include <stdlib.h>
7517main()
7518{
7519 exit(0);
7520 (void) XOpenDisplay("foobar");
7521}
7522_ACEOF
7523rm -f conftest$ac_exeext
7524if { (ac_try="$ac_link"
7525case "(($ac_try" in
7526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7527 *) ac_try_echo=$ac_try;;
7528esac
7529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7530 (eval "$ac_link") 2>&5
7531 ac_status=$?
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7534 { (case "(($ac_try" in
7535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7536 *) ac_try_echo=$ac_try;;
7537esac
7538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7539 (eval "$ac_try") 2>&5
7540 ac_status=$?
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); }; }; then
7543 rxvt_cv_rpath=yes
7544else
7545 echo "$as_me: program exited with status $ac_status" >&5
7546echo "$as_me: failed program was:" >&5
7547sed 's/^/| /' conftest.$ac_ext >&5
7548
7549( exit $ac_status )
7550rxvt_cv_rpath=no
7551fi
7552rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7553fi
7554
7555
7556fi
7557{ echo "$as_me:$LINENO: result: $rxvt_cv_rpath" >&5
7558echo "${ECHO_T}$rxvt_cv_rpath" >&6; }
7559if test x$rxvt_cv_rpath != xyes; then
7560 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g'
7561 LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7562 { echo "$as_me:$LINENO: checking for -R dynamic library path recording" >&5
7563echo $ECHO_N "checking for -R dynamic library path recording... $ECHO_C" >&6; }
7564if test "${rxvt_cv_R+set}" = set; then
7565 echo $ECHO_N "(cached) $ECHO_C" >&6
7566else
7567 if test "$cross_compiling" = yes; then
7568 rxvt_cv_R=no
7569else
7570 cat >conftest.$ac_ext <<_ACEOF
7571/* confdefs.h. */
7572_ACEOF
7573cat confdefs.h >>conftest.$ac_ext
7574cat >>conftest.$ac_ext <<_ACEOF
7575/* end confdefs.h. */
7576#include <X11/Xlib.h>
7577#include <stdlib.h>
7578main()
7579{
7580 exit(0);
7581 (void) XOpenDisplay("foobar");
7582}
7583_ACEOF
7584rm -f conftest$ac_exeext
7585if { (ac_try="$ac_link"
7586case "(($ac_try" in
7587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7588 *) ac_try_echo=$ac_try;;
7589esac
7590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7591 (eval "$ac_link") 2>&5
7592 ac_status=$?
7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7595 { (case "(($ac_try" in
7596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7597 *) ac_try_echo=$ac_try;;
7598esac
7599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7600 (eval "$ac_try") 2>&5
7601 ac_status=$?
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); }; }; then
7604 rxvt_cv_R=yes
7605else
7606 echo "$as_me: program exited with status $ac_status" >&5
7607echo "$as_me: failed program was:" >&5
7608sed 's/^/| /' conftest.$ac_ext >&5
7609
7610( exit $ac_status )
7611rxvt_cv_R=no
7612fi
7613rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7614fi
7615
7616
7617fi
7618{ echo "$as_me:$LINENO: result: $rxvt_cv_R" >&5
7619echo "${ECHO_T}$rxvt_cv_R" >&6; }
7620 if test x$rxvt_cv_R != xyes; then
7621 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7622 fi
7623fi
7624
7625{ echo "$as_me:$LINENO: checking for XPointer" >&5 7599{ echo "$as_me:$LINENO: checking for XPointer" >&5
7626echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } 7600echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; }
7627if test "${rxvt_cv_xpointer+set}" = set; then 7601if test "${rxvt_cv_xpointer+set}" = set; then
7628 echo $ECHO_N "(cached) $ECHO_C" >&6 7602 echo $ECHO_N "(cached) $ECHO_C" >&6
7629else 7603else
7676cat >>confdefs.h <<\_ACEOF 7650cat >>confdefs.h <<\_ACEOF
7677#define HAVE_XPOINTER 1 7651#define HAVE_XPOINTER 1
7678_ACEOF 7652_ACEOF
7679 7653
7680fi 7654fi
7681LIBS=$ac_save_LIBS
7682CFLAGS=$ac_save_CFLAGS
7683 7655
7684{ echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5 7656{ echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5
7685echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6; } 7657echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6; }
7686if test "${rxvt_xlib_illegal_access+set}" = set; then 7658if test "${rxvt_xlib_illegal_access+set}" = set; then
7687 echo $ECHO_N "(cached) $ECHO_C" >&6 7659 echo $ECHO_N "(cached) $ECHO_C" >&6
7742cat >>confdefs.h <<\_ACEOF 7714cat >>confdefs.h <<\_ACEOF
7743#define XLIB_ILLEGAL_ACCESS 1 7715#define XLIB_ILLEGAL_ACCESS 1
7744_ACEOF 7716_ACEOF
7745 7717
7746fi 7718fi
7747
7748{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7749echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7750if test "${ac_cv_c_const+set}" = set; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7752else
7753 cat >conftest.$ac_ext <<_ACEOF
7754/* confdefs.h. */
7755_ACEOF
7756cat confdefs.h >>conftest.$ac_ext
7757cat >>conftest.$ac_ext <<_ACEOF
7758/* end confdefs.h. */
7759
7760int
7761main ()
7762{
7763/* FIXME: Include the comments suggested by Paul. */
7764#ifndef __cplusplus
7765 /* Ultrix mips cc rejects this. */
7766 typedef int charset[2];
7767 const charset cs;
7768 /* SunOS 4.1.1 cc rejects this. */
7769 char const *const *pcpcc;
7770 char **ppc;
7771 /* NEC SVR4.0.2 mips cc rejects this. */
7772 struct point {int x, y;};
7773 static struct point const zero = {0,0};
7774 /* AIX XL C 1.02.0.0 rejects this.
7775 It does not let you subtract one const X* pointer from another in
7776 an arm of an if-expression whose if-part is not a constant
7777 expression */
7778 const char *g = "string";
7779 pcpcc = &g + (g ? g-g : 0);
7780 /* HPUX 7.0 cc rejects these. */
7781 ++pcpcc;
7782 ppc = (char**) pcpcc;
7783 pcpcc = (char const *const *) ppc;
7784 { /* SCO 3.2v4 cc rejects this. */
7785 char *t;
7786 char const *s = 0 ? (char *) 0 : (char const *) 0;
7787
7788 *t++ = 0;
7789 if (s) return 0;
7790 }
7791 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7792 int x[] = {25, 17};
7793 const int *foo = &x[0];
7794 ++foo;
7795 }
7796 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7797 typedef const int *iptr;
7798 iptr p = 0;
7799 ++p;
7800 }
7801 { /* AIX XL C 1.02.0.0 rejects this saying
7802 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7803 struct s { int j; const int *ap[3]; };
7804 struct s *b; b->j = 5;
7805 }
7806 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7807 const int foo = 10;
7808 if (!foo) return 0;
7809 }
7810 return !cs[0] && !zero.x;
7811#endif
7812
7813 ;
7814 return 0;
7815}
7816_ACEOF
7817rm -f conftest.$ac_objext
7818if { (ac_try="$ac_compile"
7819case "(($ac_try" in
7820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7821 *) ac_try_echo=$ac_try;;
7822esac
7823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7824 (eval "$ac_compile") 2>conftest.er1
7825 ac_status=$?
7826 grep -v '^ *+' conftest.er1 >conftest.err
7827 rm -f conftest.er1
7828 cat conftest.err >&5
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); } && {
7831 test -z "$ac_cxx_werror_flag" ||
7832 test ! -s conftest.err
7833 } && test -s conftest.$ac_objext; then
7834 ac_cv_c_const=yes
7835else
7836 echo "$as_me: failed program was:" >&5
7837sed 's/^/| /' conftest.$ac_ext >&5
7838
7839 ac_cv_c_const=no
7840fi
7841
7842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7843fi
7844{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7845echo "${ECHO_T}$ac_cv_c_const" >&6; }
7846if test $ac_cv_c_const = no; then
7847
7848cat >>confdefs.h <<\_ACEOF
7849#define const
7850_ACEOF
7851
7852fi
7853
7854{ echo "$as_me:$LINENO: checking for inline" >&5
7855echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
7856if test "${ac_cv_c_inline+set}" = set; then
7857 echo $ECHO_N "(cached) $ECHO_C" >&6
7858else
7859 ac_cv_c_inline=no
7860for ac_kw in inline __inline__ __inline; do
7861 cat >conftest.$ac_ext <<_ACEOF
7862/* confdefs.h. */
7863_ACEOF
7864cat confdefs.h >>conftest.$ac_ext
7865cat >>conftest.$ac_ext <<_ACEOF
7866/* end confdefs.h. */
7867#ifndef __cplusplus
7868typedef int foo_t;
7869static $ac_kw foo_t static_foo () {return 0; }
7870$ac_kw foo_t foo () {return 0; }
7871#endif
7872
7873_ACEOF
7874rm -f conftest.$ac_objext
7875if { (ac_try="$ac_compile"
7876case "(($ac_try" in
7877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7878 *) ac_try_echo=$ac_try;;
7879esac
7880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7881 (eval "$ac_compile") 2>conftest.er1
7882 ac_status=$?
7883 grep -v '^ *+' conftest.er1 >conftest.err
7884 rm -f conftest.er1
7885 cat conftest.err >&5
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); } && {
7888 test -z "$ac_cxx_werror_flag" ||
7889 test ! -s conftest.err
7890 } && test -s conftest.$ac_objext; then
7891 ac_cv_c_inline=$ac_kw
7892else
7893 echo "$as_me: failed program was:" >&5
7894sed 's/^/| /' conftest.$ac_ext >&5
7895
7896
7897fi
7898
7899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7900 test "$ac_cv_c_inline" != no && break
7901done
7902
7903fi
7904{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7905echo "${ECHO_T}$ac_cv_c_inline" >&6; }
7906
7907
7908case $ac_cv_c_inline in
7909 inline | yes) ;;
7910 *)
7911 case $ac_cv_c_inline in
7912 no) ac_val=;;
7913 *) ac_val=$ac_cv_c_inline;;
7914 esac
7915 cat >>confdefs.h <<_ACEOF
7916#ifndef __cplusplus
7917#define inline $ac_val
7918#endif
7919_ACEOF
7920 ;;
7921esac
7922
7923
7924 7719
7925{ echo "$as_me:$LINENO: checking for mode_t" >&5 7720{ echo "$as_me:$LINENO: checking for mode_t" >&5
7926echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } 7721echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
7927if test "${ac_cv_type_mode_t+set}" = set; then 7722if test "${ac_cv_type_mode_t+set}" = set; then
7928 echo $ECHO_N "(cached) $ECHO_C" >&6 7723 echo $ECHO_N "(cached) $ECHO_C" >&6
10043 fi 9838 fi
10044fi 9839fi
10045 9840
10046 9841
10047 9842
10048{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10049echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
10050if test "${ac_cv_type_signal+set}" = set; then
10051 echo $ECHO_N "(cached) $ECHO_C" >&6
10052else
10053 cat >conftest.$ac_ext <<_ACEOF
10054/* confdefs.h. */
10055_ACEOF
10056cat confdefs.h >>conftest.$ac_ext
10057cat >>conftest.$ac_ext <<_ACEOF
10058/* end confdefs.h. */
10059#include <sys/types.h>
10060#include <signal.h>
10061 9843
10062int
10063main ()
10064{
10065return *(signal (0, 0)) (0) == 1;
10066 ;
10067 return 0;
10068}
10069_ACEOF
10070rm -f conftest.$ac_objext
10071if { (ac_try="$ac_compile"
10072case "(($ac_try" in
10073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10074 *) ac_try_echo=$ac_try;;
10075esac
10076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10077 (eval "$ac_compile") 2>conftest.er1
10078 ac_status=$?
10079 grep -v '^ *+' conftest.er1 >conftest.err
10080 rm -f conftest.er1
10081 cat conftest.err >&5
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); } && {
10084 test -z "$ac_cxx_werror_flag" ||
10085 test ! -s conftest.err
10086 } && test -s conftest.$ac_objext; then
10087 ac_cv_type_signal=int
10088else
10089 echo "$as_me: failed program was:" >&5
10090sed 's/^/| /' conftest.$ac_ext >&5
10091
10092 ac_cv_type_signal=void
10093fi
10094
10095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10096fi
10097{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10098echo "${ECHO_T}$ac_cv_type_signal" >&6; }
10099
10100cat >>confdefs.h <<_ACEOF
10101#define RETSIGTYPE $ac_cv_type_signal
10102_ACEOF
10103
10104
10105
10106
10107
10108
10109for ac_func in \ 9844for ac_func in unsetenv
10110 unsetenv \
10111 setutent \
10112 on_exit \
10113
10114do 9845do
10115as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9846as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10116{ echo "$as_me:$LINENO: checking for $ac_func" >&5 9847{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10117echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 9848echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10118if { 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
10257 9988
10258 9989
10259 9990
10260 9991
10261for ac_func in \ 9992for ac_func in \
10262 ttyslot \
10263 updwtmp \ 9993 updwtmp \
10264 updwtmpx \ 9994 updwtmpx \
9995 updlastlogx \
10265 9996
10266do 9997do
10267as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9998as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10268{ echo "$as_me:$LINENO: checking for $ac_func" >&5 9999{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10269echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10000echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10355fi 10086fi
10356done 10087done
10357 10088
10358 10089
10359 10090
10360
10361
10362for ac_header in \ 10091for ac_header in lastlog.h
10363 utmp.h \
10364 utmpx.h \
10365 lastlog.h \
10366
10367do 10092do
10368as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10093as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10369if { 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
10370 { echo "$as_me:$LINENO: checking for $ac_header" >&5 10095 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10371echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10096echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10502 10227
10503done 10228done
10504 10229
10505 10230
10506 10231
10507if 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
10508 { echo "$as_me:$LINENO: checking for utmp.h" >&5 10237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10509echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } 10238echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10510if test "${ac_cv_header_utmp_h+set}" = set; then 10239if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10511 echo $ECHO_N "(cached) $ECHO_C" >&6 10240 echo $ECHO_N "(cached) $ECHO_C" >&6
10512fi 10241fi
10242ac_res=`eval echo '${'$as_ac_Header'}'`
10513{ echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 10243 { echo "$as_me:$LINENO: result: $ac_res" >&5
10514echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } 10244echo "${ECHO_T}$ac_res" >&6; }
10515else 10245else
10516 # Is the header compilable? 10246 # Is the header compilable?
10517{ echo "$as_me:$LINENO: checking utmp.h usability" >&5 10247{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10518echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6; } 10248echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10519cat >conftest.$ac_ext <<_ACEOF 10249cat >conftest.$ac_ext <<_ACEOF
10520/* confdefs.h. */ 10250/* confdefs.h. */
10521_ACEOF 10251_ACEOF
10522cat confdefs.h >>conftest.$ac_ext 10252cat confdefs.h >>conftest.$ac_ext
10523cat >>conftest.$ac_ext <<_ACEOF 10253cat >>conftest.$ac_ext <<_ACEOF
10524/* end confdefs.h. */ 10254/* end confdefs.h. */
10525$ac_includes_default 10255$ac_includes_default
10526#include <utmp.h> 10256#include <$ac_header>
10527_ACEOF 10257_ACEOF
10528rm -f conftest.$ac_objext 10258rm -f conftest.$ac_objext
10529if { (ac_try="$ac_compile" 10259if { (ac_try="$ac_compile"
10530case "(($ac_try" in 10260case "(($ac_try" in
10531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10554{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10284{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10555echo "${ECHO_T}$ac_header_compiler" >&6; } 10285echo "${ECHO_T}$ac_header_compiler" >&6; }
10556 10286
10557# Is the header present? 10287# Is the header present?
10558{ echo "$as_me:$LINENO: checking utmp.h presence" >&5 10288{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10559echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6; } 10289echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10560cat >conftest.$ac_ext <<_ACEOF 10290cat >conftest.$ac_ext <<_ACEOF
10561/* confdefs.h. */ 10291/* confdefs.h. */
10562_ACEOF 10292_ACEOF
10563cat confdefs.h >>conftest.$ac_ext 10293cat confdefs.h >>conftest.$ac_ext
10564cat >>conftest.$ac_ext <<_ACEOF 10294cat >>conftest.$ac_ext <<_ACEOF
10565/* end confdefs.h. */ 10295/* end confdefs.h. */
10566#include <utmp.h> 10296#include <$ac_header>
10567_ACEOF 10297_ACEOF
10568if { (ac_try="$ac_cpp conftest.$ac_ext" 10298if { (ac_try="$ac_cpp conftest.$ac_ext"
10569case "(($ac_try" in 10299case "(($ac_try" in
10570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10571 *) ac_try_echo=$ac_try;; 10301 *) ac_try_echo=$ac_try;;
10594echo "${ECHO_T}$ac_header_preproc" >&6; } 10324echo "${ECHO_T}$ac_header_preproc" >&6; }
10595 10325
10596# So? What about this header? 10326# So? What about this header?
10597case $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
10598 yes:no: ) 10328 yes:no: )
10599 { 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
10600echo "$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;}
10601 { 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
10602echo "$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;}
10603 ac_header_preproc=yes 10333 ac_header_preproc=yes
10604 ;; 10334 ;;
10605 no:yes:* ) 10335 no:yes:* )
10606 { 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
10607echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;} 10337echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10608 { 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
10609echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;} 10339echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10610 { 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
10611echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;} 10341echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10612 { 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
10613echo "$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;}
10614 { 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
10615echo "$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;}
10616 { 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
10617echo "$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;}
10618 10348
10619 ;; 10349 ;;
10620esac 10350esac
10621{ echo "$as_me:$LINENO: checking for utmp.h" >&5 10351{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10622echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } 10352echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10623if test "${ac_cv_header_utmp_h+set}" = set; then 10353if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10624 echo $ECHO_N "(cached) $ECHO_C" >&6 10354 echo $ECHO_N "(cached) $ECHO_C" >&6
10625else 10355else
10626 ac_cv_header_utmp_h=$ac_header_preproc 10356 eval "$as_ac_Header=\$ac_header_preproc"
10627fi 10357fi
10358ac_res=`eval echo '${'$as_ac_Header'}'`
10628{ echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 10359 { echo "$as_me:$LINENO: result: $ac_res" >&5
10629echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } 10360echo "${ECHO_T}$ac_res" >&6; }
10630 10361
10631fi 10362fi
10632if 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
10633 { echo "$as_me:$LINENO: checking for struct utmp" >&5 10367 { echo "$as_me:$LINENO: checking for struct utmp" >&5
10634echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; } 10368echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; }
10635if test "${struct_utmp+set}" = set; then 10369if test "${struct_utmp+set}" = set; then
10636 echo $ECHO_N "(cached) $ECHO_C" >&6 10370 echo $ECHO_N "(cached) $ECHO_C" >&6
10637else 10371else
10638 cat >conftest.$ac_ext <<_ACEOF 10372 cat >conftest.$ac_ext <<_ACEOF
10805 10539
10806fi 10540fi
10807 10541
10808fi 10542fi
10809 10543
10544done
10810 10545
10811 10546
10812if 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
10813 { echo "$as_me:$LINENO: checking for utmpx.h" >&5 10552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10814echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } 10553echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10815if test "${ac_cv_header_utmpx_h+set}" = set; then 10554if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10816 echo $ECHO_N "(cached) $ECHO_C" >&6 10555 echo $ECHO_N "(cached) $ECHO_C" >&6
10817fi 10556fi
10557ac_res=`eval echo '${'$as_ac_Header'}'`
10818{ echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 10558 { echo "$as_me:$LINENO: result: $ac_res" >&5
10819echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } 10559echo "${ECHO_T}$ac_res" >&6; }
10820else 10560else
10821 # Is the header compilable? 10561 # Is the header compilable?
10822{ echo "$as_me:$LINENO: checking utmpx.h usability" >&5 10562{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10823echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6; } 10563echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10824cat >conftest.$ac_ext <<_ACEOF 10564cat >conftest.$ac_ext <<_ACEOF
10825/* confdefs.h. */ 10565/* confdefs.h. */
10826_ACEOF 10566_ACEOF
10827cat confdefs.h >>conftest.$ac_ext 10567cat confdefs.h >>conftest.$ac_ext
10828cat >>conftest.$ac_ext <<_ACEOF 10568cat >>conftest.$ac_ext <<_ACEOF
10829/* end confdefs.h. */ 10569/* end confdefs.h. */
10830$ac_includes_default 10570$ac_includes_default
10831#include <utmpx.h> 10571#include <$ac_header>
10832_ACEOF 10572_ACEOF
10833rm -f conftest.$ac_objext 10573rm -f conftest.$ac_objext
10834if { (ac_try="$ac_compile" 10574if { (ac_try="$ac_compile"
10835case "(($ac_try" in 10575case "(($ac_try" in
10836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10859{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10599{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10860echo "${ECHO_T}$ac_header_compiler" >&6; } 10600echo "${ECHO_T}$ac_header_compiler" >&6; }
10861 10601
10862# Is the header present? 10602# Is the header present?
10863{ echo "$as_me:$LINENO: checking utmpx.h presence" >&5 10603{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10864echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6; } 10604echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10865cat >conftest.$ac_ext <<_ACEOF 10605cat >conftest.$ac_ext <<_ACEOF
10866/* confdefs.h. */ 10606/* confdefs.h. */
10867_ACEOF 10607_ACEOF
10868cat confdefs.h >>conftest.$ac_ext 10608cat confdefs.h >>conftest.$ac_ext
10869cat >>conftest.$ac_ext <<_ACEOF 10609cat >>conftest.$ac_ext <<_ACEOF
10870/* end confdefs.h. */ 10610/* end confdefs.h. */
10871#include <utmpx.h> 10611#include <$ac_header>
10872_ACEOF 10612_ACEOF
10873if { (ac_try="$ac_cpp conftest.$ac_ext" 10613if { (ac_try="$ac_cpp conftest.$ac_ext"
10874case "(($ac_try" in 10614case "(($ac_try" in
10875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10876 *) ac_try_echo=$ac_try;; 10616 *) ac_try_echo=$ac_try;;
10899echo "${ECHO_T}$ac_header_preproc" >&6; } 10639echo "${ECHO_T}$ac_header_preproc" >&6; }
10900 10640
10901# So? What about this header? 10641# So? What about this header?
10902case $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
10903 yes:no: ) 10643 yes:no: )
10904 { 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
10905echo "$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;}
10906 { 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
10907echo "$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;}
10908 ac_header_preproc=yes 10648 ac_header_preproc=yes
10909 ;; 10649 ;;
10910 no:yes:* ) 10650 no:yes:* )
10911 { 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
10912echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;} 10652echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10913 { 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
10914echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;} 10654echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10915 { 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
10916echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;} 10656echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10917 { 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
10918echo "$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;}
10919 { 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
10920echo "$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;}
10921 { 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
10922echo "$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;}
10923 10663
10924 ;; 10664 ;;
10925esac 10665esac
10926{ echo "$as_me:$LINENO: checking for utmpx.h" >&5 10666{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10927echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } 10667echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10928if test "${ac_cv_header_utmpx_h+set}" = set; then 10668if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10929 echo $ECHO_N "(cached) $ECHO_C" >&6 10669 echo $ECHO_N "(cached) $ECHO_C" >&6
10930else 10670else
10931 ac_cv_header_utmpx_h=$ac_header_preproc 10671 eval "$as_ac_Header=\$ac_header_preproc"
10932fi 10672fi
10673ac_res=`eval echo '${'$as_ac_Header'}'`
10933{ echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 10674 { echo "$as_me:$LINENO: result: $ac_res" >&5
10934echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } 10675echo "${ECHO_T}$ac_res" >&6; }
10935 10676
10936fi 10677fi
10937if 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
10938 { echo "$as_me:$LINENO: checking for struct utmpx" >&5 10682 { echo "$as_me:$LINENO: checking for struct utmpx" >&5
10939echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; } 10683echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; }
10940if test "${struct_utmpx+set}" = set; then 10684if test "${struct_utmpx+set}" = set; then
10941 echo $ECHO_N "(cached) $ECHO_C" >&6 10685 echo $ECHO_N "(cached) $ECHO_C" >&6
10942else 10686else
10943 cat >conftest.$ac_ext <<_ACEOF 10687 cat >conftest.$ac_ext <<_ACEOF
11110 10854
11111fi 10855fi
11112 10856
11113fi 10857fi
11114 10858
10859done
11115 10860
11116{ echo "$as_me:$LINENO: checking for struct lastlog" >&5 10861{ echo "$as_me:$LINENO: checking for struct lastlog" >&5
11117echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } 10862echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; }
11118if test "${struct_lastlog+set}" = set; then 10863if test "${struct_lastlog+set}" = set; then
11119 echo $ECHO_N "(cached) $ECHO_C" >&6 10864 echo $ECHO_N "(cached) $ECHO_C" >&6
11690 11435
11691cat >>confdefs.h <<_ACEOF 11436cat >>confdefs.h <<_ACEOF
11692#define LASTLOG_FILE "$path_lastlog" 11437#define LASTLOG_FILE "$path_lastlog"
11693_ACEOF 11438_ACEOF
11694 11439
11695 if test -d "$path_lastlog"; then
11696
11697cat >>confdefs.h <<\_ACEOF
11698#define LASTLOG_IS_DIR 1
11699_ACEOF
11700
11701 fi
11702fi 11440fi
11703 11441
11704{ echo "$as_me:$LINENO: checking where lastlogx is located" >&5 11442{ echo "$as_me:$LINENO: checking where lastlogx is located" >&5
11705echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } 11443echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; }
11706if test "${path_lastlogx+set}" = set; then 11444if test "${path_lastlogx+set}" = set; then
11788 11526
11789fi 11527fi
11790 11528
11791 11529
11792 11530
11793{ echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
11794echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6; }
11795if test "${rxvt_cv_path_ttytab+set}" = set; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
11797else
11798 for ttys_file in /etc/ttys /etc/ttytab;
11799do
11800 if test -f "$ttys_file" ; then
11801 rxvt_cv_path_ttytab=$ttys_file
11802 break
11803 fi
11804done
11805 11531
11806fi
11807{ echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
11808echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6; }
11809if test x$rxvt_cv_path_ttytab != x; then
11810
11811cat >>confdefs.h <<_ACEOF
11812#define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
11813_ACEOF
11814
11815fi
11816
11817
11818ac_save_LIBS=$LIBS 11532save_LIBS=$LIBS
11819ac_save_CFLAGS=$CFLAGS 11533save_CFLAGS=$CFLAGS
11820CFLAGS="$CFLAGS $X_CFLAGS" 11534CFLAGS="$CFLAGS $X_CFLAGS"
11821LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 11535LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
11822if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then 11536if test x$support_xim = xyes; then
11823 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
11824fi
11825{ echo "$as_me:$LINENO: checking for working Xlocale" >&5 11537 { echo "$as_me:$LINENO: checking for working Xlocale" >&5
11826echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } 11538echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; }
11827if test "${rxvt_cv_func_xlocale+set}" = set; then 11539if test "${rxvt_cv_func_xlocale+set}" = set; then
11828 echo $ECHO_N "(cached) $ECHO_C" >&6 11540 echo $ECHO_N "(cached) $ECHO_C" >&6
11829else 11541else
11830 if test "$cross_compiling" = yes; then 11542 if test "$cross_compiling" = yes; then
11831 : 11543 :
11832else 11544else
11833 cat >conftest.$ac_ext <<_ACEOF 11545 cat >conftest.$ac_ext <<_ACEOF
11834/* confdefs.h. */ 11546/* confdefs.h. */
11835_ACEOF 11547_ACEOF
11836cat confdefs.h >>conftest.$ac_ext 11548cat confdefs.h >>conftest.$ac_ext
11837cat >>conftest.$ac_ext <<_ACEOF 11549cat >>conftest.$ac_ext <<_ACEOF
11838/* end confdefs.h. */ 11550/* end confdefs.h. */
11839#include <X11/Xlib.h> 11551#include <X11/Xlib.h>
11840#include <stdlib.h> 11552 #include <stdlib.h>
11841main() { 11553 main() {
11842char *p; 11554 char *p;
11843if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) 11555 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
11844exit (XSupportsLocale() ? 0 : 1); 11556 exit (XSupportsLocale() ? 0 : 1);
11845else 11557 else
11846exit (1);} 11558 exit (1);}
11847_ACEOF 11559_ACEOF
11848rm -f conftest$ac_exeext 11560rm -f conftest$ac_exeext
11849if { (ac_try="$ac_link" 11561if { (ac_try="$ac_link"
11850case "(($ac_try" in 11562case "(($ac_try" in
11851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11864 (eval "$ac_try") 2>&5 11576 (eval "$ac_try") 2>&5
11865 ac_status=$? 11577 ac_status=$?
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); }; }; then 11579 (exit $ac_status); }; }; then
11868 rxvt_cv_func_xlocale=yes 11580 rxvt_cv_func_xlocale=yes
11869else 11581else
11870 echo "$as_me: program exited with status $ac_status" >&5 11582 echo "$as_me: program exited with status $ac_status" >&5
11871echo "$as_me: failed program was:" >&5 11583echo "$as_me: failed program was:" >&5
11872sed 's/^/| /' conftest.$ac_ext >&5 11584sed 's/^/| /' conftest.$ac_ext >&5
11873 11585
11879 11591
11880 11592
11881fi 11593fi
11882{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 11594{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
11883echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; } 11595echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; }
11884if test x$support_xim = xyes; then
11885 if test x$rxvt_cv_func_xlocale = xyes; then 11596 if test x$rxvt_cv_func_xlocale = xyes; then
11886 11597
11887cat >>confdefs.h <<\_ACEOF 11598cat >>confdefs.h <<\_ACEOF
11888#define USE_XIM 1 11599#define USE_XIM 1
11889_ACEOF 11600_ACEOF
11890 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
11891 fi 11656 fi
11892fi 11657fi
11893 11658
11894{ echo "$as_me:$LINENO: checking for working X setlocale" >&5 11659{ echo "$as_me:$LINENO: checking for working X setlocale" >&5
11895echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; } 11660echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; }
11948cat >>confdefs.h <<\_ACEOF 11713cat >>confdefs.h <<\_ACEOF
11949#define HAVE_XSETLOCALE 1 11714#define HAVE_XSETLOCALE 1
11950_ACEOF 11715_ACEOF
11951 11716
11952fi 11717fi
11953LIBS=$ac_save_LIBS 11718LIBS=$save_LIBS
11954CFLAGS=$ac_save_CFLAGS 11719CFLAGS=$save_CFLAGS
11955 11720
11956{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5 11721{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5
11957echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } 11722echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; }
11958if test "${rxvt_cv_func_setlocale+set}" = set; then 11723if test "${rxvt_cv_func_setlocale+set}" = set; then
11959 echo $ECHO_N "(cached) $ECHO_C" >&6 11724 echo $ECHO_N "(cached) $ECHO_C" >&6
12162 { { 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
12163echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} 11928echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;}
12164 { (exit 1); exit 1; }; } 11929 { (exit 1); exit 1; }; }
12165fi 11930fi
12166 11931
12167
12168{ echo "$as_me:$LINENO: checking for broken XIM callback" >&5
12169echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; }
12170if test "${rxvt_broken_ximcb+set}" = set; then
12171 echo $ECHO_N "(cached) $ECHO_C" >&6
12172else
12173 cat >conftest.$ac_ext <<_ACEOF
12174
12175#include <X11/Xlib.h>
12176
12177void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
12178
12179void f() {
12180 XIMCallback cb;
12181 cb.callback = im_destroy_cb;
12182}
12183
12184_ACEOF
12185rm -f conftest.$ac_objext
12186if { (ac_try="$ac_compile"
12187case "(($ac_try" in
12188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12189 *) ac_try_echo=$ac_try;;
12190esac
12191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12192 (eval "$ac_compile") 2>conftest.er1
12193 ac_status=$?
12194 grep -v '^ *+' conftest.er1 >conftest.err
12195 rm -f conftest.er1
12196 cat conftest.err >&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); } && {
12199 test -z "$ac_cxx_werror_flag" ||
12200 test ! -s conftest.err
12201 } && test -s conftest.$ac_objext; then
12202 rxvt_broken_ximcb=yes
12203else
12204 echo "$as_me: failed program was:" >&5
12205sed 's/^/| /' conftest.$ac_ext >&5
12206
12207 rxvt_broken_ximcb=no
12208fi
12209
12210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12211fi
12212{ echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
12213echo "${ECHO_T}$rxvt_broken_ximcb" >&6; }
12214
12215if test x$rxvt_broken_ximcb = xyes; then
12216
12217cat >>confdefs.h <<\_ACEOF
12218#define XIMCB_PROTO_BROKEN 1
12219_ACEOF
12220
12221fi
12222 11932
12223 11933
12224 11934
12225 11935
12226 11936
12907echo "${ECHO_T}no" >&6; } 12617echo "${ECHO_T}no" >&6; }
12908fi 12618fi
12909 12619
12910 12620
12911 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then 12621 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
12912 LIBS="$LIBS `$PKG_CONFIG xft --libs`" 12622 X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS"
12913 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" 12623 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
12914 else 12624 else
12915 # 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.
12916set dummy xft-config; ac_word=$2 12626set dummy xft-config; ac_word=$2
12917{ echo "$as_me:$LINENO: checking for $ac_word" >&5 12627{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12952echo "${ECHO_T}no" >&6; } 12662echo "${ECHO_T}no" >&6; }
12953fi 12663fi
12954 12664
12955 12665
12956 if test $XFT_CONFIG != no; then 12666 if test $XFT_CONFIG != no; then
12957 LIBS="$LIBS `$XFT_CONFIG --libs`" 12667 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
12958 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" 12668 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
12959 fi 12669 fi
12960 fi 12670 fi
12961 12671
12672 save_LIBS="$LIBS"
12673 LIBS="$LIBS $X_LIBS"
12962 12674
12963for ac_header in X11/Xft/Xft.h 12675for ac_header in X11/Xft/Xft.h
12964do 12676do
12965as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12677as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12966if { 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
13099 support_xft=no 12811 support_xft=no
13100fi 12812fi
13101 12813
13102done 12814done
13103 12815
13104
13105{ echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 12816 { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
13106echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } 12817echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; }
13107if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then 12818if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then
13108 echo $ECHO_N "(cached) $ECHO_C" >&6 12819 echo $ECHO_N "(cached) $ECHO_C" >&6
13109else 12820else
13110 ac_check_lib_save_LIBS=$LIBS 12821 ac_check_lib_save_LIBS=$LIBS
13162LIBS=$ac_check_lib_save_LIBS 12873LIBS=$ac_check_lib_save_LIBS
13163fi 12874fi
13164{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 12875{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
13165echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } 12876echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; }
13166if test $ac_cv_lib_Xft_XftDrawString32 = yes; then 12877if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
13167 cat >>confdefs.h <<_ACEOF 12878 :
13168#define HAVE_LIBXFT 1
13169_ACEOF
13170
13171 LIBS="-lXft $LIBS"
13172
13173else 12879else
13174 support_xft=no 12880 support_xft=no
13175fi 12881fi
13176 12882
12883 LIBS="$save_LIBS"
13177 12884
13178 if test x$support_xft = xyes; then 12885 if test x$support_xft = xyes; then
13179 12886
13180cat >>confdefs.h <<\_ACEOF 12887cat >>confdefs.h <<\_ACEOF
13181#define XFT 1 12888#define XFT 1
13209cat >>confdefs.h <<\_ACEOF 12916cat >>confdefs.h <<\_ACEOF
13210#define OFF_FOCUS_FADING 1 12917#define OFF_FOCUS_FADING 1
13211_ACEOF 12918_ACEOF
13212 12919
13213fi 12920fi
13214if test x$support_tinting = xyes; then
13215
13216cat >>confdefs.h <<\_ACEOF
13217#define TINTING 1
13218_ACEOF
13219
13220fi
13221if test x$support_inheritpixmap = xyes; then 12921if test x$support_inheritpixmap = xyes; then
13222 12922
13223cat >>confdefs.h <<\_ACEOF 12923cat >>confdefs.h <<\_ACEOF
13224#define ENABLE_TRANSPARENCY 1 12924#define ENABLE_TRANSPARENCY 1
13225_ACEOF 12925_ACEOF
13258cat >>confdefs.h <<\_ACEOF 12958cat >>confdefs.h <<\_ACEOF
13259#define MOUSE_SLIP_WHEELING 1 12959#define MOUSE_SLIP_WHEELING 1
13260_ACEOF 12960_ACEOF
13261 12961
13262fi 12962fi
13263if test x$support_xpm = xyes -o x$support_afterimage = xyes ; then
13264
13265cat >>confdefs.h <<\_ACEOF
13266#define XPM_BACKGROUND 1
13267_ACEOF
13268
13269fi
13270
13271if test x$support_afterimage = xyes; then 12963if test x$support_afterimage = xyes; then
13272 12964
13273cat >>confdefs.h <<\_ACEOF 12965cat >>confdefs.h <<\_ACEOF
13274#define HAVE_AFTERIMAGE 1 12966#define HAVE_AFTERIMAGE 1
13275_ACEOF 12967_ACEOF
13276 12968
13277fi
13278
13279if test x$support_afterstep = xyes; then
13280 12969
13281cat >>confdefs.h <<\_ACEOF 12970cat >>confdefs.h <<\_ACEOF
13282#define AFTERSTEP_INTEGRATION 1 12971#define BG_IMAGE_FROM_FILE 1
13283_ACEOF 12972_ACEOF
13284 12973
13285fi 12974fi
12975
13286 12976
13287if test x$support_scroll_rxvt = xyes; then 12977if test x$support_scroll_rxvt = xyes; then
13288 12978
13289cat >>confdefs.h <<\_ACEOF 12979cat >>confdefs.h <<\_ACEOF
13290#define RXVT_SCROLLBAR 1 12980#define RXVT_SCROLLBAR 1
13559 13249
13560 13250
13561 13251
13562 13252
13563 13253
13564if test x$support_perl = xyes; then
13565 support_frills=yes
13566fi
13567 13254
13568 13255
13569 13256
13570 13257
13571 13258
13572
13573if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
13574 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
13575 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
13576 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
13577 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
13578fi
13579 13259
13580 13260
13581 13261
13582 13262
13583 13263
14332host_cpu!$host_cpu$ac_delim 14012host_cpu!$host_cpu$ac_delim
14333host_vendor!$host_vendor$ac_delim 14013host_vendor!$host_vendor$ac_delim
14334host_os!$host_os$ac_delim 14014host_os!$host_os$ac_delim
14335VERSION!$VERSION$ac_delim 14015VERSION!$VERSION$ac_delim
14336DATE!$DATE$ac_delim 14016DATE!$DATE$ac_delim
14337LSMDATE!$LSMDATE$ac_delim
14338LIBVERSION!$LIBVERSION$ac_delim
14339CC!$CC$ac_delim 14017CC!$CC$ac_delim
14340CFLAGS!$CFLAGS$ac_delim 14018CFLAGS!$CFLAGS$ac_delim
14341LDFLAGS!$LDFLAGS$ac_delim 14019LDFLAGS!$LDFLAGS$ac_delim
14342CPPFLAGS!$CPPFLAGS$ac_delim 14020CPPFLAGS!$CPPFLAGS$ac_delim
14343ac_ct_CC!$ac_ct_CC$ac_delim 14021ac_ct_CC!$ac_ct_CC$ac_delim
14351INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 14029INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14352INSTALL_DATA!$INSTALL_DATA$ac_delim 14030INSTALL_DATA!$INSTALL_DATA$ac_delim
14353GREP!$GREP$ac_delim 14031GREP!$GREP$ac_delim
14354EGREP!$EGREP$ac_delim 14032EGREP!$EGREP$ac_delim
14355LINKER!$LINKER$ac_delim 14033LINKER!$LINKER$ac_delim
14356CXXLIB!$CXXLIB$ac_delim
14357INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim
14358RXVTNAME!$RXVTNAME$ac_delim 14034RXVTNAME!$RXVTNAME$ac_delim
14035CXXCPP!$CXXCPP$ac_delim
14359TIC!$TIC$ac_delim 14036TIC!$TIC$ac_delim
14360XMKMF!$XMKMF$ac_delim 14037XMKMF!$XMKMF$ac_delim
14361CXXCPP!$CXXCPP$ac_delim
14362X_CFLAGS!$X_CFLAGS$ac_delim 14038X_CFLAGS!$X_CFLAGS$ac_delim
14363X_PRE_LIBS!$X_PRE_LIBS$ac_delim 14039X_PRE_LIBS!$X_PRE_LIBS$ac_delim
14364X_LIBS!$X_LIBS$ac_delim 14040X_LIBS!$X_LIBS$ac_delim
14365X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim 14041X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
14366afterimage_config!$afterimage_config$ac_delim 14042afterimage_config!$afterimage_config$ac_delim
14367XPM_CPPFLAGS!$XPM_CPPFLAGS$ac_delim
14368XPM_CFLAGS!$XPM_CFLAGS$ac_delim
14369XPM_LIBS!$XPM_LIBS$ac_delim
14370rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim 14043rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim
14371rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim 14044rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim
14372rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim 14045rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim
14373rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim 14046rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim
14374rxvt_intp_define!$rxvt_intp_define$ac_delim 14047rxvt_intp_define!$rxvt_intp_define$ac_delim
14379PERLLIB!$PERLLIB$ac_delim 14052PERLLIB!$PERLLIB$ac_delim
14380PERLFLAGS!$PERLFLAGS$ac_delim 14053PERLFLAGS!$PERLFLAGS$ac_delim
14381PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim 14054PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim
14382IF_PERL!$IF_PERL$ac_delim 14055IF_PERL!$IF_PERL$ac_delim
14383PERL_O!$PERL_O$ac_delim 14056PERL_O!$PERL_O$ac_delim
14384LIBAFTERIMAGE_CFLAGS!$LIBAFTERIMAGE_CFLAGS$ac_delim 14057AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim
14385AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim 14058AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim
14386include_stdint_h!$include_stdint_h$ac_delim 14059include_stdint_h!$include_stdint_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
14387_ACEOF 14067_ACEOF
14388 14068
14389 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
14390 break 14070 break
14391 elif $ac_last_try; then 14071 elif $ac_last_try; then
14423 14103
14424 14104
14425ac_delim='%!_!# ' 14105ac_delim='%!_!# '
14426for ac_last_try in false false false false false :; do 14106for ac_last_try in false false false false false :; do
14427 cat >conf$$subs.sed <<_ACEOF 14107 cat >conf$$subs.sed <<_ACEOF
14428include_stdarg_h!$include_stdarg_h$ac_delim
14429include_stdlib_h!$include_stdlib_h$ac_delim
14430include_unistd_h!$include_unistd_h$ac_delim
14431include_string_h!$include_string_h$ac_delim
14432include_fcntl_h!$include_fcntl_h$ac_delim
14433include_util_h!$include_util_h$ac_delim
14434include_assert_h!$include_assert_h$ac_delim
14435include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim 14108include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim
14436include_sys_select_h!$include_sys_select_h$ac_delim 14109include_sys_select_h!$include_sys_select_h$ac_delim
14437include_sys_strredir_h!$include_sys_strredir_h$ac_delim 14110include_sys_strredir_h!$include_sys_strredir_h$ac_delim
14438include_sys_time_h!$include_sys_time_h$ac_delim 14111include_sys_time_h!$include_sys_time_h$ac_delim
14439include_time_h!$include_time_h$ac_delim 14112include_time_h!$include_time_h$ac_delim
14440LIBOBJS!$LIBOBJS$ac_delim 14113LIBOBJS!$LIBOBJS$ac_delim
14441LTLIBOBJS!$LTLIBOBJS$ac_delim 14114LTLIBOBJS!$LTLIBOBJS$ac_delim
14442_ACEOF 14115_ACEOF
14443 14116
14444 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then 14117 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
14445 break 14118 break
14446 elif $ac_last_try; then 14119 elif $ac_last_try; then
14447 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14120 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14448echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14121echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14449 { (exit 1); exit 1; }; } 14122 { (exit 1); exit 1; }; }
14878 Install path: ${prefix}/bin 14551 Install path: ${prefix}/bin
14879 Compiler: $CXX 14552 Compiler: $CXX
14880 Compiler flags: $CXXFLAGS 14553 Compiler flags: $CXXFLAGS
14881 Linker: $LINKER" 14554 Linker: $LINKER"
14882 14555
14883if test x$support_xpm = xyes; then
14884 echo " Xpm library: $XPM_LIBS"
14885fi
14886
14887if test x$support_afterimage = xyes; then
14888 echo " AfterImage support: yes"
14889fi
14890
14891if test x$support_afterstep = xyes; then
14892 echo " AfterStep integration: yes"
14893fi
14894
14895if test x$term != x; then 14556if test x$term != x; then
14896 echo " set TERM to: $term" 14557 echo " set TERM to: $term"
14897fi 14558fi
14898if test x$terminfo != x; then 14559if test x$terminfo != x; then
14899 echo " set TERMINFO to: $terminfo" 14560 echo " set TERMINFO to: $terminfo"
14903if test x$RESFALLBACK != x; then 14564if test x$RESFALLBACK != x; then
14904 echo " resource class fallback: $RESFALLBACK" 14565 echo " resource class fallback: $RESFALLBACK"
14905fi 14566fi
14906echo 14567echo
14907echo " embedded perl: $support_perl" 14568echo " embedded perl: $support_perl"
14569echo " libafterimage: $support_afterimage"
14908echo 14570echo
14909if test x$support_xpm = xneedsmanualspecification; then
14910 echo ".----------------------------------------------------------------."
14911 echo ". WARNING: --enable-xpm-background was specified however the ."
14912 echo ". XPM includes files and libraries could not be found. ."
14913 echo ". XPM backgrounds are now being DISABLED! If you want ."
14914 echo ". to use them you should rerun configure with the ."
14915 echo ". appropriate --with-xpm-includes=/path/to/xpm/includes ."
14916 echo ". and --with-xpm-library=/path/to/xpm/library lines. ."
14917 echo ".----------------------------------------------------------------."
14918fi
14919if 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
14920 echo ".----------------------------------------------------------------." 14572 echo ".----------------------------------------------------------------."
14921 echo ". WARNING: --enable-xim was specified however the locale support ." 14573 echo ". WARNING: --enable-xim was specified however the locale support ."
14922 echo ". functions could not be found. ." 14574 echo ". functions could not be found. ."
14923 echo ". XIM is now being DISABLED! ." 14575 echo ". XIM is now being DISABLED! ."

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines