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