readproc not needed, fixed memgraph
[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_METAR_TRUE BUILD_METAR_FALSE BUILD_MLDONKEY_TRUE BUILD_MLDONKEY_FALSE BUILD_X11_TRUE BUILD_X11_FALSE XFTCONFIG HELP2MAN HAVE_HELP2MAN_TRUE HAVE_HELP2MAN_FALSE 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 _ACEOF
839 fi
840
841 if test -n "$ac_init_help"; then
842
843   cat <<\_ACEOF
844
845 Optional Features:
846   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
847   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
848   --enable-xft            enable if you want to use Xft default=no
849   --enable-own-window     enable if you want support for creating own window default=yes
850   --enable-double-buffer  enable if you want to support flicker-free operation default=yes
851   --disable-dependency-tracking  speeds up one-time build
852   --enable-dependency-tracking   do not reject slow dependency extractors
853   --enable-proc-uptime    enable using /proc/uptime for uptime default=no
854   --enable-seti           enable if you want SETI at Home stats default=no
855   --enable-mpd           enable if you want MPD support default=no
856   --enable-cairo           enable if you want Cairo support default=no
857   --enable-metar       enable if you want metar stats (weather information) default=no
858   --enable-mldonkey       enable if you want MLDonkey support default=no
859   --enable-x11       enable if you want X11 support default=yes
860
861 Some influential environment variables:
862   CC          C compiler command
863   CFLAGS      C compiler flags
864   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
865               nonstandard directory <lib dir>
866   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
867               headers in a nonstandard directory <include dir>
868   CPP         C preprocessor
869
870 Use these variables to override the choices made by `configure' or to help
871 it to find libraries and programs with nonstandard names/locations.
872
873 _ACEOF
874 fi
875
876 if test "$ac_init_help" = "recursive"; then
877   # If there are subdirs, report their specific --help.
878   ac_popdir=`pwd`
879   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
880     test -d $ac_dir || continue
881     ac_builddir=.
882
883 if test "$ac_dir" != .; then
884   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
885   # A "../" for each directory in $ac_dir_suffix.
886   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
887 else
888   ac_dir_suffix= ac_top_builddir=
889 fi
890
891 case $srcdir in
892   .)  # No --srcdir option.  We are building in place.
893     ac_srcdir=.
894     if test -z "$ac_top_builddir"; then
895        ac_top_srcdir=.
896     else
897        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
898     fi ;;
899   [\\/]* | ?:[\\/]* )  # Absolute path.
900     ac_srcdir=$srcdir$ac_dir_suffix;
901     ac_top_srcdir=$srcdir ;;
902   *) # Relative path.
903     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
904     ac_top_srcdir=$ac_top_builddir$srcdir ;;
905 esac
906
907 # Do not use `cd foo && pwd` to compute absolute paths, because
908 # the directories may not exist.
909 case `pwd` in
910 .) ac_abs_builddir="$ac_dir";;
911 *)
912   case "$ac_dir" in
913   .) ac_abs_builddir=`pwd`;;
914   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
915   *) ac_abs_builddir=`pwd`/"$ac_dir";;
916   esac;;
917 esac
918 case $ac_abs_builddir in
919 .) ac_abs_top_builddir=${ac_top_builddir}.;;
920 *)
921   case ${ac_top_builddir}. in
922   .) ac_abs_top_builddir=$ac_abs_builddir;;
923   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
924   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
925   esac;;
926 esac
927 case $ac_abs_builddir in
928 .) ac_abs_srcdir=$ac_srcdir;;
929 *)
930   case $ac_srcdir in
931   .) ac_abs_srcdir=$ac_abs_builddir;;
932   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
933   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
934   esac;;
935 esac
936 case $ac_abs_builddir in
937 .) ac_abs_top_srcdir=$ac_top_srcdir;;
938 *)
939   case $ac_top_srcdir in
940   .) ac_abs_top_srcdir=$ac_abs_builddir;;
941   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
942   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
943   esac;;
944 esac
945
946     cd $ac_dir
947     # Check for guested configure; otherwise get Cygnus style configure.
948     if test -f $ac_srcdir/configure.gnu; then
949       echo
950       $SHELL $ac_srcdir/configure.gnu  --help=recursive
951     elif test -f $ac_srcdir/configure; then
952       echo
953       $SHELL $ac_srcdir/configure  --help=recursive
954     elif test -f $ac_srcdir/configure.ac ||
955            test -f $ac_srcdir/configure.in; then
956       echo
957       $ac_configure --help
958     else
959       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
960     fi
961     cd $ac_popdir
962   done
963 fi
964
965 test -n "$ac_init_help" && exit 0
966 if $ac_init_version; then
967   cat <<\_ACEOF
968
969 Copyright (C) 2003 Free Software Foundation, Inc.
970 This configure script is free software; the Free Software Foundation
971 gives unlimited permission to copy, distribute and modify it.
972 _ACEOF
973   exit 0
974 fi
975 exec 5>config.log
976 cat >&5 <<_ACEOF
977 This file contains any messages produced by compilers while
978 running configure, to aid debugging if configure makes a mistake.
979
980 It was created by $as_me, which was
981 generated by GNU Autoconf 2.59.  Invocation command line was
982
983   $ $0 $@
984
985 _ACEOF
986 {
987 cat <<_ASUNAME
988 ## --------- ##
989 ## Platform. ##
990 ## --------- ##
991
992 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
993 uname -m = `(uname -m) 2>/dev/null || echo unknown`
994 uname -r = `(uname -r) 2>/dev/null || echo unknown`
995 uname -s = `(uname -s) 2>/dev/null || echo unknown`
996 uname -v = `(uname -v) 2>/dev/null || echo unknown`
997
998 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
999 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1000
1001 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1002 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1003 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1004 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1005 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1006 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1007 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1008
1009 _ASUNAME
1010
1011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1012 for as_dir in $PATH
1013 do
1014   IFS=$as_save_IFS
1015   test -z "$as_dir" && as_dir=.
1016   echo "PATH: $as_dir"
1017 done
1018
1019 } >&5
1020
1021 cat >&5 <<_ACEOF
1022
1023
1024 ## ----------- ##
1025 ## Core tests. ##
1026 ## ----------- ##
1027
1028 _ACEOF
1029
1030
1031 # Keep a trace of the command line.
1032 # Strip out --no-create and --no-recursion so they do not pile up.
1033 # Strip out --silent because we don't want to record it for future runs.
1034 # Also quote any args containing shell meta-characters.
1035 # Make two passes to allow for proper duplicate-argument suppression.
1036 ac_configure_args=
1037 ac_configure_args0=
1038 ac_configure_args1=
1039 ac_sep=
1040 ac_must_keep_next=false
1041 for ac_pass in 1 2
1042 do
1043   for ac_arg
1044   do
1045     case $ac_arg in
1046     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1047     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048     | -silent | --silent | --silen | --sile | --sil)
1049       continue ;;
1050     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1051       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1052     esac
1053     case $ac_pass in
1054     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1055     2)
1056       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1057       if test $ac_must_keep_next = true; then
1058         ac_must_keep_next=false # Got value, back to normal.
1059       else
1060         case $ac_arg in
1061           *=* | --config-cache | -C | -disable-* | --disable-* \
1062           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1063           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1064           | -with-* | --with-* | -without-* | --without-* | --x)
1065             case "$ac_configure_args0 " in
1066               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1067             esac
1068             ;;
1069           -* ) ac_must_keep_next=true ;;
1070         esac
1071       fi
1072       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1073       # Get rid of the leading space.
1074       ac_sep=" "
1075       ;;
1076     esac
1077   done
1078 done
1079 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1080 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1081
1082 # When interrupted or exit'd, cleanup temporary files, and complete
1083 # config.log.  We remove comments because anyway the quotes in there
1084 # would cause problems or look ugly.
1085 # WARNING: Be sure not to use single quotes in there, as some shells,
1086 # such as our DU 5.0 friend, will then `close' the trap.
1087 trap 'exit_status=$?
1088   # Save into config.log some information that might help in debugging.
1089   {
1090     echo
1091
1092     cat <<\_ASBOX
1093 ## ---------------- ##
1094 ## Cache variables. ##
1095 ## ---------------- ##
1096 _ASBOX
1097     echo
1098     # The following way of writing the cache mishandles newlines in values,
1099 {
1100   (set) 2>&1 |
1101     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1102     *ac_space=\ *)
1103       sed -n \
1104         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1105           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1106       ;;
1107     *)
1108       sed -n \
1109         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1110       ;;
1111     esac;
1112 }
1113     echo
1114
1115     cat <<\_ASBOX
1116 ## ----------------- ##
1117 ## Output variables. ##
1118 ## ----------------- ##
1119 _ASBOX
1120     echo
1121     for ac_var in $ac_subst_vars
1122     do
1123       eval ac_val=$`echo $ac_var`
1124       echo "$ac_var='"'"'$ac_val'"'"'"
1125     done | sort
1126     echo
1127
1128     if test -n "$ac_subst_files"; then
1129       cat <<\_ASBOX
1130 ## ------------- ##
1131 ## Output files. ##
1132 ## ------------- ##
1133 _ASBOX
1134       echo
1135       for ac_var in $ac_subst_files
1136       do
1137         eval ac_val=$`echo $ac_var`
1138         echo "$ac_var='"'"'$ac_val'"'"'"
1139       done | sort
1140       echo
1141     fi
1142
1143     if test -s confdefs.h; then
1144       cat <<\_ASBOX
1145 ## ----------- ##
1146 ## confdefs.h. ##
1147 ## ----------- ##
1148 _ASBOX
1149       echo
1150       sed "/^$/d" confdefs.h | sort
1151       echo
1152     fi
1153     test "$ac_signal" != 0 &&
1154       echo "$as_me: caught signal $ac_signal"
1155     echo "$as_me: exit $exit_status"
1156   } >&5
1157   rm -f core *.core &&
1158   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1159     exit $exit_status
1160      ' 0
1161 for ac_signal in 1 2 13 15; do
1162   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1163 done
1164 ac_signal=0
1165
1166 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1167 rm -rf conftest* confdefs.h
1168 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1169 echo >confdefs.h
1170
1171 # Predefined preprocessor variables.
1172
1173 cat >>confdefs.h <<_ACEOF
1174 #define PACKAGE_NAME "$PACKAGE_NAME"
1175 _ACEOF
1176
1177
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1180 _ACEOF
1181
1182
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1185 _ACEOF
1186
1187
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_STRING "$PACKAGE_STRING"
1190 _ACEOF
1191
1192
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1195 _ACEOF
1196
1197
1198 # Let the site file select an alternate cache file if it wants to.
1199 # Prefer explicitly selected file to automatically selected ones.
1200 if test -z "$CONFIG_SITE"; then
1201   if test "x$prefix" != xNONE; then
1202     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1203   else
1204     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1205   fi
1206 fi
1207 for ac_site_file in $CONFIG_SITE; do
1208   if test -r "$ac_site_file"; then
1209     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1210 echo "$as_me: loading site script $ac_site_file" >&6;}
1211     sed 's/^/| /' "$ac_site_file" >&5
1212     . "$ac_site_file"
1213   fi
1214 done
1215
1216 if test -r "$cache_file"; then
1217   # Some versions of bash will fail to source /dev/null (special
1218   # files actually), so we avoid doing that.
1219   if test -f "$cache_file"; then
1220     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1221 echo "$as_me: loading cache $cache_file" >&6;}
1222     case $cache_file in
1223       [\\/]* | ?:[\\/]* ) . $cache_file;;
1224       *)                      . ./$cache_file;;
1225     esac
1226   fi
1227 else
1228   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1229 echo "$as_me: creating cache $cache_file" >&6;}
1230   >$cache_file
1231 fi
1232
1233 # Check that the precious variables saved in the cache have kept the same
1234 # value.
1235 ac_cache_corrupted=false
1236 for ac_var in `(set) 2>&1 |
1237                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1238   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1239   eval ac_new_set=\$ac_env_${ac_var}_set
1240   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1241   eval ac_new_val="\$ac_env_${ac_var}_value"
1242   case $ac_old_set,$ac_new_set in
1243     set,)
1244       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1245 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1246       ac_cache_corrupted=: ;;
1247     ,set)
1248       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1249 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1250       ac_cache_corrupted=: ;;
1251     ,);;
1252     *)
1253       if test "x$ac_old_val" != "x$ac_new_val"; then
1254         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1255 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1256         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1257 echo "$as_me:   former value:  $ac_old_val" >&2;}
1258         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1259 echo "$as_me:   current value: $ac_new_val" >&2;}
1260         ac_cache_corrupted=:
1261       fi;;
1262   esac
1263   # Pass precious variables to config.status.
1264   if test "$ac_new_set" = set; then
1265     case $ac_new_val in
1266     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1267       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1268     *) ac_arg=$ac_var=$ac_new_val ;;
1269     esac
1270     case " $ac_configure_args " in
1271       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1272       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1273     esac
1274   fi
1275 done
1276 if $ac_cache_corrupted; then
1277   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1278 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1279   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1280 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1281    { (exit 1); exit 1; }; }
1282 fi
1283
1284 ac_ext=c
1285 ac_cpp='$CPP $CPPFLAGS'
1286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309 am__api_version="1.9"
1310 ac_aux_dir=
1311 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1312   if test -f $ac_dir/install-sh; then
1313     ac_aux_dir=$ac_dir
1314     ac_install_sh="$ac_aux_dir/install-sh -c"
1315     break
1316   elif test -f $ac_dir/install.sh; then
1317     ac_aux_dir=$ac_dir
1318     ac_install_sh="$ac_aux_dir/install.sh -c"
1319     break
1320   elif test -f $ac_dir/shtool; then
1321     ac_aux_dir=$ac_dir
1322     ac_install_sh="$ac_aux_dir/shtool install -c"
1323     break
1324   fi
1325 done
1326 if test -z "$ac_aux_dir"; then
1327   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1328 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1329    { (exit 1); exit 1; }; }
1330 fi
1331 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1332 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1333 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1334
1335 # Find a good install program.  We prefer a C program (faster),
1336 # so one script is as good as another.  But avoid the broken or
1337 # incompatible versions:
1338 # SysV /etc/install, /usr/sbin/install
1339 # SunOS /usr/etc/install
1340 # IRIX /sbin/install
1341 # AIX /bin/install
1342 # AmigaOS /C/install, which installs bootblocks on floppy discs
1343 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1344 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1345 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1346 # OS/2's system install, which has a completely different semantic
1347 # ./install, which can be erroneously created by make from ./install.sh.
1348 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1349 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1350 if test -z "$INSTALL"; then
1351 if test "${ac_cv_path_install+set}" = set; then
1352   echo $ECHO_N "(cached) $ECHO_C" >&6
1353 else
1354   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1355 for as_dir in $PATH
1356 do
1357   IFS=$as_save_IFS
1358   test -z "$as_dir" && as_dir=.
1359   # Account for people who put trailing slashes in PATH elements.
1360 case $as_dir/ in
1361   ./ | .// | /cC/* | \
1362   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1363   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1364   /usr/ucb/* ) ;;
1365   *)
1366     # OSF1 and SCO ODT 3.0 have their own names for install.
1367     # Don't use installbsd from OSF since it installs stuff as root
1368     # by default.
1369     for ac_prog in ginstall scoinst install; do
1370       for ac_exec_ext in '' $ac_executable_extensions; do
1371         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1372           if test $ac_prog = install &&
1373             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1374             # AIX install.  It has an incompatible calling convention.
1375             :
1376           elif test $ac_prog = install &&
1377             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1378             # program-specific install script used by HP pwplus--don't use.
1379             :
1380           else
1381             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1382             break 3
1383           fi
1384         fi
1385       done
1386     done
1387     ;;
1388 esac
1389 done
1390
1391
1392 fi
1393   if test "${ac_cv_path_install+set}" = set; then
1394     INSTALL=$ac_cv_path_install
1395   else
1396     # As a last resort, use the slow shell script.  We don't cache a
1397     # path for INSTALL within a source directory, because that will
1398     # break other packages using the cache if that directory is
1399     # removed, or if the path is relative.
1400     INSTALL=$ac_install_sh
1401   fi
1402 fi
1403 echo "$as_me:$LINENO: result: $INSTALL" >&5
1404 echo "${ECHO_T}$INSTALL" >&6
1405
1406 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1407 # It thinks the first close brace ends the variable substitution.
1408 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1409
1410 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1411
1412 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1413
1414 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1415 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1416 # Just in case
1417 sleep 1
1418 echo timestamp > conftest.file
1419 # Do `set' in a subshell so we don't clobber the current shell's
1420 # arguments.  Must try -L first in case configure is actually a
1421 # symlink; some systems play weird games with the mod time of symlinks
1422 # (eg FreeBSD returns the mod time of the symlink's containing
1423 # directory).
1424 if (
1425    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1426    if test "$*" = "X"; then
1427       # -L didn't work.
1428       set X `ls -t $srcdir/configure conftest.file`
1429    fi
1430    rm -f conftest.file
1431    if test "$*" != "X $srcdir/configure conftest.file" \
1432       && test "$*" != "X conftest.file $srcdir/configure"; then
1433
1434       # If neither matched, then we have a broken ls.  This can happen
1435       # if, for instance, CONFIG_SHELL is bash and it inherits a
1436       # broken ls alias from the environment.  This has actually
1437       # happened.  Such a system could not be considered "sane".
1438       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1439 alias in your environment" >&5
1440 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1441 alias in your environment" >&2;}
1442    { (exit 1); exit 1; }; }
1443    fi
1444
1445    test "$2" = conftest.file
1446    )
1447 then
1448    # Ok.
1449    :
1450 else
1451    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1452 Check your system clock" >&5
1453 echo "$as_me: error: newly created file is older than distributed files!
1454 Check your system clock" >&2;}
1455    { (exit 1); exit 1; }; }
1456 fi
1457 echo "$as_me:$LINENO: result: yes" >&5
1458 echo "${ECHO_T}yes" >&6
1459 test "$program_prefix" != NONE &&
1460   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1461 # Use a double $ so make ignores it.
1462 test "$program_suffix" != NONE &&
1463   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1464 # Double any \ or $.  echo might interpret backslashes.
1465 # By default was `s,x,x', remove it if useless.
1466 cat <<\_ACEOF >conftest.sed
1467 s/[\\$]/&&/g;s/;s,x,x,$//
1468 _ACEOF
1469 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1470 rm conftest.sed
1471
1472 # expand $ac_aux_dir to an absolute path
1473 am_aux_dir=`cd $ac_aux_dir && pwd`
1474
1475 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1476 # Use eval to expand $SHELL
1477 if eval "$MISSING --run true"; then
1478   am_missing_run="$MISSING --run "
1479 else
1480   am_missing_run=
1481   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1482 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1483 fi
1484
1485 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1486   # We used to keeping the `.' as first argument, in order to
1487   # allow $(mkdir_p) to be used without argument.  As in
1488   #   $(mkdir_p) $(somedir)
1489   # where $(somedir) is conditionally defined.  However this is wrong
1490   # for two reasons:
1491   #  1. if the package is installed by a user who cannot write `.'
1492   #     make install will fail,
1493   #  2. the above comment should most certainly read
1494   #     $(mkdir_p) $(DESTDIR)$(somedir)
1495   #     so it does not work when $(somedir) is undefined and
1496   #     $(DESTDIR) is not.
1497   #  To support the latter case, we have to write
1498   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1499   #  so the `.' trick is pointless.
1500   mkdir_p='mkdir -p --'
1501 else
1502   # On NextStep and OpenStep, the `mkdir' command does not
1503   # recognize any option.  It will interpret all options as
1504   # directories to create, and then abort because `.' already
1505   # exists.
1506   for d in ./-p ./--version;
1507   do
1508     test -d $d && rmdir $d
1509   done
1510   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1511   if test -f "$ac_aux_dir/mkinstalldirs"; then
1512     mkdir_p='$(mkinstalldirs)'
1513   else
1514     mkdir_p='$(install_sh) -d'
1515   fi
1516 fi
1517
1518 for ac_prog in gawk mawk nawk awk
1519 do
1520   # Extract the first word of "$ac_prog", so it can be a program name with args.
1521 set dummy $ac_prog; ac_word=$2
1522 echo "$as_me:$LINENO: checking for $ac_word" >&5
1523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1524 if test "${ac_cv_prog_AWK+set}" = set; then
1525   echo $ECHO_N "(cached) $ECHO_C" >&6
1526 else
1527   if test -n "$AWK"; then
1528   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1529 else
1530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1531 for as_dir in $PATH
1532 do
1533   IFS=$as_save_IFS
1534   test -z "$as_dir" && as_dir=.
1535   for ac_exec_ext in '' $ac_executable_extensions; do
1536   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1537     ac_cv_prog_AWK="$ac_prog"
1538     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1539     break 2
1540   fi
1541 done
1542 done
1543
1544 fi
1545 fi
1546 AWK=$ac_cv_prog_AWK
1547 if test -n "$AWK"; then
1548   echo "$as_me:$LINENO: result: $AWK" >&5
1549 echo "${ECHO_T}$AWK" >&6
1550 else
1551   echo "$as_me:$LINENO: result: no" >&5
1552 echo "${ECHO_T}no" >&6
1553 fi
1554
1555   test -n "$AWK" && break
1556 done
1557
1558 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1559 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1560 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1561 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1562   echo $ECHO_N "(cached) $ECHO_C" >&6
1563 else
1564   cat >conftest.make <<\_ACEOF
1565 all:
1566         @echo 'ac_maketemp="$(MAKE)"'
1567 _ACEOF
1568 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1569 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1570 if test -n "$ac_maketemp"; then
1571   eval ac_cv_prog_make_${ac_make}_set=yes
1572 else
1573   eval ac_cv_prog_make_${ac_make}_set=no
1574 fi
1575 rm -f conftest.make
1576 fi
1577 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1578   echo "$as_me:$LINENO: result: yes" >&5
1579 echo "${ECHO_T}yes" >&6
1580   SET_MAKE=
1581 else
1582   echo "$as_me:$LINENO: result: no" >&5
1583 echo "${ECHO_T}no" >&6
1584   SET_MAKE="MAKE=${MAKE-make}"
1585 fi
1586
1587 rm -rf .tst 2>/dev/null
1588 mkdir .tst 2>/dev/null
1589 if test -d .tst; then
1590   am__leading_dot=.
1591 else
1592   am__leading_dot=_
1593 fi
1594 rmdir .tst 2>/dev/null
1595
1596 # test to see if srcdir already configured
1597 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1598    test -f $srcdir/config.status; then
1599   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1600 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1601    { (exit 1); exit 1; }; }
1602 fi
1603
1604 # test whether we have cygpath
1605 if test -z "$CYGPATH_W"; then
1606   if (cygpath --version) >/dev/null 2>/dev/null; then
1607     CYGPATH_W='cygpath -w'
1608   else
1609     CYGPATH_W=echo
1610   fi
1611 fi
1612
1613
1614 # Define the identity of the package.
1615  PACKAGE=conky
1616  VERSION=1.3
1617
1618
1619 cat >>confdefs.h <<_ACEOF
1620 #define PACKAGE "$PACKAGE"
1621 _ACEOF
1622
1623
1624 cat >>confdefs.h <<_ACEOF
1625 #define VERSION "$VERSION"
1626 _ACEOF
1627
1628 # Some tools Automake needs.
1629
1630 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1631
1632
1633 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1634
1635
1636 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1637
1638
1639 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1640
1641
1642 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1643
1644 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1645
1646 # Installed binaries are usually stripped using `strip' when the user
1647 # run `make install-strip'.  However `strip' might not be the right
1648 # tool to use in cross-compilation environments, therefore Automake
1649 # will honor the `STRIP' environment variable to overrule this program.
1650 if test "$cross_compiling" != no; then
1651   if test -n "$ac_tool_prefix"; then
1652   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1653 set dummy ${ac_tool_prefix}strip; ac_word=$2
1654 echo "$as_me:$LINENO: checking for $ac_word" >&5
1655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656 if test "${ac_cv_prog_STRIP+set}" = set; then
1657   echo $ECHO_N "(cached) $ECHO_C" >&6
1658 else
1659   if test -n "$STRIP"; then
1660   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1661 else
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663 for as_dir in $PATH
1664 do
1665   IFS=$as_save_IFS
1666   test -z "$as_dir" && as_dir=.
1667   for ac_exec_ext in '' $ac_executable_extensions; do
1668   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1669     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1670     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671     break 2
1672   fi
1673 done
1674 done
1675
1676 fi
1677 fi
1678 STRIP=$ac_cv_prog_STRIP
1679 if test -n "$STRIP"; then
1680   echo "$as_me:$LINENO: result: $STRIP" >&5
1681 echo "${ECHO_T}$STRIP" >&6
1682 else
1683   echo "$as_me:$LINENO: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1685 fi
1686
1687 fi
1688 if test -z "$ac_cv_prog_STRIP"; then
1689   ac_ct_STRIP=$STRIP
1690   # Extract the first word of "strip", so it can be a program name with args.
1691 set dummy strip; ac_word=$2
1692 echo "$as_me:$LINENO: checking for $ac_word" >&5
1693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1694 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1695   echo $ECHO_N "(cached) $ECHO_C" >&6
1696 else
1697   if test -n "$ac_ct_STRIP"; then
1698   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1699 else
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701 for as_dir in $PATH
1702 do
1703   IFS=$as_save_IFS
1704   test -z "$as_dir" && as_dir=.
1705   for ac_exec_ext in '' $ac_executable_extensions; do
1706   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707     ac_cv_prog_ac_ct_STRIP="strip"
1708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1709     break 2
1710   fi
1711 done
1712 done
1713
1714   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1715 fi
1716 fi
1717 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1718 if test -n "$ac_ct_STRIP"; then
1719   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1720 echo "${ECHO_T}$ac_ct_STRIP" >&6
1721 else
1722   echo "$as_me:$LINENO: result: no" >&5
1723 echo "${ECHO_T}no" >&6
1724 fi
1725
1726   STRIP=$ac_ct_STRIP
1727 else
1728   STRIP="$ac_cv_prog_STRIP"
1729 fi
1730
1731 fi
1732 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1733
1734 # We need awk for the "check" target.  The system "awk" is bad on
1735 # some platforms.
1736 # Always define AMTAR for backward compatibility.
1737
1738 AMTAR=${AMTAR-"${am_missing_run}tar"}
1739
1740 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1741
1742
1743
1744
1745
1746           ac_config_headers="$ac_config_headers config.h"
1747
1748
1749 uname=`uname`
1750
1751 case $uname in
1752   Linux*)
1753     WANT_SYSINFO=yes
1754     ;;
1755   FreeBSD*)
1756     WANT_KVM=yes
1757     ;;
1758   NetBSD*)
1759     WANT_KVM=yes
1760     WANT_OSSLIB=yes
1761     ;;
1762 # Solaris doesn't work at all right now
1763
1764 #  SunOS*)
1765 #    WANT_KSTAT=yes
1766 #    ;;
1767
1768   *)
1769     echo "Your operating system $uname isn't supported"
1770     echo "Feel free to help. :P"
1771     exit 1
1772     ;;
1773 esac
1774
1775
1776
1777 if test x$uname = xLinux; then
1778   BUILD_LINUX_TRUE=
1779   BUILD_LINUX_FALSE='#'
1780 else
1781   BUILD_LINUX_TRUE='#'
1782   BUILD_LINUX_FALSE=
1783 fi
1784
1785
1786
1787 if test x$uname = xSunOS; then
1788   BUILD_SOLARIS_TRUE=
1789   BUILD_SOLARIS_FALSE='#'
1790 else
1791   BUILD_SOLARIS_TRUE='#'
1792   BUILD_SOLARIS_FALSE=
1793 fi
1794
1795
1796
1797 if test x$uname = xFreeBSD; then
1798   BUILD_FREEBSD_TRUE=
1799   BUILD_FREEBSD_FALSE='#'
1800 else
1801   BUILD_FREEBSD_TRUE='#'
1802   BUILD_FREEBSD_FALSE=
1803 fi
1804
1805
1806
1807 if test x$uname = xNetBSD; then
1808   BUILD_NETBSD_TRUE=
1809   BUILD_NETBSD_FALSE='#'
1810 else
1811   BUILD_NETBSD_TRUE='#'
1812   BUILD_NETBSD_FALSE=
1813 fi
1814
1815
1816
1817 want_xft=no
1818 # Check whether --enable-xft or --disable-xft was given.
1819 if test "${enable_xft+set}" = set; then
1820   enableval="$enable_xft"
1821   want_xft="$enableval"
1822 fi;
1823
1824
1825 dah=yes
1826 # Check whether --enable-own_window or --disable-own_window was given.
1827 if test "${enable_own_window+set}" = set; then
1828   enableval="$enable_own_window"
1829   dah="$enableval"
1830 fi;
1831
1832 if test $dah != "no"; then
1833
1834 cat >>confdefs.h <<\_ACEOF
1835 #define OWN_WINDOW 1
1836 _ACEOF
1837
1838 fi
1839
1840
1841 dah=yes
1842 # Check whether --enable-double_buffer or --disable-double_buffer was given.
1843 if test "${enable_double_buffer+set}" = set; then
1844   enableval="$enable_double_buffer"
1845   dah="$enableval"
1846 fi;
1847
1848 if test $dah != "no"; then
1849
1850 cat >>confdefs.h <<\_ACEOF
1851 #define DOUBLE_BUFFER 1
1852 _ACEOF
1853
1854   DEPDIR="${am__leading_dot}deps"
1855
1856           ac_config_commands="$ac_config_commands depfiles"
1857
1858
1859 am_make=${MAKE-make}
1860 cat > confinc << 'END'
1861 am__doit:
1862         @echo done
1863 .PHONY: am__doit
1864 END
1865 # If we don't find an include directive, just comment out the code.
1866 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1867 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1868 am__include="#"
1869 am__quote=
1870 _am_result=none
1871 # First try GNU make style include.
1872 echo "include confinc" > confmf
1873 # We grep out `Entering directory' and `Leaving directory'
1874 # messages which can occur if `w' ends up in MAKEFLAGS.
1875 # In particular we don't look at `^make:' because GNU make might
1876 # be invoked under some other name (usually "gmake"), in which
1877 # case it prints its new name instead of `make'.
1878 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1879    am__include=include
1880    am__quote=
1881    _am_result=GNU
1882 fi
1883 # Now try BSD make style include.
1884 if test "$am__include" = "#"; then
1885    echo '.include "confinc"' > confmf
1886    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1887       am__include=.include
1888       am__quote="\""
1889       _am_result=BSD
1890    fi
1891 fi
1892
1893
1894 echo "$as_me:$LINENO: result: $_am_result" >&5
1895 echo "${ECHO_T}$_am_result" >&6
1896 rm -f confinc confmf
1897
1898 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1899 if test "${enable_dependency_tracking+set}" = set; then
1900   enableval="$enable_dependency_tracking"
1901
1902 fi;
1903 if test "x$enable_dependency_tracking" != xno; then
1904   am_depcomp="$ac_aux_dir/depcomp"
1905   AMDEPBACKSLASH='\'
1906 fi
1907
1908
1909 if test "x$enable_dependency_tracking" != xno; then
1910   AMDEP_TRUE=
1911   AMDEP_FALSE='#'
1912 else
1913   AMDEP_TRUE='#'
1914   AMDEP_FALSE=
1915 fi
1916
1917
1918
1919 ac_ext=c
1920 ac_cpp='$CPP $CPPFLAGS'
1921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1924 if test -n "$ac_tool_prefix"; then
1925   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1926 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1927 echo "$as_me:$LINENO: checking for $ac_word" >&5
1928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1929 if test "${ac_cv_prog_CC+set}" = set; then
1930   echo $ECHO_N "(cached) $ECHO_C" >&6
1931 else
1932   if test -n "$CC"; then
1933   ac_cv_prog_CC="$CC" # Let the user override the test.
1934 else
1935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936 for as_dir in $PATH
1937 do
1938   IFS=$as_save_IFS
1939   test -z "$as_dir" && as_dir=.
1940   for ac_exec_ext in '' $ac_executable_extensions; do
1941   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1942     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1944     break 2
1945   fi
1946 done
1947 done
1948
1949 fi
1950 fi
1951 CC=$ac_cv_prog_CC
1952 if test -n "$CC"; then
1953   echo "$as_me:$LINENO: result: $CC" >&5
1954 echo "${ECHO_T}$CC" >&6
1955 else
1956   echo "$as_me:$LINENO: result: no" >&5
1957 echo "${ECHO_T}no" >&6
1958 fi
1959
1960 fi
1961 if test -z "$ac_cv_prog_CC"; then
1962   ac_ct_CC=$CC
1963   # Extract the first word of "gcc", so it can be a program name with args.
1964 set dummy gcc; ac_word=$2
1965 echo "$as_me:$LINENO: checking for $ac_word" >&5
1966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1967 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1968   echo $ECHO_N "(cached) $ECHO_C" >&6
1969 else
1970   if test -n "$ac_ct_CC"; then
1971   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1972 else
1973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974 for as_dir in $PATH
1975 do
1976   IFS=$as_save_IFS
1977   test -z "$as_dir" && as_dir=.
1978   for ac_exec_ext in '' $ac_executable_extensions; do
1979   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1980     ac_cv_prog_ac_ct_CC="gcc"
1981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1982     break 2
1983   fi
1984 done
1985 done
1986
1987 fi
1988 fi
1989 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1990 if test -n "$ac_ct_CC"; then
1991   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1992 echo "${ECHO_T}$ac_ct_CC" >&6
1993 else
1994   echo "$as_me:$LINENO: result: no" >&5
1995 echo "${ECHO_T}no" >&6
1996 fi
1997
1998   CC=$ac_ct_CC
1999 else
2000   CC="$ac_cv_prog_CC"
2001 fi
2002
2003 if test -z "$CC"; then
2004   if test -n "$ac_tool_prefix"; then
2005   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2006 set dummy ${ac_tool_prefix}cc; ac_word=$2
2007 echo "$as_me:$LINENO: checking for $ac_word" >&5
2008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2009 if test "${ac_cv_prog_CC+set}" = set; then
2010   echo $ECHO_N "(cached) $ECHO_C" >&6
2011 else
2012   if test -n "$CC"; then
2013   ac_cv_prog_CC="$CC" # Let the user override the test.
2014 else
2015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2016 for as_dir in $PATH
2017 do
2018   IFS=$as_save_IFS
2019   test -z "$as_dir" && as_dir=.
2020   for ac_exec_ext in '' $ac_executable_extensions; do
2021   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2022     ac_cv_prog_CC="${ac_tool_prefix}cc"
2023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2024     break 2
2025   fi
2026 done
2027 done
2028
2029 fi
2030 fi
2031 CC=$ac_cv_prog_CC
2032 if test -n "$CC"; then
2033   echo "$as_me:$LINENO: result: $CC" >&5
2034 echo "${ECHO_T}$CC" >&6
2035 else
2036   echo "$as_me:$LINENO: result: no" >&5
2037 echo "${ECHO_T}no" >&6
2038 fi
2039
2040 fi
2041 if test -z "$ac_cv_prog_CC"; then
2042   ac_ct_CC=$CC
2043   # Extract the first word of "cc", so it can be a program name with args.
2044 set dummy cc; ac_word=$2
2045 echo "$as_me:$LINENO: checking for $ac_word" >&5
2046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2047 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2048   echo $ECHO_N "(cached) $ECHO_C" >&6
2049 else
2050   if test -n "$ac_ct_CC"; then
2051   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2052 else
2053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054 for as_dir in $PATH
2055 do
2056   IFS=$as_save_IFS
2057   test -z "$as_dir" && as_dir=.
2058   for ac_exec_ext in '' $ac_executable_extensions; do
2059   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2060     ac_cv_prog_ac_ct_CC="cc"
2061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062     break 2
2063   fi
2064 done
2065 done
2066
2067 fi
2068 fi
2069 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2070 if test -n "$ac_ct_CC"; then
2071   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2072 echo "${ECHO_T}$ac_ct_CC" >&6
2073 else
2074   echo "$as_me:$LINENO: result: no" >&5
2075 echo "${ECHO_T}no" >&6
2076 fi
2077
2078   CC=$ac_ct_CC
2079 else
2080   CC="$ac_cv_prog_CC"
2081 fi
2082
2083 fi
2084 if test -z "$CC"; then
2085   # Extract the first word of "cc", so it can be a program name with args.
2086 set dummy cc; ac_word=$2
2087 echo "$as_me:$LINENO: checking for $ac_word" >&5
2088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2089 if test "${ac_cv_prog_CC+set}" = set; then
2090   echo $ECHO_N "(cached) $ECHO_C" >&6
2091 else
2092   if test -n "$CC"; then
2093   ac_cv_prog_CC="$CC" # Let the user override the test.
2094 else
2095   ac_prog_rejected=no
2096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097 for as_dir in $PATH
2098 do
2099   IFS=$as_save_IFS
2100   test -z "$as_dir" && as_dir=.
2101   for ac_exec_ext in '' $ac_executable_extensions; do
2102   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2103     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2104        ac_prog_rejected=yes
2105        continue
2106      fi
2107     ac_cv_prog_CC="cc"
2108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2109     break 2
2110   fi
2111 done
2112 done
2113
2114 if test $ac_prog_rejected = yes; then
2115   # We found a bogon in the path, so make sure we never use it.
2116   set dummy $ac_cv_prog_CC
2117   shift
2118   if test $# != 0; then
2119     # We chose a different compiler from the bogus one.
2120     # However, it has the same basename, so the bogon will be chosen
2121     # first if we set CC to just the basename; use the full file name.
2122     shift
2123     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2124   fi
2125 fi
2126 fi
2127 fi
2128 CC=$ac_cv_prog_CC
2129 if test -n "$CC"; then
2130   echo "$as_me:$LINENO: result: $CC" >&5
2131 echo "${ECHO_T}$CC" >&6
2132 else
2133   echo "$as_me:$LINENO: result: no" >&5
2134 echo "${ECHO_T}no" >&6
2135 fi
2136
2137 fi
2138 if test -z "$CC"; then
2139   if test -n "$ac_tool_prefix"; then
2140   for ac_prog in cl
2141   do
2142     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2143 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2144 echo "$as_me:$LINENO: checking for $ac_word" >&5
2145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2146 if test "${ac_cv_prog_CC+set}" = set; then
2147   echo $ECHO_N "(cached) $ECHO_C" >&6
2148 else
2149   if test -n "$CC"; then
2150   ac_cv_prog_CC="$CC" # Let the user override the test.
2151 else
2152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2153 for as_dir in $PATH
2154 do
2155   IFS=$as_save_IFS
2156   test -z "$as_dir" && as_dir=.
2157   for ac_exec_ext in '' $ac_executable_extensions; do
2158   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2159     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2161     break 2
2162   fi
2163 done
2164 done
2165
2166 fi
2167 fi
2168 CC=$ac_cv_prog_CC
2169 if test -n "$CC"; then
2170   echo "$as_me:$LINENO: result: $CC" >&5
2171 echo "${ECHO_T}$CC" >&6
2172 else
2173   echo "$as_me:$LINENO: result: no" >&5
2174 echo "${ECHO_T}no" >&6
2175 fi
2176
2177     test -n "$CC" && break
2178   done
2179 fi
2180 if test -z "$CC"; then
2181   ac_ct_CC=$CC
2182   for ac_prog in cl
2183 do
2184   # Extract the first word of "$ac_prog", so it can be a program name with args.
2185 set dummy $ac_prog; ac_word=$2
2186 echo "$as_me:$LINENO: checking for $ac_word" >&5
2187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2188 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2189   echo $ECHO_N "(cached) $ECHO_C" >&6
2190 else
2191   if test -n "$ac_ct_CC"; then
2192   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2193 else
2194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195 for as_dir in $PATH
2196 do
2197   IFS=$as_save_IFS
2198   test -z "$as_dir" && as_dir=.
2199   for ac_exec_ext in '' $ac_executable_extensions; do
2200   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2201     ac_cv_prog_ac_ct_CC="$ac_prog"
2202     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2203     break 2
2204   fi
2205 done
2206 done
2207
2208 fi
2209 fi
2210 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2211 if test -n "$ac_ct_CC"; then
2212   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2213 echo "${ECHO_T}$ac_ct_CC" >&6
2214 else
2215   echo "$as_me:$LINENO: result: no" >&5
2216 echo "${ECHO_T}no" >&6
2217 fi
2218
2219   test -n "$ac_ct_CC" && break
2220 done
2221
2222   CC=$ac_ct_CC
2223 fi
2224
2225 fi
2226
2227
2228 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2229 See \`config.log' for more details." >&5
2230 echo "$as_me: error: no acceptable C compiler found in \$PATH
2231 See \`config.log' for more details." >&2;}
2232    { (exit 1); exit 1; }; }
2233
2234 # Provide some information about the compiler.
2235 echo "$as_me:$LINENO:" \
2236      "checking for C compiler version" >&5
2237 ac_compiler=`set X $ac_compile; echo $2`
2238 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2239   (eval $ac_compiler --version </dev/null >&5) 2>&5
2240   ac_status=$?
2241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242   (exit $ac_status); }
2243 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2244   (eval $ac_compiler -v </dev/null >&5) 2>&5
2245   ac_status=$?
2246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247   (exit $ac_status); }
2248 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2249   (eval $ac_compiler -V </dev/null >&5) 2>&5
2250   ac_status=$?
2251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252   (exit $ac_status); }
2253
2254 cat >conftest.$ac_ext <<_ACEOF
2255 /* confdefs.h.  */
2256 _ACEOF
2257 cat confdefs.h >>conftest.$ac_ext
2258 cat >>conftest.$ac_ext <<_ACEOF
2259 /* end confdefs.h.  */
2260
2261 int
2262 main ()
2263 {
2264
2265   ;
2266   return 0;
2267 }
2268 _ACEOF
2269 ac_clean_files_save=$ac_clean_files
2270 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2271 # Try to create an executable without -o first, disregard a.out.
2272 # It will help us diagnose broken compilers, and finding out an intuition
2273 # of exeext.
2274 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2275 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2276 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2277 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2278   (eval $ac_link_default) 2>&5
2279   ac_status=$?
2280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281   (exit $ac_status); }; then
2282   # Find the output, starting from the most likely.  This scheme is
2283 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2284 # resort.
2285
2286 # Be careful to initialize this variable, since it used to be cached.
2287 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2288 ac_cv_exeext=
2289 # b.out is created by i960 compilers.
2290 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2291 do
2292   test -f "$ac_file" || continue
2293   case $ac_file in
2294     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2295         ;;
2296     conftest.$ac_ext )
2297         # This is the source file.
2298         ;;
2299     [ab].out )
2300         # We found the default executable, but exeext='' is most
2301         # certainly right.
2302         break;;
2303     *.* )
2304         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2305         # FIXME: I believe we export ac_cv_exeext for Libtool,
2306         # but it would be cool to find out if it's true.  Does anybody
2307         # maintain Libtool? --akim.
2308         export ac_cv_exeext
2309         break;;
2310     * )
2311         break;;
2312   esac
2313 done
2314 else
2315   echo "$as_me: failed program was:" >&5
2316 sed 's/^/| /' conftest.$ac_ext >&5
2317
2318 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2319 See \`config.log' for more details." >&5
2320 echo "$as_me: error: C compiler cannot create executables
2321 See \`config.log' for more details." >&2;}
2322    { (exit 77); exit 77; }; }
2323 fi
2324
2325 ac_exeext=$ac_cv_exeext
2326 echo "$as_me:$LINENO: result: $ac_file" >&5
2327 echo "${ECHO_T}$ac_file" >&6
2328
2329 # Check the compiler produces executables we can run.  If not, either
2330 # the compiler is broken, or we cross compile.
2331 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2332 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2333 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2334 # If not cross compiling, check that we can run a simple program.
2335 if test "$cross_compiling" != yes; then
2336   if { ac_try='./$ac_file'
2337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2338   (eval $ac_try) 2>&5
2339   ac_status=$?
2340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341   (exit $ac_status); }; }; then
2342     cross_compiling=no
2343   else
2344     if test "$cross_compiling" = maybe; then
2345         cross_compiling=yes
2346     else
2347         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2348 If you meant to cross compile, use \`--host'.
2349 See \`config.log' for more details." >&5
2350 echo "$as_me: error: cannot run C compiled programs.
2351 If you meant to cross compile, use \`--host'.
2352 See \`config.log' for more details." >&2;}
2353    { (exit 1); exit 1; }; }
2354     fi
2355   fi
2356 fi
2357 echo "$as_me:$LINENO: result: yes" >&5
2358 echo "${ECHO_T}yes" >&6
2359
2360 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2361 ac_clean_files=$ac_clean_files_save
2362 # Check the compiler produces executables we can run.  If not, either
2363 # the compiler is broken, or we cross compile.
2364 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2365 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2366 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2367 echo "${ECHO_T}$cross_compiling" >&6
2368
2369 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2370 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2372   (eval $ac_link) 2>&5
2373   ac_status=$?
2374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375   (exit $ac_status); }; then
2376   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2377 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2378 # work properly (i.e., refer to `conftest.exe'), while it won't with
2379 # `rm'.
2380 for ac_file in conftest.exe conftest conftest.*; do
2381   test -f "$ac_file" || continue
2382   case $ac_file in
2383     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2384     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2385           export ac_cv_exeext
2386           break;;
2387     * ) break;;
2388   esac
2389 done
2390 else
2391   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2392 See \`config.log' for more details." >&5
2393 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2394 See \`config.log' for more details." >&2;}
2395    { (exit 1); exit 1; }; }
2396 fi
2397
2398 rm -f conftest$ac_cv_exeext
2399 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2400 echo "${ECHO_T}$ac_cv_exeext" >&6
2401
2402 rm -f conftest.$ac_ext
2403 EXEEXT=$ac_cv_exeext
2404 ac_exeext=$EXEEXT
2405 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2406 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2407 if test "${ac_cv_objext+set}" = set; then
2408   echo $ECHO_N "(cached) $ECHO_C" >&6
2409 else
2410   cat >conftest.$ac_ext <<_ACEOF
2411 /* confdefs.h.  */
2412 _ACEOF
2413 cat confdefs.h >>conftest.$ac_ext
2414 cat >>conftest.$ac_ext <<_ACEOF
2415 /* end confdefs.h.  */
2416
2417 int
2418 main ()
2419 {
2420
2421   ;
2422   return 0;
2423 }
2424 _ACEOF
2425 rm -f conftest.o conftest.obj
2426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2427   (eval $ac_compile) 2>&5
2428   ac_status=$?
2429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430   (exit $ac_status); }; then
2431   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2432   case $ac_file in
2433     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2434     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2435        break;;
2436   esac
2437 done
2438 else
2439   echo "$as_me: failed program was:" >&5
2440 sed 's/^/| /' conftest.$ac_ext >&5
2441
2442 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2443 See \`config.log' for more details." >&5
2444 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2445 See \`config.log' for more details." >&2;}
2446    { (exit 1); exit 1; }; }
2447 fi
2448
2449 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2450 fi
2451 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2452 echo "${ECHO_T}$ac_cv_objext" >&6
2453 OBJEXT=$ac_cv_objext
2454 ac_objext=$OBJEXT
2455 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2456 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2457 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2458   echo $ECHO_N "(cached) $ECHO_C" >&6
2459 else
2460   cat >conftest.$ac_ext <<_ACEOF
2461 /* confdefs.h.  */
2462 _ACEOF
2463 cat confdefs.h >>conftest.$ac_ext
2464 cat >>conftest.$ac_ext <<_ACEOF
2465 /* end confdefs.h.  */
2466
2467 int
2468 main ()
2469 {
2470 #ifndef __GNUC__
2471        choke me
2472 #endif
2473
2474   ;
2475   return 0;
2476 }
2477 _ACEOF
2478 rm -f conftest.$ac_objext
2479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2480   (eval $ac_compile) 2>conftest.er1
2481   ac_status=$?
2482   grep -v '^ *+' conftest.er1 >conftest.err
2483   rm -f conftest.er1
2484   cat conftest.err >&5
2485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486   (exit $ac_status); } &&
2487          { ac_try='test -z "$ac_c_werror_flag"
2488                          || test ! -s conftest.err'
2489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2490   (eval $ac_try) 2>&5
2491   ac_status=$?
2492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493   (exit $ac_status); }; } &&
2494          { ac_try='test -s conftest.$ac_objext'
2495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2496   (eval $ac_try) 2>&5
2497   ac_status=$?
2498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499   (exit $ac_status); }; }; then
2500   ac_compiler_gnu=yes
2501 else
2502   echo "$as_me: failed program was:" >&5
2503 sed 's/^/| /' conftest.$ac_ext >&5
2504
2505 ac_compiler_gnu=no
2506 fi
2507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2508 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2509
2510 fi
2511 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2512 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2513 GCC=`test $ac_compiler_gnu = yes && echo yes`
2514 ac_test_CFLAGS=${CFLAGS+set}
2515 ac_save_CFLAGS=$CFLAGS
2516 CFLAGS="-g"
2517 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2518 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2519 if test "${ac_cv_prog_cc_g+set}" = set; then
2520   echo $ECHO_N "(cached) $ECHO_C" >&6
2521 else
2522   cat >conftest.$ac_ext <<_ACEOF
2523 /* confdefs.h.  */
2524 _ACEOF
2525 cat confdefs.h >>conftest.$ac_ext
2526 cat >>conftest.$ac_ext <<_ACEOF
2527 /* end confdefs.h.  */
2528
2529 int
2530 main ()
2531 {
2532
2533   ;
2534   return 0;
2535 }
2536 _ACEOF
2537 rm -f conftest.$ac_objext
2538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2539   (eval $ac_compile) 2>conftest.er1
2540   ac_status=$?
2541   grep -v '^ *+' conftest.er1 >conftest.err
2542   rm -f conftest.er1
2543   cat conftest.err >&5
2544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545   (exit $ac_status); } &&
2546          { ac_try='test -z "$ac_c_werror_flag"
2547                          || test ! -s conftest.err'
2548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2549   (eval $ac_try) 2>&5
2550   ac_status=$?
2551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552   (exit $ac_status); }; } &&
2553          { ac_try='test -s conftest.$ac_objext'
2554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2555   (eval $ac_try) 2>&5
2556   ac_status=$?
2557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558   (exit $ac_status); }; }; then
2559   ac_cv_prog_cc_g=yes
2560 else
2561   echo "$as_me: failed program was:" >&5
2562 sed 's/^/| /' conftest.$ac_ext >&5
2563
2564 ac_cv_prog_cc_g=no
2565 fi
2566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2567 fi
2568 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2569 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2570 if test "$ac_test_CFLAGS" = set; then
2571   CFLAGS=$ac_save_CFLAGS
2572 elif test $ac_cv_prog_cc_g = yes; then
2573   if test "$GCC" = yes; then
2574     CFLAGS="-g -O2"
2575   else
2576     CFLAGS="-g"
2577   fi
2578 else
2579   if test "$GCC" = yes; then
2580     CFLAGS="-O2"
2581   else
2582     CFLAGS=
2583   fi
2584 fi
2585 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2586 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2587 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2588   echo $ECHO_N "(cached) $ECHO_C" >&6
2589 else
2590   ac_cv_prog_cc_stdc=no
2591 ac_save_CC=$CC
2592 cat >conftest.$ac_ext <<_ACEOF
2593 /* confdefs.h.  */
2594 _ACEOF
2595 cat confdefs.h >>conftest.$ac_ext
2596 cat >>conftest.$ac_ext <<_ACEOF
2597 /* end confdefs.h.  */
2598 #include <stdarg.h>
2599 #include <stdio.h>
2600 #include <sys/types.h>
2601 #include <sys/stat.h>
2602 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2603 struct buf { int x; };
2604 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2605 static char *e (p, i)
2606      char **p;
2607      int i;
2608 {
2609   return p[i];
2610 }
2611 static char *f (char * (*g) (char **, int), char **p, ...)
2612 {
2613   char *s;
2614   va_list v;
2615   va_start (v,p);
2616   s = g (p, va_arg (v,int));
2617   va_end (v);
2618   return s;
2619 }
2620
2621 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2622    function prototypes and stuff, but not '\xHH' hex character constants.
2623    These don't provoke an error unfortunately, instead are silently treated
2624    as 'x'.  The following induces an error, until -std1 is added to get
2625    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2626    array size at least.  It's necessary to write '\x00'==0 to get something
2627    that's true only with -std1.  */
2628 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2629
2630 int test (int i, double x);
2631 struct s1 {int (*f) (int a);};
2632 struct s2 {int (*f) (double a);};
2633 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2634 int argc;
2635 char **argv;
2636 int
2637 main ()
2638 {
2639 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2640   ;
2641   return 0;
2642 }
2643 _ACEOF
2644 # Don't try gcc -ansi; that turns off useful extensions and
2645 # breaks some systems' header files.
2646 # AIX                   -qlanglvl=ansi
2647 # Ultrix and OSF/1      -std1
2648 # HP-UX 10.20 and later -Ae
2649 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2650 # SVR4                  -Xc -D__EXTENSIONS__
2651 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2652 do
2653   CC="$ac_save_CC $ac_arg"
2654   rm -f conftest.$ac_objext
2655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2656   (eval $ac_compile) 2>conftest.er1
2657   ac_status=$?
2658   grep -v '^ *+' conftest.er1 >conftest.err
2659   rm -f conftest.er1
2660   cat conftest.err >&5
2661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662   (exit $ac_status); } &&
2663          { ac_try='test -z "$ac_c_werror_flag"
2664                          || test ! -s conftest.err'
2665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666   (eval $ac_try) 2>&5
2667   ac_status=$?
2668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669   (exit $ac_status); }; } &&
2670          { ac_try='test -s conftest.$ac_objext'
2671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672   (eval $ac_try) 2>&5
2673   ac_status=$?
2674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675   (exit $ac_status); }; }; then
2676   ac_cv_prog_cc_stdc=$ac_arg
2677 break
2678 else
2679   echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2681
2682 fi
2683 rm -f conftest.err conftest.$ac_objext
2684 done
2685 rm -f conftest.$ac_ext conftest.$ac_objext
2686 CC=$ac_save_CC
2687
2688 fi
2689
2690 case "x$ac_cv_prog_cc_stdc" in
2691   x|xno)
2692     echo "$as_me:$LINENO: result: none needed" >&5
2693 echo "${ECHO_T}none needed" >&6 ;;
2694   *)
2695     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2696 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2697     CC="$CC $ac_cv_prog_cc_stdc" ;;
2698 esac
2699
2700 # Some people use a C++ compiler to compile C.  Since we use `exit',
2701 # in C++ we need to declare it.  In case someone uses the same compiler
2702 # for both compiling C and C++ we need to have the C++ compiler decide
2703 # the declaration of exit, since it's the most demanding environment.
2704 cat >conftest.$ac_ext <<_ACEOF
2705 #ifndef __cplusplus
2706   choke me
2707 #endif
2708 _ACEOF
2709 rm -f conftest.$ac_objext
2710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2711   (eval $ac_compile) 2>conftest.er1
2712   ac_status=$?
2713   grep -v '^ *+' conftest.er1 >conftest.err
2714   rm -f conftest.er1
2715   cat conftest.err >&5
2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717   (exit $ac_status); } &&
2718          { ac_try='test -z "$ac_c_werror_flag"
2719                          || test ! -s conftest.err'
2720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721   (eval $ac_try) 2>&5
2722   ac_status=$?
2723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724   (exit $ac_status); }; } &&
2725          { ac_try='test -s conftest.$ac_objext'
2726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2727   (eval $ac_try) 2>&5
2728   ac_status=$?
2729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730   (exit $ac_status); }; }; then
2731   for ac_declaration in \
2732    '' \
2733    'extern "C" void std::exit (int) throw (); using std::exit;' \
2734    'extern "C" void std::exit (int); using std::exit;' \
2735    'extern "C" void exit (int) throw ();' \
2736    'extern "C" void exit (int);' \
2737    'void exit (int);'
2738 do
2739   cat >conftest.$ac_ext <<_ACEOF
2740 /* confdefs.h.  */
2741 _ACEOF
2742 cat confdefs.h >>conftest.$ac_ext
2743 cat >>conftest.$ac_ext <<_ACEOF
2744 /* end confdefs.h.  */
2745 $ac_declaration
2746 #include <stdlib.h>
2747 int
2748 main ()
2749 {
2750 exit (42);
2751   ;
2752   return 0;
2753 }
2754 _ACEOF
2755 rm -f conftest.$ac_objext
2756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2757   (eval $ac_compile) 2>conftest.er1
2758   ac_status=$?
2759   grep -v '^ *+' conftest.er1 >conftest.err
2760   rm -f conftest.er1
2761   cat conftest.err >&5
2762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763   (exit $ac_status); } &&
2764          { ac_try='test -z "$ac_c_werror_flag"
2765                          || test ! -s conftest.err'
2766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767   (eval $ac_try) 2>&5
2768   ac_status=$?
2769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770   (exit $ac_status); }; } &&
2771          { ac_try='test -s conftest.$ac_objext'
2772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773   (eval $ac_try) 2>&5
2774   ac_status=$?
2775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776   (exit $ac_status); }; }; then
2777   :
2778 else
2779   echo "$as_me: failed program was:" >&5
2780 sed 's/^/| /' conftest.$ac_ext >&5
2781
2782 continue
2783 fi
2784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2785   cat >conftest.$ac_ext <<_ACEOF
2786 /* confdefs.h.  */
2787 _ACEOF
2788 cat confdefs.h >>conftest.$ac_ext
2789 cat >>conftest.$ac_ext <<_ACEOF
2790 /* end confdefs.h.  */
2791 $ac_declaration
2792 int
2793 main ()
2794 {
2795 exit (42);
2796   ;
2797   return 0;
2798 }
2799 _ACEOF
2800 rm -f conftest.$ac_objext
2801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2802   (eval $ac_compile) 2>conftest.er1
2803   ac_status=$?
2804   grep -v '^ *+' conftest.er1 >conftest.err
2805   rm -f conftest.er1
2806   cat conftest.err >&5
2807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808   (exit $ac_status); } &&
2809          { ac_try='test -z "$ac_c_werror_flag"
2810                          || test ! -s conftest.err'
2811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2812   (eval $ac_try) 2>&5
2813   ac_status=$?
2814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815   (exit $ac_status); }; } &&
2816          { ac_try='test -s conftest.$ac_objext'
2817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2818   (eval $ac_try) 2>&5
2819   ac_status=$?
2820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821   (exit $ac_status); }; }; then
2822   break
2823 else
2824   echo "$as_me: failed program was:" >&5
2825 sed 's/^/| /' conftest.$ac_ext >&5
2826
2827 fi
2828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2829 done
2830 rm -f conftest*
2831 if test -n "$ac_declaration"; then
2832   echo '#ifdef __cplusplus' >>confdefs.h
2833   echo $ac_declaration      >>confdefs.h
2834   echo '#endif'             >>confdefs.h
2835 fi
2836
2837 else
2838   echo "$as_me: failed program was:" >&5
2839 sed 's/^/| /' conftest.$ac_ext >&5
2840
2841 fi
2842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2843 ac_ext=c
2844 ac_cpp='$CPP $CPPFLAGS'
2845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2848
2849 depcc="$CC"   am_compiler_list=
2850
2851 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2852 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2853 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2854   echo $ECHO_N "(cached) $ECHO_C" >&6
2855 else
2856   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2857   # We make a subdir and do the tests there.  Otherwise we can end up
2858   # making bogus files that we don't know about and never remove.  For
2859   # instance it was reported that on HP-UX the gcc test will end up
2860   # making a dummy file named `D' -- because `-MD' means `put the output
2861   # in D'.
2862   mkdir conftest.dir
2863   # Copy depcomp to subdir because otherwise we won't find it if we're
2864   # using a relative directory.
2865   cp "$am_depcomp" conftest.dir
2866   cd conftest.dir
2867   # We will build objects and dependencies in a subdirectory because
2868   # it helps to detect inapplicable dependency modes.  For instance
2869   # both Tru64's cc and ICC support -MD to output dependencies as a
2870   # side effect of compilation, but ICC will put the dependencies in
2871   # the current directory while Tru64 will put them in the object
2872   # directory.
2873   mkdir sub
2874
2875   am_cv_CC_dependencies_compiler_type=none
2876   if test "$am_compiler_list" = ""; then
2877      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2878   fi
2879   for depmode in $am_compiler_list; do
2880     # Setup a source with many dependencies, because some compilers
2881     # like to wrap large dependency lists on column 80 (with \), and
2882     # we should not choose a depcomp mode which is confused by this.
2883     #
2884     # We need to recreate these files for each test, as the compiler may
2885     # overwrite some of them when testing with obscure command lines.
2886     # This happens at least with the AIX C compiler.
2887     : > sub/conftest.c
2888     for i in 1 2 3 4 5 6; do
2889       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2890       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2891       # Solaris 8's {/usr,}/bin/sh.
2892       touch sub/conftst$i.h
2893     done
2894     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2895
2896     case $depmode in
2897     nosideeffect)
2898       # after this tag, mechanisms are not by side-effect, so they'll
2899       # only be used when explicitly requested
2900       if test "x$enable_dependency_tracking" = xyes; then
2901         continue
2902       else
2903         break
2904       fi
2905       ;;
2906     none) break ;;
2907     esac
2908     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2909     # mode.  It turns out that the SunPro C++ compiler does not properly
2910     # handle `-M -o', and we need to detect this.
2911     if depmode=$depmode \
2912        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2913        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2914        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2915          >/dev/null 2>conftest.err &&
2916        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2917        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2918        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2919       # icc doesn't choke on unknown options, it will just issue warnings
2920       # or remarks (even with -Werror).  So we grep stderr for any message
2921       # that says an option was ignored or not supported.
2922       # When given -MP, icc 7.0 and 7.1 complain thusly:
2923       #   icc: Command line warning: ignoring option '-M'; no argument required
2924       # The diagnosis changed in icc 8.0:
2925       #   icc: Command line remark: option '-MP' not supported
2926       if (grep 'ignoring option' conftest.err ||
2927           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2928         am_cv_CC_dependencies_compiler_type=$depmode
2929         break
2930       fi
2931     fi
2932   done
2933
2934   cd ..
2935   rm -rf conftest.dir
2936 else
2937   am_cv_CC_dependencies_compiler_type=none
2938 fi
2939
2940 fi
2941 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2942 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2943 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2944
2945
2946
2947 if
2948   test "x$enable_dependency_tracking" != xno \
2949   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2950   am__fastdepCC_TRUE=
2951   am__fastdepCC_FALSE='#'
2952 else
2953   am__fastdepCC_TRUE='#'
2954   am__fastdepCC_FALSE=
2955 fi
2956
2957
2958
2959 ac_ext=c
2960 ac_cpp='$CPP $CPPFLAGS'
2961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2964 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2965 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2966 # On Suns, sometimes $CPP names a directory.
2967 if test -n "$CPP" && test -d "$CPP"; then
2968   CPP=
2969 fi
2970 if test -z "$CPP"; then
2971   if test "${ac_cv_prog_CPP+set}" = set; then
2972   echo $ECHO_N "(cached) $ECHO_C" >&6
2973 else
2974       # Double quotes because CPP needs to be expanded
2975     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2976     do
2977       ac_preproc_ok=false
2978 for ac_c_preproc_warn_flag in '' yes
2979 do
2980   # Use a header file that comes with gcc, so configuring glibc
2981   # with a fresh cross-compiler works.
2982   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2983   # <limits.h> exists even on freestanding compilers.
2984   # On the NeXT, cc -E runs the code through the compiler's parser,
2985   # not just through cpp. "Syntax error" is here to catch this case.
2986   cat >conftest.$ac_ext <<_ACEOF
2987 /* confdefs.h.  */
2988 _ACEOF
2989 cat confdefs.h >>conftest.$ac_ext
2990 cat >>conftest.$ac_ext <<_ACEOF
2991 /* end confdefs.h.  */
2992 #ifdef __STDC__
2993 # include <limits.h>
2994 #else
2995 # include <assert.h>
2996 #endif
2997                      Syntax error
2998 _ACEOF
2999 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3000   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3001   ac_status=$?
3002   grep -v '^ *+' conftest.er1 >conftest.err
3003   rm -f conftest.er1
3004   cat conftest.err >&5
3005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006   (exit $ac_status); } >/dev/null; then
3007   if test -s conftest.err; then
3008     ac_cpp_err=$ac_c_preproc_warn_flag
3009     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3010   else
3011     ac_cpp_err=
3012   fi
3013 else
3014   ac_cpp_err=yes
3015 fi
3016 if test -z "$ac_cpp_err"; then
3017   :
3018 else
3019   echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3021
3022   # Broken: fails on valid input.
3023 continue
3024 fi
3025 rm -f conftest.err conftest.$ac_ext
3026
3027   # OK, works on sane cases.  Now check whether non-existent headers
3028   # can be detected and how.
3029   cat >conftest.$ac_ext <<_ACEOF
3030 /* confdefs.h.  */
3031 _ACEOF
3032 cat confdefs.h >>conftest.$ac_ext
3033 cat >>conftest.$ac_ext <<_ACEOF
3034 /* end confdefs.h.  */
3035 #include <ac_nonexistent.h>
3036 _ACEOF
3037 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3038   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3039   ac_status=$?
3040   grep -v '^ *+' conftest.er1 >conftest.err
3041   rm -f conftest.er1
3042   cat conftest.err >&5
3043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044   (exit $ac_status); } >/dev/null; then
3045   if test -s conftest.err; then
3046     ac_cpp_err=$ac_c_preproc_warn_flag
3047     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3048   else
3049     ac_cpp_err=
3050   fi
3051 else
3052   ac_cpp_err=yes
3053 fi
3054 if test -z "$ac_cpp_err"; then
3055   # Broken: success on invalid input.
3056 continue
3057 else
3058   echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3060
3061   # Passes both tests.
3062 ac_preproc_ok=:
3063 break
3064 fi
3065 rm -f conftest.err conftest.$ac_ext
3066
3067 done
3068 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3069 rm -f conftest.err conftest.$ac_ext
3070 if $ac_preproc_ok; then
3071   break
3072 fi
3073
3074     done
3075     ac_cv_prog_CPP=$CPP
3076
3077 fi
3078   CPP=$ac_cv_prog_CPP
3079 else
3080   ac_cv_prog_CPP=$CPP
3081 fi
3082 echo "$as_me:$LINENO: result: $CPP" >&5
3083 echo "${ECHO_T}$CPP" >&6
3084 ac_preproc_ok=false
3085 for ac_c_preproc_warn_flag in '' yes
3086 do
3087   # Use a header file that comes with gcc, so configuring glibc
3088   # with a fresh cross-compiler works.
3089   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3090   # <limits.h> exists even on freestanding compilers.
3091   # On the NeXT, cc -E runs the code through the compiler's parser,
3092   # not just through cpp. "Syntax error" is here to catch this case.
3093   cat >conftest.$ac_ext <<_ACEOF
3094 /* confdefs.h.  */
3095 _ACEOF
3096 cat confdefs.h >>conftest.$ac_ext
3097 cat >>conftest.$ac_ext <<_ACEOF
3098 /* end confdefs.h.  */
3099 #ifdef __STDC__
3100 # include <limits.h>
3101 #else
3102 # include <assert.h>
3103 #endif
3104                      Syntax error
3105 _ACEOF
3106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3107   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3108   ac_status=$?
3109   grep -v '^ *+' conftest.er1 >conftest.err
3110   rm -f conftest.er1
3111   cat conftest.err >&5
3112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113   (exit $ac_status); } >/dev/null; then
3114   if test -s conftest.err; then
3115     ac_cpp_err=$ac_c_preproc_warn_flag
3116     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3117   else
3118     ac_cpp_err=
3119   fi
3120 else
3121   ac_cpp_err=yes
3122 fi
3123 if test -z "$ac_cpp_err"; then
3124   :
3125 else
3126   echo "$as_me: failed program was:" >&5
3127 sed 's/^/| /' conftest.$ac_ext >&5
3128
3129   # Broken: fails on valid input.
3130 continue
3131 fi
3132 rm -f conftest.err conftest.$ac_ext
3133
3134   # OK, works on sane cases.  Now check whether non-existent headers
3135   # can be detected and how.
3136   cat >conftest.$ac_ext <<_ACEOF
3137 /* confdefs.h.  */
3138 _ACEOF
3139 cat confdefs.h >>conftest.$ac_ext
3140 cat >>conftest.$ac_ext <<_ACEOF
3141 /* end confdefs.h.  */
3142 #include <ac_nonexistent.h>
3143 _ACEOF
3144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3145   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3146   ac_status=$?
3147   grep -v '^ *+' conftest.er1 >conftest.err
3148   rm -f conftest.er1
3149   cat conftest.err >&5
3150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151   (exit $ac_status); } >/dev/null; then
3152   if test -s conftest.err; then
3153     ac_cpp_err=$ac_c_preproc_warn_flag
3154     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3155   else
3156     ac_cpp_err=
3157   fi
3158 else
3159   ac_cpp_err=yes
3160 fi
3161 if test -z "$ac_cpp_err"; then
3162   # Broken: success on invalid input.
3163 continue
3164 else
3165   echo "$as_me: failed program was:" >&5
3166 sed 's/^/| /' conftest.$ac_ext >&5
3167
3168   # Passes both tests.
3169 ac_preproc_ok=:
3170 break
3171 fi
3172 rm -f conftest.err conftest.$ac_ext
3173
3174 done
3175 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3176 rm -f conftest.err conftest.$ac_ext
3177 if $ac_preproc_ok; then
3178   :
3179 else
3180   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3181 See \`config.log' for more details." >&5
3182 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3183 See \`config.log' for more details." >&2;}
3184    { (exit 1); exit 1; }; }
3185 fi
3186
3187 ac_ext=c
3188 ac_cpp='$CPP $CPPFLAGS'
3189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3192
3193
3194 echo "$as_me:$LINENO: checking for egrep" >&5
3195 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3196 if test "${ac_cv_prog_egrep+set}" = set; then
3197   echo $ECHO_N "(cached) $ECHO_C" >&6
3198 else
3199   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3200     then ac_cv_prog_egrep='grep -E'
3201     else ac_cv_prog_egrep='egrep'
3202     fi
3203 fi
3204 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3205 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3206  EGREP=$ac_cv_prog_egrep
3207
3208
3209 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3210 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3211 if test "${ac_cv_header_stdc+set}" = set; then
3212   echo $ECHO_N "(cached) $ECHO_C" >&6
3213 else
3214   cat >conftest.$ac_ext <<_ACEOF
3215 /* confdefs.h.  */
3216 _ACEOF
3217 cat confdefs.h >>conftest.$ac_ext
3218 cat >>conftest.$ac_ext <<_ACEOF
3219 /* end confdefs.h.  */
3220 #include <stdlib.h>
3221 #include <stdarg.h>
3222 #include <string.h>
3223 #include <float.h>
3224
3225 int
3226 main ()
3227 {
3228
3229   ;
3230   return 0;
3231 }
3232 _ACEOF
3233 rm -f conftest.$ac_objext
3234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3235   (eval $ac_compile) 2>conftest.er1
3236   ac_status=$?
3237   grep -v '^ *+' conftest.er1 >conftest.err
3238   rm -f conftest.er1
3239   cat conftest.err >&5
3240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241   (exit $ac_status); } &&
3242          { ac_try='test -z "$ac_c_werror_flag"
3243                          || test ! -s conftest.err'
3244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245   (eval $ac_try) 2>&5
3246   ac_status=$?
3247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248   (exit $ac_status); }; } &&
3249          { ac_try='test -s conftest.$ac_objext'
3250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251   (eval $ac_try) 2>&5
3252   ac_status=$?
3253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254   (exit $ac_status); }; }; then
3255   ac_cv_header_stdc=yes
3256 else
3257   echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3259
3260 ac_cv_header_stdc=no
3261 fi
3262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3263
3264 if test $ac_cv_header_stdc = yes; then
3265   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3266   cat >conftest.$ac_ext <<_ACEOF
3267 /* confdefs.h.  */
3268 _ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h.  */
3272 #include <string.h>
3273
3274 _ACEOF
3275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3276   $EGREP "memchr" >/dev/null 2>&1; then
3277   :
3278 else
3279   ac_cv_header_stdc=no
3280 fi
3281 rm -f conftest*
3282
3283 fi
3284
3285 if test $ac_cv_header_stdc = yes; then
3286   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3287   cat >conftest.$ac_ext <<_ACEOF
3288 /* confdefs.h.  */
3289 _ACEOF
3290 cat confdefs.h >>conftest.$ac_ext
3291 cat >>conftest.$ac_ext <<_ACEOF
3292 /* end confdefs.h.  */
3293 #include <stdlib.h>
3294
3295 _ACEOF
3296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3297   $EGREP "free" >/dev/null 2>&1; then
3298   :
3299 else
3300   ac_cv_header_stdc=no
3301 fi
3302 rm -f conftest*
3303
3304 fi
3305
3306 if test $ac_cv_header_stdc = yes; then
3307   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3308   if test "$cross_compiling" = yes; then
3309   :
3310 else
3311   cat >conftest.$ac_ext <<_ACEOF
3312 /* confdefs.h.  */
3313 _ACEOF
3314 cat confdefs.h >>conftest.$ac_ext
3315 cat >>conftest.$ac_ext <<_ACEOF
3316 /* end confdefs.h.  */
3317 #include <ctype.h>
3318 #if ((' ' & 0x0FF) == 0x020)
3319 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3320 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3321 #else
3322 # define ISLOWER(c) \
3323                    (('a' <= (c) && (c) <= 'i') \
3324                      || ('j' <= (c) && (c) <= 'r') \
3325                      || ('s' <= (c) && (c) <= 'z'))
3326 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3327 #endif
3328
3329 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3330 int
3331 main ()
3332 {
3333   int i;
3334   for (i = 0; i < 256; i++)
3335     if (XOR (islower (i), ISLOWER (i))
3336         || toupper (i) != TOUPPER (i))
3337       exit(2);
3338   exit (0);
3339 }
3340 _ACEOF
3341 rm -f conftest$ac_exeext
3342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3343   (eval $ac_link) 2>&5
3344   ac_status=$?
3345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348   (eval $ac_try) 2>&5
3349   ac_status=$?
3350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351   (exit $ac_status); }; }; then
3352   :
3353 else
3354   echo "$as_me: program exited with status $ac_status" >&5
3355 echo "$as_me: failed program was:" >&5
3356 sed 's/^/| /' conftest.$ac_ext >&5
3357
3358 ( exit $ac_status )
3359 ac_cv_header_stdc=no
3360 fi
3361 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3362 fi
3363 fi
3364 fi
3365 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3366 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3367 if test $ac_cv_header_stdc = yes; then
3368
3369 cat >>confdefs.h <<\_ACEOF
3370 #define STDC_HEADERS 1
3371 _ACEOF
3372
3373 fi
3374
3375 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3386                   inttypes.h stdint.h unistd.h
3387 do
3388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3389 echo "$as_me:$LINENO: checking for $ac_header" >&5
3390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3392   echo $ECHO_N "(cached) $ECHO_C" >&6
3393 else
3394   cat >conftest.$ac_ext <<_ACEOF
3395 /* confdefs.h.  */
3396 _ACEOF
3397 cat confdefs.h >>conftest.$ac_ext
3398 cat >>conftest.$ac_ext <<_ACEOF
3399 /* end confdefs.h.  */
3400 $ac_includes_default
3401
3402 #include <$ac_header>
3403 _ACEOF
3404 rm -f conftest.$ac_objext
3405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3406   (eval $ac_compile) 2>conftest.er1
3407   ac_status=$?
3408   grep -v '^ *+' conftest.er1 >conftest.err
3409   rm -f conftest.er1
3410   cat conftest.err >&5
3411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412   (exit $ac_status); } &&
3413          { ac_try='test -z "$ac_c_werror_flag"
3414                          || test ! -s conftest.err'
3415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3416   (eval $ac_try) 2>&5
3417   ac_status=$?
3418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419   (exit $ac_status); }; } &&
3420          { ac_try='test -s conftest.$ac_objext'
3421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3422   (eval $ac_try) 2>&5
3423   ac_status=$?
3424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425   (exit $ac_status); }; }; then
3426   eval "$as_ac_Header=yes"
3427 else
3428   echo "$as_me: failed program was:" >&5
3429 sed 's/^/| /' conftest.$ac_ext >&5
3430
3431 eval "$as_ac_Header=no"
3432 fi
3433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3434 fi
3435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3438   cat >>confdefs.h <<_ACEOF
3439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3440 _ACEOF
3441
3442 fi
3443
3444 done
3445
3446
3447
3448 for ac_header in X11/extensions/Xdbe.h
3449 do
3450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3452   echo "$as_me:$LINENO: checking for $ac_header" >&5
3453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3455   echo $ECHO_N "(cached) $ECHO_C" >&6
3456 fi
3457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3459 else
3460   # Is the header compilable?
3461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3463 cat >conftest.$ac_ext <<_ACEOF
3464 /* confdefs.h.  */
3465 _ACEOF
3466 cat confdefs.h >>conftest.$ac_ext
3467 cat >>conftest.$ac_ext <<_ACEOF
3468 /* end confdefs.h.  */
3469 $ac_includes_default
3470 #include <$ac_header>
3471 _ACEOF
3472 rm -f conftest.$ac_objext
3473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3474   (eval $ac_compile) 2>conftest.er1
3475   ac_status=$?
3476   grep -v '^ *+' conftest.er1 >conftest.err
3477   rm -f conftest.er1
3478   cat conftest.err >&5
3479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480   (exit $ac_status); } &&
3481          { ac_try='test -z "$ac_c_werror_flag"
3482                          || test ! -s conftest.err'
3483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3484   (eval $ac_try) 2>&5
3485   ac_status=$?
3486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487   (exit $ac_status); }; } &&
3488          { ac_try='test -s conftest.$ac_objext'
3489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3490   (eval $ac_try) 2>&5
3491   ac_status=$?
3492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493   (exit $ac_status); }; }; then
3494   ac_header_compiler=yes
3495 else
3496   echo "$as_me: failed program was:" >&5
3497 sed 's/^/| /' conftest.$ac_ext >&5
3498
3499 ac_header_compiler=no
3500 fi
3501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3503 echo "${ECHO_T}$ac_header_compiler" >&6
3504
3505 # Is the header present?
3506 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3508 cat >conftest.$ac_ext <<_ACEOF
3509 /* confdefs.h.  */
3510 _ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h.  */
3514 #include <$ac_header>
3515 _ACEOF
3516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3517   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3518   ac_status=$?
3519   grep -v '^ *+' conftest.er1 >conftest.err
3520   rm -f conftest.er1
3521   cat conftest.err >&5
3522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523   (exit $ac_status); } >/dev/null; then
3524   if test -s conftest.err; then
3525     ac_cpp_err=$ac_c_preproc_warn_flag
3526     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3527   else
3528     ac_cpp_err=
3529   fi
3530 else
3531   ac_cpp_err=yes
3532 fi
3533 if test -z "$ac_cpp_err"; then
3534   ac_header_preproc=yes
3535 else
3536   echo "$as_me: failed program was:" >&5
3537 sed 's/^/| /' conftest.$ac_ext >&5
3538
3539   ac_header_preproc=no
3540 fi
3541 rm -f conftest.err conftest.$ac_ext
3542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3543 echo "${ECHO_T}$ac_header_preproc" >&6
3544
3545 # So?  What about this header?
3546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3547   yes:no: )
3548     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3550     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3552     ac_header_preproc=yes
3553     ;;
3554   no:yes:* )
3555     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3557     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3558 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3559     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3561     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3562 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3563     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3565     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3567     (
3568       cat <<\_ASBOX
3569 ## ------------------------------------------ ##
3570 ## Report this to the AC_PACKAGE_NAME lists.  ##
3571 ## ------------------------------------------ ##
3572 _ASBOX
3573     ) |
3574       sed "s/^/$as_me: WARNING:     /" >&2
3575     ;;
3576 esac
3577 echo "$as_me:$LINENO: checking for $ac_header" >&5
3578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3580   echo $ECHO_N "(cached) $ECHO_C" >&6
3581 else
3582   eval "$as_ac_Header=\$ac_header_preproc"
3583 fi
3584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3586
3587 fi
3588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3589   cat >>confdefs.h <<_ACEOF
3590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3591 _ACEOF
3592
3593 cat >>confdefs.h <<\_ACEOF
3594 #define HAVE_XDBE 1
3595 _ACEOF
3596
3597 else
3598   XDBE_MISSING=yes
3599 fi
3600
3601 done
3602
3603   if test "x$XDBE_MISSING" = xyes; then
3604       { { echo "$as_me:$LINENO: error: something went wrong when checking for Xdbe (double buffer extension" >&5
3605 echo "$as_me: error: something went wrong when checking for Xdbe (double buffer extension" >&2;}
3606    { (exit 1); exit 1; }; }
3607   fi
3608 fi
3609
3610
3611 dah=no
3612 # Check whether --enable-proc_uptime or --disable-proc_uptime was given.
3613 if test "${enable_proc_uptime+set}" = set; then
3614   enableval="$enable_proc_uptime"
3615   dah="$enableval"
3616 fi;
3617
3618 if test $dah = "yes"; then
3619
3620 cat >>confdefs.h <<\_ACEOF
3621 #define PROC_UPTIME 1
3622 _ACEOF
3623
3624 fi
3625
3626
3627 want_seti=no
3628 # Check whether --enable-seti or --disable-seti was given.
3629 if test "${enable_seti+set}" = set; then
3630   enableval="$enable_seti"
3631   want_seti="$enableval"
3632 fi;
3633
3634
3635
3636 if test x$want_seti == xyes; then
3637   BUILD_SETI_TRUE=
3638   BUILD_SETI_FALSE='#'
3639 else
3640   BUILD_SETI_TRUE='#'
3641   BUILD_SETI_FALSE=
3642 fi
3643
3644 if test x$want_seti == xyes; then
3645
3646 cat >>confdefs.h <<\_ACEOF
3647 #define SETI 1
3648 _ACEOF
3649
3650 fi
3651
3652
3653 want_mpd=no
3654 # Check whether --enable-mpd or --disable-mpd was given.
3655 if test "${enable_mpd+set}" = set; then
3656   enableval="$enable_mpd"
3657   want_mpd="$enableval"
3658 fi;
3659
3660
3661
3662 if test x$want_mpd == xyes; then
3663   BUILD_MPD_TRUE=
3664   BUILD_MPD_FALSE='#'
3665 else
3666   BUILD_MPD_TRUE='#'
3667   BUILD_MPD_FALSE=
3668 fi
3669
3670 if test x$want_mpd == xyes; then
3671
3672 cat >>confdefs.h <<\_ACEOF
3673 #define MPD 1
3674 _ACEOF
3675
3676 fi
3677
3678
3679 want_cairo=no
3680 # Check whether --enable-cairo or --disable-cairo was given.
3681 if test "${enable_cairo+set}" = set; then
3682   enableval="$enable_cairo"
3683   want_cairo="$enableval"
3684 fi;
3685
3686
3687
3688 if test x$want_cairo == xyes; then
3689   BUILD_CAIRO_TRUE=
3690   BUILD_CAIRO_FALSE='#'
3691 else
3692   BUILD_CAIRO_TRUE='#'
3693   BUILD_CAIRO_FALSE=
3694 fi
3695
3696
3697
3698 if test "$want_cairo" = "yes"; then
3699
3700
3701 for ac_header in cairo.h cairo-xlib.h
3702 do
3703 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3705   echo "$as_me:$LINENO: checking for $ac_header" >&5
3706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3708   echo $ECHO_N "(cached) $ECHO_C" >&6
3709 fi
3710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3711 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3712 else
3713   # Is the header compilable?
3714 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3715 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3716 cat >conftest.$ac_ext <<_ACEOF
3717 /* confdefs.h.  */
3718 _ACEOF
3719 cat confdefs.h >>conftest.$ac_ext
3720 cat >>conftest.$ac_ext <<_ACEOF
3721 /* end confdefs.h.  */
3722 $ac_includes_default
3723 #include <$ac_header>
3724 _ACEOF
3725 rm -f conftest.$ac_objext
3726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3727   (eval $ac_compile) 2>conftest.er1
3728   ac_status=$?
3729   grep -v '^ *+' conftest.er1 >conftest.err
3730   rm -f conftest.er1
3731   cat conftest.err >&5
3732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733   (exit $ac_status); } &&
3734          { ac_try='test -z "$ac_c_werror_flag"
3735                          || test ! -s conftest.err'
3736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3737   (eval $ac_try) 2>&5
3738   ac_status=$?
3739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740   (exit $ac_status); }; } &&
3741          { ac_try='test -s conftest.$ac_objext'
3742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3743   (eval $ac_try) 2>&5
3744   ac_status=$?
3745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746   (exit $ac_status); }; }; then
3747   ac_header_compiler=yes
3748 else
3749   echo "$as_me: failed program was:" >&5
3750 sed 's/^/| /' conftest.$ac_ext >&5
3751
3752 ac_header_compiler=no
3753 fi
3754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3755 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3756 echo "${ECHO_T}$ac_header_compiler" >&6
3757
3758 # Is the header present?
3759 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3760 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3761 cat >conftest.$ac_ext <<_ACEOF
3762 /* confdefs.h.  */
3763 _ACEOF
3764 cat confdefs.h >>conftest.$ac_ext
3765 cat >>conftest.$ac_ext <<_ACEOF
3766 /* end confdefs.h.  */
3767 #include <$ac_header>
3768 _ACEOF
3769 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3770   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3771   ac_status=$?
3772   grep -v '^ *+' conftest.er1 >conftest.err
3773   rm -f conftest.er1
3774   cat conftest.err >&5
3775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776   (exit $ac_status); } >/dev/null; then
3777   if test -s conftest.err; then
3778     ac_cpp_err=$ac_c_preproc_warn_flag
3779     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3780   else
3781     ac_cpp_err=
3782   fi
3783 else
3784   ac_cpp_err=yes
3785 fi
3786 if test -z "$ac_cpp_err"; then
3787   ac_header_preproc=yes
3788 else
3789   echo "$as_me: failed program was:" >&5
3790 sed 's/^/| /' conftest.$ac_ext >&5
3791
3792   ac_header_preproc=no
3793 fi
3794 rm -f conftest.err conftest.$ac_ext
3795 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3796 echo "${ECHO_T}$ac_header_preproc" >&6
3797
3798 # So?  What about this header?
3799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3800   yes:no: )
3801     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3802 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3803     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3804 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3805     ac_header_preproc=yes
3806     ;;
3807   no:yes:* )
3808     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3809 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3810     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3811 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3812     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3813 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3814     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3815 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3816     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3818     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3819 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3820     (
3821       cat <<\_ASBOX
3822 ## ------------------------------------------ ##
3823 ## Report this to the AC_PACKAGE_NAME lists.  ##
3824 ## ------------------------------------------ ##
3825 _ASBOX
3826     ) |
3827       sed "s/^/$as_me: WARNING:     /" >&2
3828     ;;
3829 esac
3830 echo "$as_me:$LINENO: checking for $ac_header" >&5
3831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3833   echo $ECHO_N "(cached) $ECHO_C" >&6
3834 else
3835   eval "$as_ac_Header=\$ac_header_preproc"
3836 fi
3837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3838 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3839
3840 fi
3841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3842   cat >>confdefs.h <<_ACEOF
3843 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3844 _ACEOF
3845
3846 else
3847   CAIRO_MISSING=yes
3848 fi
3849
3850 done
3851
3852     if test "x$CAIRO_MISSING" = xyes; then
3853       { { echo "$as_me:$LINENO: error: something went wrong when checking for cairo, you're probably missing headers or it's not installed" >&5
3854 echo "$as_me: error: something went wrong when checking for cairo, you're probably missing headers or it's not installed" >&2;}
3855    { (exit 1); exit 1; }; }
3856   fi
3857   # Extract the first word of "pkg-config", so it can be a program name with args.
3858 set dummy pkg-config; ac_word=$2
3859 echo "$as_me:$LINENO: checking for $ac_word" >&5
3860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3861 if test "${ac_cv_path_CAIROCONFIG+set}" = set; then
3862   echo $ECHO_N "(cached) $ECHO_C" >&6
3863 else
3864   case $CAIROCONFIG in
3865   [\\/]* | ?:[\\/]*)
3866   ac_cv_path_CAIROCONFIG="$CAIROCONFIG" # Let the user override the test with a path.
3867   ;;
3868   *)
3869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3870 for as_dir in $PATH
3871 do
3872   IFS=$as_save_IFS
3873   test -z "$as_dir" && as_dir=.
3874   for ac_exec_ext in '' $ac_executable_extensions; do
3875   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3876     ac_cv_path_CAIROCONFIG="$as_dir/$ac_word$ac_exec_ext"
3877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3878     break 2
3879   fi
3880 done
3881 done
3882
3883   ;;
3884 esac
3885 fi
3886 CAIROCONFIG=$ac_cv_path_CAIROCONFIG
3887
3888 if test -n "$CAIROCONFIG"; then
3889   echo "$as_me:$LINENO: result: $CAIROCONFIG" >&5
3890 echo "${ECHO_T}$CAIROCONFIG" >&6
3891 else
3892   echo "$as_me:$LINENO: result: no" >&5
3893 echo "${ECHO_T}no" >&6
3894 fi
3895
3896   if test x$CAIROCONFIG != x; then
3897
3898
3899 cat >>confdefs.h <<\_ACEOF
3900 #define CAIRO 1
3901 _ACEOF
3902
3903     CFLAGS="$CFLAGS `$CAIROCONFIG --cflags cairo` `$CAIROCONFIG --libs cairo` "
3904     CAIRO_LIBS="`$CAIROCONFIG --libs cairo` `$CAIROCONFIG --cflags cairo`"
3905   else
3906     want_cairo=no
3907   fi
3908 fi
3909
3910
3911 want_metar=no
3912 # Check whether --enable-metar or --disable-metar was given.
3913 if test "${enable_metar+set}" = set; then
3914   enableval="$enable_metar"
3915   want_metar="$enableval"
3916 fi;
3917
3918
3919
3920 if test x$want_metar == xyes; then
3921   BUILD_METAR_TRUE=
3922   BUILD_METAR_FALSE='#'
3923 else
3924   BUILD_METAR_TRUE='#'
3925   BUILD_METAR_FALSE=
3926 fi
3927
3928 if test x$want_metar == xyes; then
3929
3930 for ac_header in metar.h
3931 do
3932 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3934   echo "$as_me:$LINENO: checking for $ac_header" >&5
3935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3937   echo $ECHO_N "(cached) $ECHO_C" >&6
3938 fi
3939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3941 else
3942   # Is the header compilable?
3943 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3944 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3945 cat >conftest.$ac_ext <<_ACEOF
3946 /* confdefs.h.  */
3947 _ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h.  */
3951 $ac_includes_default
3952 #include <$ac_header>
3953 _ACEOF
3954 rm -f conftest.$ac_objext
3955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3956   (eval $ac_compile) 2>conftest.er1
3957   ac_status=$?
3958   grep -v '^ *+' conftest.er1 >conftest.err
3959   rm -f conftest.er1
3960   cat conftest.err >&5
3961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962   (exit $ac_status); } &&
3963          { ac_try='test -z "$ac_c_werror_flag"
3964                          || test ! -s conftest.err'
3965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3966   (eval $ac_try) 2>&5
3967   ac_status=$?
3968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969   (exit $ac_status); }; } &&
3970          { ac_try='test -s conftest.$ac_objext'
3971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3972   (eval $ac_try) 2>&5
3973   ac_status=$?
3974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975   (exit $ac_status); }; }; then
3976   ac_header_compiler=yes
3977 else
3978   echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3980
3981 ac_header_compiler=no
3982 fi
3983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3984 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3985 echo "${ECHO_T}$ac_header_compiler" >&6
3986
3987 # Is the header present?
3988 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3990 cat >conftest.$ac_ext <<_ACEOF
3991 /* confdefs.h.  */
3992 _ACEOF
3993 cat confdefs.h >>conftest.$ac_ext
3994 cat >>conftest.$ac_ext <<_ACEOF
3995 /* end confdefs.h.  */
3996 #include <$ac_header>
3997 _ACEOF
3998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3999   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4000   ac_status=$?
4001   grep -v '^ *+' conftest.er1 >conftest.err
4002   rm -f conftest.er1
4003   cat conftest.err >&5
4004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005   (exit $ac_status); } >/dev/null; then
4006   if test -s conftest.err; then
4007     ac_cpp_err=$ac_c_preproc_warn_flag
4008     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4009   else
4010     ac_cpp_err=
4011   fi
4012 else
4013   ac_cpp_err=yes
4014 fi
4015 if test -z "$ac_cpp_err"; then
4016   ac_header_preproc=yes
4017 else
4018   echo "$as_me: failed program was:" >&5
4019 sed 's/^/| /' conftest.$ac_ext >&5
4020
4021   ac_header_preproc=no
4022 fi
4023 rm -f conftest.err conftest.$ac_ext
4024 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4025 echo "${ECHO_T}$ac_header_preproc" >&6
4026
4027 # So?  What about this header?
4028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4029   yes:no: )
4030     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4031 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4032     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4033 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4034     ac_header_preproc=yes
4035     ;;
4036   no:yes:* )
4037     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4038 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4039     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4040 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4041     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4042 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4043     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4044 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4045     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4046 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4047     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4048 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4049     (
4050       cat <<\_ASBOX
4051 ## ------------------------------------------ ##
4052 ## Report this to the AC_PACKAGE_NAME lists.  ##
4053 ## ------------------------------------------ ##
4054 _ASBOX
4055     ) |
4056       sed "s/^/$as_me: WARNING:     /" >&2
4057     ;;
4058 esac
4059 echo "$as_me:$LINENO: checking for $ac_header" >&5
4060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4062   echo $ECHO_N "(cached) $ECHO_C" >&6
4063 else
4064   eval "$as_ac_Header=\$ac_header_preproc"
4065 fi
4066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4067 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4068
4069 fi
4070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4071   cat >>confdefs.h <<_ACEOF
4072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4073 _ACEOF
4074
4075 else
4076   METAR_MISSING=yes
4077 fi
4078
4079 done
4080
4081     if test "x$METAR_MISSING" = xyes; then
4082       { { echo "$as_me:$LINENO: error: something went wrong when checking for mdsplib, you're probably missing headers or it's not installed" >&5
4083 echo "$as_me: error: something went wrong when checking for mdsplib, you're probably missing headers or it's not installed" >&2;}
4084    { (exit 1); exit 1; }; }
4085   fi
4086
4087 cat >>confdefs.h <<\_ACEOF
4088 #define METAR 1
4089 _ACEOF
4090
4091 fi
4092
4093
4094
4095
4096 want_mldonkey=no
4097 # Check whether --enable-mldonkey or --disable-mldonkey was given.
4098 if test "${enable_mldonkey+set}" = set; then
4099   enableval="$enable_mldonkey"
4100   want_mldonkey="$enableval"
4101 fi;
4102
4103
4104
4105 if test x$want_mldonkey == xyes; then
4106   BUILD_MLDONKEY_TRUE=
4107   BUILD_MLDONKEY_FALSE='#'
4108 else
4109   BUILD_MLDONKEY_TRUE='#'
4110   BUILD_MLDONKEY_FALSE=
4111 fi
4112
4113 if test x$want_mldonkey == xyes; then
4114
4115 cat >>confdefs.h <<\_ACEOF
4116 #define MLDONKEY 1
4117 _ACEOF
4118
4119 fi
4120
4121
4122 ac_ext=c
4123 ac_cpp='$CPP $CPPFLAGS'
4124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4127 if test -n "$ac_tool_prefix"; then
4128   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4129 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4130 echo "$as_me:$LINENO: checking for $ac_word" >&5
4131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4132 if test "${ac_cv_prog_CC+set}" = set; then
4133   echo $ECHO_N "(cached) $ECHO_C" >&6
4134 else
4135   if test -n "$CC"; then
4136   ac_cv_prog_CC="$CC" # Let the user override the test.
4137 else
4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 for as_dir in $PATH
4140 do
4141   IFS=$as_save_IFS
4142   test -z "$as_dir" && as_dir=.
4143   for ac_exec_ext in '' $ac_executable_extensions; do
4144   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4145     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4146     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4147     break 2
4148   fi
4149 done
4150 done
4151
4152 fi
4153 fi
4154 CC=$ac_cv_prog_CC
4155 if test -n "$CC"; then
4156   echo "$as_me:$LINENO: result: $CC" >&5
4157 echo "${ECHO_T}$CC" >&6
4158 else
4159   echo "$as_me:$LINENO: result: no" >&5
4160 echo "${ECHO_T}no" >&6
4161 fi
4162
4163 fi
4164 if test -z "$ac_cv_prog_CC"; then
4165   ac_ct_CC=$CC
4166   # Extract the first word of "gcc", so it can be a program name with args.
4167 set dummy gcc; ac_word=$2
4168 echo "$as_me:$LINENO: checking for $ac_word" >&5
4169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4170 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4171   echo $ECHO_N "(cached) $ECHO_C" >&6
4172 else
4173   if test -n "$ac_ct_CC"; then
4174   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4175 else
4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177 for as_dir in $PATH
4178 do
4179   IFS=$as_save_IFS
4180   test -z "$as_dir" && as_dir=.
4181   for ac_exec_ext in '' $ac_executable_extensions; do
4182   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4183     ac_cv_prog_ac_ct_CC="gcc"
4184     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4185     break 2
4186   fi
4187 done
4188 done
4189
4190 fi
4191 fi
4192 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4193 if test -n "$ac_ct_CC"; then
4194   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4195 echo "${ECHO_T}$ac_ct_CC" >&6
4196 else
4197   echo "$as_me:$LINENO: result: no" >&5
4198 echo "${ECHO_T}no" >&6
4199 fi
4200
4201   CC=$ac_ct_CC
4202 else
4203   CC="$ac_cv_prog_CC"
4204 fi
4205
4206 if test -z "$CC"; then
4207   if test -n "$ac_tool_prefix"; then
4208   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4209 set dummy ${ac_tool_prefix}cc; ac_word=$2
4210 echo "$as_me:$LINENO: checking for $ac_word" >&5
4211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4212 if test "${ac_cv_prog_CC+set}" = set; then
4213   echo $ECHO_N "(cached) $ECHO_C" >&6
4214 else
4215   if test -n "$CC"; then
4216   ac_cv_prog_CC="$CC" # Let the user override the test.
4217 else
4218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219 for as_dir in $PATH
4220 do
4221   IFS=$as_save_IFS
4222   test -z "$as_dir" && as_dir=.
4223   for ac_exec_ext in '' $ac_executable_extensions; do
4224   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4225     ac_cv_prog_CC="${ac_tool_prefix}cc"
4226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4227     break 2
4228   fi
4229 done
4230 done
4231
4232 fi
4233 fi
4234 CC=$ac_cv_prog_CC
4235 if test -n "$CC"; then
4236   echo "$as_me:$LINENO: result: $CC" >&5
4237 echo "${ECHO_T}$CC" >&6
4238 else
4239   echo "$as_me:$LINENO: result: no" >&5
4240 echo "${ECHO_T}no" >&6
4241 fi
4242
4243 fi
4244 if test -z "$ac_cv_prog_CC"; then
4245   ac_ct_CC=$CC
4246   # Extract the first word of "cc", so it can be a program name with args.
4247 set dummy cc; ac_word=$2
4248 echo "$as_me:$LINENO: checking for $ac_word" >&5
4249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4250 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4251   echo $ECHO_N "(cached) $ECHO_C" >&6
4252 else
4253   if test -n "$ac_ct_CC"; then
4254   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4255 else
4256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 for as_dir in $PATH
4258 do
4259   IFS=$as_save_IFS
4260   test -z "$as_dir" && as_dir=.
4261   for ac_exec_ext in '' $ac_executable_extensions; do
4262   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4263     ac_cv_prog_ac_ct_CC="cc"
4264     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4265     break 2
4266   fi
4267 done
4268 done
4269
4270 fi
4271 fi
4272 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4273 if test -n "$ac_ct_CC"; then
4274   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4275 echo "${ECHO_T}$ac_ct_CC" >&6
4276 else
4277   echo "$as_me:$LINENO: result: no" >&5
4278 echo "${ECHO_T}no" >&6
4279 fi
4280
4281   CC=$ac_ct_CC
4282 else
4283   CC="$ac_cv_prog_CC"
4284 fi
4285
4286 fi
4287 if test -z "$CC"; then
4288   # Extract the first word of "cc", so it can be a program name with args.
4289 set dummy cc; ac_word=$2
4290 echo "$as_me:$LINENO: checking for $ac_word" >&5
4291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4292 if test "${ac_cv_prog_CC+set}" = set; then
4293   echo $ECHO_N "(cached) $ECHO_C" >&6
4294 else
4295   if test -n "$CC"; then
4296   ac_cv_prog_CC="$CC" # Let the user override the test.
4297 else
4298   ac_prog_rejected=no
4299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300 for as_dir in $PATH
4301 do
4302   IFS=$as_save_IFS
4303   test -z "$as_dir" && as_dir=.
4304   for ac_exec_ext in '' $ac_executable_extensions; do
4305   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4306     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4307        ac_prog_rejected=yes
4308        continue
4309      fi
4310     ac_cv_prog_CC="cc"
4311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4312     break 2
4313   fi
4314 done
4315 done
4316
4317 if test $ac_prog_rejected = yes; then
4318   # We found a bogon in the path, so make sure we never use it.
4319   set dummy $ac_cv_prog_CC
4320   shift
4321   if test $# != 0; then
4322     # We chose a different compiler from the bogus one.
4323     # However, it has the same basename, so the bogon will be chosen
4324     # first if we set CC to just the basename; use the full file name.
4325     shift
4326     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4327   fi
4328 fi
4329 fi
4330 fi
4331 CC=$ac_cv_prog_CC
4332 if test -n "$CC"; then
4333   echo "$as_me:$LINENO: result: $CC" >&5
4334 echo "${ECHO_T}$CC" >&6
4335 else
4336   echo "$as_me:$LINENO: result: no" >&5
4337 echo "${ECHO_T}no" >&6
4338 fi
4339
4340 fi
4341 if test -z "$CC"; then
4342   if test -n "$ac_tool_prefix"; then
4343   for ac_prog in cl
4344   do
4345     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4346 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4347 echo "$as_me:$LINENO: checking for $ac_word" >&5
4348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4349 if test "${ac_cv_prog_CC+set}" = set; then
4350   echo $ECHO_N "(cached) $ECHO_C" >&6
4351 else
4352   if test -n "$CC"; then
4353   ac_cv_prog_CC="$CC" # Let the user override the test.
4354 else
4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 for as_dir in $PATH
4357 do
4358   IFS=$as_save_IFS
4359   test -z "$as_dir" && as_dir=.
4360   for ac_exec_ext in '' $ac_executable_extensions; do
4361   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4362     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4364     break 2
4365   fi
4366 done
4367 done
4368
4369 fi
4370 fi
4371 CC=$ac_cv_prog_CC
4372 if test -n "$CC"; then
4373   echo "$as_me:$LINENO: result: $CC" >&5
4374 echo "${ECHO_T}$CC" >&6
4375 else
4376   echo "$as_me:$LINENO: result: no" >&5
4377 echo "${ECHO_T}no" >&6
4378 fi
4379
4380     test -n "$CC" && break
4381   done
4382 fi
4383 if test -z "$CC"; then
4384   ac_ct_CC=$CC
4385   for ac_prog in cl
4386 do
4387   # Extract the first word of "$ac_prog", so it can be a program name with args.
4388 set dummy $ac_prog; ac_word=$2
4389 echo "$as_me:$LINENO: checking for $ac_word" >&5
4390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4391 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4392   echo $ECHO_N "(cached) $ECHO_C" >&6
4393 else
4394   if test -n "$ac_ct_CC"; then
4395   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4396 else
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 for as_dir in $PATH
4399 do
4400   IFS=$as_save_IFS
4401   test -z "$as_dir" && as_dir=.
4402   for ac_exec_ext in '' $ac_executable_extensions; do
4403   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4404     ac_cv_prog_ac_ct_CC="$ac_prog"
4405     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4406     break 2
4407   fi
4408 done
4409 done
4410
4411 fi
4412 fi
4413 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4414 if test -n "$ac_ct_CC"; then
4415   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4416 echo "${ECHO_T}$ac_ct_CC" >&6
4417 else
4418   echo "$as_me:$LINENO: result: no" >&5
4419 echo "${ECHO_T}no" >&6
4420 fi
4421
4422   test -n "$ac_ct_CC" && break
4423 done
4424
4425   CC=$ac_ct_CC
4426 fi
4427
4428 fi
4429
4430
4431 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4432 See \`config.log' for more details." >&5
4433 echo "$as_me: error: no acceptable C compiler found in \$PATH
4434 See \`config.log' for more details." >&2;}
4435    { (exit 1); exit 1; }; }
4436
4437 # Provide some information about the compiler.
4438 echo "$as_me:$LINENO:" \
4439      "checking for C compiler version" >&5
4440 ac_compiler=`set X $ac_compile; echo $2`
4441 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4442   (eval $ac_compiler --version </dev/null >&5) 2>&5
4443   ac_status=$?
4444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445   (exit $ac_status); }
4446 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4447   (eval $ac_compiler -v </dev/null >&5) 2>&5
4448   ac_status=$?
4449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450   (exit $ac_status); }
4451 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4452   (eval $ac_compiler -V </dev/null >&5) 2>&5
4453   ac_status=$?
4454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455   (exit $ac_status); }
4456
4457 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4458 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4459 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4460   echo $ECHO_N "(cached) $ECHO_C" >&6
4461 else
4462   cat >conftest.$ac_ext <<_ACEOF
4463 /* confdefs.h.  */
4464 _ACEOF
4465 cat confdefs.h >>conftest.$ac_ext
4466 cat >>conftest.$ac_ext <<_ACEOF
4467 /* end confdefs.h.  */
4468
4469 int
4470 main ()
4471 {
4472 #ifndef __GNUC__
4473        choke me
4474 #endif
4475
4476   ;
4477   return 0;
4478 }
4479 _ACEOF
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_compiler_gnu=yes
4503 else
4504   echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.$ac_ext >&5
4506
4507 ac_compiler_gnu=no
4508 fi
4509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4510 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4511
4512 fi
4513 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4514 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4515 GCC=`test $ac_compiler_gnu = yes && echo yes`
4516 ac_test_CFLAGS=${CFLAGS+set}
4517 ac_save_CFLAGS=$CFLAGS
4518 CFLAGS="-g"
4519 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4520 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4521 if test "${ac_cv_prog_cc_g+set}" = set; then
4522   echo $ECHO_N "(cached) $ECHO_C" >&6
4523 else
4524   cat >conftest.$ac_ext <<_ACEOF
4525 /* confdefs.h.  */
4526 _ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h.  */
4530
4531 int
4532 main ()
4533 {
4534
4535   ;
4536   return 0;
4537 }
4538 _ACEOF
4539 rm -f conftest.$ac_objext
4540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4541   (eval $ac_compile) 2>conftest.er1
4542   ac_status=$?
4543   grep -v '^ *+' conftest.er1 >conftest.err
4544   rm -f conftest.er1
4545   cat conftest.err >&5
4546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547   (exit $ac_status); } &&
4548          { ac_try='test -z "$ac_c_werror_flag"
4549                          || test ! -s conftest.err'
4550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551   (eval $ac_try) 2>&5
4552   ac_status=$?
4553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554   (exit $ac_status); }; } &&
4555          { ac_try='test -s conftest.$ac_objext'
4556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557   (eval $ac_try) 2>&5
4558   ac_status=$?
4559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560   (exit $ac_status); }; }; then
4561   ac_cv_prog_cc_g=yes
4562 else
4563   echo "$as_me: failed program was:" >&5
4564 sed 's/^/| /' conftest.$ac_ext >&5
4565
4566 ac_cv_prog_cc_g=no
4567 fi
4568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4569 fi
4570 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4571 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4572 if test "$ac_test_CFLAGS" = set; then
4573   CFLAGS=$ac_save_CFLAGS
4574 elif test $ac_cv_prog_cc_g = yes; then
4575   if test "$GCC" = yes; then
4576     CFLAGS="-g -O2"
4577   else
4578     CFLAGS="-g"
4579   fi
4580 else
4581   if test "$GCC" = yes; then
4582     CFLAGS="-O2"
4583   else
4584     CFLAGS=
4585   fi
4586 fi
4587 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4588 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4589 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4590   echo $ECHO_N "(cached) $ECHO_C" >&6
4591 else
4592   ac_cv_prog_cc_stdc=no
4593 ac_save_CC=$CC
4594 cat >conftest.$ac_ext <<_ACEOF
4595 /* confdefs.h.  */
4596 _ACEOF
4597 cat confdefs.h >>conftest.$ac_ext
4598 cat >>conftest.$ac_ext <<_ACEOF
4599 /* end confdefs.h.  */
4600 #include <stdarg.h>
4601 #include <stdio.h>
4602 #include <sys/types.h>
4603 #include <sys/stat.h>
4604 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4605 struct buf { int x; };
4606 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4607 static char *e (p, i)
4608      char **p;
4609      int i;
4610 {
4611   return p[i];
4612 }
4613 static char *f (char * (*g) (char **, int), char **p, ...)
4614 {
4615   char *s;
4616   va_list v;
4617   va_start (v,p);
4618   s = g (p, va_arg (v,int));
4619   va_end (v);
4620   return s;
4621 }
4622
4623 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4624    function prototypes and stuff, but not '\xHH' hex character constants.
4625    These don't provoke an error unfortunately, instead are silently treated
4626    as 'x'.  The following induces an error, until -std1 is added to get
4627    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4628    array size at least.  It's necessary to write '\x00'==0 to get something
4629    that's true only with -std1.  */
4630 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4631
4632 int test (int i, double x);
4633 struct s1 {int (*f) (int a);};
4634 struct s2 {int (*f) (double a);};
4635 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4636 int argc;
4637 char **argv;
4638 int
4639 main ()
4640 {
4641 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4642   ;
4643   return 0;
4644 }
4645 _ACEOF
4646 # Don't try gcc -ansi; that turns off useful extensions and
4647 # breaks some systems' header files.
4648 # AIX                   -qlanglvl=ansi
4649 # Ultrix and OSF/1      -std1
4650 # HP-UX 10.20 and later -Ae
4651 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4652 # SVR4                  -Xc -D__EXTENSIONS__
4653 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4654 do
4655   CC="$ac_save_CC $ac_arg"
4656   rm -f conftest.$ac_objext
4657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4658   (eval $ac_compile) 2>conftest.er1
4659   ac_status=$?
4660   grep -v '^ *+' conftest.er1 >conftest.err
4661   rm -f conftest.er1
4662   cat conftest.err >&5
4663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664   (exit $ac_status); } &&
4665          { ac_try='test -z "$ac_c_werror_flag"
4666                          || test ! -s conftest.err'
4667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4668   (eval $ac_try) 2>&5
4669   ac_status=$?
4670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671   (exit $ac_status); }; } &&
4672          { ac_try='test -s conftest.$ac_objext'
4673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674   (eval $ac_try) 2>&5
4675   ac_status=$?
4676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677   (exit $ac_status); }; }; then
4678   ac_cv_prog_cc_stdc=$ac_arg
4679 break
4680 else
4681   echo "$as_me: failed program was:" >&5
4682 sed 's/^/| /' conftest.$ac_ext >&5
4683
4684 fi
4685 rm -f conftest.err conftest.$ac_objext
4686 done
4687 rm -f conftest.$ac_ext conftest.$ac_objext
4688 CC=$ac_save_CC
4689
4690 fi
4691
4692 case "x$ac_cv_prog_cc_stdc" in
4693   x|xno)
4694     echo "$as_me:$LINENO: result: none needed" >&5
4695 echo "${ECHO_T}none needed" >&6 ;;
4696   *)
4697     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4698 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4699     CC="$CC $ac_cv_prog_cc_stdc" ;;
4700 esac
4701
4702 # Some people use a C++ compiler to compile C.  Since we use `exit',
4703 # in C++ we need to declare it.  In case someone uses the same compiler
4704 # for both compiling C and C++ we need to have the C++ compiler decide
4705 # the declaration of exit, since it's the most demanding environment.
4706 cat >conftest.$ac_ext <<_ACEOF
4707 #ifndef __cplusplus
4708   choke me
4709 #endif
4710 _ACEOF
4711 rm -f conftest.$ac_objext
4712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4713   (eval $ac_compile) 2>conftest.er1
4714   ac_status=$?
4715   grep -v '^ *+' conftest.er1 >conftest.err
4716   rm -f conftest.er1
4717   cat conftest.err >&5
4718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719   (exit $ac_status); } &&
4720          { ac_try='test -z "$ac_c_werror_flag"
4721                          || test ! -s conftest.err'
4722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723   (eval $ac_try) 2>&5
4724   ac_status=$?
4725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726   (exit $ac_status); }; } &&
4727          { ac_try='test -s conftest.$ac_objext'
4728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729   (eval $ac_try) 2>&5
4730   ac_status=$?
4731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732   (exit $ac_status); }; }; then
4733   for ac_declaration in \
4734    '' \
4735    'extern "C" void std::exit (int) throw (); using std::exit;' \
4736    'extern "C" void std::exit (int); using std::exit;' \
4737    'extern "C" void exit (int) throw ();' \
4738    'extern "C" void exit (int);' \
4739    'void exit (int);'
4740 do
4741   cat >conftest.$ac_ext <<_ACEOF
4742 /* confdefs.h.  */
4743 _ACEOF
4744 cat confdefs.h >>conftest.$ac_ext
4745 cat >>conftest.$ac_ext <<_ACEOF
4746 /* end confdefs.h.  */
4747 $ac_declaration
4748 #include <stdlib.h>
4749 int
4750 main ()
4751 {
4752 exit (42);
4753   ;
4754   return 0;
4755 }
4756 _ACEOF
4757 rm -f conftest.$ac_objext
4758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4759   (eval $ac_compile) 2>conftest.er1
4760   ac_status=$?
4761   grep -v '^ *+' conftest.er1 >conftest.err
4762   rm -f conftest.er1
4763   cat conftest.err >&5
4764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765   (exit $ac_status); } &&
4766          { ac_try='test -z "$ac_c_werror_flag"
4767                          || test ! -s conftest.err'
4768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4769   (eval $ac_try) 2>&5
4770   ac_status=$?
4771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772   (exit $ac_status); }; } &&
4773          { ac_try='test -s conftest.$ac_objext'
4774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4775   (eval $ac_try) 2>&5
4776   ac_status=$?
4777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778   (exit $ac_status); }; }; then
4779   :
4780 else
4781   echo "$as_me: failed program was:" >&5
4782 sed 's/^/| /' conftest.$ac_ext >&5
4783
4784 continue
4785 fi
4786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4787   cat >conftest.$ac_ext <<_ACEOF
4788 /* confdefs.h.  */
4789 _ACEOF
4790 cat confdefs.h >>conftest.$ac_ext
4791 cat >>conftest.$ac_ext <<_ACEOF
4792 /* end confdefs.h.  */
4793 $ac_declaration
4794 int
4795 main ()
4796 {
4797 exit (42);
4798   ;
4799   return 0;
4800 }
4801 _ACEOF
4802 rm -f conftest.$ac_objext
4803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4804   (eval $ac_compile) 2>conftest.er1
4805   ac_status=$?
4806   grep -v '^ *+' conftest.er1 >conftest.err
4807   rm -f conftest.er1
4808   cat conftest.err >&5
4809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810   (exit $ac_status); } &&
4811          { ac_try='test -z "$ac_c_werror_flag"
4812                          || test ! -s conftest.err'
4813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814   (eval $ac_try) 2>&5
4815   ac_status=$?
4816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817   (exit $ac_status); }; } &&
4818          { ac_try='test -s conftest.$ac_objext'
4819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820   (eval $ac_try) 2>&5
4821   ac_status=$?
4822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823   (exit $ac_status); }; }; then
4824   break
4825 else
4826   echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.$ac_ext >&5
4828
4829 fi
4830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4831 done
4832 rm -f conftest*
4833 if test -n "$ac_declaration"; then
4834   echo '#ifdef __cplusplus' >>confdefs.h
4835   echo $ac_declaration      >>confdefs.h
4836   echo '#endif'             >>confdefs.h
4837 fi
4838
4839 else
4840   echo "$as_me: failed program was:" >&5
4841 sed 's/^/| /' conftest.$ac_ext >&5
4842
4843 fi
4844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4845 ac_ext=c
4846 ac_cpp='$CPP $CPPFLAGS'
4847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4850
4851 depcc="$CC"   am_compiler_list=
4852
4853 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4854 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4855 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4856   echo $ECHO_N "(cached) $ECHO_C" >&6
4857 else
4858   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4859   # We make a subdir and do the tests there.  Otherwise we can end up
4860   # making bogus files that we don't know about and never remove.  For
4861   # instance it was reported that on HP-UX the gcc test will end up
4862   # making a dummy file named `D' -- because `-MD' means `put the output
4863   # in D'.
4864   mkdir conftest.dir
4865   # Copy depcomp to subdir because otherwise we won't find it if we're
4866   # using a relative directory.
4867   cp "$am_depcomp" conftest.dir
4868   cd conftest.dir
4869   # We will build objects and dependencies in a subdirectory because
4870   # it helps to detect inapplicable dependency modes.  For instance
4871   # both Tru64's cc and ICC support -MD to output dependencies as a
4872   # side effect of compilation, but ICC will put the dependencies in
4873   # the current directory while Tru64 will put them in the object
4874   # directory.
4875   mkdir sub
4876
4877   am_cv_CC_dependencies_compiler_type=none
4878   if test "$am_compiler_list" = ""; then
4879      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4880   fi
4881   for depmode in $am_compiler_list; do
4882     # Setup a source with many dependencies, because some compilers
4883     # like to wrap large dependency lists on column 80 (with \), and
4884     # we should not choose a depcomp mode which is confused by this.
4885     #
4886     # We need to recreate these files for each test, as the compiler may
4887     # overwrite some of them when testing with obscure command lines.
4888     # This happens at least with the AIX C compiler.
4889     : > sub/conftest.c
4890     for i in 1 2 3 4 5 6; do
4891       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4892       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4893       # Solaris 8's {/usr,}/bin/sh.
4894       touch sub/conftst$i.h
4895     done
4896     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4897
4898     case $depmode in
4899     nosideeffect)
4900       # after this tag, mechanisms are not by side-effect, so they'll
4901       # only be used when explicitly requested
4902       if test "x$enable_dependency_tracking" = xyes; then
4903         continue
4904       else
4905         break
4906       fi
4907       ;;
4908     none) break ;;
4909     esac
4910     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4911     # mode.  It turns out that the SunPro C++ compiler does not properly
4912     # handle `-M -o', and we need to detect this.
4913     if depmode=$depmode \
4914        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4915        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4916        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4917          >/dev/null 2>conftest.err &&
4918        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4919        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4920        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4921       # icc doesn't choke on unknown options, it will just issue warnings
4922       # or remarks (even with -Werror).  So we grep stderr for any message
4923       # that says an option was ignored or not supported.
4924       # When given -MP, icc 7.0 and 7.1 complain thusly:
4925       #   icc: Command line warning: ignoring option '-M'; no argument required
4926       # The diagnosis changed in icc 8.0:
4927       #   icc: Command line remark: option '-MP' not supported
4928       if (grep 'ignoring option' conftest.err ||
4929           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4930         am_cv_CC_dependencies_compiler_type=$depmode
4931         break
4932       fi
4933     fi
4934   done
4935
4936   cd ..
4937   rm -rf conftest.dir
4938 else
4939   am_cv_CC_dependencies_compiler_type=none
4940 fi
4941
4942 fi
4943 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4944 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4945 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4946
4947
4948
4949 if
4950   test "x$enable_dependency_tracking" != xno \
4951   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4952   am__fastdepCC_TRUE=
4953   am__fastdepCC_FALSE='#'
4954 else
4955   am__fastdepCC_TRUE='#'
4956   am__fastdepCC_FALSE=
4957 fi
4958
4959
4960
4961
4962 want_x11=yes
4963 # Check whether --enable-x11 or --disable-x11 was given.
4964 if test "${enable_x11+set}" = set; then
4965   enableval="$enable_x11"
4966   want_x11="$enableval"
4967 fi;
4968
4969
4970
4971
4972 if test x$want_x11 == xyes; then
4973   BUILD_X11_TRUE=
4974   BUILD_X11_FALSE='#'
4975 else
4976   BUILD_X11_TRUE='#'
4977   BUILD_X11_FALSE=
4978 fi
4979
4980 if test x$want_x11 == xyes; then
4981
4982 for ac_header in X11/Xlib.h
4983 do
4984 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4986   echo "$as_me:$LINENO: checking for $ac_header" >&5
4987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4989   echo $ECHO_N "(cached) $ECHO_C" >&6
4990 fi
4991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4992 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4993 else
4994   # Is the header compilable?
4995 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4996 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4997 cat >conftest.$ac_ext <<_ACEOF
4998 /* confdefs.h.  */
4999 _ACEOF
5000 cat confdefs.h >>conftest.$ac_ext
5001 cat >>conftest.$ac_ext <<_ACEOF
5002 /* end confdefs.h.  */
5003 $ac_includes_default
5004 #include <$ac_header>
5005 _ACEOF
5006 rm -f conftest.$ac_objext
5007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5008   (eval $ac_compile) 2>conftest.er1
5009   ac_status=$?
5010   grep -v '^ *+' conftest.er1 >conftest.err
5011   rm -f conftest.er1
5012   cat conftest.err >&5
5013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014   (exit $ac_status); } &&
5015          { ac_try='test -z "$ac_c_werror_flag"
5016                          || test ! -s conftest.err'
5017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018   (eval $ac_try) 2>&5
5019   ac_status=$?
5020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021   (exit $ac_status); }; } &&
5022          { ac_try='test -s conftest.$ac_objext'
5023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024   (eval $ac_try) 2>&5
5025   ac_status=$?
5026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027   (exit $ac_status); }; }; then
5028   ac_header_compiler=yes
5029 else
5030   echo "$as_me: failed program was:" >&5
5031 sed 's/^/| /' conftest.$ac_ext >&5
5032
5033 ac_header_compiler=no
5034 fi
5035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5036 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5037 echo "${ECHO_T}$ac_header_compiler" >&6
5038
5039 # Is the header present?
5040 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5041 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5042 cat >conftest.$ac_ext <<_ACEOF
5043 /* confdefs.h.  */
5044 _ACEOF
5045 cat confdefs.h >>conftest.$ac_ext
5046 cat >>conftest.$ac_ext <<_ACEOF
5047 /* end confdefs.h.  */
5048 #include <$ac_header>
5049 _ACEOF
5050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5051   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5052   ac_status=$?
5053   grep -v '^ *+' conftest.er1 >conftest.err
5054   rm -f conftest.er1
5055   cat conftest.err >&5
5056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057   (exit $ac_status); } >/dev/null; then
5058   if test -s conftest.err; then
5059     ac_cpp_err=$ac_c_preproc_warn_flag
5060     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5061   else
5062     ac_cpp_err=
5063   fi
5064 else
5065   ac_cpp_err=yes
5066 fi
5067 if test -z "$ac_cpp_err"; then
5068   ac_header_preproc=yes
5069 else
5070   echo "$as_me: failed program was:" >&5
5071 sed 's/^/| /' conftest.$ac_ext >&5
5072
5073   ac_header_preproc=no
5074 fi
5075 rm -f conftest.err conftest.$ac_ext
5076 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5077 echo "${ECHO_T}$ac_header_preproc" >&6
5078
5079 # So?  What about this header?
5080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5081   yes:no: )
5082     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5083 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5084     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5085 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5086     ac_header_preproc=yes
5087     ;;
5088   no:yes:* )
5089     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5090 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5091     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5092 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5093     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5094 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5095     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5096 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5097     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5098 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5099     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5100 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5101     (
5102       cat <<\_ASBOX
5103 ## ------------------------------------------ ##
5104 ## Report this to the AC_PACKAGE_NAME lists.  ##
5105 ## ------------------------------------------ ##
5106 _ASBOX
5107     ) |
5108       sed "s/^/$as_me: WARNING:     /" >&2
5109     ;;
5110 esac
5111 echo "$as_me:$LINENO: checking for $ac_header" >&5
5112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5114   echo $ECHO_N "(cached) $ECHO_C" >&6
5115 else
5116   eval "$as_ac_Header=\$ac_header_preproc"
5117 fi
5118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5119 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5120
5121 fi
5122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5123   cat >>confdefs.h <<_ACEOF
5124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5125 _ACEOF
5126
5127 else
5128   X11_MISSING=yes
5129 fi
5130
5131 done
5132
5133     if test "x$X11_MISSING" = xyes; then
5134       { { 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
5135 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;}
5136    { (exit 1); exit 1; }; }
5137   fi
5138
5139 cat >>confdefs.h <<\_ACEOF
5140 #define X11 1
5141 _ACEOF
5142
5143
5144 cat >>confdefs.h <<\_ACEOF
5145 #define HAVE_X11 1
5146 _ACEOF
5147
5148 fi
5149
5150
5151 if test "$x_libraries" != ""; then
5152   LDFLAGS="$LDFLAGS -L$x_libraries"
5153 fi
5154
5155 if test "$x_includes" != ""; then
5156   CFLAGS="$CFLAGS -Wall -I$x_includes"
5157 fi
5158
5159
5160 if test "$want_xft" = "yes"; then
5161   # Extract the first word of "xft-config", so it can be a program name with args.
5162 set dummy xft-config; ac_word=$2
5163 echo "$as_me:$LINENO: checking for $ac_word" >&5
5164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5165 if test "${ac_cv_path_XFTCONFIG+set}" = set; then
5166   echo $ECHO_N "(cached) $ECHO_C" >&6
5167 else
5168   case $XFTCONFIG in
5169   [\\/]* | ?:[\\/]*)
5170   ac_cv_path_XFTCONFIG="$XFTCONFIG" # Let the user override the test with a path.
5171   ;;
5172   *)
5173   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 for as_dir in $PATH
5175 do
5176   IFS=$as_save_IFS
5177   test -z "$as_dir" && as_dir=.
5178   for ac_exec_ext in '' $ac_executable_extensions; do
5179   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5180     ac_cv_path_XFTCONFIG="$as_dir/$ac_word$ac_exec_ext"
5181     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5182     break 2
5183   fi
5184 done
5185 done
5186
5187   ;;
5188 esac
5189 fi
5190 XFTCONFIG=$ac_cv_path_XFTCONFIG
5191
5192 if test -n "$XFTCONFIG"; then
5193   echo "$as_me:$LINENO: result: $XFTCONFIG" >&5
5194 echo "${ECHO_T}$XFTCONFIG" >&6
5195 else
5196   echo "$as_me:$LINENO: result: no" >&5
5197 echo "${ECHO_T}no" >&6
5198 fi
5199
5200   if test x$XFTCONFIG != x; then
5201
5202     if test "x$XFT_MISSING" = xyes; then
5203       { { echo "$as_me:$LINENO: error: something went wrong when checking for Xft, you're probably missing headers or it's not installed" >&5
5204 echo "$as_me: error: something went wrong when checking for Xft, you're probably missing headers or it's not installed" >&2;}
5205    { (exit 1); exit 1; }; }
5206   fi
5207
5208
5209 cat >>confdefs.h <<\_ACEOF
5210 #define XFT 1
5211 _ACEOF
5212
5213     CFLAGS="$CFLAGS `$XFTCONFIG --cflags`"
5214     XFT_LIBS=`$XFTCONFIG --libs`
5215   else
5216     want_xft=no
5217   fi
5218 fi
5219
5220
5221 if test x$WANT_KVM = xyes; then
5222   echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
5223 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
5224 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
5225   echo $ECHO_N "(cached) $ECHO_C" >&6
5226 else
5227   ac_check_lib_save_LIBS=$LIBS
5228 LIBS="-lkvm  $LIBS"
5229 cat >conftest.$ac_ext <<_ACEOF
5230 /* confdefs.h.  */
5231 _ACEOF
5232 cat confdefs.h >>conftest.$ac_ext
5233 cat >>conftest.$ac_ext <<_ACEOF
5234 /* end confdefs.h.  */
5235
5236 /* Override any gcc2 internal prototype to avoid an error.  */
5237 #ifdef __cplusplus
5238 extern "C"
5239 #endif
5240 /* We use char because int might match the return type of a gcc2
5241    builtin and then its argument prototype would still apply.  */
5242 char kvm_open ();
5243 int
5244 main ()
5245 {
5246 kvm_open ();
5247   ;
5248   return 0;
5249 }
5250 _ACEOF
5251 rm -f conftest.$ac_objext conftest$ac_exeext
5252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5253   (eval $ac_link) 2>conftest.er1
5254   ac_status=$?
5255   grep -v '^ *+' conftest.er1 >conftest.err
5256   rm -f conftest.er1
5257   cat conftest.err >&5
5258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259   (exit $ac_status); } &&
5260          { ac_try='test -z "$ac_c_werror_flag"
5261                          || test ! -s conftest.err'
5262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5263   (eval $ac_try) 2>&5
5264   ac_status=$?
5265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266   (exit $ac_status); }; } &&
5267          { ac_try='test -s conftest$ac_exeext'
5268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5269   (eval $ac_try) 2>&5
5270   ac_status=$?
5271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272   (exit $ac_status); }; }; then
5273   ac_cv_lib_kvm_kvm_open=yes
5274 else
5275   echo "$as_me: failed program was:" >&5
5276 sed 's/^/| /' conftest.$ac_ext >&5
5277
5278 ac_cv_lib_kvm_kvm_open=no
5279 fi
5280 rm -f conftest.err conftest.$ac_objext \
5281       conftest$ac_exeext conftest.$ac_ext
5282 LIBS=$ac_check_lib_save_LIBS
5283 fi
5284 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
5285 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
5286 if test $ac_cv_lib_kvm_kvm_open = yes; then
5287   LIBS="$LIBS -lkvm"
5288 else
5289   { { echo "$as_me:$LINENO: error: Could not find kvm_open in -lkvm." >&5
5290 echo "$as_me: error: Could not find kvm_open in -lkvm." >&2;}
5291    { (exit 1); exit 1; }; }
5292
5293 fi
5294
5295 fi
5296
5297
5298 if test x$WANT_OSSLIB = xyes; then
5299     echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5300 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5301 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5302   echo $ECHO_N "(cached) $ECHO_C" >&6
5303 else
5304   ac_check_lib_save_LIBS=$LIBS
5305 LIBS="-lossaudio  $LIBS"
5306 cat >conftest.$ac_ext <<_ACEOF
5307 /* confdefs.h.  */
5308 _ACEOF
5309 cat confdefs.h >>conftest.$ac_ext
5310 cat >>conftest.$ac_ext <<_ACEOF
5311 /* end confdefs.h.  */
5312
5313 /* Override any gcc2 internal prototype to avoid an error.  */
5314 #ifdef __cplusplus
5315 extern "C"
5316 #endif
5317 /* We use char because int might match the return type of a gcc2
5318    builtin and then its argument prototype would still apply.  */
5319 char _oss_ioctl ();
5320 int
5321 main ()
5322 {
5323 _oss_ioctl ();
5324   ;
5325   return 0;
5326 }
5327 _ACEOF
5328 rm -f conftest.$ac_objext conftest$ac_exeext
5329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5330   (eval $ac_link) 2>conftest.er1
5331   ac_status=$?
5332   grep -v '^ *+' conftest.er1 >conftest.err
5333   rm -f conftest.er1
5334   cat conftest.err >&5
5335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336   (exit $ac_status); } &&
5337          { ac_try='test -z "$ac_c_werror_flag"
5338                          || test ! -s conftest.err'
5339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340   (eval $ac_try) 2>&5
5341   ac_status=$?
5342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343   (exit $ac_status); }; } &&
5344          { ac_try='test -s conftest$ac_exeext'
5345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346   (eval $ac_try) 2>&5
5347   ac_status=$?
5348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349   (exit $ac_status); }; }; then
5350   ac_cv_lib_ossaudio__oss_ioctl=yes
5351 else
5352   echo "$as_me: failed program was:" >&5
5353 sed 's/^/| /' conftest.$ac_ext >&5
5354
5355 ac_cv_lib_ossaudio__oss_ioctl=no
5356 fi
5357 rm -f conftest.err conftest.$ac_objext \
5358       conftest$ac_exeext conftest.$ac_ext
5359 LIBS=$ac_check_lib_save_LIBS
5360 fi
5361 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5362 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5363 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5364   LIBS="$LIBS -lossaudio"
5365 else
5366   { { echo "$as_me:$LINENO: error: Could not find oss_ioctl in -lossaudio." >&5
5367 echo "$as_me: error: Could not find oss_ioctl in -lossaudio." >&2;}
5368    { (exit 1); exit 1; }; }
5369
5370 fi
5371
5372 fi
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383 for ac_header in signal.h unistd.h X11/Xlib.h sys/utsname.h sys/stat.h linux/soundcard.h dirent.h
5384 do
5385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5387   echo "$as_me:$LINENO: checking for $ac_header" >&5
5388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5390   echo $ECHO_N "(cached) $ECHO_C" >&6
5391 fi
5392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5394 else
5395   # Is the header compilable?
5396 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5397 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5398 cat >conftest.$ac_ext <<_ACEOF
5399 /* confdefs.h.  */
5400 _ACEOF
5401 cat confdefs.h >>conftest.$ac_ext
5402 cat >>conftest.$ac_ext <<_ACEOF
5403 /* end confdefs.h.  */
5404 $ac_includes_default
5405 #include <$ac_header>
5406 _ACEOF
5407 rm -f conftest.$ac_objext
5408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5409   (eval $ac_compile) 2>conftest.er1
5410   ac_status=$?
5411   grep -v '^ *+' conftest.er1 >conftest.err
5412   rm -f conftest.er1
5413   cat conftest.err >&5
5414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415   (exit $ac_status); } &&
5416          { ac_try='test -z "$ac_c_werror_flag"
5417                          || test ! -s conftest.err'
5418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5419   (eval $ac_try) 2>&5
5420   ac_status=$?
5421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422   (exit $ac_status); }; } &&
5423          { ac_try='test -s conftest.$ac_objext'
5424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5425   (eval $ac_try) 2>&5
5426   ac_status=$?
5427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428   (exit $ac_status); }; }; then
5429   ac_header_compiler=yes
5430 else
5431   echo "$as_me: failed program was:" >&5
5432 sed 's/^/| /' conftest.$ac_ext >&5
5433
5434 ac_header_compiler=no
5435 fi
5436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5437 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5438 echo "${ECHO_T}$ac_header_compiler" >&6
5439
5440 # Is the header present?
5441 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5442 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5443 cat >conftest.$ac_ext <<_ACEOF
5444 /* confdefs.h.  */
5445 _ACEOF
5446 cat confdefs.h >>conftest.$ac_ext
5447 cat >>conftest.$ac_ext <<_ACEOF
5448 /* end confdefs.h.  */
5449 #include <$ac_header>
5450 _ACEOF
5451 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5452   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5453   ac_status=$?
5454   grep -v '^ *+' conftest.er1 >conftest.err
5455   rm -f conftest.er1
5456   cat conftest.err >&5
5457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458   (exit $ac_status); } >/dev/null; then
5459   if test -s conftest.err; then
5460     ac_cpp_err=$ac_c_preproc_warn_flag
5461     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5462   else
5463     ac_cpp_err=
5464   fi
5465 else
5466   ac_cpp_err=yes
5467 fi
5468 if test -z "$ac_cpp_err"; then
5469   ac_header_preproc=yes
5470 else
5471   echo "$as_me: failed program was:" >&5
5472 sed 's/^/| /' conftest.$ac_ext >&5
5473
5474   ac_header_preproc=no
5475 fi
5476 rm -f conftest.err conftest.$ac_ext
5477 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5478 echo "${ECHO_T}$ac_header_preproc" >&6
5479
5480 # So?  What about this header?
5481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5482   yes:no: )
5483     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5484 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5485     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5486 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5487     ac_header_preproc=yes
5488     ;;
5489   no:yes:* )
5490     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5491 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5492     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5493 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5494     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5495 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5496     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5497 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5498     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5499 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5500     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5501 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5502     (
5503       cat <<\_ASBOX
5504 ## ------------------------------------------ ##
5505 ## Report this to the AC_PACKAGE_NAME lists.  ##
5506 ## ------------------------------------------ ##
5507 _ASBOX
5508     ) |
5509       sed "s/^/$as_me: WARNING:     /" >&2
5510     ;;
5511 esac
5512 echo "$as_me:$LINENO: checking for $ac_header" >&5
5513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5515   echo $ECHO_N "(cached) $ECHO_C" >&6
5516 else
5517   eval "$as_ac_Header=\$ac_header_preproc"
5518 fi
5519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5521
5522 fi
5523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5524   cat >>confdefs.h <<_ACEOF
5525 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5526 _ACEOF
5527
5528 fi
5529
5530 done
5531
5532
5533
5534
5535 for ac_header in sys/statfs.h sys/param.h sys/mount.h
5536 do
5537 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5539   echo "$as_me:$LINENO: checking for $ac_header" >&5
5540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5542   echo $ECHO_N "(cached) $ECHO_C" >&6
5543 fi
5544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5546 else
5547   # Is the header compilable?
5548 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5549 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5550 cat >conftest.$ac_ext <<_ACEOF
5551 /* confdefs.h.  */
5552 _ACEOF
5553 cat confdefs.h >>conftest.$ac_ext
5554 cat >>conftest.$ac_ext <<_ACEOF
5555 /* end confdefs.h.  */
5556 $ac_includes_default
5557 #include <$ac_header>
5558 _ACEOF
5559 rm -f conftest.$ac_objext
5560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5561   (eval $ac_compile) 2>conftest.er1
5562   ac_status=$?
5563   grep -v '^ *+' conftest.er1 >conftest.err
5564   rm -f conftest.er1
5565   cat conftest.err >&5
5566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567   (exit $ac_status); } &&
5568          { ac_try='test -z "$ac_c_werror_flag"
5569                          || test ! -s conftest.err'
5570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5571   (eval $ac_try) 2>&5
5572   ac_status=$?
5573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574   (exit $ac_status); }; } &&
5575          { ac_try='test -s conftest.$ac_objext'
5576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5577   (eval $ac_try) 2>&5
5578   ac_status=$?
5579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580   (exit $ac_status); }; }; then
5581   ac_header_compiler=yes
5582 else
5583   echo "$as_me: failed program was:" >&5
5584 sed 's/^/| /' conftest.$ac_ext >&5
5585
5586 ac_header_compiler=no
5587 fi
5588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5589 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5590 echo "${ECHO_T}$ac_header_compiler" >&6
5591
5592 # Is the header present?
5593 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5594 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5595 cat >conftest.$ac_ext <<_ACEOF
5596 /* confdefs.h.  */
5597 _ACEOF
5598 cat confdefs.h >>conftest.$ac_ext
5599 cat >>conftest.$ac_ext <<_ACEOF
5600 /* end confdefs.h.  */
5601 #include <$ac_header>
5602 _ACEOF
5603 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5604   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5605   ac_status=$?
5606   grep -v '^ *+' conftest.er1 >conftest.err
5607   rm -f conftest.er1
5608   cat conftest.err >&5
5609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610   (exit $ac_status); } >/dev/null; then
5611   if test -s conftest.err; then
5612     ac_cpp_err=$ac_c_preproc_warn_flag
5613     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5614   else
5615     ac_cpp_err=
5616   fi
5617 else
5618   ac_cpp_err=yes
5619 fi
5620 if test -z "$ac_cpp_err"; then
5621   ac_header_preproc=yes
5622 else
5623   echo "$as_me: failed program was:" >&5
5624 sed 's/^/| /' conftest.$ac_ext >&5
5625
5626   ac_header_preproc=no
5627 fi
5628 rm -f conftest.err conftest.$ac_ext
5629 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5630 echo "${ECHO_T}$ac_header_preproc" >&6
5631
5632 # So?  What about this header?
5633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5634   yes:no: )
5635     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5636 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5637     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5638 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5639     ac_header_preproc=yes
5640     ;;
5641   no:yes:* )
5642     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5643 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5644     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5645 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5646     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5647 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5648     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5649 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5650     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5652     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5653 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5654     (
5655       cat <<\_ASBOX
5656 ## ------------------------------------------ ##
5657 ## Report this to the AC_PACKAGE_NAME lists.  ##
5658 ## ------------------------------------------ ##
5659 _ASBOX
5660     ) |
5661       sed "s/^/$as_me: WARNING:     /" >&2
5662     ;;
5663 esac
5664 echo "$as_me:$LINENO: checking for $ac_header" >&5
5665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5666 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5667   echo $ECHO_N "(cached) $ECHO_C" >&6
5668 else
5669   eval "$as_ac_Header=\$ac_header_preproc"
5670 fi
5671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5672 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5673
5674 fi
5675 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5676   cat >>confdefs.h <<_ACEOF
5677 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5678 _ACEOF
5679
5680 fi
5681
5682 done
5683
5684
5685
5686 # Extract the first word of "help2man", so it can be a program name with args.
5687 set dummy help2man; ac_word=$2
5688 echo "$as_me:$LINENO: checking for $ac_word" >&5
5689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5690 if test "${ac_cv_path_HELP2MAN+set}" = set; then
5691   echo $ECHO_N "(cached) $ECHO_C" >&6
5692 else
5693   case $HELP2MAN in
5694   [\\/]* | ?:[\\/]*)
5695   ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path.
5696   ;;
5697   *)
5698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699 for as_dir in $PATH
5700 do
5701   IFS=$as_save_IFS
5702   test -z "$as_dir" && as_dir=.
5703   for ac_exec_ext in '' $ac_executable_extensions; do
5704   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5705     ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext"
5706     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5707     break 2
5708   fi
5709 done
5710 done
5711
5712   ;;
5713 esac
5714 fi
5715 HELP2MAN=$ac_cv_path_HELP2MAN
5716
5717 if test -n "$HELP2MAN"; then
5718   echo "$as_me:$LINENO: result: $HELP2MAN" >&5
5719 echo "${ECHO_T}$HELP2MAN" >&6
5720 else
5721   echo "$as_me:$LINENO: result: no" >&5
5722 echo "${ECHO_T}no" >&6
5723 fi
5724
5725
5726
5727 if test x$HELP2MAN != x; then
5728   HAVE_HELP2MAN_TRUE=
5729   HAVE_HELP2MAN_FALSE='#'
5730 else
5731   HAVE_HELP2MAN_TRUE='#'
5732   HAVE_HELP2MAN_FALSE=
5733 fi
5734
5735
5736
5737 if test x$WANT_SYSINFO = xyes; then
5738   dah=no
5739   echo "$as_me:$LINENO: checking for sysinfo" >&5
5740 echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6
5741   cat >conftest.$ac_ext <<_ACEOF
5742 /* confdefs.h.  */
5743 _ACEOF
5744 cat confdefs.h >>conftest.$ac_ext
5745 cat >>conftest.$ac_ext <<_ACEOF
5746 /* end confdefs.h.  */
5747 #include <sys/types.h>
5748      #include <sys/sysinfo.h>
5749 int
5750 main ()
5751 {
5752 struct sysinfo s; sysinfo(&s); (void) s.uptime;
5753   ;
5754   return 0;
5755 }
5756 _ACEOF
5757 rm -f conftest.$ac_objext
5758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5759   (eval $ac_compile) 2>conftest.er1
5760   ac_status=$?
5761   grep -v '^ *+' conftest.er1 >conftest.err
5762   rm -f conftest.er1
5763   cat conftest.err >&5
5764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765   (exit $ac_status); } &&
5766          { ac_try='test -z "$ac_c_werror_flag"
5767                          || test ! -s conftest.err'
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); }; } &&
5773          { ac_try='test -s conftest.$ac_objext'
5774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775   (eval $ac_try) 2>&5
5776   ac_status=$?
5777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778   (exit $ac_status); }; }; then
5779   echo "$as_me:$LINENO: result: yes" >&5
5780 echo "${ECHO_T}yes" >&6; dah=yes
5781 else
5782   echo "$as_me: failed program was:" >&5
5783 sed 's/^/| /' conftest.$ac_ext >&5
5784
5785 echo "$as_me:$LINENO: result: not usable" >&5
5786 echo "${ECHO_T}not usable" >&6; dah=no
5787 fi
5788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5789
5790   if test x$dah = xyes; then
5791
5792 cat >>confdefs.h <<\_ACEOF
5793 #define HAVE_SYSINFO 1
5794 _ACEOF
5795
5796   fi
5797 fi
5798
5799
5800 if test x$WANT_KSTAT = xyes; then
5801   dah=no
5802   echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
5803 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
5804 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
5805   echo $ECHO_N "(cached) $ECHO_C" >&6
5806 else
5807   ac_check_lib_save_LIBS=$LIBS
5808 LIBS="-lkstat  $LIBS"
5809 cat >conftest.$ac_ext <<_ACEOF
5810 /* confdefs.h.  */
5811 _ACEOF
5812 cat confdefs.h >>conftest.$ac_ext
5813 cat >>conftest.$ac_ext <<_ACEOF
5814 /* end confdefs.h.  */
5815
5816 /* Override any gcc2 internal prototype to avoid an error.  */
5817 #ifdef __cplusplus
5818 extern "C"
5819 #endif
5820 /* We use char because int might match the return type of a gcc2
5821    builtin and then its argument prototype would still apply.  */
5822 char kstat_open ();
5823 int
5824 main ()
5825 {
5826 kstat_open ();
5827   ;
5828   return 0;
5829 }
5830 _ACEOF
5831 rm -f conftest.$ac_objext conftest$ac_exeext
5832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5833   (eval $ac_link) 2>conftest.er1
5834   ac_status=$?
5835   grep -v '^ *+' conftest.er1 >conftest.err
5836   rm -f conftest.er1
5837   cat conftest.err >&5
5838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839   (exit $ac_status); } &&
5840          { ac_try='test -z "$ac_c_werror_flag"
5841                          || test ! -s conftest.err'
5842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5843   (eval $ac_try) 2>&5
5844   ac_status=$?
5845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846   (exit $ac_status); }; } &&
5847          { ac_try='test -s conftest$ac_exeext'
5848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5849   (eval $ac_try) 2>&5
5850   ac_status=$?
5851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852   (exit $ac_status); }; }; then
5853   ac_cv_lib_kstat_kstat_open=yes
5854 else
5855   echo "$as_me: failed program was:" >&5
5856 sed 's/^/| /' conftest.$ac_ext >&5
5857
5858 ac_cv_lib_kstat_kstat_open=no
5859 fi
5860 rm -f conftest.err conftest.$ac_objext \
5861       conftest$ac_exeext conftest.$ac_ext
5862 LIBS=$ac_check_lib_save_LIBS
5863 fi
5864 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
5865 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
5866 if test $ac_cv_lib_kstat_kstat_open = yes; then
5867   dah=yes
5868 fi
5869
5870
5871   if test x$dah = xyes; then
5872
5873 cat >>confdefs.h <<\_ACEOF
5874 #define HAVE_KSTAT 1
5875 _ACEOF
5876
5877     LDFLAGS="$LDFLAGS -lkstat"
5878   fi
5879 fi
5880
5881
5882
5883
5884 echo "$as_me:$LINENO: checking for getloadavg" >&5
5885 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
5886 cat >conftest.$ac_ext <<_ACEOF
5887 /* confdefs.h.  */
5888 _ACEOF
5889 cat confdefs.h >>conftest.$ac_ext
5890 cat >>conftest.$ac_ext <<_ACEOF
5891 /* end confdefs.h.  */
5892 #include <stdlib.h>
5893 int
5894 main ()
5895 {
5896 double v[3]; getloadavg(v, 3);
5897   ;
5898   return 0;
5899 }
5900 _ACEOF
5901 rm -f conftest.$ac_objext
5902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5903   (eval $ac_compile) 2>conftest.er1
5904   ac_status=$?
5905   grep -v '^ *+' conftest.er1 >conftest.err
5906   rm -f conftest.er1
5907   cat conftest.err >&5
5908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909   (exit $ac_status); } &&
5910          { ac_try='test -z "$ac_c_werror_flag"
5911                          || test ! -s conftest.err'
5912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5913   (eval $ac_try) 2>&5
5914   ac_status=$?
5915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916   (exit $ac_status); }; } &&
5917          { ac_try='test -s conftest.$ac_objext'
5918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919   (eval $ac_try) 2>&5
5920   ac_status=$?
5921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922   (exit $ac_status); }; }; then
5923   echo "$as_me:$LINENO: result: yes" >&5
5924 echo "${ECHO_T}yes" >&6
5925
5926 cat >>confdefs.h <<\_ACEOF
5927 #define HAVE_GETLOADAVG 1
5928 _ACEOF
5929
5930 else
5931   echo "$as_me: failed program was:" >&5
5932 sed 's/^/| /' conftest.$ac_ext >&5
5933
5934 echo "$as_me:$LINENO: result: no" >&5
5935 echo "${ECHO_T}no" >&6
5936 fi
5937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5938
5939
5940
5941 for ac_func in popen
5942 do
5943 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5944 echo "$as_me:$LINENO: checking for $ac_func" >&5
5945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5946 if eval "test \"\${$as_ac_var+set}\" = set"; then
5947   echo $ECHO_N "(cached) $ECHO_C" >&6
5948 else
5949   cat >conftest.$ac_ext <<_ACEOF
5950 /* confdefs.h.  */
5951 _ACEOF
5952 cat confdefs.h >>conftest.$ac_ext
5953 cat >>conftest.$ac_ext <<_ACEOF
5954 /* end confdefs.h.  */
5955 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5956    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5957 #define $ac_func innocuous_$ac_func
5958
5959 /* System header to define __stub macros and hopefully few prototypes,
5960     which can conflict with char $ac_func (); below.
5961     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5962     <limits.h> exists even on freestanding compilers.  */
5963
5964 #ifdef __STDC__
5965 # include <limits.h>
5966 #else
5967 # include <assert.h>
5968 #endif
5969
5970 #undef $ac_func
5971
5972 /* Override any gcc2 internal prototype to avoid an error.  */
5973 #ifdef __cplusplus
5974 extern "C"
5975 {
5976 #endif
5977 /* We use char because int might match the return type of a gcc2
5978    builtin and then its argument prototype would still apply.  */
5979 char $ac_func ();
5980 /* The GNU C library defines this for functions which it implements
5981     to always fail with ENOSYS.  Some functions are actually named
5982     something starting with __ and the normal name is an alias.  */
5983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5984 choke me
5985 #else
5986 char (*f) () = $ac_func;
5987 #endif
5988 #ifdef __cplusplus
5989 }
5990 #endif
5991
5992 int
5993 main ()
5994 {
5995 return f != $ac_func;
5996   ;
5997   return 0;
5998 }
5999 _ACEOF
6000 rm -f conftest.$ac_objext conftest$ac_exeext
6001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6002   (eval $ac_link) 2>conftest.er1
6003   ac_status=$?
6004   grep -v '^ *+' conftest.er1 >conftest.err
6005   rm -f conftest.er1
6006   cat conftest.err >&5
6007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008   (exit $ac_status); } &&
6009          { ac_try='test -z "$ac_c_werror_flag"
6010                          || test ! -s conftest.err'
6011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012   (eval $ac_try) 2>&5
6013   ac_status=$?
6014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015   (exit $ac_status); }; } &&
6016          { ac_try='test -s conftest$ac_exeext'
6017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018   (eval $ac_try) 2>&5
6019   ac_status=$?
6020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021   (exit $ac_status); }; }; then
6022   eval "$as_ac_var=yes"
6023 else
6024   echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.$ac_ext >&5
6026
6027 eval "$as_ac_var=no"
6028 fi
6029 rm -f conftest.err conftest.$ac_objext \
6030       conftest$ac_exeext conftest.$ac_ext
6031 fi
6032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6033 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6034 if test `eval echo '${'$as_ac_var'}'` = yes; then
6035   cat >>confdefs.h <<_ACEOF
6036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6037 _ACEOF
6038
6039 fi
6040 done
6041
6042
6043
6044 CFLAGS="$CFLAGS -Wall -W"
6045
6046
6047
6048
6049
6050           ac_config_files="$ac_config_files Makefile"
6051 cat >confcache <<\_ACEOF
6052 # This file is a shell script that caches the results of configure
6053 # tests run on this system so they can be shared between configure
6054 # scripts and configure runs, see configure's option --config-cache.
6055 # It is not useful on other systems.  If it contains results you don't
6056 # want to keep, you may remove or edit it.
6057 #
6058 # config.status only pays attention to the cache file if you give it
6059 # the --recheck option to rerun configure.
6060 #
6061 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6062 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6063 # following values.
6064
6065 _ACEOF
6066
6067 # The following way of writing the cache mishandles newlines in values,
6068 # but we know of no workaround that is simple, portable, and efficient.
6069 # So, don't put newlines in cache variables' values.
6070 # Ultrix sh set writes to stderr and can't be redirected directly,
6071 # and sets the high bit in the cache file unless we assign to the vars.
6072 {
6073   (set) 2>&1 |
6074     case `(ac_space=' '; set | grep ac_space) 2>&1` in
6075     *ac_space=\ *)
6076       # `set' does not quote correctly, so add quotes (double-quote
6077       # substitution turns \\\\ into \\, and sed turns \\ into \).
6078       sed -n \
6079         "s/'/'\\\\''/g;
6080           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6081       ;;
6082     *)
6083       # `set' quotes correctly as required by POSIX, so do not add quotes.
6084       sed -n \
6085         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6086       ;;
6087     esac;
6088 } |
6089   sed '
6090      t clear
6091      : clear
6092      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6093      t end
6094      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6095      : end' >>confcache
6096 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6097   if test -w $cache_file; then
6098     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6099     cat confcache >$cache_file
6100   else
6101     echo "not updating unwritable cache $cache_file"
6102   fi
6103 fi
6104 rm -f confcache
6105
6106 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6107 # Let make expand exec_prefix.
6108 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6109
6110 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6111 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6112 # trailing colons and then remove the whole line if VPATH becomes empty
6113 # (actually we leave an empty line to preserve line numbers).
6114 if test "x$srcdir" = x.; then
6115   ac_vpsub='/^[  ]*VPATH[        ]*=/{
6116 s/:*\$(srcdir):*/:/;
6117 s/:*\${srcdir}:*/:/;
6118 s/:*@srcdir@:*/:/;
6119 s/^\([^=]*=[     ]*\):*/\1/;
6120 s/:*$//;
6121 s/^[^=]*=[       ]*$//;
6122 }'
6123 fi
6124
6125 DEFS=-DHAVE_CONFIG_H
6126
6127 ac_libobjs=
6128 ac_ltlibobjs=
6129 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6130   # 1. Remove the extension, and $U if already installed.
6131   ac_i=`echo "$ac_i" |
6132          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6133   # 2. Add them.
6134   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6135   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6136 done
6137 LIBOBJS=$ac_libobjs
6138
6139 LTLIBOBJS=$ac_ltlibobjs
6140
6141
6142 if test -z "${BUILD_LINUX_TRUE}" && test -z "${BUILD_LINUX_FALSE}"; then
6143   { { echo "$as_me:$LINENO: error: conditional \"BUILD_LINUX\" was never defined.
6144 Usually this means the macro was only invoked conditionally." >&5
6145 echo "$as_me: error: conditional \"BUILD_LINUX\" was never defined.
6146 Usually this means the macro was only invoked conditionally." >&2;}
6147    { (exit 1); exit 1; }; }
6148 fi
6149 if test -z "${BUILD_SOLARIS_TRUE}" && test -z "${BUILD_SOLARIS_FALSE}"; then
6150   { { echo "$as_me:$LINENO: error: conditional \"BUILD_SOLARIS\" was never defined.
6151 Usually this means the macro was only invoked conditionally." >&5
6152 echo "$as_me: error: conditional \"BUILD_SOLARIS\" was never defined.
6153 Usually this means the macro was only invoked conditionally." >&2;}
6154    { (exit 1); exit 1; }; }
6155 fi
6156 if test -z "${BUILD_FREEBSD_TRUE}" && test -z "${BUILD_FREEBSD_FALSE}"; then
6157   { { echo "$as_me:$LINENO: error: conditional \"BUILD_FREEBSD\" was never defined.
6158 Usually this means the macro was only invoked conditionally." >&5
6159 echo "$as_me: error: conditional \"BUILD_FREEBSD\" was never defined.
6160 Usually this means the macro was only invoked conditionally." >&2;}
6161    { (exit 1); exit 1; }; }
6162 fi
6163 if test -z "${BUILD_NETBSD_TRUE}" && test -z "${BUILD_NETBSD_FALSE}"; then
6164   { { echo "$as_me:$LINENO: error: conditional \"BUILD_NETBSD\" was never defined.
6165 Usually this means the macro was only invoked conditionally." >&5
6166 echo "$as_me: error: conditional \"BUILD_NETBSD\" was never defined.
6167 Usually this means the macro was only invoked conditionally." >&2;}
6168    { (exit 1); exit 1; }; }
6169 fi
6170 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6171   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6172 Usually this means the macro was only invoked conditionally." >&5
6173 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6174 Usually this means the macro was only invoked conditionally." >&2;}
6175    { (exit 1); exit 1; }; }
6176 fi
6177 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6178   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6179 Usually this means the macro was only invoked conditionally." >&5
6180 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6181 Usually this means the macro was only invoked conditionally." >&2;}
6182    { (exit 1); exit 1; }; }
6183 fi
6184 if test -z "${BUILD_SETI_TRUE}" && test -z "${BUILD_SETI_FALSE}"; then
6185   { { echo "$as_me:$LINENO: error: conditional \"BUILD_SETI\" was never defined.
6186 Usually this means the macro was only invoked conditionally." >&5
6187 echo "$as_me: error: conditional \"BUILD_SETI\" was never defined.
6188 Usually this means the macro was only invoked conditionally." >&2;}
6189    { (exit 1); exit 1; }; }
6190 fi
6191 if test -z "${BUILD_MPD_TRUE}" && test -z "${BUILD_MPD_FALSE}"; then
6192   { { echo "$as_me:$LINENO: error: conditional \"BUILD_MPD\" was never defined.
6193 Usually this means the macro was only invoked conditionally." >&5
6194 echo "$as_me: error: conditional \"BUILD_MPD\" was never defined.
6195 Usually this means the macro was only invoked conditionally." >&2;}
6196    { (exit 1); exit 1; }; }
6197 fi
6198 if test -z "${BUILD_CAIRO_TRUE}" && test -z "${BUILD_CAIRO_FALSE}"; then
6199   { { echo "$as_me:$LINENO: error: conditional \"BUILD_CAIRO\" was never defined.
6200 Usually this means the macro was only invoked conditionally." >&5
6201 echo "$as_me: error: conditional \"BUILD_CAIRO\" was never defined.
6202 Usually this means the macro was only invoked conditionally." >&2;}
6203    { (exit 1); exit 1; }; }
6204 fi
6205 if test -z "${BUILD_METAR_TRUE}" && test -z "${BUILD_METAR_FALSE}"; then
6206   { { echo "$as_me:$LINENO: error: conditional \"BUILD_METAR\" was never defined.
6207 Usually this means the macro was only invoked conditionally." >&5
6208 echo "$as_me: error: conditional \"BUILD_METAR\" was never defined.
6209 Usually this means the macro was only invoked conditionally." >&2;}
6210    { (exit 1); exit 1; }; }
6211 fi
6212 if test -z "${BUILD_MLDONKEY_TRUE}" && test -z "${BUILD_MLDONKEY_FALSE}"; then
6213   { { echo "$as_me:$LINENO: error: conditional \"BUILD_MLDONKEY\" was never defined.
6214 Usually this means the macro was only invoked conditionally." >&5
6215 echo "$as_me: error: conditional \"BUILD_MLDONKEY\" was never defined.
6216 Usually this means the macro was only invoked conditionally." >&2;}
6217    { (exit 1); exit 1; }; }
6218 fi
6219 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6220   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6221 Usually this means the macro was only invoked conditionally." >&5
6222 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6223 Usually this means the macro was only invoked conditionally." >&2;}
6224    { (exit 1); exit 1; }; }
6225 fi
6226 if test -z "${BUILD_X11_TRUE}" && test -z "${BUILD_X11_FALSE}"; then
6227   { { echo "$as_me:$LINENO: error: conditional \"BUILD_X11\" was never defined.
6228 Usually this means the macro was only invoked conditionally." >&5
6229 echo "$as_me: error: conditional \"BUILD_X11\" was never defined.
6230 Usually this means the macro was only invoked conditionally." >&2;}
6231    { (exit 1); exit 1; }; }
6232 fi
6233 if test -z "${HAVE_HELP2MAN_TRUE}" && test -z "${HAVE_HELP2MAN_FALSE}"; then
6234   { { echo "$as_me:$LINENO: error: conditional \"HAVE_HELP2MAN\" was never defined.
6235 Usually this means the macro was only invoked conditionally." >&5
6236 echo "$as_me: error: conditional \"HAVE_HELP2MAN\" was never defined.
6237 Usually this means the macro was only invoked conditionally." >&2;}
6238    { (exit 1); exit 1; }; }
6239 fi
6240
6241 : ${CONFIG_STATUS=./config.status}
6242 ac_clean_files_save=$ac_clean_files
6243 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6244 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6245 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6246 cat >$CONFIG_STATUS <<_ACEOF
6247 #! $SHELL
6248 # Generated by $as_me.
6249 # Run this file to recreate the current configuration.
6250 # Compiler output produced by configure, useful for debugging
6251 # configure, is in config.log if it exists.
6252
6253 debug=false
6254 ac_cs_recheck=false
6255 ac_cs_silent=false
6256 SHELL=\${CONFIG_SHELL-$SHELL}
6257 _ACEOF
6258
6259 cat >>$CONFIG_STATUS <<\_ACEOF
6260 ## --------------------- ##
6261 ## M4sh Initialization.  ##
6262 ## --------------------- ##
6263
6264 # Be Bourne compatible
6265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6266   emulate sh
6267   NULLCMD=:
6268   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6269   # is contrary to our usage.  Disable this feature.
6270   alias -g '${1+"$@"}'='"$@"'
6271 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6272   set -o posix
6273 fi
6274 DUALCASE=1; export DUALCASE # for MKS sh
6275
6276 # Support unset when possible.
6277 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6278   as_unset=unset
6279 else
6280   as_unset=false
6281 fi
6282
6283
6284 # Work around bugs in pre-3.0 UWIN ksh.
6285 $as_unset ENV MAIL MAILPATH
6286 PS1='$ '
6287 PS2='> '
6288 PS4='+ '
6289
6290 # NLS nuisances.
6291 for as_var in \
6292   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6293   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6294   LC_TELEPHONE LC_TIME
6295 do
6296   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6297     eval $as_var=C; export $as_var
6298   else
6299     $as_unset $as_var
6300   fi
6301 done
6302
6303 # Required to use basename.
6304 if expr a : '\(a\)' >/dev/null 2>&1; then
6305   as_expr=expr
6306 else
6307   as_expr=false
6308 fi
6309
6310 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6311   as_basename=basename
6312 else
6313   as_basename=false
6314 fi
6315
6316
6317 # Name of the executable.
6318 as_me=`$as_basename "$0" ||
6319 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6320          X"$0" : 'X\(//\)$' \| \
6321          X"$0" : 'X\(/\)$' \| \
6322          .     : '\(.\)' 2>/dev/null ||
6323 echo X/"$0" |
6324     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6325           /^X\/\(\/\/\)$/{ s//\1/; q; }
6326           /^X\/\(\/\).*/{ s//\1/; q; }
6327           s/.*/./; q'`
6328
6329
6330 # PATH needs CR, and LINENO needs CR and PATH.
6331 # Avoid depending upon Character Ranges.
6332 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6333 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6334 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6335 as_cr_digits='0123456789'
6336 as_cr_alnum=$as_cr_Letters$as_cr_digits
6337
6338 # The user is always right.
6339 if test "${PATH_SEPARATOR+set}" != set; then
6340   echo "#! /bin/sh" >conf$$.sh
6341   echo  "exit 0"   >>conf$$.sh
6342   chmod +x conf$$.sh
6343   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6344     PATH_SEPARATOR=';'
6345   else
6346     PATH_SEPARATOR=:
6347   fi
6348   rm -f conf$$.sh
6349 fi
6350
6351
6352   as_lineno_1=$LINENO
6353   as_lineno_2=$LINENO
6354   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6355   test "x$as_lineno_1" != "x$as_lineno_2" &&
6356   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
6357   # Find who we are.  Look in the path if we contain no path at all
6358   # relative or not.
6359   case $0 in
6360     *[\\/]* ) as_myself=$0 ;;
6361     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362 for as_dir in $PATH
6363 do
6364   IFS=$as_save_IFS
6365   test -z "$as_dir" && as_dir=.
6366   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6367 done
6368
6369        ;;
6370   esac
6371   # We did not find ourselves, most probably we were run as `sh COMMAND'
6372   # in which case we are not to be found in the path.
6373   if test "x$as_myself" = x; then
6374     as_myself=$0
6375   fi
6376   if test ! -f "$as_myself"; then
6377     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6378 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6379    { (exit 1); exit 1; }; }
6380   fi
6381   case $CONFIG_SHELL in
6382   '')
6383     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6385 do
6386   IFS=$as_save_IFS
6387   test -z "$as_dir" && as_dir=.
6388   for as_base in sh bash ksh sh5; do
6389          case $as_dir in
6390          /*)
6391            if ("$as_dir/$as_base" -c '
6392   as_lineno_1=$LINENO
6393   as_lineno_2=$LINENO
6394   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6395   test "x$as_lineno_1" != "x$as_lineno_2" &&
6396   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
6397              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6398              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6399              CONFIG_SHELL=$as_dir/$as_base
6400              export CONFIG_SHELL
6401              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6402            fi;;
6403          esac
6404        done
6405 done
6406 ;;
6407   esac
6408
6409   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6410   # uniformly replaced by the line number.  The first 'sed' inserts a
6411   # line-number line before each line; the second 'sed' does the real
6412   # work.  The second script uses 'N' to pair each line-number line
6413   # with the numbered line, and appends trailing '-' during
6414   # substitution so that $LINENO is not a special case at line end.
6415   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6416   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
6417   sed '=' <$as_myself |
6418     sed '
6419       N
6420       s,$,-,
6421       : loop
6422       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6423       t loop
6424       s,-$,,
6425       s,^['$as_cr_digits']*\n,,
6426     ' >$as_me.lineno &&
6427   chmod +x $as_me.lineno ||
6428     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6429 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6430    { (exit 1); exit 1; }; }
6431
6432   # Don't try to exec as it changes $[0], causing all sort of problems
6433   # (the dirname of $[0] is not the place where we might find the
6434   # original and so on.  Autoconf is especially sensible to this).
6435   . ./$as_me.lineno
6436   # Exit status is that of the last command.
6437   exit
6438 }
6439
6440
6441 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6442   *c*,-n*) ECHO_N= ECHO_C='
6443 ' ECHO_T='      ' ;;
6444   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6445   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
6446 esac
6447
6448 if expr a : '\(a\)' >/dev/null 2>&1; then
6449   as_expr=expr
6450 else
6451   as_expr=false
6452 fi
6453
6454 rm -f conf$$ conf$$.exe conf$$.file
6455 echo >conf$$.file
6456 if ln -s conf$$.file conf$$ 2>/dev/null; then
6457   # We could just check for DJGPP; but this test a) works b) is more generic
6458   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6459   if test -f conf$$.exe; then
6460     # Don't use ln at all; we don't have any links
6461     as_ln_s='cp -p'
6462   else
6463     as_ln_s='ln -s'
6464   fi
6465 elif ln conf$$.file conf$$ 2>/dev/null; then
6466   as_ln_s=ln
6467 else
6468   as_ln_s='cp -p'
6469 fi
6470 rm -f conf$$ conf$$.exe conf$$.file
6471
6472 if mkdir -p . 2>/dev/null; then
6473   as_mkdir_p=:
6474 else
6475   test -d ./-p && rmdir ./-p
6476   as_mkdir_p=false
6477 fi
6478
6479 as_executable_p="test -f"
6480
6481 # Sed expression to map a string onto a valid CPP name.
6482 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6483
6484 # Sed expression to map a string onto a valid variable name.
6485 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6486
6487
6488 # IFS
6489 # We need space, tab and new line, in precisely that order.
6490 as_nl='
6491 '
6492 IFS="   $as_nl"
6493
6494 # CDPATH.
6495 $as_unset CDPATH
6496
6497 exec 6>&1
6498
6499 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6500 # report actual input values of CONFIG_FILES etc. instead of their
6501 # values after options handling.  Logging --version etc. is OK.
6502 exec 5>>config.log
6503 {
6504   echo
6505   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6506 ## Running $as_me. ##
6507 _ASBOX
6508 } >&5
6509 cat >&5 <<_CSEOF
6510
6511 This file was extended by $as_me, which was
6512 generated by GNU Autoconf 2.59.  Invocation command line was
6513
6514   CONFIG_FILES    = $CONFIG_FILES
6515   CONFIG_HEADERS  = $CONFIG_HEADERS
6516   CONFIG_LINKS    = $CONFIG_LINKS
6517   CONFIG_COMMANDS = $CONFIG_COMMANDS
6518   $ $0 $@
6519
6520 _CSEOF
6521 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6522 echo >&5
6523 _ACEOF
6524
6525 # Files that config.status was made for.
6526 if test -n "$ac_config_files"; then
6527   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6528 fi
6529
6530 if test -n "$ac_config_headers"; then
6531   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6532 fi
6533
6534 if test -n "$ac_config_links"; then
6535   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6536 fi
6537
6538 if test -n "$ac_config_commands"; then
6539   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6540 fi
6541
6542 cat >>$CONFIG_STATUS <<\_ACEOF
6543
6544 ac_cs_usage="\
6545 \`$as_me' instantiates files from templates according to the
6546 current configuration.
6547
6548 Usage: $0 [OPTIONS] [FILE]...
6549
6550   -h, --help       print this help, then exit
6551   -V, --version    print version number, then exit
6552   -q, --quiet      do not print progress messages
6553   -d, --debug      don't remove temporary files
6554       --recheck    update $as_me by reconfiguring in the same conditions
6555   --file=FILE[:TEMPLATE]
6556                    instantiate the configuration file FILE
6557   --header=FILE[:TEMPLATE]
6558                    instantiate the configuration header FILE
6559
6560 Configuration files:
6561 $config_files
6562
6563 Configuration headers:
6564 $config_headers
6565
6566 Configuration commands:
6567 $config_commands
6568
6569 Report bugs to <bug-autoconf@gnu.org>."
6570 _ACEOF
6571
6572 cat >>$CONFIG_STATUS <<_ACEOF
6573 ac_cs_version="\\
6574 config.status
6575 configured by $0, generated by GNU Autoconf 2.59,
6576   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6577
6578 Copyright (C) 2003 Free Software Foundation, Inc.
6579 This config.status script is free software; the Free Software Foundation
6580 gives unlimited permission to copy, distribute and modify it."
6581 srcdir=$srcdir
6582 INSTALL="$INSTALL"
6583 _ACEOF
6584
6585 cat >>$CONFIG_STATUS <<\_ACEOF
6586 # If no file are specified by the user, then we need to provide default
6587 # value.  By we need to know if files were specified by the user.
6588 ac_need_defaults=:
6589 while test $# != 0
6590 do
6591   case $1 in
6592   --*=*)
6593     ac_option=`expr "x$1" : 'x\([^=]*\)='`
6594     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6595     ac_shift=:
6596     ;;
6597   -*)
6598     ac_option=$1
6599     ac_optarg=$2
6600     ac_shift=shift
6601     ;;
6602   *) # This is not an option, so the user has probably given explicit
6603      # arguments.
6604      ac_option=$1
6605      ac_need_defaults=false;;
6606   esac
6607
6608   case $ac_option in
6609   # Handling of the options.
6610 _ACEOF
6611 cat >>$CONFIG_STATUS <<\_ACEOF
6612   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6613     ac_cs_recheck=: ;;
6614   --version | --vers* | -V )
6615     echo "$ac_cs_version"; exit 0 ;;
6616   --he | --h)
6617     # Conflict between --help and --header
6618     { { echo "$as_me:$LINENO: error: ambiguous option: $1
6619 Try \`$0 --help' for more information." >&5
6620 echo "$as_me: error: ambiguous option: $1
6621 Try \`$0 --help' for more information." >&2;}
6622    { (exit 1); exit 1; }; };;
6623   --help | --hel | -h )
6624     echo "$ac_cs_usage"; exit 0 ;;
6625   --debug | --d* | -d )
6626     debug=: ;;
6627   --file | --fil | --fi | --f )
6628     $ac_shift
6629     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6630     ac_need_defaults=false;;
6631   --header | --heade | --head | --hea )
6632     $ac_shift
6633     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6634     ac_need_defaults=false;;
6635   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6636   | -silent | --silent | --silen | --sile | --sil | --si | --s)
6637     ac_cs_silent=: ;;
6638
6639   # This is an error.
6640   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6641 Try \`$0 --help' for more information." >&5
6642 echo "$as_me: error: unrecognized option: $1
6643 Try \`$0 --help' for more information." >&2;}
6644    { (exit 1); exit 1; }; } ;;
6645
6646   *) ac_config_targets="$ac_config_targets $1" ;;
6647
6648   esac
6649   shift
6650 done
6651
6652 ac_configure_extra_args=
6653
6654 if $ac_cs_silent; then
6655   exec 6>/dev/null
6656   ac_configure_extra_args="$ac_configure_extra_args --silent"
6657 fi
6658
6659 _ACEOF
6660 cat >>$CONFIG_STATUS <<_ACEOF
6661 if \$ac_cs_recheck; then
6662   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6663   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6664 fi
6665
6666 _ACEOF
6667
6668 cat >>$CONFIG_STATUS <<_ACEOF
6669 #
6670 # INIT-COMMANDS section.
6671 #
6672
6673 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6674
6675 _ACEOF
6676
6677
6678
6679 cat >>$CONFIG_STATUS <<\_ACEOF
6680 for ac_config_target in $ac_config_targets
6681 do
6682   case "$ac_config_target" in
6683   # Handling of arguments.
6684   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6685   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6686   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6687   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6688 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6689    { (exit 1); exit 1; }; };;
6690   esac
6691 done
6692
6693 # If the user did not use the arguments to specify the items to instantiate,
6694 # then the envvar interface is used.  Set only those that are not.
6695 # We use the long form for the default assignment because of an extremely
6696 # bizarre bug on SunOS 4.1.3.
6697 if $ac_need_defaults; then
6698   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6699   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6700   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6701 fi
6702
6703 # Have a temporary directory for convenience.  Make it in the build tree
6704 # simply because there is no reason to put it here, and in addition,
6705 # creating and moving files from /tmp can sometimes cause problems.
6706 # Create a temporary directory, and hook for its removal unless debugging.
6707 $debug ||
6708 {
6709   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6710   trap '{ (exit 1); exit 1; }' 1 2 13 15
6711 }
6712
6713 # Create a (secure) tmp directory for tmp files.
6714
6715 {
6716   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6717   test -n "$tmp" && test -d "$tmp"
6718 }  ||
6719 {
6720   tmp=./confstat$$-$RANDOM
6721   (umask 077 && mkdir $tmp)
6722 } ||
6723 {
6724    echo "$me: cannot create a temporary directory in ." >&2
6725    { (exit 1); exit 1; }
6726 }
6727
6728 _ACEOF
6729
6730 cat >>$CONFIG_STATUS <<_ACEOF
6731
6732 #
6733 # CONFIG_FILES section.
6734 #
6735
6736 # No need to generate the scripts if there are no CONFIG_FILES.
6737 # This happens for instance when ./config.status config.h
6738 if test -n "\$CONFIG_FILES"; then
6739   # Protect against being on the right side of a sed subst in config.status.
6740   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6741    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6742 s,@SHELL@,$SHELL,;t t
6743 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6744 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6745 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6746 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6747 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6748 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6749 s,@exec_prefix@,$exec_prefix,;t t
6750 s,@prefix@,$prefix,;t t
6751 s,@program_transform_name@,$program_transform_name,;t t
6752 s,@bindir@,$bindir,;t t
6753 s,@sbindir@,$sbindir,;t t
6754 s,@libexecdir@,$libexecdir,;t t
6755 s,@datadir@,$datadir,;t t
6756 s,@sysconfdir@,$sysconfdir,;t t
6757 s,@sharedstatedir@,$sharedstatedir,;t t
6758 s,@localstatedir@,$localstatedir,;t t
6759 s,@libdir@,$libdir,;t t
6760 s,@includedir@,$includedir,;t t
6761 s,@oldincludedir@,$oldincludedir,;t t
6762 s,@infodir@,$infodir,;t t
6763 s,@mandir@,$mandir,;t t
6764 s,@build_alias@,$build_alias,;t t
6765 s,@host_alias@,$host_alias,;t t
6766 s,@target_alias@,$target_alias,;t t
6767 s,@DEFS@,$DEFS,;t t
6768 s,@ECHO_C@,$ECHO_C,;t t
6769 s,@ECHO_N@,$ECHO_N,;t t
6770 s,@ECHO_T@,$ECHO_T,;t t
6771 s,@LIBS@,$LIBS,;t t
6772 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6773 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6774 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6775 s,@CYGPATH_W@,$CYGPATH_W,;t t
6776 s,@PACKAGE@,$PACKAGE,;t t
6777 s,@VERSION@,$VERSION,;t t
6778 s,@ACLOCAL@,$ACLOCAL,;t t
6779 s,@AUTOCONF@,$AUTOCONF,;t t
6780 s,@AUTOMAKE@,$AUTOMAKE,;t t
6781 s,@AUTOHEADER@,$AUTOHEADER,;t t
6782 s,@MAKEINFO@,$MAKEINFO,;t t
6783 s,@install_sh@,$install_sh,;t t
6784 s,@STRIP@,$STRIP,;t t
6785 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6786 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
6787 s,@mkdir_p@,$mkdir_p,;t t
6788 s,@AWK@,$AWK,;t t
6789 s,@SET_MAKE@,$SET_MAKE,;t t
6790 s,@am__leading_dot@,$am__leading_dot,;t t
6791 s,@AMTAR@,$AMTAR,;t t
6792 s,@am__tar@,$am__tar,;t t
6793 s,@am__untar@,$am__untar,;t t
6794 s,@BUILD_LINUX_TRUE@,$BUILD_LINUX_TRUE,;t t
6795 s,@BUILD_LINUX_FALSE@,$BUILD_LINUX_FALSE,;t t
6796 s,@BUILD_SOLARIS_TRUE@,$BUILD_SOLARIS_TRUE,;t t
6797 s,@BUILD_SOLARIS_FALSE@,$BUILD_SOLARIS_FALSE,;t t
6798 s,@BUILD_FREEBSD_TRUE@,$BUILD_FREEBSD_TRUE,;t t
6799 s,@BUILD_FREEBSD_FALSE@,$BUILD_FREEBSD_FALSE,;t t
6800 s,@BUILD_NETBSD_TRUE@,$BUILD_NETBSD_TRUE,;t t
6801 s,@BUILD_NETBSD_FALSE@,$BUILD_NETBSD_FALSE,;t t
6802 s,@CC@,$CC,;t t
6803 s,@CFLAGS@,$CFLAGS,;t t
6804 s,@LDFLAGS@,$LDFLAGS,;t t
6805 s,@CPPFLAGS@,$CPPFLAGS,;t t
6806 s,@ac_ct_CC@,$ac_ct_CC,;t t
6807 s,@EXEEXT@,$EXEEXT,;t t
6808 s,@OBJEXT@,$OBJEXT,;t t
6809 s,@DEPDIR@,$DEPDIR,;t t
6810 s,@am__include@,$am__include,;t t
6811 s,@am__quote@,$am__quote,;t t
6812 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
6813 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
6814 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
6815 s,@CCDEPMODE@,$CCDEPMODE,;t t
6816 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
6817 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
6818 s,@CPP@,$CPP,;t t
6819 s,@EGREP@,$EGREP,;t t
6820 s,@BUILD_SETI_TRUE@,$BUILD_SETI_TRUE,;t t
6821 s,@BUILD_SETI_FALSE@,$BUILD_SETI_FALSE,;t t
6822 s,@BUILD_MPD_TRUE@,$BUILD_MPD_TRUE,;t t
6823 s,@BUILD_MPD_FALSE@,$BUILD_MPD_FALSE,;t t
6824 s,@BUILD_CAIRO_TRUE@,$BUILD_CAIRO_TRUE,;t t
6825 s,@BUILD_CAIRO_FALSE@,$BUILD_CAIRO_FALSE,;t t
6826 s,@CAIROCONFIG@,$CAIROCONFIG,;t t
6827 s,@BUILD_METAR_TRUE@,$BUILD_METAR_TRUE,;t t
6828 s,@BUILD_METAR_FALSE@,$BUILD_METAR_FALSE,;t t
6829 s,@BUILD_MLDONKEY_TRUE@,$BUILD_MLDONKEY_TRUE,;t t
6830 s,@BUILD_MLDONKEY_FALSE@,$BUILD_MLDONKEY_FALSE,;t t
6831 s,@BUILD_X11_TRUE@,$BUILD_X11_TRUE,;t t
6832 s,@BUILD_X11_FALSE@,$BUILD_X11_FALSE,;t t
6833 s,@XFTCONFIG@,$XFTCONFIG,;t t
6834 s,@HELP2MAN@,$HELP2MAN,;t t
6835 s,@HAVE_HELP2MAN_TRUE@,$HAVE_HELP2MAN_TRUE,;t t
6836 s,@HAVE_HELP2MAN_FALSE@,$HAVE_HELP2MAN_FALSE,;t t
6837 s,@X11_LIBS@,$X11_LIBS,;t t
6838 s,@XFT_LIBS@,$XFT_LIBS,;t t
6839 s,@LIBOBJS@,$LIBOBJS,;t t
6840 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6841 CEOF
6842
6843 _ACEOF
6844
6845   cat >>$CONFIG_STATUS <<\_ACEOF
6846   # Split the substitutions into bite-sized pieces for seds with
6847   # small command number limits, like on Digital OSF/1 and HP-UX.
6848   ac_max_sed_lines=48
6849   ac_sed_frag=1 # Number of current file.
6850   ac_beg=1 # First line for current file.
6851   ac_end=$ac_max_sed_lines # Line after last line for current file.
6852   ac_more_lines=:
6853   ac_sed_cmds=
6854   while $ac_more_lines; do
6855     if test $ac_beg -gt 1; then
6856       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6857     else
6858       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6859     fi
6860     if test ! -s $tmp/subs.frag; then
6861       ac_more_lines=false
6862     else
6863       # The purpose of the label and of the branching condition is to
6864       # speed up the sed processing (if there are no `@' at all, there
6865       # is no need to browse any of the substitutions).
6866       # These are the two extra sed commands mentioned above.
6867       (echo ':t
6868   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6869       if test -z "$ac_sed_cmds"; then
6870         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6871       else
6872         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6873       fi
6874       ac_sed_frag=`expr $ac_sed_frag + 1`
6875       ac_beg=$ac_end
6876       ac_end=`expr $ac_end + $ac_max_sed_lines`
6877     fi
6878   done
6879   if test -z "$ac_sed_cmds"; then
6880     ac_sed_cmds=cat
6881   fi
6882 fi # test -n "$CONFIG_FILES"
6883
6884 _ACEOF
6885 cat >>$CONFIG_STATUS <<\_ACEOF
6886 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6887   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6888   case $ac_file in
6889   - | *:- | *:-:* ) # input from stdin
6890         cat >$tmp/stdin
6891         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6892         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6893   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6894         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6895   * )   ac_file_in=$ac_file.in ;;
6896   esac
6897
6898   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6899   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6900 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6901          X"$ac_file" : 'X\(//\)[^/]' \| \
6902          X"$ac_file" : 'X\(//\)$' \| \
6903          X"$ac_file" : 'X\(/\)' \| \
6904          .     : '\(.\)' 2>/dev/null ||
6905 echo X"$ac_file" |
6906     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6907           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6908           /^X\(\/\/\)$/{ s//\1/; q; }
6909           /^X\(\/\).*/{ s//\1/; q; }
6910           s/.*/./; q'`
6911   { if $as_mkdir_p; then
6912     mkdir -p "$ac_dir"
6913   else
6914     as_dir="$ac_dir"
6915     as_dirs=
6916     while test ! -d "$as_dir"; do
6917       as_dirs="$as_dir $as_dirs"
6918       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6919 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6920          X"$as_dir" : 'X\(//\)[^/]' \| \
6921          X"$as_dir" : 'X\(//\)$' \| \
6922          X"$as_dir" : 'X\(/\)' \| \
6923          .     : '\(.\)' 2>/dev/null ||
6924 echo X"$as_dir" |
6925     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6926           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6927           /^X\(\/\/\)$/{ s//\1/; q; }
6928           /^X\(\/\).*/{ s//\1/; q; }
6929           s/.*/./; q'`
6930     done
6931     test ! -n "$as_dirs" || mkdir $as_dirs
6932   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6933 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6934    { (exit 1); exit 1; }; }; }
6935
6936   ac_builddir=.
6937
6938 if test "$ac_dir" != .; then
6939   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6940   # A "../" for each directory in $ac_dir_suffix.
6941   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6942 else
6943   ac_dir_suffix= ac_top_builddir=
6944 fi
6945
6946 case $srcdir in
6947   .)  # No --srcdir option.  We are building in place.
6948     ac_srcdir=.
6949     if test -z "$ac_top_builddir"; then
6950        ac_top_srcdir=.
6951     else
6952        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6953     fi ;;
6954   [\\/]* | ?:[\\/]* )  # Absolute path.
6955     ac_srcdir=$srcdir$ac_dir_suffix;
6956     ac_top_srcdir=$srcdir ;;
6957   *) # Relative path.
6958     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6959     ac_top_srcdir=$ac_top_builddir$srcdir ;;
6960 esac
6961
6962 # Do not use `cd foo && pwd` to compute absolute paths, because
6963 # the directories may not exist.
6964 case `pwd` in
6965 .) ac_abs_builddir="$ac_dir";;
6966 *)
6967   case "$ac_dir" in
6968   .) ac_abs_builddir=`pwd`;;
6969   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6970   *) ac_abs_builddir=`pwd`/"$ac_dir";;
6971   esac;;
6972 esac
6973 case $ac_abs_builddir in
6974 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6975 *)
6976   case ${ac_top_builddir}. in
6977   .) ac_abs_top_builddir=$ac_abs_builddir;;
6978   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6979   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6980   esac;;
6981 esac
6982 case $ac_abs_builddir in
6983 .) ac_abs_srcdir=$ac_srcdir;;
6984 *)
6985   case $ac_srcdir in
6986   .) ac_abs_srcdir=$ac_abs_builddir;;
6987   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6988   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6989   esac;;
6990 esac
6991 case $ac_abs_builddir in
6992 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6993 *)
6994   case $ac_top_srcdir in
6995   .) ac_abs_top_srcdir=$ac_abs_builddir;;
6996   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6997   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6998   esac;;
6999 esac
7000
7001
7002   case $INSTALL in
7003   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7004   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7005   esac
7006
7007   if test x"$ac_file" != x-; then
7008     { echo "$as_me:$LINENO: creating $ac_file" >&5
7009 echo "$as_me: creating $ac_file" >&6;}
7010     rm -f "$ac_file"
7011   fi
7012   # Let's still pretend it is `configure' which instantiates (i.e., don't
7013   # use $as_me), people would be surprised to read:
7014   #    /* config.h.  Generated by config.status.  */
7015   if test x"$ac_file" = x-; then
7016     configure_input=
7017   else
7018     configure_input="$ac_file.  "
7019   fi
7020   configure_input=$configure_input"Generated from `echo $ac_file_in |
7021                                      sed 's,.*/,,'` by configure."
7022
7023   # First look for the input files in the build tree, otherwise in the
7024   # src tree.
7025   ac_file_inputs=`IFS=:
7026     for f in $ac_file_in; do
7027       case $f in
7028       -) echo $tmp/stdin ;;
7029       [\\/$]*)
7030          # Absolute (can't be DOS-style, as IFS=:)
7031          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7032 echo "$as_me: error: cannot find input file: $f" >&2;}
7033    { (exit 1); exit 1; }; }
7034          echo "$f";;
7035       *) # Relative
7036          if test -f "$f"; then
7037            # Build tree
7038            echo "$f"
7039          elif test -f "$srcdir/$f"; then
7040            # Source tree
7041            echo "$srcdir/$f"
7042          else
7043            # /dev/null tree
7044            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7045 echo "$as_me: error: cannot find input file: $f" >&2;}
7046    { (exit 1); exit 1; }; }
7047          fi;;
7048       esac
7049     done` || { (exit 1); exit 1; }
7050 _ACEOF
7051 cat >>$CONFIG_STATUS <<_ACEOF
7052   sed "$ac_vpsub
7053 $extrasub
7054 _ACEOF
7055 cat >>$CONFIG_STATUS <<\_ACEOF
7056 :t
7057 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7058 s,@configure_input@,$configure_input,;t t
7059 s,@srcdir@,$ac_srcdir,;t t
7060 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7061 s,@top_srcdir@,$ac_top_srcdir,;t t
7062 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7063 s,@builddir@,$ac_builddir,;t t
7064 s,@abs_builddir@,$ac_abs_builddir,;t t
7065 s,@top_builddir@,$ac_top_builddir,;t t
7066 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7067 s,@INSTALL@,$ac_INSTALL,;t t
7068 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7069   rm -f $tmp/stdin
7070   if test x"$ac_file" != x-; then
7071     mv $tmp/out $ac_file
7072   else
7073     cat $tmp/out
7074     rm -f $tmp/out
7075   fi
7076
7077 done
7078 _ACEOF
7079 cat >>$CONFIG_STATUS <<\_ACEOF
7080
7081 #
7082 # CONFIG_HEADER section.
7083 #
7084
7085 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7086 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7087 #
7088 # ac_d sets the value in "#define NAME VALUE" lines.
7089 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
7090 ac_dB='[         ].*$,\1#\2'
7091 ac_dC=' '
7092 ac_dD=',;t'
7093 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7094 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
7095 ac_uB='$,\1#\2define\3'
7096 ac_uC=' '
7097 ac_uD=',;t'
7098
7099 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7100   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7101   case $ac_file in
7102   - | *:- | *:-:* ) # input from stdin
7103         cat >$tmp/stdin
7104         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7105         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7106   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7107         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7108   * )   ac_file_in=$ac_file.in ;;
7109   esac
7110
7111   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7112 echo "$as_me: creating $ac_file" >&6;}
7113
7114   # First look for the input files in the build tree, otherwise in the
7115   # src tree.
7116   ac_file_inputs=`IFS=:
7117     for f in $ac_file_in; do
7118       case $f in
7119       -) echo $tmp/stdin ;;
7120       [\\/$]*)
7121          # Absolute (can't be DOS-style, as IFS=:)
7122          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7123 echo "$as_me: error: cannot find input file: $f" >&2;}
7124    { (exit 1); exit 1; }; }
7125          # Do quote $f, to prevent DOS paths from being IFS'd.
7126          echo "$f";;
7127       *) # Relative
7128          if test -f "$f"; then
7129            # Build tree
7130            echo "$f"
7131          elif test -f "$srcdir/$f"; then
7132            # Source tree
7133            echo "$srcdir/$f"
7134          else
7135            # /dev/null tree
7136            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7137 echo "$as_me: error: cannot find input file: $f" >&2;}
7138    { (exit 1); exit 1; }; }
7139          fi;;
7140       esac
7141     done` || { (exit 1); exit 1; }
7142   # Remove the trailing spaces.
7143   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
7144
7145 _ACEOF
7146
7147 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7148 # `conftest.undefs', that substitutes the proper values into
7149 # config.h.in to produce config.h.  The first handles `#define'
7150 # templates, and the second `#undef' templates.
7151 # And first: Protect against being on the right side of a sed subst in
7152 # config.status.  Protect against being in an unquoted here document
7153 # in config.status.
7154 rm -f conftest.defines conftest.undefs
7155 # Using a here document instead of a string reduces the quoting nightmare.
7156 # Putting comments in sed scripts is not portable.
7157 #
7158 # `end' is used to avoid that the second main sed command (meant for
7159 # 0-ary CPP macros) applies to n-ary macro definitions.
7160 # See the Autoconf documentation for `clear'.
7161 cat >confdef2sed.sed <<\_ACEOF
7162 s/[\\&,]/\\&/g
7163 s,[\\$`],\\&,g
7164 t clear
7165 : clear
7166 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7167 t end
7168 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7169 : end
7170 _ACEOF
7171 # If some macros were called several times there might be several times
7172 # the same #defines, which is useless.  Nevertheless, we may not want to
7173 # sort them, since we want the *last* AC-DEFINE to be honored.
7174 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7175 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7176 rm -f confdef2sed.sed
7177
7178 # This sed command replaces #undef with comments.  This is necessary, for
7179 # example, in the case of _POSIX_SOURCE, which is predefined and required
7180 # on some systems where configure will not decide to define it.
7181 cat >>conftest.undefs <<\_ACEOF
7182 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7183 _ACEOF
7184
7185 # Break up conftest.defines because some shells have a limit on the size
7186 # of here documents, and old seds have small limits too (100 cmds).
7187 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7188 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7189 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7190 echo '  :' >>$CONFIG_STATUS
7191 rm -f conftest.tail
7192 while grep . conftest.defines >/dev/null
7193 do
7194   # Write a limited-size here document to $tmp/defines.sed.
7195   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7196   # Speed up: don't consider the non `#define' lines.
7197   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
7198   # Work around the forget-to-reset-the-flag bug.
7199   echo 't clr' >>$CONFIG_STATUS
7200   echo ': clr' >>$CONFIG_STATUS
7201   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7202   echo 'CEOF
7203   sed -f $tmp/defines.sed $tmp/in >$tmp/out
7204   rm -f $tmp/in
7205   mv $tmp/out $tmp/in
7206 ' >>$CONFIG_STATUS
7207   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7208   rm -f conftest.defines
7209   mv conftest.tail conftest.defines
7210 done
7211 rm -f conftest.defines
7212 echo '  fi # grep' >>$CONFIG_STATUS
7213 echo >>$CONFIG_STATUS
7214
7215 # Break up conftest.undefs because some shells have a limit on the size
7216 # of here documents, and old seds have small limits too (100 cmds).
7217 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
7218 rm -f conftest.tail
7219 while grep . conftest.undefs >/dev/null
7220 do
7221   # Write a limited-size here document to $tmp/undefs.sed.
7222   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7223   # Speed up: don't consider the non `#undef'
7224   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
7225   # Work around the forget-to-reset-the-flag bug.
7226   echo 't clr' >>$CONFIG_STATUS
7227   echo ': clr' >>$CONFIG_STATUS
7228   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7229   echo 'CEOF
7230   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7231   rm -f $tmp/in
7232   mv $tmp/out $tmp/in
7233 ' >>$CONFIG_STATUS
7234   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7235   rm -f conftest.undefs
7236   mv conftest.tail conftest.undefs
7237 done
7238 rm -f conftest.undefs
7239
7240 cat >>$CONFIG_STATUS <<\_ACEOF
7241   # Let's still pretend it is `configure' which instantiates (i.e., don't
7242   # use $as_me), people would be surprised to read:
7243   #    /* config.h.  Generated by config.status.  */
7244   if test x"$ac_file" = x-; then
7245     echo "/* Generated by configure.  */" >$tmp/config.h
7246   else
7247     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
7248   fi
7249   cat $tmp/in >>$tmp/config.h
7250   rm -f $tmp/in
7251   if test x"$ac_file" != x-; then
7252     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7253       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7254 echo "$as_me: $ac_file is unchanged" >&6;}
7255     else
7256       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7257 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7258          X"$ac_file" : 'X\(//\)[^/]' \| \
7259          X"$ac_file" : 'X\(//\)$' \| \
7260          X"$ac_file" : 'X\(/\)' \| \
7261          .     : '\(.\)' 2>/dev/null ||
7262 echo X"$ac_file" |
7263     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7264           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7265           /^X\(\/\/\)$/{ s//\1/; q; }
7266           /^X\(\/\).*/{ s//\1/; q; }
7267           s/.*/./; q'`
7268       { if $as_mkdir_p; then
7269     mkdir -p "$ac_dir"
7270   else
7271     as_dir="$ac_dir"
7272     as_dirs=
7273     while test ! -d "$as_dir"; do
7274       as_dirs="$as_dir $as_dirs"
7275       as_dir=`(dirname "$as_dir") 2>/dev/null ||
7276 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7277          X"$as_dir" : 'X\(//\)[^/]' \| \
7278          X"$as_dir" : 'X\(//\)$' \| \
7279          X"$as_dir" : 'X\(/\)' \| \
7280          .     : '\(.\)' 2>/dev/null ||
7281 echo X"$as_dir" |
7282     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7283           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7284           /^X\(\/\/\)$/{ s//\1/; q; }
7285           /^X\(\/\).*/{ s//\1/; q; }
7286           s/.*/./; q'`
7287     done
7288     test ! -n "$as_dirs" || mkdir $as_dirs
7289   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7290 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7291    { (exit 1); exit 1; }; }; }
7292
7293       rm -f $ac_file
7294       mv $tmp/config.h $ac_file
7295     fi
7296   else
7297     cat $tmp/config.h
7298     rm -f $tmp/config.h
7299   fi
7300 # Compute $ac_file's index in $config_headers.
7301 _am_stamp_count=1
7302 for _am_header in $config_headers :; do
7303   case $_am_header in
7304     $ac_file | $ac_file:* )
7305       break ;;
7306     * )
7307       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7308   esac
7309 done
7310 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
7311 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7312          X$ac_file : 'X\(//\)[^/]' \| \
7313          X$ac_file : 'X\(//\)$' \| \
7314          X$ac_file : 'X\(/\)' \| \
7315          .     : '\(.\)' 2>/dev/null ||
7316 echo X$ac_file |
7317     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7318           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7319           /^X\(\/\/\)$/{ s//\1/; q; }
7320           /^X\(\/\).*/{ s//\1/; q; }
7321           s/.*/./; q'`/stamp-h$_am_stamp_count
7322 done
7323 _ACEOF
7324 cat >>$CONFIG_STATUS <<\_ACEOF
7325
7326 #
7327 # CONFIG_COMMANDS section.
7328 #
7329 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7330   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7331   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7332   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7333 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7334          X"$ac_dest" : 'X\(//\)[^/]' \| \
7335          X"$ac_dest" : 'X\(//\)$' \| \
7336          X"$ac_dest" : 'X\(/\)' \| \
7337          .     : '\(.\)' 2>/dev/null ||
7338 echo X"$ac_dest" |
7339     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7340           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7341           /^X\(\/\/\)$/{ s//\1/; q; }
7342           /^X\(\/\).*/{ s//\1/; q; }
7343           s/.*/./; q'`
7344   { if $as_mkdir_p; then
7345     mkdir -p "$ac_dir"
7346   else
7347     as_dir="$ac_dir"
7348     as_dirs=
7349     while test ! -d "$as_dir"; do
7350       as_dirs="$as_dir $as_dirs"
7351       as_dir=`(dirname "$as_dir") 2>/dev/null ||
7352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7353          X"$as_dir" : 'X\(//\)[^/]' \| \
7354          X"$as_dir" : 'X\(//\)$' \| \
7355          X"$as_dir" : 'X\(/\)' \| \
7356          .     : '\(.\)' 2>/dev/null ||
7357 echo X"$as_dir" |
7358     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7359           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7360           /^X\(\/\/\)$/{ s//\1/; q; }
7361           /^X\(\/\).*/{ s//\1/; q; }
7362           s/.*/./; q'`
7363     done
7364     test ! -n "$as_dirs" || mkdir $as_dirs
7365   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7366 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7367    { (exit 1); exit 1; }; }; }
7368
7369   ac_builddir=.
7370
7371 if test "$ac_dir" != .; then
7372   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7373   # A "../" for each directory in $ac_dir_suffix.
7374   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7375 else
7376   ac_dir_suffix= ac_top_builddir=
7377 fi
7378
7379 case $srcdir in
7380   .)  # No --srcdir option.  We are building in place.
7381     ac_srcdir=.
7382     if test -z "$ac_top_builddir"; then
7383        ac_top_srcdir=.
7384     else
7385        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7386     fi ;;
7387   [\\/]* | ?:[\\/]* )  # Absolute path.
7388     ac_srcdir=$srcdir$ac_dir_suffix;
7389     ac_top_srcdir=$srcdir ;;
7390   *) # Relative path.
7391     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7392     ac_top_srcdir=$ac_top_builddir$srcdir ;;
7393 esac
7394
7395 # Do not use `cd foo && pwd` to compute absolute paths, because
7396 # the directories may not exist.
7397 case `pwd` in
7398 .) ac_abs_builddir="$ac_dir";;
7399 *)
7400   case "$ac_dir" in
7401   .) ac_abs_builddir=`pwd`;;
7402   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7403   *) ac_abs_builddir=`pwd`/"$ac_dir";;
7404   esac;;
7405 esac
7406 case $ac_abs_builddir in
7407 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7408 *)
7409   case ${ac_top_builddir}. in
7410   .) ac_abs_top_builddir=$ac_abs_builddir;;
7411   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7412   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7413   esac;;
7414 esac
7415 case $ac_abs_builddir in
7416 .) ac_abs_srcdir=$ac_srcdir;;
7417 *)
7418   case $ac_srcdir in
7419   .) ac_abs_srcdir=$ac_abs_builddir;;
7420   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7421   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7422   esac;;
7423 esac
7424 case $ac_abs_builddir in
7425 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7426 *)
7427   case $ac_top_srcdir in
7428   .) ac_abs_top_srcdir=$ac_abs_builddir;;
7429   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7430   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7431   esac;;
7432 esac
7433
7434
7435   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7436 echo "$as_me: executing $ac_dest commands" >&6;}
7437   case $ac_dest in
7438     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7439   # Strip MF so we end up with the name of the file.
7440   mf=`echo "$mf" | sed -e 's/:.*$//'`
7441   # Check whether this is an Automake generated Makefile or not.
7442   # We used to match only the files named `Makefile.in', but
7443   # some people rename them; so instead we look at the file content.
7444   # Grep'ing the first line is not enough: some people post-process
7445   # each Makefile.in and add a new line on top of each file to say so.
7446   # So let's grep whole file.
7447   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7448     dirpart=`(dirname "$mf") 2>/dev/null ||
7449 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7450          X"$mf" : 'X\(//\)[^/]' \| \
7451          X"$mf" : 'X\(//\)$' \| \
7452          X"$mf" : 'X\(/\)' \| \
7453          .     : '\(.\)' 2>/dev/null ||
7454 echo X"$mf" |
7455     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7456           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7457           /^X\(\/\/\)$/{ s//\1/; q; }
7458           /^X\(\/\).*/{ s//\1/; q; }
7459           s/.*/./; q'`
7460   else
7461     continue
7462   fi
7463   # Extract the definition of DEPDIR, am__include, and am__quote
7464   # from the Makefile without running `make'.
7465   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7466   test -z "$DEPDIR" && continue
7467   am__include=`sed -n 's/^am__include = //p' < "$mf"`
7468   test -z "am__include" && continue
7469   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7470   # When using ansi2knr, U may be empty or an underscore; expand it
7471   U=`sed -n 's/^U = //p' < "$mf"`
7472   # Find all dependency output files, they are included files with
7473   # $(DEPDIR) in their names.  We invoke sed twice because it is the
7474   # simplest approach to changing $(DEPDIR) to its actual value in the
7475   # expansion.
7476   for file in `sed -n "
7477     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7478        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7479     # Make sure the directory exists.
7480     test -f "$dirpart/$file" && continue
7481     fdir=`(dirname "$file") 2>/dev/null ||
7482 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7483          X"$file" : 'X\(//\)[^/]' \| \
7484          X"$file" : 'X\(//\)$' \| \
7485          X"$file" : 'X\(/\)' \| \
7486          .     : '\(.\)' 2>/dev/null ||
7487 echo X"$file" |
7488     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7489           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7490           /^X\(\/\/\)$/{ s//\1/; q; }
7491           /^X\(\/\).*/{ s//\1/; q; }
7492           s/.*/./; q'`
7493     { if $as_mkdir_p; then
7494     mkdir -p $dirpart/$fdir
7495   else
7496     as_dir=$dirpart/$fdir
7497     as_dirs=
7498     while test ! -d "$as_dir"; do
7499       as_dirs="$as_dir $as_dirs"
7500       as_dir=`(dirname "$as_dir") 2>/dev/null ||
7501 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7502          X"$as_dir" : 'X\(//\)[^/]' \| \
7503          X"$as_dir" : 'X\(//\)$' \| \
7504          X"$as_dir" : 'X\(/\)' \| \
7505          .     : '\(.\)' 2>/dev/null ||
7506 echo X"$as_dir" |
7507     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7508           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7509           /^X\(\/\/\)$/{ s//\1/; q; }
7510           /^X\(\/\).*/{ s//\1/; q; }
7511           s/.*/./; q'`
7512     done
7513     test ! -n "$as_dirs" || mkdir $as_dirs
7514   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
7515 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
7516    { (exit 1); exit 1; }; }; }
7517
7518     # echo "creating $dirpart/$file"
7519     echo '# dummy' > "$dirpart/$file"
7520   done
7521 done
7522  ;;
7523   esac
7524 done
7525 _ACEOF
7526
7527 cat >>$CONFIG_STATUS <<\_ACEOF
7528
7529 { (exit 0); exit 0; }
7530 _ACEOF
7531 chmod +x $CONFIG_STATUS
7532 ac_clean_files=$ac_clean_files_save
7533
7534
7535 # configure is writing to config.log, and then calls config.status.
7536 # config.status does its own redirection, appending to config.log.
7537 # Unfortunately, on DOS this fails, as config.log is still kept open
7538 # by configure, so config.status won't be able to write to it; its
7539 # output is simply discarded.  So we exec the FD to /dev/null,
7540 # effectively closing config.log, so it can be properly (re)opened and
7541 # appended to by config.status.  When coming back to configure, we
7542 # need to make the FD available again.
7543 if test "$no_create" != yes; then
7544   ac_cs_success=:
7545   ac_config_status_args=
7546   test "$silent" = yes &&
7547     ac_config_status_args="$ac_config_status_args --quiet"
7548   exec 5>/dev/null
7549   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7550   exec 5>>config.log
7551   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7552   # would make configure fail if this is the last instruction.
7553   $ac_cs_success || { (exit 1); exit 1; }
7554 fi
7555