/[LeafOK_CVS]/lbbs/configure
ViewVC logotype

Annotation of /lbbs/configure

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (hide annotations)
Fri Mar 18 16:01:22 2005 UTC (21 years ago) by sysadm
Branch: MAIN
Changes since 1.9: +364 -3 lines
*** empty log message ***

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

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1