metar go bye-bye
[monky] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
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 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
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
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
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 \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
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 ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
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
85
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
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
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
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
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
122     as_myself=$0
123   fi
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; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
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
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
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 |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
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; }; }
177
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).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >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
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
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'"
229
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'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
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`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
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}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="conky.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
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'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
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'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
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 ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
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" ;;
403
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'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
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 ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
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 ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
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 ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
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 ;;
465
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 ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
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 ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
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 ;;
512
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 ;;
519
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 ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
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 ;;
574
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 ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
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'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
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" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
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 ;;
618
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 ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
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'"
639     export $ac_envvar ;;
640
641   *)
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}
647     ;;
648
649   esac
650 done
651
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; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
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
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
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.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
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
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
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 ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
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; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
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}
754 ac_env_CC_value=$CC
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
773
774 #
775 # Report the --help message.
776 #
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.
780   cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
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.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
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 \`..']
800
801 _ACEOF
802
803   cat <<_ACEOF
804 Installation directories:
805   --prefix=PREFIX         install architecture-independent files in PREFIX
806                           [$ac_default_prefix]
807   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808                           [PREFIX]
809
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'.
814
815 For better control, use the options below.
816
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]
830 _ACEOF
831
832   cat <<\_ACEOF
833
834 Program names:
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
838
839 X features:
840   --x-includes=DIR    X include files are in DIR
841   --x-libraries=DIR   X library files are in DIR
842 _ACEOF
843 fi
844
845 if test -n "$ac_init_help"; then
846
847   cat <<\_ACEOF
848
849 Optional Features:
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
863
864 Optional Packages:
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
868
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>
876   CPP         C preprocessor
877
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.
880
881 _ACEOF
882 fi
883
884 if test "$ac_init_help" = "recursive"; then
885   # If there are subdirs, report their specific --help.
886   ac_popdir=`pwd`
887   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
888     test -d $ac_dir || continue
889     ac_builddir=.
890
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'`
895 else
896   ac_dir_suffix= ac_top_builddir=
897 fi
898
899 case $srcdir in
900   .)  # No --srcdir option.  We are building in place.
901     ac_srcdir=.
902     if test -z "$ac_top_builddir"; then
903        ac_top_srcdir=.
904     else
905        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
906     fi ;;
907   [\\/]* | ?:[\\/]* )  # Absolute path.
908     ac_srcdir=$srcdir$ac_dir_suffix;
909     ac_top_srcdir=$srcdir ;;
910   *) # Relative path.
911     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
912     ac_top_srcdir=$ac_top_builddir$srcdir ;;
913 esac
914
915 # Do not use `cd foo && pwd` to compute absolute paths, because
916 # the directories may not exist.
917 case `pwd` in
918 .) ac_abs_builddir="$ac_dir";;
919 *)
920   case "$ac_dir" in
921   .) ac_abs_builddir=`pwd`;;
922   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
923   *) ac_abs_builddir=`pwd`/"$ac_dir";;
924   esac;;
925 esac
926 case $ac_abs_builddir in
927 .) ac_abs_top_builddir=${ac_top_builddir}.;;
928 *)
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}.;;
933   esac;;
934 esac
935 case $ac_abs_builddir in
936 .) ac_abs_srcdir=$ac_srcdir;;
937 *)
938   case $ac_srcdir in
939   .) ac_abs_srcdir=$ac_abs_builddir;;
940   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
941   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
942   esac;;
943 esac
944 case $ac_abs_builddir in
945 .) ac_abs_top_srcdir=$ac_top_srcdir;;
946 *)
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;;
951   esac;;
952 esac
953
954     cd $ac_dir
955     # Check for guested configure; otherwise get Cygnus style configure.
956     if test -f $ac_srcdir/configure.gnu; then
957       echo
958       $SHELL $ac_srcdir/configure.gnu  --help=recursive
959     elif test -f $ac_srcdir/configure; then
960       echo
961       $SHELL $ac_srcdir/configure  --help=recursive
962     elif test -f $ac_srcdir/configure.ac ||
963            test -f $ac_srcdir/configure.in; then
964       echo
965       $ac_configure --help
966     else
967       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
968     fi
969     cd $ac_popdir
970   done
971 fi
972
973 test -n "$ac_init_help" && exit 0
974 if $ac_init_version; then
975   cat <<\_ACEOF
976
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.
980 _ACEOF
981   exit 0
982 fi
983 exec 5>config.log
984 cat >&5 <<_ACEOF
985 This file contains any messages produced by compilers while
986 running configure, to aid debugging if configure makes a mistake.
987
988 It was created by $as_me, which was
989 generated by GNU Autoconf 2.59.  Invocation command line was
990
991   $ $0 $@
992
993 _ACEOF
994 {
995 cat <<_ASUNAME
996 ## --------- ##
997 ## Platform. ##
998 ## --------- ##
999
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`
1005
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`
1008
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`
1016
1017 _ASUNAME
1018
1019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1020 for as_dir in $PATH
1021 do
1022   IFS=$as_save_IFS
1023   test -z "$as_dir" && as_dir=.
1024   echo "PATH: $as_dir"
1025 done
1026
1027 } >&5
1028
1029 cat >&5 <<_ACEOF
1030
1031
1032 ## ----------- ##
1033 ## Core tests. ##
1034 ## ----------- ##
1035
1036 _ACEOF
1037
1038
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.
1044 ac_configure_args=
1045 ac_configure_args0=
1046 ac_configure_args1=
1047 ac_sep=
1048 ac_must_keep_next=false
1049 for ac_pass in 1 2
1050 do
1051   for ac_arg
1052   do
1053     case $ac_arg in
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)
1057       continue ;;
1058     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1059       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1060     esac
1061     case $ac_pass in
1062     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1063     2)
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.
1067       else
1068         case $ac_arg in
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 ;;
1075             esac
1076             ;;
1077           -* ) ac_must_keep_next=true ;;
1078         esac
1079       fi
1080       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1081       # Get rid of the leading space.
1082       ac_sep=" "
1083       ;;
1084     esac
1085   done
1086 done
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; }
1089
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.
1097   {
1098     echo
1099
1100     cat <<\_ASBOX
1101 ## ---------------- ##
1102 ## Cache variables. ##
1103 ## ---------------- ##
1104 _ASBOX
1105     echo
1106     # The following way of writing the cache mishandles newlines in values,
1107 {
1108   (set) 2>&1 |
1109     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1110     *ac_space=\ *)
1111       sed -n \
1112         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1113           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1114       ;;
1115     *)
1116       sed -n \
1117         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1118       ;;
1119     esac;
1120 }
1121     echo
1122
1123     cat <<\_ASBOX
1124 ## ----------------- ##
1125 ## Output variables. ##
1126 ## ----------------- ##
1127 _ASBOX
1128     echo
1129     for ac_var in $ac_subst_vars
1130     do
1131       eval ac_val=$`echo $ac_var`
1132       echo "$ac_var='"'"'$ac_val'"'"'"
1133     done | sort
1134     echo
1135
1136     if test -n "$ac_subst_files"; then
1137       cat <<\_ASBOX
1138 ## ------------- ##
1139 ## Output files. ##
1140 ## ------------- ##
1141 _ASBOX
1142       echo
1143       for ac_var in $ac_subst_files
1144       do
1145         eval ac_val=$`echo $ac_var`
1146         echo "$ac_var='"'"'$ac_val'"'"'"
1147       done | sort
1148       echo
1149     fi
1150
1151     if test -s confdefs.h; then
1152       cat <<\_ASBOX
1153 ## ----------- ##
1154 ## confdefs.h. ##
1155 ## ----------- ##
1156 _ASBOX
1157       echo
1158       sed "/^$/d" confdefs.h | sort
1159       echo
1160     fi
1161     test "$ac_signal" != 0 &&
1162       echo "$as_me: caught signal $ac_signal"
1163     echo "$as_me: exit $exit_status"
1164   } >&5
1165   rm -f core *.core &&
1166   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1167     exit $exit_status
1168      ' 0
1169 for ac_signal in 1 2 13 15; do
1170   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1171 done
1172 ac_signal=0
1173
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.
1177 echo >confdefs.h
1178
1179 # Predefined preprocessor variables.
1180
1181 cat >>confdefs.h <<_ACEOF
1182 #define PACKAGE_NAME "$PACKAGE_NAME"
1183 _ACEOF
1184
1185
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1188 _ACEOF
1189
1190
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1193 _ACEOF
1194
1195
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_STRING "$PACKAGE_STRING"
1198 _ACEOF
1199
1200
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1203 _ACEOF
1204
1205
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"
1211   else
1212     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1213   fi
1214 fi
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
1220     . "$ac_site_file"
1221   fi
1222 done
1223
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;}
1230     case $cache_file in
1231       [\\/]* | ?:[\\/]* ) . $cache_file;;
1232       *)                      . ./$cache_file;;
1233     esac
1234   fi
1235 else
1236   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1237 echo "$as_me: creating cache $cache_file" >&6;}
1238   >$cache_file
1239 fi
1240
1241 # Check that the precious variables saved in the cache have kept the same
1242 # value.
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
1251     set,)
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=: ;;
1255     ,set)
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=: ;;
1259     ,);;
1260     *)
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=:
1269       fi;;
1270   esac
1271   # Pass precious variables to config.status.
1272   if test "$ac_new_set" = set; then
1273     case $ac_new_val in
1274     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1275       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1276     *) ac_arg=$ac_var=$ac_new_val ;;
1277     esac
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'" ;;
1281     esac
1282   fi
1283 done
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; }; }
1290 fi
1291
1292 ac_ext=c
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
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317 am__api_version="1.9"
1318 ac_aux_dir=
1319 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1320   if test -f $ac_dir/install-sh; then
1321     ac_aux_dir=$ac_dir
1322     ac_install_sh="$ac_aux_dir/install-sh -c"
1323     break
1324   elif test -f $ac_dir/install.sh; then
1325     ac_aux_dir=$ac_dir
1326     ac_install_sh="$ac_aux_dir/install.sh -c"
1327     break
1328   elif test -f $ac_dir/shtool; then
1329     ac_aux_dir=$ac_dir
1330     ac_install_sh="$ac_aux_dir/shtool install -c"
1331     break
1332   fi
1333 done
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; }; }
1338 fi
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.
1342
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
1349 # AIX /bin/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
1361 else
1362   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1363 for as_dir in $PATH
1364 do
1365   IFS=$as_save_IFS
1366   test -z "$as_dir" && as_dir=.
1367   # Account for people who put trailing slashes in PATH elements.
1368 case $as_dir/ in
1369   ./ | .// | /cC/* | \
1370   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1371   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1372   /usr/ucb/* ) ;;
1373   *)
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
1376     # by default.
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.
1383             :
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.
1387             :
1388           else
1389             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1390             break 3
1391           fi
1392         fi
1393       done
1394     done
1395     ;;
1396 esac
1397 done
1398
1399
1400 fi
1401   if test "${ac_cv_path_install+set}" = set; then
1402     INSTALL=$ac_cv_path_install
1403   else
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
1409   fi
1410 fi
1411 echo "$as_me:$LINENO: result: $INSTALL" >&5
1412 echo "${ECHO_T}$INSTALL" >&6
1413
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}'
1417
1418 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1419
1420 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1421
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
1424 # Just in case
1425 sleep 1
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
1431 # directory).
1432 if (
1433    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1434    if test "$*" = "X"; then
1435       # -L didn't work.
1436       set X `ls -t $srcdir/configure conftest.file`
1437    fi
1438    rm -f conftest.file
1439    if test "$*" != "X $srcdir/configure conftest.file" \
1440       && test "$*" != "X conftest.file $srcdir/configure"; then
1441
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; }; }
1451    fi
1452
1453    test "$2" = conftest.file
1454    )
1455 then
1456    # Ok.
1457    :
1458 else
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; }; }
1464 fi
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,$//
1476 _ACEOF
1477 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1478 rm conftest.sed
1479
1480 # expand $ac_aux_dir to an absolute path
1481 am_aux_dir=`cd $ac_aux_dir && pwd`
1482
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 "
1487 else
1488   am_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;}
1491 fi
1492
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
1498   # for two reasons:
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 --'
1509 else
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
1513   # exists.
1514   for d in ./-p ./--version;
1515   do
1516     test -d $d && rmdir $d
1517   done
1518   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1519   if test -f "$ac_aux_dir/mkinstalldirs"; then
1520     mkdir_p='$(mkinstalldirs)'
1521   else
1522     mkdir_p='$(install_sh) -d'
1523   fi
1524 fi
1525
1526 for ac_prog in gawk mawk nawk awk
1527 do
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
1534 else
1535   if test -n "$AWK"; then
1536   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1537 else
1538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1539 for as_dir in $PATH
1540 do
1541   IFS=$as_save_IFS
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
1547     break 2
1548   fi
1549 done
1550 done
1551
1552 fi
1553 fi
1554 AWK=$ac_cv_prog_AWK
1555 if test -n "$AWK"; then
1556   echo "$as_me:$LINENO: result: $AWK" >&5
1557 echo "${ECHO_T}$AWK" >&6
1558 else
1559   echo "$as_me:$LINENO: result: no" >&5
1560 echo "${ECHO_T}no" >&6
1561 fi
1562
1563   test -n "$AWK" && break
1564 done
1565
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
1571 else
1572   cat >conftest.make <<\_ACEOF
1573 all:
1574         @echo 'ac_maketemp="$(MAKE)"'
1575 _ACEOF
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
1580 else
1581   eval ac_cv_prog_make_${ac_make}_set=no
1582 fi
1583 rm -f conftest.make
1584 fi
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
1588   SET_MAKE=
1589 else
1590   echo "$as_me:$LINENO: result: no" >&5
1591 echo "${ECHO_T}no" >&6
1592   SET_MAKE="MAKE=${MAKE-make}"
1593 fi
1594
1595 rm -rf .tst 2>/dev/null
1596 mkdir .tst 2>/dev/null
1597 if test -d .tst; then
1598   am__leading_dot=.
1599 else
1600   am__leading_dot=_
1601 fi
1602 rmdir .tst 2>/dev/null
1603
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; }; }
1610 fi
1611
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'
1616   else
1617     CYGPATH_W=echo
1618   fi
1619 fi
1620
1621
1622 # Define the identity of the package.
1623  PACKAGE=conky
1624  VERSION=1.3
1625
1626
1627 cat >>confdefs.h <<_ACEOF
1628 #define PACKAGE "$PACKAGE"
1629 _ACEOF
1630
1631
1632 cat >>confdefs.h <<_ACEOF
1633 #define VERSION "$VERSION"
1634 _ACEOF
1635
1636 # Some tools Automake needs.
1637
1638 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1639
1640
1641 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1642
1643
1644 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1645
1646
1647 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1648
1649
1650 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1651
1652 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1653
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
1666 else
1667   if test -n "$STRIP"; then
1668   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1669 else
1670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1671 for as_dir in $PATH
1672 do
1673   IFS=$as_save_IFS
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
1679     break 2
1680   fi
1681 done
1682 done
1683
1684 fi
1685 fi
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
1690 else
1691   echo "$as_me:$LINENO: result: no" >&5
1692 echo "${ECHO_T}no" >&6
1693 fi
1694
1695 fi
1696 if test -z "$ac_cv_prog_STRIP"; then
1697   ac_ct_STRIP=$STRIP
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
1704 else
1705   if test -n "$ac_ct_STRIP"; then
1706   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1707 else
1708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709 for as_dir in $PATH
1710 do
1711   IFS=$as_save_IFS
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
1717     break 2
1718   fi
1719 done
1720 done
1721
1722   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1723 fi
1724 fi
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
1729 else
1730   echo "$as_me:$LINENO: result: no" >&5
1731 echo "${ECHO_T}no" >&6
1732 fi
1733
1734   STRIP=$ac_ct_STRIP
1735 else
1736   STRIP="$ac_cv_prog_STRIP"
1737 fi
1738
1739 fi
1740 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1741
1742 # We need awk for the "check" target.  The system "awk" is bad on
1743 # some platforms.
1744 # Always define AMTAR for backward compatibility.
1745
1746 AMTAR=${AMTAR-"${am_missing_run}tar"}
1747
1748 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1749
1750
1751
1752
1753
1754           ac_config_headers="$ac_config_headers config.h"
1755
1756
1757 uname=`uname`
1758
1759 case $uname in
1760   Linux*)
1761     WANT_SYSINFO=yes
1762     ;;
1763   FreeBSD*)
1764     WANT_KVM=yes
1765     ;;
1766   NetBSD*)
1767     WANT_KVM=yes
1768     WANT_OSSLIB=yes
1769     ;;
1770 # Solaris doesn't work at all right now
1771
1772 #  SunOS*)
1773 #    WANT_KSTAT=yes
1774 #    ;;
1775
1776   *)
1777     echo "Your operating system $uname isn't supported"
1778     echo "Feel free to help. :P"
1779     exit 1
1780     ;;
1781 esac
1782
1783
1784
1785 if test x$uname = xLinux; then
1786   BUILD_LINUX_TRUE=
1787   BUILD_LINUX_FALSE='#'
1788 else
1789   BUILD_LINUX_TRUE='#'
1790   BUILD_LINUX_FALSE=
1791 fi
1792
1793
1794
1795 if test x$uname = xSunOS; then
1796   BUILD_SOLARIS_TRUE=
1797   BUILD_SOLARIS_FALSE='#'
1798 else
1799   BUILD_SOLARIS_TRUE='#'
1800   BUILD_SOLARIS_FALSE=
1801 fi
1802
1803
1804
1805 if test x$uname = xFreeBSD; then
1806   BUILD_FREEBSD_TRUE=
1807   BUILD_FREEBSD_FALSE='#'
1808 else
1809   BUILD_FREEBSD_TRUE='#'
1810   BUILD_FREEBSD_FALSE=
1811 fi
1812
1813
1814
1815 if test x$uname = xNetBSD; then
1816   BUILD_NETBSD_TRUE=
1817   BUILD_NETBSD_FALSE='#'
1818 else
1819   BUILD_NETBSD_TRUE='#'
1820   BUILD_NETBSD_FALSE=
1821 fi
1822
1823
1824
1825 want_xft=no
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"
1830 fi;
1831
1832
1833 dah=yes
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"
1837   dah="$enableval"
1838 fi;
1839
1840 if test $dah != "no"; then
1841
1842 cat >>confdefs.h <<\_ACEOF
1843 #define OWN_WINDOW 1
1844 _ACEOF
1845
1846 fi
1847
1848
1849 dah=yes
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"
1853   dah="$enableval"
1854 fi;
1855
1856 if test $dah != "no"; then
1857
1858 cat >>confdefs.h <<\_ACEOF
1859 #define DOUBLE_BUFFER 1
1860 _ACEOF
1861
1862   DEPDIR="${am__leading_dot}deps"
1863
1864           ac_config_commands="$ac_config_commands depfiles"
1865
1866
1867 am_make=${MAKE-make}
1868 cat > confinc << 'END'
1869 am__doit:
1870         @echo done
1871 .PHONY: am__doit
1872 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
1876 am__include="#"
1877 am__quote=
1878 _am_result=none
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
1887    am__include=include
1888    am__quote=
1889    _am_result=GNU
1890 fi
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
1896       am__quote="\""
1897       _am_result=BSD
1898    fi
1899 fi
1900
1901
1902 echo "$as_me:$LINENO: result: $_am_result" >&5
1903 echo "${ECHO_T}$_am_result" >&6
1904 rm -f confinc confmf
1905
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"
1909
1910 fi;
1911 if test "x$enable_dependency_tracking" != xno; then
1912   am_depcomp="$ac_aux_dir/depcomp"
1913   AMDEPBACKSLASH='\'
1914 fi
1915
1916
1917 if test "x$enable_dependency_tracking" != xno; then
1918   AMDEP_TRUE=
1919   AMDEP_FALSE='#'
1920 else
1921   AMDEP_TRUE='#'
1922   AMDEP_FALSE=
1923 fi
1924
1925
1926
1927 ac_ext=c
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
1939 else
1940   if test -n "$CC"; then
1941   ac_cv_prog_CC="$CC" # Let the user override the test.
1942 else
1943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944 for as_dir in $PATH
1945 do
1946   IFS=$as_save_IFS
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
1952     break 2
1953   fi
1954 done
1955 done
1956
1957 fi
1958 fi
1959 CC=$ac_cv_prog_CC
1960 if test -n "$CC"; then
1961   echo "$as_me:$LINENO: result: $CC" >&5
1962 echo "${ECHO_T}$CC" >&6
1963 else
1964   echo "$as_me:$LINENO: result: no" >&5
1965 echo "${ECHO_T}no" >&6
1966 fi
1967
1968 fi
1969 if test -z "$ac_cv_prog_CC"; then
1970   ac_ct_CC=$CC
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
1977 else
1978   if test -n "$ac_ct_CC"; then
1979   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1980 else
1981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982 for as_dir in $PATH
1983 do
1984   IFS=$as_save_IFS
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
1990     break 2
1991   fi
1992 done
1993 done
1994
1995 fi
1996 fi
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
2001 else
2002   echo "$as_me:$LINENO: result: no" >&5
2003 echo "${ECHO_T}no" >&6
2004 fi
2005
2006   CC=$ac_ct_CC
2007 else
2008   CC="$ac_cv_prog_CC"
2009 fi
2010
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
2019 else
2020   if test -n "$CC"; then
2021   ac_cv_prog_CC="$CC" # Let the user override the test.
2022 else
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024 for as_dir in $PATH
2025 do
2026   IFS=$as_save_IFS
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
2032     break 2
2033   fi
2034 done
2035 done
2036
2037 fi
2038 fi
2039 CC=$ac_cv_prog_CC
2040 if test -n "$CC"; then
2041   echo "$as_me:$LINENO: result: $CC" >&5
2042 echo "${ECHO_T}$CC" >&6
2043 else
2044   echo "$as_me:$LINENO: result: no" >&5
2045 echo "${ECHO_T}no" >&6
2046 fi
2047
2048 fi
2049 if test -z "$ac_cv_prog_CC"; then
2050   ac_ct_CC=$CC
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
2057 else
2058   if test -n "$ac_ct_CC"; then
2059   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2060 else
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062 for as_dir in $PATH
2063 do
2064   IFS=$as_save_IFS
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
2070     break 2
2071   fi
2072 done
2073 done
2074
2075 fi
2076 fi
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
2081 else
2082   echo "$as_me:$LINENO: result: no" >&5
2083 echo "${ECHO_T}no" >&6
2084 fi
2085
2086   CC=$ac_ct_CC
2087 else
2088   CC="$ac_cv_prog_CC"
2089 fi
2090
2091 fi
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
2099 else
2100   if test -n "$CC"; then
2101   ac_cv_prog_CC="$CC" # Let the user override the test.
2102 else
2103   ac_prog_rejected=no
2104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105 for as_dir in $PATH
2106 do
2107   IFS=$as_save_IFS
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
2113        continue
2114      fi
2115     ac_cv_prog_CC="cc"
2116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2117     break 2
2118   fi
2119 done
2120 done
2121
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
2125   shift
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.
2130     shift
2131     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2132   fi
2133 fi
2134 fi
2135 fi
2136 CC=$ac_cv_prog_CC
2137 if test -n "$CC"; then
2138   echo "$as_me:$LINENO: result: $CC" >&5
2139 echo "${ECHO_T}$CC" >&6
2140 else
2141   echo "$as_me:$LINENO: result: no" >&5
2142 echo "${ECHO_T}no" >&6
2143 fi
2144
2145 fi
2146 if test -z "$CC"; then
2147   if test -n "$ac_tool_prefix"; then
2148   for ac_prog in cl
2149   do
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
2156 else
2157   if test -n "$CC"; then
2158   ac_cv_prog_CC="$CC" # Let the user override the test.
2159 else
2160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2161 for as_dir in $PATH
2162 do
2163   IFS=$as_save_IFS
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
2169     break 2
2170   fi
2171 done
2172 done
2173
2174 fi
2175 fi
2176 CC=$ac_cv_prog_CC
2177 if test -n "$CC"; then
2178   echo "$as_me:$LINENO: result: $CC" >&5
2179 echo "${ECHO_T}$CC" >&6
2180 else
2181   echo "$as_me:$LINENO: result: no" >&5
2182 echo "${ECHO_T}no" >&6
2183 fi
2184
2185     test -n "$CC" && break
2186   done
2187 fi
2188 if test -z "$CC"; then
2189   ac_ct_CC=$CC
2190   for ac_prog in cl
2191 do
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
2198 else
2199   if test -n "$ac_ct_CC"; then
2200   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2201 else
2202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203 for as_dir in $PATH
2204 do
2205   IFS=$as_save_IFS
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
2211     break 2
2212   fi
2213 done
2214 done
2215
2216 fi
2217 fi
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
2222 else
2223   echo "$as_me:$LINENO: result: no" >&5
2224 echo "${ECHO_T}no" >&6
2225 fi
2226
2227   test -n "$ac_ct_CC" && break
2228 done
2229
2230   CC=$ac_ct_CC
2231 fi
2232
2233 fi
2234
2235
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; }; }
2241
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
2248   ac_status=$?
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
2253   ac_status=$?
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
2258   ac_status=$?
2259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260   (exit $ac_status); }
2261
2262 cat >conftest.$ac_ext <<_ACEOF
2263 /* confdefs.h.  */
2264 _ACEOF
2265 cat confdefs.h >>conftest.$ac_ext
2266 cat >>conftest.$ac_ext <<_ACEOF
2267 /* end confdefs.h.  */
2268
2269 int
2270 main ()
2271 {
2272
2273   ;
2274   return 0;
2275 }
2276 _ACEOF
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
2281 # of exeext.
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
2287   ac_status=$?
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
2292 # resort.
2293
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.
2296 ac_cv_exeext=
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
2299 do
2300   test -f "$ac_file" || continue
2301   case $ac_file in
2302     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2303         ;;
2304     conftest.$ac_ext )
2305         # This is the source file.
2306         ;;
2307     [ab].out )
2308         # We found the default executable, but exeext='' is most
2309         # certainly right.
2310         break;;
2311     *.* )
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.
2316         export ac_cv_exeext
2317         break;;
2318     * )
2319         break;;
2320   esac
2321 done
2322 else
2323   echo "$as_me: failed program was:" >&5
2324 sed 's/^/| /' conftest.$ac_ext >&5
2325
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; }; }
2331 fi
2332
2333 ac_exeext=$ac_cv_exeext
2334 echo "$as_me:$LINENO: result: $ac_file" >&5
2335 echo "${ECHO_T}$ac_file" >&6
2336
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
2346   (eval $ac_try) 2>&5
2347   ac_status=$?
2348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349   (exit $ac_status); }; }; then
2350     cross_compiling=no
2351   else
2352     if test "$cross_compiling" = maybe; then
2353         cross_compiling=yes
2354     else
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; }; }
2362     fi
2363   fi
2364 fi
2365 echo "$as_me:$LINENO: result: yes" >&5
2366 echo "${ECHO_T}yes" >&6
2367
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
2376
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
2381   ac_status=$?
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
2387 # `rm'.
2388 for ac_file in conftest.exe conftest conftest.*; do
2389   test -f "$ac_file" || continue
2390   case $ac_file in
2391     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2392     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2393           export ac_cv_exeext
2394           break;;
2395     * ) break;;
2396   esac
2397 done
2398 else
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; }; }
2404 fi
2405
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
2409
2410 rm -f conftest.$ac_ext
2411 EXEEXT=$ac_cv_exeext
2412 ac_exeext=$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
2417 else
2418   cat >conftest.$ac_ext <<_ACEOF
2419 /* confdefs.h.  */
2420 _ACEOF
2421 cat confdefs.h >>conftest.$ac_ext
2422 cat >>conftest.$ac_ext <<_ACEOF
2423 /* end confdefs.h.  */
2424
2425 int
2426 main ()
2427 {
2428
2429   ;
2430   return 0;
2431 }
2432 _ACEOF
2433 rm -f conftest.o conftest.obj
2434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2435   (eval $ac_compile) 2>&5
2436   ac_status=$?
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
2440   case $ac_file in
2441     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2442     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2443        break;;
2444   esac
2445 done
2446 else
2447   echo "$as_me: failed program was:" >&5
2448 sed 's/^/| /' conftest.$ac_ext >&5
2449
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; }; }
2455 fi
2456
2457 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2458 fi
2459 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2460 echo "${ECHO_T}$ac_cv_objext" >&6
2461 OBJEXT=$ac_cv_objext
2462 ac_objext=$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
2467 else
2468   cat >conftest.$ac_ext <<_ACEOF
2469 /* confdefs.h.  */
2470 _ACEOF
2471 cat confdefs.h >>conftest.$ac_ext
2472 cat >>conftest.$ac_ext <<_ACEOF
2473 /* end confdefs.h.  */
2474
2475 int
2476 main ()
2477 {
2478 #ifndef __GNUC__
2479        choke me
2480 #endif
2481
2482   ;
2483   return 0;
2484 }
2485 _ACEOF
2486 rm -f conftest.$ac_objext
2487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2488   (eval $ac_compile) 2>conftest.er1
2489   ac_status=$?
2490   grep -v '^ *+' conftest.er1 >conftest.err
2491   rm -f conftest.er1
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
2498   (eval $ac_try) 2>&5
2499   ac_status=$?
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
2504   (eval $ac_try) 2>&5
2505   ac_status=$?
2506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507   (exit $ac_status); }; }; then
2508   ac_compiler_gnu=yes
2509 else
2510   echo "$as_me: failed program was:" >&5
2511 sed 's/^/| /' conftest.$ac_ext >&5
2512
2513 ac_compiler_gnu=no
2514 fi
2515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2516 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2517
2518 fi
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
2524 CFLAGS="-g"
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
2529 else
2530   cat >conftest.$ac_ext <<_ACEOF
2531 /* confdefs.h.  */
2532 _ACEOF
2533 cat confdefs.h >>conftest.$ac_ext
2534 cat >>conftest.$ac_ext <<_ACEOF
2535 /* end confdefs.h.  */
2536
2537 int
2538 main ()
2539 {
2540
2541   ;
2542   return 0;
2543 }
2544 _ACEOF
2545 rm -f conftest.$ac_objext
2546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2547   (eval $ac_compile) 2>conftest.er1
2548   ac_status=$?
2549   grep -v '^ *+' conftest.er1 >conftest.err
2550   rm -f conftest.er1
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
2557   (eval $ac_try) 2>&5
2558   ac_status=$?
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
2563   (eval $ac_try) 2>&5
2564   ac_status=$?
2565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566   (exit $ac_status); }; }; then
2567   ac_cv_prog_cc_g=yes
2568 else
2569   echo "$as_me: failed program was:" >&5
2570 sed 's/^/| /' conftest.$ac_ext >&5
2571
2572 ac_cv_prog_cc_g=no
2573 fi
2574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2575 fi
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
2582     CFLAGS="-g -O2"
2583   else
2584     CFLAGS="-g"
2585   fi
2586 else
2587   if test "$GCC" = yes; then
2588     CFLAGS="-O2"
2589   else
2590     CFLAGS=
2591   fi
2592 fi
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
2597 else
2598   ac_cv_prog_cc_stdc=no
2599 ac_save_CC=$CC
2600 cat >conftest.$ac_ext <<_ACEOF
2601 /* confdefs.h.  */
2602 _ACEOF
2603 cat confdefs.h >>conftest.$ac_ext
2604 cat >>conftest.$ac_ext <<_ACEOF
2605 /* end confdefs.h.  */
2606 #include <stdarg.h>
2607 #include <stdio.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)
2614      char **p;
2615      int i;
2616 {
2617   return p[i];
2618 }
2619 static char *f (char * (*g) (char **, int), char **p, ...)
2620 {
2621   char *s;
2622   va_list v;
2623   va_start (v,p);
2624   s = g (p, va_arg (v,int));
2625   va_end (v);
2626   return s;
2627 }
2628
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];
2637
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);
2642 int argc;
2643 char **argv;
2644 int
2645 main ()
2646 {
2647 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2648   ;
2649   return 0;
2650 }
2651 _ACEOF
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__"
2660 do
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
2665   ac_status=$?
2666   grep -v '^ *+' conftest.er1 >conftest.err
2667   rm -f conftest.er1
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
2674   (eval $ac_try) 2>&5
2675   ac_status=$?
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
2680   (eval $ac_try) 2>&5
2681   ac_status=$?
2682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683   (exit $ac_status); }; }; then
2684   ac_cv_prog_cc_stdc=$ac_arg
2685 break
2686 else
2687   echo "$as_me: failed program was:" >&5
2688 sed 's/^/| /' conftest.$ac_ext >&5
2689
2690 fi
2691 rm -f conftest.err conftest.$ac_objext
2692 done
2693 rm -f conftest.$ac_ext conftest.$ac_objext
2694 CC=$ac_save_CC
2695
2696 fi
2697
2698 case "x$ac_cv_prog_cc_stdc" in
2699   x|xno)
2700     echo "$as_me:$LINENO: result: none needed" >&5
2701 echo "${ECHO_T}none needed" >&6 ;;
2702   *)
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" ;;
2706 esac
2707
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
2713 #ifndef __cplusplus
2714   choke me
2715 #endif
2716 _ACEOF
2717 rm -f conftest.$ac_objext
2718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2719   (eval $ac_compile) 2>conftest.er1
2720   ac_status=$?
2721   grep -v '^ *+' conftest.er1 >conftest.err
2722   rm -f conftest.er1
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
2729   (eval $ac_try) 2>&5
2730   ac_status=$?
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
2735   (eval $ac_try) 2>&5
2736   ac_status=$?
2737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738   (exit $ac_status); }; }; then
2739   for ac_declaration in \
2740    '' \
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);' \
2745    'void exit (int);'
2746 do
2747   cat >conftest.$ac_ext <<_ACEOF
2748 /* confdefs.h.  */
2749 _ACEOF
2750 cat confdefs.h >>conftest.$ac_ext
2751 cat >>conftest.$ac_ext <<_ACEOF
2752 /* end confdefs.h.  */
2753 $ac_declaration
2754 #include <stdlib.h>
2755 int
2756 main ()
2757 {
2758 exit (42);
2759   ;
2760   return 0;
2761 }
2762 _ACEOF
2763 rm -f conftest.$ac_objext
2764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2765   (eval $ac_compile) 2>conftest.er1
2766   ac_status=$?
2767   grep -v '^ *+' conftest.er1 >conftest.err
2768   rm -f conftest.er1
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
2775   (eval $ac_try) 2>&5
2776   ac_status=$?
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
2781   (eval $ac_try) 2>&5
2782   ac_status=$?
2783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784   (exit $ac_status); }; }; then
2785   :
2786 else
2787   echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.$ac_ext >&5
2789
2790 continue
2791 fi
2792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2793   cat >conftest.$ac_ext <<_ACEOF
2794 /* confdefs.h.  */
2795 _ACEOF
2796 cat confdefs.h >>conftest.$ac_ext
2797 cat >>conftest.$ac_ext <<_ACEOF
2798 /* end confdefs.h.  */
2799 $ac_declaration
2800 int
2801 main ()
2802 {
2803 exit (42);
2804   ;
2805   return 0;
2806 }
2807 _ACEOF
2808 rm -f conftest.$ac_objext
2809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2810   (eval $ac_compile) 2>conftest.er1
2811   ac_status=$?
2812   grep -v '^ *+' conftest.er1 >conftest.err
2813   rm -f conftest.er1
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
2820   (eval $ac_try) 2>&5
2821   ac_status=$?
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
2826   (eval $ac_try) 2>&5
2827   ac_status=$?
2828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829   (exit $ac_status); }; }; then
2830   break
2831 else
2832   echo "$as_me: failed program was:" >&5
2833 sed 's/^/| /' conftest.$ac_ext >&5
2834
2835 fi
2836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2837 done
2838 rm -f conftest*
2839 if test -n "$ac_declaration"; then
2840   echo '#ifdef __cplusplus' >>confdefs.h
2841   echo $ac_declaration      >>confdefs.h
2842   echo '#endif'             >>confdefs.h
2843 fi
2844
2845 else
2846   echo "$as_me: failed program was:" >&5
2847 sed 's/^/| /' conftest.$ac_ext >&5
2848
2849 fi
2850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2851 ac_ext=c
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
2856
2857 depcc="$CC"   am_compiler_list=
2858
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
2863 else
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
2869   # in D'.
2870   mkdir conftest.dir
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
2874   cd 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
2880   # directory.
2881   mkdir sub
2882
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`
2886   fi
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.
2891     #
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.
2895     : > sub/conftest.c
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
2901     done
2902     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2903
2904     case $depmode in
2905     nosideeffect)
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
2909         continue
2910       else
2911         break
2912       fi
2913       ;;
2914     none) break ;;
2915     esac
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
2937         break
2938       fi
2939     fi
2940   done
2941
2942   cd ..
2943   rm -rf conftest.dir
2944 else
2945   am_cv_CC_dependencies_compiler_type=none
2946 fi
2947
2948 fi
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
2952
2953
2954
2955 if
2956   test "x$enable_dependency_tracking" != xno \
2957   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2958   am__fastdepCC_TRUE=
2959   am__fastdepCC_FALSE='#'
2960 else
2961   am__fastdepCC_TRUE='#'
2962   am__fastdepCC_FALSE=
2963 fi
2964
2965
2966
2967 ac_ext=c
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
2976   CPP=
2977 fi
2978 if test -z "$CPP"; then
2979   if test "${ac_cv_prog_CPP+set}" = set; then
2980   echo $ECHO_N "(cached) $ECHO_C" >&6
2981 else
2982       # Double quotes because CPP needs to be expanded
2983     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2984     do
2985       ac_preproc_ok=false
2986 for ac_c_preproc_warn_flag in '' yes
2987 do
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
2995 /* confdefs.h.  */
2996 _ACEOF
2997 cat confdefs.h >>conftest.$ac_ext
2998 cat >>conftest.$ac_ext <<_ACEOF
2999 /* end confdefs.h.  */
3000 #ifdef __STDC__
3001 # include <limits.h>
3002 #else
3003 # include <assert.h>
3004 #endif
3005                      Syntax error
3006 _ACEOF
3007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3008   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3009   ac_status=$?
3010   grep -v '^ *+' conftest.er1 >conftest.err
3011   rm -f conftest.er1
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
3018   else
3019     ac_cpp_err=
3020   fi
3021 else
3022   ac_cpp_err=yes
3023 fi
3024 if test -z "$ac_cpp_err"; then
3025   :
3026 else
3027   echo "$as_me: failed program was:" >&5
3028 sed 's/^/| /' conftest.$ac_ext >&5
3029
3030   # Broken: fails on valid input.
3031 continue
3032 fi
3033 rm -f conftest.err conftest.$ac_ext
3034
3035   # OK, works on sane cases.  Now check whether non-existent headers
3036   # can be detected and how.
3037   cat >conftest.$ac_ext <<_ACEOF
3038 /* confdefs.h.  */
3039 _ACEOF
3040 cat confdefs.h >>conftest.$ac_ext
3041 cat >>conftest.$ac_ext <<_ACEOF
3042 /* end confdefs.h.  */
3043 #include <ac_nonexistent.h>
3044 _ACEOF
3045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3046   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3047   ac_status=$?
3048   grep -v '^ *+' conftest.er1 >conftest.err
3049   rm -f conftest.er1
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
3056   else
3057     ac_cpp_err=
3058   fi
3059 else
3060   ac_cpp_err=yes
3061 fi
3062 if test -z "$ac_cpp_err"; then
3063   # Broken: success on invalid input.
3064 continue
3065 else
3066   echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.$ac_ext >&5
3068
3069   # Passes both tests.
3070 ac_preproc_ok=:
3071 break
3072 fi
3073 rm -f conftest.err conftest.$ac_ext
3074
3075 done
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
3079   break
3080 fi
3081
3082     done
3083     ac_cv_prog_CPP=$CPP
3084
3085 fi
3086   CPP=$ac_cv_prog_CPP
3087 else
3088   ac_cv_prog_CPP=$CPP
3089 fi
3090 echo "$as_me:$LINENO: result: $CPP" >&5
3091 echo "${ECHO_T}$CPP" >&6
3092 ac_preproc_ok=false
3093 for ac_c_preproc_warn_flag in '' yes
3094 do
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
3102 /* confdefs.h.  */
3103 _ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h.  */
3107 #ifdef __STDC__
3108 # include <limits.h>
3109 #else
3110 # include <assert.h>
3111 #endif
3112                      Syntax error
3113 _ACEOF
3114 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3115   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3116   ac_status=$?
3117   grep -v '^ *+' conftest.er1 >conftest.err
3118   rm -f conftest.er1
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
3125   else
3126     ac_cpp_err=
3127   fi
3128 else
3129   ac_cpp_err=yes
3130 fi
3131 if test -z "$ac_cpp_err"; then
3132   :
3133 else
3134   echo "$as_me: failed program was:" >&5
3135 sed 's/^/| /' conftest.$ac_ext >&5
3136
3137   # Broken: fails on valid input.
3138 continue
3139 fi
3140 rm -f conftest.err conftest.$ac_ext
3141
3142   # OK, works on sane cases.  Now check whether non-existent headers
3143   # can be detected and how.
3144   cat >conftest.$ac_ext <<_ACEOF
3145 /* confdefs.h.  */
3146 _ACEOF
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h.  */
3150 #include <ac_nonexistent.h>
3151 _ACEOF
3152 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3153   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3154   ac_status=$?
3155   grep -v '^ *+' conftest.er1 >conftest.err
3156   rm -f conftest.er1
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
3163   else
3164     ac_cpp_err=
3165   fi
3166 else
3167   ac_cpp_err=yes
3168 fi
3169 if test -z "$ac_cpp_err"; then
3170   # Broken: success on invalid input.
3171 continue
3172 else
3173   echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3175
3176   # Passes both tests.
3177 ac_preproc_ok=:
3178 break
3179 fi
3180 rm -f conftest.err conftest.$ac_ext
3181
3182 done
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
3186   :
3187 else
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; }; }
3193 fi
3194
3195 ac_ext=c
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
3200
3201
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
3206 else
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'
3210     fi
3211 fi
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
3215
3216
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
3221 else
3222   cat >conftest.$ac_ext <<_ACEOF
3223 /* confdefs.h.  */
3224 _ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h.  */
3228 #include <stdlib.h>
3229 #include <stdarg.h>
3230 #include <string.h>
3231 #include <float.h>
3232
3233 int
3234 main ()
3235 {
3236
3237   ;
3238   return 0;
3239 }
3240 _ACEOF
3241 rm -f conftest.$ac_objext
3242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3243   (eval $ac_compile) 2>conftest.er1
3244   ac_status=$?
3245   grep -v '^ *+' conftest.er1 >conftest.err
3246   rm -f conftest.er1
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
3253   (eval $ac_try) 2>&5
3254   ac_status=$?
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
3259   (eval $ac_try) 2>&5
3260   ac_status=$?
3261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262   (exit $ac_status); }; }; then
3263   ac_cv_header_stdc=yes
3264 else
3265   echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3267
3268 ac_cv_header_stdc=no
3269 fi
3270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3271
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
3275 /* confdefs.h.  */
3276 _ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h.  */
3280 #include <string.h>
3281
3282 _ACEOF
3283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3284   $EGREP "memchr" >/dev/null 2>&1; then
3285   :
3286 else
3287   ac_cv_header_stdc=no
3288 fi
3289 rm -f conftest*
3290
3291 fi
3292
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
3296 /* confdefs.h.  */
3297 _ACEOF
3298 cat confdefs.h >>conftest.$ac_ext
3299 cat >>conftest.$ac_ext <<_ACEOF
3300 /* end confdefs.h.  */
3301 #include <stdlib.h>
3302
3303 _ACEOF
3304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3305   $EGREP "free" >/dev/null 2>&1; then
3306   :
3307 else
3308   ac_cv_header_stdc=no
3309 fi
3310 rm -f conftest*
3311
3312 fi
3313
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
3317   :
3318 else
3319   cat >conftest.$ac_ext <<_ACEOF
3320 /* confdefs.h.  */
3321 _ACEOF
3322 cat confdefs.h >>conftest.$ac_ext
3323 cat >>conftest.$ac_ext <<_ACEOF
3324 /* end confdefs.h.  */
3325 #include <ctype.h>
3326 #if ((' ' & 0x0FF) == 0x020)
3327 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3328 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3329 #else
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))
3335 #endif
3336
3337 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3338 int
3339 main ()
3340 {
3341   int i;
3342   for (i = 0; i < 256; i++)
3343     if (XOR (islower (i), ISLOWER (i))
3344         || toupper (i) != TOUPPER (i))
3345       exit(2);
3346   exit (0);
3347 }
3348 _ACEOF
3349 rm -f conftest$ac_exeext
3350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3351   (eval $ac_link) 2>&5
3352   ac_status=$?
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
3356   (eval $ac_try) 2>&5
3357   ac_status=$?
3358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359   (exit $ac_status); }; }; then
3360   :
3361 else
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
3365
3366 ( exit $ac_status )
3367 ac_cv_header_stdc=no
3368 fi
3369 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3370 fi
3371 fi
3372 fi
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
3376
3377 cat >>confdefs.h <<\_ACEOF
3378 #define STDC_HEADERS 1
3379 _ACEOF
3380
3381 fi
3382
3383 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3384
3385
3386
3387
3388
3389
3390
3391
3392
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
3395 do
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
3401 else
3402   cat >conftest.$ac_ext <<_ACEOF
3403 /* confdefs.h.  */
3404 _ACEOF
3405 cat confdefs.h >>conftest.$ac_ext
3406 cat >>conftest.$ac_ext <<_ACEOF
3407 /* end confdefs.h.  */
3408 $ac_includes_default
3409
3410 #include <$ac_header>
3411 _ACEOF
3412 rm -f conftest.$ac_objext
3413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3414   (eval $ac_compile) 2>conftest.er1
3415   ac_status=$?
3416   grep -v '^ *+' conftest.er1 >conftest.err
3417   rm -f conftest.er1
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
3424   (eval $ac_try) 2>&5
3425   ac_status=$?
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
3430   (eval $ac_try) 2>&5
3431   ac_status=$?
3432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433   (exit $ac_status); }; }; then
3434   eval "$as_ac_Header=yes"
3435 else
3436   echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3438
3439 eval "$as_ac_Header=no"
3440 fi
3441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3442 fi
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
3448 _ACEOF
3449
3450 fi
3451
3452 done
3453
3454
3455
3456 for ac_header in X11/extensions/Xdbe.h
3457 do
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
3464 fi
3465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3467 else
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
3472 /* confdefs.h.  */
3473 _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>
3479 _ACEOF
3480 rm -f conftest.$ac_objext
3481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3482   (eval $ac_compile) 2>conftest.er1
3483   ac_status=$?
3484   grep -v '^ *+' conftest.er1 >conftest.err
3485   rm -f conftest.er1
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
3492   (eval $ac_try) 2>&5
3493   ac_status=$?
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
3498   (eval $ac_try) 2>&5
3499   ac_status=$?
3500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501   (exit $ac_status); }; }; then
3502   ac_header_compiler=yes
3503 else
3504   echo "$as_me: failed program was:" >&5
3505 sed 's/^/| /' conftest.$ac_ext >&5
3506
3507 ac_header_compiler=no
3508 fi
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
3512
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
3517 /* confdefs.h.  */
3518 _ACEOF
3519 cat confdefs.h >>conftest.$ac_ext
3520 cat >>conftest.$ac_ext <<_ACEOF
3521 /* end confdefs.h.  */
3522 #include <$ac_header>
3523 _ACEOF
3524 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3525   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3526   ac_status=$?
3527   grep -v '^ *+' conftest.er1 >conftest.err
3528   rm -f conftest.er1
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
3535   else
3536     ac_cpp_err=
3537   fi
3538 else
3539   ac_cpp_err=yes
3540 fi
3541 if test -z "$ac_cpp_err"; then
3542   ac_header_preproc=yes
3543 else
3544   echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3546
3547   ac_header_preproc=no
3548 fi
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
3552
3553 # So?  What about this header?
3554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3555   yes:no: )
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
3561     ;;
3562   no: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;}
3575     (
3576       cat <<\_ASBOX
3577 ## ------------------------------------------ ##
3578 ## Report this to the AC_PACKAGE_NAME lists.  ##
3579 ## ------------------------------------------ ##
3580 _ASBOX
3581     ) |
3582       sed "s/^/$as_me: WARNING:     /" >&2
3583     ;;
3584 esac
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
3589 else
3590   eval "$as_ac_Header=\$ac_header_preproc"
3591 fi
3592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3594
3595 fi
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
3599 _ACEOF
3600
3601 cat >>confdefs.h <<\_ACEOF
3602 #define HAVE_XDBE 1
3603 _ACEOF
3604
3605 else
3606   XDBE_MISSING=yes
3607 fi
3608
3609 done
3610
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; }; }
3615   fi
3616 fi
3617
3618
3619 dah=no
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"
3623   dah="$enableval"
3624 fi;
3625
3626 if test $dah = "yes"; then
3627
3628 cat >>confdefs.h <<\_ACEOF
3629 #define PROC_UPTIME 1
3630 _ACEOF
3631
3632 fi
3633
3634
3635 want_seti=no
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"
3640 fi;
3641
3642
3643
3644 if test x$want_seti == xyes; then
3645   BUILD_SETI_TRUE=
3646   BUILD_SETI_FALSE='#'
3647 else
3648   BUILD_SETI_TRUE='#'
3649   BUILD_SETI_FALSE=
3650 fi
3651
3652 if test x$want_seti == xyes; then
3653
3654 cat >>confdefs.h <<\_ACEOF
3655 #define SETI 1
3656 _ACEOF
3657
3658 fi
3659
3660
3661 want_mpd=no
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"
3666 fi;
3667
3668
3669
3670 if test x$want_mpd == xyes; then
3671   BUILD_MPD_TRUE=
3672   BUILD_MPD_FALSE='#'
3673 else
3674   BUILD_MPD_TRUE='#'
3675   BUILD_MPD_FALSE=
3676 fi
3677
3678 if test x$want_mpd == xyes; then
3679
3680 cat >>confdefs.h <<\_ACEOF
3681 #define MPD 1
3682 _ACEOF
3683
3684 fi
3685
3686
3687 want_cairo=no
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"
3692 fi;
3693
3694
3695
3696 if test x$want_cairo == xyes; then
3697   BUILD_CAIRO_TRUE=
3698   BUILD_CAIRO_FALSE='#'
3699 else
3700   BUILD_CAIRO_TRUE='#'
3701   BUILD_CAIRO_FALSE=
3702 fi
3703
3704
3705
3706 if test "$want_cairo" = "yes"; then
3707
3708
3709 for ac_header in cairo.h cairo-xlib.h
3710 do
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
3717 fi
3718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3720 else
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
3725 /* confdefs.h.  */
3726 _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>
3732 _ACEOF
3733 rm -f conftest.$ac_objext
3734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3735   (eval $ac_compile) 2>conftest.er1
3736   ac_status=$?
3737   grep -v '^ *+' conftest.er1 >conftest.err
3738   rm -f conftest.er1
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
3745   (eval $ac_try) 2>&5
3746   ac_status=$?
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
3751   (eval $ac_try) 2>&5
3752   ac_status=$?
3753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754   (exit $ac_status); }; }; then
3755   ac_header_compiler=yes
3756 else
3757   echo "$as_me: failed program was:" >&5
3758 sed 's/^/| /' conftest.$ac_ext >&5
3759
3760 ac_header_compiler=no
3761 fi
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
3765
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
3770 /* confdefs.h.  */
3771 _ACEOF
3772 cat confdefs.h >>conftest.$ac_ext
3773 cat >>conftest.$ac_ext <<_ACEOF
3774 /* end confdefs.h.  */
3775 #include <$ac_header>
3776 _ACEOF
3777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3778   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3779   ac_status=$?
3780   grep -v '^ *+' conftest.er1 >conftest.err
3781   rm -f conftest.er1
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
3788   else
3789     ac_cpp_err=
3790   fi
3791 else
3792   ac_cpp_err=yes
3793 fi
3794 if test -z "$ac_cpp_err"; then
3795   ac_header_preproc=yes
3796 else
3797   echo "$as_me: failed program was:" >&5
3798 sed 's/^/| /' conftest.$ac_ext >&5
3799
3800   ac_header_preproc=no
3801 fi
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
3805
3806 # So?  What about this header?
3807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3808   yes:no: )
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
3814     ;;
3815   no: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;}
3828     (
3829       cat <<\_ASBOX
3830 ## ------------------------------------------ ##
3831 ## Report this to the AC_PACKAGE_NAME lists.  ##
3832 ## ------------------------------------------ ##
3833 _ASBOX
3834     ) |
3835       sed "s/^/$as_me: WARNING:     /" >&2
3836     ;;
3837 esac
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
3842 else
3843   eval "$as_ac_Header=\$ac_header_preproc"
3844 fi
3845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3847
3848 fi
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
3852 _ACEOF
3853
3854 else
3855   CAIRO_MISSING=yes
3856 fi
3857
3858 done
3859
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; }; }
3864   fi
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
3871 else
3872   case $CAIROCONFIG in
3873   [\\/]* | ?:[\\/]*)
3874   ac_cv_path_CAIROCONFIG="$CAIROCONFIG" # Let the user override the test with a path.
3875   ;;
3876   *)
3877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878 for as_dir in $PATH
3879 do
3880   IFS=$as_save_IFS
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
3886     break 2
3887   fi
3888 done
3889 done
3890
3891   ;;
3892 esac
3893 fi
3894 CAIROCONFIG=$ac_cv_path_CAIROCONFIG
3895
3896 if test -n "$CAIROCONFIG"; then
3897   echo "$as_me:$LINENO: result: $CAIROCONFIG" >&5
3898 echo "${ECHO_T}$CAIROCONFIG" >&6
3899 else
3900   echo "$as_me:$LINENO: result: no" >&5
3901 echo "${ECHO_T}no" >&6
3902 fi
3903
3904   if test x$CAIROCONFIG != x; then
3905
3906
3907 cat >>confdefs.h <<\_ACEOF
3908 #define CAIRO 1
3909 _ACEOF
3910
3911     CFLAGS="$CFLAGS `$CAIROCONFIG --cflags cairo` `$CAIROCONFIG --libs cairo` "
3912     CAIRO_LIBS="`$CAIROCONFIG --libs cairo` `$CAIROCONFIG --cflags cairo`"
3913   else
3914     want_cairo=no
3915   fi
3916 fi
3917
3918
3919
3920 want_mldonkey=no
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"
3925 fi;
3926
3927
3928
3929 if test x$want_mldonkey == xyes; then
3930   BUILD_MLDONKEY_TRUE=
3931   BUILD_MLDONKEY_FALSE='#'
3932 else
3933   BUILD_MLDONKEY_TRUE='#'
3934   BUILD_MLDONKEY_FALSE=
3935 fi
3936
3937 if test x$want_mldonkey == xyes; then
3938
3939 cat >>confdefs.h <<\_ACEOF
3940 #define MLDONKEY 1
3941 _ACEOF
3942
3943 fi
3944
3945
3946 ac_ext=c
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
3958 else
3959   if test -n "$CC"; then
3960   ac_cv_prog_CC="$CC" # Let the user override the test.
3961 else
3962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 for as_dir in $PATH
3964 do
3965   IFS=$as_save_IFS
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
3971     break 2
3972   fi
3973 done
3974 done
3975
3976 fi
3977 fi
3978 CC=$ac_cv_prog_CC
3979 if test -n "$CC"; then
3980   echo "$as_me:$LINENO: result: $CC" >&5
3981 echo "${ECHO_T}$CC" >&6
3982 else
3983   echo "$as_me:$LINENO: result: no" >&5
3984 echo "${ECHO_T}no" >&6
3985 fi
3986
3987 fi
3988 if test -z "$ac_cv_prog_CC"; then
3989   ac_ct_CC=$CC
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
3996 else
3997   if test -n "$ac_ct_CC"; then
3998   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3999 else
4000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001 for as_dir in $PATH
4002 do
4003   IFS=$as_save_IFS
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
4009     break 2
4010   fi
4011 done
4012 done
4013
4014 fi
4015 fi
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
4020 else
4021   echo "$as_me:$LINENO: result: no" >&5
4022 echo "${ECHO_T}no" >&6
4023 fi
4024
4025   CC=$ac_ct_CC
4026 else
4027   CC="$ac_cv_prog_CC"
4028 fi
4029
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
4038 else
4039   if test -n "$CC"; then
4040   ac_cv_prog_CC="$CC" # Let the user override the test.
4041 else
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 for as_dir in $PATH
4044 do
4045   IFS=$as_save_IFS
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
4051     break 2
4052   fi
4053 done
4054 done
4055
4056 fi
4057 fi
4058 CC=$ac_cv_prog_CC
4059 if test -n "$CC"; then
4060   echo "$as_me:$LINENO: result: $CC" >&5
4061 echo "${ECHO_T}$CC" >&6
4062 else
4063   echo "$as_me:$LINENO: result: no" >&5
4064 echo "${ECHO_T}no" >&6
4065 fi
4066
4067 fi
4068 if test -z "$ac_cv_prog_CC"; then
4069   ac_ct_CC=$CC
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
4076 else
4077   if test -n "$ac_ct_CC"; then
4078   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4079 else
4080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4081 for as_dir in $PATH
4082 do
4083   IFS=$as_save_IFS
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
4089     break 2
4090   fi
4091 done
4092 done
4093
4094 fi
4095 fi
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
4100 else
4101   echo "$as_me:$LINENO: result: no" >&5
4102 echo "${ECHO_T}no" >&6
4103 fi
4104
4105   CC=$ac_ct_CC
4106 else
4107   CC="$ac_cv_prog_CC"
4108 fi
4109
4110 fi
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
4118 else
4119   if test -n "$CC"; then
4120   ac_cv_prog_CC="$CC" # Let the user override the test.
4121 else
4122   ac_prog_rejected=no
4123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124 for as_dir in $PATH
4125 do
4126   IFS=$as_save_IFS
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
4132        continue
4133      fi
4134     ac_cv_prog_CC="cc"
4135     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4136     break 2
4137   fi
4138 done
4139 done
4140
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
4144   shift
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.
4149     shift
4150     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4151   fi
4152 fi
4153 fi
4154 fi
4155 CC=$ac_cv_prog_CC
4156 if test -n "$CC"; then
4157   echo "$as_me:$LINENO: result: $CC" >&5
4158 echo "${ECHO_T}$CC" >&6
4159 else
4160   echo "$as_me:$LINENO: result: no" >&5
4161 echo "${ECHO_T}no" >&6
4162 fi
4163
4164 fi
4165 if test -z "$CC"; then
4166   if test -n "$ac_tool_prefix"; then
4167   for ac_prog in cl
4168   do
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
4175 else
4176   if test -n "$CC"; then
4177   ac_cv_prog_CC="$CC" # Let the user override the test.
4178 else
4179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180 for as_dir in $PATH
4181 do
4182   IFS=$as_save_IFS
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
4188     break 2
4189   fi
4190 done
4191 done
4192
4193 fi
4194 fi
4195 CC=$ac_cv_prog_CC
4196 if test -n "$CC"; then
4197   echo "$as_me:$LINENO: result: $CC" >&5
4198 echo "${ECHO_T}$CC" >&6
4199 else
4200   echo "$as_me:$LINENO: result: no" >&5
4201 echo "${ECHO_T}no" >&6
4202 fi
4203
4204     test -n "$CC" && break
4205   done
4206 fi
4207 if test -z "$CC"; then
4208   ac_ct_CC=$CC
4209   for ac_prog in cl
4210 do
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
4217 else
4218   if test -n "$ac_ct_CC"; then
4219   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4220 else
4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 for as_dir in $PATH
4223 do
4224   IFS=$as_save_IFS
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
4230     break 2
4231   fi
4232 done
4233 done
4234
4235 fi
4236 fi
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
4241 else
4242   echo "$as_me:$LINENO: result: no" >&5
4243 echo "${ECHO_T}no" >&6
4244 fi
4245
4246   test -n "$ac_ct_CC" && break
4247 done
4248
4249   CC=$ac_ct_CC
4250 fi
4251
4252 fi
4253
4254
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; }; }
4260
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
4267   ac_status=$?
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
4272   ac_status=$?
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
4277   ac_status=$?
4278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279   (exit $ac_status); }
4280
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
4285 else
4286   cat >conftest.$ac_ext <<_ACEOF
4287 /* confdefs.h.  */
4288 _ACEOF
4289 cat confdefs.h >>conftest.$ac_ext
4290 cat >>conftest.$ac_ext <<_ACEOF
4291 /* end confdefs.h.  */
4292
4293 int
4294 main ()
4295 {
4296 #ifndef __GNUC__
4297        choke me
4298 #endif
4299
4300   ;
4301   return 0;
4302 }
4303 _ACEOF
4304 rm -f conftest.$ac_objext
4305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4306   (eval $ac_compile) 2>conftest.er1
4307   ac_status=$?
4308   grep -v '^ *+' conftest.er1 >conftest.err
4309   rm -f conftest.er1
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
4316   (eval $ac_try) 2>&5
4317   ac_status=$?
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
4322   (eval $ac_try) 2>&5
4323   ac_status=$?
4324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325   (exit $ac_status); }; }; then
4326   ac_compiler_gnu=yes
4327 else
4328   echo "$as_me: failed program was:" >&5
4329 sed 's/^/| /' conftest.$ac_ext >&5
4330
4331 ac_compiler_gnu=no
4332 fi
4333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4334 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4335
4336 fi
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
4342 CFLAGS="-g"
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
4347 else
4348   cat >conftest.$ac_ext <<_ACEOF
4349 /* confdefs.h.  */
4350 _ACEOF
4351 cat confdefs.h >>conftest.$ac_ext
4352 cat >>conftest.$ac_ext <<_ACEOF
4353 /* end confdefs.h.  */
4354
4355 int
4356 main ()
4357 {
4358
4359   ;
4360   return 0;
4361 }
4362 _ACEOF
4363 rm -f conftest.$ac_objext
4364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4365   (eval $ac_compile) 2>conftest.er1
4366   ac_status=$?
4367   grep -v '^ *+' conftest.er1 >conftest.err
4368   rm -f conftest.er1
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
4375   (eval $ac_try) 2>&5
4376   ac_status=$?
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
4381   (eval $ac_try) 2>&5
4382   ac_status=$?
4383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384   (exit $ac_status); }; }; then
4385   ac_cv_prog_cc_g=yes
4386 else
4387   echo "$as_me: failed program was:" >&5
4388 sed 's/^/| /' conftest.$ac_ext >&5
4389
4390 ac_cv_prog_cc_g=no
4391 fi
4392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4393 fi
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
4400     CFLAGS="-g -O2"
4401   else
4402     CFLAGS="-g"
4403   fi
4404 else
4405   if test "$GCC" = yes; then
4406     CFLAGS="-O2"
4407   else
4408     CFLAGS=
4409   fi
4410 fi
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
4415 else
4416   ac_cv_prog_cc_stdc=no
4417 ac_save_CC=$CC
4418 cat >conftest.$ac_ext <<_ACEOF
4419 /* confdefs.h.  */
4420 _ACEOF
4421 cat confdefs.h >>conftest.$ac_ext
4422 cat >>conftest.$ac_ext <<_ACEOF
4423 /* end confdefs.h.  */
4424 #include <stdarg.h>
4425 #include <stdio.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)
4432      char **p;
4433      int i;
4434 {
4435   return p[i];
4436 }
4437 static char *f (char * (*g) (char **, int), char **p, ...)
4438 {
4439   char *s;
4440   va_list v;
4441   va_start (v,p);
4442   s = g (p, va_arg (v,int));
4443   va_end (v);
4444   return s;
4445 }
4446
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];
4455
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);
4460 int argc;
4461 char **argv;
4462 int
4463 main ()
4464 {
4465 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4466   ;
4467   return 0;
4468 }
4469 _ACEOF
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__"
4478 do
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
4483   ac_status=$?
4484   grep -v '^ *+' conftest.er1 >conftest.err
4485   rm -f conftest.er1
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
4492   (eval $ac_try) 2>&5
4493   ac_status=$?
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
4498   (eval $ac_try) 2>&5
4499   ac_status=$?
4500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501   (exit $ac_status); }; }; then
4502   ac_cv_prog_cc_stdc=$ac_arg
4503 break
4504 else
4505   echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4507
4508 fi
4509 rm -f conftest.err conftest.$ac_objext
4510 done
4511 rm -f conftest.$ac_ext conftest.$ac_objext
4512 CC=$ac_save_CC
4513
4514 fi
4515
4516 case "x$ac_cv_prog_cc_stdc" in
4517   x|xno)
4518     echo "$as_me:$LINENO: result: none needed" >&5
4519 echo "${ECHO_T}none needed" >&6 ;;
4520   *)
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" ;;
4524 esac
4525
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
4531 #ifndef __cplusplus
4532   choke me
4533 #endif
4534 _ACEOF
4535 rm -f conftest.$ac_objext
4536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4537   (eval $ac_compile) 2>conftest.er1
4538   ac_status=$?
4539   grep -v '^ *+' conftest.er1 >conftest.err
4540   rm -f conftest.er1
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
4547   (eval $ac_try) 2>&5
4548   ac_status=$?
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
4553   (eval $ac_try) 2>&5
4554   ac_status=$?
4555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556   (exit $ac_status); }; }; then
4557   for ac_declaration in \
4558    '' \
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);' \
4563    'void exit (int);'
4564 do
4565   cat >conftest.$ac_ext <<_ACEOF
4566 /* confdefs.h.  */
4567 _ACEOF
4568 cat confdefs.h >>conftest.$ac_ext
4569 cat >>conftest.$ac_ext <<_ACEOF
4570 /* end confdefs.h.  */
4571 $ac_declaration
4572 #include <stdlib.h>
4573 int
4574 main ()
4575 {
4576 exit (42);
4577   ;
4578   return 0;
4579 }
4580 _ACEOF
4581 rm -f conftest.$ac_objext
4582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4583   (eval $ac_compile) 2>conftest.er1
4584   ac_status=$?
4585   grep -v '^ *+' conftest.er1 >conftest.err
4586   rm -f conftest.er1
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
4593   (eval $ac_try) 2>&5
4594   ac_status=$?
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
4599   (eval $ac_try) 2>&5
4600   ac_status=$?
4601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602   (exit $ac_status); }; }; then
4603   :
4604 else
4605   echo "$as_me: failed program was:" >&5
4606 sed 's/^/| /' conftest.$ac_ext >&5
4607
4608 continue
4609 fi
4610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4611   cat >conftest.$ac_ext <<_ACEOF
4612 /* confdefs.h.  */
4613 _ACEOF
4614 cat confdefs.h >>conftest.$ac_ext
4615 cat >>conftest.$ac_ext <<_ACEOF
4616 /* end confdefs.h.  */
4617 $ac_declaration
4618 int
4619 main ()
4620 {
4621 exit (42);
4622   ;
4623   return 0;
4624 }
4625 _ACEOF
4626 rm -f conftest.$ac_objext
4627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4628   (eval $ac_compile) 2>conftest.er1
4629   ac_status=$?
4630   grep -v '^ *+' conftest.er1 >conftest.err
4631   rm -f conftest.er1
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
4638   (eval $ac_try) 2>&5
4639   ac_status=$?
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
4644   (eval $ac_try) 2>&5
4645   ac_status=$?
4646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647   (exit $ac_status); }; }; then
4648   break
4649 else
4650   echo "$as_me: failed program was:" >&5
4651 sed 's/^/| /' conftest.$ac_ext >&5
4652
4653 fi
4654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4655 done
4656 rm -f conftest*
4657 if test -n "$ac_declaration"; then
4658   echo '#ifdef __cplusplus' >>confdefs.h
4659   echo $ac_declaration      >>confdefs.h
4660   echo '#endif'             >>confdefs.h
4661 fi
4662
4663 else
4664   echo "$as_me: failed program was:" >&5
4665 sed 's/^/| /' conftest.$ac_ext >&5
4666
4667 fi
4668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4669 ac_ext=c
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
4674
4675 depcc="$CC"   am_compiler_list=
4676
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
4681 else
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
4687   # in D'.
4688   mkdir conftest.dir
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
4692   cd 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
4698   # directory.
4699   mkdir sub
4700
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`
4704   fi
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.
4709     #
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.
4713     : > sub/conftest.c
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
4719     done
4720     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4721
4722     case $depmode in
4723     nosideeffect)
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
4727         continue
4728       else
4729         break
4730       fi
4731       ;;
4732     none) break ;;
4733     esac
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
4755         break
4756       fi
4757     fi
4758   done
4759
4760   cd ..
4761   rm -rf conftest.dir
4762 else
4763   am_cv_CC_dependencies_compiler_type=none
4764 fi
4765
4766 fi
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
4770
4771
4772
4773 if
4774   test "x$enable_dependency_tracking" != xno \
4775   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4776   am__fastdepCC_TRUE=
4777   am__fastdepCC_FALSE='#'
4778 else
4779   am__fastdepCC_TRUE='#'
4780   am__fastdepCC_FALSE=
4781 fi
4782
4783
4784
4785
4786 want_x11=yes
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"
4791 fi;
4792
4793
4794
4795
4796 if test x$want_x11 == xyes; then
4797   BUILD_X11_TRUE=
4798   BUILD_X11_FALSE='#'
4799 else
4800   BUILD_X11_TRUE='#'
4801   BUILD_X11_FALSE=
4802 fi
4803
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
4807
4808
4809 # Check whether --with-x or --without-x was given.
4810 if test "${with_x+set}" = set; then
4811   withval="$with_x"
4812
4813 fi;
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.
4817   have_x=disabled
4818 else
4819   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4820     # Both variables are already set.
4821     have_x=yes
4822   else
4823     if test "${ac_cv_have_x+set}" = set; then
4824   echo $ECHO_N "(cached) $ECHO_C" >&6
4825 else
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
4828 rm -fr conftest.dir
4829 if mkdir conftest.dir; then
4830   cd conftest.dir
4831   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4832   cat >Imakefile <<'_ACEOF'
4833 acfindx:
4834         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4835 _ACEOF
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
4844       fi
4845     done
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
4850         /usr/include) ;;
4851         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4852     esac
4853     case $ac_im_usrlibdir in
4854         /usr/lib | /lib) ;;
4855         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4856     esac
4857   fi
4858   cd ..
4859   rm -fr conftest.dir
4860 fi
4861
4862 # Standard set of common directories for X headers.
4863 # Check X11 before X11Rn because it is often a symlink to the current release.
4864 ac_x_header_dirs='
4865 /usr/X11/include
4866 /usr/X11R6/include
4867 /usr/X11R5/include
4868 /usr/X11R4/include
4869
4870 /usr/include/X11
4871 /usr/include/X11R6
4872 /usr/include/X11R5
4873 /usr/include/X11R4
4874
4875 /usr/local/X11/include
4876 /usr/local/X11R6/include
4877 /usr/local/X11R5/include
4878 /usr/local/X11R4/include
4879
4880 /usr/local/include/X11
4881 /usr/local/include/X11R6
4882 /usr/local/include/X11R5
4883 /usr/local/include/X11R4
4884
4885 /usr/X386/include
4886 /usr/x386/include
4887 /usr/XFree86/include/X11
4888
4889 /usr/include
4890 /usr/local/include
4891 /usr/unsupported/include
4892 /usr/athena/include
4893 /usr/local/x11r5/include
4894 /usr/lpp/Xamples/include
4895
4896 /usr/openwin/include
4897 /usr/openwin/share/include'
4898
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
4903 /* confdefs.h.  */
4904 _ACEOF
4905 cat confdefs.h >>conftest.$ac_ext
4906 cat >>conftest.$ac_ext <<_ACEOF
4907 /* end confdefs.h.  */
4908 #include <X11/Intrinsic.h>
4909 _ACEOF
4910 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4911   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4912   ac_status=$?
4913   grep -v '^ *+' conftest.er1 >conftest.err
4914   rm -f conftest.er1
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
4921   else
4922     ac_cpp_err=
4923   fi
4924 else
4925   ac_cpp_err=yes
4926 fi
4927 if test -z "$ac_cpp_err"; then
4928   # We can compile using X headers with no special include directory.
4929 ac_x_includes=
4930 else
4931   echo "$as_me: failed program was:" >&5
4932 sed 's/^/| /' conftest.$ac_ext >&5
4933
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
4937     break
4938   fi
4939 done
4940 fi
4941 rm -f conftest.err conftest.$ac_ext
4942 fi # $ac_x_includes = no
4943
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.
4948   ac_save_LIBS=$LIBS
4949   LIBS="-lXt $LIBS"
4950   cat >conftest.$ac_ext <<_ACEOF
4951 /* confdefs.h.  */
4952 _ACEOF
4953 cat confdefs.h >>conftest.$ac_ext
4954 cat >>conftest.$ac_ext <<_ACEOF
4955 /* end confdefs.h.  */
4956 #include <X11/Intrinsic.h>
4957 int
4958 main ()
4959 {
4960 XtMalloc (0)
4961   ;
4962   return 0;
4963 }
4964 _ACEOF
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
4968   ac_status=$?
4969   grep -v '^ *+' conftest.er1 >conftest.err
4970   rm -f conftest.er1
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
4977   (eval $ac_try) 2>&5
4978   ac_status=$?
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
4983   (eval $ac_try) 2>&5
4984   ac_status=$?
4985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986   (exit $ac_status); }; }; then
4987   LIBS=$ac_save_LIBS
4988 # We can link X programs with no special library path.
4989 ac_x_libraries=
4990 else
4991   echo "$as_me: failed program was:" >&5
4992 sed 's/^/| /' conftest.$ac_ext >&5
4993
4994 LIBS=$ac_save_LIBS
4995 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4996 do
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
5001       break 2
5002     fi
5003   done
5004 done
5005 fi
5006 rm -f conftest.err conftest.$ac_objext \
5007       conftest$ac_exeext conftest.$ac_ext
5008 fi # $ac_x_libraries = no
5009
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"
5013 else
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"
5017 fi
5018 fi
5019
5020   fi
5021   eval "$ac_cv_have_x"
5022 fi # $with_x != no
5023
5024 if test "$have_x" != yes; then
5025   echo "$as_me:$LINENO: result: $have_x" >&5
5026 echo "${ECHO_T}$have_x" >&6
5027   no_x=yes
5028 else
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
5037 fi
5038
5039
5040 for ac_header in X11/Xlib.h
5041 do
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
5048 fi
5049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5050 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5051 else
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
5056 /* confdefs.h.  */
5057 _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>
5063 _ACEOF
5064 rm -f conftest.$ac_objext
5065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5066   (eval $ac_compile) 2>conftest.er1
5067   ac_status=$?
5068   grep -v '^ *+' conftest.er1 >conftest.err
5069   rm -f conftest.er1
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
5076   (eval $ac_try) 2>&5
5077   ac_status=$?
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
5082   (eval $ac_try) 2>&5
5083   ac_status=$?
5084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085   (exit $ac_status); }; }; then
5086   ac_header_compiler=yes
5087 else
5088   echo "$as_me: failed program was:" >&5
5089 sed 's/^/| /' conftest.$ac_ext >&5
5090
5091 ac_header_compiler=no
5092 fi
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
5096
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
5101 /* confdefs.h.  */
5102 _ACEOF
5103 cat confdefs.h >>conftest.$ac_ext
5104 cat >>conftest.$ac_ext <<_ACEOF
5105 /* end confdefs.h.  */
5106 #include <$ac_header>
5107 _ACEOF
5108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5109   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5110   ac_status=$?
5111   grep -v '^ *+' conftest.er1 >conftest.err
5112   rm -f conftest.er1
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
5119   else
5120     ac_cpp_err=
5121   fi
5122 else
5123   ac_cpp_err=yes
5124 fi
5125 if test -z "$ac_cpp_err"; then
5126   ac_header_preproc=yes
5127 else
5128   echo "$as_me: failed program was:" >&5
5129 sed 's/^/| /' conftest.$ac_ext >&5
5130
5131   ac_header_preproc=no
5132 fi
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
5136
5137 # So?  What about this header?
5138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5139   yes:no: )
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
5145     ;;
5146   no: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;}
5159     (
5160       cat <<\_ASBOX
5161 ## ------------------------------------------ ##
5162 ## Report this to the AC_PACKAGE_NAME lists.  ##
5163 ## ------------------------------------------ ##
5164 _ASBOX
5165     ) |
5166       sed "s/^/$as_me: WARNING:     /" >&2
5167     ;;
5168 esac
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
5173 else
5174   eval "$as_ac_Header=\$ac_header_preproc"
5175 fi
5176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5178
5179 fi
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
5183 _ACEOF
5184
5185 else
5186   X11_MISSING=yes
5187 fi
5188
5189 done
5190
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
5195 else
5196   ac_check_lib_save_LIBS=$LIBS
5197 LIBS="-lX11 -L$x_libraries $LIBS"
5198 cat >conftest.$ac_ext <<_ACEOF
5199 /* confdefs.h.  */
5200 _ACEOF
5201 cat confdefs.h >>conftest.$ac_ext
5202 cat >>conftest.$ac_ext <<_ACEOF
5203 /* end confdefs.h.  */
5204
5205 /* Override any gcc2 internal prototype to avoid an error.  */
5206 #ifdef __cplusplus
5207 extern "C"
5208 #endif
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 ();
5212 int
5213 main ()
5214 {
5215 XOpenDisplay ();
5216   ;
5217   return 0;
5218 }
5219 _ACEOF
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
5223   ac_status=$?
5224   grep -v '^ *+' conftest.er1 >conftest.err
5225   rm -f conftest.er1
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
5232   (eval $ac_try) 2>&5
5233   ac_status=$?
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
5238   (eval $ac_try) 2>&5
5239   ac_status=$?
5240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241   (exit $ac_status); }; }; then
5242   ac_cv_lib_X11_XOpenDisplay=yes
5243 else
5244   echo "$as_me: failed program was:" >&5
5245 sed 's/^/| /' conftest.$ac_ext >&5
5246
5247 ac_cv_lib_X11_XOpenDisplay=no
5248 fi
5249 rm -f conftest.err conftest.$ac_objext \
5250       conftest$ac_exeext conftest.$ac_ext
5251 LIBS=$ac_check_lib_save_LIBS
5252 fi
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
5256   X11_LIBS="-lX11"
5257 fi
5258
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
5263 else
5264   ac_check_lib_save_LIBS=$LIBS
5265 LIBS="-lXext -L$x_libraries $X11_LIBS $LIBS"
5266 cat >conftest.$ac_ext <<_ACEOF
5267 /* confdefs.h.  */
5268 _ACEOF
5269 cat confdefs.h >>conftest.$ac_ext
5270 cat >>conftest.$ac_ext <<_ACEOF
5271 /* end confdefs.h.  */
5272
5273 /* Override any gcc2 internal prototype to avoid an error.  */
5274 #ifdef __cplusplus
5275 extern "C"
5276 #endif
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 ();
5280 int
5281 main ()
5282 {
5283 XdbeQueryExtension ();
5284   ;
5285   return 0;
5286 }
5287 _ACEOF
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
5291   ac_status=$?
5292   grep -v '^ *+' conftest.er1 >conftest.err
5293   rm -f conftest.er1
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
5300   (eval $ac_try) 2>&5
5301   ac_status=$?
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
5306   (eval $ac_try) 2>&5
5307   ac_status=$?
5308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309   (exit $ac_status); }; }; then
5310   ac_cv_lib_Xext_XdbeQueryExtension=yes
5311 else
5312   echo "$as_me: failed program was:" >&5
5313 sed 's/^/| /' conftest.$ac_ext >&5
5314
5315 ac_cv_lib_Xext_XdbeQueryExtension=no
5316 fi
5317 rm -f conftest.err conftest.$ac_objext \
5318       conftest$ac_exeext conftest.$ac_ext
5319 LIBS=$ac_check_lib_save_LIBS
5320 fi
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
5324
5325    X11_LIBS="$X11_LIBS -lXext"
5326
5327 cat >>confdefs.h <<\_ACEOF
5328 #define HAVE_LIBXEXT 1
5329 _ACEOF
5330
5331
5332 fi
5333
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; }; }
5338   fi
5339
5340 cat >>confdefs.h <<\_ACEOF
5341 #define X11 1
5342 _ACEOF
5343
5344
5345 cat >>confdefs.h <<\_ACEOF
5346 #define HAVE_X11 1
5347 _ACEOF
5348
5349 fi
5350
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
5355 else
5356   ac_check_lib_save_LIBS=$LIBS
5357 LIBS="-lX11 -L$x_libraries $LIBS"
5358 cat >conftest.$ac_ext <<_ACEOF
5359 /* confdefs.h.  */
5360 _ACEOF
5361 cat confdefs.h >>conftest.$ac_ext
5362 cat >>conftest.$ac_ext <<_ACEOF
5363 /* end confdefs.h.  */
5364
5365 /* Override any gcc2 internal prototype to avoid an error.  */
5366 #ifdef __cplusplus
5367 extern "C"
5368 #endif
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 ();
5372 int
5373 main ()
5374 {
5375 XOpenDisplay ();
5376   ;
5377   return 0;
5378 }
5379 _ACEOF
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
5383   ac_status=$?
5384   grep -v '^ *+' conftest.er1 >conftest.err
5385   rm -f conftest.er1
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
5392   (eval $ac_try) 2>&5
5393   ac_status=$?
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
5398   (eval $ac_try) 2>&5
5399   ac_status=$?
5400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401   (exit $ac_status); }; }; then
5402   ac_cv_lib_X11_XOpenDisplay=yes
5403 else
5404   echo "$as_me: failed program was:" >&5
5405 sed 's/^/| /' conftest.$ac_ext >&5
5406
5407 ac_cv_lib_X11_XOpenDisplay=no
5408 fi
5409 rm -f conftest.err conftest.$ac_objext \
5410       conftest$ac_exeext conftest.$ac_ext
5411 LIBS=$ac_check_lib_save_LIBS
5412 fi
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
5416   X11_LIBS="-lX11"
5417 fi
5418
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
5423 else
5424   ac_check_lib_save_LIBS=$LIBS
5425 LIBS="-lXext -L$x_libraries $X11_LIBS $LIBS"
5426 cat >conftest.$ac_ext <<_ACEOF
5427 /* confdefs.h.  */
5428 _ACEOF
5429 cat confdefs.h >>conftest.$ac_ext
5430 cat >>conftest.$ac_ext <<_ACEOF
5431 /* end confdefs.h.  */
5432
5433 /* Override any gcc2 internal prototype to avoid an error.  */
5434 #ifdef __cplusplus
5435 extern "C"
5436 #endif
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 ();
5440 int
5441 main ()
5442 {
5443 XdbeQueryExtension ();
5444   ;
5445   return 0;
5446 }
5447 _ACEOF
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
5451   ac_status=$?
5452   grep -v '^ *+' conftest.er1 >conftest.err
5453   rm -f conftest.er1
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
5460   (eval $ac_try) 2>&5
5461   ac_status=$?
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
5466   (eval $ac_try) 2>&5
5467   ac_status=$?
5468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469   (exit $ac_status); }; }; then
5470   ac_cv_lib_Xext_XdbeQueryExtension=yes
5471 else
5472   echo "$as_me: failed program was:" >&5
5473 sed 's/^/| /' conftest.$ac_ext >&5
5474
5475 ac_cv_lib_Xext_XdbeQueryExtension=no
5476 fi
5477 rm -f conftest.err conftest.$ac_objext \
5478       conftest$ac_exeext conftest.$ac_ext
5479 LIBS=$ac_check_lib_save_LIBS
5480 fi
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
5484
5485    X11_LIBS="$X11_LIBS -lXext"
5486
5487 cat >>confdefs.h <<\_ACEOF
5488 #define HAVE_LIBXEXT 1
5489 _ACEOF
5490
5491
5492 fi
5493
5494
5495 if test "$x_libraries" != ""; then
5496   LDFLAGS="$LDFLAGS -L$x_libraries"
5497 fi
5498
5499 if test "$x_includes" != ""; then
5500   CFLAGS="$CFLAGS -Wall -I$x_includes"
5501 fi
5502
5503
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
5511 else
5512   case $XFTCONFIG in
5513   [\\/]* | ?:[\\/]*)
5514   ac_cv_path_XFTCONFIG="$XFTCONFIG" # Let the user override the test with a path.
5515   ;;
5516   *)
5517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5518 for as_dir in $PATH
5519 do
5520   IFS=$as_save_IFS
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
5526     break 2
5527   fi
5528 done
5529 done
5530
5531   ;;
5532 esac
5533 fi
5534 XFTCONFIG=$ac_cv_path_XFTCONFIG
5535
5536 if test -n "$XFTCONFIG"; then
5537   echo "$as_me:$LINENO: result: $XFTCONFIG" >&5
5538 echo "${ECHO_T}$XFTCONFIG" >&6
5539 else
5540   echo "$as_me:$LINENO: result: no" >&5
5541 echo "${ECHO_T}no" >&6
5542 fi
5543
5544   if test x$XFTCONFIG != x; then
5545
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; }; }
5550   fi
5551
5552
5553 cat >>confdefs.h <<\_ACEOF
5554 #define XFT 1
5555 _ACEOF
5556
5557     CFLAGS="$CFLAGS `$XFTCONFIG --cflags`"
5558     XFT_LIBS=`$XFTCONFIG --libs`
5559   else
5560     want_xft=no
5561   fi
5562 fi
5563
5564
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
5570 else
5571   ac_check_lib_save_LIBS=$LIBS
5572 LIBS="-lkvm  $LIBS"
5573 cat >conftest.$ac_ext <<_ACEOF
5574 /* confdefs.h.  */
5575 _ACEOF
5576 cat confdefs.h >>conftest.$ac_ext
5577 cat >>conftest.$ac_ext <<_ACEOF
5578 /* end confdefs.h.  */
5579
5580 /* Override any gcc2 internal prototype to avoid an error.  */
5581 #ifdef __cplusplus
5582 extern "C"
5583 #endif
5584 /* We use char because int might match the return type of a gcc2
5585    builtin and then its argument prototype would still apply.  */
5586 char kvm_open ();
5587 int
5588 main ()
5589 {
5590 kvm_open ();
5591   ;
5592   return 0;
5593 }
5594 _ACEOF
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
5598   ac_status=$?
5599   grep -v '^ *+' conftest.er1 >conftest.err
5600   rm -f conftest.er1
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
5607   (eval $ac_try) 2>&5
5608   ac_status=$?
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
5613   (eval $ac_try) 2>&5
5614   ac_status=$?
5615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616   (exit $ac_status); }; }; then
5617   ac_cv_lib_kvm_kvm_open=yes
5618 else
5619   echo "$as_me: failed program was:" >&5
5620 sed 's/^/| /' conftest.$ac_ext >&5
5621
5622 ac_cv_lib_kvm_kvm_open=no
5623 fi
5624 rm -f conftest.err conftest.$ac_objext \
5625       conftest$ac_exeext conftest.$ac_ext
5626 LIBS=$ac_check_lib_save_LIBS
5627 fi
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
5631   LIBS="$LIBS -lkvm"
5632 else
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; }; }
5636
5637 fi
5638
5639 fi
5640
5641
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
5647 else
5648   ac_check_lib_save_LIBS=$LIBS
5649 LIBS="-lossaudio  $LIBS"
5650 cat >conftest.$ac_ext <<_ACEOF
5651 /* confdefs.h.  */
5652 _ACEOF
5653 cat confdefs.h >>conftest.$ac_ext
5654 cat >>conftest.$ac_ext <<_ACEOF
5655 /* end confdefs.h.  */
5656
5657 /* Override any gcc2 internal prototype to avoid an error.  */
5658 #ifdef __cplusplus
5659 extern "C"
5660 #endif
5661 /* We use char because int might match the return type of a gcc2
5662    builtin and then its argument prototype would still apply.  */
5663 char _oss_ioctl ();
5664 int
5665 main ()
5666 {
5667 _oss_ioctl ();
5668   ;
5669   return 0;
5670 }
5671 _ACEOF
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
5675   ac_status=$?
5676   grep -v '^ *+' conftest.er1 >conftest.err
5677   rm -f conftest.er1
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
5684   (eval $ac_try) 2>&5
5685   ac_status=$?
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
5690   (eval $ac_try) 2>&5
5691   ac_status=$?
5692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693   (exit $ac_status); }; }; then
5694   ac_cv_lib_ossaudio__oss_ioctl=yes
5695 else
5696   echo "$as_me: failed program was:" >&5
5697 sed 's/^/| /' conftest.$ac_ext >&5
5698
5699 ac_cv_lib_ossaudio__oss_ioctl=no
5700 fi
5701 rm -f conftest.err conftest.$ac_objext \
5702       conftest$ac_exeext conftest.$ac_ext
5703 LIBS=$ac_check_lib_save_LIBS
5704 fi
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"
5709 else
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; }; }
5713
5714 fi
5715
5716 fi
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727 for ac_header in signal.h unistd.h X11/Xlib.h sys/utsname.h sys/stat.h linux/soundcard.h dirent.h
5728 do
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
5735 fi
5736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5738 else
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
5743 /* confdefs.h.  */
5744 _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>
5750 _ACEOF
5751 rm -f conftest.$ac_objext
5752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5753   (eval $ac_compile) 2>conftest.er1
5754   ac_status=$?
5755   grep -v '^ *+' conftest.er1 >conftest.err
5756   rm -f conftest.er1
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
5763   (eval $ac_try) 2>&5
5764   ac_status=$?
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
5769   (eval $ac_try) 2>&5
5770   ac_status=$?
5771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772   (exit $ac_status); }; }; then
5773   ac_header_compiler=yes
5774 else
5775   echo "$as_me: failed program was:" >&5
5776 sed 's/^/| /' conftest.$ac_ext >&5
5777
5778 ac_header_compiler=no
5779 fi
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
5783
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
5788 /* confdefs.h.  */
5789 _ACEOF
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h.  */
5793 #include <$ac_header>
5794 _ACEOF
5795 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5796   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5797   ac_status=$?
5798   grep -v '^ *+' conftest.er1 >conftest.err
5799   rm -f conftest.er1
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
5806   else
5807     ac_cpp_err=
5808   fi
5809 else
5810   ac_cpp_err=yes
5811 fi
5812 if test -z "$ac_cpp_err"; then
5813   ac_header_preproc=yes
5814 else
5815   echo "$as_me: failed program was:" >&5
5816 sed 's/^/| /' conftest.$ac_ext >&5
5817
5818   ac_header_preproc=no
5819 fi
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
5823
5824 # So?  What about this header?
5825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5826   yes:no: )
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
5832     ;;
5833   no: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;}
5846     (
5847       cat <<\_ASBOX
5848 ## ------------------------------------------ ##
5849 ## Report this to the AC_PACKAGE_NAME lists.  ##
5850 ## ------------------------------------------ ##
5851 _ASBOX
5852     ) |
5853       sed "s/^/$as_me: WARNING:     /" >&2
5854     ;;
5855 esac
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
5860 else
5861   eval "$as_ac_Header=\$ac_header_preproc"
5862 fi
5863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5864 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5865
5866 fi
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
5870 _ACEOF
5871
5872 fi
5873
5874 done
5875
5876
5877
5878
5879 for ac_header in sys/statfs.h sys/param.h sys/mount.h
5880 do
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
5887 fi
5888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5889 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5890 else
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
5895 /* confdefs.h.  */
5896 _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>
5902 _ACEOF
5903 rm -f conftest.$ac_objext
5904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5905   (eval $ac_compile) 2>conftest.er1
5906   ac_status=$?
5907   grep -v '^ *+' conftest.er1 >conftest.err
5908   rm -f conftest.er1
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
5915   (eval $ac_try) 2>&5
5916   ac_status=$?
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
5921   (eval $ac_try) 2>&5
5922   ac_status=$?
5923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924   (exit $ac_status); }; }; then
5925   ac_header_compiler=yes
5926 else
5927   echo "$as_me: failed program was:" >&5
5928 sed 's/^/| /' conftest.$ac_ext >&5
5929
5930 ac_header_compiler=no
5931 fi
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
5935
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
5940 /* confdefs.h.  */
5941 _ACEOF
5942 cat confdefs.h >>conftest.$ac_ext
5943 cat >>conftest.$ac_ext <<_ACEOF
5944 /* end confdefs.h.  */
5945 #include <$ac_header>
5946 _ACEOF
5947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5948   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5949   ac_status=$?
5950   grep -v '^ *+' conftest.er1 >conftest.err
5951   rm -f conftest.er1
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
5958   else
5959     ac_cpp_err=
5960   fi
5961 else
5962   ac_cpp_err=yes
5963 fi
5964 if test -z "$ac_cpp_err"; then
5965   ac_header_preproc=yes
5966 else
5967   echo "$as_me: failed program was:" >&5
5968 sed 's/^/| /' conftest.$ac_ext >&5
5969
5970   ac_header_preproc=no
5971 fi
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
5975
5976 # So?  What about this header?
5977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5978   yes:no: )
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
5984     ;;
5985   no: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;}
5998     (
5999       cat <<\_ASBOX
6000 ## ------------------------------------------ ##
6001 ## Report this to the AC_PACKAGE_NAME lists.  ##
6002 ## ------------------------------------------ ##
6003 _ASBOX
6004     ) |
6005       sed "s/^/$as_me: WARNING:     /" >&2
6006     ;;
6007 esac
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
6012 else
6013   eval "$as_ac_Header=\$ac_header_preproc"
6014 fi
6015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6016 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6017
6018 fi
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
6022 _ACEOF
6023
6024 fi
6025
6026 done
6027
6028
6029
6030
6031 if test x$WANT_SYSINFO = xyes; then
6032   dah=no
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
6036 /* confdefs.h.  */
6037 _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>
6043 int
6044 main ()
6045 {
6046 struct sysinfo s; sysinfo(&s); (void) s.uptime;
6047   ;
6048   return 0;
6049 }
6050 _ACEOF
6051 rm -f conftest.$ac_objext
6052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6053   (eval $ac_compile) 2>conftest.er1
6054   ac_status=$?
6055   grep -v '^ *+' conftest.er1 >conftest.err
6056   rm -f conftest.er1
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
6063   (eval $ac_try) 2>&5
6064   ac_status=$?
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
6069   (eval $ac_try) 2>&5
6070   ac_status=$?
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
6075 else
6076   echo "$as_me: failed program was:" >&5
6077 sed 's/^/| /' conftest.$ac_ext >&5
6078
6079 echo "$as_me:$LINENO: result: not usable" >&5
6080 echo "${ECHO_T}not usable" >&6; dah=no
6081 fi
6082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6083
6084   if test x$dah = xyes; then
6085
6086 cat >>confdefs.h <<\_ACEOF
6087 #define HAVE_SYSINFO 1
6088 _ACEOF
6089
6090   fi
6091 fi
6092
6093
6094 if test x$WANT_KSTAT = xyes; then
6095   dah=no
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
6100 else
6101   ac_check_lib_save_LIBS=$LIBS
6102 LIBS="-lkstat  $LIBS"
6103 cat >conftest.$ac_ext <<_ACEOF
6104 /* confdefs.h.  */
6105 _ACEOF
6106 cat confdefs.h >>conftest.$ac_ext
6107 cat >>conftest.$ac_ext <<_ACEOF
6108 /* end confdefs.h.  */
6109
6110 /* Override any gcc2 internal prototype to avoid an error.  */
6111 #ifdef __cplusplus
6112 extern "C"
6113 #endif
6114 /* We use char because int might match the return type of a gcc2
6115    builtin and then its argument prototype would still apply.  */
6116 char kstat_open ();
6117 int
6118 main ()
6119 {
6120 kstat_open ();
6121   ;
6122   return 0;
6123 }
6124 _ACEOF
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
6128   ac_status=$?
6129   grep -v '^ *+' conftest.er1 >conftest.err
6130   rm -f conftest.er1
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
6137   (eval $ac_try) 2>&5
6138   ac_status=$?
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
6143   (eval $ac_try) 2>&5
6144   ac_status=$?
6145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146   (exit $ac_status); }; }; then
6147   ac_cv_lib_kstat_kstat_open=yes
6148 else
6149   echo "$as_me: failed program was:" >&5
6150 sed 's/^/| /' conftest.$ac_ext >&5
6151
6152 ac_cv_lib_kstat_kstat_open=no
6153 fi
6154 rm -f conftest.err conftest.$ac_objext \
6155       conftest$ac_exeext conftest.$ac_ext
6156 LIBS=$ac_check_lib_save_LIBS
6157 fi
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
6161   dah=yes
6162 fi
6163
6164
6165   if test x$dah = xyes; then
6166
6167 cat >>confdefs.h <<\_ACEOF
6168 #define HAVE_KSTAT 1
6169 _ACEOF
6170
6171     LDFLAGS="$LDFLAGS -lkstat"
6172   fi
6173 fi
6174
6175
6176
6177
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
6181 /* confdefs.h.  */
6182 _ACEOF
6183 cat confdefs.h >>conftest.$ac_ext
6184 cat >>conftest.$ac_ext <<_ACEOF
6185 /* end confdefs.h.  */
6186 #include <stdlib.h>
6187 int
6188 main ()
6189 {
6190 double v[3]; getloadavg(v, 3);
6191   ;
6192   return 0;
6193 }
6194 _ACEOF
6195 rm -f conftest.$ac_objext
6196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6197   (eval $ac_compile) 2>conftest.er1
6198   ac_status=$?
6199   grep -v '^ *+' conftest.er1 >conftest.err
6200   rm -f conftest.er1
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
6207   (eval $ac_try) 2>&5
6208   ac_status=$?
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
6213   (eval $ac_try) 2>&5
6214   ac_status=$?
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
6219
6220 cat >>confdefs.h <<\_ACEOF
6221 #define HAVE_GETLOADAVG 1
6222 _ACEOF
6223
6224 else
6225   echo "$as_me: failed program was:" >&5
6226 sed 's/^/| /' conftest.$ac_ext >&5
6227
6228 echo "$as_me:$LINENO: result: no" >&5
6229 echo "${ECHO_T}no" >&6
6230 fi
6231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6232
6233
6234
6235 for ac_func in popen
6236 do
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
6242 else
6243   cat >conftest.$ac_ext <<_ACEOF
6244 /* confdefs.h.  */
6245 _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
6252
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.  */
6257
6258 #ifdef __STDC__
6259 # include <limits.h>
6260 #else
6261 # include <assert.h>
6262 #endif
6263
6264 #undef $ac_func
6265
6266 /* Override any gcc2 internal prototype to avoid an error.  */
6267 #ifdef __cplusplus
6268 extern "C"
6269 {
6270 #endif
6271 /* We use char because int might match the return type of a gcc2
6272    builtin and then its argument prototype would still apply.  */
6273 char $ac_func ();
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)
6278 choke me
6279 #else
6280 char (*f) () = $ac_func;
6281 #endif
6282 #ifdef __cplusplus
6283 }
6284 #endif
6285
6286 int
6287 main ()
6288 {
6289 return f != $ac_func;
6290   ;
6291   return 0;
6292 }
6293 _ACEOF
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
6297   ac_status=$?
6298   grep -v '^ *+' conftest.er1 >conftest.err
6299   rm -f conftest.er1
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
6306   (eval $ac_try) 2>&5
6307   ac_status=$?
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
6312   (eval $ac_try) 2>&5
6313   ac_status=$?
6314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315   (exit $ac_status); }; }; then
6316   eval "$as_ac_var=yes"
6317 else
6318   echo "$as_me: failed program was:" >&5
6319 sed 's/^/| /' conftest.$ac_ext >&5
6320
6321 eval "$as_ac_var=no"
6322 fi
6323 rm -f conftest.err conftest.$ac_objext \
6324       conftest$ac_exeext conftest.$ac_ext
6325 fi
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
6331 _ACEOF
6332
6333 fi
6334 done
6335
6336
6337
6338 CFLAGS="$CFLAGS -Wall -W"
6339
6340
6341
6342
6343
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.
6351 #
6352 # config.status only pays attention to the cache file if you give it
6353 # the --recheck option to rerun configure.
6354 #
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
6357 # following values.
6358
6359 _ACEOF
6360
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.
6366 {
6367   (set) 2>&1 |
6368     case `(ac_space=' '; set | grep ac_space) 2>&1` in
6369     *ac_space=\ *)
6370       # `set' does not quote correctly, so add quotes (double-quote
6371       # substitution turns \\\\ into \\, and sed turns \\ into \).
6372       sed -n \
6373         "s/'/'\\\\''/g;
6374           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6375       ;;
6376     *)
6377       # `set' quotes correctly as required by POSIX, so do not add quotes.
6378       sed -n \
6379         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6380       ;;
6381     esac;
6382 } |
6383   sed '
6384      t clear
6385      : clear
6386      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6387      t end
6388      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6389      : end' >>confcache
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
6394   else
6395     echo "not updating unwritable cache $cache_file"
6396   fi
6397 fi
6398 rm -f confcache
6399
6400 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6401 # Let make expand exec_prefix.
6402 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6403
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}:*/:/;
6412 s/:*@srcdir@:*/:/;
6413 s/^\([^=]*=[     ]*\):*/\1/;
6414 s/:*$//;
6415 s/^[^=]*=[       ]*$//;
6416 }'
6417 fi
6418
6419 DEFS=-DHAVE_CONFIG_H
6420
6421 ac_libobjs=
6422 ac_ltlibobjs=
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$//'`
6427   # 2. Add them.
6428   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6429   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6430 done
6431 LIBOBJS=$ac_libobjs
6432
6433 LTLIBOBJS=$ac_ltlibobjs
6434
6435
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; }; }
6442 fi
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; }; }
6449 fi
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; }; }
6456 fi
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; }; }
6463 fi
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; }; }
6470 fi
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; }; }
6477 fi
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; }; }
6484 fi
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; }; }
6491 fi
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; }; }
6498 fi
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; }; }
6505 fi
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; }; }
6512 fi
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; }; }
6519 fi
6520
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
6527 #! $SHELL
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.
6532
6533 debug=false
6534 ac_cs_recheck=false
6535 ac_cs_silent=false
6536 SHELL=\${CONFIG_SHELL-$SHELL}
6537 _ACEOF
6538
6539 cat >>$CONFIG_STATUS <<\_ACEOF
6540 ## --------------------- ##
6541 ## M4sh Initialization.  ##
6542 ## --------------------- ##
6543
6544 # Be Bourne compatible
6545 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6546   emulate sh
6547   NULLCMD=:
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
6552   set -o posix
6553 fi
6554 DUALCASE=1; export DUALCASE # for MKS sh
6555
6556 # Support unset when possible.
6557 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6558   as_unset=unset
6559 else
6560   as_unset=false
6561 fi
6562
6563
6564 # Work around bugs in pre-3.0 UWIN ksh.
6565 $as_unset ENV MAIL MAILPATH
6566 PS1='$ '
6567 PS2='> '
6568 PS4='+ '
6569
6570 # NLS nuisances.
6571 for as_var in \
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
6575 do
6576   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6577     eval $as_var=C; export $as_var
6578   else
6579     $as_unset $as_var
6580   fi
6581 done
6582
6583 # Required to use basename.
6584 if expr a : '\(a\)' >/dev/null 2>&1; then
6585   as_expr=expr
6586 else
6587   as_expr=false
6588 fi
6589
6590 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6591   as_basename=basename
6592 else
6593   as_basename=false
6594 fi
6595
6596
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 ||
6603 echo X/"$0" |
6604     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6605           /^X\/\(\/\/\)$/{ s//\1/; q; }
6606           /^X\/\(\/\).*/{ s//\1/; q; }
6607           s/.*/./; q'`
6608
6609
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
6617
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
6622   chmod +x conf$$.sh
6623   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6624     PATH_SEPARATOR=';'
6625   else
6626     PATH_SEPARATOR=:
6627   fi
6628   rm -f conf$$.sh
6629 fi
6630
6631
6632   as_lineno_1=$LINENO
6633   as_lineno_2=$LINENO
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
6638   # relative or not.
6639   case $0 in
6640     *[\\/]* ) as_myself=$0 ;;
6641     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642 for as_dir in $PATH
6643 do
6644   IFS=$as_save_IFS
6645   test -z "$as_dir" && as_dir=.
6646   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6647 done
6648
6649        ;;
6650   esac
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
6654     as_myself=$0
6655   fi
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; }; }
6660   fi
6661   case $CONFIG_SHELL in
6662   '')
6663     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6665 do
6666   IFS=$as_save_IFS
6667   test -z "$as_dir" && as_dir=.
6668   for as_base in sh bash ksh sh5; do
6669          case $as_dir in
6670          /*)
6671            if ("$as_dir/$as_base" -c '
6672   as_lineno_1=$LINENO
6673   as_lineno_2=$LINENO
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
6680              export CONFIG_SHELL
6681              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6682            fi;;
6683          esac
6684        done
6685 done
6686 ;;
6687   esac
6688
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 |
6698     sed '
6699       N
6700       s,$,-,
6701       : loop
6702       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6703       t loop
6704       s,-$,,
6705       s,^['$as_cr_digits']*\n,,
6706     ' >$as_me.lineno &&
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; }; }
6711
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).
6715   . ./$as_me.lineno
6716   # Exit status is that of the last command.
6717   exit
6718 }
6719
6720
6721 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6722   *c*,-n*) ECHO_N= ECHO_C='
6723 ' ECHO_T='      ' ;;
6724   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6725   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
6726 esac
6727
6728 if expr a : '\(a\)' >/dev/null 2>&1; then
6729   as_expr=expr
6730 else
6731   as_expr=false
6732 fi
6733
6734 rm -f conf$$ conf$$.exe conf$$.file
6735 echo >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
6741     as_ln_s='cp -p'
6742   else
6743     as_ln_s='ln -s'
6744   fi
6745 elif ln conf$$.file conf$$ 2>/dev/null; then
6746   as_ln_s=ln
6747 else
6748   as_ln_s='cp -p'
6749 fi
6750 rm -f conf$$ conf$$.exe conf$$.file
6751
6752 if mkdir -p . 2>/dev/null; then
6753   as_mkdir_p=:
6754 else
6755   test -d ./-p && rmdir ./-p
6756   as_mkdir_p=false
6757 fi
6758
6759 as_executable_p="test -f"
6760
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'"
6763
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'"
6766
6767
6768 # IFS
6769 # We need space, tab and new line, in precisely that order.
6770 as_nl='
6771 '
6772 IFS="   $as_nl"
6773
6774 # CDPATH.
6775 $as_unset CDPATH
6776
6777 exec 6>&1
6778
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.
6782 exec 5>>config.log
6783 {
6784   echo
6785   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6786 ## Running $as_me. ##
6787 _ASBOX
6788 } >&5
6789 cat >&5 <<_CSEOF
6790
6791 This file was extended by $as_me, which was
6792 generated by GNU Autoconf 2.59.  Invocation command line was
6793
6794   CONFIG_FILES    = $CONFIG_FILES
6795   CONFIG_HEADERS  = $CONFIG_HEADERS
6796   CONFIG_LINKS    = $CONFIG_LINKS
6797   CONFIG_COMMANDS = $CONFIG_COMMANDS
6798   $ $0 $@
6799
6800 _CSEOF
6801 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6802 echo >&5
6803 _ACEOF
6804
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
6808 fi
6809
6810 if test -n "$ac_config_headers"; then
6811   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6812 fi
6813
6814 if test -n "$ac_config_links"; then
6815   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6816 fi
6817
6818 if test -n "$ac_config_commands"; then
6819   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6820 fi
6821
6822 cat >>$CONFIG_STATUS <<\_ACEOF
6823
6824 ac_cs_usage="\
6825 \`$as_me' instantiates files from templates according to the
6826 current configuration.
6827
6828 Usage: $0 [OPTIONS] [FILE]...
6829
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
6839
6840 Configuration files:
6841 $config_files
6842
6843 Configuration headers:
6844 $config_headers
6845
6846 Configuration commands:
6847 $config_commands
6848
6849 Report bugs to <bug-autoconf@gnu.org>."
6850 _ACEOF
6851
6852 cat >>$CONFIG_STATUS <<_ACEOF
6853 ac_cs_version="\\
6854 config.status
6855 configured by $0, generated by GNU Autoconf 2.59,
6856   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6857
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."
6861 srcdir=$srcdir
6862 INSTALL="$INSTALL"
6863 _ACEOF
6864
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.
6868 ac_need_defaults=:
6869 while test $# != 0
6870 do
6871   case $1 in
6872   --*=*)
6873     ac_option=`expr "x$1" : 'x\([^=]*\)='`
6874     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6875     ac_shift=:
6876     ;;
6877   -*)
6878     ac_option=$1
6879     ac_optarg=$2
6880     ac_shift=shift
6881     ;;
6882   *) # This is not an option, so the user has probably given explicit
6883      # arguments.
6884      ac_option=$1
6885      ac_need_defaults=false;;
6886   esac
6887
6888   case $ac_option in
6889   # Handling of the options.
6890 _ACEOF
6891 cat >>$CONFIG_STATUS <<\_ACEOF
6892   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6893     ac_cs_recheck=: ;;
6894   --version | --vers* | -V )
6895     echo "$ac_cs_version"; exit 0 ;;
6896   --he | --h)
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 )
6906     debug=: ;;
6907   --file | --fil | --fi | --f )
6908     $ac_shift
6909     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6910     ac_need_defaults=false;;
6911   --header | --heade | --head | --hea )
6912     $ac_shift
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)
6917     ac_cs_silent=: ;;
6918
6919   # This is an error.
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; }; } ;;
6925
6926   *) ac_config_targets="$ac_config_targets $1" ;;
6927
6928   esac
6929   shift
6930 done
6931
6932 ac_configure_extra_args=
6933
6934 if $ac_cs_silent; then
6935   exec 6>/dev/null
6936   ac_configure_extra_args="$ac_configure_extra_args --silent"
6937 fi
6938
6939 _ACEOF
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
6944 fi
6945
6946 _ACEOF
6947
6948 cat >>$CONFIG_STATUS <<_ACEOF
6949 #
6950 # INIT-COMMANDS section.
6951 #
6952
6953 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6954
6955 _ACEOF
6956
6957
6958
6959 cat >>$CONFIG_STATUS <<\_ACEOF
6960 for ac_config_target in $ac_config_targets
6961 do
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; }; };;
6970   esac
6971 done
6972
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
6981 fi
6982
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.
6987 $debug ||
6988 {
6989   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6990   trap '{ (exit 1); exit 1; }' 1 2 13 15
6991 }
6992
6993 # Create a (secure) tmp directory for tmp files.
6994
6995 {
6996   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6997   test -n "$tmp" && test -d "$tmp"
6998 }  ||
6999 {
7000   tmp=./confstat$$-$RANDOM
7001   (umask 077 && mkdir $tmp)
7002 } ||
7003 {
7004    echo "$me: cannot create a temporary directory in ." >&2
7005    { (exit 1); exit 1; }
7006 }
7007
7008 _ACEOF
7009
7010 cat >>$CONFIG_STATUS <<_ACEOF
7011
7012 #
7013 # CONFIG_FILES section.
7014 #
7015
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
7047 s,@DEFS@,$DEFS,;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
7051 s,@LIBS@,$LIBS,;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
7068 s,@AWK@,$AWK,;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
7082 s,@CC@,$CC,;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
7098 s,@CPP@,$CPP,;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
7116 CEOF
7117
7118 _ACEOF
7119
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.
7123   ac_max_sed_lines=48
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.
7127   ac_more_lines=:
7128   ac_sed_cmds=
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
7132     else
7133       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7134     fi
7135     if test ! -s $tmp/subs.frag; then
7136       ac_more_lines=false
7137     else
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.
7142       (echo ':t
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"
7146       else
7147         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7148       fi
7149       ac_sed_frag=`expr $ac_sed_frag + 1`
7150       ac_beg=$ac_end
7151       ac_end=`expr $ac_end + $ac_max_sed_lines`
7152     fi
7153   done
7154   if test -z "$ac_sed_cmds"; then
7155     ac_sed_cmds=cat
7156   fi
7157 fi # test -n "$CONFIG_FILES"
7158
7159 _ACEOF
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".
7163   case $ac_file in
7164   - | *:- | *:-:* ) # input from stdin
7165         cat >$tmp/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 ;;
7171   esac
7172
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 ||
7180 echo X"$ac_file" |
7181     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7182           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7183           /^X\(\/\/\)$/{ s//\1/; q; }
7184           /^X\(\/\).*/{ s//\1/; q; }
7185           s/.*/./; q'`
7186   { if $as_mkdir_p; then
7187     mkdir -p "$ac_dir"
7188   else
7189     as_dir="$ac_dir"
7190     as_dirs=
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 ||
7199 echo X"$as_dir" |
7200     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7201           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7202           /^X\(\/\/\)$/{ s//\1/; q; }
7203           /^X\(\/\).*/{ s//\1/; q; }
7204           s/.*/./; q'`
7205     done
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; }; }; }
7210
7211   ac_builddir=.
7212
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'`
7217 else
7218   ac_dir_suffix= ac_top_builddir=
7219 fi
7220
7221 case $srcdir in
7222   .)  # No --srcdir option.  We are building in place.
7223     ac_srcdir=.
7224     if test -z "$ac_top_builddir"; then
7225        ac_top_srcdir=.
7226     else
7227        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7228     fi ;;
7229   [\\/]* | ?:[\\/]* )  # Absolute path.
7230     ac_srcdir=$srcdir$ac_dir_suffix;
7231     ac_top_srcdir=$srcdir ;;
7232   *) # Relative path.
7233     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7234     ac_top_srcdir=$ac_top_builddir$srcdir ;;
7235 esac
7236
7237 # Do not use `cd foo && pwd` to compute absolute paths, because
7238 # the directories may not exist.
7239 case `pwd` in
7240 .) ac_abs_builddir="$ac_dir";;
7241 *)
7242   case "$ac_dir" in
7243   .) ac_abs_builddir=`pwd`;;
7244   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7245   *) ac_abs_builddir=`pwd`/"$ac_dir";;
7246   esac;;
7247 esac
7248 case $ac_abs_builddir in
7249 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7250 *)
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}.;;
7255   esac;;
7256 esac
7257 case $ac_abs_builddir in
7258 .) ac_abs_srcdir=$ac_srcdir;;
7259 *)
7260   case $ac_srcdir in
7261   .) ac_abs_srcdir=$ac_abs_builddir;;
7262   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7263   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7264   esac;;
7265 esac
7266 case $ac_abs_builddir in
7267 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7268 *)
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;;
7273   esac;;
7274 esac
7275
7276
7277   case $INSTALL in
7278   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7279   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7280   esac
7281
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;}
7285     rm -f "$ac_file"
7286   fi
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
7291     configure_input=
7292   else
7293     configure_input="$ac_file.  "
7294   fi
7295   configure_input=$configure_input"Generated from `echo $ac_file_in |
7296                                      sed 's,.*/,,'` by configure."
7297
7298   # First look for the input files in the build tree, otherwise in the
7299   # src tree.
7300   ac_file_inputs=`IFS=:
7301     for f in $ac_file_in; do
7302       case $f in
7303       -) echo $tmp/stdin ;;
7304       [\\/$]*)
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; }; }
7309          echo "$f";;
7310       *) # Relative
7311          if test -f "$f"; then
7312            # Build tree
7313            echo "$f"
7314          elif test -f "$srcdir/$f"; then
7315            # Source tree
7316            echo "$srcdir/$f"
7317          else
7318            # /dev/null tree
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; }; }
7322          fi;;
7323       esac
7324     done` || { (exit 1); exit 1; }
7325 _ACEOF
7326 cat >>$CONFIG_STATUS <<_ACEOF
7327   sed "$ac_vpsub
7328 $extrasub
7329 _ACEOF
7330 cat >>$CONFIG_STATUS <<\_ACEOF
7331 :t
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
7344   rm -f $tmp/stdin
7345   if test x"$ac_file" != x-; then
7346     mv $tmp/out $ac_file
7347   else
7348     cat $tmp/out
7349     rm -f $tmp/out
7350   fi
7351
7352 done
7353 _ACEOF
7354 cat >>$CONFIG_STATUS <<\_ACEOF
7355
7356 #
7357 # CONFIG_HEADER section.
7358 #
7359
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.
7362 #
7363 # ac_d sets the value in "#define NAME VALUE" lines.
7364 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
7365 ac_dB='[         ].*$,\1#\2'
7366 ac_dC=' '
7367 ac_dD=',;t'
7368 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7369 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
7370 ac_uB='$,\1#\2define\3'
7371 ac_uC=' '
7372 ac_uD=',;t'
7373
7374 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7375   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7376   case $ac_file in
7377   - | *:- | *:-:* ) # input from stdin
7378         cat >$tmp/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 ;;
7384   esac
7385
7386   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7387 echo "$as_me: creating $ac_file" >&6;}
7388
7389   # First look for the input files in the build tree, otherwise in the
7390   # src tree.
7391   ac_file_inputs=`IFS=:
7392     for f in $ac_file_in; do
7393       case $f in
7394       -) echo $tmp/stdin ;;
7395       [\\/$]*)
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.
7401          echo "$f";;
7402       *) # Relative
7403          if test -f "$f"; then
7404            # Build tree
7405            echo "$f"
7406          elif test -f "$srcdir/$f"; then
7407            # Source tree
7408            echo "$srcdir/$f"
7409          else
7410            # /dev/null tree
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; }; }
7414          fi;;
7415       esac
7416     done` || { (exit 1); exit 1; }
7417   # Remove the trailing spaces.
7418   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
7419
7420 _ACEOF
7421
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
7428 # in config.status.
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.
7432 #
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
7437 s/[\\&,]/\\&/g
7438 s,[\\$`],\\&,g
7439 t clear
7440 : clear
7441 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7442 t end
7443 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7444 : end
7445 _ACEOF
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
7452
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]*,/* & */,
7458 _ACEOF
7459
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
7466 rm -f conftest.tail
7467 while grep . conftest.defines >/dev/null
7468 do
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
7477   echo 'CEOF
7478   sed -f $tmp/defines.sed $tmp/in >$tmp/out
7479   rm -f $tmp/in
7480   mv $tmp/out $tmp/in
7481 ' >>$CONFIG_STATUS
7482   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7483   rm -f conftest.defines
7484   mv conftest.tail conftest.defines
7485 done
7486 rm -f conftest.defines
7487 echo '  fi # grep' >>$CONFIG_STATUS
7488 echo >>$CONFIG_STATUS
7489
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
7493 rm -f conftest.tail
7494 while grep . conftest.undefs >/dev/null
7495 do
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
7504   echo 'CEOF
7505   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7506   rm -f $tmp/in
7507   mv $tmp/out $tmp/in
7508 ' >>$CONFIG_STATUS
7509   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7510   rm -f conftest.undefs
7511   mv conftest.tail conftest.undefs
7512 done
7513 rm -f conftest.undefs
7514
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
7521   else
7522     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
7523   fi
7524   cat $tmp/in >>$tmp/config.h
7525   rm -f $tmp/in
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;}
7530     else
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 ||
7537 echo X"$ac_file" |
7538     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7539           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7540           /^X\(\/\/\)$/{ s//\1/; q; }
7541           /^X\(\/\).*/{ s//\1/; q; }
7542           s/.*/./; q'`
7543       { if $as_mkdir_p; then
7544     mkdir -p "$ac_dir"
7545   else
7546     as_dir="$ac_dir"
7547     as_dirs=
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 ||
7556 echo X"$as_dir" |
7557     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7558           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7559           /^X\(\/\/\)$/{ s//\1/; q; }
7560           /^X\(\/\).*/{ s//\1/; q; }
7561           s/.*/./; q'`
7562     done
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; }; }; }
7567
7568       rm -f $ac_file
7569       mv $tmp/config.h $ac_file
7570     fi
7571   else
7572     cat $tmp/config.h
7573     rm -f $tmp/config.h
7574   fi
7575 # Compute $ac_file's index in $config_headers.
7576 _am_stamp_count=1
7577 for _am_header in $config_headers :; do
7578   case $_am_header in
7579     $ac_file | $ac_file:* )
7580       break ;;
7581     * )
7582       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7583   esac
7584 done
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 ||
7591 echo X$ac_file |
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
7597 done
7598 _ACEOF
7599 cat >>$CONFIG_STATUS <<\_ACEOF
7600
7601 #
7602 # CONFIG_COMMANDS section.
7603 #
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 ||
7613 echo X"$ac_dest" |
7614     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7615           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7616           /^X\(\/\/\)$/{ s//\1/; q; }
7617           /^X\(\/\).*/{ s//\1/; q; }
7618           s/.*/./; q'`
7619   { if $as_mkdir_p; then
7620     mkdir -p "$ac_dir"
7621   else
7622     as_dir="$ac_dir"
7623     as_dirs=
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 ||
7632 echo X"$as_dir" |
7633     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7634           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7635           /^X\(\/\/\)$/{ s//\1/; q; }
7636           /^X\(\/\).*/{ s//\1/; q; }
7637           s/.*/./; q'`
7638     done
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; }; }; }
7643
7644   ac_builddir=.
7645
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'`
7650 else
7651   ac_dir_suffix= ac_top_builddir=
7652 fi
7653
7654 case $srcdir in
7655   .)  # No --srcdir option.  We are building in place.
7656     ac_srcdir=.
7657     if test -z "$ac_top_builddir"; then
7658        ac_top_srcdir=.
7659     else
7660        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7661     fi ;;
7662   [\\/]* | ?:[\\/]* )  # Absolute path.
7663     ac_srcdir=$srcdir$ac_dir_suffix;
7664     ac_top_srcdir=$srcdir ;;
7665   *) # Relative path.
7666     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7667     ac_top_srcdir=$ac_top_builddir$srcdir ;;
7668 esac
7669
7670 # Do not use `cd foo && pwd` to compute absolute paths, because
7671 # the directories may not exist.
7672 case `pwd` in
7673 .) ac_abs_builddir="$ac_dir";;
7674 *)
7675   case "$ac_dir" in
7676   .) ac_abs_builddir=`pwd`;;
7677   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7678   *) ac_abs_builddir=`pwd`/"$ac_dir";;
7679   esac;;
7680 esac
7681 case $ac_abs_builddir in
7682 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7683 *)
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}.;;
7688   esac;;
7689 esac
7690 case $ac_abs_builddir in
7691 .) ac_abs_srcdir=$ac_srcdir;;
7692 *)
7693   case $ac_srcdir in
7694   .) ac_abs_srcdir=$ac_abs_builddir;;
7695   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7696   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7697   esac;;
7698 esac
7699 case $ac_abs_builddir in
7700 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7701 *)
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;;
7706   esac;;
7707 esac
7708
7709
7710   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7711 echo "$as_me: executing $ac_dest commands" >&6;}
7712   case $ac_dest in
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 ||
7729 echo X"$mf" |
7730     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7731           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7732           /^X\(\/\/\)$/{ s//\1/; q; }
7733           /^X\(\/\).*/{ s//\1/; q; }
7734           s/.*/./; q'`
7735   else
7736     continue
7737   fi
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
7750   # expansion.
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 ||
7762 echo X"$file" |
7763     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7764           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7765           /^X\(\/\/\)$/{ s//\1/; q; }
7766           /^X\(\/\).*/{ s//\1/; q; }
7767           s/.*/./; q'`
7768     { if $as_mkdir_p; then
7769     mkdir -p $dirpart/$fdir
7770   else
7771     as_dir=$dirpart/$fdir
7772     as_dirs=
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 ||
7781 echo X"$as_dir" |
7782     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7783           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7784           /^X\(\/\/\)$/{ s//\1/; q; }
7785           /^X\(\/\).*/{ s//\1/; q; }
7786           s/.*/./; q'`
7787     done
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; }; }; }
7792
7793     # echo "creating $dirpart/$file"
7794     echo '# dummy' > "$dirpart/$file"
7795   done
7796 done
7797  ;;
7798   esac
7799 done
7800 _ACEOF
7801
7802 cat >>$CONFIG_STATUS <<\_ACEOF
7803
7804 { (exit 0); exit 0; }
7805 _ACEOF
7806 chmod +x $CONFIG_STATUS
7807 ac_clean_files=$ac_clean_files_save
7808
7809
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
7819   ac_cs_success=:
7820   ac_config_status_args=
7821   test "$silent" = yes &&
7822     ac_config_status_args="$ac_config_status_args --quiet"
7823   exec 5>/dev/null
7824   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7825   exec 5>>config.log
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; }
7829 fi
7830