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

Comparing rxvt-unicode/configure (file contents):
Revision 1.108 by ayin, Fri Jul 27 10:09:39 2007 UTC vs.
Revision 1.116 by root, Sun Nov 11 04:08:00 2007 UTC

679GREP 679GREP
680EGREP 680EGREP
681LINKER 681LINKER
682INSTALL_LIBRXVT 682INSTALL_LIBRXVT
683RXVTNAME 683RXVTNAME
684CXXCPP
684TIC 685TIC
685XMKMF 686XMKMF
686CXXCPP
687X_CFLAGS 687X_CFLAGS
688X_PRE_LIBS 688X_PRE_LIBS
689X_LIBS 689X_LIBS
690X_EXTRA_LIBS 690X_EXTRA_LIBS
691afterimage_config 691afterimage_config
692XPM_CPPFLAGS
693XPM_CFLAGS
694XPM_LIBS
695rxvt_int16_typedef 692rxvt_int16_typedef
696rxvt_uint16_typedef 693rxvt_uint16_typedef
697rxvt_int32_typedef 694rxvt_int32_typedef
698rxvt_uint32_typedef 695rxvt_uint32_typedef
699rxvt_intp_define 696rxvt_intp_define
734CPPFLAGS 731CPPFLAGS
735CXX 732CXX
736CXXFLAGS 733CXXFLAGS
737CCC 734CCC
738CPP 735CPP
739XMKMF
740CXXCPP' 736CXXCPP
737XMKMF'
741 738
742 739
743# Initialize some variables set by options. 740# Initialize some variables set by options.
744ac_init_help= 741ac_init_help=
745ac_init_version=false 742ac_init_version=false
1320 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1317 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1321 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1318 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1322 --enable-everything enable standard non-multichoice features 1319 --enable-everything enable standard non-multichoice features
1323 NOTE: this option is order dependent 1320 NOTE: this option is order dependent
1324 NOTE: automatically enabled with --enable-shared 1321 NOTE: automatically enabled with --enable-shared
1322 --enable-warnings turn on g++ warnings
1325 --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
1326 --enable-combining enable composition of base and combining characters 1324 --enable-combining enable composition of base and combining characters
1327 --enable-xft enable xft support on systems that have it 1325 --enable-xft enable xft support on systems that have it
1328 --enable-font-styles enable bold and italic support 1326 --enable-font-styles enable bold and italic support
1329 --enable-xpm-background enable background pixmaps
1330 --enable-afterimage enable integration with libAfterImage for background images 1327 --enable-afterimage enable integration with libAfterImage for background images
1331 --enable-afterstep enable integration with AfterStep window manager
1332 --enable-transparency enable transparent backgrounds 1328 --enable-transparency enable transparent backgrounds
1333 --enable-tinting enable tinting of transparent bg
1334 --enable-fading enable colors fading when off focus 1329 --enable-fading enable colors fading when off focus
1335 --enable-rxvt-scroll enable rxvt style scrollbar 1330 --enable-rxvt-scroll enable rxvt style scrollbar
1336 --enable-next-scroll enable NeXT style scrollbar 1331 --enable-next-scroll enable NeXT style scrollbar
1337 --enable-xterm-scroll enable Xterm style scrollbar 1332 --enable-xterm-scroll enable Xterm style scrollbar
1338 --enable-perl enable embedded perl interpreter 1333 --enable-perl enable embedded perl interpreter
1340 --enable-xim XIM (X Input Method) protocol support 1335 --enable-xim XIM (X Input Method) protocol support
1341 --disable-backspace-key disable handling of the backspace key 1336 --disable-backspace-key disable handling of the backspace key
1342 --disable-delete-key disable handling of the delete key 1337 --disable-delete-key disable handling of the delete key
1343 --disable-resources disable all resource checking 1338 --disable-resources disable all resource checking
1344 --enable-8bitctrls enable 8 bit control sequences (not recommended) 1339 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1345 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) 1340 --enable-fallback[=CLASS] fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
1346 --disable-swapscreen disable swap screen support 1341 --disable-swapscreen disable swap screen support
1347 --enable-iso14755 enable support for extended ISO 14755 modes 1342 --enable-iso14755 enable support for extended ISO 14755 modes
1348 --enable-frills enable support for rarely used features 1343 --enable-frills enable support for rarely used features
1349 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 1344 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1350 --enable-selectionscrolling enable scrolling during selections 1345 --enable-selectionscrolling enable scrolling during selections
1351 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 1346 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1352 --enable-slipwheeling enable slip wheel scrolling (requires previous) 1347 --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel)
1353 --enable-smart-resize enable smart growth/shrink behaviour 1348 --enable-smart-resize enable smart growth/shrink behaviour
1354 --enable-text-blink enable blinking text 1349 --enable-text-blink enable blinking text
1355 --enable-pointer-blank enable pointer blank when typing or inactive pointer 1350 --enable-pointer-blank enable pointer blank when typing or inactive pointer
1356 --enable-utmp enable utmp (utmpx) support 1351 --enable-utmp enable utmp (utmpx) support
1357 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) 1352 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1359 1354
1360Optional Packages: 1355Optional Packages:
1361 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1356 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1362 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1357 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1363 --with-afterimage-config=DIR use libAfterImage config script in DIR 1358 --with-afterimage-config=DIR use libAfterImage config script in DIR
1364 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) 1359 --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
1365 --with-res-name=NAME use this as default resource name (default: urxvt) 1360 --with-res-name=NAME use this as default resource name (default: urxvt)
1366 --with-res-class=CLASS use this as the resource class (default: URxvt) 1361 --with-res-class=CLASS use this as the resource class (default: URxvt)
1367 --with-name=NAME set the basename for the installed binaries (default: urxvt) 1362 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1368 --with-term=NAME set the terminal to NAME (default: rxvt) 1363 --with-term=NAME set the terminal to NAME (default: rxvt)
1369 --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
1370 --with-x use the X Window System 1365 --with-x use the X Window System
1371 --with-xpm-includes=DIR use XPM includes in DIR
1372 --with-xpm-library=DIR use XPM library in DIR
1373 --with-xpm use XPM
1374 1366
1375Some influential environment variables: 1367Some influential environment variables:
1376 CC C compiler command 1368 CC C compiler command
1377 CFLAGS C compiler flags 1369 CFLAGS C compiler flags
1378 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
1381 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
1382 you have headers in a nonstandard directory <include dir> 1374 you have headers in a nonstandard directory <include dir>
1383 CXX C++ compiler command 1375 CXX C++ compiler command
1384 CXXFLAGS C++ compiler flags 1376 CXXFLAGS C++ compiler flags
1385 CPP C preprocessor 1377 CPP C preprocessor
1378 CXXCPP C++ preprocessor
1386 XMKMF Path to xmkmf, Makefile generator for X Window System 1379 XMKMF Path to xmkmf, Makefile generator for X Window System
1387 CXXCPP C++ preprocessor
1388 1380
1389Use 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
1390it to find libraries and programs with nonstandard names/locations. 1382it to find libraries and programs with nonstandard names/locations.
1391 1383
1392_ACEOF 1384_ACEOF
3878LINKER=$LINKER 3870LINKER=$LINKER
3879 3871
3880 3872
3881if test -z "$orig_CXXFLAGS"; then 3873if test -z "$orig_CXXFLAGS"; then
3882 if test x$GCC = xyes && test "x$GXX" = xyes; then 3874 if test x$GCC = xyes && test "x$GXX" = xyes; then
3883 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" 3875 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs"
3884 cat >conftest.$ac_ext <<_ACEOF 3876 cat >conftest.$ac_ext <<_ACEOF
3885/* confdefs.h. */ 3877/* confdefs.h. */
3886_ACEOF 3878_ACEOF
3887cat confdefs.h >>conftest.$ac_ext 3879cat confdefs.h >>conftest.$ac_ext
3888cat >>conftest.$ac_ext <<_ACEOF 3880cat >>conftest.$ac_ext <<_ACEOF
4401 4393
4402 4394
4403 4395
4404support_frills=yes 4396support_frills=yes
4405support_inheritpixmap=yes 4397support_inheritpixmap=yes
4406support_tinting=yes
4407support_fading=yes 4398support_fading=yes
4408support_keepscrolling=yes 4399support_keepscrolling=yes
4409support_selectionscrolling=yes 4400support_selectionscrolling=yes
4410support_mousewheel=yes 4401support_mousewheel=yes
4411support_mouseslipwheel=yes 4402support_mouseslipwheel=yes
4414support_scroll_rxvt=yes 4405support_scroll_rxvt=yes
4415support_scroll_next=yes 4406support_scroll_next=yes
4416support_scroll_xterm=yes 4407support_scroll_xterm=yes
4417support_scroll_plain=yes 4408support_scroll_plain=yes
4418support_xim=yes 4409support_xim=yes
4419support_xpm=yes
4420support_afterimage=yes 4410support_afterimage=yes
4421support_afterstep=yes 4411support_afterstep=yes
4422support_xft=yes 4412support_xft=yes
4423support_unicode3=no 4413support_unicode3=no
4424support_combining=yes 4414support_combining=yes
4443if test "${enable_everything+set}" = set; then 4433if test "${enable_everything+set}" = set; then
4444 enableval=$enable_everything; 4434 enableval=$enable_everything;
4445 if test x$enableval = xno; then 4435 if test x$enableval = xno; then
4446 support_frills=no 4436 support_frills=no
4447 support_inheritpixmap=no 4437 support_inheritpixmap=no
4448 support_tinting=no
4449 support_fading=no 4438 support_fading=no
4450 support_keepscrolling=no 4439 support_keepscrolling=no
4451 support_selectionscrolling=no 4440 support_selectionscrolling=no
4452 support_lastlog=no 4441 support_lastlog=no
4453 support_mousewheel=no 4442 support_mousewheel=no
4459 support_scroll_xterm=no 4448 support_scroll_xterm=no
4460 support_scroll_plain=no 4449 support_scroll_plain=no
4461 support_utmp=no 4450 support_utmp=no
4462 support_wtmp=no 4451 support_wtmp=no
4463 support_xim=no 4452 support_xim=no
4464 support_xpm=no
4465 support_afterimage=no 4453 support_afterimage=no
4466 support_afterstep=no 4454 support_afterstep=no
4467 support_xft=no 4455 support_xft=no
4468 support_unicode3=no 4456 support_unicode3=no
4469 support_combining=no 4457 support_combining=no
4474 codesets= 4462 codesets=
4475 fi 4463 fi
4476 if test x$enableval = xyes; then 4464 if test x$enableval = xyes; then
4477 support_frills=yes 4465 support_frills=yes
4478 support_inheritpixmap=yes 4466 support_inheritpixmap=yes
4479 support_tinting=yes
4480 support_fading=yes 4467 support_fading=yes
4481 support_keepscrolling=yes 4468 support_keepscrolling=yes
4482 support_selectionscrolling=yes 4469 support_selectionscrolling=yes
4483 support_lastlog=yes 4470 support_lastlog=yes
4484 support_mousewheel=yes 4471 support_mousewheel=yes
4490 support_scroll_xterm=yes 4477 support_scroll_xterm=yes
4491 support_scroll_plain=yes 4478 support_scroll_plain=yes
4492 support_utmp=yes 4479 support_utmp=yes
4493 support_wtmp=yes 4480 support_wtmp=yes
4494 support_xim=yes 4481 support_xim=yes
4495 support_xpm=yes
4496 support_afterimage=yes 4482 support_afterimage=yes
4497 support_afterstep=yes 4483 support_afterstep=yes
4498 support_xft=yes 4484 support_xft=yes
4499 support_unicode3=yes 4485 support_unicode3=yes
4500 support_combining=yes 4486 support_combining=yes
4506 fi 4492 fi
4507 4493
4508fi 4494fi
4509 4495
4510 4496
4497WARNINGS=no
4498# Check whether --enable-warnings was given.
4499if test "${enable_warnings+set}" = set; then
4500 enableval=$enable_warnings; if test x$enableval = xyes; then
4501 WARNINGS=yes
4502 fi
4503fi
4504
4505if test x$GXX = xyes; then
4506 if test $WARNINGS = yes; then
4507 save_CXXFLAGS="$CXXFLAGS"
4508 CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-non-virtual-dtor"
4509 cat >conftest.$ac_ext <<_ACEOF
4510/* confdefs.h. */
4511_ACEOF
4512cat confdefs.h >>conftest.$ac_ext
4513cat >>conftest.$ac_ext <<_ACEOF
4514/* end confdefs.h. */
4515
4516int
4517main ()
4518{
4519
4520 ;
4521 return 0;
4522}
4523_ACEOF
4524rm -f conftest.$ac_objext
4525if { (ac_try="$ac_compile"
4526case "(($ac_try" in
4527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4528 *) ac_try_echo=$ac_try;;
4529esac
4530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4531 (eval "$ac_compile") 2>conftest.er1
4532 ac_status=$?
4533 grep -v '^ *+' conftest.er1 >conftest.err
4534 rm -f conftest.er1
4535 cat conftest.err >&5
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); } && {
4538 test -z "$ac_cxx_werror_flag" ||
4539 test ! -s conftest.err
4540 } && test -s conftest.$ac_objext; then
4541 :
4542else
4543 echo "$as_me: failed program was:" >&5
4544sed 's/^/| /' conftest.$ac_ext >&5
4545
4546 CXXFLAGS="$save_CXXFLAGS"
4547fi
4548
4549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4550 else
4551 CXXFLAGS="$CXXFLAGS -w"
4552 fi
4553fi
4554
4511# Check whether --enable-unicode3 was given. 4555# Check whether --enable-unicode3 was given.
4512if test "${enable_unicode3+set}" = set; then 4556if test "${enable_unicode3+set}" = set; then
4513 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then 4557 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then
4514 support_unicode3=$enableval 4558 support_unicode3=$enableval
4515 fi 4559 fi
4538 support_styles=$enableval 4582 support_styles=$enableval
4539 fi 4583 fi
4540fi 4584fi
4541 4585
4542 4586
4543# Check whether --enable-xpm-background was given.
4544if test "${enable_xpm_background+set}" = set; then
4545 enableval=$enable_xpm_background; if test x$enableval = xyes -o x$enableval = xno; then
4546 support_xpm=$enableval
4547 fi
4548fi
4549
4550
4551# Check whether --enable-afterimage was given. 4587# Check whether --enable-afterimage was given.
4552if test "${enable_afterimage+set}" = set; then 4588if test "${enable_afterimage+set}" = set; then
4553 enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then 4589 enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then
4554 support_afterimage=$enableval 4590 support_afterimage=$enableval
4555 fi 4591 fi
4563 afterimage_config=$withval/afterimage-config 4599 afterimage_config=$withval/afterimage-config
4564 fi 4600 fi
4565fi 4601fi
4566 4602
4567 4603
4568# Check whether --enable-afterstep was given.
4569if test "${enable_afterstep+set}" = set; then
4570 enableval=$enable_afterstep; if test x$enableval = xyes -o x$enableval = xno; then
4571 support_afterstep=$enableval
4572 fi
4573fi
4574
4575 4604
4576# Check whether --enable-transparency was given. 4605# Check whether --enable-transparency was given.
4577if test "${enable_transparency+set}" = set; then 4606if test "${enable_transparency+set}" = set; then
4578 enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then 4607 enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then
4579 support_inheritpixmap=$enableval 4608 support_inheritpixmap=$enableval
4580 fi
4581fi
4582
4583
4584# Check whether --enable-tinting was given.
4585if test "${enable_tinting+set}" = set; then
4586 enableval=$enable_tinting; if test x$enableval = xyes -o x$enableval = xno; then
4587 support_tinting=$enableval
4588 fi 4609 fi
4589fi 4610fi
4590 4611
4591 4612
4592# Check whether --enable-fading was given. 4613# Check whether --enable-fading was given.
4867#define RXVT_TERMINFO "$withval" 4888#define RXVT_TERMINFO "$withval"
4868_ACEOF 4889_ACEOF
4869 terminfo="$withval" 4890 terminfo="$withval"
4870 fi 4891 fi
4871fi 4892fi
4893
4894
4895
4896
4897ac_ext=cpp
4898ac_cpp='$CXXCPP $CPPFLAGS'
4899ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4900ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4901ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4902{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4903echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4904if test -z "$CXXCPP"; then
4905 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4907else
4908 # Double quotes because CXXCPP needs to be expanded
4909 for CXXCPP in "$CXX -E" "/lib/cpp"
4910 do
4911 ac_preproc_ok=false
4912for ac_cxx_preproc_warn_flag in '' yes
4913do
4914 # Use a header file that comes with gcc, so configuring glibc
4915 # with a fresh cross-compiler works.
4916 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4917 # <limits.h> exists even on freestanding compilers.
4918 # On the NeXT, cc -E runs the code through the compiler's parser,
4919 # not just through cpp. "Syntax error" is here to catch this case.
4920 cat >conftest.$ac_ext <<_ACEOF
4921/* confdefs.h. */
4922_ACEOF
4923cat confdefs.h >>conftest.$ac_ext
4924cat >>conftest.$ac_ext <<_ACEOF
4925/* end confdefs.h. */
4926#ifdef __STDC__
4927# include <limits.h>
4928#else
4929# include <assert.h>
4930#endif
4931 Syntax error
4932_ACEOF
4933if { (ac_try="$ac_cpp conftest.$ac_ext"
4934case "(($ac_try" in
4935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4936 *) ac_try_echo=$ac_try;;
4937esac
4938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4940 ac_status=$?
4941 grep -v '^ *+' conftest.er1 >conftest.err
4942 rm -f conftest.er1
4943 cat conftest.err >&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); } >/dev/null && {
4946 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4947 test ! -s conftest.err
4948 }; then
4949 :
4950else
4951 echo "$as_me: failed program was:" >&5
4952sed 's/^/| /' conftest.$ac_ext >&5
4953
4954 # Broken: fails on valid input.
4955continue
4956fi
4957
4958rm -f conftest.err conftest.$ac_ext
4959
4960 # OK, works on sane cases. Now check whether nonexistent headers
4961 # can be detected and how.
4962 cat >conftest.$ac_ext <<_ACEOF
4963/* confdefs.h. */
4964_ACEOF
4965cat confdefs.h >>conftest.$ac_ext
4966cat >>conftest.$ac_ext <<_ACEOF
4967/* end confdefs.h. */
4968#include <ac_nonexistent.h>
4969_ACEOF
4970if { (ac_try="$ac_cpp conftest.$ac_ext"
4971case "(($ac_try" in
4972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4973 *) ac_try_echo=$ac_try;;
4974esac
4975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4977 ac_status=$?
4978 grep -v '^ *+' conftest.er1 >conftest.err
4979 rm -f conftest.er1
4980 cat conftest.err >&5
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); } >/dev/null && {
4983 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4984 test ! -s conftest.err
4985 }; then
4986 # Broken: success on invalid input.
4987continue
4988else
4989 echo "$as_me: failed program was:" >&5
4990sed 's/^/| /' conftest.$ac_ext >&5
4991
4992 # Passes both tests.
4993ac_preproc_ok=:
4994break
4995fi
4996
4997rm -f conftest.err conftest.$ac_ext
4998
4999done
5000# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5001rm -f conftest.err conftest.$ac_ext
5002if $ac_preproc_ok; then
5003 break
5004fi
5005
5006 done
5007 ac_cv_prog_CXXCPP=$CXXCPP
5008
5009fi
5010 CXXCPP=$ac_cv_prog_CXXCPP
5011else
5012 ac_cv_prog_CXXCPP=$CXXCPP
5013fi
5014{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5015echo "${ECHO_T}$CXXCPP" >&6; }
5016ac_preproc_ok=false
5017for ac_cxx_preproc_warn_flag in '' yes
5018do
5019 # Use a header file that comes with gcc, so configuring glibc
5020 # with a fresh cross-compiler works.
5021 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5022 # <limits.h> exists even on freestanding compilers.
5023 # On the NeXT, cc -E runs the code through the compiler's parser,
5024 # not just through cpp. "Syntax error" is here to catch this case.
5025 cat >conftest.$ac_ext <<_ACEOF
5026/* confdefs.h. */
5027_ACEOF
5028cat confdefs.h >>conftest.$ac_ext
5029cat >>conftest.$ac_ext <<_ACEOF
5030/* end confdefs.h. */
5031#ifdef __STDC__
5032# include <limits.h>
5033#else
5034# include <assert.h>
5035#endif
5036 Syntax error
5037_ACEOF
5038if { (ac_try="$ac_cpp conftest.$ac_ext"
5039case "(($ac_try" in
5040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5041 *) ac_try_echo=$ac_try;;
5042esac
5043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5044 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5045 ac_status=$?
5046 grep -v '^ *+' conftest.er1 >conftest.err
5047 rm -f conftest.er1
5048 cat conftest.err >&5
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); } >/dev/null && {
5051 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5052 test ! -s conftest.err
5053 }; then
5054 :
5055else
5056 echo "$as_me: failed program was:" >&5
5057sed 's/^/| /' conftest.$ac_ext >&5
5058
5059 # Broken: fails on valid input.
5060continue
5061fi
5062
5063rm -f conftest.err conftest.$ac_ext
5064
5065 # OK, works on sane cases. Now check whether nonexistent headers
5066 # can be detected and how.
5067 cat >conftest.$ac_ext <<_ACEOF
5068/* confdefs.h. */
5069_ACEOF
5070cat confdefs.h >>conftest.$ac_ext
5071cat >>conftest.$ac_ext <<_ACEOF
5072/* end confdefs.h. */
5073#include <ac_nonexistent.h>
5074_ACEOF
5075if { (ac_try="$ac_cpp conftest.$ac_ext"
5076case "(($ac_try" in
5077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5078 *) ac_try_echo=$ac_try;;
5079esac
5080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5082 ac_status=$?
5083 grep -v '^ *+' conftest.er1 >conftest.err
5084 rm -f conftest.er1
5085 cat conftest.err >&5
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); } >/dev/null && {
5088 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5089 test ! -s conftest.err
5090 }; then
5091 # Broken: success on invalid input.
5092continue
5093else
5094 echo "$as_me: failed program was:" >&5
5095sed 's/^/| /' conftest.$ac_ext >&5
5096
5097 # Passes both tests.
5098ac_preproc_ok=:
5099break
5100fi
5101
5102rm -f conftest.err conftest.$ac_ext
5103
5104done
5105# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5106rm -f conftest.err conftest.$ac_ext
5107if $ac_preproc_ok; then
5108 :
5109else
5110 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5111See \`config.log' for more details." >&5
5112echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5113See \`config.log' for more details." >&2;}
5114 { (exit 1); exit 1; }; }
5115fi
5116
5117ac_ext=cpp
5118ac_cpp='$CXXCPP $CPPFLAGS'
5119ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5120ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5121ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5122
5123
5124{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5125echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5126if test "${ac_cv_header_stdc+set}" = set; then
5127 echo $ECHO_N "(cached) $ECHO_C" >&6
5128else
5129 cat >conftest.$ac_ext <<_ACEOF
5130/* confdefs.h. */
5131_ACEOF
5132cat confdefs.h >>conftest.$ac_ext
5133cat >>conftest.$ac_ext <<_ACEOF
5134/* end confdefs.h. */
5135#include <stdlib.h>
5136#include <stdarg.h>
5137#include <string.h>
5138#include <float.h>
5139
5140int
5141main ()
5142{
5143
5144 ;
5145 return 0;
5146}
5147_ACEOF
5148rm -f conftest.$ac_objext
5149if { (ac_try="$ac_compile"
5150case "(($ac_try" in
5151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5152 *) ac_try_echo=$ac_try;;
5153esac
5154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5155 (eval "$ac_compile") 2>conftest.er1
5156 ac_status=$?
5157 grep -v '^ *+' conftest.er1 >conftest.err
5158 rm -f conftest.er1
5159 cat conftest.err >&5
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); } && {
5162 test -z "$ac_cxx_werror_flag" ||
5163 test ! -s conftest.err
5164 } && test -s conftest.$ac_objext; then
5165 ac_cv_header_stdc=yes
5166else
5167 echo "$as_me: failed program was:" >&5
5168sed 's/^/| /' conftest.$ac_ext >&5
5169
5170 ac_cv_header_stdc=no
5171fi
5172
5173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5174
5175if test $ac_cv_header_stdc = yes; then
5176 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5177 cat >conftest.$ac_ext <<_ACEOF
5178/* confdefs.h. */
5179_ACEOF
5180cat confdefs.h >>conftest.$ac_ext
5181cat >>conftest.$ac_ext <<_ACEOF
5182/* end confdefs.h. */
5183#include <string.h>
5184
5185_ACEOF
5186if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5187 $EGREP "memchr" >/dev/null 2>&1; then
5188 :
5189else
5190 ac_cv_header_stdc=no
5191fi
5192rm -f conftest*
5193
5194fi
5195
5196if test $ac_cv_header_stdc = yes; then
5197 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5198 cat >conftest.$ac_ext <<_ACEOF
5199/* confdefs.h. */
5200_ACEOF
5201cat confdefs.h >>conftest.$ac_ext
5202cat >>conftest.$ac_ext <<_ACEOF
5203/* end confdefs.h. */
5204#include <stdlib.h>
5205
5206_ACEOF
5207if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5208 $EGREP "free" >/dev/null 2>&1; then
5209 :
5210else
5211 ac_cv_header_stdc=no
5212fi
5213rm -f conftest*
5214
5215fi
5216
5217if test $ac_cv_header_stdc = yes; then
5218 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5219 if test "$cross_compiling" = yes; then
5220 :
5221else
5222 cat >conftest.$ac_ext <<_ACEOF
5223/* confdefs.h. */
5224_ACEOF
5225cat confdefs.h >>conftest.$ac_ext
5226cat >>conftest.$ac_ext <<_ACEOF
5227/* end confdefs.h. */
5228#include <ctype.h>
5229#include <stdlib.h>
5230#if ((' ' & 0x0FF) == 0x020)
5231# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5232# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5233#else
5234# define ISLOWER(c) \
5235 (('a' <= (c) && (c) <= 'i') \
5236 || ('j' <= (c) && (c) <= 'r') \
5237 || ('s' <= (c) && (c) <= 'z'))
5238# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5239#endif
5240
5241#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5242int
5243main ()
5244{
5245 int i;
5246 for (i = 0; i < 256; i++)
5247 if (XOR (islower (i), ISLOWER (i))
5248 || toupper (i) != TOUPPER (i))
5249 return 2;
5250 return 0;
5251}
5252_ACEOF
5253rm -f conftest$ac_exeext
5254if { (ac_try="$ac_link"
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_link") 2>&5
5261 ac_status=$?
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5264 { (case "(($ac_try" in
5265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5266 *) ac_try_echo=$ac_try;;
5267esac
5268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5269 (eval "$ac_try") 2>&5
5270 ac_status=$?
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); }; }; then
5273 :
5274else
5275 echo "$as_me: program exited with status $ac_status" >&5
5276echo "$as_me: failed program was:" >&5
5277sed 's/^/| /' conftest.$ac_ext >&5
5278
5279( exit $ac_status )
5280ac_cv_header_stdc=no
5281fi
5282rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5283fi
5284
5285
5286fi
5287fi
5288{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5289echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5290if test $ac_cv_header_stdc = yes; then
5291
5292cat >>confdefs.h <<\_ACEOF
5293#define STDC_HEADERS 1
5294_ACEOF
5295
5296fi
5297
5298# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5309 inttypes.h stdint.h unistd.h
5310do
5311as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5312{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5313echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5314if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5315 echo $ECHO_N "(cached) $ECHO_C" >&6
5316else
5317 cat >conftest.$ac_ext <<_ACEOF
5318/* confdefs.h. */
5319_ACEOF
5320cat confdefs.h >>conftest.$ac_ext
5321cat >>conftest.$ac_ext <<_ACEOF
5322/* end confdefs.h. */
5323$ac_includes_default
5324
5325#include <$ac_header>
5326_ACEOF
5327rm -f conftest.$ac_objext
5328if { (ac_try="$ac_compile"
5329case "(($ac_try" in
5330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5331 *) ac_try_echo=$ac_try;;
5332esac
5333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5334 (eval "$ac_compile") 2>conftest.er1
5335 ac_status=$?
5336 grep -v '^ *+' conftest.er1 >conftest.err
5337 rm -f conftest.er1
5338 cat conftest.err >&5
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); } && {
5341 test -z "$ac_cxx_werror_flag" ||
5342 test ! -s conftest.err
5343 } && test -s conftest.$ac_objext; then
5344 eval "$as_ac_Header=yes"
5345else
5346 echo "$as_me: failed program was:" >&5
5347sed 's/^/| /' conftest.$ac_ext >&5
5348
5349 eval "$as_ac_Header=no"
5350fi
5351
5352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5353fi
5354ac_res=`eval echo '${'$as_ac_Header'}'`
5355 { echo "$as_me:$LINENO: result: $ac_res" >&5
5356echo "${ECHO_T}$ac_res" >&6; }
5357if test `eval echo '${'$as_ac_Header'}'` = yes; then
5358 cat >>confdefs.h <<_ACEOF
5359#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5360_ACEOF
5361
5362fi
5363
5364done
5365
5366
5367
5368
5369
5370for ac_header in sys/epoll.h sys/event.h sys/queue.h
5371do
5372as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5373if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5375echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5376if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5377 echo $ECHO_N "(cached) $ECHO_C" >&6
5378fi
5379ac_res=`eval echo '${'$as_ac_Header'}'`
5380 { echo "$as_me:$LINENO: result: $ac_res" >&5
5381echo "${ECHO_T}$ac_res" >&6; }
5382else
5383 # Is the header compilable?
5384{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5385echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5386cat >conftest.$ac_ext <<_ACEOF
5387/* confdefs.h. */
5388_ACEOF
5389cat confdefs.h >>conftest.$ac_ext
5390cat >>conftest.$ac_ext <<_ACEOF
5391/* end confdefs.h. */
5392$ac_includes_default
5393#include <$ac_header>
5394_ACEOF
5395rm -f conftest.$ac_objext
5396if { (ac_try="$ac_compile"
5397case "(($ac_try" in
5398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5399 *) ac_try_echo=$ac_try;;
5400esac
5401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5402 (eval "$ac_compile") 2>conftest.er1
5403 ac_status=$?
5404 grep -v '^ *+' conftest.er1 >conftest.err
5405 rm -f conftest.er1
5406 cat conftest.err >&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); } && {
5409 test -z "$ac_cxx_werror_flag" ||
5410 test ! -s conftest.err
5411 } && test -s conftest.$ac_objext; then
5412 ac_header_compiler=yes
5413else
5414 echo "$as_me: failed program was:" >&5
5415sed 's/^/| /' conftest.$ac_ext >&5
5416
5417 ac_header_compiler=no
5418fi
5419
5420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5421{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5422echo "${ECHO_T}$ac_header_compiler" >&6; }
5423
5424# Is the header present?
5425{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5426echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5427cat >conftest.$ac_ext <<_ACEOF
5428/* confdefs.h. */
5429_ACEOF
5430cat confdefs.h >>conftest.$ac_ext
5431cat >>conftest.$ac_ext <<_ACEOF
5432/* end confdefs.h. */
5433#include <$ac_header>
5434_ACEOF
5435if { (ac_try="$ac_cpp conftest.$ac_ext"
5436case "(($ac_try" in
5437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5438 *) ac_try_echo=$ac_try;;
5439esac
5440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5442 ac_status=$?
5443 grep -v '^ *+' conftest.er1 >conftest.err
5444 rm -f conftest.er1
5445 cat conftest.err >&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); } >/dev/null && {
5448 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5449 test ! -s conftest.err
5450 }; then
5451 ac_header_preproc=yes
5452else
5453 echo "$as_me: failed program was:" >&5
5454sed 's/^/| /' conftest.$ac_ext >&5
5455
5456 ac_header_preproc=no
5457fi
5458
5459rm -f conftest.err conftest.$ac_ext
5460{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5461echo "${ECHO_T}$ac_header_preproc" >&6; }
5462
5463# So? What about this header?
5464case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5465 yes:no: )
5466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5467echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5469echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5470 ac_header_preproc=yes
5471 ;;
5472 no:yes:* )
5473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5474echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5476echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5478echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5480echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5482echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5484echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5485
5486 ;;
5487esac
5488{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5489echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5490if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5491 echo $ECHO_N "(cached) $ECHO_C" >&6
5492else
5493 eval "$as_ac_Header=\$ac_header_preproc"
5494fi
5495ac_res=`eval echo '${'$as_ac_Header'}'`
5496 { echo "$as_me:$LINENO: result: $ac_res" >&5
5497echo "${ECHO_T}$ac_res" >&6; }
5498
5499fi
5500if test `eval echo '${'$as_ac_Header'}'` = yes; then
5501 cat >>confdefs.h <<_ACEOF
5502#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5503_ACEOF
5504
5505fi
5506
5507done
5508
5509
5510
5511
5512for ac_func in epoll_ctl kqueue
5513do
5514as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5515{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5516echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5517if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5518 echo $ECHO_N "(cached) $ECHO_C" >&6
5519else
5520 cat >conftest.$ac_ext <<_ACEOF
5521/* confdefs.h. */
5522_ACEOF
5523cat confdefs.h >>conftest.$ac_ext
5524cat >>conftest.$ac_ext <<_ACEOF
5525/* end confdefs.h. */
5526/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5528#define $ac_func innocuous_$ac_func
5529
5530/* System header to define __stub macros and hopefully few prototypes,
5531 which can conflict with char $ac_func (); below.
5532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5533 <limits.h> exists even on freestanding compilers. */
5534
5535#ifdef __STDC__
5536# include <limits.h>
5537#else
5538# include <assert.h>
5539#endif
5540
5541#undef $ac_func
5542
5543/* Override any GCC internal prototype to avoid an error.
5544 Use char because int might match the return type of a GCC
5545 builtin and then its argument prototype would still apply. */
5546#ifdef __cplusplus
5547extern "C"
5548#endif
5549char $ac_func ();
5550/* The GNU C library defines this for functions which it implements
5551 to always fail with ENOSYS. Some functions are actually named
5552 something starting with __ and the normal name is an alias. */
5553#if defined __stub_$ac_func || defined __stub___$ac_func
5554choke me
5555#endif
5556
5557int
5558main ()
5559{
5560return $ac_func ();
5561 ;
5562 return 0;
5563}
5564_ACEOF
5565rm -f conftest.$ac_objext conftest$ac_exeext
5566if { (ac_try="$ac_link"
5567case "(($ac_try" in
5568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5569 *) ac_try_echo=$ac_try;;
5570esac
5571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5572 (eval "$ac_link") 2>conftest.er1
5573 ac_status=$?
5574 grep -v '^ *+' conftest.er1 >conftest.err
5575 rm -f conftest.er1
5576 cat conftest.err >&5
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); } && {
5579 test -z "$ac_cxx_werror_flag" ||
5580 test ! -s conftest.err
5581 } && test -s conftest$ac_exeext &&
5582 $as_test_x conftest$ac_exeext; then
5583 eval "$as_ac_var=yes"
5584else
5585 echo "$as_me: failed program was:" >&5
5586sed 's/^/| /' conftest.$ac_ext >&5
5587
5588 eval "$as_ac_var=no"
5589fi
5590
5591rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5592 conftest$ac_exeext conftest.$ac_ext
5593fi
5594ac_res=`eval echo '${'$as_ac_var'}'`
5595 { echo "$as_me:$LINENO: result: $ac_res" >&5
5596echo "${ECHO_T}$ac_res" >&6; }
5597if test `eval echo '${'$as_ac_var'}'` = yes; then
5598 cat >>confdefs.h <<_ACEOF
5599#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5600_ACEOF
5601
5602fi
5603done
5604
5605
5606{ echo "$as_me:$LINENO: checking for clock_gettime" >&5
5607echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6; }
5608if test "${ac_cv_func_clock_gettime+set}" = set; then
5609 echo $ECHO_N "(cached) $ECHO_C" >&6
5610else
5611 cat >conftest.$ac_ext <<_ACEOF
5612/* confdefs.h. */
5613_ACEOF
5614cat confdefs.h >>conftest.$ac_ext
5615cat >>conftest.$ac_ext <<_ACEOF
5616/* end confdefs.h. */
5617/* Define clock_gettime to an innocuous variant, in case <limits.h> declares clock_gettime.
5618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5619#define clock_gettime innocuous_clock_gettime
5620
5621/* System header to define __stub macros and hopefully few prototypes,
5622 which can conflict with char clock_gettime (); below.
5623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5624 <limits.h> exists even on freestanding compilers. */
5625
5626#ifdef __STDC__
5627# include <limits.h>
5628#else
5629# include <assert.h>
5630#endif
5631
5632#undef clock_gettime
5633
5634/* Override any GCC internal prototype to avoid an error.
5635 Use char because int might match the return type of a GCC
5636 builtin and then its argument prototype would still apply. */
5637#ifdef __cplusplus
5638extern "C"
5639#endif
5640char clock_gettime ();
5641/* The GNU C library defines this for functions which it implements
5642 to always fail with ENOSYS. Some functions are actually named
5643 something starting with __ and the normal name is an alias. */
5644#if defined __stub_clock_gettime || defined __stub___clock_gettime
5645choke me
5646#endif
5647
5648int
5649main ()
5650{
5651return clock_gettime ();
5652 ;
5653 return 0;
5654}
5655_ACEOF
5656rm -f conftest.$ac_objext conftest$ac_exeext
5657if { (ac_try="$ac_link"
5658case "(($ac_try" in
5659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5660 *) ac_try_echo=$ac_try;;
5661esac
5662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5663 (eval "$ac_link") 2>conftest.er1
5664 ac_status=$?
5665 grep -v '^ *+' conftest.er1 >conftest.err
5666 rm -f conftest.er1
5667 cat conftest.err >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } && {
5670 test -z "$ac_cxx_werror_flag" ||
5671 test ! -s conftest.err
5672 } && test -s conftest$ac_exeext &&
5673 $as_test_x conftest$ac_exeext; then
5674 ac_cv_func_clock_gettime=yes
5675else
5676 echo "$as_me: failed program was:" >&5
5677sed 's/^/| /' conftest.$ac_ext >&5
5678
5679 ac_cv_func_clock_gettime=no
5680fi
5681
5682rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5683 conftest$ac_exeext conftest.$ac_ext
5684fi
5685{ echo "$as_me:$LINENO: result: $ac_cv_func_clock_gettime" >&5
5686echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; }
5687if test $ac_cv_func_clock_gettime = yes; then
5688 :
5689else
5690
5691
5692{ echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
5693echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
5694if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
5695 echo $ECHO_N "(cached) $ECHO_C" >&6
5696else
5697 ac_check_lib_save_LIBS=$LIBS
5698LIBS="-lrt $LIBS"
5699cat >conftest.$ac_ext <<_ACEOF
5700/* confdefs.h. */
5701_ACEOF
5702cat confdefs.h >>conftest.$ac_ext
5703cat >>conftest.$ac_ext <<_ACEOF
5704/* end confdefs.h. */
5705
5706/* Override any GCC internal prototype to avoid an error.
5707 Use char because int might match the return type of a GCC
5708 builtin and then its argument prototype would still apply. */
5709#ifdef __cplusplus
5710extern "C"
5711#endif
5712char clock_gettime ();
5713int
5714main ()
5715{
5716return clock_gettime ();
5717 ;
5718 return 0;
5719}
5720_ACEOF
5721rm -f conftest.$ac_objext conftest$ac_exeext
5722if { (ac_try="$ac_link"
5723case "(($ac_try" in
5724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5725 *) ac_try_echo=$ac_try;;
5726esac
5727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5728 (eval "$ac_link") 2>conftest.er1
5729 ac_status=$?
5730 grep -v '^ *+' conftest.er1 >conftest.err
5731 rm -f conftest.er1
5732 cat conftest.err >&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } && {
5735 test -z "$ac_cxx_werror_flag" ||
5736 test ! -s conftest.err
5737 } && test -s conftest$ac_exeext &&
5738 $as_test_x conftest$ac_exeext; then
5739 ac_cv_lib_rt_clock_gettime=yes
5740else
5741 echo "$as_me: failed program was:" >&5
5742sed 's/^/| /' conftest.$ac_ext >&5
5743
5744 ac_cv_lib_rt_clock_gettime=no
5745fi
5746
5747rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5748 conftest$ac_exeext conftest.$ac_ext
5749LIBS=$ac_check_lib_save_LIBS
5750fi
5751{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
5752echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
5753if test $ac_cv_lib_rt_clock_gettime = yes; then
5754 cat >>confdefs.h <<_ACEOF
5755#define HAVE_LIBRT 1
5756_ACEOF
5757
5758 LIBS="-lrt $LIBS"
5759
5760fi
5761
5762
5763for ac_func in clock_gettime
5764do
5765as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5766{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5767echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5768if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5770else
5771 cat >conftest.$ac_ext <<_ACEOF
5772/* confdefs.h. */
5773_ACEOF
5774cat confdefs.h >>conftest.$ac_ext
5775cat >>conftest.$ac_ext <<_ACEOF
5776/* end confdefs.h. */
5777/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5779#define $ac_func innocuous_$ac_func
5780
5781/* System header to define __stub macros and hopefully few prototypes,
5782 which can conflict with char $ac_func (); below.
5783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5784 <limits.h> exists even on freestanding compilers. */
5785
5786#ifdef __STDC__
5787# include <limits.h>
5788#else
5789# include <assert.h>
5790#endif
5791
5792#undef $ac_func
5793
5794/* Override any GCC internal prototype to avoid an error.
5795 Use char because int might match the return type of a GCC
5796 builtin and then its argument prototype would still apply. */
5797#ifdef __cplusplus
5798extern "C"
5799#endif
5800char $ac_func ();
5801/* The GNU C library defines this for functions which it implements
5802 to always fail with ENOSYS. Some functions are actually named
5803 something starting with __ and the normal name is an alias. */
5804#if defined __stub_$ac_func || defined __stub___$ac_func
5805choke me
5806#endif
5807
5808int
5809main ()
5810{
5811return $ac_func ();
5812 ;
5813 return 0;
5814}
5815_ACEOF
5816rm -f conftest.$ac_objext conftest$ac_exeext
5817if { (ac_try="$ac_link"
5818case "(($ac_try" in
5819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820 *) ac_try_echo=$ac_try;;
5821esac
5822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5823 (eval "$ac_link") 2>conftest.er1
5824 ac_status=$?
5825 grep -v '^ *+' conftest.er1 >conftest.err
5826 rm -f conftest.er1
5827 cat conftest.err >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } && {
5830 test -z "$ac_cxx_werror_flag" ||
5831 test ! -s conftest.err
5832 } && test -s conftest$ac_exeext &&
5833 $as_test_x conftest$ac_exeext; then
5834 eval "$as_ac_var=yes"
5835else
5836 echo "$as_me: failed program was:" >&5
5837sed 's/^/| /' conftest.$ac_ext >&5
5838
5839 eval "$as_ac_var=no"
5840fi
5841
5842rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5843 conftest$ac_exeext conftest.$ac_ext
5844fi
5845ac_res=`eval echo '${'$as_ac_var'}'`
5846 { echo "$as_me:$LINENO: result: $ac_res" >&5
5847echo "${ECHO_T}$ac_res" >&6; }
5848if test `eval echo '${'$as_ac_var'}'` = yes; then
5849 cat >>confdefs.h <<_ACEOF
5850#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5851_ACEOF
5852
5853fi
5854done
5855
5856
5857fi
5858
5859
5860
5861{ echo "$as_me:$LINENO: checking for ceil in -lm" >&5
5862echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; }
5863if test "${ac_cv_lib_m_ceil+set}" = set; then
5864 echo $ECHO_N "(cached) $ECHO_C" >&6
5865else
5866 ac_check_lib_save_LIBS=$LIBS
5867LIBS="-lm $LIBS"
5868cat >conftest.$ac_ext <<_ACEOF
5869/* confdefs.h. */
5870_ACEOF
5871cat confdefs.h >>conftest.$ac_ext
5872cat >>conftest.$ac_ext <<_ACEOF
5873/* end confdefs.h. */
5874
5875/* Override any GCC internal prototype to avoid an error.
5876 Use char because int might match the return type of a GCC
5877 builtin and then its argument prototype would still apply. */
5878#ifdef __cplusplus
5879extern "C"
5880#endif
5881char ceil ();
5882int
5883main ()
5884{
5885return ceil ();
5886 ;
5887 return 0;
5888}
5889_ACEOF
5890rm -f conftest.$ac_objext conftest$ac_exeext
5891if { (ac_try="$ac_link"
5892case "(($ac_try" in
5893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5894 *) ac_try_echo=$ac_try;;
5895esac
5896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5897 (eval "$ac_link") 2>conftest.er1
5898 ac_status=$?
5899 grep -v '^ *+' conftest.er1 >conftest.err
5900 rm -f conftest.er1
5901 cat conftest.err >&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); } && {
5904 test -z "$ac_cxx_werror_flag" ||
5905 test ! -s conftest.err
5906 } && test -s conftest$ac_exeext &&
5907 $as_test_x conftest$ac_exeext; then
5908 ac_cv_lib_m_ceil=yes
5909else
5910 echo "$as_me: failed program was:" >&5
5911sed 's/^/| /' conftest.$ac_ext >&5
5912
5913 ac_cv_lib_m_ceil=no
5914fi
5915
5916rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5917 conftest$ac_exeext conftest.$ac_ext
5918LIBS=$ac_check_lib_save_LIBS
5919fi
5920{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5
5921echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6; }
5922if test $ac_cv_lib_m_ceil = yes; then
5923 cat >>confdefs.h <<_ACEOF
5924#define HAVE_LIBM 1
5925_ACEOF
5926
5927 LIBS="-lm $LIBS"
5928
5929fi
5930
5931
5932
5933
4872 5934
4873 5935
4874 5936
4875# Extract the first word of "tic", so it can be a program name with args. 5937# Extract the first word of "tic", so it can be a program name with args.
4876set dummy tic; ac_word=$2 5938set dummy tic; ac_word=$2
4897 fi 5959 fi
4898done 5960done
4899done 5961done
4900IFS=$as_save_IFS 5962IFS=$as_save_IFS
4901 5963
5964 test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":"
4902 ;; 5965 ;;
4903esac 5966esac
4904fi 5967fi
4905TIC=$ac_cv_path_TIC 5968TIC=$ac_cv_path_TIC
4906if test -n "$TIC"; then 5969if test -n "$TIC"; then
4911echo "${ECHO_T}no" >&6; } 5974echo "${ECHO_T}no" >&6; }
4912fi 5975fi
4913 5976
4914 5977
4915 5978
4916
4917
4918ac_ext=cpp
4919ac_cpp='$CXXCPP $CPPFLAGS'
4920ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4921ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4922ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4923{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4924echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4925if test -z "$CXXCPP"; then
4926 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4927 echo $ECHO_N "(cached) $ECHO_C" >&6
4928else
4929 # Double quotes because CXXCPP needs to be expanded
4930 for CXXCPP in "$CXX -E" "/lib/cpp"
4931 do
4932 ac_preproc_ok=false
4933for ac_cxx_preproc_warn_flag in '' yes
4934do
4935 # Use a header file that comes with gcc, so configuring glibc
4936 # with a fresh cross-compiler works.
4937 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4938 # <limits.h> exists even on freestanding compilers.
4939 # On the NeXT, cc -E runs the code through the compiler's parser,
4940 # not just through cpp. "Syntax error" is here to catch this case.
4941 cat >conftest.$ac_ext <<_ACEOF
4942/* confdefs.h. */
4943_ACEOF
4944cat confdefs.h >>conftest.$ac_ext
4945cat >>conftest.$ac_ext <<_ACEOF
4946/* end confdefs.h. */
4947#ifdef __STDC__
4948# include <limits.h>
4949#else
4950# include <assert.h>
4951#endif
4952 Syntax error
4953_ACEOF
4954if { (ac_try="$ac_cpp conftest.$ac_ext"
4955case "(($ac_try" in
4956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4957 *) ac_try_echo=$ac_try;;
4958esac
4959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4961 ac_status=$?
4962 grep -v '^ *+' conftest.er1 >conftest.err
4963 rm -f conftest.er1
4964 cat conftest.err >&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } >/dev/null && {
4967 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4968 test ! -s conftest.err
4969 }; then
4970 :
4971else
4972 echo "$as_me: failed program was:" >&5
4973sed 's/^/| /' conftest.$ac_ext >&5
4974
4975 # Broken: fails on valid input.
4976continue
4977fi
4978
4979rm -f conftest.err conftest.$ac_ext
4980
4981 # OK, works on sane cases. Now check whether nonexistent headers
4982 # can be detected and how.
4983 cat >conftest.$ac_ext <<_ACEOF
4984/* confdefs.h. */
4985_ACEOF
4986cat confdefs.h >>conftest.$ac_ext
4987cat >>conftest.$ac_ext <<_ACEOF
4988/* end confdefs.h. */
4989#include <ac_nonexistent.h>
4990_ACEOF
4991if { (ac_try="$ac_cpp conftest.$ac_ext"
4992case "(($ac_try" in
4993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4994 *) ac_try_echo=$ac_try;;
4995esac
4996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4998 ac_status=$?
4999 grep -v '^ *+' conftest.er1 >conftest.err
5000 rm -f conftest.er1
5001 cat conftest.err >&5
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); } >/dev/null && {
5004 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5005 test ! -s conftest.err
5006 }; then
5007 # Broken: success on invalid input.
5008continue
5009else
5010 echo "$as_me: failed program was:" >&5
5011sed 's/^/| /' conftest.$ac_ext >&5
5012
5013 # Passes both tests.
5014ac_preproc_ok=:
5015break
5016fi
5017
5018rm -f conftest.err conftest.$ac_ext
5019
5020done
5021# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5022rm -f conftest.err conftest.$ac_ext
5023if $ac_preproc_ok; then
5024 break
5025fi
5026
5027 done
5028 ac_cv_prog_CXXCPP=$CXXCPP
5029
5030fi
5031 CXXCPP=$ac_cv_prog_CXXCPP
5032else
5033 ac_cv_prog_CXXCPP=$CXXCPP
5034fi
5035{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5036echo "${ECHO_T}$CXXCPP" >&6; }
5037ac_preproc_ok=false
5038for ac_cxx_preproc_warn_flag in '' yes
5039do
5040 # Use a header file that comes with gcc, so configuring glibc
5041 # with a fresh cross-compiler works.
5042 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5043 # <limits.h> exists even on freestanding compilers.
5044 # On the NeXT, cc -E runs the code through the compiler's parser,
5045 # not just through cpp. "Syntax error" is here to catch this case.
5046 cat >conftest.$ac_ext <<_ACEOF
5047/* confdefs.h. */
5048_ACEOF
5049cat confdefs.h >>conftest.$ac_ext
5050cat >>conftest.$ac_ext <<_ACEOF
5051/* end confdefs.h. */
5052#ifdef __STDC__
5053# include <limits.h>
5054#else
5055# include <assert.h>
5056#endif
5057 Syntax error
5058_ACEOF
5059if { (ac_try="$ac_cpp conftest.$ac_ext"
5060case "(($ac_try" in
5061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062 *) ac_try_echo=$ac_try;;
5063esac
5064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5066 ac_status=$?
5067 grep -v '^ *+' conftest.er1 >conftest.err
5068 rm -f conftest.er1
5069 cat conftest.err >&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); } >/dev/null && {
5072 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5073 test ! -s conftest.err
5074 }; then
5075 :
5076else
5077 echo "$as_me: failed program was:" >&5
5078sed 's/^/| /' conftest.$ac_ext >&5
5079
5080 # Broken: fails on valid input.
5081continue
5082fi
5083
5084rm -f conftest.err conftest.$ac_ext
5085
5086 # OK, works on sane cases. Now check whether nonexistent headers
5087 # can be detected and how.
5088 cat >conftest.$ac_ext <<_ACEOF
5089/* confdefs.h. */
5090_ACEOF
5091cat confdefs.h >>conftest.$ac_ext
5092cat >>conftest.$ac_ext <<_ACEOF
5093/* end confdefs.h. */
5094#include <ac_nonexistent.h>
5095_ACEOF
5096if { (ac_try="$ac_cpp conftest.$ac_ext"
5097case "(($ac_try" in
5098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5099 *) ac_try_echo=$ac_try;;
5100esac
5101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5103 ac_status=$?
5104 grep -v '^ *+' conftest.er1 >conftest.err
5105 rm -f conftest.er1
5106 cat conftest.err >&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); } >/dev/null && {
5109 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5110 test ! -s conftest.err
5111 }; then
5112 # Broken: success on invalid input.
5113continue
5114else
5115 echo "$as_me: failed program was:" >&5
5116sed 's/^/| /' conftest.$ac_ext >&5
5117
5118 # Passes both tests.
5119ac_preproc_ok=:
5120break
5121fi
5122
5123rm -f conftest.err conftest.$ac_ext
5124
5125done
5126# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5127rm -f conftest.err conftest.$ac_ext
5128if $ac_preproc_ok; then
5129 :
5130else
5131 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5132See \`config.log' for more details." >&5
5133echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5134See \`config.log' for more details." >&2;}
5135 { (exit 1); exit 1; }; }
5136fi
5137
5138ac_ext=cpp
5139ac_cpp='$CXXCPP $CPPFLAGS'
5140ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5141ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5142ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5143 5979
5144 5980
5145{ echo "$as_me:$LINENO: checking for X" >&5 5981{ echo "$as_me:$LINENO: checking for X" >&5
5146echo $ECHO_N "checking for X... $ECHO_C" >&6; } 5982echo $ECHO_N "checking for X... $ECHO_C" >&6; }
5147 5983
6455 LDFLAGS=$ac_save_LDFLAGS 7291 LDFLAGS=$ac_save_LDFLAGS
6456 7292
6457fi 7293fi
6458 7294
6459 7295
6460
6461AFTERIMAGE_CFLAGS= 7296AFTERIMAGE_CFLAGS=
6462AFTERIMAGE_LIBS= 7297AFTERIMAGE_LIBS=
6463AFTERIMAGE_VERSION= 7298AFTERIMAGE_VERSION=
6464 7299
6465if test x$support_afterimage = xyes; then 7300if test x$support_afterimage = xyes; then
6506echo "${ECHO_T}no" >&6; } 7341echo "${ECHO_T}no" >&6; }
6507fi 7342fi
6508 7343
6509 7344
6510 fi 7345 fi
7346 if test "x$afterimage_config" != "xno" ; then
6511 { echo "$as_me:$LINENO: checking for libAfterImage version >= 1.15" >&5 7347 { echo "$as_me:$LINENO: checking for libAfterImage version >= 1.15" >&5
6512echo $ECHO_N "checking for libAfterImage version >= 1.15... $ECHO_C" >&6; } 7348echo $ECHO_N "checking for libAfterImage version >= 1.15... $ECHO_C" >&6; }
6513 AFTERIMAGE_VERSION=`$afterimage_config --version` 7349 xAFTERIMAGE_VERSION=`$afterimage_config --version`
6514 if test -n $AFTERIMAGE_VERSION ; then 7350 if test -n "$xAFTERIMAGE_VERSION" ; then
6515 AFTERIMAGE_CFLAGS=`$afterimage_config --cflags` 7351 xAFTERIMAGE_CFLAGS=`$afterimage_config --cflags`
6516 AFTERIMAGE_LIBS=`$afterimage_config --libs` 7352 xAFTERIMAGE_LIBS=`$afterimage_config --libs`
6517 if test "x$AFTERIMAGE_LIBS" != "x"; then 7353 if test "x$xAFTERIMAGE_LIBS" != "x"; then
6518 libai_ver_major=`echo $AFTERIMAGE_VERSION | cut -f 1 -d .` 7354 libai_ver_major=`echo $xAFTERIMAGE_VERSION | cut -f 1 -d .`
6519 libai_ver_minor=`echo $AFTERIMAGE_VERSION | cut -f 2 -d .` 7355 libai_ver_minor=`echo $xAFTERIMAGE_VERSION | cut -f 2 -d .`
6520 if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then 7356 if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then
6521 support_afterimage=yes 7357 support_afterimage=yes
6522 fi 7358 AFTERIMAGE_CFLAGS="$xAFTERIMAGE_CFLAGS"
6523 fi 7359 AFTERIMAGE_LIBS="$xAFTERIMAGE_LIBS"
6524 fi 7360 AFTERIMAGE_VERSION="$xAFTERIMAGE_VERSION"
6525
6526 if test "x$support_afterimage" = "xyes"; then
6527 { echo "$as_me:$LINENO: result: $AFTERIMAGE_LIBS" >&5
6528echo "${ECHO_T}$AFTERIMAGE_LIBS" >&6; }
6529 else
6530 { echo "$as_me:$LINENO: result: no" >&5
6531echo "${ECHO_T}no" >&6; }
6532 fi
6533fi
6534
6535if test x$support_afterimage != xyes -a x$support_xpm = xyes ; then
6536
6537
6538
6539# Initialize some more variables set by options.
6540# The variables have the same names as the options, with
6541# dashes changed to underlines.
6542
6543# If we find XPM, set shell vars xpm_includes and xpm_libraries to the
6544# paths, otherwise set no_xpm=yes.
6545# Uses ac_ vars as temps to allow command line to override cache and checks.
6546{ echo "$as_me:$LINENO: checking for libXpm" >&5
6547echo $ECHO_N "checking for libXpm... $ECHO_C" >&6; }
6548
6549
6550# Check whether --with-xpm_includes was given.
6551if test "${with_xpm_includes+set}" = set; then
6552 withval=$with_xpm_includes; xpm_includes="$withval"
6553else
6554 xpm_includes=NO
6555fi
6556
6557
6558# Check whether --with-xpm_library was given.
6559if test "${with_xpm_library+set}" = set; then
6560 withval=$with_xpm_library; xpm_libraries="$withval"
6561else
6562 xpm_libraries=NO
6563fi
6564
6565
6566# --without-xpm overrides everything else, but does not touch the cache.
6567
6568# Check whether --with-xpm was given.
6569if test "${with_xpm+set}" = set; then
6570 withval=$with_xpm;
6571fi
6572
6573if test "$with_xpm" = no; then
6574 have_xpm=disabled
6575else
6576 if test "${ac_cv_have_xpm+set}" = set; then
6577 echo $ECHO_N "(cached) $ECHO_C" >&6
6578else
6579
6580 vt_xpm_include_X11=no
6581 if test -n "$xpm_includes"; then
6582 vt_xpm_includes=$xpm_includes
6583 else
6584 vt_xpm_includes=NO
6585 fi
6586 if test -n "$xpm_libraries"; then
6587 vt_xpm_libraries=$xpm_libraries
6588 else
6589 vt_xpm_libraries=NO
6590 fi
6591
6592 if test "$vt_xpm_includes" = NO; then
6593 # Guess where to find xpm.h
6594
6595ac_save_CPPFLAGS="$CPPFLAGS"
6596CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6597
6598 # First, try using that file with no special directory specified.
6599cat >conftest.$ac_ext <<_ACEOF
6600/* confdefs.h. */
6601_ACEOF
6602cat confdefs.h >>conftest.$ac_ext
6603cat >>conftest.$ac_ext <<_ACEOF
6604/* end confdefs.h. */
6605#include <X11/xpm.h>
6606_ACEOF
6607if { (ac_try="$ac_cpp conftest.$ac_ext"
6608case "(($ac_try" in
6609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6610 *) ac_try_echo=$ac_try;;
6611esac
6612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6614 ac_status=$?
6615 grep -v '^ *+' conftest.er1 >conftest.err
6616 rm -f conftest.er1
6617 cat conftest.err >&5
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); } >/dev/null && {
6620 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6621 test ! -s conftest.err
6622 }; then
6623 # We can compile using X headers with no special include directory.
6624vt_xpm_includes=
6625vt_xpm_include_X11=yes
6626else
6627 echo "$as_me: failed program was:" >&5
6628sed 's/^/| /' conftest.$ac_ext >&5
6629
6630 CPPFLAGS="$ac_save_CPPFLAGS"
6631# Look for the header file in a standard set of common directories.
6632 for ac_dir in \
6633 /usr/X11/include \
6634 /usr/X11R6/include \
6635 /usr/X11R5/include \
6636 /usr/X11R4/include \
6637 \
6638 /usr/include/X11 \
6639 /usr/include/X11R6 \
6640 /usr/include/X11R5 \
6641 /usr/include/X11R4 \
6642 \
6643 /usr/local/X11/include \
6644 /usr/local/X11R6/include \
6645 /usr/local/X11R5/include \
6646 /usr/local/X11R4/include \
6647 \
6648 /usr/local/include/X11 \
6649 /usr/local/include/X11R6 \
6650 /usr/local/include/X11R5 \
6651 /usr/local/include/X11R4 \
6652 \
6653 /usr/X386/include \
6654 /usr/x386/include \
6655 /usr/XFree86/include/X11 \
6656 \
6657 /usr/include \
6658 /usr/local/include \
6659 /usr/unsupported/include \
6660 /usr/athena/include \
6661 /usr/local/x11r5/include \
6662 /usr/lpp/Xamples/include \
6663 \
6664 /usr/openwin/include \
6665 /usr/openwin/share/include \
6666 ; \
6667 do
6668 if test -r "$ac_dir/X11/xpm.h"; then
6669 vt_xpm_includes="$ac_dir"
6670 vt_xpm_include_X11=yes
6671 break
6672 else
6673 if test -r "$ac_dir/xpm.h"; then
6674 vt_xpm_includes=$ac_dir
6675 break
6676 fi
6677 fi
6678 done
6679fi
6680
6681rm -f conftest.err conftest.$ac_ext
6682fi
6683
6684if test "$vt_xpm_libraries" = NO; then
6685 # Check for the libraries.
6686
6687 # See if we find them without any special options.
6688 # Don't add to $LIBS permanently.
6689 ac_save_LIBS="$LIBS"
6690 LIBS="$LIBS $X_LIBS -lXpm -lX11"
6691cat >conftest.$ac_ext <<_ACEOF
6692/* confdefs.h. */
6693_ACEOF
6694cat confdefs.h >>conftest.$ac_ext
6695cat >>conftest.$ac_ext <<_ACEOF
6696/* end confdefs.h. */
6697
6698int
6699main ()
6700{
6701XpmReadFileToPixmap()
6702 ;
6703 return 0;
6704}
6705_ACEOF
6706rm -f conftest.$ac_objext conftest$ac_exeext
6707if { (ac_try="$ac_link"
6708case "(($ac_try" in
6709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6710 *) ac_try_echo=$ac_try;;
6711esac
6712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6713 (eval "$ac_link") 2>conftest.er1
6714 ac_status=$?
6715 grep -v '^ *+' conftest.er1 >conftest.err
6716 rm -f conftest.er1
6717 cat conftest.err >&5
6718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719 (exit $ac_status); } && {
6720 test -z "$ac_cxx_werror_flag" ||
6721 test ! -s conftest.err
6722 } && test -s conftest$ac_exeext &&
6723 $as_test_x conftest$ac_exeext; then
6724 LIBS="$ac_save_LIBS"
6725# We can link libXpm with no special library path.
6726vt_xpm_libraries=
6727else
6728 echo "$as_me: failed program was:" >&5
6729sed 's/^/| /' conftest.$ac_ext >&5
6730
6731 LIBS="$ac_save_LIBS"
6732# First see if replacing the include by lib works.
6733for ac_dir in \
6734 `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
6735 /usr/X11/lib \
6736 /usr/X11R6/lib \
6737 /usr/X11R5/lib \
6738 /usr/X11R4/lib \
6739 \
6740 /usr/lib/X11 \
6741 /usr/lib/X11R6 \
6742 /usr/lib/X11R5 \
6743 /usr/lib/X11R4 \
6744 \
6745 /usr/local/X11/lib \
6746 /usr/local/X11R6/lib \
6747 /usr/local/X11R5/lib \
6748 /usr/local/X11R4/lib \
6749 \
6750 /usr/local/lib/X11 \
6751 /usr/local/lib/X11R6 \
6752 /usr/local/lib/X11R5 \
6753 /usr/local/lib/X11R4 \
6754 \
6755 /usr/X386/lib \
6756 /usr/x386/lib \
6757 /usr/XFree86/lib/X11 \
6758 \
6759 /usr/lib \
6760 /usr/local/lib \
6761 /usr/unsupported/lib \
6762 /usr/athena/lib \
6763 /usr/local/x11r5/lib \
6764 /usr/lpp/Xamples/lib \
6765 \
6766 /usr/openwin/lib \
6767 /usr/openwin/share/lib \
6768 ; \
6769do
6770 for ac_extension in a so sl; do
6771 if test -r $ac_dir/libXpm.$ac_extension; then
6772 vt_xpm_libraries=$ac_dir
6773 break 2
6774 fi
6775 done
6776done
6777fi
6778
6779rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6780 conftest$ac_exeext conftest.$ac_ext
6781fi
6782
6783
6784 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then
6785 ac_cv_have_xpm="have_xpm=no"
6786 else
6787 ac_cv_have_xpm="have_xpm=yes \
6788 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6789 vt_xpm_include_X11=$vt_xpm_include_X11"
6790 fi
6791fi
6792 eval "$ac_cv_have_xpm"
6793fi
6794
6795if test "$have_xpm" != yes; then
6796 { echo "$as_me:$LINENO: result: $have_xpm" >&5
6797echo "${ECHO_T}$have_xpm" >&6; }
6798 no_xpm=yes
6799else
6800 if test "$xpm_includes" != NO; then
6801 if test "$xpm_includes" = "$vt_xpm_includes"; then
6802 if test -r "$xpm_includes/X11/xpm.h"; then
6803 vt_xpm_include_X11=yes
6804 fi
6805 else
6806 vt_xpm_include_X11=no
6807 if test -z "$xpm_includes"; then
6808 cat >conftest.$ac_ext <<_ACEOF
6809/* confdefs.h. */
6810_ACEOF
6811cat confdefs.h >>conftest.$ac_ext
6812cat >>conftest.$ac_ext <<_ACEOF
6813/* end confdefs.h. */
6814#include <X11/xpm.h>
6815_ACEOF
6816if { (ac_try="$ac_cpp conftest.$ac_ext"
6817case "(($ac_try" in
6818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6819 *) ac_try_echo=$ac_try;;
6820esac
6821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6823 ac_status=$?
6824 grep -v '^ *+' conftest.er1 >conftest.err
6825 rm -f conftest.er1
6826 cat conftest.err >&5
6827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 (exit $ac_status); } >/dev/null && {
6829 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6830 test ! -s conftest.err
6831 }; then
6832 vt_xpm_include_X11=yes
6833else
6834 echo "$as_me: failed program was:" >&5
6835sed 's/^/| /' conftest.$ac_ext >&5
6836
6837
6838fi
6839
6840rm -f conftest.err conftest.$ac_ext
6841 else
6842 if test -r "$xpm_includes/X11/xpm.h"; then
6843 vt_xpm_include_X11=yes
6844 fi 7361 fi
6845 fi 7362 fi
6846 fi 7363 fi
6847 vt_xpm_includes=$xpm_includes 7364 if test "x$support_afterimage" = "xyes"; then
7365 { echo "$as_me:$LINENO: result: $AFTERIMAGE_LIBS" >&5
7366echo "${ECHO_T}$AFTERIMAGE_LIBS" >&6; }
7367 else
7368 { echo "$as_me:$LINENO: result: no" >&5
7369echo "${ECHO_T}no" >&6; }
6848 fi 7370 fi
6849 if test "x$xpm_libraries" != xNO; then
6850 vt_xpm_libraries=$xpm_libraries
6851 fi
6852 # Update the cache value to reflect the command line values.
6853 ac_cv_have_xpm="have_xpm=yes \
6854 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6855 vt_xpm_include_X11=$vt_xpm_include_X11"
6856 eval "$ac_cv_have_xpm"
6857 { echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5
6858echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6; }
6859 if test -n "$vt_xpm_includes"; then
6860 XPM_CPPFLAGS="-DHAVE_LIBXPM"
6861 fi
6862 if test -n "$vt_xpm_includes"; then
6863 XPM_CFLAGS="-I$vt_xpm_includes"
6864 fi
6865 XPM_LIBS="-lXpm"
6866 if test -n "$vt_xpm_libraries"; then
6867 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
6868 fi
6869 if test "x$vt_xpm_include_X11" = xyes; then
6870
6871cat >>confdefs.h <<\_ACEOF
6872#define XPM_INC_X11 1
6873_ACEOF
6874
6875 fi
6876fi
6877
6878
6879
6880
6881
6882 if test x$no_xpm = xyes; then
6883 support_xpm=needsmanualspecification
6884 fi 7371 fi
6885fi 7372fi
6886 7373
6887{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 7374{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6888echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } 7375echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6948cat >>confdefs.h <<\_ACEOF 7435cat >>confdefs.h <<\_ACEOF
6949#define HAVE_SYS_WAIT_H 1 7436#define HAVE_SYS_WAIT_H 1
6950_ACEOF 7437_ACEOF
6951 7438
6952fi 7439fi
6953
6954{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6955echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6956if test "${ac_cv_header_stdc+set}" = set; then
6957 echo $ECHO_N "(cached) $ECHO_C" >&6
6958else
6959 cat >conftest.$ac_ext <<_ACEOF
6960/* confdefs.h. */
6961_ACEOF
6962cat confdefs.h >>conftest.$ac_ext
6963cat >>conftest.$ac_ext <<_ACEOF
6964/* end confdefs.h. */
6965#include <stdlib.h>
6966#include <stdarg.h>
6967#include <string.h>
6968#include <float.h>
6969
6970int
6971main ()
6972{
6973
6974 ;
6975 return 0;
6976}
6977_ACEOF
6978rm -f conftest.$ac_objext
6979if { (ac_try="$ac_compile"
6980case "(($ac_try" in
6981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6982 *) ac_try_echo=$ac_try;;
6983esac
6984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6985 (eval "$ac_compile") 2>conftest.er1
6986 ac_status=$?
6987 grep -v '^ *+' conftest.er1 >conftest.err
6988 rm -f conftest.er1
6989 cat conftest.err >&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); } && {
6992 test -z "$ac_cxx_werror_flag" ||
6993 test ! -s conftest.err
6994 } && test -s conftest.$ac_objext; then
6995 ac_cv_header_stdc=yes
6996else
6997 echo "$as_me: failed program was:" >&5
6998sed 's/^/| /' conftest.$ac_ext >&5
6999
7000 ac_cv_header_stdc=no
7001fi
7002
7003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7004
7005if test $ac_cv_header_stdc = yes; then
7006 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7007 cat >conftest.$ac_ext <<_ACEOF
7008/* confdefs.h. */
7009_ACEOF
7010cat confdefs.h >>conftest.$ac_ext
7011cat >>conftest.$ac_ext <<_ACEOF
7012/* end confdefs.h. */
7013#include <string.h>
7014
7015_ACEOF
7016if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7017 $EGREP "memchr" >/dev/null 2>&1; then
7018 :
7019else
7020 ac_cv_header_stdc=no
7021fi
7022rm -f conftest*
7023
7024fi
7025
7026if test $ac_cv_header_stdc = yes; then
7027 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7028 cat >conftest.$ac_ext <<_ACEOF
7029/* confdefs.h. */
7030_ACEOF
7031cat confdefs.h >>conftest.$ac_ext
7032cat >>conftest.$ac_ext <<_ACEOF
7033/* end confdefs.h. */
7034#include <stdlib.h>
7035
7036_ACEOF
7037if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7038 $EGREP "free" >/dev/null 2>&1; then
7039 :
7040else
7041 ac_cv_header_stdc=no
7042fi
7043rm -f conftest*
7044
7045fi
7046
7047if test $ac_cv_header_stdc = yes; then
7048 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7049 if test "$cross_compiling" = yes; then
7050 :
7051else
7052 cat >conftest.$ac_ext <<_ACEOF
7053/* confdefs.h. */
7054_ACEOF
7055cat confdefs.h >>conftest.$ac_ext
7056cat >>conftest.$ac_ext <<_ACEOF
7057/* end confdefs.h. */
7058#include <ctype.h>
7059#include <stdlib.h>
7060#if ((' ' & 0x0FF) == 0x020)
7061# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7062# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7063#else
7064# define ISLOWER(c) \
7065 (('a' <= (c) && (c) <= 'i') \
7066 || ('j' <= (c) && (c) <= 'r') \
7067 || ('s' <= (c) && (c) <= 'z'))
7068# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7069#endif
7070
7071#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7072int
7073main ()
7074{
7075 int i;
7076 for (i = 0; i < 256; i++)
7077 if (XOR (islower (i), ISLOWER (i))
7078 || toupper (i) != TOUPPER (i))
7079 return 2;
7080 return 0;
7081}
7082_ACEOF
7083rm -f conftest$ac_exeext
7084if { (ac_try="$ac_link"
7085case "(($ac_try" in
7086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7087 *) ac_try_echo=$ac_try;;
7088esac
7089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7090 (eval "$ac_link") 2>&5
7091 ac_status=$?
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7094 { (case "(($ac_try" in
7095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7096 *) ac_try_echo=$ac_try;;
7097esac
7098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7099 (eval "$ac_try") 2>&5
7100 ac_status=$?
7101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102 (exit $ac_status); }; }; then
7103 :
7104else
7105 echo "$as_me: program exited with status $ac_status" >&5
7106echo "$as_me: failed program was:" >&5
7107sed 's/^/| /' conftest.$ac_ext >&5
7108
7109( exit $ac_status )
7110ac_cv_header_stdc=no
7111fi
7112rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7113fi
7114
7115
7116fi
7117fi
7118{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7119echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7120if test $ac_cv_header_stdc = yes; then
7121
7122cat >>confdefs.h <<\_ACEOF
7123#define STDC_HEADERS 1
7124_ACEOF
7125
7126fi
7127
7128# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7139 inttypes.h stdint.h unistd.h
7140do
7141as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7142{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7143echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7144if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
7146else
7147 cat >conftest.$ac_ext <<_ACEOF
7148/* confdefs.h. */
7149_ACEOF
7150cat confdefs.h >>conftest.$ac_ext
7151cat >>conftest.$ac_ext <<_ACEOF
7152/* end confdefs.h. */
7153$ac_includes_default
7154
7155#include <$ac_header>
7156_ACEOF
7157rm -f conftest.$ac_objext
7158if { (ac_try="$ac_compile"
7159case "(($ac_try" in
7160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7161 *) ac_try_echo=$ac_try;;
7162esac
7163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7164 (eval "$ac_compile") 2>conftest.er1
7165 ac_status=$?
7166 grep -v '^ *+' conftest.er1 >conftest.err
7167 rm -f conftest.er1
7168 cat conftest.err >&5
7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); } && {
7171 test -z "$ac_cxx_werror_flag" ||
7172 test ! -s conftest.err
7173 } && test -s conftest.$ac_objext; then
7174 eval "$as_ac_Header=yes"
7175else
7176 echo "$as_me: failed program was:" >&5
7177sed 's/^/| /' conftest.$ac_ext >&5
7178
7179 eval "$as_ac_Header=no"
7180fi
7181
7182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7183fi
7184ac_res=`eval echo '${'$as_ac_Header'}'`
7185 { echo "$as_me:$LINENO: result: $ac_res" >&5
7186echo "${ECHO_T}$ac_res" >&6; }
7187if test `eval echo '${'$as_ac_Header'}'` = yes; then
7188 cat >>confdefs.h <<_ACEOF
7189#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7190_ACEOF
7191
7192fi
7193
7194done
7195
7196 7440
7197 7441
7198 7442
7199 7443
7200 7444
9963_ACEOF 10207_ACEOF
9964 10208
9965 10209
9966 10210
9967 10211
9968
9969
9970for ac_func in \ 10212for ac_func in unsetenv
9971 unsetenv \
9972 setutent \
9973 on_exit \
9974
9975do 10213do
9976as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10214as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9977{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10215{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9978echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10216echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9979if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10217if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10118 10356
10119 10357
10120 10358
10121 10359
10122for ac_func in \ 10360for ac_func in \
10123 ttyslot \
10124 updwtmp \ 10361 updwtmp \
10125 updwtmpx \ 10362 updwtmpx \
10363 updlastlogx \
10126 10364
10127do 10365do
10128as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10366as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10129{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10367{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10130echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10368echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11551 11789
11552cat >>confdefs.h <<_ACEOF 11790cat >>confdefs.h <<_ACEOF
11553#define LASTLOG_FILE "$path_lastlog" 11791#define LASTLOG_FILE "$path_lastlog"
11554_ACEOF 11792_ACEOF
11555 11793
11556 if test -d "$path_lastlog"; then
11557
11558cat >>confdefs.h <<\_ACEOF
11559#define LASTLOG_IS_DIR 1
11560_ACEOF
11561
11562 fi
11563fi 11794fi
11564 11795
11565{ echo "$as_me:$LINENO: checking where lastlogx is located" >&5 11796{ echo "$as_me:$LINENO: checking where lastlogx is located" >&5
11566echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } 11797echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; }
11567if test "${path_lastlogx+set}" = set; then 11798if test "${path_lastlogx+set}" = set; then
11649 11880
11650fi 11881fi
11651 11882
11652 11883
11653 11884
11654{ echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
11655echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6; }
11656if test "${rxvt_cv_path_ttytab+set}" = set; then
11657 echo $ECHO_N "(cached) $ECHO_C" >&6
11658else
11659 for ttys_file in /etc/ttys /etc/ttytab;
11660do
11661 if test -f "$ttys_file" ; then
11662 rxvt_cv_path_ttytab=$ttys_file
11663 break
11664 fi
11665done
11666 11885
11667fi
11668{ echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
11669echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6; }
11670if test x$rxvt_cv_path_ttytab != x; then
11671
11672cat >>confdefs.h <<_ACEOF
11673#define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
11674_ACEOF
11675
11676fi
11677
11678
11679ac_save_LIBS=$LIBS 11886save_LIBS=$LIBS
11680ac_save_CFLAGS=$CFLAGS 11887save_CFLAGS=$CFLAGS
11681CFLAGS="$CFLAGS $X_CFLAGS" 11888CFLAGS="$CFLAGS $X_CFLAGS"
11682LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 11889LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
11890if test x$support_xim = xyes; then
11683{ echo "$as_me:$LINENO: checking for working Xlocale" >&5 11891 { echo "$as_me:$LINENO: checking for working Xlocale" >&5
11684echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } 11892echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; }
11685if test "${rxvt_cv_func_xlocale+set}" = set; then 11893if test "${rxvt_cv_func_xlocale+set}" = set; then
11686 echo $ECHO_N "(cached) $ECHO_C" >&6 11894 echo $ECHO_N "(cached) $ECHO_C" >&6
11687else 11895else
11688 if test "$cross_compiling" = yes; then 11896 if test "$cross_compiling" = yes; then
11689 : 11897 :
11690else 11898else
11691 cat >conftest.$ac_ext <<_ACEOF 11899 cat >conftest.$ac_ext <<_ACEOF
11692/* confdefs.h. */ 11900/* confdefs.h. */
11693_ACEOF 11901_ACEOF
11694cat confdefs.h >>conftest.$ac_ext 11902cat confdefs.h >>conftest.$ac_ext
11695cat >>conftest.$ac_ext <<_ACEOF 11903cat >>conftest.$ac_ext <<_ACEOF
11696/* end confdefs.h. */ 11904/* end confdefs.h. */
11697#include <X11/Xlib.h> 11905#include <X11/Xlib.h>
11698#include <stdlib.h> 11906 #include <stdlib.h>
11699main() { 11907 main() {
11700char *p; 11908 char *p;
11701if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) 11909 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
11702exit (XSupportsLocale() ? 0 : 1); 11910 exit (XSupportsLocale() ? 0 : 1);
11703else 11911 else
11704exit (1);} 11912 exit (1);}
11705_ACEOF 11913_ACEOF
11706rm -f conftest$ac_exeext 11914rm -f conftest$ac_exeext
11707if { (ac_try="$ac_link" 11915if { (ac_try="$ac_link"
11708case "(($ac_try" in 11916case "(($ac_try" in
11709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11722 (eval "$ac_try") 2>&5 11930 (eval "$ac_try") 2>&5
11723 ac_status=$? 11931 ac_status=$?
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); }; }; then 11933 (exit $ac_status); }; }; then
11726 rxvt_cv_func_xlocale=yes 11934 rxvt_cv_func_xlocale=yes
11727else 11935else
11728 echo "$as_me: program exited with status $ac_status" >&5 11936 echo "$as_me: program exited with status $ac_status" >&5
11729echo "$as_me: failed program was:" >&5 11937echo "$as_me: failed program was:" >&5
11730sed 's/^/| /' conftest.$ac_ext >&5 11938sed 's/^/| /' conftest.$ac_ext >&5
11731 11939
11737 11945
11738 11946
11739fi 11947fi
11740{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 11948{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
11741echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; } 11949echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; }
11742if test x$support_xim = xyes; then
11743 if test x$rxvt_cv_func_xlocale = xyes; then 11950 if test x$rxvt_cv_func_xlocale = xyes; then
11744 11951
11745cat >>confdefs.h <<\_ACEOF 11952cat >>confdefs.h <<\_ACEOF
11746#define USE_XIM 1 11953#define USE_XIM 1
11747_ACEOF 11954_ACEOF
11748 11955
11956 { echo "$as_me:$LINENO: checking for broken XIM callback" >&5
11957echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; }
11958if test "${rxvt_broken_ximcb+set}" = set; then
11959 echo $ECHO_N "(cached) $ECHO_C" >&6
11960else
11961 cat >conftest.$ac_ext <<_ACEOF
11962
11963 #include <X11/Xlib.h>
11964
11965 void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
11966
11967 void f() {
11968 XIMCallback cb;
11969 cb.callback = im_destroy_cb;
11970 }
11971
11972_ACEOF
11973rm -f conftest.$ac_objext
11974if { (ac_try="$ac_compile"
11975case "(($ac_try" in
11976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11977 *) ac_try_echo=$ac_try;;
11978esac
11979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11980 (eval "$ac_compile") 2>conftest.er1
11981 ac_status=$?
11982 grep -v '^ *+' conftest.er1 >conftest.err
11983 rm -f conftest.er1
11984 cat conftest.err >&5
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); } && {
11987 test -z "$ac_cxx_werror_flag" ||
11988 test ! -s conftest.err
11989 } && test -s conftest.$ac_objext; then
11990 rxvt_broken_ximcb=yes
11991else
11992 echo "$as_me: failed program was:" >&5
11993sed 's/^/| /' conftest.$ac_ext >&5
11994
11995 rxvt_broken_ximcb=no
11996fi
11997
11998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11999fi
12000{ echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
12001echo "${ECHO_T}$rxvt_broken_ximcb" >&6; }
12002
12003 if test x$rxvt_broken_ximcb = xyes; then
12004
12005cat >>confdefs.h <<\_ACEOF
12006#define XIMCB_PROTO_BROKEN 1
12007_ACEOF
12008
12009 fi
11749 fi 12010 fi
11750fi 12011fi
11751 12012
11752{ echo "$as_me:$LINENO: checking for working X setlocale" >&5 12013{ echo "$as_me:$LINENO: checking for working X setlocale" >&5
11753echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; } 12014echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; }
11806cat >>confdefs.h <<\_ACEOF 12067cat >>confdefs.h <<\_ACEOF
11807#define HAVE_XSETLOCALE 1 12068#define HAVE_XSETLOCALE 1
11808_ACEOF 12069_ACEOF
11809 12070
11810fi 12071fi
11811LIBS=$ac_save_LIBS 12072LIBS=$save_LIBS
11812CFLAGS=$ac_save_CFLAGS 12073CFLAGS=$save_CFLAGS
11813 12074
11814{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5 12075{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5
11815echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } 12076echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; }
11816if test "${rxvt_cv_func_setlocale+set}" = set; then 12077if test "${rxvt_cv_func_setlocale+set}" = set; then
11817 echo $ECHO_N "(cached) $ECHO_C" >&6 12078 echo $ECHO_N "(cached) $ECHO_C" >&6
12020 { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5 12281 { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5
12021echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} 12282echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;}
12022 { (exit 1); exit 1; }; } 12283 { (exit 1); exit 1; }; }
12023fi 12284fi
12024 12285
12025
12026{ echo "$as_me:$LINENO: checking for broken XIM callback" >&5
12027echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; }
12028if test "${rxvt_broken_ximcb+set}" = set; then
12029 echo $ECHO_N "(cached) $ECHO_C" >&6
12030else
12031 cat >conftest.$ac_ext <<_ACEOF
12032
12033#include <X11/Xlib.h>
12034
12035void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
12036
12037void f() {
12038 XIMCallback cb;
12039 cb.callback = im_destroy_cb;
12040}
12041
12042_ACEOF
12043rm -f conftest.$ac_objext
12044if { (ac_try="$ac_compile"
12045case "(($ac_try" in
12046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12047 *) ac_try_echo=$ac_try;;
12048esac
12049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12050 (eval "$ac_compile") 2>conftest.er1
12051 ac_status=$?
12052 grep -v '^ *+' conftest.er1 >conftest.err
12053 rm -f conftest.er1
12054 cat conftest.err >&5
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); } && {
12057 test -z "$ac_cxx_werror_flag" ||
12058 test ! -s conftest.err
12059 } && test -s conftest.$ac_objext; then
12060 rxvt_broken_ximcb=yes
12061else
12062 echo "$as_me: failed program was:" >&5
12063sed 's/^/| /' conftest.$ac_ext >&5
12064
12065 rxvt_broken_ximcb=no
12066fi
12067
12068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12069fi
12070{ echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
12071echo "${ECHO_T}$rxvt_broken_ximcb" >&6; }
12072
12073if test x$rxvt_broken_ximcb = xyes; then
12074
12075cat >>confdefs.h <<\_ACEOF
12076#define XIMCB_PROTO_BROKEN 1
12077_ACEOF
12078
12079fi
12080 12286
12081 12287
12082 12288
12083 12289
12084 12290
13067cat >>confdefs.h <<\_ACEOF 13273cat >>confdefs.h <<\_ACEOF
13068#define OFF_FOCUS_FADING 1 13274#define OFF_FOCUS_FADING 1
13069_ACEOF 13275_ACEOF
13070 13276
13071fi 13277fi
13072if test x$support_tinting = xyes; then
13073
13074cat >>confdefs.h <<\_ACEOF
13075#define TINTING 1
13076_ACEOF
13077
13078fi
13079if test x$support_inheritpixmap = xyes; then 13278if test x$support_inheritpixmap = xyes; then
13080 13279
13081cat >>confdefs.h <<\_ACEOF 13280cat >>confdefs.h <<\_ACEOF
13082#define ENABLE_TRANSPARENCY 1 13281#define ENABLE_TRANSPARENCY 1
13083_ACEOF 13282_ACEOF
13095cat >>confdefs.h <<\_ACEOF 13294cat >>confdefs.h <<\_ACEOF
13096#define SELECTION_SCROLLING 1 13295#define SELECTION_SCROLLING 1
13097_ACEOF 13296_ACEOF
13098 13297
13099fi 13298fi
13299if test x$support_frills = xyes; then
13300
13301cat >>confdefs.h <<\_ACEOF
13302#define ENABLE_FRILLS 1
13303_ACEOF
13304
13305fi
13100if test x$support_mousewheel = xyes; then 13306if test x$support_mousewheel = xyes; then
13101 13307
13102cat >>confdefs.h <<\_ACEOF 13308cat >>confdefs.h <<\_ACEOF
13103#define MOUSE_WHEEL 1 13309#define MOUSE_WHEEL 1
13104_ACEOF 13310_ACEOF
13109cat >>confdefs.h <<\_ACEOF 13315cat >>confdefs.h <<\_ACEOF
13110#define MOUSE_SLIP_WHEELING 1 13316#define MOUSE_SLIP_WHEELING 1
13111_ACEOF 13317_ACEOF
13112 13318
13113fi 13319fi
13114if test x$support_xpm = xyes -o x$support_afterimage = xyes ; then
13115
13116cat >>confdefs.h <<\_ACEOF
13117#define XPM_BACKGROUND 1
13118_ACEOF
13119
13120fi
13121
13122if test x$support_afterimage = xyes; then 13320if test x$support_afterimage = xyes; then
13123 13321
13124cat >>confdefs.h <<\_ACEOF 13322cat >>confdefs.h <<\_ACEOF
13125#define HAVE_AFTERIMAGE 1 13323#define HAVE_AFTERIMAGE 1
13126_ACEOF 13324_ACEOF
13127 13325
13128fi
13129
13130if test x$support_afterstep = xyes; then
13131 13326
13132cat >>confdefs.h <<\_ACEOF 13327cat >>confdefs.h <<\_ACEOF
13133#define AFTERSTEP_INTEGRATION 1 13328#define BG_IMAGE_FROM_FILE 1
13134_ACEOF 13329_ACEOF
13135 13330
13136fi 13331fi
13332
13137 13333
13138if test x$support_scroll_rxvt = xyes; then 13334if test x$support_scroll_rxvt = xyes; then
13139 13335
13140cat >>confdefs.h <<\_ACEOF 13336cat >>confdefs.h <<\_ACEOF
13141#define RXVT_SCROLLBAR 1 13337#define RXVT_SCROLLBAR 1
13409 13605
13410 13606
13411 13607
13412 13608
13413 13609
13414
13415if test x$support_perl = xyes; then
13416 support_frills=yes
13417fi
13418
13419if test x$support_frills = xyes; then
13420
13421cat >>confdefs.h <<\_ACEOF
13422#define ENABLE_FRILLS 1
13423_ACEOF
13424
13425fi
13426 13610
13427 13611
13428 13612
13429 13613
13430 13614
14206GREP!$GREP$ac_delim 14390GREP!$GREP$ac_delim
14207EGREP!$EGREP$ac_delim 14391EGREP!$EGREP$ac_delim
14208LINKER!$LINKER$ac_delim 14392LINKER!$LINKER$ac_delim
14209INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim 14393INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim
14210RXVTNAME!$RXVTNAME$ac_delim 14394RXVTNAME!$RXVTNAME$ac_delim
14395CXXCPP!$CXXCPP$ac_delim
14211TIC!$TIC$ac_delim 14396TIC!$TIC$ac_delim
14212XMKMF!$XMKMF$ac_delim 14397XMKMF!$XMKMF$ac_delim
14213CXXCPP!$CXXCPP$ac_delim
14214X_CFLAGS!$X_CFLAGS$ac_delim 14398X_CFLAGS!$X_CFLAGS$ac_delim
14215X_PRE_LIBS!$X_PRE_LIBS$ac_delim 14399X_PRE_LIBS!$X_PRE_LIBS$ac_delim
14216X_LIBS!$X_LIBS$ac_delim 14400X_LIBS!$X_LIBS$ac_delim
14217X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim 14401X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
14218afterimage_config!$afterimage_config$ac_delim 14402afterimage_config!$afterimage_config$ac_delim
14219XPM_CPPFLAGS!$XPM_CPPFLAGS$ac_delim
14220XPM_CFLAGS!$XPM_CFLAGS$ac_delim
14221XPM_LIBS!$XPM_LIBS$ac_delim
14222rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim 14403rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim
14223rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim 14404rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim
14224rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim 14405rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim
14225rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim 14406rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim
14226rxvt_intp_define!$rxvt_intp_define$ac_delim 14407rxvt_intp_define!$rxvt_intp_define$ac_delim
14235PERL_O!$PERL_O$ac_delim 14416PERL_O!$PERL_O$ac_delim
14236AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim 14417AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim
14237AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim 14418AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim
14238include_stdint_h!$include_stdint_h$ac_delim 14419include_stdint_h!$include_stdint_h$ac_delim
14239include_stdarg_h!$include_stdarg_h$ac_delim 14420include_stdarg_h!$include_stdarg_h$ac_delim
14421include_stdlib_h!$include_stdlib_h$ac_delim
14422include_unistd_h!$include_unistd_h$ac_delim
14423include_string_h!$include_string_h$ac_delim
14240_ACEOF 14424_ACEOF
14241 14425
14242 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 14426 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
14243 break 14427 break
14244 elif $ac_last_try; then 14428 elif $ac_last_try; then
14276 14460
14277 14461
14278ac_delim='%!_!# ' 14462ac_delim='%!_!# '
14279for ac_last_try in false false false false false :; do 14463for ac_last_try in false false false false false :; do
14280 cat >conf$$subs.sed <<_ACEOF 14464 cat >conf$$subs.sed <<_ACEOF
14281include_stdlib_h!$include_stdlib_h$ac_delim
14282include_unistd_h!$include_unistd_h$ac_delim
14283include_string_h!$include_string_h$ac_delim
14284include_fcntl_h!$include_fcntl_h$ac_delim 14465include_fcntl_h!$include_fcntl_h$ac_delim
14285include_util_h!$include_util_h$ac_delim 14466include_util_h!$include_util_h$ac_delim
14286include_assert_h!$include_assert_h$ac_delim 14467include_assert_h!$include_assert_h$ac_delim
14287include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim 14468include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim
14288include_sys_select_h!$include_sys_select_h$ac_delim 14469include_sys_select_h!$include_sys_select_h$ac_delim
14291include_time_h!$include_time_h$ac_delim 14472include_time_h!$include_time_h$ac_delim
14292LIBOBJS!$LIBOBJS$ac_delim 14473LIBOBJS!$LIBOBJS$ac_delim
14293LTLIBOBJS!$LTLIBOBJS$ac_delim 14474LTLIBOBJS!$LTLIBOBJS$ac_delim
14294_ACEOF 14475_ACEOF
14295 14476
14296 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then 14477 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
14297 break 14478 break
14298 elif $ac_last_try; then 14479 elif $ac_last_try; then
14299 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14480 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14300echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14481echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14301 { (exit 1); exit 1; }; } 14482 { (exit 1); exit 1; }; }
14730 Install path: ${prefix}/bin 14911 Install path: ${prefix}/bin
14731 Compiler: $CXX 14912 Compiler: $CXX
14732 Compiler flags: $CXXFLAGS 14913 Compiler flags: $CXXFLAGS
14733 Linker: $LINKER" 14914 Linker: $LINKER"
14734 14915
14735if test x$support_xpm = xyes; then
14736 echo " Xpm library: $XPM_LIBS"
14737fi
14738
14739if test x$support_afterimage = xyes; then
14740 echo " AfterImage support: yes"
14741fi
14742
14743if test x$support_afterstep = xyes; then
14744 echo " AfterStep integration: yes"
14745fi
14746
14747if test x$term != x; then 14916if test x$term != x; then
14748 echo " set TERM to: $term" 14917 echo " set TERM to: $term"
14749fi 14918fi
14750if test x$terminfo != x; then 14919if test x$terminfo != x; then
14751 echo " set TERMINFO to: $terminfo" 14920 echo " set TERMINFO to: $terminfo"
14755if test x$RESFALLBACK != x; then 14924if test x$RESFALLBACK != x; then
14756 echo " resource class fallback: $RESFALLBACK" 14925 echo " resource class fallback: $RESFALLBACK"
14757fi 14926fi
14758echo 14927echo
14759echo " embedded perl: $support_perl" 14928echo " embedded perl: $support_perl"
14929echo " libafterimage: $support_afterimage"
14760echo 14930echo
14761if test x$support_xpm = xneedsmanualspecification; then
14762 echo ".----------------------------------------------------------------."
14763 echo ". WARNING: --enable-xpm-background was specified however the ."
14764 echo ". XPM includes files and libraries could not be found. ."
14765 echo ". XPM backgrounds are now being DISABLED! If you want ."
14766 echo ". to use them you should rerun configure with the ."
14767 echo ". appropriate --with-xpm-includes=/path/to/xpm/includes ."
14768 echo ". and --with-xpm-library=/path/to/xpm/library lines. ."
14769 echo ".----------------------------------------------------------------."
14770fi
14771if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then 14931if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
14772 echo ".----------------------------------------------------------------." 14932 echo ".----------------------------------------------------------------."
14773 echo ". WARNING: --enable-xim was specified however the locale support ." 14933 echo ". WARNING: --enable-xim was specified however the locale support ."
14774 echo ". functions could not be found. ." 14934 echo ". functions could not be found. ."
14775 echo ". XIM is now being DISABLED! ." 14935 echo ". XIM is now being DISABLED! ."

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines