2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="conky.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar BUILD_LINUX_TRUE BUILD_LINUX_FALSE BUILD_SOLARIS_TRUE BUILD_SOLARIS_FALSE BUILD_FREEBSD_TRUE BUILD_FREEBSD_FALSE BUILD_NETBSD_TRUE BUILD_NETBSD_FALSE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP BUILD_SETI_TRUE BUILD_SETI_FALSE BUILD_MPD_TRUE BUILD_MPD_FALSE BUILD_CAIRO_TRUE BUILD_CAIRO_FALSE CAIROCONFIG BUILD_MLDONKEY_TRUE BUILD_MLDONKEY_FALSE BUILD_X11_TRUE BUILD_X11_FALSE XFTCONFIG X11_LIBS XFT_LIBS LIBOBJS LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840 --x-includes=DIR X include files are in DIR
841 --x-libraries=DIR X library files are in DIR
845 if test -n "$ac_init_help"; then
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-xft enable if you want to use Xft default=no
853 --enable-own-window enable if you want support for creating own window default=yes
854 --enable-double-buffer enable if you want to support flicker-free operation default=yes
855 --disable-dependency-tracking speeds up one-time build
856 --enable-dependency-tracking do not reject slow dependency extractors
857 --enable-proc-uptime enable using /proc/uptime for uptime default=no
858 --enable-seti enable if you want SETI at Home stats default=no
859 --enable-mpd enable if you want MPD support default=no
860 --enable-cairo enable if you want Cairo support default=no
861 --enable-mldonkey enable if you want MLDonkey support default=no
862 --enable-x11 enable if you want X11 support default=yes
865 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
866 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
867 --with-x use the X Window System
869 Some influential environment variables:
870 CC C compiler command
871 CFLAGS C compiler flags
872 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
873 nonstandard directory <lib dir>
874 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
875 headers in a nonstandard directory <include dir>
878 Use these variables to override the choices made by `configure' or to help
879 it to find libraries and programs with nonstandard names/locations.
884 if test "$ac_init_help" = "recursive"; then
885 # If there are subdirs, report their specific --help.
887 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
888 test -d $ac_dir || continue
891 if test "$ac_dir" != .; then
892 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
893 # A "../" for each directory in $ac_dir_suffix.
894 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
896 ac_dir_suffix= ac_top_builddir=
900 .) # No --srcdir option. We are building in place.
902 if test -z "$ac_top_builddir"; then
905 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
907 [\\/]* | ?:[\\/]* ) # Absolute path.
908 ac_srcdir=$srcdir$ac_dir_suffix;
909 ac_top_srcdir=$srcdir ;;
911 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
912 ac_top_srcdir=$ac_top_builddir$srcdir ;;
915 # Do not use `cd foo && pwd` to compute absolute paths, because
916 # the directories may not exist.
918 .) ac_abs_builddir="$ac_dir";;
921 .) ac_abs_builddir=`pwd`;;
922 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
923 *) ac_abs_builddir=`pwd`/"$ac_dir";;
926 case $ac_abs_builddir in
927 .) ac_abs_top_builddir=${ac_top_builddir}.;;
929 case ${ac_top_builddir}. in
930 .) ac_abs_top_builddir=$ac_abs_builddir;;
931 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
932 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
935 case $ac_abs_builddir in
936 .) ac_abs_srcdir=$ac_srcdir;;
939 .) ac_abs_srcdir=$ac_abs_builddir;;
940 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
941 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
944 case $ac_abs_builddir in
945 .) ac_abs_top_srcdir=$ac_top_srcdir;;
947 case $ac_top_srcdir in
948 .) ac_abs_top_srcdir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
950 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
955 # Check for guested configure; otherwise get Cygnus style configure.
956 if test -f $ac_srcdir/configure.gnu; then
958 $SHELL $ac_srcdir/configure.gnu --help=recursive
959 elif test -f $ac_srcdir/configure; then
961 $SHELL $ac_srcdir/configure --help=recursive
962 elif test -f $ac_srcdir/configure.ac ||
963 test -f $ac_srcdir/configure.in; then
967 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
973 test -n "$ac_init_help" && exit 0
974 if $ac_init_version; then
977 Copyright (C) 2003 Free Software Foundation, Inc.
978 This configure script is free software; the Free Software Foundation
979 gives unlimited permission to copy, distribute and modify it.
985 This file contains any messages produced by compilers while
986 running configure, to aid debugging if configure makes a mistake.
988 It was created by $as_me, which was
989 generated by GNU Autoconf 2.59. Invocation command line was
1000 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1001 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1002 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1003 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1004 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1006 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1007 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1009 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1010 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1011 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1012 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1013 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1014 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1015 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1023 test -z "$as_dir" && as_dir=.
1024 echo "PATH: $as_dir"
1039 # Keep a trace of the command line.
1040 # Strip out --no-create and --no-recursion so they do not pile up.
1041 # Strip out --silent because we don't want to record it for future runs.
1042 # Also quote any args containing shell meta-characters.
1043 # Make two passes to allow for proper duplicate-argument suppression.
1048 ac_must_keep_next=false
1054 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056 | -silent | --silent | --silen | --sile | --sil)
1058 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1059 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1062 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1064 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1065 if test $ac_must_keep_next = true; then
1066 ac_must_keep_next=false # Got value, back to normal.
1069 *=* | --config-cache | -C | -disable-* | --disable-* \
1070 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1071 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1072 | -with-* | --with-* | -without-* | --without-* | --x)
1073 case "$ac_configure_args0 " in
1074 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1077 -* ) ac_must_keep_next=true ;;
1080 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1081 # Get rid of the leading space.
1087 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1088 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1090 # When interrupted or exit'd, cleanup temporary files, and complete
1091 # config.log. We remove comments because anyway the quotes in there
1092 # would cause problems or look ugly.
1093 # WARNING: Be sure not to use single quotes in there, as some shells,
1094 # such as our DU 5.0 friend, will then `close' the trap.
1095 trap 'exit_status=$?
1096 # Save into config.log some information that might help in debugging.
1101 ## ---------------- ##
1102 ## Cache variables. ##
1103 ## ---------------- ##
1106 # The following way of writing the cache mishandles newlines in values,
1109 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1112 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1117 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1124 ## ----------------- ##
1125 ## Output variables. ##
1126 ## ----------------- ##
1129 for ac_var in $ac_subst_vars
1131 eval ac_val=$`echo $ac_var`
1132 echo "$ac_var='"'"'$ac_val'"'"'"
1136 if test -n "$ac_subst_files"; then
1143 for ac_var in $ac_subst_files
1145 eval ac_val=$`echo $ac_var`
1146 echo "$ac_var='"'"'$ac_val'"'"'"
1151 if test -s confdefs.h; then
1158 sed "/^$/d" confdefs.h | sort
1161 test "$ac_signal" != 0 &&
1162 echo "$as_me: caught signal $ac_signal"
1163 echo "$as_me: exit $exit_status"
1165 rm -f core *.core &&
1166 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1169 for ac_signal in 1 2 13 15; do
1170 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1174 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1175 rm -rf conftest* confdefs.h
1176 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1179 # Predefined preprocessor variables.
1181 cat >>confdefs.h <<_ACEOF
1182 #define PACKAGE_NAME "$PACKAGE_NAME"
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_STRING "$PACKAGE_STRING"
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1206 # Let the site file select an alternate cache file if it wants to.
1207 # Prefer explicitly selected file to automatically selected ones.
1208 if test -z "$CONFIG_SITE"; then
1209 if test "x$prefix" != xNONE; then
1210 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1212 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1215 for ac_site_file in $CONFIG_SITE; do
1216 if test -r "$ac_site_file"; then
1217 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1218 echo "$as_me: loading site script $ac_site_file" >&6;}
1219 sed 's/^/| /' "$ac_site_file" >&5
1224 if test -r "$cache_file"; then
1225 # Some versions of bash will fail to source /dev/null (special
1226 # files actually), so we avoid doing that.
1227 if test -f "$cache_file"; then
1228 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1229 echo "$as_me: loading cache $cache_file" >&6;}
1231 [\\/]* | ?:[\\/]* ) . $cache_file;;
1232 *) . ./$cache_file;;
1236 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1237 echo "$as_me: creating cache $cache_file" >&6;}
1241 # Check that the precious variables saved in the cache have kept the same
1243 ac_cache_corrupted=false
1244 for ac_var in `(set) 2>&1 |
1245 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1246 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1247 eval ac_new_set=\$ac_env_${ac_var}_set
1248 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1249 eval ac_new_val="\$ac_env_${ac_var}_value"
1250 case $ac_old_set,$ac_new_set in
1252 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1253 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1254 ac_cache_corrupted=: ;;
1256 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1257 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1258 ac_cache_corrupted=: ;;
1261 if test "x$ac_old_val" != "x$ac_new_val"; then
1262 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1263 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1264 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1265 echo "$as_me: former value: $ac_old_val" >&2;}
1266 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1267 echo "$as_me: current value: $ac_new_val" >&2;}
1268 ac_cache_corrupted=:
1271 # Pass precious variables to config.status.
1272 if test "$ac_new_set" = set; then
1274 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1275 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1276 *) ac_arg=$ac_var=$ac_new_val ;;
1278 case " $ac_configure_args " in
1279 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1280 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1284 if $ac_cache_corrupted; then
1285 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1286 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1287 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1288 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1289 { (exit 1); exit 1; }; }
1293 ac_cpp='$CPP $CPPFLAGS'
1294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1317 am__api_version="1.9"
1319 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1320 if test -f $ac_dir/install-sh; then
1322 ac_install_sh="$ac_aux_dir/install-sh -c"
1324 elif test -f $ac_dir/install.sh; then
1326 ac_install_sh="$ac_aux_dir/install.sh -c"
1328 elif test -f $ac_dir/shtool; then
1330 ac_install_sh="$ac_aux_dir/shtool install -c"
1334 if test -z "$ac_aux_dir"; then
1335 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1336 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1337 { (exit 1); exit 1; }; }
1339 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1340 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1341 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1343 # Find a good install program. We prefer a C program (faster),
1344 # so one script is as good as another. But avoid the broken or
1345 # incompatible versions:
1346 # SysV /etc/install, /usr/sbin/install
1347 # SunOS /usr/etc/install
1348 # IRIX /sbin/install
1350 # AmigaOS /C/install, which installs bootblocks on floppy discs
1351 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1352 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1353 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1354 # OS/2's system install, which has a completely different semantic
1355 # ./install, which can be erroneously created by make from ./install.sh.
1356 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1357 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1358 if test -z "$INSTALL"; then
1359 if test "${ac_cv_path_install+set}" = set; then
1360 echo $ECHO_N "(cached) $ECHO_C" >&6
1362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1366 test -z "$as_dir" && as_dir=.
1367 # Account for people who put trailing slashes in PATH elements.
1369 ./ | .// | /cC/* | \
1370 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1371 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1374 # OSF1 and SCO ODT 3.0 have their own names for install.
1375 # Don't use installbsd from OSF since it installs stuff as root
1377 for ac_prog in ginstall scoinst install; do
1378 for ac_exec_ext in '' $ac_executable_extensions; do
1379 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1380 if test $ac_prog = install &&
1381 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1382 # AIX install. It has an incompatible calling convention.
1384 elif test $ac_prog = install &&
1385 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1386 # program-specific install script used by HP pwplus--don't use.
1389 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1401 if test "${ac_cv_path_install+set}" = set; then
1402 INSTALL=$ac_cv_path_install
1404 # As a last resort, use the slow shell script. We don't cache a
1405 # path for INSTALL within a source directory, because that will
1406 # break other packages using the cache if that directory is
1407 # removed, or if the path is relative.
1408 INSTALL=$ac_install_sh
1411 echo "$as_me:$LINENO: result: $INSTALL" >&5
1412 echo "${ECHO_T}$INSTALL" >&6
1414 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1415 # It thinks the first close brace ends the variable substitution.
1416 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1418 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1420 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1422 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1423 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1426 echo timestamp > conftest.file
1427 # Do `set' in a subshell so we don't clobber the current shell's
1428 # arguments. Must try -L first in case configure is actually a
1429 # symlink; some systems play weird games with the mod time of symlinks
1430 # (eg FreeBSD returns the mod time of the symlink's containing
1433 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1434 if test "$*" = "X"; then
1436 set X `ls -t $srcdir/configure conftest.file`
1439 if test "$*" != "X $srcdir/configure conftest.file" \
1440 && test "$*" != "X conftest.file $srcdir/configure"; then
1442 # If neither matched, then we have a broken ls. This can happen
1443 # if, for instance, CONFIG_SHELL is bash and it inherits a
1444 # broken ls alias from the environment. This has actually
1445 # happened. Such a system could not be considered "sane".
1446 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1447 alias in your environment" >&5
1448 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1449 alias in your environment" >&2;}
1450 { (exit 1); exit 1; }; }
1453 test "$2" = conftest.file
1459 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1460 Check your system clock" >&5
1461 echo "$as_me: error: newly created file is older than distributed files!
1462 Check your system clock" >&2;}
1463 { (exit 1); exit 1; }; }
1465 echo "$as_me:$LINENO: result: yes" >&5
1466 echo "${ECHO_T}yes" >&6
1467 test "$program_prefix" != NONE &&
1468 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1469 # Use a double $ so make ignores it.
1470 test "$program_suffix" != NONE &&
1471 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1472 # Double any \ or $. echo might interpret backslashes.
1473 # By default was `s,x,x', remove it if useless.
1474 cat <<\_ACEOF >conftest.sed
1475 s/[\\$]/&&/g;s/;s,x,x,$//
1477 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1480 # expand $ac_aux_dir to an absolute path
1481 am_aux_dir=`cd $ac_aux_dir && pwd`
1483 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1484 # Use eval to expand $SHELL
1485 if eval "$MISSING --run true"; then
1486 am_missing_run="$MISSING --run "
1489 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1490 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1493 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1494 # We used to keeping the `.' as first argument, in order to
1495 # allow $(mkdir_p) to be used without argument. As in
1496 # $(mkdir_p) $(somedir)
1497 # where $(somedir) is conditionally defined. However this is wrong
1499 # 1. if the package is installed by a user who cannot write `.'
1500 # make install will fail,
1501 # 2. the above comment should most certainly read
1502 # $(mkdir_p) $(DESTDIR)$(somedir)
1503 # so it does not work when $(somedir) is undefined and
1504 # $(DESTDIR) is not.
1505 # To support the latter case, we have to write
1506 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1507 # so the `.' trick is pointless.
1508 mkdir_p='mkdir -p --'
1510 # On NextStep and OpenStep, the `mkdir' command does not
1511 # recognize any option. It will interpret all options as
1512 # directories to create, and then abort because `.' already
1514 for d in ./-p ./--version;
1516 test -d $d && rmdir $d
1518 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1519 if test -f "$ac_aux_dir/mkinstalldirs"; then
1520 mkdir_p='$(mkinstalldirs)'
1522 mkdir_p='$(install_sh) -d'
1526 for ac_prog in gawk mawk nawk awk
1528 # Extract the first word of "$ac_prog", so it can be a program name with args.
1529 set dummy $ac_prog; ac_word=$2
1530 echo "$as_me:$LINENO: checking for $ac_word" >&5
1531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1532 if test "${ac_cv_prog_AWK+set}" = set; then
1533 echo $ECHO_N "(cached) $ECHO_C" >&6
1535 if test -n "$AWK"; then
1536 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1542 test -z "$as_dir" && as_dir=.
1543 for ac_exec_ext in '' $ac_executable_extensions; do
1544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1545 ac_cv_prog_AWK="$ac_prog"
1546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1555 if test -n "$AWK"; then
1556 echo "$as_me:$LINENO: result: $AWK" >&5
1557 echo "${ECHO_T}$AWK" >&6
1559 echo "$as_me:$LINENO: result: no" >&5
1560 echo "${ECHO_T}no" >&6
1563 test -n "$AWK" && break
1566 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1567 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1568 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1569 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1570 echo $ECHO_N "(cached) $ECHO_C" >&6
1572 cat >conftest.make <<\_ACEOF
1574 @echo 'ac_maketemp="$(MAKE)"'
1576 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1577 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1578 if test -n "$ac_maketemp"; then
1579 eval ac_cv_prog_make_${ac_make}_set=yes
1581 eval ac_cv_prog_make_${ac_make}_set=no
1585 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1586 echo "$as_me:$LINENO: result: yes" >&5
1587 echo "${ECHO_T}yes" >&6
1590 echo "$as_me:$LINENO: result: no" >&5
1591 echo "${ECHO_T}no" >&6
1592 SET_MAKE="MAKE=${MAKE-make}"
1595 rm -rf .tst 2>/dev/null
1596 mkdir .tst 2>/dev/null
1597 if test -d .tst; then
1602 rmdir .tst 2>/dev/null
1604 # test to see if srcdir already configured
1605 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1606 test -f $srcdir/config.status; then
1607 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1608 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1609 { (exit 1); exit 1; }; }
1612 # test whether we have cygpath
1613 if test -z "$CYGPATH_W"; then
1614 if (cygpath --version) >/dev/null 2>/dev/null; then
1615 CYGPATH_W='cygpath -w'
1622 # Define the identity of the package.
1627 cat >>confdefs.h <<_ACEOF
1628 #define PACKAGE "$PACKAGE"
1632 cat >>confdefs.h <<_ACEOF
1633 #define VERSION "$VERSION"
1636 # Some tools Automake needs.
1638 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1641 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1644 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1647 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1650 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1652 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1654 # Installed binaries are usually stripped using `strip' when the user
1655 # run `make install-strip'. However `strip' might not be the right
1656 # tool to use in cross-compilation environments, therefore Automake
1657 # will honor the `STRIP' environment variable to overrule this program.
1658 if test "$cross_compiling" != no; then
1659 if test -n "$ac_tool_prefix"; then
1660 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1661 set dummy ${ac_tool_prefix}strip; ac_word=$2
1662 echo "$as_me:$LINENO: checking for $ac_word" >&5
1663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1664 if test "${ac_cv_prog_STRIP+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 if test -n "$STRIP"; then
1668 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1674 test -z "$as_dir" && as_dir=.
1675 for ac_exec_ext in '' $ac_executable_extensions; do
1676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1677 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1686 STRIP=$ac_cv_prog_STRIP
1687 if test -n "$STRIP"; then
1688 echo "$as_me:$LINENO: result: $STRIP" >&5
1689 echo "${ECHO_T}$STRIP" >&6
1691 echo "$as_me:$LINENO: result: no" >&5
1692 echo "${ECHO_T}no" >&6
1696 if test -z "$ac_cv_prog_STRIP"; then
1698 # Extract the first word of "strip", so it can be a program name with args.
1699 set dummy strip; ac_word=$2
1700 echo "$as_me:$LINENO: checking for $ac_word" >&5
1701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1702 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1703 echo $ECHO_N "(cached) $ECHO_C" >&6
1705 if test -n "$ac_ct_STRIP"; then
1706 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712 test -z "$as_dir" && as_dir=.
1713 for ac_exec_ext in '' $ac_executable_extensions; do
1714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1715 ac_cv_prog_ac_ct_STRIP="strip"
1716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1722 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1725 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1726 if test -n "$ac_ct_STRIP"; then
1727 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1728 echo "${ECHO_T}$ac_ct_STRIP" >&6
1730 echo "$as_me:$LINENO: result: no" >&5
1731 echo "${ECHO_T}no" >&6
1736 STRIP="$ac_cv_prog_STRIP"
1740 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1742 # We need awk for the "check" target. The system "awk" is bad on
1744 # Always define AMTAR for backward compatibility.
1746 AMTAR=${AMTAR-"${am_missing_run}tar"}
1748 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1754 ac_config_headers="$ac_config_headers config.h"
1770 # Solaris doesn't work at all right now
1777 echo "Your operating system $uname isn't supported"
1778 echo "Feel free to help. :P"
1785 if test x$uname = xLinux; then
1787 BUILD_LINUX_FALSE='#'
1789 BUILD_LINUX_TRUE='#'
1795 if test x$uname = xSunOS; then
1797 BUILD_SOLARIS_FALSE='#'
1799 BUILD_SOLARIS_TRUE='#'
1800 BUILD_SOLARIS_FALSE=
1805 if test x$uname = xFreeBSD; then
1807 BUILD_FREEBSD_FALSE='#'
1809 BUILD_FREEBSD_TRUE='#'
1810 BUILD_FREEBSD_FALSE=
1815 if test x$uname = xNetBSD; then
1817 BUILD_NETBSD_FALSE='#'
1819 BUILD_NETBSD_TRUE='#'
1826 # Check whether --enable-xft or --disable-xft was given.
1827 if test "${enable_xft+set}" = set; then
1828 enableval="$enable_xft"
1829 want_xft="$enableval"
1834 # Check whether --enable-own_window or --disable-own_window was given.
1835 if test "${enable_own_window+set}" = set; then
1836 enableval="$enable_own_window"
1840 if test $dah != "no"; then
1842 cat >>confdefs.h <<\_ACEOF
1843 #define OWN_WINDOW 1
1850 # Check whether --enable-double_buffer or --disable-double_buffer was given.
1851 if test "${enable_double_buffer+set}" = set; then
1852 enableval="$enable_double_buffer"
1856 if test $dah != "no"; then
1858 cat >>confdefs.h <<\_ACEOF
1859 #define DOUBLE_BUFFER 1
1862 DEPDIR="${am__leading_dot}deps"
1864 ac_config_commands="$ac_config_commands depfiles"
1867 am_make=${MAKE-make}
1868 cat > confinc << 'END'
1873 # If we don't find an include directive, just comment out the code.
1874 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1875 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1879 # First try GNU make style include.
1880 echo "include confinc" > confmf
1881 # We grep out `Entering directory' and `Leaving directory'
1882 # messages which can occur if `w' ends up in MAKEFLAGS.
1883 # In particular we don't look at `^make:' because GNU make might
1884 # be invoked under some other name (usually "gmake"), in which
1885 # case it prints its new name instead of `make'.
1886 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1891 # Now try BSD make style include.
1892 if test "$am__include" = "#"; then
1893 echo '.include "confinc"' > confmf
1894 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1895 am__include=.include
1902 echo "$as_me:$LINENO: result: $_am_result" >&5
1903 echo "${ECHO_T}$_am_result" >&6
1904 rm -f confinc confmf
1906 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1907 if test "${enable_dependency_tracking+set}" = set; then
1908 enableval="$enable_dependency_tracking"
1911 if test "x$enable_dependency_tracking" != xno; then
1912 am_depcomp="$ac_aux_dir/depcomp"
1917 if test "x$enable_dependency_tracking" != xno; then
1928 ac_cpp='$CPP $CPPFLAGS'
1929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1932 if test -n "$ac_tool_prefix"; then
1933 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1934 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1935 echo "$as_me:$LINENO: checking for $ac_word" >&5
1936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1937 if test "${ac_cv_prog_CC+set}" = set; then
1938 echo $ECHO_N "(cached) $ECHO_C" >&6
1940 if test -n "$CC"; then
1941 ac_cv_prog_CC="$CC" # Let the user override the test.
1943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1947 test -z "$as_dir" && as_dir=.
1948 for ac_exec_ext in '' $ac_executable_extensions; do
1949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1950 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1960 if test -n "$CC"; then
1961 echo "$as_me:$LINENO: result: $CC" >&5
1962 echo "${ECHO_T}$CC" >&6
1964 echo "$as_me:$LINENO: result: no" >&5
1965 echo "${ECHO_T}no" >&6
1969 if test -z "$ac_cv_prog_CC"; then
1971 # Extract the first word of "gcc", so it can be a program name with args.
1972 set dummy gcc; ac_word=$2
1973 echo "$as_me:$LINENO: checking for $ac_word" >&5
1974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1975 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1976 echo $ECHO_N "(cached) $ECHO_C" >&6
1978 if test -n "$ac_ct_CC"; then
1979 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985 test -z "$as_dir" && as_dir=.
1986 for ac_exec_ext in '' $ac_executable_extensions; do
1987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1988 ac_cv_prog_ac_ct_CC="gcc"
1989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1997 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1998 if test -n "$ac_ct_CC"; then
1999 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2000 echo "${ECHO_T}$ac_ct_CC" >&6
2002 echo "$as_me:$LINENO: result: no" >&5
2003 echo "${ECHO_T}no" >&6
2011 if test -z "$CC"; then
2012 if test -n "$ac_tool_prefix"; then
2013 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2014 set dummy ${ac_tool_prefix}cc; ac_word=$2
2015 echo "$as_me:$LINENO: checking for $ac_word" >&5
2016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2017 if test "${ac_cv_prog_CC+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2020 if test -n "$CC"; then
2021 ac_cv_prog_CC="$CC" # Let the user override the test.
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027 test -z "$as_dir" && as_dir=.
2028 for ac_exec_ext in '' $ac_executable_extensions; do
2029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2030 ac_cv_prog_CC="${ac_tool_prefix}cc"
2031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040 if test -n "$CC"; then
2041 echo "$as_me:$LINENO: result: $CC" >&5
2042 echo "${ECHO_T}$CC" >&6
2044 echo "$as_me:$LINENO: result: no" >&5
2045 echo "${ECHO_T}no" >&6
2049 if test -z "$ac_cv_prog_CC"; then
2051 # Extract the first word of "cc", so it can be a program name with args.
2052 set dummy cc; ac_word=$2
2053 echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2055 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2058 if test -n "$ac_ct_CC"; then
2059 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065 test -z "$as_dir" && as_dir=.
2066 for ac_exec_ext in '' $ac_executable_extensions; do
2067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2068 ac_cv_prog_ac_ct_CC="cc"
2069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2077 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2078 if test -n "$ac_ct_CC"; then
2079 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2080 echo "${ECHO_T}$ac_ct_CC" >&6
2082 echo "$as_me:$LINENO: result: no" >&5
2083 echo "${ECHO_T}no" >&6
2092 if test -z "$CC"; then
2093 # Extract the first word of "cc", so it can be a program name with args.
2094 set dummy cc; ac_word=$2
2095 echo "$as_me:$LINENO: checking for $ac_word" >&5
2096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2097 if test "${ac_cv_prog_CC+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 if test -n "$CC"; then
2101 ac_cv_prog_CC="$CC" # Let the user override the test.
2104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108 test -z "$as_dir" && as_dir=.
2109 for ac_exec_ext in '' $ac_executable_extensions; do
2110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2111 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2112 ac_prog_rejected=yes
2116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2122 if test $ac_prog_rejected = yes; then
2123 # We found a bogon in the path, so make sure we never use it.
2124 set dummy $ac_cv_prog_CC
2126 if test $# != 0; then
2127 # We chose a different compiler from the bogus one.
2128 # However, it has the same basename, so the bogon will be chosen
2129 # first if we set CC to just the basename; use the full file name.
2131 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2137 if test -n "$CC"; then
2138 echo "$as_me:$LINENO: result: $CC" >&5
2139 echo "${ECHO_T}$CC" >&6
2141 echo "$as_me:$LINENO: result: no" >&5
2142 echo "${ECHO_T}no" >&6
2146 if test -z "$CC"; then
2147 if test -n "$ac_tool_prefix"; then
2150 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2151 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2152 echo "$as_me:$LINENO: checking for $ac_word" >&5
2153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2154 if test "${ac_cv_prog_CC+set}" = set; then
2155 echo $ECHO_N "(cached) $ECHO_C" >&6
2157 if test -n "$CC"; then
2158 ac_cv_prog_CC="$CC" # Let the user override the test.
2160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164 test -z "$as_dir" && as_dir=.
2165 for ac_exec_ext in '' $ac_executable_extensions; do
2166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2167 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2177 if test -n "$CC"; then
2178 echo "$as_me:$LINENO: result: $CC" >&5
2179 echo "${ECHO_T}$CC" >&6
2181 echo "$as_me:$LINENO: result: no" >&5
2182 echo "${ECHO_T}no" >&6
2185 test -n "$CC" && break
2188 if test -z "$CC"; then
2192 # Extract the first word of "$ac_prog", so it can be a program name with args.
2193 set dummy $ac_prog; ac_word=$2
2194 echo "$as_me:$LINENO: checking for $ac_word" >&5
2195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2196 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2199 if test -n "$ac_ct_CC"; then
2200 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206 test -z "$as_dir" && as_dir=.
2207 for ac_exec_ext in '' $ac_executable_extensions; do
2208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2209 ac_cv_prog_ac_ct_CC="$ac_prog"
2210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2218 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2219 if test -n "$ac_ct_CC"; then
2220 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2221 echo "${ECHO_T}$ac_ct_CC" >&6
2223 echo "$as_me:$LINENO: result: no" >&5
2224 echo "${ECHO_T}no" >&6
2227 test -n "$ac_ct_CC" && break
2236 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2237 See \`config.log' for more details." >&5
2238 echo "$as_me: error: no acceptable C compiler found in \$PATH
2239 See \`config.log' for more details." >&2;}
2240 { (exit 1); exit 1; }; }
2242 # Provide some information about the compiler.
2243 echo "$as_me:$LINENO:" \
2244 "checking for C compiler version" >&5
2245 ac_compiler=`set X $ac_compile; echo $2`
2246 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2247 (eval $ac_compiler --version </dev/null >&5) 2>&5
2249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250 (exit $ac_status); }
2251 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2252 (eval $ac_compiler -v </dev/null >&5) 2>&5
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }
2256 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2257 (eval $ac_compiler -V </dev/null >&5) 2>&5
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }
2262 cat >conftest.$ac_ext <<_ACEOF
2265 cat confdefs.h >>conftest.$ac_ext
2266 cat >>conftest.$ac_ext <<_ACEOF
2267 /* end confdefs.h. */
2277 ac_clean_files_save=$ac_clean_files
2278 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2279 # Try to create an executable without -o first, disregard a.out.
2280 # It will help us diagnose broken compilers, and finding out an intuition
2282 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2283 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2284 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2285 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2286 (eval $ac_link_default) 2>&5
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); }; then
2290 # Find the output, starting from the most likely. This scheme is
2291 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2294 # Be careful to initialize this variable, since it used to be cached.
2295 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2297 # b.out is created by i960 compilers.
2298 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2300 test -f "$ac_file" || continue
2302 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2305 # This is the source file.
2308 # We found the default executable, but exeext='' is most
2312 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2313 # FIXME: I believe we export ac_cv_exeext for Libtool,
2314 # but it would be cool to find out if it's true. Does anybody
2315 # maintain Libtool? --akim.
2323 echo "$as_me: failed program was:" >&5
2324 sed 's/^/| /' conftest.$ac_ext >&5
2326 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2327 See \`config.log' for more details." >&5
2328 echo "$as_me: error: C compiler cannot create executables
2329 See \`config.log' for more details." >&2;}
2330 { (exit 77); exit 77; }; }
2333 ac_exeext=$ac_cv_exeext
2334 echo "$as_me:$LINENO: result: $ac_file" >&5
2335 echo "${ECHO_T}$ac_file" >&6
2337 # Check the compiler produces executables we can run. If not, either
2338 # the compiler is broken, or we cross compile.
2339 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2340 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2341 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2342 # If not cross compiling, check that we can run a simple program.
2343 if test "$cross_compiling" != yes; then
2344 if { ac_try='./$ac_file'
2345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); }; }; then
2352 if test "$cross_compiling" = maybe; then
2355 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2356 If you meant to cross compile, use \`--host'.
2357 See \`config.log' for more details." >&5
2358 echo "$as_me: error: cannot run C compiled programs.
2359 If you meant to cross compile, use \`--host'.
2360 See \`config.log' for more details." >&2;}
2361 { (exit 1); exit 1; }; }
2365 echo "$as_me:$LINENO: result: yes" >&5
2366 echo "${ECHO_T}yes" >&6
2368 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2369 ac_clean_files=$ac_clean_files_save
2370 # Check the compiler produces executables we can run. If not, either
2371 # the compiler is broken, or we cross compile.
2372 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2373 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2374 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2375 echo "${ECHO_T}$cross_compiling" >&6
2377 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2378 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2380 (eval $ac_link) 2>&5
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); }; then
2384 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2385 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2386 # work properly (i.e., refer to `conftest.exe'), while it won't with
2388 for ac_file in conftest.exe conftest conftest.*; do
2389 test -f "$ac_file" || continue
2391 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2392 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2399 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2400 See \`config.log' for more details." >&5
2401 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2402 See \`config.log' for more details." >&2;}
2403 { (exit 1); exit 1; }; }
2406 rm -f conftest$ac_cv_exeext
2407 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2408 echo "${ECHO_T}$ac_cv_exeext" >&6
2410 rm -f conftest.$ac_ext
2411 EXEEXT=$ac_cv_exeext
2413 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2414 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2415 if test "${ac_cv_objext+set}" = set; then
2416 echo $ECHO_N "(cached) $ECHO_C" >&6
2418 cat >conftest.$ac_ext <<_ACEOF
2421 cat confdefs.h >>conftest.$ac_ext
2422 cat >>conftest.$ac_ext <<_ACEOF
2423 /* end confdefs.h. */
2433 rm -f conftest.o conftest.obj
2434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2435 (eval $ac_compile) 2>&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }; then
2439 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2441 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2442 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2447 echo "$as_me: failed program was:" >&5
2448 sed 's/^/| /' conftest.$ac_ext >&5
2450 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2451 See \`config.log' for more details." >&5
2452 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2453 See \`config.log' for more details." >&2;}
2454 { (exit 1); exit 1; }; }
2457 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2459 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2460 echo "${ECHO_T}$ac_cv_objext" >&6
2461 OBJEXT=$ac_cv_objext
2463 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2464 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2465 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2466 echo $ECHO_N "(cached) $ECHO_C" >&6
2468 cat >conftest.$ac_ext <<_ACEOF
2471 cat confdefs.h >>conftest.$ac_ext
2472 cat >>conftest.$ac_ext <<_ACEOF
2473 /* end confdefs.h. */
2486 rm -f conftest.$ac_objext
2487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2488 (eval $ac_compile) 2>conftest.er1
2490 grep -v '^ *+' conftest.er1 >conftest.err
2492 cat conftest.err >&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } &&
2495 { ac_try='test -z "$ac_c_werror_flag"
2496 || test ! -s conftest.err'
2497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }; } &&
2502 { ac_try='test -s conftest.$ac_objext'
2503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }; }; then
2510 echo "$as_me: failed program was:" >&5
2511 sed 's/^/| /' conftest.$ac_ext >&5
2515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2516 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2519 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2520 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2521 GCC=`test $ac_compiler_gnu = yes && echo yes`
2522 ac_test_CFLAGS=${CFLAGS+set}
2523 ac_save_CFLAGS=$CFLAGS
2525 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2526 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2527 if test "${ac_cv_prog_cc_g+set}" = set; then
2528 echo $ECHO_N "(cached) $ECHO_C" >&6
2530 cat >conftest.$ac_ext <<_ACEOF
2533 cat confdefs.h >>conftest.$ac_ext
2534 cat >>conftest.$ac_ext <<_ACEOF
2535 /* end confdefs.h. */
2545 rm -f conftest.$ac_objext
2546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2547 (eval $ac_compile) 2>conftest.er1
2549 grep -v '^ *+' conftest.er1 >conftest.err
2551 cat conftest.err >&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); } &&
2554 { ac_try='test -z "$ac_c_werror_flag"
2555 || test ! -s conftest.err'
2556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); }; } &&
2561 { ac_try='test -s conftest.$ac_objext'
2562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; }; then
2569 echo "$as_me: failed program was:" >&5
2570 sed 's/^/| /' conftest.$ac_ext >&5
2574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2576 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2577 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2578 if test "$ac_test_CFLAGS" = set; then
2579 CFLAGS=$ac_save_CFLAGS
2580 elif test $ac_cv_prog_cc_g = yes; then
2581 if test "$GCC" = yes; then
2587 if test "$GCC" = yes; then
2593 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2594 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2595 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2596 echo $ECHO_N "(cached) $ECHO_C" >&6
2598 ac_cv_prog_cc_stdc=no
2600 cat >conftest.$ac_ext <<_ACEOF
2603 cat confdefs.h >>conftest.$ac_ext
2604 cat >>conftest.$ac_ext <<_ACEOF
2605 /* end confdefs.h. */
2608 #include <sys/types.h>
2609 #include <sys/stat.h>
2610 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2611 struct buf { int x; };
2612 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2613 static char *e (p, i)
2619 static char *f (char * (*g) (char **, int), char **p, ...)
2624 s = g (p, va_arg (v,int));
2629 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2630 function prototypes and stuff, but not '\xHH' hex character constants.
2631 These don't provoke an error unfortunately, instead are silently treated
2632 as 'x'. The following induces an error, until -std1 is added to get
2633 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2634 array size at least. It's necessary to write '\x00'==0 to get something
2635 that's true only with -std1. */
2636 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2638 int test (int i, double x);
2639 struct s1 {int (*f) (int a);};
2640 struct s2 {int (*f) (double a);};
2641 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2647 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2652 # Don't try gcc -ansi; that turns off useful extensions and
2653 # breaks some systems' header files.
2654 # AIX -qlanglvl=ansi
2655 # Ultrix and OSF/1 -std1
2656 # HP-UX 10.20 and later -Ae
2657 # HP-UX older versions -Aa -D_HPUX_SOURCE
2658 # SVR4 -Xc -D__EXTENSIONS__
2659 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2661 CC="$ac_save_CC $ac_arg"
2662 rm -f conftest.$ac_objext
2663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2664 (eval $ac_compile) 2>conftest.er1
2666 grep -v '^ *+' conftest.er1 >conftest.err
2668 cat conftest.err >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); } &&
2671 { ac_try='test -z "$ac_c_werror_flag"
2672 || test ! -s conftest.err'
2673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }; } &&
2678 { ac_try='test -s conftest.$ac_objext'
2679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); }; }; then
2684 ac_cv_prog_cc_stdc=$ac_arg
2687 echo "$as_me: failed program was:" >&5
2688 sed 's/^/| /' conftest.$ac_ext >&5
2691 rm -f conftest.err conftest.$ac_objext
2693 rm -f conftest.$ac_ext conftest.$ac_objext
2698 case "x$ac_cv_prog_cc_stdc" in
2700 echo "$as_me:$LINENO: result: none needed" >&5
2701 echo "${ECHO_T}none needed" >&6 ;;
2703 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2704 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2705 CC="$CC $ac_cv_prog_cc_stdc" ;;
2708 # Some people use a C++ compiler to compile C. Since we use `exit',
2709 # in C++ we need to declare it. In case someone uses the same compiler
2710 # for both compiling C and C++ we need to have the C++ compiler decide
2711 # the declaration of exit, since it's the most demanding environment.
2712 cat >conftest.$ac_ext <<_ACEOF
2717 rm -f conftest.$ac_objext
2718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2719 (eval $ac_compile) 2>conftest.er1
2721 grep -v '^ *+' conftest.er1 >conftest.err
2723 cat conftest.err >&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); } &&
2726 { ac_try='test -z "$ac_c_werror_flag"
2727 || test ! -s conftest.err'
2728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; } &&
2733 { ac_try='test -s conftest.$ac_objext'
2734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }; }; then
2739 for ac_declaration in \
2741 'extern "C" void std::exit (int) throw (); using std::exit;' \
2742 'extern "C" void std::exit (int); using std::exit;' \
2743 'extern "C" void exit (int) throw ();' \
2744 'extern "C" void exit (int);' \
2747 cat >conftest.$ac_ext <<_ACEOF
2750 cat confdefs.h >>conftest.$ac_ext
2751 cat >>conftest.$ac_ext <<_ACEOF
2752 /* end confdefs.h. */
2763 rm -f conftest.$ac_objext
2764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2765 (eval $ac_compile) 2>conftest.er1
2767 grep -v '^ *+' conftest.er1 >conftest.err
2769 cat conftest.err >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); } &&
2772 { ac_try='test -z "$ac_c_werror_flag"
2773 || test ! -s conftest.err'
2774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }; } &&
2779 { ac_try='test -s conftest.$ac_objext'
2780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; }; then
2787 echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.$ac_ext >&5
2792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2793 cat >conftest.$ac_ext <<_ACEOF
2796 cat confdefs.h >>conftest.$ac_ext
2797 cat >>conftest.$ac_ext <<_ACEOF
2798 /* end confdefs.h. */
2808 rm -f conftest.$ac_objext
2809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2810 (eval $ac_compile) 2>conftest.er1
2812 grep -v '^ *+' conftest.er1 >conftest.err
2814 cat conftest.err >&5
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); } &&
2817 { ac_try='test -z "$ac_c_werror_flag"
2818 || test ! -s conftest.err'
2819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); }; } &&
2824 { ac_try='test -s conftest.$ac_objext'
2825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }; }; then
2832 echo "$as_me: failed program was:" >&5
2833 sed 's/^/| /' conftest.$ac_ext >&5
2836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2839 if test -n "$ac_declaration"; then
2840 echo '#ifdef __cplusplus' >>confdefs.h
2841 echo $ac_declaration >>confdefs.h
2842 echo '#endif' >>confdefs.h
2846 echo "$as_me: failed program was:" >&5
2847 sed 's/^/| /' conftest.$ac_ext >&5
2850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2852 ac_cpp='$CPP $CPPFLAGS'
2853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2857 depcc="$CC" am_compiler_list=
2859 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2860 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2861 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2862 echo $ECHO_N "(cached) $ECHO_C" >&6
2864 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2865 # We make a subdir and do the tests there. Otherwise we can end up
2866 # making bogus files that we don't know about and never remove. For
2867 # instance it was reported that on HP-UX the gcc test will end up
2868 # making a dummy file named `D' -- because `-MD' means `put the output
2871 # Copy depcomp to subdir because otherwise we won't find it if we're
2872 # using a relative directory.
2873 cp "$am_depcomp" conftest.dir
2875 # We will build objects and dependencies in a subdirectory because
2876 # it helps to detect inapplicable dependency modes. For instance
2877 # both Tru64's cc and ICC support -MD to output dependencies as a
2878 # side effect of compilation, but ICC will put the dependencies in
2879 # the current directory while Tru64 will put them in the object
2883 am_cv_CC_dependencies_compiler_type=none
2884 if test "$am_compiler_list" = ""; then
2885 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2887 for depmode in $am_compiler_list; do
2888 # Setup a source with many dependencies, because some compilers
2889 # like to wrap large dependency lists on column 80 (with \), and
2890 # we should not choose a depcomp mode which is confused by this.
2892 # We need to recreate these files for each test, as the compiler may
2893 # overwrite some of them when testing with obscure command lines.
2894 # This happens at least with the AIX C compiler.
2896 for i in 1 2 3 4 5 6; do
2897 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2898 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2899 # Solaris 8's {/usr,}/bin/sh.
2900 touch sub/conftst$i.h
2902 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2906 # after this tag, mechanisms are not by side-effect, so they'll
2907 # only be used when explicitly requested
2908 if test "x$enable_dependency_tracking" = xyes; then
2916 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2917 # mode. It turns out that the SunPro C++ compiler does not properly
2918 # handle `-M -o', and we need to detect this.
2919 if depmode=$depmode \
2920 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2921 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2922 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2923 >/dev/null 2>conftest.err &&
2924 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2925 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2926 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2927 # icc doesn't choke on unknown options, it will just issue warnings
2928 # or remarks (even with -Werror). So we grep stderr for any message
2929 # that says an option was ignored or not supported.
2930 # When given -MP, icc 7.0 and 7.1 complain thusly:
2931 # icc: Command line warning: ignoring option '-M'; no argument required
2932 # The diagnosis changed in icc 8.0:
2933 # icc: Command line remark: option '-MP' not supported
2934 if (grep 'ignoring option' conftest.err ||
2935 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2936 am_cv_CC_dependencies_compiler_type=$depmode
2945 am_cv_CC_dependencies_compiler_type=none
2949 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2950 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2951 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2956 test "x$enable_dependency_tracking" != xno \
2957 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2959 am__fastdepCC_FALSE='#'
2961 am__fastdepCC_TRUE='#'
2962 am__fastdepCC_FALSE=
2968 ac_cpp='$CPP $CPPFLAGS'
2969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2972 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2973 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2974 # On Suns, sometimes $CPP names a directory.
2975 if test -n "$CPP" && test -d "$CPP"; then
2978 if test -z "$CPP"; then
2979 if test "${ac_cv_prog_CPP+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
2982 # Double quotes because CPP needs to be expanded
2983 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2986 for ac_c_preproc_warn_flag in '' yes
2988 # Use a header file that comes with gcc, so configuring glibc
2989 # with a fresh cross-compiler works.
2990 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2991 # <limits.h> exists even on freestanding compilers.
2992 # On the NeXT, cc -E runs the code through the compiler's parser,
2993 # not just through cpp. "Syntax error" is here to catch this case.
2994 cat >conftest.$ac_ext <<_ACEOF
2997 cat confdefs.h >>conftest.$ac_ext
2998 cat >>conftest.$ac_ext <<_ACEOF
2999 /* end confdefs.h. */
3001 # include <limits.h>
3003 # include <assert.h>
3007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3008 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3010 grep -v '^ *+' conftest.er1 >conftest.err
3012 cat conftest.err >&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); } >/dev/null; then
3015 if test -s conftest.err; then
3016 ac_cpp_err=$ac_c_preproc_warn_flag
3017 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3024 if test -z "$ac_cpp_err"; then
3027 echo "$as_me: failed program was:" >&5
3028 sed 's/^/| /' conftest.$ac_ext >&5
3030 # Broken: fails on valid input.
3033 rm -f conftest.err conftest.$ac_ext
3035 # OK, works on sane cases. Now check whether non-existent headers
3036 # can be detected and how.
3037 cat >conftest.$ac_ext <<_ACEOF
3040 cat confdefs.h >>conftest.$ac_ext
3041 cat >>conftest.$ac_ext <<_ACEOF
3042 /* end confdefs.h. */
3043 #include <ac_nonexistent.h>
3045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3048 grep -v '^ *+' conftest.er1 >conftest.err
3050 cat conftest.err >&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); } >/dev/null; then
3053 if test -s conftest.err; then
3054 ac_cpp_err=$ac_c_preproc_warn_flag
3055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3062 if test -z "$ac_cpp_err"; then
3063 # Broken: success on invalid input.
3066 echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.$ac_ext >&5
3069 # Passes both tests.
3073 rm -f conftest.err conftest.$ac_ext
3076 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3077 rm -f conftest.err conftest.$ac_ext
3078 if $ac_preproc_ok; then
3090 echo "$as_me:$LINENO: result: $CPP" >&5
3091 echo "${ECHO_T}$CPP" >&6
3093 for ac_c_preproc_warn_flag in '' yes
3095 # Use a header file that comes with gcc, so configuring glibc
3096 # with a fresh cross-compiler works.
3097 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3098 # <limits.h> exists even on freestanding compilers.
3099 # On the NeXT, cc -E runs the code through the compiler's parser,
3100 # not just through cpp. "Syntax error" is here to catch this case.
3101 cat >conftest.$ac_ext <<_ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h. */
3108 # include <limits.h>
3110 # include <assert.h>
3114 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3115 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3117 grep -v '^ *+' conftest.er1 >conftest.err
3119 cat conftest.err >&5
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); } >/dev/null; then
3122 if test -s conftest.err; then
3123 ac_cpp_err=$ac_c_preproc_warn_flag
3124 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3131 if test -z "$ac_cpp_err"; then
3134 echo "$as_me: failed program was:" >&5
3135 sed 's/^/| /' conftest.$ac_ext >&5
3137 # Broken: fails on valid input.
3140 rm -f conftest.err conftest.$ac_ext
3142 # OK, works on sane cases. Now check whether non-existent headers
3143 # can be detected and how.
3144 cat >conftest.$ac_ext <<_ACEOF
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h. */
3150 #include <ac_nonexistent.h>
3152 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3153 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3155 grep -v '^ *+' conftest.er1 >conftest.err
3157 cat conftest.err >&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); } >/dev/null; then
3160 if test -s conftest.err; then
3161 ac_cpp_err=$ac_c_preproc_warn_flag
3162 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3169 if test -z "$ac_cpp_err"; then
3170 # Broken: success on invalid input.
3173 echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3176 # Passes both tests.
3180 rm -f conftest.err conftest.$ac_ext
3183 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3184 rm -f conftest.err conftest.$ac_ext
3185 if $ac_preproc_ok; then
3188 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3189 See \`config.log' for more details." >&5
3190 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3191 See \`config.log' for more details." >&2;}
3192 { (exit 1); exit 1; }; }
3196 ac_cpp='$CPP $CPPFLAGS'
3197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3202 echo "$as_me:$LINENO: checking for egrep" >&5
3203 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3204 if test "${ac_cv_prog_egrep+set}" = set; then
3205 echo $ECHO_N "(cached) $ECHO_C" >&6
3207 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3208 then ac_cv_prog_egrep='grep -E'
3209 else ac_cv_prog_egrep='egrep'
3212 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3213 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3214 EGREP=$ac_cv_prog_egrep
3217 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3218 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3219 if test "${ac_cv_header_stdc+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
3222 cat >conftest.$ac_ext <<_ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h. */
3241 rm -f conftest.$ac_objext
3242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3243 (eval $ac_compile) 2>conftest.er1
3245 grep -v '^ *+' conftest.er1 >conftest.err
3247 cat conftest.err >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } &&
3250 { ac_try='test -z "$ac_c_werror_flag"
3251 || test ! -s conftest.err'
3252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); }; } &&
3257 { ac_try='test -s conftest.$ac_objext'
3258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }; }; then
3263 ac_cv_header_stdc=yes
3265 echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3268 ac_cv_header_stdc=no
3270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3272 if test $ac_cv_header_stdc = yes; then
3273 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3274 cat >conftest.$ac_ext <<_ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h. */
3283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3284 $EGREP "memchr" >/dev/null 2>&1; then
3287 ac_cv_header_stdc=no
3293 if test $ac_cv_header_stdc = yes; then
3294 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3295 cat >conftest.$ac_ext <<_ACEOF
3298 cat confdefs.h >>conftest.$ac_ext
3299 cat >>conftest.$ac_ext <<_ACEOF
3300 /* end confdefs.h. */
3304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3305 $EGREP "free" >/dev/null 2>&1; then
3308 ac_cv_header_stdc=no
3314 if test $ac_cv_header_stdc = yes; then
3315 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3316 if test "$cross_compiling" = yes; then
3319 cat >conftest.$ac_ext <<_ACEOF
3322 cat confdefs.h >>conftest.$ac_ext
3323 cat >>conftest.$ac_ext <<_ACEOF
3324 /* end confdefs.h. */
3326 #if ((' ' & 0x0FF) == 0x020)
3327 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3328 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3330 # define ISLOWER(c) \
3331 (('a' <= (c) && (c) <= 'i') \
3332 || ('j' <= (c) && (c) <= 'r') \
3333 || ('s' <= (c) && (c) <= 'z'))
3334 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3337 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3342 for (i = 0; i < 256; i++)
3343 if (XOR (islower (i), ISLOWER (i))
3344 || toupper (i) != TOUPPER (i))
3349 rm -f conftest$ac_exeext
3350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3351 (eval $ac_link) 2>&5
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; }; then
3362 echo "$as_me: program exited with status $ac_status" >&5
3363 echo "$as_me: failed program was:" >&5
3364 sed 's/^/| /' conftest.$ac_ext >&5
3367 ac_cv_header_stdc=no
3369 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3373 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3374 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3375 if test $ac_cv_header_stdc = yes; then
3377 cat >>confdefs.h <<\_ACEOF
3378 #define STDC_HEADERS 1
3383 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3393 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3394 inttypes.h stdint.h unistd.h
3396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3397 echo "$as_me:$LINENO: checking for $ac_header" >&5
3398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 cat >conftest.$ac_ext <<_ACEOF
3405 cat confdefs.h >>conftest.$ac_ext
3406 cat >>conftest.$ac_ext <<_ACEOF
3407 /* end confdefs.h. */
3408 $ac_includes_default
3410 #include <$ac_header>
3412 rm -f conftest.$ac_objext
3413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3414 (eval $ac_compile) 2>conftest.er1
3416 grep -v '^ *+' conftest.er1 >conftest.err
3418 cat conftest.err >&5
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); } &&
3421 { ac_try='test -z "$ac_c_werror_flag"
3422 || test ! -s conftest.err'
3423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); }; } &&
3428 { ac_try='test -s conftest.$ac_objext'
3429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); }; }; then
3434 eval "$as_ac_Header=yes"
3436 echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3439 eval "$as_ac_Header=no"
3441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3446 cat >>confdefs.h <<_ACEOF
3447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3456 for ac_header in X11/extensions/Xdbe.h
3458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3460 echo "$as_me:$LINENO: checking for $ac_header" >&5
3461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3468 # Is the header compilable?
3469 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3470 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3471 cat >conftest.$ac_ext <<_ACEOF
3474 cat confdefs.h >>conftest.$ac_ext
3475 cat >>conftest.$ac_ext <<_ACEOF
3476 /* end confdefs.h. */
3477 $ac_includes_default
3478 #include <$ac_header>
3480 rm -f conftest.$ac_objext
3481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3482 (eval $ac_compile) 2>conftest.er1
3484 grep -v '^ *+' conftest.er1 >conftest.err
3486 cat conftest.err >&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } &&
3489 { ac_try='test -z "$ac_c_werror_flag"
3490 || test ! -s conftest.err'
3491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); }; } &&
3496 { ac_try='test -s conftest.$ac_objext'
3497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); }; }; then
3502 ac_header_compiler=yes
3504 echo "$as_me: failed program was:" >&5
3505 sed 's/^/| /' conftest.$ac_ext >&5
3507 ac_header_compiler=no
3509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3510 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3511 echo "${ECHO_T}$ac_header_compiler" >&6
3513 # Is the header present?
3514 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3515 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3516 cat >conftest.$ac_ext <<_ACEOF
3519 cat confdefs.h >>conftest.$ac_ext
3520 cat >>conftest.$ac_ext <<_ACEOF
3521 /* end confdefs.h. */
3522 #include <$ac_header>
3524 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3525 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3527 grep -v '^ *+' conftest.er1 >conftest.err
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } >/dev/null; then
3532 if test -s conftest.err; then
3533 ac_cpp_err=$ac_c_preproc_warn_flag
3534 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3541 if test -z "$ac_cpp_err"; then
3542 ac_header_preproc=yes
3544 echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3547 ac_header_preproc=no
3549 rm -f conftest.err conftest.$ac_ext
3550 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3551 echo "${ECHO_T}$ac_header_preproc" >&6
3553 # So? What about this header?
3554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3556 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3557 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3559 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3560 ac_header_preproc=yes
3563 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3564 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3565 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3566 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3567 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3568 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3569 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3570 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3573 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3574 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3577 ## ------------------------------------------ ##
3578 ## Report this to the AC_PACKAGE_NAME lists. ##
3579 ## ------------------------------------------ ##
3582 sed "s/^/$as_me: WARNING: /" >&2
3585 echo "$as_me:$LINENO: checking for $ac_header" >&5
3586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3588 echo $ECHO_N "(cached) $ECHO_C" >&6
3590 eval "$as_ac_Header=\$ac_header_preproc"
3592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3597 cat >>confdefs.h <<_ACEOF
3598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3601 cat >>confdefs.h <<\_ACEOF
3611 if test "x$XDBE_MISSING" = xyes; then
3612 { { echo "$as_me:$LINENO: error: something went wrong when checking for Xdbe (double buffer extension" >&5
3613 echo "$as_me: error: something went wrong when checking for Xdbe (double buffer extension" >&2;}
3614 { (exit 1); exit 1; }; }
3620 # Check whether --enable-proc_uptime or --disable-proc_uptime was given.
3621 if test "${enable_proc_uptime+set}" = set; then
3622 enableval="$enable_proc_uptime"
3626 if test $dah = "yes"; then
3628 cat >>confdefs.h <<\_ACEOF
3629 #define PROC_UPTIME 1
3636 # Check whether --enable-seti or --disable-seti was given.
3637 if test "${enable_seti+set}" = set; then
3638 enableval="$enable_seti"
3639 want_seti="$enableval"
3644 if test x$want_seti == xyes; then
3646 BUILD_SETI_FALSE='#'
3652 if test x$want_seti == xyes; then
3654 cat >>confdefs.h <<\_ACEOF
3662 # Check whether --enable-mpd or --disable-mpd was given.
3663 if test "${enable_mpd+set}" = set; then
3664 enableval="$enable_mpd"
3665 want_mpd="$enableval"
3670 if test x$want_mpd == xyes; then
3678 if test x$want_mpd == xyes; then
3680 cat >>confdefs.h <<\_ACEOF
3688 # Check whether --enable-cairo or --disable-cairo was given.
3689 if test "${enable_cairo+set}" = set; then
3690 enableval="$enable_cairo"
3691 want_cairo="$enableval"
3696 if test x$want_cairo == xyes; then
3698 BUILD_CAIRO_FALSE='#'
3700 BUILD_CAIRO_TRUE='#'
3706 if test "$want_cairo" = "yes"; then
3709 for ac_header in cairo.h cairo-xlib.h
3711 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3713 echo "$as_me:$LINENO: checking for $ac_header" >&5
3714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
3718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3721 # Is the header compilable?
3722 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3724 cat >conftest.$ac_ext <<_ACEOF
3727 cat confdefs.h >>conftest.$ac_ext
3728 cat >>conftest.$ac_ext <<_ACEOF
3729 /* end confdefs.h. */
3730 $ac_includes_default
3731 #include <$ac_header>
3733 rm -f conftest.$ac_objext
3734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3735 (eval $ac_compile) 2>conftest.er1
3737 grep -v '^ *+' conftest.er1 >conftest.err
3739 cat conftest.err >&5
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); } &&
3742 { ac_try='test -z "$ac_c_werror_flag"
3743 || test ! -s conftest.err'
3744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); }; } &&
3749 { ac_try='test -s conftest.$ac_objext'
3750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); }; }; then
3755 ac_header_compiler=yes
3757 echo "$as_me: failed program was:" >&5
3758 sed 's/^/| /' conftest.$ac_ext >&5
3760 ac_header_compiler=no
3762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3763 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3764 echo "${ECHO_T}$ac_header_compiler" >&6
3766 # Is the header present?
3767 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3769 cat >conftest.$ac_ext <<_ACEOF
3772 cat confdefs.h >>conftest.$ac_ext
3773 cat >>conftest.$ac_ext <<_ACEOF
3774 /* end confdefs.h. */
3775 #include <$ac_header>
3777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3780 grep -v '^ *+' conftest.er1 >conftest.err
3782 cat conftest.err >&5
3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); } >/dev/null; then
3785 if test -s conftest.err; then
3786 ac_cpp_err=$ac_c_preproc_warn_flag
3787 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3794 if test -z "$ac_cpp_err"; then
3795 ac_header_preproc=yes
3797 echo "$as_me: failed program was:" >&5
3798 sed 's/^/| /' conftest.$ac_ext >&5
3800 ac_header_preproc=no
3802 rm -f conftest.err conftest.$ac_ext
3803 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3804 echo "${ECHO_T}$ac_header_preproc" >&6
3806 # So? What about this header?
3807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3809 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3810 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3812 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3813 ac_header_preproc=yes
3816 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3817 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3818 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3819 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3820 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3821 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3822 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3823 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3825 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3826 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3827 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3830 ## ------------------------------------------ ##
3831 ## Report this to the AC_PACKAGE_NAME lists. ##
3832 ## ------------------------------------------ ##
3835 sed "s/^/$as_me: WARNING: /" >&2
3838 echo "$as_me:$LINENO: checking for $ac_header" >&5
3839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3843 eval "$as_ac_Header=\$ac_header_preproc"
3845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3850 cat >>confdefs.h <<_ACEOF
3851 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3860 if test "x$CAIRO_MISSING" = xyes; then
3861 { { echo "$as_me:$LINENO: error: something went wrong when checking for cairo, you're probably missing headers or it's not installed" >&5
3862 echo "$as_me: error: something went wrong when checking for cairo, you're probably missing headers or it's not installed" >&2;}
3863 { (exit 1); exit 1; }; }
3865 # Extract the first word of "pkg-config", so it can be a program name with args.
3866 set dummy pkg-config; ac_word=$2
3867 echo "$as_me:$LINENO: checking for $ac_word" >&5
3868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3869 if test "${ac_cv_path_CAIROCONFIG+set}" = set; then
3870 echo $ECHO_N "(cached) $ECHO_C" >&6
3872 case $CAIROCONFIG in
3874 ac_cv_path_CAIROCONFIG="$CAIROCONFIG" # Let the user override the test with a path.
3877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3881 test -z "$as_dir" && as_dir=.
3882 for ac_exec_ext in '' $ac_executable_extensions; do
3883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3884 ac_cv_path_CAIROCONFIG="$as_dir/$ac_word$ac_exec_ext"
3885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3894 CAIROCONFIG=$ac_cv_path_CAIROCONFIG
3896 if test -n "$CAIROCONFIG"; then
3897 echo "$as_me:$LINENO: result: $CAIROCONFIG" >&5
3898 echo "${ECHO_T}$CAIROCONFIG" >&6
3900 echo "$as_me:$LINENO: result: no" >&5
3901 echo "${ECHO_T}no" >&6
3904 if test x$CAIROCONFIG != x; then
3907 cat >>confdefs.h <<\_ACEOF
3911 CFLAGS="$CFLAGS `$CAIROCONFIG --cflags cairo` `$CAIROCONFIG --libs cairo` "
3912 CAIRO_LIBS="`$CAIROCONFIG --libs cairo` `$CAIROCONFIG --cflags cairo`"
3921 # Check whether --enable-mldonkey or --disable-mldonkey was given.
3922 if test "${enable_mldonkey+set}" = set; then
3923 enableval="$enable_mldonkey"
3924 want_mldonkey="$enableval"
3929 if test x$want_mldonkey == xyes; then
3930 BUILD_MLDONKEY_TRUE=
3931 BUILD_MLDONKEY_FALSE='#'
3933 BUILD_MLDONKEY_TRUE='#'
3934 BUILD_MLDONKEY_FALSE=
3937 if test x$want_mldonkey == xyes; then
3939 cat >>confdefs.h <<\_ACEOF
3947 ac_cpp='$CPP $CPPFLAGS'
3948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3951 if test -n "$ac_tool_prefix"; then
3952 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3953 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3954 echo "$as_me:$LINENO: checking for $ac_word" >&5
3955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3956 if test "${ac_cv_prog_CC+set}" = set; then
3957 echo $ECHO_N "(cached) $ECHO_C" >&6
3959 if test -n "$CC"; then
3960 ac_cv_prog_CC="$CC" # Let the user override the test.
3962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966 test -z "$as_dir" && as_dir=.
3967 for ac_exec_ext in '' $ac_executable_extensions; do
3968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3969 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3979 if test -n "$CC"; then
3980 echo "$as_me:$LINENO: result: $CC" >&5
3981 echo "${ECHO_T}$CC" >&6
3983 echo "$as_me:$LINENO: result: no" >&5
3984 echo "${ECHO_T}no" >&6
3988 if test -z "$ac_cv_prog_CC"; then
3990 # Extract the first word of "gcc", so it can be a program name with args.
3991 set dummy gcc; ac_word=$2
3992 echo "$as_me:$LINENO: checking for $ac_word" >&5
3993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3994 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3997 if test -n "$ac_ct_CC"; then
3998 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004 test -z "$as_dir" && as_dir=.
4005 for ac_exec_ext in '' $ac_executable_extensions; do
4006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4007 ac_cv_prog_ac_ct_CC="gcc"
4008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4016 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4017 if test -n "$ac_ct_CC"; then
4018 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4019 echo "${ECHO_T}$ac_ct_CC" >&6
4021 echo "$as_me:$LINENO: result: no" >&5
4022 echo "${ECHO_T}no" >&6
4030 if test -z "$CC"; then
4031 if test -n "$ac_tool_prefix"; then
4032 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4033 set dummy ${ac_tool_prefix}cc; ac_word=$2
4034 echo "$as_me:$LINENO: checking for $ac_word" >&5
4035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4036 if test "${ac_cv_prog_CC+set}" = set; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4039 if test -n "$CC"; then
4040 ac_cv_prog_CC="$CC" # Let the user override the test.
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046 test -z "$as_dir" && as_dir=.
4047 for ac_exec_ext in '' $ac_executable_extensions; do
4048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4049 ac_cv_prog_CC="${ac_tool_prefix}cc"
4050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4059 if test -n "$CC"; then
4060 echo "$as_me:$LINENO: result: $CC" >&5
4061 echo "${ECHO_T}$CC" >&6
4063 echo "$as_me:$LINENO: result: no" >&5
4064 echo "${ECHO_T}no" >&6
4068 if test -z "$ac_cv_prog_CC"; then
4070 # Extract the first word of "cc", so it can be a program name with args.
4071 set dummy cc; ac_word=$2
4072 echo "$as_me:$LINENO: checking for $ac_word" >&5
4073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4074 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4075 echo $ECHO_N "(cached) $ECHO_C" >&6
4077 if test -n "$ac_ct_CC"; then
4078 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4084 test -z "$as_dir" && as_dir=.
4085 for ac_exec_ext in '' $ac_executable_extensions; do
4086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4087 ac_cv_prog_ac_ct_CC="cc"
4088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4096 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4097 if test -n "$ac_ct_CC"; then
4098 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4099 echo "${ECHO_T}$ac_ct_CC" >&6
4101 echo "$as_me:$LINENO: result: no" >&5
4102 echo "${ECHO_T}no" >&6
4111 if test -z "$CC"; then
4112 # Extract the first word of "cc", so it can be a program name with args.
4113 set dummy cc; ac_word=$2
4114 echo "$as_me:$LINENO: checking for $ac_word" >&5
4115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4116 if test "${ac_cv_prog_CC+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4119 if test -n "$CC"; then
4120 ac_cv_prog_CC="$CC" # Let the user override the test.
4123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127 test -z "$as_dir" && as_dir=.
4128 for ac_exec_ext in '' $ac_executable_extensions; do
4129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4130 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4131 ac_prog_rejected=yes
4135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4141 if test $ac_prog_rejected = yes; then
4142 # We found a bogon in the path, so make sure we never use it.
4143 set dummy $ac_cv_prog_CC
4145 if test $# != 0; then
4146 # We chose a different compiler from the bogus one.
4147 # However, it has the same basename, so the bogon will be chosen
4148 # first if we set CC to just the basename; use the full file name.
4150 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4156 if test -n "$CC"; then
4157 echo "$as_me:$LINENO: result: $CC" >&5
4158 echo "${ECHO_T}$CC" >&6
4160 echo "$as_me:$LINENO: result: no" >&5
4161 echo "${ECHO_T}no" >&6
4165 if test -z "$CC"; then
4166 if test -n "$ac_tool_prefix"; then
4169 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4170 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4171 echo "$as_me:$LINENO: checking for $ac_word" >&5
4172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4173 if test "${ac_cv_prog_CC+set}" = set; then
4174 echo $ECHO_N "(cached) $ECHO_C" >&6
4176 if test -n "$CC"; then
4177 ac_cv_prog_CC="$CC" # Let the user override the test.
4179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 test -z "$as_dir" && as_dir=.
4184 for ac_exec_ext in '' $ac_executable_extensions; do
4185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4186 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4196 if test -n "$CC"; then
4197 echo "$as_me:$LINENO: result: $CC" >&5
4198 echo "${ECHO_T}$CC" >&6
4200 echo "$as_me:$LINENO: result: no" >&5
4201 echo "${ECHO_T}no" >&6
4204 test -n "$CC" && break
4207 if test -z "$CC"; then
4211 # Extract the first word of "$ac_prog", so it can be a program name with args.
4212 set dummy $ac_prog; ac_word=$2
4213 echo "$as_me:$LINENO: checking for $ac_word" >&5
4214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4215 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4216 echo $ECHO_N "(cached) $ECHO_C" >&6
4218 if test -n "$ac_ct_CC"; then
4219 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 test -z "$as_dir" && as_dir=.
4226 for ac_exec_ext in '' $ac_executable_extensions; do
4227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4228 ac_cv_prog_ac_ct_CC="$ac_prog"
4229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4237 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4238 if test -n "$ac_ct_CC"; then
4239 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4240 echo "${ECHO_T}$ac_ct_CC" >&6
4242 echo "$as_me:$LINENO: result: no" >&5
4243 echo "${ECHO_T}no" >&6
4246 test -n "$ac_ct_CC" && break
4255 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4256 See \`config.log' for more details." >&5
4257 echo "$as_me: error: no acceptable C compiler found in \$PATH
4258 See \`config.log' for more details." >&2;}
4259 { (exit 1); exit 1; }; }
4261 # Provide some information about the compiler.
4262 echo "$as_me:$LINENO:" \
4263 "checking for C compiler version" >&5
4264 ac_compiler=`set X $ac_compile; echo $2`
4265 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4266 (eval $ac_compiler --version </dev/null >&5) 2>&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); }
4270 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4271 (eval $ac_compiler -v </dev/null >&5) 2>&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }
4275 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4276 (eval $ac_compiler -V </dev/null >&5) 2>&5
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); }
4281 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4282 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4283 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4286 cat >conftest.$ac_ext <<_ACEOF
4289 cat confdefs.h >>conftest.$ac_ext
4290 cat >>conftest.$ac_ext <<_ACEOF
4291 /* end confdefs.h. */
4304 rm -f conftest.$ac_objext
4305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4306 (eval $ac_compile) 2>conftest.er1
4308 grep -v '^ *+' conftest.er1 >conftest.err
4310 cat conftest.err >&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); } &&
4313 { ac_try='test -z "$ac_c_werror_flag"
4314 || test ! -s conftest.err'
4315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); }; } &&
4320 { ac_try='test -s conftest.$ac_objext'
4321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); }; }; then
4328 echo "$as_me: failed program was:" >&5
4329 sed 's/^/| /' conftest.$ac_ext >&5
4333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4334 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4337 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4338 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4339 GCC=`test $ac_compiler_gnu = yes && echo yes`
4340 ac_test_CFLAGS=${CFLAGS+set}
4341 ac_save_CFLAGS=$CFLAGS
4343 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4344 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4345 if test "${ac_cv_prog_cc_g+set}" = set; then
4346 echo $ECHO_N "(cached) $ECHO_C" >&6
4348 cat >conftest.$ac_ext <<_ACEOF
4351 cat confdefs.h >>conftest.$ac_ext
4352 cat >>conftest.$ac_ext <<_ACEOF
4353 /* end confdefs.h. */
4363 rm -f conftest.$ac_objext
4364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4365 (eval $ac_compile) 2>conftest.er1
4367 grep -v '^ *+' conftest.er1 >conftest.err
4369 cat conftest.err >&5
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); } &&
4372 { ac_try='test -z "$ac_c_werror_flag"
4373 || test ! -s conftest.err'
4374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; } &&
4379 { ac_try='test -s conftest.$ac_objext'
4380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); }; }; then
4387 echo "$as_me: failed program was:" >&5
4388 sed 's/^/| /' conftest.$ac_ext >&5
4392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4394 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4395 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4396 if test "$ac_test_CFLAGS" = set; then
4397 CFLAGS=$ac_save_CFLAGS
4398 elif test $ac_cv_prog_cc_g = yes; then
4399 if test "$GCC" = yes; then
4405 if test "$GCC" = yes; then
4411 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4412 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4413 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
4416 ac_cv_prog_cc_stdc=no
4418 cat >conftest.$ac_ext <<_ACEOF
4421 cat confdefs.h >>conftest.$ac_ext
4422 cat >>conftest.$ac_ext <<_ACEOF
4423 /* end confdefs.h. */
4426 #include <sys/types.h>
4427 #include <sys/stat.h>
4428 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4429 struct buf { int x; };
4430 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4431 static char *e (p, i)
4437 static char *f (char * (*g) (char **, int), char **p, ...)
4442 s = g (p, va_arg (v,int));
4447 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4448 function prototypes and stuff, but not '\xHH' hex character constants.
4449 These don't provoke an error unfortunately, instead are silently treated
4450 as 'x'. The following induces an error, until -std1 is added to get
4451 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4452 array size at least. It's necessary to write '\x00'==0 to get something
4453 that's true only with -std1. */
4454 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4456 int test (int i, double x);
4457 struct s1 {int (*f) (int a);};
4458 struct s2 {int (*f) (double a);};
4459 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4465 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4470 # Don't try gcc -ansi; that turns off useful extensions and
4471 # breaks some systems' header files.
4472 # AIX -qlanglvl=ansi
4473 # Ultrix and OSF/1 -std1
4474 # HP-UX 10.20 and later -Ae
4475 # HP-UX older versions -Aa -D_HPUX_SOURCE
4476 # SVR4 -Xc -D__EXTENSIONS__
4477 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4479 CC="$ac_save_CC $ac_arg"
4480 rm -f conftest.$ac_objext
4481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4482 (eval $ac_compile) 2>conftest.er1
4484 grep -v '^ *+' conftest.er1 >conftest.err
4486 cat conftest.err >&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); } &&
4489 { ac_try='test -z "$ac_c_werror_flag"
4490 || test ! -s conftest.err'
4491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); }; } &&
4496 { ac_try='test -s conftest.$ac_objext'
4497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; }; then
4502 ac_cv_prog_cc_stdc=$ac_arg
4505 echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4509 rm -f conftest.err conftest.$ac_objext
4511 rm -f conftest.$ac_ext conftest.$ac_objext
4516 case "x$ac_cv_prog_cc_stdc" in
4518 echo "$as_me:$LINENO: result: none needed" >&5
4519 echo "${ECHO_T}none needed" >&6 ;;
4521 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4522 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4523 CC="$CC $ac_cv_prog_cc_stdc" ;;
4526 # Some people use a C++ compiler to compile C. Since we use `exit',
4527 # in C++ we need to declare it. In case someone uses the same compiler
4528 # for both compiling C and C++ we need to have the C++ compiler decide
4529 # the declaration of exit, since it's the most demanding environment.
4530 cat >conftest.$ac_ext <<_ACEOF
4535 rm -f conftest.$ac_objext
4536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4537 (eval $ac_compile) 2>conftest.er1
4539 grep -v '^ *+' conftest.er1 >conftest.err
4541 cat conftest.err >&5
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); } &&
4544 { ac_try='test -z "$ac_c_werror_flag"
4545 || test ! -s conftest.err'
4546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); }; } &&
4551 { ac_try='test -s conftest.$ac_objext'
4552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); }; }; then
4557 for ac_declaration in \
4559 'extern "C" void std::exit (int) throw (); using std::exit;' \
4560 'extern "C" void std::exit (int); using std::exit;' \
4561 'extern "C" void exit (int) throw ();' \
4562 'extern "C" void exit (int);' \
4565 cat >conftest.$ac_ext <<_ACEOF
4568 cat confdefs.h >>conftest.$ac_ext
4569 cat >>conftest.$ac_ext <<_ACEOF
4570 /* end confdefs.h. */
4581 rm -f conftest.$ac_objext
4582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4583 (eval $ac_compile) 2>conftest.er1
4585 grep -v '^ *+' conftest.er1 >conftest.err
4587 cat conftest.err >&5
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); } &&
4590 { ac_try='test -z "$ac_c_werror_flag"
4591 || test ! -s conftest.err'
4592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; } &&
4597 { ac_try='test -s conftest.$ac_objext'
4598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; }; then
4605 echo "$as_me: failed program was:" >&5
4606 sed 's/^/| /' conftest.$ac_ext >&5
4610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4611 cat >conftest.$ac_ext <<_ACEOF
4614 cat confdefs.h >>conftest.$ac_ext
4615 cat >>conftest.$ac_ext <<_ACEOF
4616 /* end confdefs.h. */
4626 rm -f conftest.$ac_objext
4627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4628 (eval $ac_compile) 2>conftest.er1
4630 grep -v '^ *+' conftest.er1 >conftest.err
4632 cat conftest.err >&5
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); } &&
4635 { ac_try='test -z "$ac_c_werror_flag"
4636 || test ! -s conftest.err'
4637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); }; } &&
4642 { ac_try='test -s conftest.$ac_objext'
4643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); }; }; then
4650 echo "$as_me: failed program was:" >&5
4651 sed 's/^/| /' conftest.$ac_ext >&5
4654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4657 if test -n "$ac_declaration"; then
4658 echo '#ifdef __cplusplus' >>confdefs.h
4659 echo $ac_declaration >>confdefs.h
4660 echo '#endif' >>confdefs.h
4664 echo "$as_me: failed program was:" >&5
4665 sed 's/^/| /' conftest.$ac_ext >&5
4668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4670 ac_cpp='$CPP $CPPFLAGS'
4671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4675 depcc="$CC" am_compiler_list=
4677 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4678 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4679 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
4682 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4683 # We make a subdir and do the tests there. Otherwise we can end up
4684 # making bogus files that we don't know about and never remove. For
4685 # instance it was reported that on HP-UX the gcc test will end up
4686 # making a dummy file named `D' -- because `-MD' means `put the output
4689 # Copy depcomp to subdir because otherwise we won't find it if we're
4690 # using a relative directory.
4691 cp "$am_depcomp" conftest.dir
4693 # We will build objects and dependencies in a subdirectory because
4694 # it helps to detect inapplicable dependency modes. For instance
4695 # both Tru64's cc and ICC support -MD to output dependencies as a
4696 # side effect of compilation, but ICC will put the dependencies in
4697 # the current directory while Tru64 will put them in the object
4701 am_cv_CC_dependencies_compiler_type=none
4702 if test "$am_compiler_list" = ""; then
4703 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4705 for depmode in $am_compiler_list; do
4706 # Setup a source with many dependencies, because some compilers
4707 # like to wrap large dependency lists on column 80 (with \), and
4708 # we should not choose a depcomp mode which is confused by this.
4710 # We need to recreate these files for each test, as the compiler may
4711 # overwrite some of them when testing with obscure command lines.
4712 # This happens at least with the AIX C compiler.
4714 for i in 1 2 3 4 5 6; do
4715 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4716 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4717 # Solaris 8's {/usr,}/bin/sh.
4718 touch sub/conftst$i.h
4720 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4724 # after this tag, mechanisms are not by side-effect, so they'll
4725 # only be used when explicitly requested
4726 if test "x$enable_dependency_tracking" = xyes; then
4734 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4735 # mode. It turns out that the SunPro C++ compiler does not properly
4736 # handle `-M -o', and we need to detect this.
4737 if depmode=$depmode \
4738 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4739 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4740 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4741 >/dev/null 2>conftest.err &&
4742 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4743 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4744 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4745 # icc doesn't choke on unknown options, it will just issue warnings
4746 # or remarks (even with -Werror). So we grep stderr for any message
4747 # that says an option was ignored or not supported.
4748 # When given -MP, icc 7.0 and 7.1 complain thusly:
4749 # icc: Command line warning: ignoring option '-M'; no argument required
4750 # The diagnosis changed in icc 8.0:
4751 # icc: Command line remark: option '-MP' not supported
4752 if (grep 'ignoring option' conftest.err ||
4753 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4754 am_cv_CC_dependencies_compiler_type=$depmode
4763 am_cv_CC_dependencies_compiler_type=none
4767 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4768 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4769 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4774 test "x$enable_dependency_tracking" != xno \
4775 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4777 am__fastdepCC_FALSE='#'
4779 am__fastdepCC_TRUE='#'
4780 am__fastdepCC_FALSE=
4787 # Check whether --enable-x11 or --disable-x11 was given.
4788 if test "${enable_x11+set}" = set; then
4789 enableval="$enable_x11"
4790 want_x11="$enableval"
4796 if test x$want_x11 == xyes; then
4804 if test x$want_x11 == xyes; then
4805 echo "$as_me:$LINENO: checking for X" >&5
4806 echo $ECHO_N "checking for X... $ECHO_C" >&6
4809 # Check whether --with-x or --without-x was given.
4810 if test "${with_x+set}" = set; then
4814 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4815 if test "x$with_x" = xno; then
4816 # The user explicitly disabled X.
4819 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4820 # Both variables are already set.
4823 if test "${ac_cv_have_x+set}" = set; then
4824 echo $ECHO_N "(cached) $ECHO_C" >&6
4826 # One or both of the vars are not set, and there is no cached value.
4827 ac_x_includes=no ac_x_libraries=no
4829 if mkdir conftest.dir; then
4831 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4832 cat >Imakefile <<'_ACEOF'
4834 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4836 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4837 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4838 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4839 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4840 for ac_extension in a so sl; do
4841 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4842 test -f $ac_im_libdir/libX11.$ac_extension; then
4843 ac_im_usrlibdir=$ac_im_libdir; break
4846 # Screen out bogus values from the imake configuration. They are
4847 # bogus both because they are the default anyway, and because
4848 # using them would break gcc on systems where it needs fixed includes.
4849 case $ac_im_incroot in
4851 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4853 case $ac_im_usrlibdir in
4855 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4862 # Standard set of common directories for X headers.
4863 # Check X11 before X11Rn because it is often a symlink to the current release.
4875 /usr/local/X11/include
4876 /usr/local/X11R6/include
4877 /usr/local/X11R5/include
4878 /usr/local/X11R4/include
4880 /usr/local/include/X11
4881 /usr/local/include/X11R6
4882 /usr/local/include/X11R5
4883 /usr/local/include/X11R4
4887 /usr/XFree86/include/X11
4891 /usr/unsupported/include
4893 /usr/local/x11r5/include
4894 /usr/lpp/Xamples/include
4896 /usr/openwin/include
4897 /usr/openwin/share/include'
4899 if test "$ac_x_includes" = no; then
4900 # Guess where to find include files, by looking for Intrinsic.h.
4901 # First, try using that file with no special directory specified.
4902 cat >conftest.$ac_ext <<_ACEOF
4905 cat confdefs.h >>conftest.$ac_ext
4906 cat >>conftest.$ac_ext <<_ACEOF
4907 /* end confdefs.h. */
4908 #include <X11/Intrinsic.h>
4910 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4911 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4913 grep -v '^ *+' conftest.er1 >conftest.err
4915 cat conftest.err >&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); } >/dev/null; then
4918 if test -s conftest.err; then
4919 ac_cpp_err=$ac_c_preproc_warn_flag
4920 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4927 if test -z "$ac_cpp_err"; then
4928 # We can compile using X headers with no special include directory.
4931 echo "$as_me: failed program was:" >&5
4932 sed 's/^/| /' conftest.$ac_ext >&5
4934 for ac_dir in $ac_x_header_dirs; do
4935 if test -r "$ac_dir/X11/Intrinsic.h"; then
4936 ac_x_includes=$ac_dir
4941 rm -f conftest.err conftest.$ac_ext
4942 fi # $ac_x_includes = no
4944 if test "$ac_x_libraries" = no; then
4945 # Check for the libraries.
4946 # See if we find them without any special options.
4947 # Don't add to $LIBS permanently.
4950 cat >conftest.$ac_ext <<_ACEOF
4953 cat confdefs.h >>conftest.$ac_ext
4954 cat >>conftest.$ac_ext <<_ACEOF
4955 /* end confdefs.h. */
4956 #include <X11/Intrinsic.h>
4965 rm -f conftest.$ac_objext conftest$ac_exeext
4966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4967 (eval $ac_link) 2>conftest.er1
4969 grep -v '^ *+' conftest.er1 >conftest.err
4971 cat conftest.err >&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } &&
4974 { ac_try='test -z "$ac_c_werror_flag"
4975 || test ! -s conftest.err'
4976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); }; } &&
4981 { ac_try='test -s conftest$ac_exeext'
4982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); }; }; then
4988 # We can link X programs with no special library path.
4991 echo "$as_me: failed program was:" >&5
4992 sed 's/^/| /' conftest.$ac_ext >&5
4995 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4997 # Don't even attempt the hair of trying to link an X program!
4998 for ac_extension in a so sl; do
4999 if test -r $ac_dir/libXt.$ac_extension; then
5000 ac_x_libraries=$ac_dir
5006 rm -f conftest.err conftest.$ac_objext \
5007 conftest$ac_exeext conftest.$ac_ext
5008 fi # $ac_x_libraries = no
5010 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5011 # Didn't find X anywhere. Cache the known absence of X.
5012 ac_cv_have_x="have_x=no"
5014 # Record where we found X for the cache.
5015 ac_cv_have_x="have_x=yes \
5016 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5021 eval "$ac_cv_have_x"
5024 if test "$have_x" != yes; then
5025 echo "$as_me:$LINENO: result: $have_x" >&5
5026 echo "${ECHO_T}$have_x" >&6
5029 # If each of the values was on the command line, it overrides each guess.
5030 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5031 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5032 # Update the cache value to reflect the command line values.
5033 ac_cv_have_x="have_x=yes \
5034 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5035 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5036 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5040 for ac_header in X11/Xlib.h
5042 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5044 echo "$as_me:$LINENO: checking for $ac_header" >&5
5045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5047 echo $ECHO_N "(cached) $ECHO_C" >&6
5049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5050 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5052 # Is the header compilable?
5053 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5054 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5055 cat >conftest.$ac_ext <<_ACEOF
5058 cat confdefs.h >>conftest.$ac_ext
5059 cat >>conftest.$ac_ext <<_ACEOF
5060 /* end confdefs.h. */
5061 $ac_includes_default
5062 #include <$ac_header>
5064 rm -f conftest.$ac_objext
5065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5066 (eval $ac_compile) 2>conftest.er1
5068 grep -v '^ *+' conftest.er1 >conftest.err
5070 cat conftest.err >&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); } &&
5073 { ac_try='test -z "$ac_c_werror_flag"
5074 || test ! -s conftest.err'
5075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); }; } &&
5080 { ac_try='test -s conftest.$ac_objext'
5081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); }; }; then
5086 ac_header_compiler=yes
5088 echo "$as_me: failed program was:" >&5
5089 sed 's/^/| /' conftest.$ac_ext >&5
5091 ac_header_compiler=no
5093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5094 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5095 echo "${ECHO_T}$ac_header_compiler" >&6
5097 # Is the header present?
5098 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5099 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5100 cat >conftest.$ac_ext <<_ACEOF
5103 cat confdefs.h >>conftest.$ac_ext
5104 cat >>conftest.$ac_ext <<_ACEOF
5105 /* end confdefs.h. */
5106 #include <$ac_header>
5108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5109 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5111 grep -v '^ *+' conftest.er1 >conftest.err
5113 cat conftest.err >&5
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); } >/dev/null; then
5116 if test -s conftest.err; then
5117 ac_cpp_err=$ac_c_preproc_warn_flag
5118 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5125 if test -z "$ac_cpp_err"; then
5126 ac_header_preproc=yes
5128 echo "$as_me: failed program was:" >&5
5129 sed 's/^/| /' conftest.$ac_ext >&5
5131 ac_header_preproc=no
5133 rm -f conftest.err conftest.$ac_ext
5134 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5135 echo "${ECHO_T}$ac_header_preproc" >&6
5137 # So? What about this header?
5138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5140 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5141 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5143 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5144 ac_header_preproc=yes
5147 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5148 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5149 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5150 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5151 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5152 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5153 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5154 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5156 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5157 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5158 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5161 ## ------------------------------------------ ##
5162 ## Report this to the AC_PACKAGE_NAME lists. ##
5163 ## ------------------------------------------ ##
5166 sed "s/^/$as_me: WARNING: /" >&2
5169 echo "$as_me:$LINENO: checking for $ac_header" >&5
5170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5174 eval "$as_ac_Header=\$ac_header_preproc"
5176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5181 cat >>confdefs.h <<_ACEOF
5182 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5191 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
5192 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
5193 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
5194 echo $ECHO_N "(cached) $ECHO_C" >&6
5196 ac_check_lib_save_LIBS=$LIBS
5197 LIBS="-lX11 -L$x_libraries $LIBS"
5198 cat >conftest.$ac_ext <<_ACEOF
5201 cat confdefs.h >>conftest.$ac_ext
5202 cat >>conftest.$ac_ext <<_ACEOF
5203 /* end confdefs.h. */
5205 /* Override any gcc2 internal prototype to avoid an error. */
5209 /* We use char because int might match the return type of a gcc2
5210 builtin and then its argument prototype would still apply. */
5211 char XOpenDisplay ();
5220 rm -f conftest.$ac_objext conftest$ac_exeext
5221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5222 (eval $ac_link) 2>conftest.er1
5224 grep -v '^ *+' conftest.er1 >conftest.err
5226 cat conftest.err >&5
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); } &&
5229 { ac_try='test -z "$ac_c_werror_flag"
5230 || test ! -s conftest.err'
5231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); }; } &&
5236 { ac_try='test -s conftest$ac_exeext'
5237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); }; }; then
5242 ac_cv_lib_X11_XOpenDisplay=yes
5244 echo "$as_me: failed program was:" >&5
5245 sed 's/^/| /' conftest.$ac_ext >&5
5247 ac_cv_lib_X11_XOpenDisplay=no
5249 rm -f conftest.err conftest.$ac_objext \
5250 conftest$ac_exeext conftest.$ac_ext
5251 LIBS=$ac_check_lib_save_LIBS
5253 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
5254 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
5255 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
5259 echo "$as_me:$LINENO: checking for XdbeQueryExtension in -lXext" >&5
5260 echo $ECHO_N "checking for XdbeQueryExtension in -lXext... $ECHO_C" >&6
5261 if test "${ac_cv_lib_Xext_XdbeQueryExtension+set}" = set; then
5262 echo $ECHO_N "(cached) $ECHO_C" >&6
5264 ac_check_lib_save_LIBS=$LIBS
5265 LIBS="-lXext -L$x_libraries $X11_LIBS $LIBS"
5266 cat >conftest.$ac_ext <<_ACEOF
5269 cat confdefs.h >>conftest.$ac_ext
5270 cat >>conftest.$ac_ext <<_ACEOF
5271 /* end confdefs.h. */
5273 /* Override any gcc2 internal prototype to avoid an error. */
5277 /* We use char because int might match the return type of a gcc2
5278 builtin and then its argument prototype would still apply. */
5279 char XdbeQueryExtension ();
5283 XdbeQueryExtension ();
5288 rm -f conftest.$ac_objext conftest$ac_exeext
5289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5290 (eval $ac_link) 2>conftest.er1
5292 grep -v '^ *+' conftest.er1 >conftest.err
5294 cat conftest.err >&5
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); } &&
5297 { ac_try='test -z "$ac_c_werror_flag"
5298 || test ! -s conftest.err'
5299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); }; } &&
5304 { ac_try='test -s conftest$ac_exeext'
5305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); }; }; then
5310 ac_cv_lib_Xext_XdbeQueryExtension=yes
5312 echo "$as_me: failed program was:" >&5
5313 sed 's/^/| /' conftest.$ac_ext >&5
5315 ac_cv_lib_Xext_XdbeQueryExtension=no
5317 rm -f conftest.err conftest.$ac_objext \
5318 conftest$ac_exeext conftest.$ac_ext
5319 LIBS=$ac_check_lib_save_LIBS
5321 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XdbeQueryExtension" >&5
5322 echo "${ECHO_T}$ac_cv_lib_Xext_XdbeQueryExtension" >&6
5323 if test $ac_cv_lib_Xext_XdbeQueryExtension = yes; then
5325 X11_LIBS="$X11_LIBS -lXext"
5327 cat >>confdefs.h <<\_ACEOF
5328 #define HAVE_LIBXEXT 1
5334 if test "x$X11_MISSING" = xyes; then
5335 { { echo "$as_me:$LINENO: error: something went wrong when checking for X11, you're probably missing headers or it's not installed, either re-run configure with --disable-x11, or fix this" >&5
5336 echo "$as_me: error: something went wrong when checking for X11, you're probably missing headers or it's not installed, either re-run configure with --disable-x11, or fix this" >&2;}
5337 { (exit 1); exit 1; }; }
5340 cat >>confdefs.h <<\_ACEOF
5345 cat >>confdefs.h <<\_ACEOF
5351 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
5352 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
5353 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
5356 ac_check_lib_save_LIBS=$LIBS
5357 LIBS="-lX11 -L$x_libraries $LIBS"
5358 cat >conftest.$ac_ext <<_ACEOF
5361 cat confdefs.h >>conftest.$ac_ext
5362 cat >>conftest.$ac_ext <<_ACEOF
5363 /* end confdefs.h. */
5365 /* Override any gcc2 internal prototype to avoid an error. */
5369 /* We use char because int might match the return type of a gcc2
5370 builtin and then its argument prototype would still apply. */
5371 char XOpenDisplay ();
5380 rm -f conftest.$ac_objext conftest$ac_exeext
5381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5382 (eval $ac_link) 2>conftest.er1
5384 grep -v '^ *+' conftest.er1 >conftest.err
5386 cat conftest.err >&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); } &&
5389 { ac_try='test -z "$ac_c_werror_flag"
5390 || test ! -s conftest.err'
5391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); }; } &&
5396 { ac_try='test -s conftest$ac_exeext'
5397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); }; }; then
5402 ac_cv_lib_X11_XOpenDisplay=yes
5404 echo "$as_me: failed program was:" >&5
5405 sed 's/^/| /' conftest.$ac_ext >&5
5407 ac_cv_lib_X11_XOpenDisplay=no
5409 rm -f conftest.err conftest.$ac_objext \
5410 conftest$ac_exeext conftest.$ac_ext
5411 LIBS=$ac_check_lib_save_LIBS
5413 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
5414 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
5415 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
5419 echo "$as_me:$LINENO: checking for XdbeQueryExtension in -lXext" >&5
5420 echo $ECHO_N "checking for XdbeQueryExtension in -lXext... $ECHO_C" >&6
5421 if test "${ac_cv_lib_Xext_XdbeQueryExtension+set}" = set; then
5422 echo $ECHO_N "(cached) $ECHO_C" >&6
5424 ac_check_lib_save_LIBS=$LIBS
5425 LIBS="-lXext -L$x_libraries $X11_LIBS $LIBS"
5426 cat >conftest.$ac_ext <<_ACEOF
5429 cat confdefs.h >>conftest.$ac_ext
5430 cat >>conftest.$ac_ext <<_ACEOF
5431 /* end confdefs.h. */
5433 /* Override any gcc2 internal prototype to avoid an error. */
5437 /* We use char because int might match the return type of a gcc2
5438 builtin and then its argument prototype would still apply. */
5439 char XdbeQueryExtension ();
5443 XdbeQueryExtension ();
5448 rm -f conftest.$ac_objext conftest$ac_exeext
5449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5450 (eval $ac_link) 2>conftest.er1
5452 grep -v '^ *+' conftest.er1 >conftest.err
5454 cat conftest.err >&5
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); } &&
5457 { ac_try='test -z "$ac_c_werror_flag"
5458 || test ! -s conftest.err'
5459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463 (exit $ac_status); }; } &&
5464 { ac_try='test -s conftest$ac_exeext'
5465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); }; }; then
5470 ac_cv_lib_Xext_XdbeQueryExtension=yes
5472 echo "$as_me: failed program was:" >&5
5473 sed 's/^/| /' conftest.$ac_ext >&5
5475 ac_cv_lib_Xext_XdbeQueryExtension=no
5477 rm -f conftest.err conftest.$ac_objext \
5478 conftest$ac_exeext conftest.$ac_ext
5479 LIBS=$ac_check_lib_save_LIBS
5481 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XdbeQueryExtension" >&5
5482 echo "${ECHO_T}$ac_cv_lib_Xext_XdbeQueryExtension" >&6
5483 if test $ac_cv_lib_Xext_XdbeQueryExtension = yes; then
5485 X11_LIBS="$X11_LIBS -lXext"
5487 cat >>confdefs.h <<\_ACEOF
5488 #define HAVE_LIBXEXT 1
5495 if test "$x_libraries" != ""; then
5496 LDFLAGS="$LDFLAGS -L$x_libraries"
5499 if test "$x_includes" != ""; then
5500 CFLAGS="$CFLAGS -Wall -I$x_includes"
5504 if test "$want_xft" = "yes"; then
5505 # Extract the first word of "xft-config", so it can be a program name with args.
5506 set dummy xft-config; ac_word=$2
5507 echo "$as_me:$LINENO: checking for $ac_word" >&5
5508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5509 if test "${ac_cv_path_XFTCONFIG+set}" = set; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5514 ac_cv_path_XFTCONFIG="$XFTCONFIG" # Let the user override the test with a path.
5517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521 test -z "$as_dir" && as_dir=.
5522 for ac_exec_ext in '' $ac_executable_extensions; do
5523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5524 ac_cv_path_XFTCONFIG="$as_dir/$ac_word$ac_exec_ext"
5525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5534 XFTCONFIG=$ac_cv_path_XFTCONFIG
5536 if test -n "$XFTCONFIG"; then
5537 echo "$as_me:$LINENO: result: $XFTCONFIG" >&5
5538 echo "${ECHO_T}$XFTCONFIG" >&6
5540 echo "$as_me:$LINENO: result: no" >&5
5541 echo "${ECHO_T}no" >&6
5544 if test x$XFTCONFIG != x; then
5546 if test "x$XFT_MISSING" = xyes; then
5547 { { echo "$as_me:$LINENO: error: something went wrong when checking for Xft, you're probably missing headers or it's not installed" >&5
5548 echo "$as_me: error: something went wrong when checking for Xft, you're probably missing headers or it's not installed" >&2;}
5549 { (exit 1); exit 1; }; }
5553 cat >>confdefs.h <<\_ACEOF
5557 CFLAGS="$CFLAGS `$XFTCONFIG --cflags`"
5558 XFT_LIBS=`$XFTCONFIG --libs`
5565 if test x$WANT_KVM = xyes; then
5566 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
5567 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
5568 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
5569 echo $ECHO_N "(cached) $ECHO_C" >&6
5571 ac_check_lib_save_LIBS=$LIBS
5573 cat >conftest.$ac_ext <<_ACEOF
5576 cat confdefs.h >>conftest.$ac_ext
5577 cat >>conftest.$ac_ext <<_ACEOF
5578 /* end confdefs.h. */
5580 /* Override any gcc2 internal prototype to avoid an error. */
5584 /* We use char because int might match the return type of a gcc2
5585 builtin and then its argument prototype would still apply. */
5595 rm -f conftest.$ac_objext conftest$ac_exeext
5596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5597 (eval $ac_link) 2>conftest.er1
5599 grep -v '^ *+' conftest.er1 >conftest.err
5601 cat conftest.err >&5
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); } &&
5604 { ac_try='test -z "$ac_c_werror_flag"
5605 || test ! -s conftest.err'
5606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); }; } &&
5611 { ac_try='test -s conftest$ac_exeext'
5612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); }; }; then
5617 ac_cv_lib_kvm_kvm_open=yes
5619 echo "$as_me: failed program was:" >&5
5620 sed 's/^/| /' conftest.$ac_ext >&5
5622 ac_cv_lib_kvm_kvm_open=no
5624 rm -f conftest.err conftest.$ac_objext \
5625 conftest$ac_exeext conftest.$ac_ext
5626 LIBS=$ac_check_lib_save_LIBS
5628 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
5629 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
5630 if test $ac_cv_lib_kvm_kvm_open = yes; then
5633 { { echo "$as_me:$LINENO: error: Could not find kvm_open in -lkvm." >&5
5634 echo "$as_me: error: Could not find kvm_open in -lkvm." >&2;}
5635 { (exit 1); exit 1; }; }
5642 if test x$WANT_OSSLIB = xyes; then
5643 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5644 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5645 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5646 echo $ECHO_N "(cached) $ECHO_C" >&6
5648 ac_check_lib_save_LIBS=$LIBS
5649 LIBS="-lossaudio $LIBS"
5650 cat >conftest.$ac_ext <<_ACEOF
5653 cat confdefs.h >>conftest.$ac_ext
5654 cat >>conftest.$ac_ext <<_ACEOF
5655 /* end confdefs.h. */
5657 /* Override any gcc2 internal prototype to avoid an error. */
5661 /* We use char because int might match the return type of a gcc2
5662 builtin and then its argument prototype would still apply. */
5672 rm -f conftest.$ac_objext conftest$ac_exeext
5673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5674 (eval $ac_link) 2>conftest.er1
5676 grep -v '^ *+' conftest.er1 >conftest.err
5678 cat conftest.err >&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); } &&
5681 { ac_try='test -z "$ac_c_werror_flag"
5682 || test ! -s conftest.err'
5683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); }; } &&
5688 { ac_try='test -s conftest$ac_exeext'
5689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); }; }; then
5694 ac_cv_lib_ossaudio__oss_ioctl=yes
5696 echo "$as_me: failed program was:" >&5
5697 sed 's/^/| /' conftest.$ac_ext >&5
5699 ac_cv_lib_ossaudio__oss_ioctl=no
5701 rm -f conftest.err conftest.$ac_objext \
5702 conftest$ac_exeext conftest.$ac_ext
5703 LIBS=$ac_check_lib_save_LIBS
5705 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5706 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5707 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5708 LIBS="$LIBS -lossaudio"
5710 { { echo "$as_me:$LINENO: error: Could not find oss_ioctl in -lossaudio." >&5
5711 echo "$as_me: error: Could not find oss_ioctl in -lossaudio." >&2;}
5712 { (exit 1); exit 1; }; }
5727 for ac_header in signal.h unistd.h X11/Xlib.h sys/utsname.h sys/stat.h linux/soundcard.h dirent.h
5729 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5731 echo "$as_me:$LINENO: checking for $ac_header" >&5
5732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5734 echo $ECHO_N "(cached) $ECHO_C" >&6
5736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5739 # Is the header compilable?
5740 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5741 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5742 cat >conftest.$ac_ext <<_ACEOF
5745 cat confdefs.h >>conftest.$ac_ext
5746 cat >>conftest.$ac_ext <<_ACEOF
5747 /* end confdefs.h. */
5748 $ac_includes_default
5749 #include <$ac_header>
5751 rm -f conftest.$ac_objext
5752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5753 (eval $ac_compile) 2>conftest.er1
5755 grep -v '^ *+' conftest.er1 >conftest.err
5757 cat conftest.err >&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } &&
5760 { ac_try='test -z "$ac_c_werror_flag"
5761 || test ! -s conftest.err'
5762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); }; } &&
5767 { ac_try='test -s conftest.$ac_objext'
5768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; }; then
5773 ac_header_compiler=yes
5775 echo "$as_me: failed program was:" >&5
5776 sed 's/^/| /' conftest.$ac_ext >&5
5778 ac_header_compiler=no
5780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5781 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5782 echo "${ECHO_T}$ac_header_compiler" >&6
5784 # Is the header present?
5785 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5786 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5787 cat >conftest.$ac_ext <<_ACEOF
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h. */
5793 #include <$ac_header>
5795 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5796 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5798 grep -v '^ *+' conftest.er1 >conftest.err
5800 cat conftest.err >&5
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); } >/dev/null; then
5803 if test -s conftest.err; then
5804 ac_cpp_err=$ac_c_preproc_warn_flag
5805 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5812 if test -z "$ac_cpp_err"; then
5813 ac_header_preproc=yes
5815 echo "$as_me: failed program was:" >&5
5816 sed 's/^/| /' conftest.$ac_ext >&5
5818 ac_header_preproc=no
5820 rm -f conftest.err conftest.$ac_ext
5821 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5822 echo "${ECHO_T}$ac_header_preproc" >&6
5824 # So? What about this header?
5825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5827 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5828 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5830 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5831 ac_header_preproc=yes
5834 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5835 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5836 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5837 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5838 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5839 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5840 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5841 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5843 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5844 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5845 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5848 ## ------------------------------------------ ##
5849 ## Report this to the AC_PACKAGE_NAME lists. ##
5850 ## ------------------------------------------ ##
5853 sed "s/^/$as_me: WARNING: /" >&2
5856 echo "$as_me:$LINENO: checking for $ac_header" >&5
5857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5859 echo $ECHO_N "(cached) $ECHO_C" >&6
5861 eval "$as_ac_Header=\$ac_header_preproc"
5863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5864 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5867 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5868 cat >>confdefs.h <<_ACEOF
5869 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5879 for ac_header in sys/statfs.h sys/param.h sys/mount.h
5881 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5883 echo "$as_me:$LINENO: checking for $ac_header" >&5
5884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5886 echo $ECHO_N "(cached) $ECHO_C" >&6
5888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5889 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5891 # Is the header compilable?
5892 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5893 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5894 cat >conftest.$ac_ext <<_ACEOF
5897 cat confdefs.h >>conftest.$ac_ext
5898 cat >>conftest.$ac_ext <<_ACEOF
5899 /* end confdefs.h. */
5900 $ac_includes_default
5901 #include <$ac_header>
5903 rm -f conftest.$ac_objext
5904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5905 (eval $ac_compile) 2>conftest.er1
5907 grep -v '^ *+' conftest.er1 >conftest.err
5909 cat conftest.err >&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); } &&
5912 { ac_try='test -z "$ac_c_werror_flag"
5913 || test ! -s conftest.err'
5914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); }; } &&
5919 { ac_try='test -s conftest.$ac_objext'
5920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); }; }; then
5925 ac_header_compiler=yes
5927 echo "$as_me: failed program was:" >&5
5928 sed 's/^/| /' conftest.$ac_ext >&5
5930 ac_header_compiler=no
5932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5933 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5934 echo "${ECHO_T}$ac_header_compiler" >&6
5936 # Is the header present?
5937 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5938 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5939 cat >conftest.$ac_ext <<_ACEOF
5942 cat confdefs.h >>conftest.$ac_ext
5943 cat >>conftest.$ac_ext <<_ACEOF
5944 /* end confdefs.h. */
5945 #include <$ac_header>
5947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5948 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5950 grep -v '^ *+' conftest.er1 >conftest.err
5952 cat conftest.err >&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } >/dev/null; then
5955 if test -s conftest.err; then
5956 ac_cpp_err=$ac_c_preproc_warn_flag
5957 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5964 if test -z "$ac_cpp_err"; then
5965 ac_header_preproc=yes
5967 echo "$as_me: failed program was:" >&5
5968 sed 's/^/| /' conftest.$ac_ext >&5
5970 ac_header_preproc=no
5972 rm -f conftest.err conftest.$ac_ext
5973 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5974 echo "${ECHO_T}$ac_header_preproc" >&6
5976 # So? What about this header?
5977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5979 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5980 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5981 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5982 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5983 ac_header_preproc=yes
5986 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5987 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5988 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5989 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5990 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5991 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5992 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5993 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5995 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5996 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5997 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6000 ## ------------------------------------------ ##
6001 ## Report this to the AC_PACKAGE_NAME lists. ##
6002 ## ------------------------------------------ ##
6005 sed "s/^/$as_me: WARNING: /" >&2
6008 echo "$as_me:$LINENO: checking for $ac_header" >&5
6009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6011 echo $ECHO_N "(cached) $ECHO_C" >&6
6013 eval "$as_ac_Header=\$ac_header_preproc"
6015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6016 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6020 cat >>confdefs.h <<_ACEOF
6021 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6031 if test x$WANT_SYSINFO = xyes; then
6033 echo "$as_me:$LINENO: checking for sysinfo" >&5
6034 echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6
6035 cat >conftest.$ac_ext <<_ACEOF
6038 cat confdefs.h >>conftest.$ac_ext
6039 cat >>conftest.$ac_ext <<_ACEOF
6040 /* end confdefs.h. */
6041 #include <sys/types.h>
6042 #include <sys/sysinfo.h>
6046 struct sysinfo s; sysinfo(&s); (void) s.uptime;
6051 rm -f conftest.$ac_objext
6052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6053 (eval $ac_compile) 2>conftest.er1
6055 grep -v '^ *+' conftest.er1 >conftest.err
6057 cat conftest.err >&5
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); } &&
6060 { ac_try='test -z "$ac_c_werror_flag"
6061 || test ! -s conftest.err'
6062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); }; } &&
6067 { ac_try='test -s conftest.$ac_objext'
6068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); }; }; then
6073 echo "$as_me:$LINENO: result: yes" >&5
6074 echo "${ECHO_T}yes" >&6; dah=yes
6076 echo "$as_me: failed program was:" >&5
6077 sed 's/^/| /' conftest.$ac_ext >&5
6079 echo "$as_me:$LINENO: result: not usable" >&5
6080 echo "${ECHO_T}not usable" >&6; dah=no
6082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6084 if test x$dah = xyes; then
6086 cat >>confdefs.h <<\_ACEOF
6087 #define HAVE_SYSINFO 1
6094 if test x$WANT_KSTAT = xyes; then
6096 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
6097 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
6098 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6101 ac_check_lib_save_LIBS=$LIBS
6102 LIBS="-lkstat $LIBS"
6103 cat >conftest.$ac_ext <<_ACEOF
6106 cat confdefs.h >>conftest.$ac_ext
6107 cat >>conftest.$ac_ext <<_ACEOF
6108 /* end confdefs.h. */
6110 /* Override any gcc2 internal prototype to avoid an error. */
6114 /* We use char because int might match the return type of a gcc2
6115 builtin and then its argument prototype would still apply. */
6125 rm -f conftest.$ac_objext conftest$ac_exeext
6126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6127 (eval $ac_link) 2>conftest.er1
6129 grep -v '^ *+' conftest.er1 >conftest.err
6131 cat conftest.err >&5
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); } &&
6134 { ac_try='test -z "$ac_c_werror_flag"
6135 || test ! -s conftest.err'
6136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }; } &&
6141 { ac_try='test -s conftest$ac_exeext'
6142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); }; }; then
6147 ac_cv_lib_kstat_kstat_open=yes
6149 echo "$as_me: failed program was:" >&5
6150 sed 's/^/| /' conftest.$ac_ext >&5
6152 ac_cv_lib_kstat_kstat_open=no
6154 rm -f conftest.err conftest.$ac_objext \
6155 conftest$ac_exeext conftest.$ac_ext
6156 LIBS=$ac_check_lib_save_LIBS
6158 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
6159 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
6160 if test $ac_cv_lib_kstat_kstat_open = yes; then
6165 if test x$dah = xyes; then
6167 cat >>confdefs.h <<\_ACEOF
6168 #define HAVE_KSTAT 1
6171 LDFLAGS="$LDFLAGS -lkstat"
6178 echo "$as_me:$LINENO: checking for getloadavg" >&5
6179 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
6180 cat >conftest.$ac_ext <<_ACEOF
6183 cat confdefs.h >>conftest.$ac_ext
6184 cat >>conftest.$ac_ext <<_ACEOF
6185 /* end confdefs.h. */
6190 double v[3]; getloadavg(v, 3);
6195 rm -f conftest.$ac_objext
6196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6197 (eval $ac_compile) 2>conftest.er1
6199 grep -v '^ *+' conftest.er1 >conftest.err
6201 cat conftest.err >&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); } &&
6204 { ac_try='test -z "$ac_c_werror_flag"
6205 || test ! -s conftest.err'
6206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); }; } &&
6211 { ac_try='test -s conftest.$ac_objext'
6212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); }; }; then
6217 echo "$as_me:$LINENO: result: yes" >&5
6218 echo "${ECHO_T}yes" >&6
6220 cat >>confdefs.h <<\_ACEOF
6221 #define HAVE_GETLOADAVG 1
6225 echo "$as_me: failed program was:" >&5
6226 sed 's/^/| /' conftest.$ac_ext >&5
6228 echo "$as_me:$LINENO: result: no" >&5
6229 echo "${ECHO_T}no" >&6
6231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6235 for ac_func in popen
6237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6238 echo "$as_me:$LINENO: checking for $ac_func" >&5
6239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6240 if eval "test \"\${$as_ac_var+set}\" = set"; then
6241 echo $ECHO_N "(cached) $ECHO_C" >&6
6243 cat >conftest.$ac_ext <<_ACEOF
6246 cat confdefs.h >>conftest.$ac_ext
6247 cat >>conftest.$ac_ext <<_ACEOF
6248 /* end confdefs.h. */
6249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6251 #define $ac_func innocuous_$ac_func
6253 /* System header to define __stub macros and hopefully few prototypes,
6254 which can conflict with char $ac_func (); below.
6255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6256 <limits.h> exists even on freestanding compilers. */
6259 # include <limits.h>
6261 # include <assert.h>
6266 /* Override any gcc2 internal prototype to avoid an error. */
6271 /* We use char because int might match the return type of a gcc2
6272 builtin and then its argument prototype would still apply. */
6274 /* The GNU C library defines this for functions which it implements
6275 to always fail with ENOSYS. Some functions are actually named
6276 something starting with __ and the normal name is an alias. */
6277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6280 char (*f) () = $ac_func;
6289 return f != $ac_func;
6294 rm -f conftest.$ac_objext conftest$ac_exeext
6295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6296 (eval $ac_link) 2>conftest.er1
6298 grep -v '^ *+' conftest.er1 >conftest.err
6300 cat conftest.err >&5
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); } &&
6303 { ac_try='test -z "$ac_c_werror_flag"
6304 || test ! -s conftest.err'
6305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); }; } &&
6310 { ac_try='test -s conftest$ac_exeext'
6311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); }; }; then
6316 eval "$as_ac_var=yes"
6318 echo "$as_me: failed program was:" >&5
6319 sed 's/^/| /' conftest.$ac_ext >&5
6321 eval "$as_ac_var=no"
6323 rm -f conftest.err conftest.$ac_objext \
6324 conftest$ac_exeext conftest.$ac_ext
6326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6327 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6328 if test `eval echo '${'$as_ac_var'}'` = yes; then
6329 cat >>confdefs.h <<_ACEOF
6330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6338 CFLAGS="$CFLAGS -Wall -W"
6344 ac_config_files="$ac_config_files Makefile"
6345 cat >confcache <<\_ACEOF
6346 # This file is a shell script that caches the results of configure
6347 # tests run on this system so they can be shared between configure
6348 # scripts and configure runs, see configure's option --config-cache.
6349 # It is not useful on other systems. If it contains results you don't
6350 # want to keep, you may remove or edit it.
6352 # config.status only pays attention to the cache file if you give it
6353 # the --recheck option to rerun configure.
6355 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6356 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6361 # The following way of writing the cache mishandles newlines in values,
6362 # but we know of no workaround that is simple, portable, and efficient.
6363 # So, don't put newlines in cache variables' values.
6364 # Ultrix sh set writes to stderr and can't be redirected directly,
6365 # and sets the high bit in the cache file unless we assign to the vars.
6368 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6370 # `set' does not quote correctly, so add quotes (double-quote
6371 # substitution turns \\\\ into \\, and sed turns \\ into \).
6374 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6377 # `set' quotes correctly as required by POSIX, so do not add quotes.
6379 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6386 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6388 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6390 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6391 if test -w $cache_file; then
6392 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6393 cat confcache >$cache_file
6395 echo "not updating unwritable cache $cache_file"
6400 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6401 # Let make expand exec_prefix.
6402 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6404 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6405 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6406 # trailing colons and then remove the whole line if VPATH becomes empty
6407 # (actually we leave an empty line to preserve line numbers).
6408 if test "x$srcdir" = x.; then
6409 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6410 s/:*\$(srcdir):*/:/;
6411 s/:*\${srcdir}:*/:/;
6413 s/^\([^=]*=[ ]*\):*/\1/;
6419 DEFS=-DHAVE_CONFIG_H
6423 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6424 # 1. Remove the extension, and $U if already installed.
6425 ac_i=`echo "$ac_i" |
6426 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6428 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6429 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6433 LTLIBOBJS=$ac_ltlibobjs
6436 if test -z "${BUILD_LINUX_TRUE}" && test -z "${BUILD_LINUX_FALSE}"; then
6437 { { echo "$as_me:$LINENO: error: conditional \"BUILD_LINUX\" was never defined.
6438 Usually this means the macro was only invoked conditionally." >&5
6439 echo "$as_me: error: conditional \"BUILD_LINUX\" was never defined.
6440 Usually this means the macro was only invoked conditionally." >&2;}
6441 { (exit 1); exit 1; }; }
6443 if test -z "${BUILD_SOLARIS_TRUE}" && test -z "${BUILD_SOLARIS_FALSE}"; then
6444 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SOLARIS\" was never defined.
6445 Usually this means the macro was only invoked conditionally." >&5
6446 echo "$as_me: error: conditional \"BUILD_SOLARIS\" was never defined.
6447 Usually this means the macro was only invoked conditionally." >&2;}
6448 { (exit 1); exit 1; }; }
6450 if test -z "${BUILD_FREEBSD_TRUE}" && test -z "${BUILD_FREEBSD_FALSE}"; then
6451 { { echo "$as_me:$LINENO: error: conditional \"BUILD_FREEBSD\" was never defined.
6452 Usually this means the macro was only invoked conditionally." >&5
6453 echo "$as_me: error: conditional \"BUILD_FREEBSD\" was never defined.
6454 Usually this means the macro was only invoked conditionally." >&2;}
6455 { (exit 1); exit 1; }; }
6457 if test -z "${BUILD_NETBSD_TRUE}" && test -z "${BUILD_NETBSD_FALSE}"; then
6458 { { echo "$as_me:$LINENO: error: conditional \"BUILD_NETBSD\" was never defined.
6459 Usually this means the macro was only invoked conditionally." >&5
6460 echo "$as_me: error: conditional \"BUILD_NETBSD\" was never defined.
6461 Usually this means the macro was only invoked conditionally." >&2;}
6462 { (exit 1); exit 1; }; }
6464 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6465 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6466 Usually this means the macro was only invoked conditionally." >&5
6467 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6468 Usually this means the macro was only invoked conditionally." >&2;}
6469 { (exit 1); exit 1; }; }
6471 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6472 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6473 Usually this means the macro was only invoked conditionally." >&5
6474 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6475 Usually this means the macro was only invoked conditionally." >&2;}
6476 { (exit 1); exit 1; }; }
6478 if test -z "${BUILD_SETI_TRUE}" && test -z "${BUILD_SETI_FALSE}"; then
6479 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SETI\" was never defined.
6480 Usually this means the macro was only invoked conditionally." >&5
6481 echo "$as_me: error: conditional \"BUILD_SETI\" was never defined.
6482 Usually this means the macro was only invoked conditionally." >&2;}
6483 { (exit 1); exit 1; }; }
6485 if test -z "${BUILD_MPD_TRUE}" && test -z "${BUILD_MPD_FALSE}"; then
6486 { { echo "$as_me:$LINENO: error: conditional \"BUILD_MPD\" was never defined.
6487 Usually this means the macro was only invoked conditionally." >&5
6488 echo "$as_me: error: conditional \"BUILD_MPD\" was never defined.
6489 Usually this means the macro was only invoked conditionally." >&2;}
6490 { (exit 1); exit 1; }; }
6492 if test -z "${BUILD_CAIRO_TRUE}" && test -z "${BUILD_CAIRO_FALSE}"; then
6493 { { echo "$as_me:$LINENO: error: conditional \"BUILD_CAIRO\" was never defined.
6494 Usually this means the macro was only invoked conditionally." >&5
6495 echo "$as_me: error: conditional \"BUILD_CAIRO\" was never defined.
6496 Usually this means the macro was only invoked conditionally." >&2;}
6497 { (exit 1); exit 1; }; }
6499 if test -z "${BUILD_MLDONKEY_TRUE}" && test -z "${BUILD_MLDONKEY_FALSE}"; then
6500 { { echo "$as_me:$LINENO: error: conditional \"BUILD_MLDONKEY\" was never defined.
6501 Usually this means the macro was only invoked conditionally." >&5
6502 echo "$as_me: error: conditional \"BUILD_MLDONKEY\" was never defined.
6503 Usually this means the macro was only invoked conditionally." >&2;}
6504 { (exit 1); exit 1; }; }
6506 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6507 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6508 Usually this means the macro was only invoked conditionally." >&5
6509 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6510 Usually this means the macro was only invoked conditionally." >&2;}
6511 { (exit 1); exit 1; }; }
6513 if test -z "${BUILD_X11_TRUE}" && test -z "${BUILD_X11_FALSE}"; then
6514 { { echo "$as_me:$LINENO: error: conditional \"BUILD_X11\" was never defined.
6515 Usually this means the macro was only invoked conditionally." >&5
6516 echo "$as_me: error: conditional \"BUILD_X11\" was never defined.
6517 Usually this means the macro was only invoked conditionally." >&2;}
6518 { (exit 1); exit 1; }; }
6521 : ${CONFIG_STATUS=./config.status}
6522 ac_clean_files_save=$ac_clean_files
6523 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6524 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6525 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6526 cat >$CONFIG_STATUS <<_ACEOF
6528 # Generated by $as_me.
6529 # Run this file to recreate the current configuration.
6530 # Compiler output produced by configure, useful for debugging
6531 # configure, is in config.log if it exists.
6536 SHELL=\${CONFIG_SHELL-$SHELL}
6539 cat >>$CONFIG_STATUS <<\_ACEOF
6540 ## --------------------- ##
6541 ## M4sh Initialization. ##
6542 ## --------------------- ##
6544 # Be Bourne compatible
6545 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6548 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6549 # is contrary to our usage. Disable this feature.
6550 alias -g '${1+"$@"}'='"$@"'
6551 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6554 DUALCASE=1; export DUALCASE # for MKS sh
6556 # Support unset when possible.
6557 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6564 # Work around bugs in pre-3.0 UWIN ksh.
6565 $as_unset ENV MAIL MAILPATH
6572 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6573 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6574 LC_TELEPHONE LC_TIME
6576 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6577 eval $as_var=C; export $as_var
6583 # Required to use basename.
6584 if expr a : '\(a\)' >/dev/null 2>&1; then
6590 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6591 as_basename=basename
6597 # Name of the executable.
6598 as_me=`$as_basename "$0" ||
6599 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6600 X"$0" : 'X\(//\)$' \| \
6601 X"$0" : 'X\(/\)$' \| \
6602 . : '\(.\)' 2>/dev/null ||
6604 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6605 /^X\/\(\/\/\)$/{ s//\1/; q; }
6606 /^X\/\(\/\).*/{ s//\1/; q; }
6610 # PATH needs CR, and LINENO needs CR and PATH.
6611 # Avoid depending upon Character Ranges.
6612 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6613 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6614 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6615 as_cr_digits='0123456789'
6616 as_cr_alnum=$as_cr_Letters$as_cr_digits
6618 # The user is always right.
6619 if test "${PATH_SEPARATOR+set}" != set; then
6620 echo "#! /bin/sh" >conf$$.sh
6621 echo "exit 0" >>conf$$.sh
6623 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6634 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6635 test "x$as_lineno_1" != "x$as_lineno_2" &&
6636 test "x$as_lineno_3" = "x$as_lineno_2" || {
6637 # Find who we are. Look in the path if we contain no path at all
6640 *[\\/]* ) as_myself=$0 ;;
6641 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645 test -z "$as_dir" && as_dir=.
6646 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6651 # We did not find ourselves, most probably we were run as `sh COMMAND'
6652 # in which case we are not to be found in the path.
6653 if test "x$as_myself" = x; then
6656 if test ! -f "$as_myself"; then
6657 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6658 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6659 { (exit 1); exit 1; }; }
6661 case $CONFIG_SHELL in
6663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6667 test -z "$as_dir" && as_dir=.
6668 for as_base in sh bash ksh sh5; do
6671 if ("$as_dir/$as_base" -c '
6674 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6675 test "x$as_lineno_1" != "x$as_lineno_2" &&
6676 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6677 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6678 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6679 CONFIG_SHELL=$as_dir/$as_base
6681 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6689 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6690 # uniformly replaced by the line number. The first 'sed' inserts a
6691 # line-number line before each line; the second 'sed' does the real
6692 # work. The second script uses 'N' to pair each line-number line
6693 # with the numbered line, and appends trailing '-' during
6694 # substitution so that $LINENO is not a special case at line end.
6695 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6696 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6697 sed '=' <$as_myself |
6702 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6705 s,^['$as_cr_digits']*\n,,
6707 chmod +x $as_me.lineno ||
6708 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6709 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6710 { (exit 1); exit 1; }; }
6712 # Don't try to exec as it changes $[0], causing all sort of problems
6713 # (the dirname of $[0] is not the place where we might find the
6714 # original and so on. Autoconf is especially sensible to this).
6716 # Exit status is that of the last command.
6721 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6722 *c*,-n*) ECHO_N= ECHO_C='
6724 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6725 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6728 if expr a : '\(a\)' >/dev/null 2>&1; then
6734 rm -f conf$$ conf$$.exe conf$$.file
6736 if ln -s conf$$.file conf$$ 2>/dev/null; then
6737 # We could just check for DJGPP; but this test a) works b) is more generic
6738 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6739 if test -f conf$$.exe; then
6740 # Don't use ln at all; we don't have any links
6745 elif ln conf$$.file conf$$ 2>/dev/null; then
6750 rm -f conf$$ conf$$.exe conf$$.file
6752 if mkdir -p . 2>/dev/null; then
6755 test -d ./-p && rmdir ./-p
6759 as_executable_p="test -f"
6761 # Sed expression to map a string onto a valid CPP name.
6762 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6764 # Sed expression to map a string onto a valid variable name.
6765 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6769 # We need space, tab and new line, in precisely that order.
6779 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6780 # report actual input values of CONFIG_FILES etc. instead of their
6781 # values after options handling. Logging --version etc. is OK.
6785 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6786 ## Running $as_me. ##
6791 This file was extended by $as_me, which was
6792 generated by GNU Autoconf 2.59. Invocation command line was
6794 CONFIG_FILES = $CONFIG_FILES
6795 CONFIG_HEADERS = $CONFIG_HEADERS
6796 CONFIG_LINKS = $CONFIG_LINKS
6797 CONFIG_COMMANDS = $CONFIG_COMMANDS
6801 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6805 # Files that config.status was made for.
6806 if test -n "$ac_config_files"; then
6807 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6810 if test -n "$ac_config_headers"; then
6811 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6814 if test -n "$ac_config_links"; then
6815 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6818 if test -n "$ac_config_commands"; then
6819 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6822 cat >>$CONFIG_STATUS <<\_ACEOF
6825 \`$as_me' instantiates files from templates according to the
6826 current configuration.
6828 Usage: $0 [OPTIONS] [FILE]...
6830 -h, --help print this help, then exit
6831 -V, --version print version number, then exit
6832 -q, --quiet do not print progress messages
6833 -d, --debug don't remove temporary files
6834 --recheck update $as_me by reconfiguring in the same conditions
6835 --file=FILE[:TEMPLATE]
6836 instantiate the configuration file FILE
6837 --header=FILE[:TEMPLATE]
6838 instantiate the configuration header FILE
6840 Configuration files:
6843 Configuration headers:
6846 Configuration commands:
6849 Report bugs to <bug-autoconf@gnu.org>."
6852 cat >>$CONFIG_STATUS <<_ACEOF
6855 configured by $0, generated by GNU Autoconf 2.59,
6856 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6858 Copyright (C) 2003 Free Software Foundation, Inc.
6859 This config.status script is free software; the Free Software Foundation
6860 gives unlimited permission to copy, distribute and modify it."
6865 cat >>$CONFIG_STATUS <<\_ACEOF
6866 # If no file are specified by the user, then we need to provide default
6867 # value. By we need to know if files were specified by the user.
6873 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6874 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6882 *) # This is not an option, so the user has probably given explicit
6885 ac_need_defaults=false;;
6889 # Handling of the options.
6891 cat >>$CONFIG_STATUS <<\_ACEOF
6892 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6894 --version | --vers* | -V )
6895 echo "$ac_cs_version"; exit 0 ;;
6897 # Conflict between --help and --header
6898 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6899 Try \`$0 --help' for more information." >&5
6900 echo "$as_me: error: ambiguous option: $1
6901 Try \`$0 --help' for more information." >&2;}
6902 { (exit 1); exit 1; }; };;
6903 --help | --hel | -h )
6904 echo "$ac_cs_usage"; exit 0 ;;
6905 --debug | --d* | -d )
6907 --file | --fil | --fi | --f )
6909 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6910 ac_need_defaults=false;;
6911 --header | --heade | --head | --hea )
6913 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6914 ac_need_defaults=false;;
6915 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6916 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6920 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6921 Try \`$0 --help' for more information." >&5
6922 echo "$as_me: error: unrecognized option: $1
6923 Try \`$0 --help' for more information." >&2;}
6924 { (exit 1); exit 1; }; } ;;
6926 *) ac_config_targets="$ac_config_targets $1" ;;
6932 ac_configure_extra_args=
6934 if $ac_cs_silent; then
6936 ac_configure_extra_args="$ac_configure_extra_args --silent"
6940 cat >>$CONFIG_STATUS <<_ACEOF
6941 if \$ac_cs_recheck; then
6942 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6943 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6948 cat >>$CONFIG_STATUS <<_ACEOF
6950 # INIT-COMMANDS section.
6953 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6959 cat >>$CONFIG_STATUS <<\_ACEOF
6960 for ac_config_target in $ac_config_targets
6962 case "$ac_config_target" in
6963 # Handling of arguments.
6964 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6965 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6966 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6967 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6968 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6969 { (exit 1); exit 1; }; };;
6973 # If the user did not use the arguments to specify the items to instantiate,
6974 # then the envvar interface is used. Set only those that are not.
6975 # We use the long form for the default assignment because of an extremely
6976 # bizarre bug on SunOS 4.1.3.
6977 if $ac_need_defaults; then
6978 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6979 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6980 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6983 # Have a temporary directory for convenience. Make it in the build tree
6984 # simply because there is no reason to put it here, and in addition,
6985 # creating and moving files from /tmp can sometimes cause problems.
6986 # Create a temporary directory, and hook for its removal unless debugging.
6989 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6990 trap '{ (exit 1); exit 1; }' 1 2 13 15
6993 # Create a (secure) tmp directory for tmp files.
6996 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6997 test -n "$tmp" && test -d "$tmp"
7000 tmp=./confstat$$-$RANDOM
7001 (umask 077 && mkdir $tmp)
7004 echo "$me: cannot create a temporary directory in ." >&2
7005 { (exit 1); exit 1; }
7010 cat >>$CONFIG_STATUS <<_ACEOF
7013 # CONFIG_FILES section.
7016 # No need to generate the scripts if there are no CONFIG_FILES.
7017 # This happens for instance when ./config.status config.h
7018 if test -n "\$CONFIG_FILES"; then
7019 # Protect against being on the right side of a sed subst in config.status.
7020 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7021 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7022 s,@SHELL@,$SHELL,;t t
7023 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7024 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7025 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7026 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7027 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7028 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7029 s,@exec_prefix@,$exec_prefix,;t t
7030 s,@prefix@,$prefix,;t t
7031 s,@program_transform_name@,$program_transform_name,;t t
7032 s,@bindir@,$bindir,;t t
7033 s,@sbindir@,$sbindir,;t t
7034 s,@libexecdir@,$libexecdir,;t t
7035 s,@datadir@,$datadir,;t t
7036 s,@sysconfdir@,$sysconfdir,;t t
7037 s,@sharedstatedir@,$sharedstatedir,;t t
7038 s,@localstatedir@,$localstatedir,;t t
7039 s,@libdir@,$libdir,;t t
7040 s,@includedir@,$includedir,;t t
7041 s,@oldincludedir@,$oldincludedir,;t t
7042 s,@infodir@,$infodir,;t t
7043 s,@mandir@,$mandir,;t t
7044 s,@build_alias@,$build_alias,;t t
7045 s,@host_alias@,$host_alias,;t t
7046 s,@target_alias@,$target_alias,;t t
7048 s,@ECHO_C@,$ECHO_C,;t t
7049 s,@ECHO_N@,$ECHO_N,;t t
7050 s,@ECHO_T@,$ECHO_T,;t t
7052 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7053 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7054 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7055 s,@CYGPATH_W@,$CYGPATH_W,;t t
7056 s,@PACKAGE@,$PACKAGE,;t t
7057 s,@VERSION@,$VERSION,;t t
7058 s,@ACLOCAL@,$ACLOCAL,;t t
7059 s,@AUTOCONF@,$AUTOCONF,;t t
7060 s,@AUTOMAKE@,$AUTOMAKE,;t t
7061 s,@AUTOHEADER@,$AUTOHEADER,;t t
7062 s,@MAKEINFO@,$MAKEINFO,;t t
7063 s,@install_sh@,$install_sh,;t t
7064 s,@STRIP@,$STRIP,;t t
7065 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7066 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7067 s,@mkdir_p@,$mkdir_p,;t t
7069 s,@SET_MAKE@,$SET_MAKE,;t t
7070 s,@am__leading_dot@,$am__leading_dot,;t t
7071 s,@AMTAR@,$AMTAR,;t t
7072 s,@am__tar@,$am__tar,;t t
7073 s,@am__untar@,$am__untar,;t t
7074 s,@BUILD_LINUX_TRUE@,$BUILD_LINUX_TRUE,;t t
7075 s,@BUILD_LINUX_FALSE@,$BUILD_LINUX_FALSE,;t t
7076 s,@BUILD_SOLARIS_TRUE@,$BUILD_SOLARIS_TRUE,;t t
7077 s,@BUILD_SOLARIS_FALSE@,$BUILD_SOLARIS_FALSE,;t t
7078 s,@BUILD_FREEBSD_TRUE@,$BUILD_FREEBSD_TRUE,;t t
7079 s,@BUILD_FREEBSD_FALSE@,$BUILD_FREEBSD_FALSE,;t t
7080 s,@BUILD_NETBSD_TRUE@,$BUILD_NETBSD_TRUE,;t t
7081 s,@BUILD_NETBSD_FALSE@,$BUILD_NETBSD_FALSE,;t t
7083 s,@CFLAGS@,$CFLAGS,;t t
7084 s,@LDFLAGS@,$LDFLAGS,;t t
7085 s,@CPPFLAGS@,$CPPFLAGS,;t t
7086 s,@ac_ct_CC@,$ac_ct_CC,;t t
7087 s,@EXEEXT@,$EXEEXT,;t t
7088 s,@OBJEXT@,$OBJEXT,;t t
7089 s,@DEPDIR@,$DEPDIR,;t t
7090 s,@am__include@,$am__include,;t t
7091 s,@am__quote@,$am__quote,;t t
7092 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7093 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7094 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7095 s,@CCDEPMODE@,$CCDEPMODE,;t t
7096 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
7097 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7099 s,@EGREP@,$EGREP,;t t
7100 s,@BUILD_SETI_TRUE@,$BUILD_SETI_TRUE,;t t
7101 s,@BUILD_SETI_FALSE@,$BUILD_SETI_FALSE,;t t
7102 s,@BUILD_MPD_TRUE@,$BUILD_MPD_TRUE,;t t
7103 s,@BUILD_MPD_FALSE@,$BUILD_MPD_FALSE,;t t
7104 s,@BUILD_CAIRO_TRUE@,$BUILD_CAIRO_TRUE,;t t
7105 s,@BUILD_CAIRO_FALSE@,$BUILD_CAIRO_FALSE,;t t
7106 s,@CAIROCONFIG@,$CAIROCONFIG,;t t
7107 s,@BUILD_MLDONKEY_TRUE@,$BUILD_MLDONKEY_TRUE,;t t
7108 s,@BUILD_MLDONKEY_FALSE@,$BUILD_MLDONKEY_FALSE,;t t
7109 s,@BUILD_X11_TRUE@,$BUILD_X11_TRUE,;t t
7110 s,@BUILD_X11_FALSE@,$BUILD_X11_FALSE,;t t
7111 s,@XFTCONFIG@,$XFTCONFIG,;t t
7112 s,@X11_LIBS@,$X11_LIBS,;t t
7113 s,@XFT_LIBS@,$XFT_LIBS,;t t
7114 s,@LIBOBJS@,$LIBOBJS,;t t
7115 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7120 cat >>$CONFIG_STATUS <<\_ACEOF
7121 # Split the substitutions into bite-sized pieces for seds with
7122 # small command number limits, like on Digital OSF/1 and HP-UX.
7124 ac_sed_frag=1 # Number of current file.
7125 ac_beg=1 # First line for current file.
7126 ac_end=$ac_max_sed_lines # Line after last line for current file.
7129 while $ac_more_lines; do
7130 if test $ac_beg -gt 1; then
7131 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7133 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7135 if test ! -s $tmp/subs.frag; then
7138 # The purpose of the label and of the branching condition is to
7139 # speed up the sed processing (if there are no `@' at all, there
7140 # is no need to browse any of the substitutions).
7141 # These are the two extra sed commands mentioned above.
7143 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7144 if test -z "$ac_sed_cmds"; then
7145 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7147 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7149 ac_sed_frag=`expr $ac_sed_frag + 1`
7151 ac_end=`expr $ac_end + $ac_max_sed_lines`
7154 if test -z "$ac_sed_cmds"; then
7157 fi # test -n "$CONFIG_FILES"
7160 cat >>$CONFIG_STATUS <<\_ACEOF
7161 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7162 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7164 - | *:- | *:-:* ) # input from stdin
7166 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7167 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7168 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7169 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7170 * ) ac_file_in=$ac_file.in ;;
7173 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7174 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7175 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7176 X"$ac_file" : 'X\(//\)[^/]' \| \
7177 X"$ac_file" : 'X\(//\)$' \| \
7178 X"$ac_file" : 'X\(/\)' \| \
7179 . : '\(.\)' 2>/dev/null ||
7181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7182 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7183 /^X\(\/\/\)$/{ s//\1/; q; }
7184 /^X\(\/\).*/{ s//\1/; q; }
7186 { if $as_mkdir_p; then
7191 while test ! -d "$as_dir"; do
7192 as_dirs="$as_dir $as_dirs"
7193 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7194 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7195 X"$as_dir" : 'X\(//\)[^/]' \| \
7196 X"$as_dir" : 'X\(//\)$' \| \
7197 X"$as_dir" : 'X\(/\)' \| \
7198 . : '\(.\)' 2>/dev/null ||
7200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7201 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7202 /^X\(\/\/\)$/{ s//\1/; q; }
7203 /^X\(\/\).*/{ s//\1/; q; }
7206 test ! -n "$as_dirs" || mkdir $as_dirs
7207 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7208 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7209 { (exit 1); exit 1; }; }; }
7213 if test "$ac_dir" != .; then
7214 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7215 # A "../" for each directory in $ac_dir_suffix.
7216 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7218 ac_dir_suffix= ac_top_builddir=
7222 .) # No --srcdir option. We are building in place.
7224 if test -z "$ac_top_builddir"; then
7227 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7229 [\\/]* | ?:[\\/]* ) # Absolute path.
7230 ac_srcdir=$srcdir$ac_dir_suffix;
7231 ac_top_srcdir=$srcdir ;;
7233 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7234 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7237 # Do not use `cd foo && pwd` to compute absolute paths, because
7238 # the directories may not exist.
7240 .) ac_abs_builddir="$ac_dir";;
7243 .) ac_abs_builddir=`pwd`;;
7244 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7245 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7248 case $ac_abs_builddir in
7249 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7251 case ${ac_top_builddir}. in
7252 .) ac_abs_top_builddir=$ac_abs_builddir;;
7253 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7254 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7257 case $ac_abs_builddir in
7258 .) ac_abs_srcdir=$ac_srcdir;;
7261 .) ac_abs_srcdir=$ac_abs_builddir;;
7262 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7263 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7266 case $ac_abs_builddir in
7267 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7269 case $ac_top_srcdir in
7270 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7271 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7272 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7278 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7279 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7282 if test x"$ac_file" != x-; then
7283 { echo "$as_me:$LINENO: creating $ac_file" >&5
7284 echo "$as_me: creating $ac_file" >&6;}
7287 # Let's still pretend it is `configure' which instantiates (i.e., don't
7288 # use $as_me), people would be surprised to read:
7289 # /* config.h. Generated by config.status. */
7290 if test x"$ac_file" = x-; then
7293 configure_input="$ac_file. "
7295 configure_input=$configure_input"Generated from `echo $ac_file_in |
7296 sed 's,.*/,,'` by configure."
7298 # First look for the input files in the build tree, otherwise in the
7300 ac_file_inputs=`IFS=:
7301 for f in $ac_file_in; do
7303 -) echo $tmp/stdin ;;
7305 # Absolute (can't be DOS-style, as IFS=:)
7306 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7307 echo "$as_me: error: cannot find input file: $f" >&2;}
7308 { (exit 1); exit 1; }; }
7311 if test -f "$f"; then
7314 elif test -f "$srcdir/$f"; then
7319 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7320 echo "$as_me: error: cannot find input file: $f" >&2;}
7321 { (exit 1); exit 1; }; }
7324 done` || { (exit 1); exit 1; }
7326 cat >>$CONFIG_STATUS <<_ACEOF
7330 cat >>$CONFIG_STATUS <<\_ACEOF
7332 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7333 s,@configure_input@,$configure_input,;t t
7334 s,@srcdir@,$ac_srcdir,;t t
7335 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7336 s,@top_srcdir@,$ac_top_srcdir,;t t
7337 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7338 s,@builddir@,$ac_builddir,;t t
7339 s,@abs_builddir@,$ac_abs_builddir,;t t
7340 s,@top_builddir@,$ac_top_builddir,;t t
7341 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7342 s,@INSTALL@,$ac_INSTALL,;t t
7343 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7345 if test x"$ac_file" != x-; then
7346 mv $tmp/out $ac_file
7354 cat >>$CONFIG_STATUS <<\_ACEOF
7357 # CONFIG_HEADER section.
7360 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7361 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7363 # ac_d sets the value in "#define NAME VALUE" lines.
7364 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7365 ac_dB='[ ].*$,\1#\2'
7368 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7369 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7370 ac_uB='$,\1#\2define\3'
7374 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7375 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7377 - | *:- | *:-:* ) # input from stdin
7379 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7380 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7381 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7382 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7383 * ) ac_file_in=$ac_file.in ;;
7386 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7387 echo "$as_me: creating $ac_file" >&6;}
7389 # First look for the input files in the build tree, otherwise in the
7391 ac_file_inputs=`IFS=:
7392 for f in $ac_file_in; do
7394 -) echo $tmp/stdin ;;
7396 # Absolute (can't be DOS-style, as IFS=:)
7397 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7398 echo "$as_me: error: cannot find input file: $f" >&2;}
7399 { (exit 1); exit 1; }; }
7400 # Do quote $f, to prevent DOS paths from being IFS'd.
7403 if test -f "$f"; then
7406 elif test -f "$srcdir/$f"; then
7411 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7412 echo "$as_me: error: cannot find input file: $f" >&2;}
7413 { (exit 1); exit 1; }; }
7416 done` || { (exit 1); exit 1; }
7417 # Remove the trailing spaces.
7418 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7422 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7423 # `conftest.undefs', that substitutes the proper values into
7424 # config.h.in to produce config.h. The first handles `#define'
7425 # templates, and the second `#undef' templates.
7426 # And first: Protect against being on the right side of a sed subst in
7427 # config.status. Protect against being in an unquoted here document
7429 rm -f conftest.defines conftest.undefs
7430 # Using a here document instead of a string reduces the quoting nightmare.
7431 # Putting comments in sed scripts is not portable.
7433 # `end' is used to avoid that the second main sed command (meant for
7434 # 0-ary CPP macros) applies to n-ary macro definitions.
7435 # See the Autoconf documentation for `clear'.
7436 cat >confdef2sed.sed <<\_ACEOF
7441 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7443 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7446 # If some macros were called several times there might be several times
7447 # the same #defines, which is useless. Nevertheless, we may not want to
7448 # sort them, since we want the *last* AC-DEFINE to be honored.
7449 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7450 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7451 rm -f confdef2sed.sed
7453 # This sed command replaces #undef with comments. This is necessary, for
7454 # example, in the case of _POSIX_SOURCE, which is predefined and required
7455 # on some systems where configure will not decide to define it.
7456 cat >>conftest.undefs <<\_ACEOF
7457 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7460 # Break up conftest.defines because some shells have a limit on the size
7461 # of here documents, and old seds have small limits too (100 cmds).
7462 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7463 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7464 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7465 echo ' :' >>$CONFIG_STATUS
7467 while grep . conftest.defines >/dev/null
7469 # Write a limited-size here document to $tmp/defines.sed.
7470 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7471 # Speed up: don't consider the non `#define' lines.
7472 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7473 # Work around the forget-to-reset-the-flag bug.
7474 echo 't clr' >>$CONFIG_STATUS
7475 echo ': clr' >>$CONFIG_STATUS
7476 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7478 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7482 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7483 rm -f conftest.defines
7484 mv conftest.tail conftest.defines
7486 rm -f conftest.defines
7487 echo ' fi # grep' >>$CONFIG_STATUS
7488 echo >>$CONFIG_STATUS
7490 # Break up conftest.undefs because some shells have a limit on the size
7491 # of here documents, and old seds have small limits too (100 cmds).
7492 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7494 while grep . conftest.undefs >/dev/null
7496 # Write a limited-size here document to $tmp/undefs.sed.
7497 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7498 # Speed up: don't consider the non `#undef'
7499 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7500 # Work around the forget-to-reset-the-flag bug.
7501 echo 't clr' >>$CONFIG_STATUS
7502 echo ': clr' >>$CONFIG_STATUS
7503 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7505 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7509 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7510 rm -f conftest.undefs
7511 mv conftest.tail conftest.undefs
7513 rm -f conftest.undefs
7515 cat >>$CONFIG_STATUS <<\_ACEOF
7516 # Let's still pretend it is `configure' which instantiates (i.e., don't
7517 # use $as_me), people would be surprised to read:
7518 # /* config.h. Generated by config.status. */
7519 if test x"$ac_file" = x-; then
7520 echo "/* Generated by configure. */" >$tmp/config.h
7522 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7524 cat $tmp/in >>$tmp/config.h
7526 if test x"$ac_file" != x-; then
7527 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7528 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7529 echo "$as_me: $ac_file is unchanged" >&6;}
7531 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7532 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7533 X"$ac_file" : 'X\(//\)[^/]' \| \
7534 X"$ac_file" : 'X\(//\)$' \| \
7535 X"$ac_file" : 'X\(/\)' \| \
7536 . : '\(.\)' 2>/dev/null ||
7538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7539 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7540 /^X\(\/\/\)$/{ s//\1/; q; }
7541 /^X\(\/\).*/{ s//\1/; q; }
7543 { if $as_mkdir_p; then
7548 while test ! -d "$as_dir"; do
7549 as_dirs="$as_dir $as_dirs"
7550 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7551 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7552 X"$as_dir" : 'X\(//\)[^/]' \| \
7553 X"$as_dir" : 'X\(//\)$' \| \
7554 X"$as_dir" : 'X\(/\)' \| \
7555 . : '\(.\)' 2>/dev/null ||
7557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7558 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7559 /^X\(\/\/\)$/{ s//\1/; q; }
7560 /^X\(\/\).*/{ s//\1/; q; }
7563 test ! -n "$as_dirs" || mkdir $as_dirs
7564 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7565 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7566 { (exit 1); exit 1; }; }; }
7569 mv $tmp/config.h $ac_file
7575 # Compute $ac_file's index in $config_headers.
7577 for _am_header in $config_headers :; do
7579 $ac_file | $ac_file:* )
7582 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7585 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
7586 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7587 X$ac_file : 'X\(//\)[^/]' \| \
7588 X$ac_file : 'X\(//\)$' \| \
7589 X$ac_file : 'X\(/\)' \| \
7590 . : '\(.\)' 2>/dev/null ||
7592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7593 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7594 /^X\(\/\/\)$/{ s//\1/; q; }
7595 /^X\(\/\).*/{ s//\1/; q; }
7596 s/.*/./; q'`/stamp-h$_am_stamp_count
7599 cat >>$CONFIG_STATUS <<\_ACEOF
7602 # CONFIG_COMMANDS section.
7604 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7605 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7606 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7607 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7608 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7609 X"$ac_dest" : 'X\(//\)[^/]' \| \
7610 X"$ac_dest" : 'X\(//\)$' \| \
7611 X"$ac_dest" : 'X\(/\)' \| \
7612 . : '\(.\)' 2>/dev/null ||
7614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7615 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7616 /^X\(\/\/\)$/{ s//\1/; q; }
7617 /^X\(\/\).*/{ s//\1/; q; }
7619 { if $as_mkdir_p; then
7624 while test ! -d "$as_dir"; do
7625 as_dirs="$as_dir $as_dirs"
7626 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7627 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7628 X"$as_dir" : 'X\(//\)[^/]' \| \
7629 X"$as_dir" : 'X\(//\)$' \| \
7630 X"$as_dir" : 'X\(/\)' \| \
7631 . : '\(.\)' 2>/dev/null ||
7633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7634 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7635 /^X\(\/\/\)$/{ s//\1/; q; }
7636 /^X\(\/\).*/{ s//\1/; q; }
7639 test ! -n "$as_dirs" || mkdir $as_dirs
7640 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7641 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7642 { (exit 1); exit 1; }; }; }
7646 if test "$ac_dir" != .; then
7647 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7648 # A "../" for each directory in $ac_dir_suffix.
7649 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7651 ac_dir_suffix= ac_top_builddir=
7655 .) # No --srcdir option. We are building in place.
7657 if test -z "$ac_top_builddir"; then
7660 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7662 [\\/]* | ?:[\\/]* ) # Absolute path.
7663 ac_srcdir=$srcdir$ac_dir_suffix;
7664 ac_top_srcdir=$srcdir ;;
7666 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7667 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7670 # Do not use `cd foo && pwd` to compute absolute paths, because
7671 # the directories may not exist.
7673 .) ac_abs_builddir="$ac_dir";;
7676 .) ac_abs_builddir=`pwd`;;
7677 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7678 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7681 case $ac_abs_builddir in
7682 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7684 case ${ac_top_builddir}. in
7685 .) ac_abs_top_builddir=$ac_abs_builddir;;
7686 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7687 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7690 case $ac_abs_builddir in
7691 .) ac_abs_srcdir=$ac_srcdir;;
7694 .) ac_abs_srcdir=$ac_abs_builddir;;
7695 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7696 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7699 case $ac_abs_builddir in
7700 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7702 case $ac_top_srcdir in
7703 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7704 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7705 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7710 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7711 echo "$as_me: executing $ac_dest commands" >&6;}
7713 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7714 # Strip MF so we end up with the name of the file.
7715 mf=`echo "$mf" | sed -e 's/:.*$//'`
7716 # Check whether this is an Automake generated Makefile or not.
7717 # We used to match only the files named `Makefile.in', but
7718 # some people rename them; so instead we look at the file content.
7719 # Grep'ing the first line is not enough: some people post-process
7720 # each Makefile.in and add a new line on top of each file to say so.
7721 # So let's grep whole file.
7722 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7723 dirpart=`(dirname "$mf") 2>/dev/null ||
7724 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7725 X"$mf" : 'X\(//\)[^/]' \| \
7726 X"$mf" : 'X\(//\)$' \| \
7727 X"$mf" : 'X\(/\)' \| \
7728 . : '\(.\)' 2>/dev/null ||
7730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7731 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7732 /^X\(\/\/\)$/{ s//\1/; q; }
7733 /^X\(\/\).*/{ s//\1/; q; }
7738 # Extract the definition of DEPDIR, am__include, and am__quote
7739 # from the Makefile without running `make'.
7740 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7741 test -z "$DEPDIR" && continue
7742 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7743 test -z "am__include" && continue
7744 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7745 # When using ansi2knr, U may be empty or an underscore; expand it
7746 U=`sed -n 's/^U = //p' < "$mf"`
7747 # Find all dependency output files, they are included files with
7748 # $(DEPDIR) in their names. We invoke sed twice because it is the
7749 # simplest approach to changing $(DEPDIR) to its actual value in the
7751 for file in `sed -n "
7752 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7753 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7754 # Make sure the directory exists.
7755 test -f "$dirpart/$file" && continue
7756 fdir=`(dirname "$file") 2>/dev/null ||
7757 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7758 X"$file" : 'X\(//\)[^/]' \| \
7759 X"$file" : 'X\(//\)$' \| \
7760 X"$file" : 'X\(/\)' \| \
7761 . : '\(.\)' 2>/dev/null ||
7763 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7764 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7765 /^X\(\/\/\)$/{ s//\1/; q; }
7766 /^X\(\/\).*/{ s//\1/; q; }
7768 { if $as_mkdir_p; then
7769 mkdir -p $dirpart/$fdir
7771 as_dir=$dirpart/$fdir
7773 while test ! -d "$as_dir"; do
7774 as_dirs="$as_dir $as_dirs"
7775 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7776 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7777 X"$as_dir" : 'X\(//\)[^/]' \| \
7778 X"$as_dir" : 'X\(//\)$' \| \
7779 X"$as_dir" : 'X\(/\)' \| \
7780 . : '\(.\)' 2>/dev/null ||
7782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7783 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7784 /^X\(\/\/\)$/{ s//\1/; q; }
7785 /^X\(\/\).*/{ s//\1/; q; }
7788 test ! -n "$as_dirs" || mkdir $as_dirs
7789 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
7790 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
7791 { (exit 1); exit 1; }; }; }
7793 # echo "creating $dirpart/$file"
7794 echo '# dummy' > "$dirpart/$file"
7802 cat >>$CONFIG_STATUS <<\_ACEOF
7804 { (exit 0); exit 0; }
7806 chmod +x $CONFIG_STATUS
7807 ac_clean_files=$ac_clean_files_save
7810 # configure is writing to config.log, and then calls config.status.
7811 # config.status does its own redirection, appending to config.log.
7812 # Unfortunately, on DOS this fails, as config.log is still kept open
7813 # by configure, so config.status won't be able to write to it; its
7814 # output is simply discarded. So we exec the FD to /dev/null,
7815 # effectively closing config.log, so it can be properly (re)opened and
7816 # appended to by config.status. When coming back to configure, we
7817 # need to make the FD available again.
7818 if test "$no_create" != yes; then
7820 ac_config_status_args=
7821 test "$silent" = yes &&
7822 ac_config_status_args="$ac_config_status_args --quiet"
7824 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7826 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7827 # would make configure fail if this is the last instruction.
7828 $ac_cs_success || { (exit 1); exit 1; }