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

Comparing rxvt-unicode/configure (file contents):
Revision 1.110 by ayin, Thu Aug 2 00:29:23 2007 UTC vs.
Revision 1.119 by root, Sun Nov 18 02:19:20 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
731CPPFLAGS 731CPPFLAGS
732CXX 732CXX
733CXXFLAGS 733CXXFLAGS
734CCC 734CCC
735CPP 735CPP
736XMKMF
737CXXCPP' 736CXXCPP
737XMKMF'
738 738
739 739
740# Initialize some variables set by options. 740# Initialize some variables set by options.
741ac_init_help= 741ac_init_help=
742ac_init_version=false 742ac_init_version=false
1317 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1317 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1318 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1318 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1319 --enable-everything enable standard non-multichoice features 1319 --enable-everything enable standard non-multichoice features
1320 NOTE: this option is order dependent 1320 NOTE: this option is order dependent
1321 NOTE: automatically enabled with --enable-shared 1321 NOTE: automatically enabled with --enable-shared
1322 --enable-warnings turn on g++ warnings
1322 --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
1323 --enable-combining enable composition of base and combining characters 1324 --enable-combining enable composition of base and combining characters
1324 --enable-xft enable xft support on systems that have it 1325 --enable-xft enable xft support on systems that have it
1325 --enable-font-styles enable bold and italic support 1326 --enable-font-styles enable bold and italic support
1326 --enable-afterimage enable integration with libAfterImage for background images 1327 --enable-afterimage enable integration with libAfterImage for background images
1327 --enable-transparency enable transparent backgrounds 1328 --enable-transparency enable transparent backgrounds
1328 --enable-tinting enable tinting of transparent bg
1329 --enable-fading enable colors fading when off focus 1329 --enable-fading enable colors fading when off focus
1330 --enable-rxvt-scroll enable rxvt style scrollbar 1330 --enable-rxvt-scroll enable rxvt style scrollbar
1331 --enable-next-scroll enable NeXT style scrollbar 1331 --enable-next-scroll enable NeXT style scrollbar
1332 --enable-xterm-scroll enable Xterm style scrollbar 1332 --enable-xterm-scroll enable Xterm style scrollbar
1333 --enable-perl enable embedded perl interpreter 1333 --enable-perl enable embedded perl interpreter
1335 --enable-xim XIM (X Input Method) protocol support 1335 --enable-xim XIM (X Input Method) protocol support
1336 --disable-backspace-key disable handling of the backspace key 1336 --disable-backspace-key disable handling of the backspace key
1337 --disable-delete-key disable handling of the delete key 1337 --disable-delete-key disable handling of the delete key
1338 --disable-resources disable all resource checking 1338 --disable-resources disable all resource checking
1339 --enable-8bitctrls enable 8 bit control sequences (not recommended) 1339 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1340 --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)
1341 --disable-swapscreen disable swap screen support 1341 --disable-swapscreen disable swap screen support
1342 --enable-iso14755 enable support for extended ISO 14755 modes 1342 --enable-iso14755 enable support for extended ISO 14755 modes
1343 --enable-frills enable support for rarely used features 1343 --enable-frills enable support for rarely used features
1344 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 1344 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1345 --enable-selectionscrolling enable scrolling during selections 1345 --enable-selectionscrolling enable scrolling during selections
1346 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 1346 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1347 --enable-slipwheeling enable slip wheel scrolling (requires previous) 1347 --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel)
1348 --enable-smart-resize enable smart growth/shrink behaviour 1348 --enable-smart-resize enable smart growth/shrink behaviour
1349 --enable-text-blink enable blinking text 1349 --enable-text-blink enable blinking text
1350 --enable-pointer-blank enable pointer blank when typing or inactive pointer 1350 --enable-pointer-blank enable pointer blank when typing or inactive pointer
1351 --enable-utmp enable utmp (utmpx) support 1351 --enable-utmp enable utmp (utmpx) support
1352 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) 1352 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1354 1354
1355Optional Packages: 1355Optional Packages:
1356 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1356 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1357 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1357 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1358 --with-afterimage-config=DIR use libAfterImage config script in DIR 1358 --with-afterimage-config=DIR use libAfterImage config script in DIR
1359 --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)
1360 --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)
1361 --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)
1362 --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)
1363 --with-term=NAME set the terminal to NAME (default: rxvt) 1363 --with-term=NAME set the terminal to NAME (default: rxvt)
1364 --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
1373 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
1374 you have headers in a nonstandard directory <include dir> 1374 you have headers in a nonstandard directory <include dir>
1375 CXX C++ compiler command 1375 CXX C++ compiler command
1376 CXXFLAGS C++ compiler flags 1376 CXXFLAGS C++ compiler flags
1377 CPP C preprocessor 1377 CPP C preprocessor
1378 CXXCPP C++ preprocessor
1378 XMKMF Path to xmkmf, Makefile generator for X Window System 1379 XMKMF Path to xmkmf, Makefile generator for X Window System
1379 CXXCPP C++ preprocessor
1380 1380
1381Use 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
1382it to find libraries and programs with nonstandard names/locations. 1382it to find libraries and programs with nonstandard names/locations.
1383 1383
1384_ACEOF 1384_ACEOF
1920 1920
1921 1921
1922 1922
1923VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1923VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1924DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1924DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1925
1925echo "" 1926echo ""
1926echo "configuring for rxvt $VERSION" 1927echo "configuring for rxvt $VERSION"
1927echo "" 1928echo ""
1928 1929
1929orig_CXXFLAGS="$CXXFLAGS" 1930orig_CXXFLAGS="$CXXFLAGS"
3870LINKER=$LINKER 3871LINKER=$LINKER
3871 3872
3872 3873
3873if test -z "$orig_CXXFLAGS"; then 3874if test -z "$orig_CXXFLAGS"; then
3874 if test x$GCC = xyes && test "x$GXX" = xyes; then 3875 if test x$GCC = xyes && test "x$GXX" = xyes; then
3875 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" 3876 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs"
3876 cat >conftest.$ac_ext <<_ACEOF 3877 cat >conftest.$ac_ext <<_ACEOF
3877/* confdefs.h. */ 3878/* confdefs.h. */
3878_ACEOF 3879_ACEOF
3879cat confdefs.h >>conftest.$ac_ext 3880cat confdefs.h >>conftest.$ac_ext
3880cat >>conftest.$ac_ext <<_ACEOF 3881cat >>conftest.$ac_ext <<_ACEOF
4393 4394
4394 4395
4395 4396
4396support_frills=yes 4397support_frills=yes
4397support_inheritpixmap=yes 4398support_inheritpixmap=yes
4398support_tinting=yes
4399support_fading=yes 4399support_fading=yes
4400support_keepscrolling=yes 4400support_keepscrolling=yes
4401support_selectionscrolling=yes 4401support_selectionscrolling=yes
4402support_mousewheel=yes 4402support_mousewheel=yes
4403support_mouseslipwheel=yes 4403support_mouseslipwheel=yes
4434if test "${enable_everything+set}" = set; then 4434if test "${enable_everything+set}" = set; then
4435 enableval=$enable_everything; 4435 enableval=$enable_everything;
4436 if test x$enableval = xno; then 4436 if test x$enableval = xno; then
4437 support_frills=no 4437 support_frills=no
4438 support_inheritpixmap=no 4438 support_inheritpixmap=no
4439 support_tinting=no
4440 support_fading=no 4439 support_fading=no
4441 support_keepscrolling=no 4440 support_keepscrolling=no
4442 support_selectionscrolling=no 4441 support_selectionscrolling=no
4443 support_lastlog=no 4442 support_lastlog=no
4444 support_mousewheel=no 4443 support_mousewheel=no
4464 codesets= 4463 codesets=
4465 fi 4464 fi
4466 if test x$enableval = xyes; then 4465 if test x$enableval = xyes; then
4467 support_frills=yes 4466 support_frills=yes
4468 support_inheritpixmap=yes 4467 support_inheritpixmap=yes
4469 support_tinting=yes
4470 support_fading=yes 4468 support_fading=yes
4471 support_keepscrolling=yes 4469 support_keepscrolling=yes
4472 support_selectionscrolling=yes 4470 support_selectionscrolling=yes
4473 support_lastlog=yes 4471 support_lastlog=yes
4474 support_mousewheel=yes 4472 support_mousewheel=yes
4495 fi 4493 fi
4496 4494
4497fi 4495fi
4498 4496
4499 4497
4498WARNINGS=no
4499# Check whether --enable-warnings was given.
4500if test "${enable_warnings+set}" = set; then
4501 enableval=$enable_warnings; if test x$enableval = xyes; then
4502 WARNINGS=yes
4503 fi
4504fi
4505
4506if test x$GXX = xyes; then
4507 if test $WARNINGS = yes; then
4508 save_CXXFLAGS="$CXXFLAGS"
4509 CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-non-virtual-dtor"
4510 cat >conftest.$ac_ext <<_ACEOF
4511/* confdefs.h. */
4512_ACEOF
4513cat confdefs.h >>conftest.$ac_ext
4514cat >>conftest.$ac_ext <<_ACEOF
4515/* end confdefs.h. */
4516
4517int
4518main ()
4519{
4520
4521 ;
4522 return 0;
4523}
4524_ACEOF
4525rm -f conftest.$ac_objext
4526if { (ac_try="$ac_compile"
4527case "(($ac_try" in
4528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4529 *) ac_try_echo=$ac_try;;
4530esac
4531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4532 (eval "$ac_compile") 2>conftest.er1
4533 ac_status=$?
4534 grep -v '^ *+' conftest.er1 >conftest.err
4535 rm -f conftest.er1
4536 cat conftest.err >&5
4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); } && {
4539 test -z "$ac_cxx_werror_flag" ||
4540 test ! -s conftest.err
4541 } && test -s conftest.$ac_objext; then
4542 :
4543else
4544 echo "$as_me: failed program was:" >&5
4545sed 's/^/| /' conftest.$ac_ext >&5
4546
4547 CXXFLAGS="$save_CXXFLAGS"
4548fi
4549
4550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4551 else
4552 CXXFLAGS="$CXXFLAGS -w"
4553 fi
4554fi
4555
4500# Check whether --enable-unicode3 was given. 4556# Check whether --enable-unicode3 was given.
4501if test "${enable_unicode3+set}" = set; then 4557if test "${enable_unicode3+set}" = set; then
4502 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then 4558 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then
4503 support_unicode3=$enableval 4559 support_unicode3=$enableval
4504 fi 4560 fi
4549 4605
4550# Check whether --enable-transparency was given. 4606# Check whether --enable-transparency was given.
4551if test "${enable_transparency+set}" = set; then 4607if test "${enable_transparency+set}" = set; then
4552 enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then 4608 enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then
4553 support_inheritpixmap=$enableval 4609 support_inheritpixmap=$enableval
4554 fi
4555fi
4556
4557
4558# Check whether --enable-tinting was given.
4559if test "${enable_tinting+set}" = set; then
4560 enableval=$enable_tinting; if test x$enableval = xyes -o x$enableval = xno; then
4561 support_tinting=$enableval
4562 fi 4610 fi
4563fi 4611fi
4564 4612
4565 4613
4566# Check whether --enable-fading was given. 4614# Check whether --enable-fading was given.
4841#define RXVT_TERMINFO "$withval" 4889#define RXVT_TERMINFO "$withval"
4842_ACEOF 4890_ACEOF
4843 terminfo="$withval" 4891 terminfo="$withval"
4844 fi 4892 fi
4845fi 4893fi
4894
4895
4896
4897LIBEV_M4_AVOID_LIBRT=1
4898
4899ac_ext=cpp
4900ac_cpp='$CXXCPP $CPPFLAGS'
4901ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4902ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4903ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4904{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4905echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4906if test -z "$CXXCPP"; then
4907 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4908 echo $ECHO_N "(cached) $ECHO_C" >&6
4909else
4910 # Double quotes because CXXCPP needs to be expanded
4911 for CXXCPP in "$CXX -E" "/lib/cpp"
4912 do
4913 ac_preproc_ok=false
4914for ac_cxx_preproc_warn_flag in '' yes
4915do
4916 # Use a header file that comes with gcc, so configuring glibc
4917 # with a fresh cross-compiler works.
4918 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4919 # <limits.h> exists even on freestanding compilers.
4920 # On the NeXT, cc -E runs the code through the compiler's parser,
4921 # not just through cpp. "Syntax error" is here to catch this case.
4922 cat >conftest.$ac_ext <<_ACEOF
4923/* confdefs.h. */
4924_ACEOF
4925cat confdefs.h >>conftest.$ac_ext
4926cat >>conftest.$ac_ext <<_ACEOF
4927/* end confdefs.h. */
4928#ifdef __STDC__
4929# include <limits.h>
4930#else
4931# include <assert.h>
4932#endif
4933 Syntax error
4934_ACEOF
4935if { (ac_try="$ac_cpp conftest.$ac_ext"
4936case "(($ac_try" in
4937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4938 *) ac_try_echo=$ac_try;;
4939esac
4940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4942 ac_status=$?
4943 grep -v '^ *+' conftest.er1 >conftest.err
4944 rm -f conftest.er1
4945 cat conftest.err >&5
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); } >/dev/null && {
4948 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4949 test ! -s conftest.err
4950 }; then
4951 :
4952else
4953 echo "$as_me: failed program was:" >&5
4954sed 's/^/| /' conftest.$ac_ext >&5
4955
4956 # Broken: fails on valid input.
4957continue
4958fi
4959
4960rm -f conftest.err conftest.$ac_ext
4961
4962 # OK, works on sane cases. Now check whether nonexistent headers
4963 # can be detected and how.
4964 cat >conftest.$ac_ext <<_ACEOF
4965/* confdefs.h. */
4966_ACEOF
4967cat confdefs.h >>conftest.$ac_ext
4968cat >>conftest.$ac_ext <<_ACEOF
4969/* end confdefs.h. */
4970#include <ac_nonexistent.h>
4971_ACEOF
4972if { (ac_try="$ac_cpp conftest.$ac_ext"
4973case "(($ac_try" in
4974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4975 *) ac_try_echo=$ac_try;;
4976esac
4977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4979 ac_status=$?
4980 grep -v '^ *+' conftest.er1 >conftest.err
4981 rm -f conftest.er1
4982 cat conftest.err >&5
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); } >/dev/null && {
4985 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4986 test ! -s conftest.err
4987 }; then
4988 # Broken: success on invalid input.
4989continue
4990else
4991 echo "$as_me: failed program was:" >&5
4992sed 's/^/| /' conftest.$ac_ext >&5
4993
4994 # Passes both tests.
4995ac_preproc_ok=:
4996break
4997fi
4998
4999rm -f conftest.err conftest.$ac_ext
5000
5001done
5002# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5003rm -f conftest.err conftest.$ac_ext
5004if $ac_preproc_ok; then
5005 break
5006fi
5007
5008 done
5009 ac_cv_prog_CXXCPP=$CXXCPP
5010
5011fi
5012 CXXCPP=$ac_cv_prog_CXXCPP
5013else
5014 ac_cv_prog_CXXCPP=$CXXCPP
5015fi
5016{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5017echo "${ECHO_T}$CXXCPP" >&6; }
5018ac_preproc_ok=false
5019for ac_cxx_preproc_warn_flag in '' yes
5020do
5021 # Use a header file that comes with gcc, so configuring glibc
5022 # with a fresh cross-compiler works.
5023 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5024 # <limits.h> exists even on freestanding compilers.
5025 # On the NeXT, cc -E runs the code through the compiler's parser,
5026 # not just through cpp. "Syntax error" is here to catch this case.
5027 cat >conftest.$ac_ext <<_ACEOF
5028/* confdefs.h. */
5029_ACEOF
5030cat confdefs.h >>conftest.$ac_ext
5031cat >>conftest.$ac_ext <<_ACEOF
5032/* end confdefs.h. */
5033#ifdef __STDC__
5034# include <limits.h>
5035#else
5036# include <assert.h>
5037#endif
5038 Syntax error
5039_ACEOF
5040if { (ac_try="$ac_cpp conftest.$ac_ext"
5041case "(($ac_try" in
5042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5043 *) ac_try_echo=$ac_try;;
5044esac
5045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5047 ac_status=$?
5048 grep -v '^ *+' conftest.er1 >conftest.err
5049 rm -f conftest.er1
5050 cat conftest.err >&5
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); } >/dev/null && {
5053 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5054 test ! -s conftest.err
5055 }; then
5056 :
5057else
5058 echo "$as_me: failed program was:" >&5
5059sed 's/^/| /' conftest.$ac_ext >&5
5060
5061 # Broken: fails on valid input.
5062continue
5063fi
5064
5065rm -f conftest.err conftest.$ac_ext
5066
5067 # OK, works on sane cases. Now check whether nonexistent headers
5068 # can be detected and how.
5069 cat >conftest.$ac_ext <<_ACEOF
5070/* confdefs.h. */
5071_ACEOF
5072cat confdefs.h >>conftest.$ac_ext
5073cat >>conftest.$ac_ext <<_ACEOF
5074/* end confdefs.h. */
5075#include <ac_nonexistent.h>
5076_ACEOF
5077if { (ac_try="$ac_cpp conftest.$ac_ext"
5078case "(($ac_try" in
5079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5080 *) ac_try_echo=$ac_try;;
5081esac
5082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5084 ac_status=$?
5085 grep -v '^ *+' conftest.er1 >conftest.err
5086 rm -f conftest.er1
5087 cat conftest.err >&5
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); } >/dev/null && {
5090 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5091 test ! -s conftest.err
5092 }; then
5093 # Broken: success on invalid input.
5094continue
5095else
5096 echo "$as_me: failed program was:" >&5
5097sed 's/^/| /' conftest.$ac_ext >&5
5098
5099 # Passes both tests.
5100ac_preproc_ok=:
5101break
5102fi
5103
5104rm -f conftest.err conftest.$ac_ext
5105
5106done
5107# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5108rm -f conftest.err conftest.$ac_ext
5109if $ac_preproc_ok; then
5110 :
5111else
5112 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5113See \`config.log' for more details." >&5
5114echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5115See \`config.log' for more details." >&2;}
5116 { (exit 1); exit 1; }; }
5117fi
5118
5119ac_ext=cpp
5120ac_cpp='$CXXCPP $CPPFLAGS'
5121ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5122ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5123ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5124
5125
5126{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5127echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5128if test "${ac_cv_header_stdc+set}" = set; then
5129 echo $ECHO_N "(cached) $ECHO_C" >&6
5130else
5131 cat >conftest.$ac_ext <<_ACEOF
5132/* confdefs.h. */
5133_ACEOF
5134cat confdefs.h >>conftest.$ac_ext
5135cat >>conftest.$ac_ext <<_ACEOF
5136/* end confdefs.h. */
5137#include <stdlib.h>
5138#include <stdarg.h>
5139#include <string.h>
5140#include <float.h>
5141
5142int
5143main ()
5144{
5145
5146 ;
5147 return 0;
5148}
5149_ACEOF
5150rm -f conftest.$ac_objext
5151if { (ac_try="$ac_compile"
5152case "(($ac_try" in
5153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5154 *) ac_try_echo=$ac_try;;
5155esac
5156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5157 (eval "$ac_compile") 2>conftest.er1
5158 ac_status=$?
5159 grep -v '^ *+' conftest.er1 >conftest.err
5160 rm -f conftest.er1
5161 cat conftest.err >&5
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163 (exit $ac_status); } && {
5164 test -z "$ac_cxx_werror_flag" ||
5165 test ! -s conftest.err
5166 } && test -s conftest.$ac_objext; then
5167 ac_cv_header_stdc=yes
5168else
5169 echo "$as_me: failed program was:" >&5
5170sed 's/^/| /' conftest.$ac_ext >&5
5171
5172 ac_cv_header_stdc=no
5173fi
5174
5175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5176
5177if test $ac_cv_header_stdc = yes; then
5178 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5179 cat >conftest.$ac_ext <<_ACEOF
5180/* confdefs.h. */
5181_ACEOF
5182cat confdefs.h >>conftest.$ac_ext
5183cat >>conftest.$ac_ext <<_ACEOF
5184/* end confdefs.h. */
5185#include <string.h>
5186
5187_ACEOF
5188if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5189 $EGREP "memchr" >/dev/null 2>&1; then
5190 :
5191else
5192 ac_cv_header_stdc=no
5193fi
5194rm -f conftest*
5195
5196fi
5197
5198if test $ac_cv_header_stdc = yes; then
5199 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5200 cat >conftest.$ac_ext <<_ACEOF
5201/* confdefs.h. */
5202_ACEOF
5203cat confdefs.h >>conftest.$ac_ext
5204cat >>conftest.$ac_ext <<_ACEOF
5205/* end confdefs.h. */
5206#include <stdlib.h>
5207
5208_ACEOF
5209if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5210 $EGREP "free" >/dev/null 2>&1; then
5211 :
5212else
5213 ac_cv_header_stdc=no
5214fi
5215rm -f conftest*
5216
5217fi
5218
5219if test $ac_cv_header_stdc = yes; then
5220 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5221 if test "$cross_compiling" = yes; then
5222 :
5223else
5224 cat >conftest.$ac_ext <<_ACEOF
5225/* confdefs.h. */
5226_ACEOF
5227cat confdefs.h >>conftest.$ac_ext
5228cat >>conftest.$ac_ext <<_ACEOF
5229/* end confdefs.h. */
5230#include <ctype.h>
5231#include <stdlib.h>
5232#if ((' ' & 0x0FF) == 0x020)
5233# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5234# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5235#else
5236# define ISLOWER(c) \
5237 (('a' <= (c) && (c) <= 'i') \
5238 || ('j' <= (c) && (c) <= 'r') \
5239 || ('s' <= (c) && (c) <= 'z'))
5240# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5241#endif
5242
5243#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5244int
5245main ()
5246{
5247 int i;
5248 for (i = 0; i < 256; i++)
5249 if (XOR (islower (i), ISLOWER (i))
5250 || toupper (i) != TOUPPER (i))
5251 return 2;
5252 return 0;
5253}
5254_ACEOF
5255rm -f conftest$ac_exeext
5256if { (ac_try="$ac_link"
5257case "(($ac_try" in
5258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5259 *) ac_try_echo=$ac_try;;
5260esac
5261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5262 (eval "$ac_link") 2>&5
5263 ac_status=$?
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5266 { (case "(($ac_try" in
5267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5268 *) ac_try_echo=$ac_try;;
5269esac
5270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5271 (eval "$ac_try") 2>&5
5272 ac_status=$?
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); }; }; then
5275 :
5276else
5277 echo "$as_me: program exited with status $ac_status" >&5
5278echo "$as_me: failed program was:" >&5
5279sed 's/^/| /' conftest.$ac_ext >&5
5280
5281( exit $ac_status )
5282ac_cv_header_stdc=no
5283fi
5284rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5285fi
5286
5287
5288fi
5289fi
5290{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5291echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5292if test $ac_cv_header_stdc = yes; then
5293
5294cat >>confdefs.h <<\_ACEOF
5295#define STDC_HEADERS 1
5296_ACEOF
5297
5298fi
5299
5300# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5311 inttypes.h stdint.h unistd.h
5312do
5313as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5314{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5315echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5316if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5318else
5319 cat >conftest.$ac_ext <<_ACEOF
5320/* confdefs.h. */
5321_ACEOF
5322cat confdefs.h >>conftest.$ac_ext
5323cat >>conftest.$ac_ext <<_ACEOF
5324/* end confdefs.h. */
5325$ac_includes_default
5326
5327#include <$ac_header>
5328_ACEOF
5329rm -f conftest.$ac_objext
5330if { (ac_try="$ac_compile"
5331case "(($ac_try" in
5332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5333 *) ac_try_echo=$ac_try;;
5334esac
5335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5336 (eval "$ac_compile") 2>conftest.er1
5337 ac_status=$?
5338 grep -v '^ *+' conftest.er1 >conftest.err
5339 rm -f conftest.er1
5340 cat conftest.err >&5
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); } && {
5343 test -z "$ac_cxx_werror_flag" ||
5344 test ! -s conftest.err
5345 } && test -s conftest.$ac_objext; then
5346 eval "$as_ac_Header=yes"
5347else
5348 echo "$as_me: failed program was:" >&5
5349sed 's/^/| /' conftest.$ac_ext >&5
5350
5351 eval "$as_ac_Header=no"
5352fi
5353
5354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5355fi
5356ac_res=`eval echo '${'$as_ac_Header'}'`
5357 { echo "$as_me:$LINENO: result: $ac_res" >&5
5358echo "${ECHO_T}$ac_res" >&6; }
5359if test `eval echo '${'$as_ac_Header'}'` = yes; then
5360 cat >>confdefs.h <<_ACEOF
5361#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5362_ACEOF
5363
5364fi
5365
5366done
5367
5368
5369
5370
5371
5372
5373
5374
5375for ac_header in sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h
5376do
5377as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5378if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5379 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5380echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5381if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5382 echo $ECHO_N "(cached) $ECHO_C" >&6
5383fi
5384ac_res=`eval echo '${'$as_ac_Header'}'`
5385 { echo "$as_me:$LINENO: result: $ac_res" >&5
5386echo "${ECHO_T}$ac_res" >&6; }
5387else
5388 # Is the header compilable?
5389{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5390echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5391cat >conftest.$ac_ext <<_ACEOF
5392/* confdefs.h. */
5393_ACEOF
5394cat confdefs.h >>conftest.$ac_ext
5395cat >>conftest.$ac_ext <<_ACEOF
5396/* end confdefs.h. */
5397$ac_includes_default
5398#include <$ac_header>
5399_ACEOF
5400rm -f conftest.$ac_objext
5401if { (ac_try="$ac_compile"
5402case "(($ac_try" in
5403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5404 *) ac_try_echo=$ac_try;;
5405esac
5406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5407 (eval "$ac_compile") 2>conftest.er1
5408 ac_status=$?
5409 grep -v '^ *+' conftest.er1 >conftest.err
5410 rm -f conftest.er1
5411 cat conftest.err >&5
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); } && {
5414 test -z "$ac_cxx_werror_flag" ||
5415 test ! -s conftest.err
5416 } && test -s conftest.$ac_objext; then
5417 ac_header_compiler=yes
5418else
5419 echo "$as_me: failed program was:" >&5
5420sed 's/^/| /' conftest.$ac_ext >&5
5421
5422 ac_header_compiler=no
5423fi
5424
5425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5426{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5427echo "${ECHO_T}$ac_header_compiler" >&6; }
5428
5429# Is the header present?
5430{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5431echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5432cat >conftest.$ac_ext <<_ACEOF
5433/* confdefs.h. */
5434_ACEOF
5435cat confdefs.h >>conftest.$ac_ext
5436cat >>conftest.$ac_ext <<_ACEOF
5437/* end confdefs.h. */
5438#include <$ac_header>
5439_ACEOF
5440if { (ac_try="$ac_cpp conftest.$ac_ext"
5441case "(($ac_try" in
5442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5443 *) ac_try_echo=$ac_try;;
5444esac
5445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5447 ac_status=$?
5448 grep -v '^ *+' conftest.er1 >conftest.err
5449 rm -f conftest.er1
5450 cat conftest.err >&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); } >/dev/null && {
5453 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5454 test ! -s conftest.err
5455 }; then
5456 ac_header_preproc=yes
5457else
5458 echo "$as_me: failed program was:" >&5
5459sed 's/^/| /' conftest.$ac_ext >&5
5460
5461 ac_header_preproc=no
5462fi
5463
5464rm -f conftest.err conftest.$ac_ext
5465{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5466echo "${ECHO_T}$ac_header_preproc" >&6; }
5467
5468# So? What about this header?
5469case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5470 yes:no: )
5471 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5472echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5474echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5475 ac_header_preproc=yes
5476 ;;
5477 no:yes:* )
5478 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5479echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5480 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5481echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5482 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5483echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5484 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5485echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5487echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5488 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5489echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5490
5491 ;;
5492esac
5493{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5494echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5495if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5496 echo $ECHO_N "(cached) $ECHO_C" >&6
5497else
5498 eval "$as_ac_Header=\$ac_header_preproc"
5499fi
5500ac_res=`eval echo '${'$as_ac_Header'}'`
5501 { echo "$as_me:$LINENO: result: $ac_res" >&5
5502echo "${ECHO_T}$ac_res" >&6; }
5503
5504fi
5505if test `eval echo '${'$as_ac_Header'}'` = yes; then
5506 cat >>confdefs.h <<_ACEOF
5507#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5508_ACEOF
5509
5510fi
5511
5512done
5513
5514
5515
5516
5517
5518
5519
5520for ac_func in epoll_ctl kqueue port_create poll select
5521do
5522as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5523{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5524echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5525if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5526 echo $ECHO_N "(cached) $ECHO_C" >&6
5527else
5528 cat >conftest.$ac_ext <<_ACEOF
5529/* confdefs.h. */
5530_ACEOF
5531cat confdefs.h >>conftest.$ac_ext
5532cat >>conftest.$ac_ext <<_ACEOF
5533/* end confdefs.h. */
5534/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5536#define $ac_func innocuous_$ac_func
5537
5538/* System header to define __stub macros and hopefully few prototypes,
5539 which can conflict with char $ac_func (); below.
5540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5541 <limits.h> exists even on freestanding compilers. */
5542
5543#ifdef __STDC__
5544# include <limits.h>
5545#else
5546# include <assert.h>
5547#endif
5548
5549#undef $ac_func
5550
5551/* Override any GCC internal prototype to avoid an error.
5552 Use char because int might match the return type of a GCC
5553 builtin and then its argument prototype would still apply. */
5554#ifdef __cplusplus
5555extern "C"
5556#endif
5557char $ac_func ();
5558/* The GNU C library defines this for functions which it implements
5559 to always fail with ENOSYS. Some functions are actually named
5560 something starting with __ and the normal name is an alias. */
5561#if defined __stub_$ac_func || defined __stub___$ac_func
5562choke me
5563#endif
5564
5565int
5566main ()
5567{
5568return $ac_func ();
5569 ;
5570 return 0;
5571}
5572_ACEOF
5573rm -f conftest.$ac_objext conftest$ac_exeext
5574if { (ac_try="$ac_link"
5575case "(($ac_try" in
5576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5577 *) ac_try_echo=$ac_try;;
5578esac
5579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5580 (eval "$ac_link") 2>conftest.er1
5581 ac_status=$?
5582 grep -v '^ *+' conftest.er1 >conftest.err
5583 rm -f conftest.er1
5584 cat conftest.err >&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); } && {
5587 test -z "$ac_cxx_werror_flag" ||
5588 test ! -s conftest.err
5589 } && test -s conftest$ac_exeext &&
5590 $as_test_x conftest$ac_exeext; then
5591 eval "$as_ac_var=yes"
5592else
5593 echo "$as_me: failed program was:" >&5
5594sed 's/^/| /' conftest.$ac_ext >&5
5595
5596 eval "$as_ac_var=no"
5597fi
5598
5599rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5600 conftest$ac_exeext conftest.$ac_ext
5601fi
5602ac_res=`eval echo '${'$as_ac_var'}'`
5603 { echo "$as_me:$LINENO: result: $ac_res" >&5
5604echo "${ECHO_T}$ac_res" >&6; }
5605if test `eval echo '${'$as_ac_var'}'` = yes; then
5606 cat >>confdefs.h <<_ACEOF
5607#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5608_ACEOF
5609
5610fi
5611done
5612
5613
5614{ echo "$as_me:$LINENO: checking for clock_gettime" >&5
5615echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6; }
5616if test "${ac_cv_func_clock_gettime+set}" = set; then
5617 echo $ECHO_N "(cached) $ECHO_C" >&6
5618else
5619 cat >conftest.$ac_ext <<_ACEOF
5620/* confdefs.h. */
5621_ACEOF
5622cat confdefs.h >>conftest.$ac_ext
5623cat >>conftest.$ac_ext <<_ACEOF
5624/* end confdefs.h. */
5625/* Define clock_gettime to an innocuous variant, in case <limits.h> declares clock_gettime.
5626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5627#define clock_gettime innocuous_clock_gettime
5628
5629/* System header to define __stub macros and hopefully few prototypes,
5630 which can conflict with char clock_gettime (); below.
5631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5632 <limits.h> exists even on freestanding compilers. */
5633
5634#ifdef __STDC__
5635# include <limits.h>
5636#else
5637# include <assert.h>
5638#endif
5639
5640#undef clock_gettime
5641
5642/* Override any GCC internal prototype to avoid an error.
5643 Use char because int might match the return type of a GCC
5644 builtin and then its argument prototype would still apply. */
5645#ifdef __cplusplus
5646extern "C"
5647#endif
5648char clock_gettime ();
5649/* The GNU C library defines this for functions which it implements
5650 to always fail with ENOSYS. Some functions are actually named
5651 something starting with __ and the normal name is an alias. */
5652#if defined __stub_clock_gettime || defined __stub___clock_gettime
5653choke me
5654#endif
5655
5656int
5657main ()
5658{
5659return clock_gettime ();
5660 ;
5661 return 0;
5662}
5663_ACEOF
5664rm -f conftest.$ac_objext conftest$ac_exeext
5665if { (ac_try="$ac_link"
5666case "(($ac_try" in
5667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5668 *) ac_try_echo=$ac_try;;
5669esac
5670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5671 (eval "$ac_link") 2>conftest.er1
5672 ac_status=$?
5673 grep -v '^ *+' conftest.er1 >conftest.err
5674 rm -f conftest.er1
5675 cat conftest.err >&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); } && {
5678 test -z "$ac_cxx_werror_flag" ||
5679 test ! -s conftest.err
5680 } && test -s conftest$ac_exeext &&
5681 $as_test_x conftest$ac_exeext; then
5682 ac_cv_func_clock_gettime=yes
5683else
5684 echo "$as_me: failed program was:" >&5
5685sed 's/^/| /' conftest.$ac_ext >&5
5686
5687 ac_cv_func_clock_gettime=no
5688fi
5689
5690rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5691 conftest$ac_exeext conftest.$ac_ext
5692fi
5693{ echo "$as_me:$LINENO: result: $ac_cv_func_clock_gettime" >&5
5694echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; }
5695if test $ac_cv_func_clock_gettime = yes; then
5696 :
5697else
5698
5699 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
5700
5701{ echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
5702echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
5703if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
5704 echo $ECHO_N "(cached) $ECHO_C" >&6
5705else
5706 ac_check_lib_save_LIBS=$LIBS
5707LIBS="-lrt $LIBS"
5708cat >conftest.$ac_ext <<_ACEOF
5709/* confdefs.h. */
5710_ACEOF
5711cat confdefs.h >>conftest.$ac_ext
5712cat >>conftest.$ac_ext <<_ACEOF
5713/* end confdefs.h. */
5714
5715/* Override any GCC internal prototype to avoid an error.
5716 Use char because int might match the return type of a GCC
5717 builtin and then its argument prototype would still apply. */
5718#ifdef __cplusplus
5719extern "C"
5720#endif
5721char clock_gettime ();
5722int
5723main ()
5724{
5725return clock_gettime ();
5726 ;
5727 return 0;
5728}
5729_ACEOF
5730rm -f conftest.$ac_objext conftest$ac_exeext
5731if { (ac_try="$ac_link"
5732case "(($ac_try" in
5733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5734 *) ac_try_echo=$ac_try;;
5735esac
5736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5737 (eval "$ac_link") 2>conftest.er1
5738 ac_status=$?
5739 grep -v '^ *+' conftest.er1 >conftest.err
5740 rm -f conftest.er1
5741 cat conftest.err >&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } && {
5744 test -z "$ac_cxx_werror_flag" ||
5745 test ! -s conftest.err
5746 } && test -s conftest$ac_exeext &&
5747 $as_test_x conftest$ac_exeext; then
5748 ac_cv_lib_rt_clock_gettime=yes
5749else
5750 echo "$as_me: failed program was:" >&5
5751sed 's/^/| /' conftest.$ac_ext >&5
5752
5753 ac_cv_lib_rt_clock_gettime=no
5754fi
5755
5756rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5757 conftest$ac_exeext conftest.$ac_ext
5758LIBS=$ac_check_lib_save_LIBS
5759fi
5760{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
5761echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
5762if test $ac_cv_lib_rt_clock_gettime = yes; then
5763 cat >>confdefs.h <<_ACEOF
5764#define HAVE_LIBRT 1
5765_ACEOF
5766
5767 LIBS="-lrt $LIBS"
5768
5769fi
5770
5771
5772for ac_func in clock_gettime
5773do
5774as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5775{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5776echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5777if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5778 echo $ECHO_N "(cached) $ECHO_C" >&6
5779else
5780 cat >conftest.$ac_ext <<_ACEOF
5781/* confdefs.h. */
5782_ACEOF
5783cat confdefs.h >>conftest.$ac_ext
5784cat >>conftest.$ac_ext <<_ACEOF
5785/* end confdefs.h. */
5786/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5788#define $ac_func innocuous_$ac_func
5789
5790/* System header to define __stub macros and hopefully few prototypes,
5791 which can conflict with char $ac_func (); below.
5792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5793 <limits.h> exists even on freestanding compilers. */
5794
5795#ifdef __STDC__
5796# include <limits.h>
5797#else
5798# include <assert.h>
5799#endif
5800
5801#undef $ac_func
5802
5803/* Override any GCC internal prototype to avoid an error.
5804 Use char because int might match the return type of a GCC
5805 builtin and then its argument prototype would still apply. */
5806#ifdef __cplusplus
5807extern "C"
5808#endif
5809char $ac_func ();
5810/* The GNU C library defines this for functions which it implements
5811 to always fail with ENOSYS. Some functions are actually named
5812 something starting with __ and the normal name is an alias. */
5813#if defined __stub_$ac_func || defined __stub___$ac_func
5814choke me
5815#endif
5816
5817int
5818main ()
5819{
5820return $ac_func ();
5821 ;
5822 return 0;
5823}
5824_ACEOF
5825rm -f conftest.$ac_objext conftest$ac_exeext
5826if { (ac_try="$ac_link"
5827case "(($ac_try" in
5828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5829 *) ac_try_echo=$ac_try;;
5830esac
5831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5832 (eval "$ac_link") 2>conftest.er1
5833 ac_status=$?
5834 grep -v '^ *+' conftest.er1 >conftest.err
5835 rm -f conftest.er1
5836 cat conftest.err >&5
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); } && {
5839 test -z "$ac_cxx_werror_flag" ||
5840 test ! -s conftest.err
5841 } && test -s conftest$ac_exeext &&
5842 $as_test_x conftest$ac_exeext; then
5843 eval "$as_ac_var=yes"
5844else
5845 echo "$as_me: failed program was:" >&5
5846sed 's/^/| /' conftest.$ac_ext >&5
5847
5848 eval "$as_ac_var=no"
5849fi
5850
5851rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5852 conftest$ac_exeext conftest.$ac_ext
5853fi
5854ac_res=`eval echo '${'$as_ac_var'}'`
5855 { echo "$as_me:$LINENO: result: $ac_res" >&5
5856echo "${ECHO_T}$ac_res" >&6; }
5857if test `eval echo '${'$as_ac_var'}'` = yes; then
5858 cat >>confdefs.h <<_ACEOF
5859#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5860_ACEOF
5861
5862fi
5863done
5864
5865 fi
5866
5867fi
5868
5869
5870
5871{ echo "$as_me:$LINENO: checking for ceil in -lm" >&5
5872echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; }
5873if test "${ac_cv_lib_m_ceil+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5875else
5876 ac_check_lib_save_LIBS=$LIBS
5877LIBS="-lm $LIBS"
5878cat >conftest.$ac_ext <<_ACEOF
5879/* confdefs.h. */
5880_ACEOF
5881cat confdefs.h >>conftest.$ac_ext
5882cat >>conftest.$ac_ext <<_ACEOF
5883/* end confdefs.h. */
5884
5885/* Override any GCC internal prototype to avoid an error.
5886 Use char because int might match the return type of a GCC
5887 builtin and then its argument prototype would still apply. */
5888#ifdef __cplusplus
5889extern "C"
5890#endif
5891char ceil ();
5892int
5893main ()
5894{
5895return ceil ();
5896 ;
5897 return 0;
5898}
5899_ACEOF
5900rm -f conftest.$ac_objext conftest$ac_exeext
5901if { (ac_try="$ac_link"
5902case "(($ac_try" in
5903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5904 *) ac_try_echo=$ac_try;;
5905esac
5906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5907 (eval "$ac_link") 2>conftest.er1
5908 ac_status=$?
5909 grep -v '^ *+' conftest.er1 >conftest.err
5910 rm -f conftest.er1
5911 cat conftest.err >&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); } && {
5914 test -z "$ac_cxx_werror_flag" ||
5915 test ! -s conftest.err
5916 } && test -s conftest$ac_exeext &&
5917 $as_test_x conftest$ac_exeext; then
5918 ac_cv_lib_m_ceil=yes
5919else
5920 echo "$as_me: failed program was:" >&5
5921sed 's/^/| /' conftest.$ac_ext >&5
5922
5923 ac_cv_lib_m_ceil=no
5924fi
5925
5926rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5927 conftest$ac_exeext conftest.$ac_ext
5928LIBS=$ac_check_lib_save_LIBS
5929fi
5930{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5
5931echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6; }
5932if test $ac_cv_lib_m_ceil = yes; then
5933 cat >>confdefs.h <<_ACEOF
5934#define HAVE_LIBM 1
5935_ACEOF
5936
5937 LIBS="-lm $LIBS"
5938
5939fi
5940
5941
5942
5943
4846 5944
4847 5945
4848 5946
4849# Extract the first word of "tic", so it can be a program name with args. 5947# Extract the first word of "tic", so it can be a program name with args.
4850set dummy tic; ac_word=$2 5948set dummy tic; ac_word=$2
4871 fi 5969 fi
4872done 5970done
4873done 5971done
4874IFS=$as_save_IFS 5972IFS=$as_save_IFS
4875 5973
5974 test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":"
4876 ;; 5975 ;;
4877esac 5976esac
4878fi 5977fi
4879TIC=$ac_cv_path_TIC 5978TIC=$ac_cv_path_TIC
4880if test -n "$TIC"; then 5979if test -n "$TIC"; then
4885echo "${ECHO_T}no" >&6; } 5984echo "${ECHO_T}no" >&6; }
4886fi 5985fi
4887 5986
4888 5987
4889 5988
4890
4891
4892ac_ext=cpp
4893ac_cpp='$CXXCPP $CPPFLAGS'
4894ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4895ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4896ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4897{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4898echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4899if test -z "$CXXCPP"; then
4900 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4902else
4903 # Double quotes because CXXCPP needs to be expanded
4904 for CXXCPP in "$CXX -E" "/lib/cpp"
4905 do
4906 ac_preproc_ok=false
4907for ac_cxx_preproc_warn_flag in '' yes
4908do
4909 # Use a header file that comes with gcc, so configuring glibc
4910 # with a fresh cross-compiler works.
4911 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4912 # <limits.h> exists even on freestanding compilers.
4913 # On the NeXT, cc -E runs the code through the compiler's parser,
4914 # not just through cpp. "Syntax error" is here to catch this case.
4915 cat >conftest.$ac_ext <<_ACEOF
4916/* confdefs.h. */
4917_ACEOF
4918cat confdefs.h >>conftest.$ac_ext
4919cat >>conftest.$ac_ext <<_ACEOF
4920/* end confdefs.h. */
4921#ifdef __STDC__
4922# include <limits.h>
4923#else
4924# include <assert.h>
4925#endif
4926 Syntax error
4927_ACEOF
4928if { (ac_try="$ac_cpp conftest.$ac_ext"
4929case "(($ac_try" in
4930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4931 *) ac_try_echo=$ac_try;;
4932esac
4933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4935 ac_status=$?
4936 grep -v '^ *+' conftest.er1 >conftest.err
4937 rm -f conftest.er1
4938 cat conftest.err >&5
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); } >/dev/null && {
4941 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4942 test ! -s conftest.err
4943 }; then
4944 :
4945else
4946 echo "$as_me: failed program was:" >&5
4947sed 's/^/| /' conftest.$ac_ext >&5
4948
4949 # Broken: fails on valid input.
4950continue
4951fi
4952
4953rm -f conftest.err conftest.$ac_ext
4954
4955 # OK, works on sane cases. Now check whether nonexistent headers
4956 # can be detected and how.
4957 cat >conftest.$ac_ext <<_ACEOF
4958/* confdefs.h. */
4959_ACEOF
4960cat confdefs.h >>conftest.$ac_ext
4961cat >>conftest.$ac_ext <<_ACEOF
4962/* end confdefs.h. */
4963#include <ac_nonexistent.h>
4964_ACEOF
4965if { (ac_try="$ac_cpp conftest.$ac_ext"
4966case "(($ac_try" in
4967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4968 *) ac_try_echo=$ac_try;;
4969esac
4970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4972 ac_status=$?
4973 grep -v '^ *+' conftest.er1 >conftest.err
4974 rm -f conftest.er1
4975 cat conftest.err >&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); } >/dev/null && {
4978 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4979 test ! -s conftest.err
4980 }; then
4981 # Broken: success on invalid input.
4982continue
4983else
4984 echo "$as_me: failed program was:" >&5
4985sed 's/^/| /' conftest.$ac_ext >&5
4986
4987 # Passes both tests.
4988ac_preproc_ok=:
4989break
4990fi
4991
4992rm -f conftest.err conftest.$ac_ext
4993
4994done
4995# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4996rm -f conftest.err conftest.$ac_ext
4997if $ac_preproc_ok; then
4998 break
4999fi
5000
5001 done
5002 ac_cv_prog_CXXCPP=$CXXCPP
5003
5004fi
5005 CXXCPP=$ac_cv_prog_CXXCPP
5006else
5007 ac_cv_prog_CXXCPP=$CXXCPP
5008fi
5009{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5010echo "${ECHO_T}$CXXCPP" >&6; }
5011ac_preproc_ok=false
5012for ac_cxx_preproc_warn_flag in '' yes
5013do
5014 # Use a header file that comes with gcc, so configuring glibc
5015 # with a fresh cross-compiler works.
5016 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5017 # <limits.h> exists even on freestanding compilers.
5018 # On the NeXT, cc -E runs the code through the compiler's parser,
5019 # not just through cpp. "Syntax error" is here to catch this case.
5020 cat >conftest.$ac_ext <<_ACEOF
5021/* confdefs.h. */
5022_ACEOF
5023cat confdefs.h >>conftest.$ac_ext
5024cat >>conftest.$ac_ext <<_ACEOF
5025/* end confdefs.h. */
5026#ifdef __STDC__
5027# include <limits.h>
5028#else
5029# include <assert.h>
5030#endif
5031 Syntax error
5032_ACEOF
5033if { (ac_try="$ac_cpp conftest.$ac_ext"
5034case "(($ac_try" in
5035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5036 *) ac_try_echo=$ac_try;;
5037esac
5038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5040 ac_status=$?
5041 grep -v '^ *+' conftest.er1 >conftest.err
5042 rm -f conftest.er1
5043 cat conftest.err >&5
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); } >/dev/null && {
5046 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5047 test ! -s conftest.err
5048 }; then
5049 :
5050else
5051 echo "$as_me: failed program was:" >&5
5052sed 's/^/| /' conftest.$ac_ext >&5
5053
5054 # Broken: fails on valid input.
5055continue
5056fi
5057
5058rm -f conftest.err conftest.$ac_ext
5059
5060 # OK, works on sane cases. Now check whether nonexistent headers
5061 # can be detected and how.
5062 cat >conftest.$ac_ext <<_ACEOF
5063/* confdefs.h. */
5064_ACEOF
5065cat confdefs.h >>conftest.$ac_ext
5066cat >>conftest.$ac_ext <<_ACEOF
5067/* end confdefs.h. */
5068#include <ac_nonexistent.h>
5069_ACEOF
5070if { (ac_try="$ac_cpp conftest.$ac_ext"
5071case "(($ac_try" in
5072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5073 *) ac_try_echo=$ac_try;;
5074esac
5075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5077 ac_status=$?
5078 grep -v '^ *+' conftest.er1 >conftest.err
5079 rm -f conftest.er1
5080 cat conftest.err >&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } >/dev/null && {
5083 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5084 test ! -s conftest.err
5085 }; then
5086 # Broken: success on invalid input.
5087continue
5088else
5089 echo "$as_me: failed program was:" >&5
5090sed 's/^/| /' conftest.$ac_ext >&5
5091
5092 # Passes both tests.
5093ac_preproc_ok=:
5094break
5095fi
5096
5097rm -f conftest.err conftest.$ac_ext
5098
5099done
5100# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5101rm -f conftest.err conftest.$ac_ext
5102if $ac_preproc_ok; then
5103 :
5104else
5105 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5106See \`config.log' for more details." >&5
5107echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5108See \`config.log' for more details." >&2;}
5109 { (exit 1); exit 1; }; }
5110fi
5111
5112ac_ext=cpp
5113ac_cpp='$CXXCPP $CPPFLAGS'
5114ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5115ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5116ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5117 5989
5118 5990
5119{ echo "$as_me:$LINENO: checking for X" >&5 5991{ echo "$as_me:$LINENO: checking for X" >&5
5120echo $ECHO_N "checking for X... $ECHO_C" >&6; } 5992echo $ECHO_N "checking for X... $ECHO_C" >&6; }
5121 5993
6574#define HAVE_SYS_WAIT_H 1 7446#define HAVE_SYS_WAIT_H 1
6575_ACEOF 7447_ACEOF
6576 7448
6577fi 7449fi
6578 7450
6579{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6580echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6581if test "${ac_cv_header_stdc+set}" = set; then
6582 echo $ECHO_N "(cached) $ECHO_C" >&6
6583else
6584 cat >conftest.$ac_ext <<_ACEOF
6585/* confdefs.h. */
6586_ACEOF
6587cat confdefs.h >>conftest.$ac_ext
6588cat >>conftest.$ac_ext <<_ACEOF
6589/* end confdefs.h. */
6590#include <stdlib.h>
6591#include <stdarg.h>
6592#include <string.h>
6593#include <float.h>
6594
6595int
6596main ()
6597{
6598
6599 ;
6600 return 0;
6601}
6602_ACEOF
6603rm -f conftest.$ac_objext
6604if { (ac_try="$ac_compile"
6605case "(($ac_try" in
6606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6607 *) ac_try_echo=$ac_try;;
6608esac
6609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6610 (eval "$ac_compile") 2>conftest.er1
6611 ac_status=$?
6612 grep -v '^ *+' conftest.er1 >conftest.err
6613 rm -f conftest.er1
6614 cat conftest.err >&5
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); } && {
6617 test -z "$ac_cxx_werror_flag" ||
6618 test ! -s conftest.err
6619 } && test -s conftest.$ac_objext; then
6620 ac_cv_header_stdc=yes
6621else
6622 echo "$as_me: failed program was:" >&5
6623sed 's/^/| /' conftest.$ac_ext >&5
6624
6625 ac_cv_header_stdc=no
6626fi
6627
6628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6629
6630if test $ac_cv_header_stdc = yes; then
6631 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6632 cat >conftest.$ac_ext <<_ACEOF
6633/* confdefs.h. */
6634_ACEOF
6635cat confdefs.h >>conftest.$ac_ext
6636cat >>conftest.$ac_ext <<_ACEOF
6637/* end confdefs.h. */
6638#include <string.h>
6639
6640_ACEOF
6641if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6642 $EGREP "memchr" >/dev/null 2>&1; then
6643 :
6644else
6645 ac_cv_header_stdc=no
6646fi
6647rm -f conftest*
6648
6649fi
6650
6651if test $ac_cv_header_stdc = yes; then
6652 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6653 cat >conftest.$ac_ext <<_ACEOF
6654/* confdefs.h. */
6655_ACEOF
6656cat confdefs.h >>conftest.$ac_ext
6657cat >>conftest.$ac_ext <<_ACEOF
6658/* end confdefs.h. */
6659#include <stdlib.h>
6660
6661_ACEOF
6662if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6663 $EGREP "free" >/dev/null 2>&1; then
6664 :
6665else
6666 ac_cv_header_stdc=no
6667fi
6668rm -f conftest*
6669
6670fi
6671
6672if test $ac_cv_header_stdc = yes; then
6673 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6674 if test "$cross_compiling" = yes; then
6675 :
6676else
6677 cat >conftest.$ac_ext <<_ACEOF
6678/* confdefs.h. */
6679_ACEOF
6680cat confdefs.h >>conftest.$ac_ext
6681cat >>conftest.$ac_ext <<_ACEOF
6682/* end confdefs.h. */
6683#include <ctype.h>
6684#include <stdlib.h>
6685#if ((' ' & 0x0FF) == 0x020)
6686# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6687# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6688#else
6689# define ISLOWER(c) \
6690 (('a' <= (c) && (c) <= 'i') \
6691 || ('j' <= (c) && (c) <= 'r') \
6692 || ('s' <= (c) && (c) <= 'z'))
6693# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6694#endif
6695
6696#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6697int
6698main ()
6699{
6700 int i;
6701 for (i = 0; i < 256; i++)
6702 if (XOR (islower (i), ISLOWER (i))
6703 || toupper (i) != TOUPPER (i))
6704 return 2;
6705 return 0;
6706}
6707_ACEOF
6708rm -f conftest$ac_exeext
6709if { (ac_try="$ac_link"
6710case "(($ac_try" in
6711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6712 *) ac_try_echo=$ac_try;;
6713esac
6714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6715 (eval "$ac_link") 2>&5
6716 ac_status=$?
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6719 { (case "(($ac_try" in
6720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6721 *) ac_try_echo=$ac_try;;
6722esac
6723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6724 (eval "$ac_try") 2>&5
6725 ac_status=$?
6726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727 (exit $ac_status); }; }; then
6728 :
6729else
6730 echo "$as_me: program exited with status $ac_status" >&5
6731echo "$as_me: failed program was:" >&5
6732sed 's/^/| /' conftest.$ac_ext >&5
6733
6734( exit $ac_status )
6735ac_cv_header_stdc=no
6736fi
6737rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6738fi
6739
6740
6741fi
6742fi
6743{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6744echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6745if test $ac_cv_header_stdc = yes; then
6746
6747cat >>confdefs.h <<\_ACEOF
6748#define STDC_HEADERS 1
6749_ACEOF
6750
6751fi
6752
6753# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6764 inttypes.h stdint.h unistd.h
6765do
6766as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6767{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6768echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6769if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
6771else
6772 cat >conftest.$ac_ext <<_ACEOF
6773/* confdefs.h. */
6774_ACEOF
6775cat confdefs.h >>conftest.$ac_ext
6776cat >>conftest.$ac_ext <<_ACEOF
6777/* end confdefs.h. */
6778$ac_includes_default
6779
6780#include <$ac_header>
6781_ACEOF
6782rm -f conftest.$ac_objext
6783if { (ac_try="$ac_compile"
6784case "(($ac_try" in
6785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6786 *) ac_try_echo=$ac_try;;
6787esac
6788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6789 (eval "$ac_compile") 2>conftest.er1
6790 ac_status=$?
6791 grep -v '^ *+' conftest.er1 >conftest.err
6792 rm -f conftest.er1
6793 cat conftest.err >&5
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); } && {
6796 test -z "$ac_cxx_werror_flag" ||
6797 test ! -s conftest.err
6798 } && test -s conftest.$ac_objext; then
6799 eval "$as_ac_Header=yes"
6800else
6801 echo "$as_me: failed program was:" >&5
6802sed 's/^/| /' conftest.$ac_ext >&5
6803
6804 eval "$as_ac_Header=no"
6805fi
6806
6807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6808fi
6809ac_res=`eval echo '${'$as_ac_Header'}'`
6810 { echo "$as_me:$LINENO: result: $ac_res" >&5
6811echo "${ECHO_T}$ac_res" >&6; }
6812if test `eval echo '${'$as_ac_Header'}'` = yes; then
6813 cat >>confdefs.h <<_ACEOF
6814#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6815_ACEOF
6816
6817fi
6818
6819done
6820
6821
6822 7451
6823 7452
6824 7453
6825 7454
6826 7455
9588_ACEOF 10217_ACEOF
9589 10218
9590 10219
9591 10220
9592 10221
9593
9594
9595for ac_func in \ 10222for ac_func in unsetenv
9596 unsetenv \
9597 setutent \
9598 on_exit \
9599
9600do 10223do
9601as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10224as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9602{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10225{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9603echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10226echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9604if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10227if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9743 10366
9744 10367
9745 10368
9746 10369
9747for ac_func in \ 10370for ac_func in \
9748 ttyslot \
9749 updwtmp \ 10371 updwtmp \
9750 updwtmpx \ 10372 updwtmpx \
10373 updlastlogx \
9751 10374
9752do 10375do
9753as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10376as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9754{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10377{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9755echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10378echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11176 11799
11177cat >>confdefs.h <<_ACEOF 11800cat >>confdefs.h <<_ACEOF
11178#define LASTLOG_FILE "$path_lastlog" 11801#define LASTLOG_FILE "$path_lastlog"
11179_ACEOF 11802_ACEOF
11180 11803
11181 if test -d "$path_lastlog"; then
11182
11183cat >>confdefs.h <<\_ACEOF
11184#define LASTLOG_IS_DIR 1
11185_ACEOF
11186
11187 fi
11188fi 11804fi
11189 11805
11190{ echo "$as_me:$LINENO: checking where lastlogx is located" >&5 11806{ echo "$as_me:$LINENO: checking where lastlogx is located" >&5
11191echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } 11807echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; }
11192if test "${path_lastlogx+set}" = set; then 11808if test "${path_lastlogx+set}" = set; then
11274 11890
11275fi 11891fi
11276 11892
11277 11893
11278 11894
11279{ echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
11280echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6; }
11281if test "${rxvt_cv_path_ttytab+set}" = set; then
11282 echo $ECHO_N "(cached) $ECHO_C" >&6
11283else
11284 for ttys_file in /etc/ttys /etc/ttytab;
11285do
11286 if test -f "$ttys_file" ; then
11287 rxvt_cv_path_ttytab=$ttys_file
11288 break
11289 fi
11290done
11291 11895
11292fi
11293{ echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
11294echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6; }
11295if test x$rxvt_cv_path_ttytab != x; then
11296
11297cat >>confdefs.h <<_ACEOF
11298#define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
11299_ACEOF
11300
11301fi
11302
11303
11304ac_save_LIBS=$LIBS 11896save_LIBS=$LIBS
11305ac_save_CFLAGS=$CFLAGS 11897save_CFLAGS=$CFLAGS
11306CFLAGS="$CFLAGS $X_CFLAGS" 11898CFLAGS="$CFLAGS $X_CFLAGS"
11307LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 11899LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
11900if test x$support_xim = xyes; then
11308{ echo "$as_me:$LINENO: checking for working Xlocale" >&5 11901 { echo "$as_me:$LINENO: checking for working Xlocale" >&5
11309echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } 11902echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; }
11310if test "${rxvt_cv_func_xlocale+set}" = set; then 11903if test "${rxvt_cv_func_xlocale+set}" = set; then
11311 echo $ECHO_N "(cached) $ECHO_C" >&6 11904 echo $ECHO_N "(cached) $ECHO_C" >&6
11312else 11905else
11313 if test "$cross_compiling" = yes; then 11906 if test "$cross_compiling" = yes; then
11314 : 11907 :
11315else 11908else
11316 cat >conftest.$ac_ext <<_ACEOF 11909 cat >conftest.$ac_ext <<_ACEOF
11317/* confdefs.h. */ 11910/* confdefs.h. */
11318_ACEOF 11911_ACEOF
11319cat confdefs.h >>conftest.$ac_ext 11912cat confdefs.h >>conftest.$ac_ext
11320cat >>conftest.$ac_ext <<_ACEOF 11913cat >>conftest.$ac_ext <<_ACEOF
11321/* end confdefs.h. */ 11914/* end confdefs.h. */
11322#include <X11/Xlib.h> 11915#include <X11/Xlib.h>
11323#include <stdlib.h> 11916 #include <stdlib.h>
11324main() { 11917 main() {
11325char *p; 11918 char *p;
11326if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) 11919 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
11327exit (XSupportsLocale() ? 0 : 1); 11920 exit (XSupportsLocale() ? 0 : 1);
11328else 11921 else
11329exit (1);} 11922 exit (1);}
11330_ACEOF 11923_ACEOF
11331rm -f conftest$ac_exeext 11924rm -f conftest$ac_exeext
11332if { (ac_try="$ac_link" 11925if { (ac_try="$ac_link"
11333case "(($ac_try" in 11926case "(($ac_try" in
11334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11347 (eval "$ac_try") 2>&5 11940 (eval "$ac_try") 2>&5
11348 ac_status=$? 11941 ac_status=$?
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); }; }; then 11943 (exit $ac_status); }; }; then
11351 rxvt_cv_func_xlocale=yes 11944 rxvt_cv_func_xlocale=yes
11352else 11945else
11353 echo "$as_me: program exited with status $ac_status" >&5 11946 echo "$as_me: program exited with status $ac_status" >&5
11354echo "$as_me: failed program was:" >&5 11947echo "$as_me: failed program was:" >&5
11355sed 's/^/| /' conftest.$ac_ext >&5 11948sed 's/^/| /' conftest.$ac_ext >&5
11356 11949
11362 11955
11363 11956
11364fi 11957fi
11365{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 11958{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
11366echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; } 11959echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; }
11367if test x$support_xim = xyes; then
11368 if test x$rxvt_cv_func_xlocale = xyes; then 11960 if test x$rxvt_cv_func_xlocale = xyes; then
11369 11961
11370cat >>confdefs.h <<\_ACEOF 11962cat >>confdefs.h <<\_ACEOF
11371#define USE_XIM 1 11963#define USE_XIM 1
11372_ACEOF 11964_ACEOF
11373 11965
11966 { echo "$as_me:$LINENO: checking for broken XIM callback" >&5
11967echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; }
11968if test "${rxvt_broken_ximcb+set}" = set; then
11969 echo $ECHO_N "(cached) $ECHO_C" >&6
11970else
11971 cat >conftest.$ac_ext <<_ACEOF
11972
11973 #include <X11/Xlib.h>
11974
11975 void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
11976
11977 void f() {
11978 XIMCallback cb;
11979 cb.callback = im_destroy_cb;
11980 }
11981
11982_ACEOF
11983rm -f conftest.$ac_objext
11984if { (ac_try="$ac_compile"
11985case "(($ac_try" in
11986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11987 *) ac_try_echo=$ac_try;;
11988esac
11989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11990 (eval "$ac_compile") 2>conftest.er1
11991 ac_status=$?
11992 grep -v '^ *+' conftest.er1 >conftest.err
11993 rm -f conftest.er1
11994 cat conftest.err >&5
11995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996 (exit $ac_status); } && {
11997 test -z "$ac_cxx_werror_flag" ||
11998 test ! -s conftest.err
11999 } && test -s conftest.$ac_objext; then
12000 rxvt_broken_ximcb=yes
12001else
12002 echo "$as_me: failed program was:" >&5
12003sed 's/^/| /' conftest.$ac_ext >&5
12004
12005 rxvt_broken_ximcb=no
12006fi
12007
12008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12009fi
12010{ echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
12011echo "${ECHO_T}$rxvt_broken_ximcb" >&6; }
12012
12013 if test x$rxvt_broken_ximcb = xyes; then
12014
12015cat >>confdefs.h <<\_ACEOF
12016#define XIMCB_PROTO_BROKEN 1
12017_ACEOF
12018
12019 fi
11374 fi 12020 fi
11375fi 12021fi
11376 12022
11377{ echo "$as_me:$LINENO: checking for working X setlocale" >&5 12023{ echo "$as_me:$LINENO: checking for working X setlocale" >&5
11378echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; } 12024echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; }
11431cat >>confdefs.h <<\_ACEOF 12077cat >>confdefs.h <<\_ACEOF
11432#define HAVE_XSETLOCALE 1 12078#define HAVE_XSETLOCALE 1
11433_ACEOF 12079_ACEOF
11434 12080
11435fi 12081fi
11436LIBS=$ac_save_LIBS 12082LIBS=$save_LIBS
11437CFLAGS=$ac_save_CFLAGS 12083CFLAGS=$save_CFLAGS
11438 12084
11439{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5 12085{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5
11440echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } 12086echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; }
11441if test "${rxvt_cv_func_setlocale+set}" = set; then 12087if test "${rxvt_cv_func_setlocale+set}" = set; then
11442 echo $ECHO_N "(cached) $ECHO_C" >&6 12088 echo $ECHO_N "(cached) $ECHO_C" >&6
11645 { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5 12291 { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5
11646echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} 12292echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;}
11647 { (exit 1); exit 1; }; } 12293 { (exit 1); exit 1; }; }
11648fi 12294fi
11649 12295
11650
11651{ echo "$as_me:$LINENO: checking for broken XIM callback" >&5
11652echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; }
11653if test "${rxvt_broken_ximcb+set}" = set; then
11654 echo $ECHO_N "(cached) $ECHO_C" >&6
11655else
11656 cat >conftest.$ac_ext <<_ACEOF
11657
11658#include <X11/Xlib.h>
11659
11660void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
11661
11662void f() {
11663 XIMCallback cb;
11664 cb.callback = im_destroy_cb;
11665}
11666
11667_ACEOF
11668rm -f conftest.$ac_objext
11669if { (ac_try="$ac_compile"
11670case "(($ac_try" in
11671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11672 *) ac_try_echo=$ac_try;;
11673esac
11674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11675 (eval "$ac_compile") 2>conftest.er1
11676 ac_status=$?
11677 grep -v '^ *+' conftest.er1 >conftest.err
11678 rm -f conftest.er1
11679 cat conftest.err >&5
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); } && {
11682 test -z "$ac_cxx_werror_flag" ||
11683 test ! -s conftest.err
11684 } && test -s conftest.$ac_objext; then
11685 rxvt_broken_ximcb=yes
11686else
11687 echo "$as_me: failed program was:" >&5
11688sed 's/^/| /' conftest.$ac_ext >&5
11689
11690 rxvt_broken_ximcb=no
11691fi
11692
11693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11694fi
11695{ echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
11696echo "${ECHO_T}$rxvt_broken_ximcb" >&6; }
11697
11698if test x$rxvt_broken_ximcb = xyes; then
11699
11700cat >>confdefs.h <<\_ACEOF
11701#define XIMCB_PROTO_BROKEN 1
11702_ACEOF
11703
11704fi
11705 12296
11706 12297
11707 12298
11708 12299
11709 12300
12390echo "${ECHO_T}no" >&6; } 12981echo "${ECHO_T}no" >&6; }
12391fi 12982fi
12392 12983
12393 12984
12394 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then 12985 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
12395 LIBS="$LIBS `$PKG_CONFIG xft --libs`" 12986 X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS"
12396 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" 12987 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
12397 else 12988 else
12398 # Extract the first word of "xft-config", so it can be a program name with args. 12989 # Extract the first word of "xft-config", so it can be a program name with args.
12399set dummy xft-config; ac_word=$2 12990set dummy xft-config; ac_word=$2
12400{ echo "$as_me:$LINENO: checking for $ac_word" >&5 12991{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12435echo "${ECHO_T}no" >&6; } 13026echo "${ECHO_T}no" >&6; }
12436fi 13027fi
12437 13028
12438 13029
12439 if test $XFT_CONFIG != no; then 13030 if test $XFT_CONFIG != no; then
12440 LIBS="$LIBS `$XFT_CONFIG --libs`" 13031 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
12441 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" 13032 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
12442 fi 13033 fi
12443 fi 13034 fi
12444 13035
13036 save_LIBS="$LIBS"
13037 LIBS="$LIBS $X_LIBS"
12445 13038
12446for ac_header in X11/Xft/Xft.h 13039for ac_header in X11/Xft/Xft.h
12447do 13040do
12448as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13041as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12449if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13042if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12582 support_xft=no 13175 support_xft=no
12583fi 13176fi
12584 13177
12585done 13178done
12586 13179
12587
12588{ echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 13180 { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
12589echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } 13181echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; }
12590if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then 13182if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then
12591 echo $ECHO_N "(cached) $ECHO_C" >&6 13183 echo $ECHO_N "(cached) $ECHO_C" >&6
12592else 13184else
12593 ac_check_lib_save_LIBS=$LIBS 13185 ac_check_lib_save_LIBS=$LIBS
12645LIBS=$ac_check_lib_save_LIBS 13237LIBS=$ac_check_lib_save_LIBS
12646fi 13238fi
12647{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 13239{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
12648echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } 13240echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; }
12649if test $ac_cv_lib_Xft_XftDrawString32 = yes; then 13241if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
12650 cat >>confdefs.h <<_ACEOF 13242 :
12651#define HAVE_LIBXFT 1
12652_ACEOF
12653
12654 LIBS="-lXft $LIBS"
12655
12656else 13243else
12657 support_xft=no 13244 support_xft=no
12658fi 13245fi
12659 13246
13247 LIBS="$save_LIBS"
12660 13248
12661 if test x$support_xft = xyes; then 13249 if test x$support_xft = xyes; then
12662 13250
12663cat >>confdefs.h <<\_ACEOF 13251cat >>confdefs.h <<\_ACEOF
12664#define XFT 1 13252#define XFT 1
12692cat >>confdefs.h <<\_ACEOF 13280cat >>confdefs.h <<\_ACEOF
12693#define OFF_FOCUS_FADING 1 13281#define OFF_FOCUS_FADING 1
12694_ACEOF 13282_ACEOF
12695 13283
12696fi 13284fi
12697if test x$support_tinting = xyes; then
12698
12699cat >>confdefs.h <<\_ACEOF
12700#define TINTING 1
12701_ACEOF
12702
12703fi
12704if test x$support_inheritpixmap = xyes; then 13285if test x$support_inheritpixmap = xyes; then
12705 13286
12706cat >>confdefs.h <<\_ACEOF 13287cat >>confdefs.h <<\_ACEOF
12707#define ENABLE_TRANSPARENCY 1 13288#define ENABLE_TRANSPARENCY 1
12708_ACEOF 13289_ACEOF
12720cat >>confdefs.h <<\_ACEOF 13301cat >>confdefs.h <<\_ACEOF
12721#define SELECTION_SCROLLING 1 13302#define SELECTION_SCROLLING 1
12722_ACEOF 13303_ACEOF
12723 13304
12724fi 13305fi
13306if test x$support_frills = xyes; then
13307
13308cat >>confdefs.h <<\_ACEOF
13309#define ENABLE_FRILLS 1
13310_ACEOF
13311
13312fi
12725if test x$support_mousewheel = xyes; then 13313if test x$support_mousewheel = xyes; then
12726 13314
12727cat >>confdefs.h <<\_ACEOF 13315cat >>confdefs.h <<\_ACEOF
12728#define MOUSE_WHEEL 1 13316#define MOUSE_WHEEL 1
12729_ACEOF 13317_ACEOF
12742#define HAVE_AFTERIMAGE 1 13330#define HAVE_AFTERIMAGE 1
12743_ACEOF 13331_ACEOF
12744 13332
12745 13333
12746cat >>confdefs.h <<\_ACEOF 13334cat >>confdefs.h <<\_ACEOF
12747#define XPM_BACKGROUND 1 13335#define BG_IMAGE_FROM_FILE 1
12748_ACEOF 13336_ACEOF
12749 13337
12750fi 13338fi
12751 13339
12752 13340
13024 13612
13025 13613
13026 13614
13027 13615
13028 13616
13029
13030if test x$support_perl = xyes; then
13031 support_frills=yes
13032fi
13033
13034if test x$support_frills = xyes; then
13035
13036cat >>confdefs.h <<\_ACEOF
13037#define ENABLE_FRILLS 1
13038_ACEOF
13039
13040fi
13041 13617
13042 13618
13043 13619
13044 13620
13045 13621
13821GREP!$GREP$ac_delim 14397GREP!$GREP$ac_delim
13822EGREP!$EGREP$ac_delim 14398EGREP!$EGREP$ac_delim
13823LINKER!$LINKER$ac_delim 14399LINKER!$LINKER$ac_delim
13824INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim 14400INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim
13825RXVTNAME!$RXVTNAME$ac_delim 14401RXVTNAME!$RXVTNAME$ac_delim
14402CXXCPP!$CXXCPP$ac_delim
13826TIC!$TIC$ac_delim 14403TIC!$TIC$ac_delim
13827XMKMF!$XMKMF$ac_delim 14404XMKMF!$XMKMF$ac_delim
13828CXXCPP!$CXXCPP$ac_delim
13829X_CFLAGS!$X_CFLAGS$ac_delim 14405X_CFLAGS!$X_CFLAGS$ac_delim
13830X_PRE_LIBS!$X_PRE_LIBS$ac_delim 14406X_PRE_LIBS!$X_PRE_LIBS$ac_delim
13831X_LIBS!$X_LIBS$ac_delim 14407X_LIBS!$X_LIBS$ac_delim
13832X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim 14408X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
13833afterimage_config!$afterimage_config$ac_delim 14409afterimage_config!$afterimage_config$ac_delim

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines