OSDN Git Service

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