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

Comparing rxvt-unicode/configure (file contents):
Revision 1.103 by root, Sat Jun 9 13:04:27 2007 UTC vs.
Revision 1.118 by root, Sun Nov 18 01:31:38 2007 UTC

679GREP 679GREP
680EGREP 680EGREP
681LINKER 681LINKER
682INSTALL_LIBRXVT 682INSTALL_LIBRXVT
683RXVTNAME 683RXVTNAME
684MV 684CXXCPP
685CP
686LN
687SED
688ECHO
689CMP
690TIC 685TIC
691XMKMF 686XMKMF
692CXXCPP
693X_CFLAGS 687X_CFLAGS
694X_PRE_LIBS 688X_PRE_LIBS
695X_LIBS 689X_LIBS
696X_EXTRA_LIBS 690X_EXTRA_LIBS
697afterimage_config 691afterimage_config
698XPM_CPPFLAGS
699XPM_CFLAGS
700XPM_LIBS
701rxvt_int16_typedef 692rxvt_int16_typedef
702rxvt_uint16_typedef 693rxvt_uint16_typedef
703rxvt_int32_typedef 694rxvt_int32_typedef
704rxvt_uint32_typedef 695rxvt_uint32_typedef
705rxvt_intp_define 696rxvt_intp_define
710PERLLIB 701PERLLIB
711PERLFLAGS 702PERLFLAGS
712PERLPRIVLIBEXP 703PERLPRIVLIBEXP
713IF_PERL 704IF_PERL
714PERL_O 705PERL_O
715DEBUG
716DINCLUDE
717DLIB
718LIBAFTERIMAGE_CFLAGS 706AFTERIMAGE_CFLAGS
719AFTERIMAGE_LIBS 707AFTERIMAGE_LIBS
720include_stdint_h 708include_stdint_h
721include_stdarg_h 709include_stdarg_h
722include_stdlib_h 710include_stdlib_h
723include_unistd_h 711include_unistd_h
743CPPFLAGS 731CPPFLAGS
744CXX 732CXX
745CXXFLAGS 733CXXFLAGS
746CCC 734CCC
747CPP 735CPP
748XMKMF
749CXXCPP' 736CXXCPP
737XMKMF'
750 738
751 739
752# Initialize some variables set by options. 740# Initialize some variables set by options.
753ac_init_help= 741ac_init_help=
754ac_init_version=false 742ac_init_version=false
1329 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1317 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1330 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1318 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1331 --enable-everything enable standard non-multichoice features 1319 --enable-everything enable standard non-multichoice features
1332 NOTE: this option is order dependent 1320 NOTE: this option is order dependent
1333 NOTE: automatically enabled with --enable-shared 1321 NOTE: automatically enabled with --enable-shared
1322 --enable-warnings turn on g++ warnings
1334 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters 1323 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1335 --enable-combining enable composition of base and combining characters 1324 --enable-combining enable composition of base and combining characters
1336 --enable-xft enable xft support on systems that have it 1325 --enable-xft enable xft support on systems that have it
1337 --enable-font-styles enable bold and italic support 1326 --enable-font-styles enable bold and italic support
1338 --enable-xpm-background enable background pixmaps
1339 --enable-afterimage enable integration with libAfterImage for background images 1327 --enable-afterimage enable integration with libAfterImage for background images
1340 --enable-afterstep enable integration with AfterStep window manager
1341 --enable-transparency enable transparent backgrounds 1328 --enable-transparency enable transparent backgrounds
1342 --enable-tinting enable tinting of transparent bg
1343 --enable-fading enable colors fading when off focus 1329 --enable-fading enable colors fading when off focus
1344 --enable-rxvt-scroll enable rxvt style scrollbar 1330 --enable-rxvt-scroll enable rxvt style scrollbar
1345 --enable-next-scroll enable NeXT style scrollbar 1331 --enable-next-scroll enable NeXT style scrollbar
1346 --enable-xterm-scroll enable Xterm style scrollbar 1332 --enable-xterm-scroll enable Xterm style scrollbar
1347 --enable-perl enable embedded perl interpreter 1333 --enable-perl enable embedded perl interpreter
1349 --enable-xim XIM (X Input Method) protocol support 1335 --enable-xim XIM (X Input Method) protocol support
1350 --disable-backspace-key disable handling of the backspace key 1336 --disable-backspace-key disable handling of the backspace key
1351 --disable-delete-key disable handling of the delete key 1337 --disable-delete-key disable handling of the delete key
1352 --disable-resources disable all resource checking 1338 --disable-resources disable all resource checking
1353 --enable-8bitctrls enable 8 bit control sequences (not recommended) 1339 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1354 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) 1340 --enable-fallback[=CLASS] fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
1355 --disable-swapscreen disable swap screen support 1341 --disable-swapscreen disable swap screen support
1356 --enable-iso14755 enable support for extended ISO 14755 modes 1342 --enable-iso14755 enable support for extended ISO 14755 modes
1357 --enable-frills enable support for rarely used features 1343 --enable-frills enable support for rarely used features
1358 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 1344 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1359 --enable-selectionscrolling enable scrolling during selections 1345 --enable-selectionscrolling enable scrolling during selections
1360 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 1346 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1361 --enable-slipwheeling enable slip wheel scrolling (requires previous) 1347 --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel)
1362 --enable-smart-resize enable smart growth/shrink behaviour 1348 --enable-smart-resize enable smart growth/shrink behaviour
1363 --enable-text-blink enable blinking text 1349 --enable-text-blink enable blinking text
1364 --enable-pointer-blank enable pointer blank when typing or inactive pointer 1350 --enable-pointer-blank enable pointer blank when typing or inactive pointer
1365 --enable-utmp enable utmp (utmpx) support 1351 --enable-utmp enable utmp (utmpx) support
1366 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) 1352 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1368 1354
1369Optional Packages: 1355Optional Packages:
1370 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1356 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1371 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1357 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1372 --with-afterimage-config=DIR use libAfterImage config script in DIR 1358 --with-afterimage-config=DIR use libAfterImage config script in DIR
1373 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) 1359 --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
1374 --with-res-name=NAME use this as default resource name (default: urxvt) 1360 --with-res-name=NAME use this as default resource name (default: urxvt)
1375 --with-res-class=CLASS use this as the resource class (default: URxvt) 1361 --with-res-class=CLASS use this as the resource class (default: URxvt)
1376 --with-name=NAME set the basename for the installed binaries (default: urxvt) 1362 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1377 --with-term=NAME set the terminal to NAME (default: rxvt) 1363 --with-term=NAME set the terminal to NAME (default: rxvt)
1378 --with-terminfo=PATH set the path to the terminfo tree to PATH 1364 --with-terminfo=PATH set the path to the terminfo tree to PATH
1379 --with-x use the X Window System 1365 --with-x use the X Window System
1380 --with-xpm-includes=DIR use XPM includes in DIR
1381 --with-xpm-library=DIR use XPM library in DIR
1382 --with-xpm use XPM
1383 1366
1384Some influential environment variables: 1367Some influential environment variables:
1385 CC C compiler command 1368 CC C compiler command
1386 CFLAGS C compiler flags 1369 CFLAGS C compiler flags
1387 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1370 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1390 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1373 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1391 you have headers in a nonstandard directory <include dir> 1374 you have headers in a nonstandard directory <include dir>
1392 CXX C++ compiler command 1375 CXX C++ compiler command
1393 CXXFLAGS C++ compiler flags 1376 CXXFLAGS C++ compiler flags
1394 CPP C preprocessor 1377 CPP C preprocessor
1378 CXXCPP C++ preprocessor
1395 XMKMF Path to xmkmf, Makefile generator for X Window System 1379 XMKMF Path to xmkmf, Makefile generator for X Window System
1396 CXXCPP C++ preprocessor
1397 1380
1398Use these variables to override the choices made by `configure' or to help 1381Use these variables to override the choices made by `configure' or to help
1399it to find libraries and programs with nonstandard names/locations. 1382it to find libraries and programs with nonstandard names/locations.
1400 1383
1401_ACEOF 1384_ACEOF
1937 1920
1938 1921
1939 1922
1940VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1923VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1941DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1924DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1925
1942echo "" 1926echo ""
1943echo "configuring for rxvt $VERSION" 1927echo "configuring for rxvt $VERSION"
1944echo "" 1928echo ""
1945 1929
1946orig_CXXFLAGS="$CXXFLAGS" 1930orig_CXXFLAGS="$CXXFLAGS"
3887LINKER=$LINKER 3871LINKER=$LINKER
3888 3872
3889 3873
3890if test -z "$orig_CXXFLAGS"; then 3874if test -z "$orig_CXXFLAGS"; then
3891 if test x$GCC = xyes && test "x$GXX" = xyes; then 3875 if test x$GCC = xyes && test "x$GXX" = xyes; then
3892 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" 3876 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs"
3893 cat >conftest.$ac_ext <<_ACEOF 3877 cat >conftest.$ac_ext <<_ACEOF
3894/* confdefs.h. */ 3878/* confdefs.h. */
3895_ACEOF 3879_ACEOF
3896cat confdefs.h >>conftest.$ac_ext 3880cat confdefs.h >>conftest.$ac_ext
3897cat >>conftest.$ac_ext <<_ACEOF 3881cat >>conftest.$ac_ext <<_ACEOF
3945 3929
3946case $host in 3930case $host in
3947 *-*-solaris* ) 3931 *-*-solaris* )
3948 3932
3949cat >>confdefs.h <<\_ACEOF 3933cat >>confdefs.h <<\_ACEOF
3950#define _XOPEN_SOURCE_EXTENDED 1
3951_ACEOF
3952
3953
3954cat >>confdefs.h <<\_ACEOF
3955#define _XOPEN_SOURCE 2 3934#define _XOPEN_SOURCE 500
3956_ACEOF
3957
3958
3959cat >>confdefs.h <<\_ACEOF
3960#define __EXTENSIONS__ 1
3961_ACEOF 3935_ACEOF
3962 3936
3963 ;; 3937 ;;
3964esac 3938esac
3965 3939
4420 4394
4421 4395
4422 4396
4423support_frills=yes 4397support_frills=yes
4424support_inheritpixmap=yes 4398support_inheritpixmap=yes
4425support_tinting=yes
4426support_fading=yes 4399support_fading=yes
4427support_keepscrolling=yes 4400support_keepscrolling=yes
4428support_selectionscrolling=yes 4401support_selectionscrolling=yes
4429support_mousewheel=yes 4402support_mousewheel=yes
4430support_mouseslipwheel=yes 4403support_mouseslipwheel=yes
4433support_scroll_rxvt=yes 4406support_scroll_rxvt=yes
4434support_scroll_next=yes 4407support_scroll_next=yes
4435support_scroll_xterm=yes 4408support_scroll_xterm=yes
4436support_scroll_plain=yes 4409support_scroll_plain=yes
4437support_xim=yes 4410support_xim=yes
4438support_xpm=yes
4439support_afterimage=yes 4411support_afterimage=yes
4440support_afterstep=yes 4412support_afterstep=yes
4441support_xft=yes 4413support_xft=yes
4442support_unicode3=no 4414support_unicode3=no
4443support_combining=yes 4415support_combining=yes
4462if test "${enable_everything+set}" = set; then 4434if test "${enable_everything+set}" = set; then
4463 enableval=$enable_everything; 4435 enableval=$enable_everything;
4464 if test x$enableval = xno; then 4436 if test x$enableval = xno; then
4465 support_frills=no 4437 support_frills=no
4466 support_inheritpixmap=no 4438 support_inheritpixmap=no
4467 support_tinting=no
4468 support_fading=no 4439 support_fading=no
4469 support_keepscrolling=no 4440 support_keepscrolling=no
4470 support_selectionscrolling=no 4441 support_selectionscrolling=no
4471 support_lastlog=no 4442 support_lastlog=no
4472 support_mousewheel=no 4443 support_mousewheel=no
4478 support_scroll_xterm=no 4449 support_scroll_xterm=no
4479 support_scroll_plain=no 4450 support_scroll_plain=no
4480 support_utmp=no 4451 support_utmp=no
4481 support_wtmp=no 4452 support_wtmp=no
4482 support_xim=no 4453 support_xim=no
4483 support_xpm=no
4484 support_afterimage=no 4454 support_afterimage=no
4485 support_afterstep=no 4455 support_afterstep=no
4486 support_xft=no 4456 support_xft=no
4487 support_unicode3=no 4457 support_unicode3=no
4488 support_combining=no 4458 support_combining=no
4493 codesets= 4463 codesets=
4494 fi 4464 fi
4495 if test x$enableval = xyes; then 4465 if test x$enableval = xyes; then
4496 support_frills=yes 4466 support_frills=yes
4497 support_inheritpixmap=yes 4467 support_inheritpixmap=yes
4498 support_tinting=yes
4499 support_fading=yes 4468 support_fading=yes
4500 support_keepscrolling=yes 4469 support_keepscrolling=yes
4501 support_selectionscrolling=yes 4470 support_selectionscrolling=yes
4502 support_lastlog=yes 4471 support_lastlog=yes
4503 support_mousewheel=yes 4472 support_mousewheel=yes
4509 support_scroll_xterm=yes 4478 support_scroll_xterm=yes
4510 support_scroll_plain=yes 4479 support_scroll_plain=yes
4511 support_utmp=yes 4480 support_utmp=yes
4512 support_wtmp=yes 4481 support_wtmp=yes
4513 support_xim=yes 4482 support_xim=yes
4514 support_xpm=yes
4515 support_afterimage=yes 4483 support_afterimage=yes
4516 support_afterstep=yes 4484 support_afterstep=yes
4517 support_xft=yes 4485 support_xft=yes
4518 support_unicode3=yes 4486 support_unicode3=yes
4519 support_combining=yes 4487 support_combining=yes
4525 fi 4493 fi
4526 4494
4527fi 4495fi
4528 4496
4529 4497
4498WARNINGS=no
4499# Check whether --enable-warnings was given.
4500if test "${enable_warnings+set}" = set; then
4501 enableval=$enable_warnings; if test x$enableval = xyes; then
4502 WARNINGS=yes
4503 fi
4504fi
4505
4506if test x$GXX = xyes; then
4507 if test $WARNINGS = yes; then
4508 save_CXXFLAGS="$CXXFLAGS"
4509 CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-non-virtual-dtor"
4510 cat >conftest.$ac_ext <<_ACEOF
4511/* confdefs.h. */
4512_ACEOF
4513cat confdefs.h >>conftest.$ac_ext
4514cat >>conftest.$ac_ext <<_ACEOF
4515/* end confdefs.h. */
4516
4517int
4518main ()
4519{
4520
4521 ;
4522 return 0;
4523}
4524_ACEOF
4525rm -f conftest.$ac_objext
4526if { (ac_try="$ac_compile"
4527case "(($ac_try" in
4528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4529 *) ac_try_echo=$ac_try;;
4530esac
4531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4532 (eval "$ac_compile") 2>conftest.er1
4533 ac_status=$?
4534 grep -v '^ *+' conftest.er1 >conftest.err
4535 rm -f conftest.er1
4536 cat conftest.err >&5
4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); } && {
4539 test -z "$ac_cxx_werror_flag" ||
4540 test ! -s conftest.err
4541 } && test -s conftest.$ac_objext; then
4542 :
4543else
4544 echo "$as_me: failed program was:" >&5
4545sed 's/^/| /' conftest.$ac_ext >&5
4546
4547 CXXFLAGS="$save_CXXFLAGS"
4548fi
4549
4550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4551 else
4552 CXXFLAGS="$CXXFLAGS -w"
4553 fi
4554fi
4555
4530# Check whether --enable-unicode3 was given. 4556# Check whether --enable-unicode3 was given.
4531if test "${enable_unicode3+set}" = set; then 4557if test "${enable_unicode3+set}" = set; then
4532 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then 4558 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then
4533 support_unicode3=$enableval 4559 support_unicode3=$enableval
4534 fi 4560 fi
4557 support_styles=$enableval 4583 support_styles=$enableval
4558 fi 4584 fi
4559fi 4585fi
4560 4586
4561 4587
4562# Check whether --enable-xpm-background was given.
4563if test "${enable_xpm_background+set}" = set; then
4564 enableval=$enable_xpm_background; if test x$enableval = xyes -o x$enableval = xno; then
4565 support_xpm=$enableval
4566 fi
4567fi
4568
4569
4570# Check whether --enable-afterimage was given. 4588# Check whether --enable-afterimage was given.
4571if test "${enable_afterimage+set}" = set; then 4589if test "${enable_afterimage+set}" = set; then
4572 enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then 4590 enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then
4573 support_afterimage=$enableval 4591 support_afterimage=$enableval
4574 fi 4592 fi
4576 4594
4577 4595
4578 4596
4579# Check whether --with-afterimage_config was given. 4597# Check whether --with-afterimage_config was given.
4580if test "${with_afterimage_config+set}" = set; then 4598if test "${with_afterimage_config+set}" = set; then
4581 withval=$with_afterimage_config; afterimage_config="$withval" 4599 withval=$with_afterimage_config; if test "x$withval" != x; then
4582fi 4600 afterimage_config=$withval/afterimage-config
4583
4584
4585# Check whether --enable-afterstep was given.
4586if test "${enable_afterstep+set}" = set; then
4587 enableval=$enable_afterstep; if test x$enableval = xyes -o x$enableval = xno; then
4588 support_afterstep=$enableval
4589 fi 4601 fi
4590fi 4602fi
4603
4591 4604
4592 4605
4593# Check whether --enable-transparency was given. 4606# Check whether --enable-transparency was given.
4594if test "${enable_transparency+set}" = set; then 4607if test "${enable_transparency+set}" = set; then
4595 enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then 4608 enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then
4596 support_inheritpixmap=$enableval 4609 support_inheritpixmap=$enableval
4597 fi
4598fi
4599
4600
4601# Check whether --enable-tinting was given.
4602if test "${enable_tinting+set}" = set; then
4603 enableval=$enable_tinting; if test x$enableval = xyes -o x$enableval = xno; then
4604 support_tinting=$enableval
4605 fi 4610 fi
4606fi 4611fi
4607 4612
4608 4613
4609# Check whether --enable-fading was given. 4614# Check whether --enable-fading was given.
4887 fi 4892 fi
4888fi 4893fi
4889 4894
4890 4895
4891 4896
4892# Extract the first word of "mv", so it can be a program name with args. 4897LIBEV_M4_AVOID_LIBRT=1
4893set dummy mv; ac_word=$2 4898
4894{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4899ac_ext=cpp
4895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4900ac_cpp='$CXXCPP $CPPFLAGS'
4901ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4902ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4903ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4904{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4905echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4906if test -z "$CXXCPP"; then
4896if test "${ac_cv_path_MV+set}" = set; then 4907 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4897 echo $ECHO_N "(cached) $ECHO_C" >&6 4908 echo $ECHO_N "(cached) $ECHO_C" >&6
4898else 4909else
4899 case $MV in 4910 # Double quotes because CXXCPP needs to be expanded
4900 [\\/]* | ?:[\\/]*) 4911 for CXXCPP in "$CXX -E" "/lib/cpp"
4901 ac_cv_path_MV="$MV" # Let the user override the test with a path. 4912 do
4902 ;; 4913 ac_preproc_ok=false
4903 *) 4914for ac_cxx_preproc_warn_flag in '' yes
4904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905for as_dir in $PATH
4906do 4915do
4907 IFS=$as_save_IFS 4916 # Use a header file that comes with gcc, so configuring glibc
4908 test -z "$as_dir" && as_dir=. 4917 # with a fresh cross-compiler works.
4909 for ac_exec_ext in '' $ac_executable_extensions; do 4918 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4919 # <limits.h> exists even on freestanding compilers.
4911 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 4920 # On the NeXT, cc -E runs the code through the compiler's parser,
4912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4921 # not just through cpp. "Syntax error" is here to catch this case.
4913 break 2 4922 cat >conftest.$ac_ext <<_ACEOF
4914 fi 4923/* confdefs.h. */
4924_ACEOF
4925cat confdefs.h >>conftest.$ac_ext
4926cat >>conftest.$ac_ext <<_ACEOF
4927/* end confdefs.h. */
4928#ifdef __STDC__
4929# include <limits.h>
4930#else
4931# include <assert.h>
4932#endif
4933 Syntax error
4934_ACEOF
4935if { (ac_try="$ac_cpp conftest.$ac_ext"
4936case "(($ac_try" in
4937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4938 *) ac_try_echo=$ac_try;;
4939esac
4940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4942 ac_status=$?
4943 grep -v '^ *+' conftest.er1 >conftest.err
4944 rm -f conftest.er1
4945 cat conftest.err >&5
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); } >/dev/null && {
4948 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4949 test ! -s conftest.err
4950 }; then
4951 :
4952else
4953 echo "$as_me: failed program was:" >&5
4954sed 's/^/| /' conftest.$ac_ext >&5
4955
4956 # Broken: fails on valid input.
4957continue
4958fi
4959
4960rm -f conftest.err conftest.$ac_ext
4961
4962 # OK, works on sane cases. Now check whether nonexistent headers
4963 # can be detected and how.
4964 cat >conftest.$ac_ext <<_ACEOF
4965/* confdefs.h. */
4966_ACEOF
4967cat confdefs.h >>conftest.$ac_ext
4968cat >>conftest.$ac_ext <<_ACEOF
4969/* end confdefs.h. */
4970#include <ac_nonexistent.h>
4971_ACEOF
4972if { (ac_try="$ac_cpp conftest.$ac_ext"
4973case "(($ac_try" in
4974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4975 *) ac_try_echo=$ac_try;;
4976esac
4977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4979 ac_status=$?
4980 grep -v '^ *+' conftest.er1 >conftest.err
4981 rm -f conftest.er1
4982 cat conftest.err >&5
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); } >/dev/null && {
4985 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4986 test ! -s conftest.err
4987 }; then
4988 # Broken: success on invalid input.
4989continue
4990else
4991 echo "$as_me: failed program was:" >&5
4992sed 's/^/| /' conftest.$ac_ext >&5
4993
4994 # Passes both tests.
4995ac_preproc_ok=:
4996break
4997fi
4998
4999rm -f conftest.err conftest.$ac_ext
5000
4915done 5001done
5002# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5003rm -f conftest.err conftest.$ac_ext
5004if $ac_preproc_ok; then
5005 break
5006fi
5007
5008 done
5009 ac_cv_prog_CXXCPP=$CXXCPP
5010
5011fi
5012 CXXCPP=$ac_cv_prog_CXXCPP
5013else
5014 ac_cv_prog_CXXCPP=$CXXCPP
5015fi
5016{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5017echo "${ECHO_T}$CXXCPP" >&6; }
5018ac_preproc_ok=false
5019for ac_cxx_preproc_warn_flag in '' yes
5020do
5021 # Use a header file that comes with gcc, so configuring glibc
5022 # with a fresh cross-compiler works.
5023 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5024 # <limits.h> exists even on freestanding compilers.
5025 # On the NeXT, cc -E runs the code through the compiler's parser,
5026 # not just through cpp. "Syntax error" is here to catch this case.
5027 cat >conftest.$ac_ext <<_ACEOF
5028/* confdefs.h. */
5029_ACEOF
5030cat confdefs.h >>conftest.$ac_ext
5031cat >>conftest.$ac_ext <<_ACEOF
5032/* end confdefs.h. */
5033#ifdef __STDC__
5034# include <limits.h>
5035#else
5036# include <assert.h>
5037#endif
5038 Syntax error
5039_ACEOF
5040if { (ac_try="$ac_cpp conftest.$ac_ext"
5041case "(($ac_try" in
5042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5043 *) ac_try_echo=$ac_try;;
5044esac
5045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5047 ac_status=$?
5048 grep -v '^ *+' conftest.er1 >conftest.err
5049 rm -f conftest.er1
5050 cat conftest.err >&5
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); } >/dev/null && {
5053 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5054 test ! -s conftest.err
5055 }; then
5056 :
5057else
5058 echo "$as_me: failed program was:" >&5
5059sed 's/^/| /' conftest.$ac_ext >&5
5060
5061 # Broken: fails on valid input.
5062continue
5063fi
5064
5065rm -f conftest.err conftest.$ac_ext
5066
5067 # OK, works on sane cases. Now check whether nonexistent headers
5068 # can be detected and how.
5069 cat >conftest.$ac_ext <<_ACEOF
5070/* confdefs.h. */
5071_ACEOF
5072cat confdefs.h >>conftest.$ac_ext
5073cat >>conftest.$ac_ext <<_ACEOF
5074/* end confdefs.h. */
5075#include <ac_nonexistent.h>
5076_ACEOF
5077if { (ac_try="$ac_cpp conftest.$ac_ext"
5078case "(($ac_try" in
5079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5080 *) ac_try_echo=$ac_try;;
5081esac
5082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5084 ac_status=$?
5085 grep -v '^ *+' conftest.er1 >conftest.err
5086 rm -f conftest.er1
5087 cat conftest.err >&5
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); } >/dev/null && {
5090 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5091 test ! -s conftest.err
5092 }; then
5093 # Broken: success on invalid input.
5094continue
5095else
5096 echo "$as_me: failed program was:" >&5
5097sed 's/^/| /' conftest.$ac_ext >&5
5098
5099 # Passes both tests.
5100ac_preproc_ok=:
5101break
5102fi
5103
5104rm -f conftest.err conftest.$ac_ext
5105
4916done 5106done
4917IFS=$as_save_IFS 5107# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4918 5108rm -f conftest.err conftest.$ac_ext
4919 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 5109if $ac_preproc_ok; then
4920 ;; 5110 :
4921esac
4922fi
4923MV=$ac_cv_path_MV
4924if test -n "$MV"; then
4925 { echo "$as_me:$LINENO: result: $MV" >&5
4926echo "${ECHO_T}$MV" >&6; }
4927else 5111else
4928 { echo "$as_me:$LINENO: result: no" >&5 5112 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4929echo "${ECHO_T}no" >&6; } 5113See \`config.log' for more details." >&5
5114echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5115See \`config.log' for more details." >&2;}
5116 { (exit 1); exit 1; }; }
4930fi 5117fi
4931 5118
5119ac_ext=cpp
5120ac_cpp='$CXXCPP $CPPFLAGS'
5121ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5122ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5123ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4932 5124
4933# Extract the first word of "cp", so it can be a program name with args. 5125
4934set dummy cp; ac_word=$2
4935{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5126{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5127echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4937if test "${ac_cv_path_CP+set}" = set; then 5128if test "${ac_cv_header_stdc+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6 5129 echo $ECHO_N "(cached) $ECHO_C" >&6
4939else 5130else
4940 case $CP in 5131 cat >conftest.$ac_ext <<_ACEOF
4941 [\\/]* | ?:[\\/]*) 5132/* confdefs.h. */
4942 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5133_ACEOF
5134cat confdefs.h >>conftest.$ac_ext
5135cat >>conftest.$ac_ext <<_ACEOF
5136/* end confdefs.h. */
5137#include <stdlib.h>
5138#include <stdarg.h>
5139#include <string.h>
5140#include <float.h>
5141
5142int
5143main ()
5144{
5145
4943 ;; 5146 ;
4944 *) 5147 return 0;
4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5148}
4946for as_dir in $PATH 5149_ACEOF
5150rm -f conftest.$ac_objext
5151if { (ac_try="$ac_compile"
5152case "(($ac_try" in
5153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5154 *) ac_try_echo=$ac_try;;
5155esac
5156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5157 (eval "$ac_compile") 2>conftest.er1
5158 ac_status=$?
5159 grep -v '^ *+' conftest.er1 >conftest.err
5160 rm -f conftest.er1
5161 cat conftest.err >&5
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163 (exit $ac_status); } && {
5164 test -z "$ac_cxx_werror_flag" ||
5165 test ! -s conftest.err
5166 } && test -s conftest.$ac_objext; then
5167 ac_cv_header_stdc=yes
5168else
5169 echo "$as_me: failed program was:" >&5
5170sed 's/^/| /' conftest.$ac_ext >&5
5171
5172 ac_cv_header_stdc=no
5173fi
5174
5175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5176
5177if test $ac_cv_header_stdc = yes; then
5178 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5179 cat >conftest.$ac_ext <<_ACEOF
5180/* confdefs.h. */
5181_ACEOF
5182cat confdefs.h >>conftest.$ac_ext
5183cat >>conftest.$ac_ext <<_ACEOF
5184/* end confdefs.h. */
5185#include <string.h>
5186
5187_ACEOF
5188if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5189 $EGREP "memchr" >/dev/null 2>&1; then
5190 :
5191else
5192 ac_cv_header_stdc=no
5193fi
5194rm -f conftest*
5195
5196fi
5197
5198if test $ac_cv_header_stdc = yes; then
5199 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5200 cat >conftest.$ac_ext <<_ACEOF
5201/* confdefs.h. */
5202_ACEOF
5203cat confdefs.h >>conftest.$ac_ext
5204cat >>conftest.$ac_ext <<_ACEOF
5205/* end confdefs.h. */
5206#include <stdlib.h>
5207
5208_ACEOF
5209if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5210 $EGREP "free" >/dev/null 2>&1; then
5211 :
5212else
5213 ac_cv_header_stdc=no
5214fi
5215rm -f conftest*
5216
5217fi
5218
5219if test $ac_cv_header_stdc = yes; then
5220 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5221 if test "$cross_compiling" = yes; then
5222 :
5223else
5224 cat >conftest.$ac_ext <<_ACEOF
5225/* confdefs.h. */
5226_ACEOF
5227cat confdefs.h >>conftest.$ac_ext
5228cat >>conftest.$ac_ext <<_ACEOF
5229/* end confdefs.h. */
5230#include <ctype.h>
5231#include <stdlib.h>
5232#if ((' ' & 0x0FF) == 0x020)
5233# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5234# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5235#else
5236# define ISLOWER(c) \
5237 (('a' <= (c) && (c) <= 'i') \
5238 || ('j' <= (c) && (c) <= 'r') \
5239 || ('s' <= (c) && (c) <= 'z'))
5240# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5241#endif
5242
5243#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5244int
5245main ()
5246{
5247 int i;
5248 for (i = 0; i < 256; i++)
5249 if (XOR (islower (i), ISLOWER (i))
5250 || toupper (i) != TOUPPER (i))
5251 return 2;
5252 return 0;
5253}
5254_ACEOF
5255rm -f conftest$ac_exeext
5256if { (ac_try="$ac_link"
5257case "(($ac_try" in
5258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5259 *) ac_try_echo=$ac_try;;
5260esac
5261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5262 (eval "$ac_link") 2>&5
5263 ac_status=$?
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5266 { (case "(($ac_try" in
5267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5268 *) ac_try_echo=$ac_try;;
5269esac
5270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5271 (eval "$ac_try") 2>&5
5272 ac_status=$?
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); }; }; then
5275 :
5276else
5277 echo "$as_me: program exited with status $ac_status" >&5
5278echo "$as_me: failed program was:" >&5
5279sed 's/^/| /' conftest.$ac_ext >&5
5280
5281( exit $ac_status )
5282ac_cv_header_stdc=no
5283fi
5284rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5285fi
5286
5287
5288fi
5289fi
5290{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5291echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5292if test $ac_cv_header_stdc = yes; then
5293
5294cat >>confdefs.h <<\_ACEOF
5295#define STDC_HEADERS 1
5296_ACEOF
5297
5298fi
5299
5300# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5311 inttypes.h stdint.h unistd.h
4947do 5312do
4948 IFS=$as_save_IFS 5313as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4949 test -z "$as_dir" && as_dir=. 5314{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4950 for ac_exec_ext in '' $ac_executable_extensions; do 5315echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5316if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4952 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5317 echo $ECHO_N "(cached) $ECHO_C" >&6
4953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5318else
4954 break 2 5319 cat >conftest.$ac_ext <<_ACEOF
4955 fi 5320/* confdefs.h. */
5321_ACEOF
5322cat confdefs.h >>conftest.$ac_ext
5323cat >>conftest.$ac_ext <<_ACEOF
5324/* end confdefs.h. */
5325$ac_includes_default
5326
5327#include <$ac_header>
5328_ACEOF
5329rm -f conftest.$ac_objext
5330if { (ac_try="$ac_compile"
5331case "(($ac_try" in
5332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5333 *) ac_try_echo=$ac_try;;
5334esac
5335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5336 (eval "$ac_compile") 2>conftest.er1
5337 ac_status=$?
5338 grep -v '^ *+' conftest.er1 >conftest.err
5339 rm -f conftest.er1
5340 cat conftest.err >&5
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); } && {
5343 test -z "$ac_cxx_werror_flag" ||
5344 test ! -s conftest.err
5345 } && test -s conftest.$ac_objext; then
5346 eval "$as_ac_Header=yes"
5347else
5348 echo "$as_me: failed program was:" >&5
5349sed 's/^/| /' conftest.$ac_ext >&5
5350
5351 eval "$as_ac_Header=no"
5352fi
5353
5354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5355fi
5356ac_res=`eval echo '${'$as_ac_Header'}'`
5357 { echo "$as_me:$LINENO: result: $ac_res" >&5
5358echo "${ECHO_T}$ac_res" >&6; }
5359if test `eval echo '${'$as_ac_Header'}'` = yes; then
5360 cat >>confdefs.h <<_ACEOF
5361#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5362_ACEOF
5363
5364fi
5365
4956done 5366done
5367
5368
5369
5370
5371
5372
5373for ac_header in sys/epoll.h sys/event.h sys/queue.h port.h
5374do
5375as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5376if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5377 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5378echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5379if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5380 echo $ECHO_N "(cached) $ECHO_C" >&6
5381fi
5382ac_res=`eval echo '${'$as_ac_Header'}'`
5383 { echo "$as_me:$LINENO: result: $ac_res" >&5
5384echo "${ECHO_T}$ac_res" >&6; }
5385else
5386 # Is the header compilable?
5387{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5388echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5389cat >conftest.$ac_ext <<_ACEOF
5390/* confdefs.h. */
5391_ACEOF
5392cat confdefs.h >>conftest.$ac_ext
5393cat >>conftest.$ac_ext <<_ACEOF
5394/* end confdefs.h. */
5395$ac_includes_default
5396#include <$ac_header>
5397_ACEOF
5398rm -f conftest.$ac_objext
5399if { (ac_try="$ac_compile"
5400case "(($ac_try" in
5401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5402 *) ac_try_echo=$ac_try;;
5403esac
5404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5405 (eval "$ac_compile") 2>conftest.er1
5406 ac_status=$?
5407 grep -v '^ *+' conftest.er1 >conftest.err
5408 rm -f conftest.er1
5409 cat conftest.err >&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); } && {
5412 test -z "$ac_cxx_werror_flag" ||
5413 test ! -s conftest.err
5414 } && test -s conftest.$ac_objext; then
5415 ac_header_compiler=yes
5416else
5417 echo "$as_me: failed program was:" >&5
5418sed 's/^/| /' conftest.$ac_ext >&5
5419
5420 ac_header_compiler=no
5421fi
5422
5423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5424{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5425echo "${ECHO_T}$ac_header_compiler" >&6; }
5426
5427# Is the header present?
5428{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5429echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5430cat >conftest.$ac_ext <<_ACEOF
5431/* confdefs.h. */
5432_ACEOF
5433cat confdefs.h >>conftest.$ac_ext
5434cat >>conftest.$ac_ext <<_ACEOF
5435/* end confdefs.h. */
5436#include <$ac_header>
5437_ACEOF
5438if { (ac_try="$ac_cpp conftest.$ac_ext"
5439case "(($ac_try" in
5440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441 *) ac_try_echo=$ac_try;;
5442esac
5443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5445 ac_status=$?
5446 grep -v '^ *+' conftest.er1 >conftest.err
5447 rm -f conftest.er1
5448 cat conftest.err >&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); } >/dev/null && {
5451 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5452 test ! -s conftest.err
5453 }; then
5454 ac_header_preproc=yes
5455else
5456 echo "$as_me: failed program was:" >&5
5457sed 's/^/| /' conftest.$ac_ext >&5
5458
5459 ac_header_preproc=no
5460fi
5461
5462rm -f conftest.err conftest.$ac_ext
5463{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5464echo "${ECHO_T}$ac_header_preproc" >&6; }
5465
5466# So? What about this header?
5467case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5468 yes:no: )
5469 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5470echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5472echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5473 ac_header_preproc=yes
5474 ;;
5475 no:yes:* )
5476 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5477echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5478 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5479echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5480 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5481echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5482 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5483echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5485echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5486 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5487echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5488
5489 ;;
5490esac
5491{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5492echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5493if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5494 echo $ECHO_N "(cached) $ECHO_C" >&6
5495else
5496 eval "$as_ac_Header=\$ac_header_preproc"
5497fi
5498ac_res=`eval echo '${'$as_ac_Header'}'`
5499 { echo "$as_me:$LINENO: result: $ac_res" >&5
5500echo "${ECHO_T}$ac_res" >&6; }
5501
5502fi
5503if test `eval echo '${'$as_ac_Header'}'` = yes; then
5504 cat >>confdefs.h <<_ACEOF
5505#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5506_ACEOF
5507
5508fi
5509
4957done 5510done
4958IFS=$as_save_IFS
4959 5511
4960 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4961 ;;
4962esac
4963fi
4964CP=$ac_cv_path_CP
4965if test -n "$CP"; then
4966 { echo "$as_me:$LINENO: result: $CP" >&5
4967echo "${ECHO_T}$CP" >&6; }
4968else
4969 { echo "$as_me:$LINENO: result: no" >&5
4970echo "${ECHO_T}no" >&6; }
4971fi
4972 5512
4973 5513
4974# Extract the first word of "ln", so it can be a program name with args. 5514
4975set dummy ln; ac_word=$2 5515
5516for ac_func in epoll_ctl kqueue port_create
5517do
5518as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4976{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5519{ echo "$as_me:$LINENO: checking for $ac_func" >&5
4977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5520echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4978if test "${ac_cv_path_LN+set}" = set; then 5521if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4979 echo $ECHO_N "(cached) $ECHO_C" >&6 5522 echo $ECHO_N "(cached) $ECHO_C" >&6
4980else 5523else
4981 case $LN in 5524 cat >conftest.$ac_ext <<_ACEOF
4982 [\\/]* | ?:[\\/]*) 5525/* confdefs.h. */
4983 ac_cv_path_LN="$LN" # Let the user override the test with a path. 5526_ACEOF
5527cat confdefs.h >>conftest.$ac_ext
5528cat >>conftest.$ac_ext <<_ACEOF
5529/* end confdefs.h. */
5530/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5532#define $ac_func innocuous_$ac_func
5533
5534/* System header to define __stub macros and hopefully few prototypes,
5535 which can conflict with char $ac_func (); below.
5536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5537 <limits.h> exists even on freestanding compilers. */
5538
5539#ifdef __STDC__
5540# include <limits.h>
5541#else
5542# include <assert.h>
5543#endif
5544
5545#undef $ac_func
5546
5547/* Override any GCC internal prototype to avoid an error.
5548 Use char because int might match the return type of a GCC
5549 builtin and then its argument prototype would still apply. */
5550#ifdef __cplusplus
5551extern "C"
5552#endif
5553char $ac_func ();
5554/* The GNU C library defines this for functions which it implements
5555 to always fail with ENOSYS. Some functions are actually named
5556 something starting with __ and the normal name is an alias. */
5557#if defined __stub_$ac_func || defined __stub___$ac_func
5558choke me
5559#endif
5560
5561int
5562main ()
5563{
5564return $ac_func ();
4984 ;; 5565 ;
4985 *) 5566 return 0;
4986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5567}
4987for as_dir in $PATH 5568_ACEOF
5569rm -f conftest.$ac_objext conftest$ac_exeext
5570if { (ac_try="$ac_link"
5571case "(($ac_try" in
5572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573 *) ac_try_echo=$ac_try;;
5574esac
5575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5576 (eval "$ac_link") 2>conftest.er1
5577 ac_status=$?
5578 grep -v '^ *+' conftest.er1 >conftest.err
5579 rm -f conftest.er1
5580 cat conftest.err >&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); } && {
5583 test -z "$ac_cxx_werror_flag" ||
5584 test ! -s conftest.err
5585 } && test -s conftest$ac_exeext &&
5586 $as_test_x conftest$ac_exeext; then
5587 eval "$as_ac_var=yes"
5588else
5589 echo "$as_me: failed program was:" >&5
5590sed 's/^/| /' conftest.$ac_ext >&5
5591
5592 eval "$as_ac_var=no"
5593fi
5594
5595rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5596 conftest$ac_exeext conftest.$ac_ext
5597fi
5598ac_res=`eval echo '${'$as_ac_var'}'`
5599 { echo "$as_me:$LINENO: result: $ac_res" >&5
5600echo "${ECHO_T}$ac_res" >&6; }
5601if test `eval echo '${'$as_ac_var'}'` = yes; then
5602 cat >>confdefs.h <<_ACEOF
5603#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5604_ACEOF
5605
5606fi
5607done
5608
5609
5610{ echo "$as_me:$LINENO: checking for clock_gettime" >&5
5611echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6; }
5612if test "${ac_cv_func_clock_gettime+set}" = set; then
5613 echo $ECHO_N "(cached) $ECHO_C" >&6
5614else
5615 cat >conftest.$ac_ext <<_ACEOF
5616/* confdefs.h. */
5617_ACEOF
5618cat confdefs.h >>conftest.$ac_ext
5619cat >>conftest.$ac_ext <<_ACEOF
5620/* end confdefs.h. */
5621/* Define clock_gettime to an innocuous variant, in case <limits.h> declares clock_gettime.
5622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5623#define clock_gettime innocuous_clock_gettime
5624
5625/* System header to define __stub macros and hopefully few prototypes,
5626 which can conflict with char clock_gettime (); below.
5627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5628 <limits.h> exists even on freestanding compilers. */
5629
5630#ifdef __STDC__
5631# include <limits.h>
5632#else
5633# include <assert.h>
5634#endif
5635
5636#undef clock_gettime
5637
5638/* Override any GCC internal prototype to avoid an error.
5639 Use char because int might match the return type of a GCC
5640 builtin and then its argument prototype would still apply. */
5641#ifdef __cplusplus
5642extern "C"
5643#endif
5644char clock_gettime ();
5645/* The GNU C library defines this for functions which it implements
5646 to always fail with ENOSYS. Some functions are actually named
5647 something starting with __ and the normal name is an alias. */
5648#if defined __stub_clock_gettime || defined __stub___clock_gettime
5649choke me
5650#endif
5651
5652int
5653main ()
5654{
5655return clock_gettime ();
5656 ;
5657 return 0;
5658}
5659_ACEOF
5660rm -f conftest.$ac_objext conftest$ac_exeext
5661if { (ac_try="$ac_link"
5662case "(($ac_try" in
5663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5664 *) ac_try_echo=$ac_try;;
5665esac
5666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5667 (eval "$ac_link") 2>conftest.er1
5668 ac_status=$?
5669 grep -v '^ *+' conftest.er1 >conftest.err
5670 rm -f conftest.er1
5671 cat conftest.err >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } && {
5674 test -z "$ac_cxx_werror_flag" ||
5675 test ! -s conftest.err
5676 } && test -s conftest$ac_exeext &&
5677 $as_test_x conftest$ac_exeext; then
5678 ac_cv_func_clock_gettime=yes
5679else
5680 echo "$as_me: failed program was:" >&5
5681sed 's/^/| /' conftest.$ac_ext >&5
5682
5683 ac_cv_func_clock_gettime=no
5684fi
5685
5686rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5687 conftest$ac_exeext conftest.$ac_ext
5688fi
5689{ echo "$as_me:$LINENO: result: $ac_cv_func_clock_gettime" >&5
5690echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; }
5691if test $ac_cv_func_clock_gettime = yes; then
5692 :
5693else
5694
5695 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
5696
5697{ echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
5698echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
5699if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5701else
5702 ac_check_lib_save_LIBS=$LIBS
5703LIBS="-lrt $LIBS"
5704cat >conftest.$ac_ext <<_ACEOF
5705/* confdefs.h. */
5706_ACEOF
5707cat confdefs.h >>conftest.$ac_ext
5708cat >>conftest.$ac_ext <<_ACEOF
5709/* end confdefs.h. */
5710
5711/* Override any GCC internal prototype to avoid an error.
5712 Use char because int might match the return type of a GCC
5713 builtin and then its argument prototype would still apply. */
5714#ifdef __cplusplus
5715extern "C"
5716#endif
5717char clock_gettime ();
5718int
5719main ()
5720{
5721return clock_gettime ();
5722 ;
5723 return 0;
5724}
5725_ACEOF
5726rm -f conftest.$ac_objext conftest$ac_exeext
5727if { (ac_try="$ac_link"
5728case "(($ac_try" in
5729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5730 *) ac_try_echo=$ac_try;;
5731esac
5732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5733 (eval "$ac_link") 2>conftest.er1
5734 ac_status=$?
5735 grep -v '^ *+' conftest.er1 >conftest.err
5736 rm -f conftest.er1
5737 cat conftest.err >&5
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); } && {
5740 test -z "$ac_cxx_werror_flag" ||
5741 test ! -s conftest.err
5742 } && test -s conftest$ac_exeext &&
5743 $as_test_x conftest$ac_exeext; then
5744 ac_cv_lib_rt_clock_gettime=yes
5745else
5746 echo "$as_me: failed program was:" >&5
5747sed 's/^/| /' conftest.$ac_ext >&5
5748
5749 ac_cv_lib_rt_clock_gettime=no
5750fi
5751
5752rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5753 conftest$ac_exeext conftest.$ac_ext
5754LIBS=$ac_check_lib_save_LIBS
5755fi
5756{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
5757echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
5758if test $ac_cv_lib_rt_clock_gettime = yes; then
5759 cat >>confdefs.h <<_ACEOF
5760#define HAVE_LIBRT 1
5761_ACEOF
5762
5763 LIBS="-lrt $LIBS"
5764
5765fi
5766
5767
5768for ac_func in clock_gettime
4988do 5769do
4989 IFS=$as_save_IFS 5770as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4990 test -z "$as_dir" && as_dir=. 5771{ echo "$as_me:$LINENO: checking for $ac_func" >&5
4991 for ac_exec_ext in '' $ac_executable_extensions; do 5772echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5773if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4993 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 5774 echo $ECHO_N "(cached) $ECHO_C" >&6
4994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5775else
4995 break 2 5776 cat >conftest.$ac_ext <<_ACEOF
4996 fi 5777/* confdefs.h. */
5778_ACEOF
5779cat confdefs.h >>conftest.$ac_ext
5780cat >>conftest.$ac_ext <<_ACEOF
5781/* end confdefs.h. */
5782/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5784#define $ac_func innocuous_$ac_func
5785
5786/* System header to define __stub macros and hopefully few prototypes,
5787 which can conflict with char $ac_func (); below.
5788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5789 <limits.h> exists even on freestanding compilers. */
5790
5791#ifdef __STDC__
5792# include <limits.h>
5793#else
5794# include <assert.h>
5795#endif
5796
5797#undef $ac_func
5798
5799/* Override any GCC internal prototype to avoid an error.
5800 Use char because int might match the return type of a GCC
5801 builtin and then its argument prototype would still apply. */
5802#ifdef __cplusplus
5803extern "C"
5804#endif
5805char $ac_func ();
5806/* The GNU C library defines this for functions which it implements
5807 to always fail with ENOSYS. Some functions are actually named
5808 something starting with __ and the normal name is an alias. */
5809#if defined __stub_$ac_func || defined __stub___$ac_func
5810choke me
5811#endif
5812
5813int
5814main ()
5815{
5816return $ac_func ();
5817 ;
5818 return 0;
5819}
5820_ACEOF
5821rm -f conftest.$ac_objext conftest$ac_exeext
5822if { (ac_try="$ac_link"
5823case "(($ac_try" in
5824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5825 *) ac_try_echo=$ac_try;;
5826esac
5827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5828 (eval "$ac_link") 2>conftest.er1
5829 ac_status=$?
5830 grep -v '^ *+' conftest.er1 >conftest.err
5831 rm -f conftest.er1
5832 cat conftest.err >&5
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); } && {
5835 test -z "$ac_cxx_werror_flag" ||
5836 test ! -s conftest.err
5837 } && test -s conftest$ac_exeext &&
5838 $as_test_x conftest$ac_exeext; then
5839 eval "$as_ac_var=yes"
5840else
5841 echo "$as_me: failed program was:" >&5
5842sed 's/^/| /' conftest.$ac_ext >&5
5843
5844 eval "$as_ac_var=no"
5845fi
5846
5847rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5848 conftest$ac_exeext conftest.$ac_ext
5849fi
5850ac_res=`eval echo '${'$as_ac_var'}'`
5851 { echo "$as_me:$LINENO: result: $ac_res" >&5
5852echo "${ECHO_T}$ac_res" >&6; }
5853if test `eval echo '${'$as_ac_var'}'` = yes; then
5854 cat >>confdefs.h <<_ACEOF
5855#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5856_ACEOF
5857
5858fi
4997done 5859done
4998done
4999IFS=$as_save_IFS
5000 5860
5001 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" 5861 fi
5002 ;;
5003esac
5004fi
5005LN=$ac_cv_path_LN
5006if test -n "$LN"; then
5007 { echo "$as_me:$LINENO: result: $LN" >&5
5008echo "${ECHO_T}$LN" >&6; }
5009else
5010 { echo "$as_me:$LINENO: result: no" >&5
5011echo "${ECHO_T}no" >&6; }
5012fi
5013 5862
5863fi
5014 5864
5015# Extract the first word of "sed", so it can be a program name with args. 5865
5016set dummy sed; ac_word=$2 5866
5017{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5867{ echo "$as_me:$LINENO: checking for ceil in -lm" >&5
5018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5868echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; }
5019if test "${ac_cv_path_SED+set}" = set; then 5869if test "${ac_cv_lib_m_ceil+set}" = set; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6 5870 echo $ECHO_N "(cached) $ECHO_C" >&6
5021else 5871else
5022 case $SED in 5872 ac_check_lib_save_LIBS=$LIBS
5023 [\\/]* | ?:[\\/]*) 5873LIBS="-lm $LIBS"
5024 ac_cv_path_SED="$SED" # Let the user override the test with a path. 5874cat >conftest.$ac_ext <<_ACEOF
5875/* confdefs.h. */
5876_ACEOF
5877cat confdefs.h >>conftest.$ac_ext
5878cat >>conftest.$ac_ext <<_ACEOF
5879/* end confdefs.h. */
5880
5881/* Override any GCC internal prototype to avoid an error.
5882 Use char because int might match the return type of a GCC
5883 builtin and then its argument prototype would still apply. */
5884#ifdef __cplusplus
5885extern "C"
5886#endif
5887char ceil ();
5888int
5889main ()
5890{
5891return ceil ();
5025 ;; 5892 ;
5026 *) 5893 return 0;
5027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5894}
5028for as_dir in $PATH 5895_ACEOF
5029do 5896rm -f conftest.$ac_objext conftest$ac_exeext
5030 IFS=$as_save_IFS 5897if { (ac_try="$ac_link"
5031 test -z "$as_dir" && as_dir=. 5898case "(($ac_try" in
5032 for ac_exec_ext in '' $ac_executable_extensions; do 5899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5900 *) ac_try_echo=$ac_try;;
5034 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5036 break 2
5037 fi
5038done
5039done
5040IFS=$as_save_IFS
5041
5042 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5043 ;;
5044esac 5901esac
5902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5903 (eval "$ac_link") 2>conftest.er1
5904 ac_status=$?
5905 grep -v '^ *+' conftest.er1 >conftest.err
5906 rm -f conftest.er1
5907 cat conftest.err >&5
5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); } && {
5910 test -z "$ac_cxx_werror_flag" ||
5911 test ! -s conftest.err
5912 } && test -s conftest$ac_exeext &&
5913 $as_test_x conftest$ac_exeext; then
5914 ac_cv_lib_m_ceil=yes
5915else
5916 echo "$as_me: failed program was:" >&5
5917sed 's/^/| /' conftest.$ac_ext >&5
5918
5919 ac_cv_lib_m_ceil=no
5045fi 5920fi
5046SED=$ac_cv_path_SED 5921
5047if test -n "$SED"; then 5922rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5923 conftest$ac_exeext conftest.$ac_ext
5924LIBS=$ac_check_lib_save_LIBS
5925fi
5048 { echo "$as_me:$LINENO: result: $SED" >&5 5926{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5
5049echo "${ECHO_T}$SED" >&6; } 5927echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6; }
5050else 5928if test $ac_cv_lib_m_ceil = yes; then
5051 { echo "$as_me:$LINENO: result: no" >&5 5929 cat >>confdefs.h <<_ACEOF
5052echo "${ECHO_T}no" >&6; } 5930#define HAVE_LIBM 1
5053fi 5931_ACEOF
5054 5932
5933 LIBS="-lm $LIBS"
5055 5934
5056# Extract the first word of "echo", so it can be a program name with args.
5057set dummy echo; ac_word=$2
5058{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5060if test "${ac_cv_path_ECHO+set}" = set; then
5061 echo $ECHO_N "(cached) $ECHO_C" >&6
5062else
5063 case $ECHO in
5064 [\\/]* | ?:[\\/]*)
5065 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5066 ;;
5067 *)
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069for as_dir in $PATH
5070do
5071 IFS=$as_save_IFS
5072 test -z "$as_dir" && as_dir=.
5073 for ac_exec_ext in '' $ac_executable_extensions; do
5074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5075 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5077 break 2
5078 fi
5079done
5080done
5081IFS=$as_save_IFS
5082
5083 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5084 ;;
5085esac
5086fi 5935fi
5087ECHO=$ac_cv_path_ECHO
5088if test -n "$ECHO"; then
5089 { echo "$as_me:$LINENO: result: $ECHO" >&5
5090echo "${ECHO_T}$ECHO" >&6; }
5091else
5092 { echo "$as_me:$LINENO: result: no" >&5
5093echo "${ECHO_T}no" >&6; }
5094fi
5095 5936
5096 5937
5097# Extract the first word of "cmp", so it can be a program name with args.
5098set dummy cmp; ac_word=$2
5099{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5101if test "${ac_cv_path_CMP+set}" = set; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5103else
5104 case $CMP in
5105 [\\/]* | ?:[\\/]*)
5106 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5107 ;;
5108 *)
5109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110for as_dir in $PATH
5111do
5112 IFS=$as_save_IFS
5113 test -z "$as_dir" && as_dir=.
5114 for ac_exec_ext in '' $ac_executable_extensions; do
5115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5116 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5118 break 2
5119 fi
5120done
5121done
5122IFS=$as_save_IFS
5123 5938
5124 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" 5939
5125 ;; 5940
5126esac
5127fi
5128CMP=$ac_cv_path_CMP
5129if test -n "$CMP"; then
5130 { echo "$as_me:$LINENO: result: $CMP" >&5
5131echo "${ECHO_T}$CMP" >&6; }
5132else
5133 { echo "$as_me:$LINENO: result: no" >&5
5134echo "${ECHO_T}no" >&6; }
5135fi
5136 5941
5137 5942
5138# Extract the first word of "tic", so it can be a program name with args. 5943# Extract the first word of "tic", so it can be a program name with args.
5139set dummy tic; ac_word=$2 5944set dummy tic; ac_word=$2
5140{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5945{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5160 fi 5965 fi
5161done 5966done
5162done 5967done
5163IFS=$as_save_IFS 5968IFS=$as_save_IFS
5164 5969
5970 test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":"
5165 ;; 5971 ;;
5166esac 5972esac
5167fi 5973fi
5168TIC=$ac_cv_path_TIC 5974TIC=$ac_cv_path_TIC
5169if test -n "$TIC"; then 5975if test -n "$TIC"; then
5174echo "${ECHO_T}no" >&6; } 5980echo "${ECHO_T}no" >&6; }
5175fi 5981fi
5176 5982
5177 5983
5178 5984
5179
5180
5181ac_ext=cpp
5182ac_cpp='$CXXCPP $CPPFLAGS'
5183ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5184ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5185ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5186{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5187echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5188if test -z "$CXXCPP"; then
5189 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5190 echo $ECHO_N "(cached) $ECHO_C" >&6
5191else
5192 # Double quotes because CXXCPP needs to be expanded
5193 for CXXCPP in "$CXX -E" "/lib/cpp"
5194 do
5195 ac_preproc_ok=false
5196for ac_cxx_preproc_warn_flag in '' yes
5197do
5198 # Use a header file that comes with gcc, so configuring glibc
5199 # with a fresh cross-compiler works.
5200 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5201 # <limits.h> exists even on freestanding compilers.
5202 # On the NeXT, cc -E runs the code through the compiler's parser,
5203 # not just through cpp. "Syntax error" is here to catch this case.
5204 cat >conftest.$ac_ext <<_ACEOF
5205/* confdefs.h. */
5206_ACEOF
5207cat confdefs.h >>conftest.$ac_ext
5208cat >>conftest.$ac_ext <<_ACEOF
5209/* end confdefs.h. */
5210#ifdef __STDC__
5211# include <limits.h>
5212#else
5213# include <assert.h>
5214#endif
5215 Syntax error
5216_ACEOF
5217if { (ac_try="$ac_cpp conftest.$ac_ext"
5218case "(($ac_try" in
5219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5220 *) ac_try_echo=$ac_try;;
5221esac
5222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5224 ac_status=$?
5225 grep -v '^ *+' conftest.er1 >conftest.err
5226 rm -f conftest.er1
5227 cat conftest.err >&5
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); } >/dev/null && {
5230 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5231 test ! -s conftest.err
5232 }; then
5233 :
5234else
5235 echo "$as_me: failed program was:" >&5
5236sed 's/^/| /' conftest.$ac_ext >&5
5237
5238 # Broken: fails on valid input.
5239continue
5240fi
5241
5242rm -f conftest.err conftest.$ac_ext
5243
5244 # OK, works on sane cases. Now check whether nonexistent headers
5245 # can be detected and how.
5246 cat >conftest.$ac_ext <<_ACEOF
5247/* confdefs.h. */
5248_ACEOF
5249cat confdefs.h >>conftest.$ac_ext
5250cat >>conftest.$ac_ext <<_ACEOF
5251/* end confdefs.h. */
5252#include <ac_nonexistent.h>
5253_ACEOF
5254if { (ac_try="$ac_cpp conftest.$ac_ext"
5255case "(($ac_try" in
5256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5257 *) ac_try_echo=$ac_try;;
5258esac
5259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5261 ac_status=$?
5262 grep -v '^ *+' conftest.er1 >conftest.err
5263 rm -f conftest.er1
5264 cat conftest.err >&5
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); } >/dev/null && {
5267 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5268 test ! -s conftest.err
5269 }; then
5270 # Broken: success on invalid input.
5271continue
5272else
5273 echo "$as_me: failed program was:" >&5
5274sed 's/^/| /' conftest.$ac_ext >&5
5275
5276 # Passes both tests.
5277ac_preproc_ok=:
5278break
5279fi
5280
5281rm -f conftest.err conftest.$ac_ext
5282
5283done
5284# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5285rm -f conftest.err conftest.$ac_ext
5286if $ac_preproc_ok; then
5287 break
5288fi
5289
5290 done
5291 ac_cv_prog_CXXCPP=$CXXCPP
5292
5293fi
5294 CXXCPP=$ac_cv_prog_CXXCPP
5295else
5296 ac_cv_prog_CXXCPP=$CXXCPP
5297fi
5298{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5299echo "${ECHO_T}$CXXCPP" >&6; }
5300ac_preproc_ok=false
5301for ac_cxx_preproc_warn_flag in '' yes
5302do
5303 # Use a header file that comes with gcc, so configuring glibc
5304 # with a fresh cross-compiler works.
5305 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5306 # <limits.h> exists even on freestanding compilers.
5307 # On the NeXT, cc -E runs the code through the compiler's parser,
5308 # not just through cpp. "Syntax error" is here to catch this case.
5309 cat >conftest.$ac_ext <<_ACEOF
5310/* confdefs.h. */
5311_ACEOF
5312cat confdefs.h >>conftest.$ac_ext
5313cat >>conftest.$ac_ext <<_ACEOF
5314/* end confdefs.h. */
5315#ifdef __STDC__
5316# include <limits.h>
5317#else
5318# include <assert.h>
5319#endif
5320 Syntax error
5321_ACEOF
5322if { (ac_try="$ac_cpp conftest.$ac_ext"
5323case "(($ac_try" in
5324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5325 *) ac_try_echo=$ac_try;;
5326esac
5327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5328 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5329 ac_status=$?
5330 grep -v '^ *+' conftest.er1 >conftest.err
5331 rm -f conftest.er1
5332 cat conftest.err >&5
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); } >/dev/null && {
5335 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5336 test ! -s conftest.err
5337 }; then
5338 :
5339else
5340 echo "$as_me: failed program was:" >&5
5341sed 's/^/| /' conftest.$ac_ext >&5
5342
5343 # Broken: fails on valid input.
5344continue
5345fi
5346
5347rm -f conftest.err conftest.$ac_ext
5348
5349 # OK, works on sane cases. Now check whether nonexistent headers
5350 # can be detected and how.
5351 cat >conftest.$ac_ext <<_ACEOF
5352/* confdefs.h. */
5353_ACEOF
5354cat confdefs.h >>conftest.$ac_ext
5355cat >>conftest.$ac_ext <<_ACEOF
5356/* end confdefs.h. */
5357#include <ac_nonexistent.h>
5358_ACEOF
5359if { (ac_try="$ac_cpp conftest.$ac_ext"
5360case "(($ac_try" in
5361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5362 *) ac_try_echo=$ac_try;;
5363esac
5364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5366 ac_status=$?
5367 grep -v '^ *+' conftest.er1 >conftest.err
5368 rm -f conftest.er1
5369 cat conftest.err >&5
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); } >/dev/null && {
5372 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5373 test ! -s conftest.err
5374 }; then
5375 # Broken: success on invalid input.
5376continue
5377else
5378 echo "$as_me: failed program was:" >&5
5379sed 's/^/| /' conftest.$ac_ext >&5
5380
5381 # Passes both tests.
5382ac_preproc_ok=:
5383break
5384fi
5385
5386rm -f conftest.err conftest.$ac_ext
5387
5388done
5389# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5390rm -f conftest.err conftest.$ac_ext
5391if $ac_preproc_ok; then
5392 :
5393else
5394 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5395See \`config.log' for more details." >&5
5396echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5397See \`config.log' for more details." >&2;}
5398 { (exit 1); exit 1; }; }
5399fi
5400
5401ac_ext=cpp
5402ac_cpp='$CXXCPP $CPPFLAGS'
5403ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5404ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5405ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5406 5985
5407 5986
5408{ echo "$as_me:$LINENO: checking for X" >&5 5987{ echo "$as_me:$LINENO: checking for X" >&5
5409echo $ECHO_N "checking for X... $ECHO_C" >&6; } 5988echo $ECHO_N "checking for X... $ECHO_C" >&6; }
5410 5989
6718 LDFLAGS=$ac_save_LDFLAGS 7297 LDFLAGS=$ac_save_LDFLAGS
6719 7298
6720fi 7299fi
6721 7300
6722 7301
6723
6724LIBAFTERIMAGE_CFLAGS= 7302AFTERIMAGE_CFLAGS=
6725AFTERIMAGE_LIBS= 7303AFTERIMAGE_LIBS=
6726have_afterimage= 7304AFTERIMAGE_VERSION=
6727 7305
6728if test x$support_afterimage = xyes; then 7306if test x$support_afterimage = xyes; then
6729 support_afterimage=no 7307 support_afterimage=no
6730 7308
6731 if test "x$afterimage_config" = "x" ; then 7309 if test "x$afterimage_config" = "x" ; then
6732 # Extract the first word of "afterimage-config", so it can be a program name with args. 7310 # Extract the first word of "afterimage-config", so it can be a program name with args.
6733set dummy afterimage-config; ac_word=$2 7311set dummy afterimage-config; ac_word=$2
6734{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7312{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6736if test "${ac_cv_path_afterimage_config+set}" = set; then 7314if test "${ac_cv_path_afterimage_config+set}" = set; then
6768 { echo "$as_me:$LINENO: result: no" >&5 7346 { echo "$as_me:$LINENO: result: no" >&5
6769echo "${ECHO_T}no" >&6; } 7347echo "${ECHO_T}no" >&6; }
6770fi 7348fi
6771 7349
6772 7350
6773 else
6774 afterimage_config=$afterimage_config/afterimage-config
6775 fi 7351 fi
6776 7352 if test "x$afterimage_config" != "xno" ; then
6777 { echo "$as_me:$LINENO: checking for libAfterImage" >&5 7353 { echo "$as_me:$LINENO: checking for libAfterImage version >= 1.15" >&5
6778echo $ECHO_N "checking for libAfterImage... $ECHO_C" >&6; } 7354echo $ECHO_N "checking for libAfterImage version >= 1.15... $ECHO_C" >&6; }
6779 if $afterimage_config --version >/dev/null 2>&1 ; then 7355 xAFTERIMAGE_VERSION=`$afterimage_config --version`
7356 if test -n "$xAFTERIMAGE_VERSION" ; then
6780 LIBAFTERIMAGE_CFLAGS=`$afterimage_config --cflags` 7357 xAFTERIMAGE_CFLAGS=`$afterimage_config --cflags`
6781 AFTERIMAGE_LIBS=`$afterimage_config --libs` 7358 xAFTERIMAGE_LIBS=`$afterimage_config --libs`
6782 if test "x$AFTERIMAGE_LIBS" != "x"; then 7359 if test "x$xAFTERIMAGE_LIBS" != "x"; then
7360 libai_ver_major=`echo $xAFTERIMAGE_VERSION | cut -f 1 -d .`
7361 libai_ver_minor=`echo $xAFTERIMAGE_VERSION | cut -f 2 -d .`
7362 if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then
6783 support_afterimage=yes 7363 support_afterimage=yes
6784 fi 7364 AFTERIMAGE_CFLAGS="$xAFTERIMAGE_CFLAGS"
6785 fi 7365 AFTERIMAGE_LIBS="$xAFTERIMAGE_LIBS"
6786 7366 AFTERIMAGE_VERSION="$xAFTERIMAGE_VERSION"
6787 if test "x$support_afterimage" = "xyes"; then
6788 { echo "$as_me:$LINENO: result: $AFTERIMAGE_LIBS" >&5
6789echo "${ECHO_T}$AFTERIMAGE_LIBS" >&6; }
6790 else
6791 { echo "$as_me:$LINENO: result: no" >&5
6792echo "${ECHO_T}no" >&6; }
6793 fi
6794fi
6795
6796if test x$support_afterimage != xyes -a x$support_xpm = xyes ; then
6797
6798
6799
6800# Initialize some more variables set by options.
6801# The variables have the same names as the options, with
6802# dashes changed to underlines.
6803
6804# If we find XPM, set shell vars xpm_includes and xpm_libraries to the
6805# paths, otherwise set no_xpm=yes.
6806# Uses ac_ vars as temps to allow command line to override cache and checks.
6807{ echo "$as_me:$LINENO: checking for libXpm" >&5
6808echo $ECHO_N "checking for libXpm... $ECHO_C" >&6; }
6809
6810
6811# Check whether --with-xpm_includes was given.
6812if test "${with_xpm_includes+set}" = set; then
6813 withval=$with_xpm_includes; xpm_includes="$withval"
6814else
6815 xpm_includes=NO
6816fi
6817
6818
6819# Check whether --with-xpm_library was given.
6820if test "${with_xpm_library+set}" = set; then
6821 withval=$with_xpm_library; xpm_libraries="$withval"
6822else
6823 xpm_libraries=NO
6824fi
6825
6826
6827# --without-xpm overrides everything else, but does not touch the cache.
6828
6829# Check whether --with-xpm was given.
6830if test "${with_xpm+set}" = set; then
6831 withval=$with_xpm;
6832fi
6833
6834if test "$with_xpm" = no; then
6835 have_xpm=disabled
6836else
6837 if test "${ac_cv_have_xpm+set}" = set; then
6838 echo $ECHO_N "(cached) $ECHO_C" >&6
6839else
6840
6841 vt_xpm_include_X11=no
6842 if test -n "$xpm_includes"; then
6843 vt_xpm_includes=$xpm_includes
6844 else
6845 vt_xpm_includes=NO
6846 fi
6847 if test -n "$xpm_libraries"; then
6848 vt_xpm_libraries=$xpm_libraries
6849 else
6850 vt_xpm_libraries=NO
6851 fi
6852
6853 if test "$vt_xpm_includes" = NO; then
6854 # Guess where to find xpm.h
6855
6856ac_save_CPPFLAGS="$CPPFLAGS"
6857CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6858
6859 # First, try using that file with no special directory specified.
6860cat >conftest.$ac_ext <<_ACEOF
6861/* confdefs.h. */
6862_ACEOF
6863cat confdefs.h >>conftest.$ac_ext
6864cat >>conftest.$ac_ext <<_ACEOF
6865/* end confdefs.h. */
6866#include <X11/xpm.h>
6867_ACEOF
6868if { (ac_try="$ac_cpp conftest.$ac_ext"
6869case "(($ac_try" in
6870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6871 *) ac_try_echo=$ac_try;;
6872esac
6873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6875 ac_status=$?
6876 grep -v '^ *+' conftest.er1 >conftest.err
6877 rm -f conftest.er1
6878 cat conftest.err >&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } >/dev/null && {
6881 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6882 test ! -s conftest.err
6883 }; then
6884 # We can compile using X headers with no special include directory.
6885vt_xpm_includes=
6886vt_xpm_include_X11=yes
6887else
6888 echo "$as_me: failed program was:" >&5
6889sed 's/^/| /' conftest.$ac_ext >&5
6890
6891 CPPFLAGS="$ac_save_CPPFLAGS"
6892# Look for the header file in a standard set of common directories.
6893 for ac_dir in \
6894 /usr/X11/include \
6895 /usr/X11R6/include \
6896 /usr/X11R5/include \
6897 /usr/X11R4/include \
6898 \
6899 /usr/include/X11 \
6900 /usr/include/X11R6 \
6901 /usr/include/X11R5 \
6902 /usr/include/X11R4 \
6903 \
6904 /usr/local/X11/include \
6905 /usr/local/X11R6/include \
6906 /usr/local/X11R5/include \
6907 /usr/local/X11R4/include \
6908 \
6909 /usr/local/include/X11 \
6910 /usr/local/include/X11R6 \
6911 /usr/local/include/X11R5 \
6912 /usr/local/include/X11R4 \
6913 \
6914 /usr/X386/include \
6915 /usr/x386/include \
6916 /usr/XFree86/include/X11 \
6917 \
6918 /usr/include \
6919 /usr/local/include \
6920 /usr/unsupported/include \
6921 /usr/athena/include \
6922 /usr/local/x11r5/include \
6923 /usr/lpp/Xamples/include \
6924 \
6925 /usr/openwin/include \
6926 /usr/openwin/share/include \
6927 ; \
6928 do
6929 if test -r "$ac_dir/X11/xpm.h"; then
6930 vt_xpm_includes="$ac_dir"
6931 vt_xpm_include_X11=yes
6932 break
6933 else
6934 if test -r "$ac_dir/xpm.h"; then
6935 vt_xpm_includes=$ac_dir
6936 break
6937 fi
6938 fi
6939 done
6940fi
6941
6942rm -f conftest.err conftest.$ac_ext
6943fi
6944
6945if test "$vt_xpm_libraries" = NO; then
6946 # Check for the libraries.
6947
6948 # See if we find them without any special options.
6949 # Don't add to $LIBS permanently.
6950 ac_save_LIBS="$LIBS"
6951 LIBS="$LIBS $X_LIBS -lXpm -lX11"
6952cat >conftest.$ac_ext <<_ACEOF
6953/* confdefs.h. */
6954_ACEOF
6955cat confdefs.h >>conftest.$ac_ext
6956cat >>conftest.$ac_ext <<_ACEOF
6957/* end confdefs.h. */
6958
6959int
6960main ()
6961{
6962XpmReadFileToPixmap()
6963 ;
6964 return 0;
6965}
6966_ACEOF
6967rm -f conftest.$ac_objext conftest$ac_exeext
6968if { (ac_try="$ac_link"
6969case "(($ac_try" in
6970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6971 *) ac_try_echo=$ac_try;;
6972esac
6973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6974 (eval "$ac_link") 2>conftest.er1
6975 ac_status=$?
6976 grep -v '^ *+' conftest.er1 >conftest.err
6977 rm -f conftest.er1
6978 cat conftest.err >&5
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); } && {
6981 test -z "$ac_cxx_werror_flag" ||
6982 test ! -s conftest.err
6983 } && test -s conftest$ac_exeext &&
6984 $as_test_x conftest$ac_exeext; then
6985 LIBS="$ac_save_LIBS"
6986# We can link libXpm with no special library path.
6987vt_xpm_libraries=
6988else
6989 echo "$as_me: failed program was:" >&5
6990sed 's/^/| /' conftest.$ac_ext >&5
6991
6992 LIBS="$ac_save_LIBS"
6993# First see if replacing the include by lib works.
6994for ac_dir in \
6995 `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
6996 /usr/X11/lib \
6997 /usr/X11R6/lib \
6998 /usr/X11R5/lib \
6999 /usr/X11R4/lib \
7000 \
7001 /usr/lib/X11 \
7002 /usr/lib/X11R6 \
7003 /usr/lib/X11R5 \
7004 /usr/lib/X11R4 \
7005 \
7006 /usr/local/X11/lib \
7007 /usr/local/X11R6/lib \
7008 /usr/local/X11R5/lib \
7009 /usr/local/X11R4/lib \
7010 \
7011 /usr/local/lib/X11 \
7012 /usr/local/lib/X11R6 \
7013 /usr/local/lib/X11R5 \
7014 /usr/local/lib/X11R4 \
7015 \
7016 /usr/X386/lib \
7017 /usr/x386/lib \
7018 /usr/XFree86/lib/X11 \
7019 \
7020 /usr/lib \
7021 /usr/local/lib \
7022 /usr/unsupported/lib \
7023 /usr/athena/lib \
7024 /usr/local/x11r5/lib \
7025 /usr/lpp/Xamples/lib \
7026 \
7027 /usr/openwin/lib \
7028 /usr/openwin/share/lib \
7029 ; \
7030do
7031 for ac_extension in a so sl; do
7032 if test -r $ac_dir/libXpm.$ac_extension; then
7033 vt_xpm_libraries=$ac_dir
7034 break 2
7035 fi
7036 done
7037done
7038fi
7039
7040rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7041 conftest$ac_exeext conftest.$ac_ext
7042fi
7043
7044
7045 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then
7046 ac_cv_have_xpm="have_xpm=no"
7047 else
7048 ac_cv_have_xpm="have_xpm=yes \
7049 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
7050 vt_xpm_include_X11=$vt_xpm_include_X11"
7051 fi
7052fi
7053 eval "$ac_cv_have_xpm"
7054fi
7055
7056if test "$have_xpm" != yes; then
7057 { echo "$as_me:$LINENO: result: $have_xpm" >&5
7058echo "${ECHO_T}$have_xpm" >&6; }
7059 no_xpm=yes
7060else
7061 if test "$xpm_includes" != NO; then
7062 if test "$xpm_includes" = "$vt_xpm_includes"; then
7063 if test -r "$xpm_includes/X11/xpm.h"; then
7064 vt_xpm_include_X11=yes
7065 fi
7066 else
7067 vt_xpm_include_X11=no
7068 if test -z "$xpm_includes"; then
7069 cat >conftest.$ac_ext <<_ACEOF
7070/* confdefs.h. */
7071_ACEOF
7072cat confdefs.h >>conftest.$ac_ext
7073cat >>conftest.$ac_ext <<_ACEOF
7074/* end confdefs.h. */
7075#include <X11/xpm.h>
7076_ACEOF
7077if { (ac_try="$ac_cpp conftest.$ac_ext"
7078case "(($ac_try" in
7079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7080 *) ac_try_echo=$ac_try;;
7081esac
7082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7084 ac_status=$?
7085 grep -v '^ *+' conftest.er1 >conftest.err
7086 rm -f conftest.er1
7087 cat conftest.err >&5
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); } >/dev/null && {
7090 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7091 test ! -s conftest.err
7092 }; then
7093 vt_xpm_include_X11=yes
7094else
7095 echo "$as_me: failed program was:" >&5
7096sed 's/^/| /' conftest.$ac_ext >&5
7097
7098
7099fi
7100
7101rm -f conftest.err conftest.$ac_ext
7102 else
7103 if test -r "$xpm_includes/X11/xpm.h"; then
7104 vt_xpm_include_X11=yes
7105 fi 7367 fi
7106 fi 7368 fi
7107 fi 7369 fi
7108 vt_xpm_includes=$xpm_includes 7370 if test "x$support_afterimage" = "xyes"; then
7371 { echo "$as_me:$LINENO: result: $AFTERIMAGE_LIBS" >&5
7372echo "${ECHO_T}$AFTERIMAGE_LIBS" >&6; }
7373 else
7374 { echo "$as_me:$LINENO: result: no" >&5
7375echo "${ECHO_T}no" >&6; }
7109 fi 7376 fi
7110 if test "x$xpm_libraries" != xNO; then
7111 vt_xpm_libraries=$xpm_libraries
7112 fi
7113 # Update the cache value to reflect the command line values.
7114 ac_cv_have_xpm="have_xpm=yes \
7115 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
7116 vt_xpm_include_X11=$vt_xpm_include_X11"
7117 eval "$ac_cv_have_xpm"
7118 { echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5
7119echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6; }
7120 if test -n "$vt_xpm_includes"; then
7121 XPM_CPPFLAGS="-DHAVE_LIBXPM"
7122 fi
7123 if test -n "$vt_xpm_includes"; then
7124 XPM_CFLAGS="-I$vt_xpm_includes"
7125 fi
7126 XPM_LIBS="-lXpm"
7127 if test -n "$vt_xpm_libraries"; then
7128 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
7129 fi
7130 if test "x$vt_xpm_include_X11" = xyes; then
7131
7132cat >>confdefs.h <<\_ACEOF
7133#define XPM_INC_X11 1
7134_ACEOF
7135
7136 fi
7137fi
7138
7139
7140
7141
7142
7143 if test x$no_xpm = xyes; then
7144 support_xpm=needsmanualspecification
7145 fi 7377 fi
7146fi 7378fi
7147 7379
7148{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 7380{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7149echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } 7381echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7209cat >>confdefs.h <<\_ACEOF 7441cat >>confdefs.h <<\_ACEOF
7210#define HAVE_SYS_WAIT_H 1 7442#define HAVE_SYS_WAIT_H 1
7211_ACEOF 7443_ACEOF
7212 7444
7213fi 7445fi
7214
7215{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7216echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7217if test "${ac_cv_header_stdc+set}" = set; then
7218 echo $ECHO_N "(cached) $ECHO_C" >&6
7219else
7220 cat >conftest.$ac_ext <<_ACEOF
7221/* confdefs.h. */
7222_ACEOF
7223cat confdefs.h >>conftest.$ac_ext
7224cat >>conftest.$ac_ext <<_ACEOF
7225/* end confdefs.h. */
7226#include <stdlib.h>
7227#include <stdarg.h>
7228#include <string.h>
7229#include <float.h>
7230
7231int
7232main ()
7233{
7234
7235 ;
7236 return 0;
7237}
7238_ACEOF
7239rm -f conftest.$ac_objext
7240if { (ac_try="$ac_compile"
7241case "(($ac_try" in
7242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7243 *) ac_try_echo=$ac_try;;
7244esac
7245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7246 (eval "$ac_compile") 2>conftest.er1
7247 ac_status=$?
7248 grep -v '^ *+' conftest.er1 >conftest.err
7249 rm -f conftest.er1
7250 cat conftest.err >&5
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); } && {
7253 test -z "$ac_cxx_werror_flag" ||
7254 test ! -s conftest.err
7255 } && test -s conftest.$ac_objext; then
7256 ac_cv_header_stdc=yes
7257else
7258 echo "$as_me: failed program was:" >&5
7259sed 's/^/| /' conftest.$ac_ext >&5
7260
7261 ac_cv_header_stdc=no
7262fi
7263
7264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7265
7266if test $ac_cv_header_stdc = yes; then
7267 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7268 cat >conftest.$ac_ext <<_ACEOF
7269/* confdefs.h. */
7270_ACEOF
7271cat confdefs.h >>conftest.$ac_ext
7272cat >>conftest.$ac_ext <<_ACEOF
7273/* end confdefs.h. */
7274#include <string.h>
7275
7276_ACEOF
7277if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7278 $EGREP "memchr" >/dev/null 2>&1; then
7279 :
7280else
7281 ac_cv_header_stdc=no
7282fi
7283rm -f conftest*
7284
7285fi
7286
7287if test $ac_cv_header_stdc = yes; then
7288 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7289 cat >conftest.$ac_ext <<_ACEOF
7290/* confdefs.h. */
7291_ACEOF
7292cat confdefs.h >>conftest.$ac_ext
7293cat >>conftest.$ac_ext <<_ACEOF
7294/* end confdefs.h. */
7295#include <stdlib.h>
7296
7297_ACEOF
7298if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7299 $EGREP "free" >/dev/null 2>&1; then
7300 :
7301else
7302 ac_cv_header_stdc=no
7303fi
7304rm -f conftest*
7305
7306fi
7307
7308if test $ac_cv_header_stdc = yes; then
7309 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7310 if test "$cross_compiling" = yes; then
7311 :
7312else
7313 cat >conftest.$ac_ext <<_ACEOF
7314/* confdefs.h. */
7315_ACEOF
7316cat confdefs.h >>conftest.$ac_ext
7317cat >>conftest.$ac_ext <<_ACEOF
7318/* end confdefs.h. */
7319#include <ctype.h>
7320#include <stdlib.h>
7321#if ((' ' & 0x0FF) == 0x020)
7322# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7323# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7324#else
7325# define ISLOWER(c) \
7326 (('a' <= (c) && (c) <= 'i') \
7327 || ('j' <= (c) && (c) <= 'r') \
7328 || ('s' <= (c) && (c) <= 'z'))
7329# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7330#endif
7331
7332#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7333int
7334main ()
7335{
7336 int i;
7337 for (i = 0; i < 256; i++)
7338 if (XOR (islower (i), ISLOWER (i))
7339 || toupper (i) != TOUPPER (i))
7340 return 2;
7341 return 0;
7342}
7343_ACEOF
7344rm -f conftest$ac_exeext
7345if { (ac_try="$ac_link"
7346case "(($ac_try" in
7347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7348 *) ac_try_echo=$ac_try;;
7349esac
7350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7351 (eval "$ac_link") 2>&5
7352 ac_status=$?
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7355 { (case "(($ac_try" in
7356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7357 *) ac_try_echo=$ac_try;;
7358esac
7359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7360 (eval "$ac_try") 2>&5
7361 ac_status=$?
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); }; }; then
7364 :
7365else
7366 echo "$as_me: program exited with status $ac_status" >&5
7367echo "$as_me: failed program was:" >&5
7368sed 's/^/| /' conftest.$ac_ext >&5
7369
7370( exit $ac_status )
7371ac_cv_header_stdc=no
7372fi
7373rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7374fi
7375
7376
7377fi
7378fi
7379{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7380echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7381if test $ac_cv_header_stdc = yes; then
7382
7383cat >>confdefs.h <<\_ACEOF
7384#define STDC_HEADERS 1
7385_ACEOF
7386
7387fi
7388
7389# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7400 inttypes.h stdint.h unistd.h
7401do
7402as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7403{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7404echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7405if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7407else
7408 cat >conftest.$ac_ext <<_ACEOF
7409/* confdefs.h. */
7410_ACEOF
7411cat confdefs.h >>conftest.$ac_ext
7412cat >>conftest.$ac_ext <<_ACEOF
7413/* end confdefs.h. */
7414$ac_includes_default
7415
7416#include <$ac_header>
7417_ACEOF
7418rm -f conftest.$ac_objext
7419if { (ac_try="$ac_compile"
7420case "(($ac_try" in
7421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7422 *) ac_try_echo=$ac_try;;
7423esac
7424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7425 (eval "$ac_compile") 2>conftest.er1
7426 ac_status=$?
7427 grep -v '^ *+' conftest.er1 >conftest.err
7428 rm -f conftest.er1
7429 cat conftest.err >&5
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); } && {
7432 test -z "$ac_cxx_werror_flag" ||
7433 test ! -s conftest.err
7434 } && test -s conftest.$ac_objext; then
7435 eval "$as_ac_Header=yes"
7436else
7437 echo "$as_me: failed program was:" >&5
7438sed 's/^/| /' conftest.$ac_ext >&5
7439
7440 eval "$as_ac_Header=no"
7441fi
7442
7443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7444fi
7445ac_res=`eval echo '${'$as_ac_Header'}'`
7446 { echo "$as_me:$LINENO: result: $ac_res" >&5
7447echo "${ECHO_T}$ac_res" >&6; }
7448if test `eval echo '${'$as_ac_Header'}'` = yes; then
7449 cat >>confdefs.h <<_ACEOF
7450#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7451_ACEOF
7452
7453fi
7454
7455done
7456
7457 7446
7458 7447
7459 7448
7460 7449
7461 7450
7744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7745fi 7734fi
7746{ echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5 7735{ echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7747echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6; } 7736echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6; }
7748 7737
7749if test -n "$GCC"; then
7750 LDARG="-Wl,"
7751else
7752 LDARG=""
7753fi
7754R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-rpath '$LDARG'\1/g'
7755
7756ac_save_CFLAGS=$CFLAGS
7757ac_save_LIBS=$LIBS
7758CFLAGS="$CFLAGS $X_CFLAGS"
7759LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7760{ echo "$as_me:$LINENO: checking for -rpath dynamic library path recording" >&5
7761echo $ECHO_N "checking for -rpath dynamic library path recording... $ECHO_C" >&6; }
7762if test "${rxvt_cv_rpath+set}" = set; then
7763 echo $ECHO_N "(cached) $ECHO_C" >&6
7764else
7765 if test "$cross_compiling" = yes; then
7766 { echo "$as_me:$LINENO: WARNING: You may need to check the LIBS line" >&5
7767echo "$as_me: WARNING: You may need to check the LIBS line" >&2;}
7768else
7769 cat >conftest.$ac_ext <<_ACEOF
7770/* confdefs.h. */
7771_ACEOF
7772cat confdefs.h >>conftest.$ac_ext
7773cat >>conftest.$ac_ext <<_ACEOF
7774/* end confdefs.h. */
7775#include <X11/Xlib.h>
7776#include <stdlib.h>
7777main()
7778{
7779 exit(0);
7780 (void) XOpenDisplay("foobar");
7781}
7782_ACEOF
7783rm -f conftest$ac_exeext
7784if { (ac_try="$ac_link"
7785case "(($ac_try" in
7786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7787 *) ac_try_echo=$ac_try;;
7788esac
7789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7790 (eval "$ac_link") 2>&5
7791 ac_status=$?
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7794 { (case "(($ac_try" in
7795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7796 *) ac_try_echo=$ac_try;;
7797esac
7798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7799 (eval "$ac_try") 2>&5
7800 ac_status=$?
7801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802 (exit $ac_status); }; }; then
7803 rxvt_cv_rpath=yes
7804else
7805 echo "$as_me: program exited with status $ac_status" >&5
7806echo "$as_me: failed program was:" >&5
7807sed 's/^/| /' conftest.$ac_ext >&5
7808
7809( exit $ac_status )
7810rxvt_cv_rpath=no
7811fi
7812rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7813fi
7814
7815
7816fi
7817{ echo "$as_me:$LINENO: result: $rxvt_cv_rpath" >&5
7818echo "${ECHO_T}$rxvt_cv_rpath" >&6; }
7819if test x$rxvt_cv_rpath != xyes; then
7820 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g'
7821 LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7822 { echo "$as_me:$LINENO: checking for -R dynamic library path recording" >&5
7823echo $ECHO_N "checking for -R dynamic library path recording... $ECHO_C" >&6; }
7824if test "${rxvt_cv_R+set}" = set; then
7825 echo $ECHO_N "(cached) $ECHO_C" >&6
7826else
7827 if test "$cross_compiling" = yes; then
7828 rxvt_cv_R=no
7829else
7830 cat >conftest.$ac_ext <<_ACEOF
7831/* confdefs.h. */
7832_ACEOF
7833cat confdefs.h >>conftest.$ac_ext
7834cat >>conftest.$ac_ext <<_ACEOF
7835/* end confdefs.h. */
7836#include <X11/Xlib.h>
7837#include <stdlib.h>
7838main()
7839{
7840 exit(0);
7841 (void) XOpenDisplay("foobar");
7842}
7843_ACEOF
7844rm -f conftest$ac_exeext
7845if { (ac_try="$ac_link"
7846case "(($ac_try" in
7847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7848 *) ac_try_echo=$ac_try;;
7849esac
7850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7851 (eval "$ac_link") 2>&5
7852 ac_status=$?
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7855 { (case "(($ac_try" in
7856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7857 *) ac_try_echo=$ac_try;;
7858esac
7859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7860 (eval "$ac_try") 2>&5
7861 ac_status=$?
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); }; }; then
7864 rxvt_cv_R=yes
7865else
7866 echo "$as_me: program exited with status $ac_status" >&5
7867echo "$as_me: failed program was:" >&5
7868sed 's/^/| /' conftest.$ac_ext >&5
7869
7870( exit $ac_status )
7871rxvt_cv_R=no
7872fi
7873rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7874fi
7875
7876
7877fi
7878{ echo "$as_me:$LINENO: result: $rxvt_cv_R" >&5
7879echo "${ECHO_T}$rxvt_cv_R" >&6; }
7880 if test x$rxvt_cv_R != xyes; then
7881 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7882 fi
7883fi
7884
7885{ echo "$as_me:$LINENO: checking for XPointer" >&5 7738{ echo "$as_me:$LINENO: checking for XPointer" >&5
7886echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } 7739echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; }
7887if test "${rxvt_cv_xpointer+set}" = set; then 7740if test "${rxvt_cv_xpointer+set}" = set; then
7888 echo $ECHO_N "(cached) $ECHO_C" >&6 7741 echo $ECHO_N "(cached) $ECHO_C" >&6
7889else 7742else
7936cat >>confdefs.h <<\_ACEOF 7789cat >>confdefs.h <<\_ACEOF
7937#define HAVE_XPOINTER 1 7790#define HAVE_XPOINTER 1
7938_ACEOF 7791_ACEOF
7939 7792
7940fi 7793fi
7941LIBS=$ac_save_LIBS
7942CFLAGS=$ac_save_CFLAGS
7943 7794
7944{ echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5 7795{ echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5
7945echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6; } 7796echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6; }
7946if test "${rxvt_xlib_illegal_access+set}" = set; then 7797if test "${rxvt_xlib_illegal_access+set}" = set; then
7947 echo $ECHO_N "(cached) $ECHO_C" >&6 7798 echo $ECHO_N "(cached) $ECHO_C" >&6
10362_ACEOF 10213_ACEOF
10363 10214
10364 10215
10365 10216
10366 10217
10367
10368
10369for ac_func in \ 10218for ac_func in unsetenv
10370 unsetenv \
10371 setutent \
10372 on_exit \
10373
10374do 10219do
10375as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10220as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10376{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10221{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10377echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10222echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10378if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10223if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10517 10362
10518 10363
10519 10364
10520 10365
10521for ac_func in \ 10366for ac_func in \
10522 ttyslot \
10523 updwtmp \ 10367 updwtmp \
10524 updwtmpx \ 10368 updwtmpx \
10369 updlastlogx \
10525 10370
10526do 10371do
10527as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10372as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10528{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10373{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10529echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10374echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11950 11795
11951cat >>confdefs.h <<_ACEOF 11796cat >>confdefs.h <<_ACEOF
11952#define LASTLOG_FILE "$path_lastlog" 11797#define LASTLOG_FILE "$path_lastlog"
11953_ACEOF 11798_ACEOF
11954 11799
11955 if test -d "$path_lastlog"; then
11956
11957cat >>confdefs.h <<\_ACEOF
11958#define LASTLOG_IS_DIR 1
11959_ACEOF
11960
11961 fi
11962fi 11800fi
11963 11801
11964{ echo "$as_me:$LINENO: checking where lastlogx is located" >&5 11802{ echo "$as_me:$LINENO: checking where lastlogx is located" >&5
11965echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } 11803echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; }
11966if test "${path_lastlogx+set}" = set; then 11804if test "${path_lastlogx+set}" = set; then
12048 11886
12049fi 11887fi
12050 11888
12051 11889
12052 11890
12053{ echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
12054echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6; }
12055if test "${rxvt_cv_path_ttytab+set}" = set; then
12056 echo $ECHO_N "(cached) $ECHO_C" >&6
12057else
12058 for ttys_file in /etc/ttys /etc/ttytab;
12059do
12060 if test -f "$ttys_file" ; then
12061 rxvt_cv_path_ttytab=$ttys_file
12062 break
12063 fi
12064done
12065 11891
12066fi
12067{ echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
12068echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6; }
12069if test x$rxvt_cv_path_ttytab != x; then
12070
12071cat >>confdefs.h <<_ACEOF
12072#define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
12073_ACEOF
12074
12075fi
12076
12077
12078ac_save_LIBS=$LIBS 11892save_LIBS=$LIBS
12079ac_save_CFLAGS=$CFLAGS 11893save_CFLAGS=$CFLAGS
12080CFLAGS="$CFLAGS $X_CFLAGS" 11894CFLAGS="$CFLAGS $X_CFLAGS"
12081LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 11895LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
12082if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then 11896if test x$support_xim = xyes; then
12083 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
12084fi
12085{ echo "$as_me:$LINENO: checking for working Xlocale" >&5 11897 { echo "$as_me:$LINENO: checking for working Xlocale" >&5
12086echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } 11898echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; }
12087if test "${rxvt_cv_func_xlocale+set}" = set; then 11899if test "${rxvt_cv_func_xlocale+set}" = set; then
12088 echo $ECHO_N "(cached) $ECHO_C" >&6 11900 echo $ECHO_N "(cached) $ECHO_C" >&6
12089else 11901else
12090 if test "$cross_compiling" = yes; then 11902 if test "$cross_compiling" = yes; then
12091 { echo "$as_me:$LINENO: WARNING: Define NO_XLOCALE in config.h manually" >&5 11903 :
12092echo "$as_me: WARNING: Define NO_XLOCALE in config.h manually" >&2;}
12093else 11904else
12094 cat >conftest.$ac_ext <<_ACEOF 11905 cat >conftest.$ac_ext <<_ACEOF
12095/* confdefs.h. */ 11906/* confdefs.h. */
12096_ACEOF 11907_ACEOF
12097cat confdefs.h >>conftest.$ac_ext 11908cat confdefs.h >>conftest.$ac_ext
12098cat >>conftest.$ac_ext <<_ACEOF 11909cat >>conftest.$ac_ext <<_ACEOF
12099/* end confdefs.h. */ 11910/* end confdefs.h. */
12100#include <X11/Xlib.h> 11911#include <X11/Xlib.h>
12101#include <stdlib.h> 11912 #include <stdlib.h>
12102main() { 11913 main() {
12103char *p; 11914 char *p;
12104if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) 11915 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
12105exit (XSupportsLocale() ? 0 : 1); 11916 exit (XSupportsLocale() ? 0 : 1);
12106else 11917 else
12107exit (1);} 11918 exit (1);}
12108_ACEOF 11919_ACEOF
12109rm -f conftest$ac_exeext 11920rm -f conftest$ac_exeext
12110if { (ac_try="$ac_link" 11921if { (ac_try="$ac_link"
12111case "(($ac_try" in 11922case "(($ac_try" in
12112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12125 (eval "$ac_try") 2>&5 11936 (eval "$ac_try") 2>&5
12126 ac_status=$? 11937 ac_status=$?
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; }; then 11939 (exit $ac_status); }; }; then
12129 rxvt_cv_func_xlocale=yes 11940 rxvt_cv_func_xlocale=yes
12130else 11941else
12131 echo "$as_me: program exited with status $ac_status" >&5 11942 echo "$as_me: program exited with status $ac_status" >&5
12132echo "$as_me: failed program was:" >&5 11943echo "$as_me: failed program was:" >&5
12133sed 's/^/| /' conftest.$ac_ext >&5 11944sed 's/^/| /' conftest.$ac_ext >&5
12134 11945
12140 11951
12141 11952
12142fi 11953fi
12143{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 11954{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
12144echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; } 11955echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; }
12145if test x$rxvt_cv_func_xlocale = xyes; then 11956 if test x$rxvt_cv_func_xlocale = xyes; then
12146 11957
12147cat >>confdefs.h <<\_ACEOF 11958cat >>confdefs.h <<\_ACEOF
12148#define HAVE_XLOCALE 1 11959#define USE_XIM 1
12149_ACEOF 11960_ACEOF
12150 11961
11962 { echo "$as_me:$LINENO: checking for broken XIM callback" >&5
11963echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; }
11964if test "${rxvt_broken_ximcb+set}" = set; then
11965 echo $ECHO_N "(cached) $ECHO_C" >&6
11966else
11967 cat >conftest.$ac_ext <<_ACEOF
11968
11969 #include <X11/Xlib.h>
11970
11971 void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
11972
11973 void f() {
11974 XIMCallback cb;
11975 cb.callback = im_destroy_cb;
11976 }
11977
11978_ACEOF
11979rm -f conftest.$ac_objext
11980if { (ac_try="$ac_compile"
11981case "(($ac_try" in
11982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11983 *) ac_try_echo=$ac_try;;
11984esac
11985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11986 (eval "$ac_compile") 2>conftest.er1
11987 ac_status=$?
11988 grep -v '^ *+' conftest.er1 >conftest.err
11989 rm -f conftest.er1
11990 cat conftest.err >&5
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); } && {
11993 test -z "$ac_cxx_werror_flag" ||
11994 test ! -s conftest.err
11995 } && test -s conftest.$ac_objext; then
11996 rxvt_broken_ximcb=yes
11997else
11998 echo "$as_me: failed program was:" >&5
11999sed 's/^/| /' conftest.$ac_ext >&5
12000
12001 rxvt_broken_ximcb=no
12002fi
12003
12004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12005fi
12006{ echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
12007echo "${ECHO_T}$rxvt_broken_ximcb" >&6; }
12008
12009 if test x$rxvt_broken_ximcb = xyes; then
12010
12011cat >>confdefs.h <<\_ACEOF
12012#define XIMCB_PROTO_BROKEN 1
12013_ACEOF
12014
12015 fi
12016 fi
12151fi 12017fi
12152 12018
12153{ echo "$as_me:$LINENO: checking for working X setlocale" >&5 12019{ echo "$as_me:$LINENO: checking for working X setlocale" >&5
12154echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; } 12020echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; }
12155if test "${rxvt_cv_func_xsetlocale+set}" = set; then 12021if test "${rxvt_cv_func_xsetlocale+set}" = set; then
12207cat >>confdefs.h <<\_ACEOF 12073cat >>confdefs.h <<\_ACEOF
12208#define HAVE_XSETLOCALE 1 12074#define HAVE_XSETLOCALE 1
12209_ACEOF 12075_ACEOF
12210 12076
12211fi 12077fi
12212LIBS=$ac_save_LIBS 12078LIBS=$save_LIBS
12213CFLAGS=$ac_save_CFLAGS 12079CFLAGS=$save_CFLAGS
12214 12080
12215{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5 12081{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5
12216echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } 12082echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; }
12217if test "${rxvt_cv_func_setlocale+set}" = set; then 12083if test "${rxvt_cv_func_setlocale+set}" = set; then
12218 echo $ECHO_N "(cached) $ECHO_C" >&6 12084 echo $ECHO_N "(cached) $ECHO_C" >&6
12421 { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5 12287 { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5
12422echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} 12288echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;}
12423 { (exit 1); exit 1; }; } 12289 { (exit 1); exit 1; }; }
12424fi 12290fi
12425 12291
12426
12427{ echo "$as_me:$LINENO: checking for broken XIM callback" >&5
12428echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; }
12429if test "${rxvt_broken_ximcb+set}" = set; then
12430 echo $ECHO_N "(cached) $ECHO_C" >&6
12431else
12432 cat >conftest.$ac_ext <<_ACEOF
12433
12434#include <X11/Xlib.h>
12435
12436void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
12437
12438void f() {
12439 XIMCallback cb;
12440 cb.callback = im_destroy_cb;
12441}
12442
12443_ACEOF
12444rm -f conftest.$ac_objext
12445if { (ac_try="$ac_compile"
12446case "(($ac_try" in
12447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12448 *) ac_try_echo=$ac_try;;
12449esac
12450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12451 (eval "$ac_compile") 2>conftest.er1
12452 ac_status=$?
12453 grep -v '^ *+' conftest.er1 >conftest.err
12454 rm -f conftest.er1
12455 cat conftest.err >&5
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); } && {
12458 test -z "$ac_cxx_werror_flag" ||
12459 test ! -s conftest.err
12460 } && test -s conftest.$ac_objext; then
12461 rxvt_broken_ximcb=yes
12462else
12463 echo "$as_me: failed program was:" >&5
12464sed 's/^/| /' conftest.$ac_ext >&5
12465
12466 rxvt_broken_ximcb=no
12467fi
12468
12469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12470fi
12471{ echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
12472echo "${ECHO_T}$rxvt_broken_ximcb" >&6; }
12473
12474if test x$rxvt_broken_ximcb = xyes; then
12475
12476cat >>confdefs.h <<\_ACEOF
12477#define XIMCB_PROTO_BROKEN 1
12478_ACEOF
12479
12480fi
12481 12292
12482 12293
12483 12294
12484 12295
12485 12296
13166echo "${ECHO_T}no" >&6; } 12977echo "${ECHO_T}no" >&6; }
13167fi 12978fi
13168 12979
13169 12980
13170 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then 12981 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
13171 LIBS="$LIBS `$PKG_CONFIG xft --libs`" 12982 X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS"
13172 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" 12983 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
13173 else 12984 else
13174 # Extract the first word of "xft-config", so it can be a program name with args. 12985 # Extract the first word of "xft-config", so it can be a program name with args.
13175set dummy xft-config; ac_word=$2 12986set dummy xft-config; ac_word=$2
13176{ echo "$as_me:$LINENO: checking for $ac_word" >&5 12987{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13211echo "${ECHO_T}no" >&6; } 13022echo "${ECHO_T}no" >&6; }
13212fi 13023fi
13213 13024
13214 13025
13215 if test $XFT_CONFIG != no; then 13026 if test $XFT_CONFIG != no; then
13216 LIBS="$LIBS `$XFT_CONFIG --libs`" 13027 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
13217 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" 13028 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
13218 fi 13029 fi
13219 fi 13030 fi
13220 13031
13032 save_LIBS="$LIBS"
13033 LIBS="$LIBS $X_LIBS"
13221 13034
13222for ac_header in X11/Xft/Xft.h 13035for ac_header in X11/Xft/Xft.h
13223do 13036do
13224as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13037as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13225if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13038if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13358 support_xft=no 13171 support_xft=no
13359fi 13172fi
13360 13173
13361done 13174done
13362 13175
13363
13364{ echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 13176 { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
13365echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } 13177echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; }
13366if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then 13178if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then
13367 echo $ECHO_N "(cached) $ECHO_C" >&6 13179 echo $ECHO_N "(cached) $ECHO_C" >&6
13368else 13180else
13369 ac_check_lib_save_LIBS=$LIBS 13181 ac_check_lib_save_LIBS=$LIBS
13421LIBS=$ac_check_lib_save_LIBS 13233LIBS=$ac_check_lib_save_LIBS
13422fi 13234fi
13423{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 13235{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
13424echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } 13236echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; }
13425if test $ac_cv_lib_Xft_XftDrawString32 = yes; then 13237if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
13426 cat >>confdefs.h <<_ACEOF 13238 :
13427#define HAVE_LIBXFT 1
13428_ACEOF
13429
13430 LIBS="-lXft $LIBS"
13431
13432else 13239else
13433 support_xft=no 13240 support_xft=no
13434fi 13241fi
13435 13242
13243 LIBS="$save_LIBS"
13436 13244
13437 if test x$support_xft = xyes; then 13245 if test x$support_xft = xyes; then
13438 13246
13439cat >>confdefs.h <<\_ACEOF 13247cat >>confdefs.h <<\_ACEOF
13440#define XFT 1 13248#define XFT 1
13468cat >>confdefs.h <<\_ACEOF 13276cat >>confdefs.h <<\_ACEOF
13469#define OFF_FOCUS_FADING 1 13277#define OFF_FOCUS_FADING 1
13470_ACEOF 13278_ACEOF
13471 13279
13472fi 13280fi
13473if test x$support_tinting = xyes; then 13281if test x$support_inheritpixmap = xyes; then
13474 13282
13475cat >>confdefs.h <<\_ACEOF 13283cat >>confdefs.h <<\_ACEOF
13476#define TINTING 1
13477_ACEOF
13478
13479fi
13480if test x$support_inheritpixmap = xyes; then
13481
13482cat >>confdefs.h <<\_ACEOF
13483#define TRANSPARENT 1 13284#define ENABLE_TRANSPARENCY 1
13484_ACEOF 13285_ACEOF
13485 13286
13486fi 13287fi
13487if test x$support_keepscrolling = xno; then 13288if test x$support_keepscrolling = xno; then
13488 13289
13517cat >>confdefs.h <<\_ACEOF 13318cat >>confdefs.h <<\_ACEOF
13518#define MOUSE_SLIP_WHEELING 1 13319#define MOUSE_SLIP_WHEELING 1
13519_ACEOF 13320_ACEOF
13520 13321
13521fi 13322fi
13522if test x$support_xim = xyes -o x$multichar_set = xyes; then
13523 if test x$rxvt_cv_func_xlocale = xyes; then
13524
13525cat >>confdefs.h <<\_ACEOF
13526#define USE_XIM 1
13527_ACEOF
13528
13529 fi
13530fi
13531if test x$support_xpm = xyes -o x$support_afterimage = xyes ; then
13532
13533cat >>confdefs.h <<\_ACEOF
13534#define XPM_BACKGROUND 1
13535_ACEOF
13536
13537fi
13538
13539if test x$support_afterimage = xyes; then 13323if test x$support_afterimage = xyes; then
13540 13324
13541cat >>confdefs.h <<\_ACEOF 13325cat >>confdefs.h <<\_ACEOF
13542#define HAVE_AFTERIMAGE 1 13326#define HAVE_AFTERIMAGE 1
13543_ACEOF 13327_ACEOF
13544 13328
13545fi
13546
13547if test x$support_afterstep = xyes; then
13548 13329
13549cat >>confdefs.h <<\_ACEOF 13330cat >>confdefs.h <<\_ACEOF
13550#define AFTERSTEP_INTEGRATION 1 13331#define BG_IMAGE_FROM_FILE 1
13551_ACEOF 13332_ACEOF
13552 13333
13553fi 13334fi
13335
13554 13336
13555if test x$support_scroll_rxvt = xyes; then 13337if test x$support_scroll_rxvt = xyes; then
13556 13338
13557cat >>confdefs.h <<\_ACEOF 13339cat >>confdefs.h <<\_ACEOF
13558#define RXVT_SCROLLBAR 1 13340#define RXVT_SCROLLBAR 1
13827 13609
13828 13610
13829 13611
13830 13612
13831 13613
13832if test x$support_perl = xyes; then
13833 support_frills=yes
13834fi
13835 13614
13836 13615
13837 13616
13838 13617
13839
13840
13841
13842
13843if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
13844 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
13845 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
13846 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
13847 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
13848 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
13849fi
13850 13618
13851 13619
13852 13620
13853 13621
13854 13622
14625GREP!$GREP$ac_delim 14393GREP!$GREP$ac_delim
14626EGREP!$EGREP$ac_delim 14394EGREP!$EGREP$ac_delim
14627LINKER!$LINKER$ac_delim 14395LINKER!$LINKER$ac_delim
14628INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim 14396INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim
14629RXVTNAME!$RXVTNAME$ac_delim 14397RXVTNAME!$RXVTNAME$ac_delim
14630MV!$MV$ac_delim
14631CP!$CP$ac_delim 14398CXXCPP!$CXXCPP$ac_delim
14632LN!$LN$ac_delim
14633SED!$SED$ac_delim
14634ECHO!$ECHO$ac_delim
14635CMP!$CMP$ac_delim
14636TIC!$TIC$ac_delim 14399TIC!$TIC$ac_delim
14637XMKMF!$XMKMF$ac_delim 14400XMKMF!$XMKMF$ac_delim
14638CXXCPP!$CXXCPP$ac_delim
14639X_CFLAGS!$X_CFLAGS$ac_delim 14401X_CFLAGS!$X_CFLAGS$ac_delim
14640X_PRE_LIBS!$X_PRE_LIBS$ac_delim 14402X_PRE_LIBS!$X_PRE_LIBS$ac_delim
14641X_LIBS!$X_LIBS$ac_delim 14403X_LIBS!$X_LIBS$ac_delim
14642X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim 14404X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
14643afterimage_config!$afterimage_config$ac_delim 14405afterimage_config!$afterimage_config$ac_delim
14644XPM_CPPFLAGS!$XPM_CPPFLAGS$ac_delim
14645XPM_CFLAGS!$XPM_CFLAGS$ac_delim
14646XPM_LIBS!$XPM_LIBS$ac_delim
14647rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim 14406rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim
14648rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim 14407rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim
14649rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim 14408rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim
14650rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim 14409rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim
14651rxvt_intp_define!$rxvt_intp_define$ac_delim 14410rxvt_intp_define!$rxvt_intp_define$ac_delim
14654XFT_CONFIG!$XFT_CONFIG$ac_delim 14413XFT_CONFIG!$XFT_CONFIG$ac_delim
14655PERL!$PERL$ac_delim 14414PERL!$PERL$ac_delim
14656PERLLIB!$PERLLIB$ac_delim 14415PERLLIB!$PERLLIB$ac_delim
14657PERLFLAGS!$PERLFLAGS$ac_delim 14416PERLFLAGS!$PERLFLAGS$ac_delim
14658PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim 14417PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim
14418IF_PERL!$IF_PERL$ac_delim
14419PERL_O!$PERL_O$ac_delim
14420AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim
14421AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim
14422include_stdint_h!$include_stdint_h$ac_delim
14423include_stdarg_h!$include_stdarg_h$ac_delim
14424include_stdlib_h!$include_stdlib_h$ac_delim
14425include_unistd_h!$include_unistd_h$ac_delim
14426include_string_h!$include_string_h$ac_delim
14659_ACEOF 14427_ACEOF
14660 14428
14661 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 14429 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
14662 break 14430 break
14663 elif $ac_last_try; then 14431 elif $ac_last_try; then
14695 14463
14696 14464
14697ac_delim='%!_!# ' 14465ac_delim='%!_!# '
14698for ac_last_try in false false false false false :; do 14466for ac_last_try in false false false false false :; do
14699 cat >conf$$subs.sed <<_ACEOF 14467 cat >conf$$subs.sed <<_ACEOF
14700IF_PERL!$IF_PERL$ac_delim
14701PERL_O!$PERL_O$ac_delim
14702DEBUG!$DEBUG$ac_delim
14703DINCLUDE!$DINCLUDE$ac_delim
14704DLIB!$DLIB$ac_delim
14705LIBAFTERIMAGE_CFLAGS!$LIBAFTERIMAGE_CFLAGS$ac_delim
14706AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim
14707include_stdint_h!$include_stdint_h$ac_delim
14708include_stdarg_h!$include_stdarg_h$ac_delim
14709include_stdlib_h!$include_stdlib_h$ac_delim
14710include_unistd_h!$include_unistd_h$ac_delim
14711include_string_h!$include_string_h$ac_delim
14712include_fcntl_h!$include_fcntl_h$ac_delim 14468include_fcntl_h!$include_fcntl_h$ac_delim
14713include_util_h!$include_util_h$ac_delim 14469include_util_h!$include_util_h$ac_delim
14714include_assert_h!$include_assert_h$ac_delim 14470include_assert_h!$include_assert_h$ac_delim
14715include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim 14471include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim
14716include_sys_select_h!$include_sys_select_h$ac_delim 14472include_sys_select_h!$include_sys_select_h$ac_delim
14719include_time_h!$include_time_h$ac_delim 14475include_time_h!$include_time_h$ac_delim
14720LIBOBJS!$LIBOBJS$ac_delim 14476LIBOBJS!$LIBOBJS$ac_delim
14721LTLIBOBJS!$LTLIBOBJS$ac_delim 14477LTLIBOBJS!$LTLIBOBJS$ac_delim
14722_ACEOF 14478_ACEOF
14723 14479
14724 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then 14480 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
14725 break 14481 break
14726 elif $ac_last_try; then 14482 elif $ac_last_try; then
14727 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14483 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14728echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14484echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14729 { (exit 1); exit 1; }; } 14485 { (exit 1); exit 1; }; }
15158 Install path: ${prefix}/bin 14914 Install path: ${prefix}/bin
15159 Compiler: $CXX 14915 Compiler: $CXX
15160 Compiler flags: $CXXFLAGS 14916 Compiler flags: $CXXFLAGS
15161 Linker: $LINKER" 14917 Linker: $LINKER"
15162 14918
15163if test x$support_xpm = xyes; then
15164 echo " Xpm library: $XPM_LIBS"
15165fi
15166
15167if test x$support_afterimage = xyes; then
15168 echo " AfterImage support: yes"
15169fi
15170
15171if test x$support_afterstep = xyes; then
15172 echo " AfterStep intergration: yes"
15173fi
15174
15175if test x$term != x; then 14919if test x$term != x; then
15176 echo " set TERM to: $term" 14920 echo " set TERM to: $term"
15177fi 14921fi
15178if test x$terminfo != x; then 14922if test x$terminfo != x; then
15179 echo " set TERMINFO to: $terminfo" 14923 echo " set TERMINFO to: $terminfo"
15183if test x$RESFALLBACK != x; then 14927if test x$RESFALLBACK != x; then
15184 echo " resource class fallback: $RESFALLBACK" 14928 echo " resource class fallback: $RESFALLBACK"
15185fi 14929fi
15186echo 14930echo
15187echo " embedded perl: $support_perl" 14931echo " embedded perl: $support_perl"
14932echo " libafterimage: $support_afterimage"
15188echo 14933echo
15189if test x$support_xpm = xneedsmanualspecification; then
15190 echo ".----------------------------------------------------------------."
15191 echo ". WARNING: --enable-xpm-background was specified however the ."
15192 echo ". XPM includes files and libraries could not be found. ."
15193 echo ". XPM backgrounds are now being DISABLED! If you want ."
15194 echo ". to use them you should rerun configure with the ."
15195 echo ". appropriate --with-xpm-includes=/path/to/xpm/includes ."
15196 echo ". and --with-xpm-library=/path/to/xpm/library lines. ."
15197 echo ".----------------------------------------------------------------."
15198fi
15199if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then 14934if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
15200 echo ".----------------------------------------------------------------." 14935 echo ".----------------------------------------------------------------."
15201 echo ". WARNING: --enable-xim was specified however the locale support ." 14936 echo ". WARNING: --enable-xim was specified however the locale support ."
15202 echo ". functions could not be found. ." 14937 echo ". functions could not be found. ."
15203 echo ". XIM is now being DISABLED! ." 14938 echo ". XIM is now being DISABLED! ."

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines