source: trunk/third/ifplugd/configure @ 20388

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