/[LeafOK_CVS]/lbbs/configure
ViewVC logotype

Annotation of /lbbs/configure

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (hide annotations)
Tue Mar 22 13:40:55 2005 UTC (21 years ago) by sysadm
Branch: MAIN
Changes since 1.10: +9 -2 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 sysadm 1.11
3507    
3508    
3509    
3510    
3511     for ac_header in arpa/inet.h fcntl.h memory.h netdb.h netinet/in.h stdlib.h string.h strings.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h unistd.h
3512 sysadm 1.4 do
3513     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3514     if eval "test \"\${$as_ac_Header+set}\" = set"; then
3515     echo "$as_me:$LINENO: checking for $ac_header" >&5
3516     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3517     if eval "test \"\${$as_ac_Header+set}\" = set"; then
3518     echo $ECHO_N "(cached) $ECHO_C" >&6
3519     fi
3520     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3521     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3522     else
3523     # Is the header compilable?
3524     echo "$as_me:$LINENO: checking $ac_header usability" >&5
3525     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3526     cat >conftest.$ac_ext <<_ACEOF
3527     /* confdefs.h. */
3528     _ACEOF
3529     cat confdefs.h >>conftest.$ac_ext
3530     cat >>conftest.$ac_ext <<_ACEOF
3531     /* end confdefs.h. */
3532     $ac_includes_default
3533     #include <$ac_header>
3534     _ACEOF
3535     rm -f conftest.$ac_objext
3536     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3537     (eval $ac_compile) 2>conftest.er1
3538     ac_status=$?
3539     grep -v '^ *+' conftest.er1 >conftest.err
3540     rm -f conftest.er1
3541     cat conftest.err >&5
3542     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543     (exit $ac_status); } &&
3544     { ac_try='test -z "$ac_c_werror_flag"
3545     || test ! -s conftest.err'
3546     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547     (eval $ac_try) 2>&5
3548     ac_status=$?
3549     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550     (exit $ac_status); }; } &&
3551     { ac_try='test -s conftest.$ac_objext'
3552     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553     (eval $ac_try) 2>&5
3554     ac_status=$?
3555     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556     (exit $ac_status); }; }; then
3557     ac_header_compiler=yes
3558     else
3559     echo "$as_me: failed program was:" >&5
3560     sed 's/^/| /' conftest.$ac_ext >&5
3561    
3562     ac_header_compiler=no
3563     fi
3564     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3565     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3566     echo "${ECHO_T}$ac_header_compiler" >&6
3567    
3568     # Is the header present?
3569     echo "$as_me:$LINENO: checking $ac_header presence" >&5
3570     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3571     cat >conftest.$ac_ext <<_ACEOF
3572     /* confdefs.h. */
3573     _ACEOF
3574     cat confdefs.h >>conftest.$ac_ext
3575     cat >>conftest.$ac_ext <<_ACEOF
3576     /* end confdefs.h. */
3577     #include <$ac_header>
3578     _ACEOF
3579     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3580     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3581     ac_status=$?
3582     grep -v '^ *+' conftest.er1 >conftest.err
3583     rm -f conftest.er1
3584     cat conftest.err >&5
3585     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586     (exit $ac_status); } >/dev/null; then
3587     if test -s conftest.err; then
3588     ac_cpp_err=$ac_c_preproc_warn_flag
3589     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3590     else
3591     ac_cpp_err=
3592     fi
3593     else
3594     ac_cpp_err=yes
3595     fi
3596     if test -z "$ac_cpp_err"; then
3597     ac_header_preproc=yes
3598     else
3599     echo "$as_me: failed program was:" >&5
3600     sed 's/^/| /' conftest.$ac_ext >&5
3601    
3602     ac_header_preproc=no
3603     fi
3604     rm -f conftest.err conftest.$ac_ext
3605     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3606     echo "${ECHO_T}$ac_header_preproc" >&6
3607    
3608     # So? What about this header?
3609     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3610     yes:no: )
3611     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3612     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3613     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3614     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3615     ac_header_preproc=yes
3616     ;;
3617     no:yes:* )
3618     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3619     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3620     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3621     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3622     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3623     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3624     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3625     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3626     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3627     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3628     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3629     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3630     (
3631     cat <<\_ASBOX
3632     ## ------------------------------- ##
3633     ## Report this to the bbsd lists. ##
3634     ## ------------------------------- ##
3635     _ASBOX
3636     ) |
3637     sed "s/^/$as_me: WARNING: /" >&2
3638     ;;
3639     esac
3640     echo "$as_me:$LINENO: checking for $ac_header" >&5
3641     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3642     if eval "test \"\${$as_ac_Header+set}\" = set"; then
3643     echo $ECHO_N "(cached) $ECHO_C" >&6
3644     else
3645     eval "$as_ac_Header=\$ac_header_preproc"
3646     fi
3647     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3648     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3649    
3650     fi
3651     if test `eval echo '${'$as_ac_Header'}'` = yes; then
3652     cat >>confdefs.h <<_ACEOF
3653     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3654     _ACEOF
3655    
3656     fi
3657    
3658     done
3659    
3660    
3661     # Checks for typedefs, structures, and compiler characteristics.
3662     echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3663     echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3664     if test "${ac_cv_c_const+set}" = set; then
3665     echo $ECHO_N "(cached) $ECHO_C" >&6
3666     else
3667     cat >conftest.$ac_ext <<_ACEOF
3668     /* confdefs.h. */
3669     _ACEOF
3670     cat confdefs.h >>conftest.$ac_ext
3671     cat >>conftest.$ac_ext <<_ACEOF
3672     /* end confdefs.h. */
3673    
3674     int
3675     main ()
3676     {
3677     /* FIXME: Include the comments suggested by Paul. */
3678     #ifndef __cplusplus
3679     /* Ultrix mips cc rejects this. */
3680     typedef int charset[2];
3681     const charset x;
3682     /* SunOS 4.1.1 cc rejects this. */
3683     char const *const *ccp;
3684     char **p;
3685     /* NEC SVR4.0.2 mips cc rejects this. */
3686     struct point {int x, y;};
3687     static struct point const zero = {0,0};
3688     /* AIX XL C 1.02.0.0 rejects this.
3689     It does not let you subtract one const X* pointer from another in
3690     an arm of an if-expression whose if-part is not a constant
3691     expression */
3692     const char *g = "string";
3693     ccp = &g + (g ? g-g : 0);
3694     /* HPUX 7.0 cc rejects these. */
3695     ++ccp;
3696     p = (char**) ccp;
3697     ccp = (char const *const *) p;
3698     { /* SCO 3.2v4 cc rejects this. */
3699     char *t;
3700     char const *s = 0 ? (char *) 0 : (char const *) 0;
3701    
3702     *t++ = 0;
3703     }
3704     { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3705     int x[] = {25, 17};
3706     const int *foo = &x[0];
3707     ++foo;
3708     }
3709     { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3710     typedef const int *iptr;
3711     iptr p = 0;
3712     ++p;
3713     }
3714     { /* AIX XL C 1.02.0.0 rejects this saying
3715     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3716     struct s { int j; const int *ap[3]; };
3717     struct s *b; b->j = 5;
3718     }
3719     { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3720     const int foo = 10;
3721     }
3722     #endif
3723    
3724     ;
3725     return 0;
3726     }
3727     _ACEOF
3728     rm -f conftest.$ac_objext
3729     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3730     (eval $ac_compile) 2>conftest.er1
3731     ac_status=$?
3732     grep -v '^ *+' conftest.er1 >conftest.err
3733     rm -f conftest.er1
3734     cat conftest.err >&5
3735     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736     (exit $ac_status); } &&
3737     { ac_try='test -z "$ac_c_werror_flag"
3738     || test ! -s conftest.err'
3739     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3740     (eval $ac_try) 2>&5
3741     ac_status=$?
3742     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743     (exit $ac_status); }; } &&
3744     { ac_try='test -s conftest.$ac_objext'
3745     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3746     (eval $ac_try) 2>&5
3747     ac_status=$?
3748     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749     (exit $ac_status); }; }; then
3750     ac_cv_c_const=yes
3751     else
3752     echo "$as_me: failed program was:" >&5
3753     sed 's/^/| /' conftest.$ac_ext >&5
3754    
3755     ac_cv_c_const=no
3756     fi
3757     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3758     fi
3759     echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3760     echo "${ECHO_T}$ac_cv_c_const" >&6
3761     if test $ac_cv_c_const = no; then
3762    
3763     cat >>confdefs.h <<\_ACEOF
3764     #define const
3765     _ACEOF
3766    
3767     fi
3768    
3769 sysadm 1.8 echo "$as_me:$LINENO: checking for size_t" >&5
3770     echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3771     if test "${ac_cv_type_size_t+set}" = set; then
3772     echo $ECHO_N "(cached) $ECHO_C" >&6
3773     else
3774     cat >conftest.$ac_ext <<_ACEOF
3775     /* confdefs.h. */
3776     _ACEOF
3777     cat confdefs.h >>conftest.$ac_ext
3778     cat >>conftest.$ac_ext <<_ACEOF
3779     /* end confdefs.h. */
3780     $ac_includes_default
3781     int
3782     main ()
3783     {
3784     if ((size_t *) 0)
3785     return 0;
3786     if (sizeof (size_t))
3787     return 0;
3788     ;
3789     return 0;
3790     }
3791     _ACEOF
3792     rm -f conftest.$ac_objext
3793     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3794     (eval $ac_compile) 2>conftest.er1
3795     ac_status=$?
3796     grep -v '^ *+' conftest.er1 >conftest.err
3797     rm -f conftest.er1
3798     cat conftest.err >&5
3799     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800     (exit $ac_status); } &&
3801     { ac_try='test -z "$ac_c_werror_flag"
3802     || test ! -s conftest.err'
3803     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804     (eval $ac_try) 2>&5
3805     ac_status=$?
3806     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807     (exit $ac_status); }; } &&
3808     { ac_try='test -s conftest.$ac_objext'
3809     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3810     (eval $ac_try) 2>&5
3811     ac_status=$?
3812     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813     (exit $ac_status); }; }; then
3814     ac_cv_type_size_t=yes
3815     else
3816     echo "$as_me: failed program was:" >&5
3817     sed 's/^/| /' conftest.$ac_ext >&5
3818    
3819     ac_cv_type_size_t=no
3820     fi
3821     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3822     fi
3823     echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3824     echo "${ECHO_T}$ac_cv_type_size_t" >&6
3825     if test $ac_cv_type_size_t = yes; then
3826     :
3827     else
3828    
3829     cat >>confdefs.h <<_ACEOF
3830     #define size_t unsigned
3831     _ACEOF
3832    
3833     fi
3834    
3835 sysadm 1.10 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3836     echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3837     if test "${ac_cv_header_time+set}" = set; then
3838     echo $ECHO_N "(cached) $ECHO_C" >&6
3839     else
3840     cat >conftest.$ac_ext <<_ACEOF
3841     /* confdefs.h. */
3842     _ACEOF
3843     cat confdefs.h >>conftest.$ac_ext
3844     cat >>conftest.$ac_ext <<_ACEOF
3845     /* end confdefs.h. */
3846     #include <sys/types.h>
3847     #include <sys/time.h>
3848     #include <time.h>
3849    
3850     int
3851     main ()
3852     {
3853     if ((struct tm *) 0)
3854     return 0;
3855     ;
3856     return 0;
3857     }
3858     _ACEOF
3859     rm -f conftest.$ac_objext
3860     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3861     (eval $ac_compile) 2>conftest.er1
3862     ac_status=$?
3863     grep -v '^ *+' conftest.er1 >conftest.err
3864     rm -f conftest.er1
3865     cat conftest.err >&5
3866     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867     (exit $ac_status); } &&
3868     { ac_try='test -z "$ac_c_werror_flag"
3869     || test ! -s conftest.err'
3870     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3871     (eval $ac_try) 2>&5
3872     ac_status=$?
3873     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874     (exit $ac_status); }; } &&
3875     { ac_try='test -s conftest.$ac_objext'
3876     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3877     (eval $ac_try) 2>&5
3878     ac_status=$?
3879     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880     (exit $ac_status); }; }; then
3881     ac_cv_header_time=yes
3882     else
3883     echo "$as_me: failed program was:" >&5
3884     sed 's/^/| /' conftest.$ac_ext >&5
3885    
3886     ac_cv_header_time=no
3887     fi
3888     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3889     fi
3890     echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3891     echo "${ECHO_T}$ac_cv_header_time" >&6
3892     if test $ac_cv_header_time = yes; then
3893    
3894     cat >>confdefs.h <<\_ACEOF
3895     #define TIME_WITH_SYS_TIME 1
3896     _ACEOF
3897    
3898     fi
3899    
3900 sysadm 1.9 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
3901     echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
3902     if test "${ac_cv_struct_tm+set}" = set; then
3903     echo $ECHO_N "(cached) $ECHO_C" >&6
3904     else
3905     cat >conftest.$ac_ext <<_ACEOF
3906     /* confdefs.h. */
3907     _ACEOF
3908     cat confdefs.h >>conftest.$ac_ext
3909     cat >>conftest.$ac_ext <<_ACEOF
3910     /* end confdefs.h. */
3911     #include <sys/types.h>
3912     #include <time.h>
3913    
3914     int
3915     main ()
3916     {
3917     struct tm *tp; tp->tm_sec;
3918     ;
3919     return 0;
3920     }
3921     _ACEOF
3922     rm -f conftest.$ac_objext
3923     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3924     (eval $ac_compile) 2>conftest.er1
3925     ac_status=$?
3926     grep -v '^ *+' conftest.er1 >conftest.err
3927     rm -f conftest.er1
3928     cat conftest.err >&5
3929     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930     (exit $ac_status); } &&
3931     { ac_try='test -z "$ac_c_werror_flag"
3932     || test ! -s conftest.err'
3933     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934     (eval $ac_try) 2>&5
3935     ac_status=$?
3936     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937     (exit $ac_status); }; } &&
3938     { ac_try='test -s conftest.$ac_objext'
3939     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3940     (eval $ac_try) 2>&5
3941     ac_status=$?
3942     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943     (exit $ac_status); }; }; then
3944     ac_cv_struct_tm=time.h
3945     else
3946     echo "$as_me: failed program was:" >&5
3947     sed 's/^/| /' conftest.$ac_ext >&5
3948    
3949     ac_cv_struct_tm=sys/time.h
3950     fi
3951     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3952     fi
3953     echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
3954     echo "${ECHO_T}$ac_cv_struct_tm" >&6
3955     if test $ac_cv_struct_tm = sys/time.h; then
3956    
3957     cat >>confdefs.h <<\_ACEOF
3958     #define TM_IN_SYS_TIME 1
3959     _ACEOF
3960    
3961     fi
3962    
3963 sysadm 1.4
3964     # Checks for library functions.
3965     echo "$as_me:$LINENO: checking for pid_t" >&5
3966     echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
3967     if test "${ac_cv_type_pid_t+set}" = set; then
3968     echo $ECHO_N "(cached) $ECHO_C" >&6
3969     else
3970     cat >conftest.$ac_ext <<_ACEOF
3971     /* confdefs.h. */
3972     _ACEOF
3973     cat confdefs.h >>conftest.$ac_ext
3974     cat >>conftest.$ac_ext <<_ACEOF
3975     /* end confdefs.h. */
3976     $ac_includes_default
3977     int
3978     main ()
3979     {
3980     if ((pid_t *) 0)
3981     return 0;
3982     if (sizeof (pid_t))
3983     return 0;
3984     ;
3985     return 0;
3986     }
3987     _ACEOF
3988     rm -f conftest.$ac_objext
3989     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3990     (eval $ac_compile) 2>conftest.er1
3991     ac_status=$?
3992     grep -v '^ *+' conftest.er1 >conftest.err
3993     rm -f conftest.er1
3994     cat conftest.err >&5
3995     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996     (exit $ac_status); } &&
3997     { ac_try='test -z "$ac_c_werror_flag"
3998     || test ! -s conftest.err'
3999     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4000     (eval $ac_try) 2>&5
4001     ac_status=$?
4002     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003     (exit $ac_status); }; } &&
4004     { ac_try='test -s conftest.$ac_objext'
4005     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4006     (eval $ac_try) 2>&5
4007     ac_status=$?
4008     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009     (exit $ac_status); }; }; then
4010     ac_cv_type_pid_t=yes
4011     else
4012     echo "$as_me: failed program was:" >&5
4013     sed 's/^/| /' conftest.$ac_ext >&5
4014    
4015     ac_cv_type_pid_t=no
4016     fi
4017     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4018     fi
4019     echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4020     echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4021     if test $ac_cv_type_pid_t = yes; then
4022     :
4023     else
4024    
4025     cat >>confdefs.h <<_ACEOF
4026     #define pid_t int
4027     _ACEOF
4028    
4029     fi
4030    
4031    
4032    
4033     for ac_header in unistd.h vfork.h
4034     do
4035     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4036     if eval "test \"\${$as_ac_Header+set}\" = set"; then
4037     echo "$as_me:$LINENO: checking for $ac_header" >&5
4038     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4039     if eval "test \"\${$as_ac_Header+set}\" = set"; then
4040     echo $ECHO_N "(cached) $ECHO_C" >&6
4041     fi
4042     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4043     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4044     else
4045     # Is the header compilable?
4046     echo "$as_me:$LINENO: checking $ac_header usability" >&5
4047     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4048     cat >conftest.$ac_ext <<_ACEOF
4049     /* confdefs.h. */
4050     _ACEOF
4051     cat confdefs.h >>conftest.$ac_ext
4052     cat >>conftest.$ac_ext <<_ACEOF
4053     /* end confdefs.h. */
4054     $ac_includes_default
4055     #include <$ac_header>
4056     _ACEOF
4057     rm -f conftest.$ac_objext
4058     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4059     (eval $ac_compile) 2>conftest.er1
4060     ac_status=$?
4061     grep -v '^ *+' conftest.er1 >conftest.err
4062     rm -f conftest.er1
4063     cat conftest.err >&5
4064     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065     (exit $ac_status); } &&
4066     { ac_try='test -z "$ac_c_werror_flag"
4067     || test ! -s conftest.err'
4068     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4069     (eval $ac_try) 2>&5
4070     ac_status=$?
4071     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072     (exit $ac_status); }; } &&
4073     { ac_try='test -s conftest.$ac_objext'
4074     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4075     (eval $ac_try) 2>&5
4076     ac_status=$?
4077     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078     (exit $ac_status); }; }; then
4079     ac_header_compiler=yes
4080     else
4081     echo "$as_me: failed program was:" >&5
4082     sed 's/^/| /' conftest.$ac_ext >&5
4083    
4084     ac_header_compiler=no
4085     fi
4086     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4087     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4088     echo "${ECHO_T}$ac_header_compiler" >&6
4089    
4090     # Is the header present?
4091     echo "$as_me:$LINENO: checking $ac_header presence" >&5
4092     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4093     cat >conftest.$ac_ext <<_ACEOF
4094     /* confdefs.h. */
4095     _ACEOF
4096     cat confdefs.h >>conftest.$ac_ext
4097     cat >>conftest.$ac_ext <<_ACEOF
4098     /* end confdefs.h. */
4099     #include <$ac_header>
4100     _ACEOF
4101     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4102     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4103     ac_status=$?
4104     grep -v '^ *+' conftest.er1 >conftest.err
4105     rm -f conftest.er1
4106     cat conftest.err >&5
4107     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108     (exit $ac_status); } >/dev/null; then
4109     if test -s conftest.err; then
4110     ac_cpp_err=$ac_c_preproc_warn_flag
4111     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4112     else
4113     ac_cpp_err=
4114     fi
4115     else
4116     ac_cpp_err=yes
4117     fi
4118     if test -z "$ac_cpp_err"; then
4119     ac_header_preproc=yes
4120     else
4121     echo "$as_me: failed program was:" >&5
4122     sed 's/^/| /' conftest.$ac_ext >&5
4123    
4124     ac_header_preproc=no
4125     fi
4126     rm -f conftest.err conftest.$ac_ext
4127     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4128     echo "${ECHO_T}$ac_header_preproc" >&6
4129    
4130     # So? What about this header?
4131     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4132     yes:no: )
4133     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4134     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4135     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4136     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4137     ac_header_preproc=yes
4138     ;;
4139     no:yes:* )
4140     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4141     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4142     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4143     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4144     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4145     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4146     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4147     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4148     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4149     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4150     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4151     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4152     (
4153     cat <<\_ASBOX
4154     ## ------------------------------- ##
4155     ## Report this to the bbsd lists. ##
4156     ## ------------------------------- ##
4157     _ASBOX
4158     ) |
4159     sed "s/^/$as_me: WARNING: /" >&2
4160     ;;
4161     esac
4162     echo "$as_me:$LINENO: checking for $ac_header" >&5
4163     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4164     if eval "test \"\${$as_ac_Header+set}\" = set"; then
4165     echo $ECHO_N "(cached) $ECHO_C" >&6
4166     else
4167     eval "$as_ac_Header=\$ac_header_preproc"
4168     fi
4169     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4170     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4171    
4172     fi
4173     if test `eval echo '${'$as_ac_Header'}'` = yes; then
4174     cat >>confdefs.h <<_ACEOF
4175     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4176     _ACEOF
4177    
4178     fi
4179    
4180     done
4181    
4182    
4183    
4184     for ac_func in fork vfork
4185     do
4186     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4187     echo "$as_me:$LINENO: checking for $ac_func" >&5
4188     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4189     if eval "test \"\${$as_ac_var+set}\" = set"; then
4190     echo $ECHO_N "(cached) $ECHO_C" >&6
4191     else
4192     cat >conftest.$ac_ext <<_ACEOF
4193     /* confdefs.h. */
4194     _ACEOF
4195     cat confdefs.h >>conftest.$ac_ext
4196     cat >>conftest.$ac_ext <<_ACEOF
4197     /* end confdefs.h. */
4198     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4199     For example, HP-UX 11i <limits.h> declares gettimeofday. */
4200     #define $ac_func innocuous_$ac_func
4201    
4202     /* System header to define __stub macros and hopefully few prototypes,
4203     which can conflict with char $ac_func (); below.
4204     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4205     <limits.h> exists even on freestanding compilers. */
4206    
4207     #ifdef __STDC__
4208     # include <limits.h>
4209     #else
4210     # include <assert.h>
4211     #endif
4212    
4213     #undef $ac_func
4214    
4215     /* Override any gcc2 internal prototype to avoid an error. */
4216     #ifdef __cplusplus
4217     extern "C"
4218     {
4219     #endif
4220     /* We use char because int might match the return type of a gcc2
4221     builtin and then its argument prototype would still apply. */
4222     char $ac_func ();
4223     /* The GNU C library defines this for functions which it implements
4224     to always fail with ENOSYS. Some functions are actually named
4225     something starting with __ and the normal name is an alias. */
4226     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4227     choke me
4228     #else
4229     char (*f) () = $ac_func;
4230     #endif
4231     #ifdef __cplusplus
4232     }
4233     #endif
4234    
4235     int
4236     main ()
4237     {
4238     return f != $ac_func;
4239     ;
4240     return 0;
4241     }
4242     _ACEOF
4243     rm -f conftest.$ac_objext conftest$ac_exeext
4244     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4245     (eval $ac_link) 2>conftest.er1
4246     ac_status=$?
4247     grep -v '^ *+' conftest.er1 >conftest.err
4248     rm -f conftest.er1
4249     cat conftest.err >&5
4250     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251     (exit $ac_status); } &&
4252     { ac_try='test -z "$ac_c_werror_flag"
4253     || test ! -s conftest.err'
4254     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4255     (eval $ac_try) 2>&5
4256     ac_status=$?
4257     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258     (exit $ac_status); }; } &&
4259     { ac_try='test -s conftest$ac_exeext'
4260     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4261     (eval $ac_try) 2>&5
4262     ac_status=$?
4263     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264     (exit $ac_status); }; }; then
4265     eval "$as_ac_var=yes"
4266     else
4267     echo "$as_me: failed program was:" >&5
4268     sed 's/^/| /' conftest.$ac_ext >&5
4269    
4270     eval "$as_ac_var=no"
4271     fi
4272     rm -f conftest.err conftest.$ac_objext \
4273     conftest$ac_exeext conftest.$ac_ext
4274     fi
4275     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4276     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4277     if test `eval echo '${'$as_ac_var'}'` = yes; then
4278     cat >>confdefs.h <<_ACEOF
4279     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4280     _ACEOF
4281    
4282     fi
4283     done
4284    
4285     if test "x$ac_cv_func_fork" = xyes; then
4286     echo "$as_me:$LINENO: checking for working fork" >&5
4287     echo $ECHO_N "checking for working fork... $ECHO_C" >&6
4288     if test "${ac_cv_func_fork_works+set}" = set; then
4289     echo $ECHO_N "(cached) $ECHO_C" >&6
4290     else
4291     if test "$cross_compiling" = yes; then
4292     ac_cv_func_fork_works=cross
4293     else
4294     cat >conftest.$ac_ext <<_ACEOF
4295     /* By Ruediger Kuhlmann. */
4296     #include <sys/types.h>
4297     #if HAVE_UNISTD_H
4298     # include <unistd.h>
4299     #endif
4300     /* Some systems only have a dummy stub for fork() */
4301     int main ()
4302     {
4303     if (fork() < 0)
4304     exit (1);
4305     exit (0);
4306     }
4307     _ACEOF
4308     rm -f conftest$ac_exeext
4309     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4310     (eval $ac_link) 2>&5
4311     ac_status=$?
4312     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4314     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315     (eval $ac_try) 2>&5
4316     ac_status=$?
4317     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318     (exit $ac_status); }; }; then
4319     ac_cv_func_fork_works=yes
4320     else
4321     echo "$as_me: program exited with status $ac_status" >&5
4322     echo "$as_me: failed program was:" >&5
4323     sed 's/^/| /' conftest.$ac_ext >&5
4324    
4325     ( exit $ac_status )
4326     ac_cv_func_fork_works=no
4327     fi
4328     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4329     fi
4330     fi
4331     echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
4332     echo "${ECHO_T}$ac_cv_func_fork_works" >&6
4333    
4334     else
4335     ac_cv_func_fork_works=$ac_cv_func_fork
4336     fi
4337     if test "x$ac_cv_func_fork_works" = xcross; then
4338     case $host in
4339     *-*-amigaos* | *-*-msdosdjgpp*)
4340     # Override, as these systems have only a dummy fork() stub
4341     ac_cv_func_fork_works=no
4342     ;;
4343     *)
4344     ac_cv_func_fork_works=yes
4345 sysadm 1.1 ;;
4346 sysadm 1.4 esac
4347     { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
4348     echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
4349     fi
4350     ac_cv_func_vfork_works=$ac_cv_func_vfork
4351     if test "x$ac_cv_func_vfork" = xyes; then
4352     echo "$as_me:$LINENO: checking for working vfork" >&5
4353     echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
4354     if test "${ac_cv_func_vfork_works+set}" = set; then
4355     echo $ECHO_N "(cached) $ECHO_C" >&6
4356     else
4357     if test "$cross_compiling" = yes; then
4358     ac_cv_func_vfork_works=cross
4359     else
4360     cat >conftest.$ac_ext <<_ACEOF
4361     /* confdefs.h. */
4362     _ACEOF
4363     cat confdefs.h >>conftest.$ac_ext
4364     cat >>conftest.$ac_ext <<_ACEOF
4365     /* end confdefs.h. */
4366     /* Thanks to Paul Eggert for this test. */
4367     #include <stdio.h>
4368     #include <stdlib.h>
4369     #include <sys/types.h>
4370     #include <sys/stat.h>
4371     #include <sys/wait.h>
4372     #if HAVE_UNISTD_H
4373     # include <unistd.h>
4374     #endif
4375     #if HAVE_VFORK_H
4376     # include <vfork.h>
4377     #endif
4378     /* On some sparc systems, changes by the child to local and incoming
4379     argument registers are propagated back to the parent. The compiler
4380     is told about this with #include <vfork.h>, but some compilers
4381     (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
4382     static variable whose address is put into a register that is
4383     clobbered by the vfork. */
4384     static void
4385     #ifdef __cplusplus
4386     sparc_address_test (int arg)
4387     # else
4388     sparc_address_test (arg) int arg;
4389     #endif
4390     {
4391     static pid_t child;
4392     if (!child) {
4393     child = vfork ();
4394     if (child < 0) {
4395     perror ("vfork");
4396     _exit(2);
4397     }
4398     if (!child) {
4399     arg = getpid();
4400     write(-1, "", 0);
4401     _exit (arg);
4402     }
4403     }
4404     }
4405    
4406     int
4407     main ()
4408     {
4409     pid_t parent = getpid ();
4410     pid_t child;
4411    
4412     sparc_address_test (0);
4413    
4414     child = vfork ();
4415    
4416     if (child == 0) {
4417     /* Here is another test for sparc vfork register problems. This
4418     test uses lots of local variables, at least as many local
4419     variables as main has allocated so far including compiler
4420     temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
4421     4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
4422     reuse the register of parent for one of the local variables,
4423     since it will think that parent can't possibly be used any more
4424     in this routine. Assigning to the local variable will thus
4425     munge parent in the parent process. */
4426     pid_t
4427     p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
4428     p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
4429     /* Convince the compiler that p..p7 are live; otherwise, it might
4430     use the same hardware register for all 8 local variables. */
4431     if (p != p1 || p != p2 || p != p3 || p != p4
4432     || p != p5 || p != p6 || p != p7)
4433     _exit(1);
4434    
4435     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
4436     from child file descriptors. If the child closes a descriptor
4437     before it execs or exits, this munges the parent's descriptor
4438     as well. Test for this by closing stdout in the child. */
4439     _exit(close(fileno(stdout)) != 0);
4440     } else {
4441     int status;
4442     struct stat st;
4443    
4444     while (wait(&status) != child)
4445     ;
4446     exit(
4447     /* Was there some problem with vforking? */
4448     child < 0
4449    
4450     /* Did the child fail? (This shouldn't happen.) */
4451     || status
4452    
4453     /* Did the vfork/compiler bug occur? */
4454     || parent != getpid()
4455    
4456     /* Did the file descriptor bug occur? */
4457     || fstat(fileno(stdout), &st) != 0
4458     );
4459     }
4460     }
4461     _ACEOF
4462     rm -f conftest$ac_exeext
4463     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4464     (eval $ac_link) 2>&5
4465     ac_status=$?
4466     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4468     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4469     (eval $ac_try) 2>&5
4470     ac_status=$?
4471     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472     (exit $ac_status); }; }; then
4473     ac_cv_func_vfork_works=yes
4474     else
4475     echo "$as_me: program exited with status $ac_status" >&5
4476     echo "$as_me: failed program was:" >&5
4477     sed 's/^/| /' conftest.$ac_ext >&5
4478    
4479     ( exit $ac_status )
4480     ac_cv_func_vfork_works=no
4481     fi
4482     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4483     fi
4484     fi
4485     echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
4486     echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
4487    
4488     fi;
4489     if test "x$ac_cv_func_fork_works" = xcross; then
4490     ac_cv_func_vfork_works=$ac_cv_func_vfork
4491     { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
4492     echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
4493     fi
4494    
4495     if test "x$ac_cv_func_vfork_works" = xyes; then
4496    
4497     cat >>confdefs.h <<\_ACEOF
4498     #define HAVE_WORKING_VFORK 1
4499     _ACEOF
4500    
4501     else
4502    
4503     cat >>confdefs.h <<\_ACEOF
4504     #define vfork fork
4505     _ACEOF
4506    
4507     fi
4508     if test "x$ac_cv_func_fork_works" = xyes; then
4509    
4510     cat >>confdefs.h <<\_ACEOF
4511     #define HAVE_WORKING_FORK 1
4512     _ACEOF
4513    
4514     fi
4515    
4516 sysadm 1.10 if test $ac_cv_c_compiler_gnu = yes; then
4517     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4518     echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
4519     if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4520     echo $ECHO_N "(cached) $ECHO_C" >&6
4521     else
4522     ac_pattern="Autoconf.*'x'"
4523     cat >conftest.$ac_ext <<_ACEOF
4524     /* confdefs.h. */
4525     _ACEOF
4526     cat confdefs.h >>conftest.$ac_ext
4527     cat >>conftest.$ac_ext <<_ACEOF
4528     /* end confdefs.h. */
4529     #include <sgtty.h>
4530     Autoconf TIOCGETP
4531     _ACEOF
4532     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4533     $EGREP "$ac_pattern" >/dev/null 2>&1; then
4534     ac_cv_prog_gcc_traditional=yes
4535     else
4536     ac_cv_prog_gcc_traditional=no
4537     fi
4538     rm -f conftest*
4539    
4540    
4541     if test $ac_cv_prog_gcc_traditional = no; then
4542     cat >conftest.$ac_ext <<_ACEOF
4543     /* confdefs.h. */
4544     _ACEOF
4545     cat confdefs.h >>conftest.$ac_ext
4546     cat >>conftest.$ac_ext <<_ACEOF
4547     /* end confdefs.h. */
4548     #include <termio.h>
4549     Autoconf TCGETA
4550     _ACEOF
4551     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4552     $EGREP "$ac_pattern" >/dev/null 2>&1; then
4553     ac_cv_prog_gcc_traditional=yes
4554     fi
4555     rm -f conftest*
4556    
4557     fi
4558     fi
4559     echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4560     echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
4561     if test $ac_cv_prog_gcc_traditional = yes; then
4562     CC="$CC -traditional"
4563     fi
4564     fi
4565    
4566 sysadm 1.8
4567     for ac_header in stdlib.h
4568     do
4569     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4570     if eval "test \"\${$as_ac_Header+set}\" = set"; then
4571     echo "$as_me:$LINENO: checking for $ac_header" >&5
4572     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4573     if eval "test \"\${$as_ac_Header+set}\" = set"; then
4574 sysadm 1.4 echo $ECHO_N "(cached) $ECHO_C" >&6
4575 sysadm 1.8 fi
4576     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4577     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4578 sysadm 1.4 else
4579 sysadm 1.8 # Is the header compilable?
4580     echo "$as_me:$LINENO: checking $ac_header usability" >&5
4581     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4582     cat >conftest.$ac_ext <<_ACEOF
4583 sysadm 1.4 /* confdefs.h. */
4584     _ACEOF
4585     cat confdefs.h >>conftest.$ac_ext
4586     cat >>conftest.$ac_ext <<_ACEOF
4587     /* end confdefs.h. */
4588 sysadm 1.8 $ac_includes_default
4589     #include <$ac_header>
4590 sysadm 1.4 _ACEOF
4591     rm -f conftest.$ac_objext
4592     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4593     (eval $ac_compile) 2>conftest.er1
4594     ac_status=$?
4595     grep -v '^ *+' conftest.er1 >conftest.err
4596     rm -f conftest.er1
4597     cat conftest.err >&5
4598     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599     (exit $ac_status); } &&
4600     { ac_try='test -z "$ac_c_werror_flag"
4601     || test ! -s conftest.err'
4602     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603     (eval $ac_try) 2>&5
4604     ac_status=$?
4605     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606     (exit $ac_status); }; } &&
4607     { ac_try='test -s conftest.$ac_objext'
4608     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609     (eval $ac_try) 2>&5
4610     ac_status=$?
4611     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612     (exit $ac_status); }; }; then
4613 sysadm 1.8 ac_header_compiler=yes
4614 sysadm 1.4 else
4615     echo "$as_me: failed program was:" >&5
4616     sed 's/^/| /' conftest.$ac_ext >&5
4617    
4618 sysadm 1.8 ac_header_compiler=no
4619 sysadm 1.4 fi
4620     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4621 sysadm 1.8 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4622     echo "${ECHO_T}$ac_header_compiler" >&6
4623 sysadm 1.4
4624 sysadm 1.8 # Is the header present?
4625     echo "$as_me:$LINENO: checking $ac_header presence" >&5
4626     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4627     cat >conftest.$ac_ext <<_ACEOF
4628 sysadm 1.4 /* confdefs.h. */
4629     _ACEOF
4630     cat confdefs.h >>conftest.$ac_ext
4631     cat >>conftest.$ac_ext <<_ACEOF
4632     /* end confdefs.h. */
4633 sysadm 1.8 #include <$ac_header>
4634 sysadm 1.4 _ACEOF
4635 sysadm 1.8 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4636     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4637     ac_status=$?
4638     grep -v '^ *+' conftest.er1 >conftest.err
4639     rm -f conftest.er1
4640     cat conftest.err >&5
4641     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642     (exit $ac_status); } >/dev/null; then
4643     if test -s conftest.err; then
4644     ac_cpp_err=$ac_c_preproc_warn_flag
4645     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4646     else
4647     ac_cpp_err=
4648     fi
4649 sysadm 1.4 else
4650 sysadm 1.8 ac_cpp_err=yes
4651 sysadm 1.4 fi
4652 sysadm 1.8 if test -z "$ac_cpp_err"; then
4653     ac_header_preproc=yes
4654     else
4655     echo "$as_me: failed program was:" >&5
4656     sed 's/^/| /' conftest.$ac_ext >&5
4657 sysadm 1.4
4658 sysadm 1.8 ac_header_preproc=no
4659 sysadm 1.4 fi
4660 sysadm 1.8 rm -f conftest.err conftest.$ac_ext
4661     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4662     echo "${ECHO_T}$ac_header_preproc" >&6
4663 sysadm 1.4
4664 sysadm 1.8 # So? What about this header?
4665     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4666     yes:no: )
4667     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4668     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4669     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4670     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4671     ac_header_preproc=yes
4672     ;;
4673     no:yes:* )
4674     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4675     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4676     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4677     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4678     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4679     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4680     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4681     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4682     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4683     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4684     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4685     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4686     (
4687     cat <<\_ASBOX
4688     ## ------------------------------- ##
4689     ## Report this to the bbsd lists. ##
4690     ## ------------------------------- ##
4691     _ASBOX
4692     ) |
4693     sed "s/^/$as_me: WARNING: /" >&2
4694     ;;
4695     esac
4696     echo "$as_me:$LINENO: checking for $ac_header" >&5
4697     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4698     if eval "test \"\${$as_ac_Header+set}\" = set"; then
4699     echo $ECHO_N "(cached) $ECHO_C" >&6
4700     else
4701     eval "$as_ac_Header=\$ac_header_preproc"
4702     fi
4703     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4704     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4705    
4706     fi
4707     if test `eval echo '${'$as_ac_Header'}'` = yes; then
4708     cat >>confdefs.h <<_ACEOF
4709     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4710 sysadm 1.4 _ACEOF
4711    
4712     fi
4713    
4714 sysadm 1.8 done
4715 sysadm 1.4
4716 sysadm 1.8 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
4717     echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
4718     if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
4719     echo $ECHO_N "(cached) $ECHO_C" >&6
4720     else
4721 sysadm 1.4 if test "$cross_compiling" = yes; then
4722 sysadm 1.8 ac_cv_func_malloc_0_nonnull=no
4723 sysadm 1.4 else
4724     cat >conftest.$ac_ext <<_ACEOF
4725     /* confdefs.h. */
4726     _ACEOF
4727     cat confdefs.h >>conftest.$ac_ext
4728     cat >>conftest.$ac_ext <<_ACEOF
4729     /* end confdefs.h. */
4730 sysadm 1.8 #if STDC_HEADERS || HAVE_STDLIB_H
4731     # include <stdlib.h>
4732 sysadm 1.4 #else
4733 sysadm 1.8 char *malloc ();
4734 sysadm 1.4 #endif
4735 sysadm 1.1
4736 sysadm 1.4 int
4737     main ()
4738     {
4739 sysadm 1.8 exit (malloc (0) ? 0 : 1);
4740     ;
4741     return 0;
4742 sysadm 1.4 }
4743     _ACEOF
4744     rm -f conftest$ac_exeext
4745     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4746     (eval $ac_link) 2>&5
4747     ac_status=$?
4748     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4750     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4751     (eval $ac_try) 2>&5
4752     ac_status=$?
4753     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754     (exit $ac_status); }; }; then
4755 sysadm 1.8 ac_cv_func_malloc_0_nonnull=yes
4756 sysadm 1.1 else
4757 sysadm 1.4 echo "$as_me: program exited with status $ac_status" >&5
4758     echo "$as_me: failed program was:" >&5
4759     sed 's/^/| /' conftest.$ac_ext >&5
4760    
4761     ( exit $ac_status )
4762 sysadm 1.8 ac_cv_func_malloc_0_nonnull=no
4763 sysadm 1.4 fi
4764     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4765     fi
4766     fi
4767 sysadm 1.8 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
4768     echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
4769     if test $ac_cv_func_malloc_0_nonnull = yes; then
4770    
4771     cat >>confdefs.h <<\_ACEOF
4772     #define HAVE_MALLOC 1
4773     _ACEOF
4774    
4775     else
4776     cat >>confdefs.h <<\_ACEOF
4777     #define HAVE_MALLOC 0
4778     _ACEOF
4779    
4780     case $LIBOBJS in
4781     "malloc.$ac_objext" | \
4782     *" malloc.$ac_objext" | \
4783     "malloc.$ac_objext "* | \
4784     *" malloc.$ac_objext "* ) ;;
4785     *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
4786     esac
4787    
4788 sysadm 1.4
4789     cat >>confdefs.h <<\_ACEOF
4790 sysadm 1.8 #define malloc rpl_malloc
4791 sysadm 1.4 _ACEOF
4792    
4793 sysadm 1.1 fi
4794    
4795 sysadm 1.8
4796    
4797 sysadm 1.10
4798    
4799     for ac_header in sys/select.h sys/socket.h
4800     do
4801     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4802     if eval "test \"\${$as_ac_Header+set}\" = set"; then
4803     echo "$as_me:$LINENO: checking for $ac_header" >&5
4804     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4805     if eval "test \"\${$as_ac_Header+set}\" = set"; then
4806     echo $ECHO_N "(cached) $ECHO_C" >&6
4807     fi
4808     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4809     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4810     else
4811     # Is the header compilable?
4812     echo "$as_me:$LINENO: checking $ac_header usability" >&5
4813     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4814     cat >conftest.$ac_ext <<_ACEOF
4815     /* confdefs.h. */
4816     _ACEOF
4817     cat confdefs.h >>conftest.$ac_ext
4818     cat >>conftest.$ac_ext <<_ACEOF
4819     /* end confdefs.h. */
4820     $ac_includes_default
4821     #include <$ac_header>
4822     _ACEOF
4823     rm -f conftest.$ac_objext
4824     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4825     (eval $ac_compile) 2>conftest.er1
4826     ac_status=$?
4827     grep -v '^ *+' conftest.er1 >conftest.err
4828     rm -f conftest.er1
4829     cat conftest.err >&5
4830     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831     (exit $ac_status); } &&
4832     { ac_try='test -z "$ac_c_werror_flag"
4833     || test ! -s conftest.err'
4834     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4835     (eval $ac_try) 2>&5
4836     ac_status=$?
4837     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838     (exit $ac_status); }; } &&
4839     { ac_try='test -s conftest.$ac_objext'
4840     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4841     (eval $ac_try) 2>&5
4842     ac_status=$?
4843     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844     (exit $ac_status); }; }; then
4845     ac_header_compiler=yes
4846     else
4847     echo "$as_me: failed program was:" >&5
4848     sed 's/^/| /' conftest.$ac_ext >&5
4849    
4850     ac_header_compiler=no
4851     fi
4852     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4853     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4854     echo "${ECHO_T}$ac_header_compiler" >&6
4855    
4856     # Is the header present?
4857     echo "$as_me:$LINENO: checking $ac_header presence" >&5
4858     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4859     cat >conftest.$ac_ext <<_ACEOF
4860     /* confdefs.h. */
4861     _ACEOF
4862     cat confdefs.h >>conftest.$ac_ext
4863     cat >>conftest.$ac_ext <<_ACEOF
4864     /* end confdefs.h. */
4865     #include <$ac_header>
4866     _ACEOF
4867     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4868     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4869     ac_status=$?
4870     grep -v '^ *+' conftest.er1 >conftest.err
4871     rm -f conftest.er1
4872     cat conftest.err >&5
4873     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874     (exit $ac_status); } >/dev/null; then
4875     if test -s conftest.err; then
4876     ac_cpp_err=$ac_c_preproc_warn_flag
4877     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4878     else
4879     ac_cpp_err=
4880     fi
4881     else
4882     ac_cpp_err=yes
4883     fi
4884     if test -z "$ac_cpp_err"; then
4885     ac_header_preproc=yes
4886     else
4887     echo "$as_me: failed program was:" >&5
4888     sed 's/^/| /' conftest.$ac_ext >&5
4889    
4890     ac_header_preproc=no
4891     fi
4892     rm -f conftest.err conftest.$ac_ext
4893     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4894     echo "${ECHO_T}$ac_header_preproc" >&6
4895    
4896     # So? What about this header?
4897     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4898     yes:no: )
4899     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4900     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4901     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4902     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4903     ac_header_preproc=yes
4904     ;;
4905     no:yes:* )
4906     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4907     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4908     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4909     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4910     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4911     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4912     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4913     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4914     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4915     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4916     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4917     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4918     (
4919     cat <<\_ASBOX
4920     ## ------------------------------- ##
4921     ## Report this to the bbsd lists. ##
4922     ## ------------------------------- ##
4923     _ASBOX
4924     ) |
4925     sed "s/^/$as_me: WARNING: /" >&2
4926     ;;
4927     esac
4928     echo "$as_me:$LINENO: checking for $ac_header" >&5
4929     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4930     if eval "test \"\${$as_ac_Header+set}\" = set"; then
4931     echo $ECHO_N "(cached) $ECHO_C" >&6
4932     else
4933     eval "$as_ac_Header=\$ac_header_preproc"
4934     fi
4935     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4936     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4937    
4938     fi
4939     if test `eval echo '${'$as_ac_Header'}'` = yes; then
4940     cat >>confdefs.h <<_ACEOF
4941     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4942     _ACEOF
4943    
4944     fi
4945    
4946     done
4947    
4948     echo "$as_me:$LINENO: checking types of arguments for select" >&5
4949     echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
4950     if test "${ac_cv_func_select_args+set}" = set; then
4951     echo $ECHO_N "(cached) $ECHO_C" >&6
4952     else
4953     for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
4954     for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
4955     for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
4956     cat >conftest.$ac_ext <<_ACEOF
4957     /* confdefs.h. */
4958     _ACEOF
4959     cat confdefs.h >>conftest.$ac_ext
4960     cat >>conftest.$ac_ext <<_ACEOF
4961     /* end confdefs.h. */
4962     $ac_includes_default
4963     #if HAVE_SYS_SELECT_H
4964     # include <sys/select.h>
4965     #endif
4966     #if HAVE_SYS_SOCKET_H
4967     # include <sys/socket.h>
4968     #endif
4969    
4970     int
4971     main ()
4972     {
4973     extern int select ($ac_arg1,
4974     $ac_arg234, $ac_arg234, $ac_arg234,
4975     $ac_arg5);
4976     ;
4977     return 0;
4978     }
4979     _ACEOF
4980     rm -f conftest.$ac_objext
4981     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4982     (eval $ac_compile) 2>conftest.er1
4983     ac_status=$?
4984     grep -v '^ *+' conftest.er1 >conftest.err
4985     rm -f conftest.er1
4986     cat conftest.err >&5
4987     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988     (exit $ac_status); } &&
4989     { ac_try='test -z "$ac_c_werror_flag"
4990     || test ! -s conftest.err'
4991     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4992     (eval $ac_try) 2>&5
4993     ac_status=$?
4994     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995     (exit $ac_status); }; } &&
4996     { ac_try='test -s conftest.$ac_objext'
4997     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4998     (eval $ac_try) 2>&5
4999     ac_status=$?
5000     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001     (exit $ac_status); }; }; then
5002     ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
5003     else
5004     echo "$as_me: failed program was:" >&5
5005     sed 's/^/| /' conftest.$ac_ext >&5
5006    
5007     fi
5008     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5009     done
5010     done
5011     done
5012     # Provide a safe default value.
5013     : ${ac_cv_func_select_args='int,int *,struct timeval *'}
5014    
5015     fi
5016     echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
5017     echo "${ECHO_T}$ac_cv_func_select_args" >&6
5018     ac_save_IFS=$IFS; IFS=','
5019     set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
5020     IFS=$ac_save_IFS
5021     shift
5022    
5023     cat >>confdefs.h <<_ACEOF
5024     #define SELECT_TYPE_ARG1 $1
5025     _ACEOF
5026    
5027    
5028     cat >>confdefs.h <<_ACEOF
5029     #define SELECT_TYPE_ARG234 ($2)
5030     _ACEOF
5031    
5032    
5033     cat >>confdefs.h <<_ACEOF
5034     #define SELECT_TYPE_ARG5 ($3)
5035     _ACEOF
5036    
5037     rm -f conftest*
5038    
5039 sysadm 1.4 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5040     echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5041     if test "${ac_cv_type_signal+set}" = set; then
5042     echo $ECHO_N "(cached) $ECHO_C" >&6
5043     else
5044     cat >conftest.$ac_ext <<_ACEOF
5045     /* confdefs.h. */
5046     _ACEOF
5047     cat confdefs.h >>conftest.$ac_ext
5048     cat >>conftest.$ac_ext <<_ACEOF
5049     /* end confdefs.h. */
5050     #include <sys/types.h>
5051     #include <signal.h>
5052     #ifdef signal
5053     # undef signal
5054     #endif
5055     #ifdef __cplusplus
5056     extern "C" void (*signal (int, void (*)(int)))(int);
5057     #else
5058     void (*signal ()) ();
5059     #endif
5060    
5061     int
5062     main ()
5063     {
5064     int i;
5065     ;
5066     return 0;
5067     }
5068     _ACEOF
5069     rm -f conftest.$ac_objext
5070     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5071     (eval $ac_compile) 2>conftest.er1
5072     ac_status=$?
5073     grep -v '^ *+' conftest.er1 >conftest.err
5074     rm -f conftest.er1
5075     cat conftest.err >&5
5076     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077     (exit $ac_status); } &&
5078     { ac_try='test -z "$ac_c_werror_flag"
5079     || test ! -s conftest.err'
5080     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081     (eval $ac_try) 2>&5
5082     ac_status=$?
5083     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084     (exit $ac_status); }; } &&
5085     { ac_try='test -s conftest.$ac_objext'
5086     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5087     (eval $ac_try) 2>&5
5088     ac_status=$?
5089     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090     (exit $ac_status); }; }; then
5091     ac_cv_type_signal=void
5092     else
5093     echo "$as_me: failed program was:" >&5
5094     sed 's/^/| /' conftest.$ac_ext >&5
5095    
5096     ac_cv_type_signal=int
5097     fi
5098     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5099 sysadm 1.1 fi
5100 sysadm 1.4 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5101     echo "${ECHO_T}$ac_cv_type_signal" >&6
5102    
5103     cat >>confdefs.h <<_ACEOF
5104     #define RETSIGTYPE $ac_cv_type_signal
5105     _ACEOF
5106    
5107    
5108    
5109     for ac_func in strftime
5110     do
5111     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5112     echo "$as_me:$LINENO: checking for $ac_func" >&5
5113     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5114     if eval "test \"\${$as_ac_var+set}\" = set"; then
5115     echo $ECHO_N "(cached) $ECHO_C" >&6
5116     else
5117     cat >conftest.$ac_ext <<_ACEOF
5118     /* confdefs.h. */
5119     _ACEOF
5120     cat confdefs.h >>conftest.$ac_ext
5121     cat >>conftest.$ac_ext <<_ACEOF
5122     /* end confdefs.h. */
5123     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5124     For example, HP-UX 11i <limits.h> declares gettimeofday. */
5125     #define $ac_func innocuous_$ac_func
5126    
5127     /* System header to define __stub macros and hopefully few prototypes,
5128     which can conflict with char $ac_func (); below.
5129     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5130     <limits.h> exists even on freestanding compilers. */
5131    
5132     #ifdef __STDC__
5133     # include <limits.h>
5134     #else
5135     # include <assert.h>
5136     #endif
5137    
5138     #undef $ac_func
5139    
5140     /* Override any gcc2 internal prototype to avoid an error. */
5141     #ifdef __cplusplus
5142     extern "C"
5143     {
5144     #endif
5145     /* We use char because int might match the return type of a gcc2
5146     builtin and then its argument prototype would still apply. */
5147     char $ac_func ();
5148     /* The GNU C library defines this for functions which it implements
5149     to always fail with ENOSYS. Some functions are actually named
5150     something starting with __ and the normal name is an alias. */
5151     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5152     choke me
5153     #else
5154     char (*f) () = $ac_func;
5155     #endif
5156     #ifdef __cplusplus
5157     }
5158     #endif
5159    
5160     int
5161     main ()
5162     {
5163     return f != $ac_func;
5164     ;
5165     return 0;
5166     }
5167     _ACEOF
5168     rm -f conftest.$ac_objext conftest$ac_exeext
5169     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5170     (eval $ac_link) 2>conftest.er1
5171     ac_status=$?
5172     grep -v '^ *+' conftest.er1 >conftest.err
5173     rm -f conftest.er1
5174     cat conftest.err >&5
5175     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176     (exit $ac_status); } &&
5177     { ac_try='test -z "$ac_c_werror_flag"
5178     || test ! -s conftest.err'
5179     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180     (eval $ac_try) 2>&5
5181     ac_status=$?
5182     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183     (exit $ac_status); }; } &&
5184     { ac_try='test -s conftest$ac_exeext'
5185     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5186     (eval $ac_try) 2>&5
5187     ac_status=$?
5188     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189     (exit $ac_status); }; }; then
5190     eval "$as_ac_var=yes"
5191     else
5192     echo "$as_me: failed program was:" >&5
5193     sed 's/^/| /' conftest.$ac_ext >&5
5194 sysadm 1.1
5195 sysadm 1.4 eval "$as_ac_var=no"
5196     fi
5197     rm -f conftest.err conftest.$ac_objext \
5198     conftest$ac_exeext conftest.$ac_ext
5199     fi
5200     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5201     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5202     if test `eval echo '${'$as_ac_var'}'` = yes; then
5203     cat >>confdefs.h <<_ACEOF
5204     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5205     _ACEOF
5206 sysadm 1.1
5207 sysadm 1.4 else
5208     # strftime is in -lintl on SCO UNIX.
5209     echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
5210     echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
5211     if test "${ac_cv_lib_intl_strftime+set}" = set; then
5212     echo $ECHO_N "(cached) $ECHO_C" >&6
5213     else
5214     ac_check_lib_save_LIBS=$LIBS
5215     LIBS="-lintl $LIBS"
5216     cat >conftest.$ac_ext <<_ACEOF
5217     /* confdefs.h. */
5218     _ACEOF
5219     cat confdefs.h >>conftest.$ac_ext
5220     cat >>conftest.$ac_ext <<_ACEOF
5221     /* end confdefs.h. */
5222 sysadm 1.1
5223 sysadm 1.4 /* Override any gcc2 internal prototype to avoid an error. */
5224     #ifdef __cplusplus
5225     extern "C"
5226     #endif
5227     /* We use char because int might match the return type of a gcc2
5228     builtin and then its argument prototype would still apply. */
5229     char strftime ();
5230     int
5231     main ()
5232     {
5233     strftime ();
5234     ;
5235     return 0;
5236     }
5237     _ACEOF
5238     rm -f conftest.$ac_objext conftest$ac_exeext
5239     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5240     (eval $ac_link) 2>conftest.er1
5241     ac_status=$?
5242     grep -v '^ *+' conftest.er1 >conftest.err
5243     rm -f conftest.er1
5244     cat conftest.err >&5
5245     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246     (exit $ac_status); } &&
5247     { ac_try='test -z "$ac_c_werror_flag"
5248     || test ! -s conftest.err'
5249     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5250     (eval $ac_try) 2>&5
5251     ac_status=$?
5252     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253     (exit $ac_status); }; } &&
5254     { ac_try='test -s conftest$ac_exeext'
5255     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5256     (eval $ac_try) 2>&5
5257     ac_status=$?
5258     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259     (exit $ac_status); }; }; then
5260     ac_cv_lib_intl_strftime=yes
5261 sysadm 1.2 else
5262 sysadm 1.4 echo "$as_me: failed program was:" >&5
5263     sed 's/^/| /' conftest.$ac_ext >&5
5264    
5265     ac_cv_lib_intl_strftime=no
5266     fi
5267     rm -f conftest.err conftest.$ac_objext \
5268     conftest$ac_exeext conftest.$ac_ext
5269     LIBS=$ac_check_lib_save_LIBS
5270     fi
5271     echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
5272     echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
5273     if test $ac_cv_lib_intl_strftime = yes; then
5274     cat >>confdefs.h <<\_ACEOF
5275     #define HAVE_STRFTIME 1
5276     _ACEOF
5277    
5278     LIBS="-lintl $LIBS"
5279     fi
5280    
5281 sysadm 1.2 fi
5282 sysadm 1.4 done
5283 sysadm 1.2
5284    
5285 sysadm 1.8 for ac_func in vprintf
5286     do
5287     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5288     echo "$as_me:$LINENO: checking for $ac_func" >&5
5289     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5290     if eval "test \"\${$as_ac_var+set}\" = set"; then
5291     echo $ECHO_N "(cached) $ECHO_C" >&6
5292     else
5293     cat >conftest.$ac_ext <<_ACEOF
5294     /* confdefs.h. */
5295     _ACEOF
5296     cat confdefs.h >>conftest.$ac_ext
5297     cat >>conftest.$ac_ext <<_ACEOF
5298     /* end confdefs.h. */
5299     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5300     For example, HP-UX 11i <limits.h> declares gettimeofday. */
5301     #define $ac_func innocuous_$ac_func
5302    
5303     /* System header to define __stub macros and hopefully few prototypes,
5304     which can conflict with char $ac_func (); below.
5305     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5306     <limits.h> exists even on freestanding compilers. */
5307    
5308     #ifdef __STDC__
5309     # include <limits.h>
5310     #else
5311     # include <assert.h>
5312     #endif
5313    
5314     #undef $ac_func
5315    
5316     /* Override any gcc2 internal prototype to avoid an error. */
5317     #ifdef __cplusplus
5318     extern "C"
5319     {
5320     #endif
5321     /* We use char because int might match the return type of a gcc2
5322     builtin and then its argument prototype would still apply. */
5323     char $ac_func ();
5324     /* The GNU C library defines this for functions which it implements
5325     to always fail with ENOSYS. Some functions are actually named
5326     something starting with __ and the normal name is an alias. */
5327     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5328     choke me
5329     #else
5330     char (*f) () = $ac_func;
5331     #endif
5332     #ifdef __cplusplus
5333     }
5334     #endif
5335    
5336     int
5337     main ()
5338     {
5339     return f != $ac_func;
5340     ;
5341     return 0;
5342     }
5343     _ACEOF
5344     rm -f conftest.$ac_objext conftest$ac_exeext
5345     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5346     (eval $ac_link) 2>conftest.er1
5347     ac_status=$?
5348     grep -v '^ *+' conftest.er1 >conftest.err
5349     rm -f conftest.er1
5350     cat conftest.err >&5
5351     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352     (exit $ac_status); } &&
5353     { ac_try='test -z "$ac_c_werror_flag"
5354     || test ! -s conftest.err'
5355     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5356     (eval $ac_try) 2>&5
5357     ac_status=$?
5358     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359     (exit $ac_status); }; } &&
5360     { ac_try='test -s conftest$ac_exeext'
5361     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5362     (eval $ac_try) 2>&5
5363     ac_status=$?
5364     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365     (exit $ac_status); }; }; then
5366     eval "$as_ac_var=yes"
5367     else
5368     echo "$as_me: failed program was:" >&5
5369     sed 's/^/| /' conftest.$ac_ext >&5
5370    
5371     eval "$as_ac_var=no"
5372     fi
5373     rm -f conftest.err conftest.$ac_objext \
5374     conftest$ac_exeext conftest.$ac_ext
5375     fi
5376     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5377     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5378     if test `eval echo '${'$as_ac_var'}'` = yes; then
5379     cat >>confdefs.h <<_ACEOF
5380     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5381     _ACEOF
5382    
5383     echo "$as_me:$LINENO: checking for _doprnt" >&5
5384     echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
5385     if test "${ac_cv_func__doprnt+set}" = set; then
5386     echo $ECHO_N "(cached) $ECHO_C" >&6
5387     else
5388     cat >conftest.$ac_ext <<_ACEOF
5389     /* confdefs.h. */
5390     _ACEOF
5391     cat confdefs.h >>conftest.$ac_ext
5392     cat >>conftest.$ac_ext <<_ACEOF
5393     /* end confdefs.h. */
5394     /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
5395     For example, HP-UX 11i <limits.h> declares gettimeofday. */
5396     #define _doprnt innocuous__doprnt
5397    
5398     /* System header to define __stub macros and hopefully few prototypes,
5399     which can conflict with char _doprnt (); below.
5400     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5401     <limits.h> exists even on freestanding compilers. */
5402    
5403     #ifdef __STDC__
5404     # include <limits.h>
5405     #else
5406     # include <assert.h>
5407     #endif
5408    
5409     #undef _doprnt
5410    
5411     /* Override any gcc2 internal prototype to avoid an error. */
5412     #ifdef __cplusplus
5413     extern "C"
5414     {
5415     #endif
5416     /* We use char because int might match the return type of a gcc2
5417     builtin and then its argument prototype would still apply. */
5418     char _doprnt ();
5419     /* The GNU C library defines this for functions which it implements
5420     to always fail with ENOSYS. Some functions are actually named
5421     something starting with __ and the normal name is an alias. */
5422     #if defined (__stub__doprnt) || defined (__stub____doprnt)
5423     choke me
5424     #else
5425     char (*f) () = _doprnt;
5426     #endif
5427     #ifdef __cplusplus
5428     }
5429     #endif
5430    
5431     int
5432     main ()
5433     {
5434     return f != _doprnt;
5435     ;
5436     return 0;
5437     }
5438     _ACEOF
5439     rm -f conftest.$ac_objext conftest$ac_exeext
5440     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5441     (eval $ac_link) 2>conftest.er1
5442     ac_status=$?
5443     grep -v '^ *+' conftest.er1 >conftest.err
5444     rm -f conftest.er1
5445     cat conftest.err >&5
5446     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447     (exit $ac_status); } &&
5448     { ac_try='test -z "$ac_c_werror_flag"
5449     || test ! -s conftest.err'
5450     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5451     (eval $ac_try) 2>&5
5452     ac_status=$?
5453     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454     (exit $ac_status); }; } &&
5455     { ac_try='test -s conftest$ac_exeext'
5456     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5457     (eval $ac_try) 2>&5
5458     ac_status=$?
5459     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460     (exit $ac_status); }; }; then
5461     ac_cv_func__doprnt=yes
5462     else
5463     echo "$as_me: failed program was:" >&5
5464     sed 's/^/| /' conftest.$ac_ext >&5
5465    
5466     ac_cv_func__doprnt=no
5467     fi
5468     rm -f conftest.err conftest.$ac_objext \
5469     conftest$ac_exeext conftest.$ac_ext
5470     fi
5471     echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
5472     echo "${ECHO_T}$ac_cv_func__doprnt" >&6
5473     if test $ac_cv_func__doprnt = yes; then
5474    
5475     cat >>confdefs.h <<\_ACEOF
5476     #define HAVE_DOPRNT 1
5477     _ACEOF
5478    
5479     fi
5480    
5481     fi
5482     done
5483    
5484    
5485    
5486    
5487    
5488    
5489    
5490 sysadm 1.2
5491 sysadm 1.1
5492 sysadm 1.10
5493 sysadm 1.11
5494    
5495     for ac_func in bzero dup2 gethostbyname inet_ntoa memset mkdir regcomp select socket strstr
5496 sysadm 1.4 do
5497     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5498     echo "$as_me:$LINENO: checking for $ac_func" >&5
5499     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5500     if eval "test \"\${$as_ac_var+set}\" = set"; then
5501     echo $ECHO_N "(cached) $ECHO_C" >&6
5502     else
5503     cat >conftest.$ac_ext <<_ACEOF
5504     /* confdefs.h. */
5505     _ACEOF
5506     cat confdefs.h >>conftest.$ac_ext
5507     cat >>conftest.$ac_ext <<_ACEOF
5508     /* end confdefs.h. */
5509     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5510     For example, HP-UX 11i <limits.h> declares gettimeofday. */
5511     #define $ac_func innocuous_$ac_func
5512    
5513     /* System header to define __stub macros and hopefully few prototypes,
5514     which can conflict with char $ac_func (); below.
5515     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5516     <limits.h> exists even on freestanding compilers. */
5517    
5518     #ifdef __STDC__
5519     # include <limits.h>
5520     #else
5521     # include <assert.h>
5522     #endif
5523    
5524     #undef $ac_func
5525    
5526     /* Override any gcc2 internal prototype to avoid an error. */
5527     #ifdef __cplusplus
5528     extern "C"
5529     {
5530     #endif
5531     /* We use char because int might match the return type of a gcc2
5532     builtin and then its argument prototype would still apply. */
5533     char $ac_func ();
5534     /* The GNU C library defines this for functions which it implements
5535     to always fail with ENOSYS. Some functions are actually named
5536     something starting with __ and the normal name is an alias. */
5537     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5538     choke me
5539     #else
5540     char (*f) () = $ac_func;
5541     #endif
5542     #ifdef __cplusplus
5543     }
5544     #endif
5545    
5546     int
5547     main ()
5548     {
5549     return f != $ac_func;
5550     ;
5551     return 0;
5552     }
5553     _ACEOF
5554     rm -f conftest.$ac_objext conftest$ac_exeext
5555     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5556     (eval $ac_link) 2>conftest.er1
5557     ac_status=$?
5558     grep -v '^ *+' conftest.er1 >conftest.err
5559     rm -f conftest.er1
5560     cat conftest.err >&5
5561     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562     (exit $ac_status); } &&
5563     { ac_try='test -z "$ac_c_werror_flag"
5564     || test ! -s conftest.err'
5565     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5566     (eval $ac_try) 2>&5
5567     ac_status=$?
5568     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569     (exit $ac_status); }; } &&
5570     { ac_try='test -s conftest$ac_exeext'
5571     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5572     (eval $ac_try) 2>&5
5573     ac_status=$?
5574     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575     (exit $ac_status); }; }; then
5576     eval "$as_ac_var=yes"
5577     else
5578     echo "$as_me: failed program was:" >&5
5579     sed 's/^/| /' conftest.$ac_ext >&5
5580    
5581     eval "$as_ac_var=no"
5582     fi
5583     rm -f conftest.err conftest.$ac_objext \
5584     conftest$ac_exeext conftest.$ac_ext
5585     fi
5586     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5587     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5588     if test `eval echo '${'$as_ac_var'}'` = yes; then
5589     cat >>confdefs.h <<_ACEOF
5590     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5591     _ACEOF
5592 sysadm 1.1
5593 sysadm 1.4 fi
5594     done
5595 sysadm 1.1
5596    
5597 sysadm 1.10 ac_config_files="$ac_config_files Makefile src/Makefile utils/Makefile"
5598 sysadm 1.1
5599     cat >confcache <<\_ACEOF
5600     # This file is a shell script that caches the results of configure
5601     # tests run on this system so they can be shared between configure
5602     # scripts and configure runs, see configure's option --config-cache.
5603     # It is not useful on other systems. If it contains results you don't
5604     # want to keep, you may remove or edit it.
5605     #
5606     # config.status only pays attention to the cache file if you give it
5607     # the --recheck option to rerun configure.
5608     #
5609     # `ac_cv_env_foo' variables (set or unset) will be overridden when
5610     # loading this file, other *unset* `ac_cv_foo' will be assigned the
5611     # following values.
5612    
5613     _ACEOF
5614    
5615     # The following way of writing the cache mishandles newlines in values,
5616     # but we know of no workaround that is simple, portable, and efficient.
5617     # So, don't put newlines in cache variables' values.
5618     # Ultrix sh set writes to stderr and can't be redirected directly,
5619     # and sets the high bit in the cache file unless we assign to the vars.
5620     {
5621     (set) 2>&1 |
5622     case `(ac_space=' '; set | grep ac_space) 2>&1` in
5623     *ac_space=\ *)
5624     # `set' does not quote correctly, so add quotes (double-quote
5625     # substitution turns \\\\ into \\, and sed turns \\ into \).
5626     sed -n \
5627 sysadm 1.2 "s/'/'\\\\''/g;
5628     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5629 sysadm 1.1 ;;
5630     *)
5631     # `set' quotes correctly as required by POSIX, so do not add quotes.
5632     sed -n \
5633 sysadm 1.2 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5634 sysadm 1.1 ;;
5635     esac;
5636     } |
5637     sed '
5638     t clear
5639     : clear
5640     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5641     t end
5642     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5643     : end' >>confcache
5644     if diff $cache_file confcache >/dev/null 2>&1; then :; else
5645     if test -w $cache_file; then
5646     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5647     cat confcache >$cache_file
5648     else
5649     echo "not updating unwritable cache $cache_file"
5650     fi
5651     fi
5652     rm -f confcache
5653    
5654     test "x$prefix" = xNONE && prefix=$ac_default_prefix
5655     # Let make expand exec_prefix.
5656     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5657    
5658     # VPATH may cause trouble with some makes, so we remove $(srcdir),
5659     # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5660     # trailing colons and then remove the whole line if VPATH becomes empty
5661     # (actually we leave an empty line to preserve line numbers).
5662     if test "x$srcdir" = x.; then
5663 sysadm 1.2 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5664 sysadm 1.1 s/:*\$(srcdir):*/:/;
5665     s/:*\${srcdir}:*/:/;
5666     s/:*@srcdir@:*/:/;
5667 sysadm 1.2 s/^\([^=]*=[ ]*\):*/\1/;
5668 sysadm 1.1 s/:*$//;
5669 sysadm 1.2 s/^[^=]*=[ ]*$//;
5670 sysadm 1.1 }'
5671     fi
5672    
5673     # Transform confdefs.h into DEFS.
5674     # Protect against shell expansion while executing Makefile rules.
5675     # Protect against Makefile macro expansion.
5676     #
5677     # If the first sed substitution is executed (which looks for macros that
5678     # take arguments), then we branch to the quote section. Otherwise,
5679     # look for a macro that doesn't take arguments.
5680     cat >confdef2opt.sed <<\_ACEOF
5681     t clear
5682     : clear
5683 sysadm 1.2 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
5684 sysadm 1.1 t quote
5685 sysadm 1.2 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
5686 sysadm 1.1 t quote
5687     d
5688     : quote
5689 sysadm 1.2 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
5690 sysadm 1.1 s,\[,\\&,g
5691     s,\],\\&,g
5692     s,\$,$$,g
5693     p
5694     _ACEOF
5695     # We use echo to avoid assuming a particular line-breaking character.
5696     # The extra dot is to prevent the shell from consuming trailing
5697     # line-breaks from the sub-command output. A line-break within
5698     # single-quotes doesn't work because, if this script is created in a
5699     # platform that uses two characters for line-breaks (e.g., DOS), tr
5700     # would break.
5701     ac_LF_and_DOT=`echo; echo .`
5702     DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
5703     rm -f confdef2opt.sed
5704    
5705    
5706     ac_libobjs=
5707     ac_ltlibobjs=
5708     for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5709     # 1. Remove the extension, and $U if already installed.
5710     ac_i=`echo "$ac_i" |
5711 sysadm 1.2 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5712 sysadm 1.1 # 2. Add them.
5713     ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5714     ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5715     done
5716     LIBOBJS=$ac_libobjs
5717    
5718     LTLIBOBJS=$ac_ltlibobjs
5719    
5720    
5721     if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5722     { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5723     Usually this means the macro was only invoked conditionally." >&5
5724     echo "$as_me: error: conditional \"AMDEP\" was never defined.
5725     Usually this means the macro was only invoked conditionally." >&2;}
5726     { (exit 1); exit 1; }; }
5727     fi
5728 sysadm 1.2 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5729     { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5730     Usually this means the macro was only invoked conditionally." >&5
5731     echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5732     Usually this means the macro was only invoked conditionally." >&2;}
5733     { (exit 1); exit 1; }; }
5734     fi
5735 sysadm 1.1
5736     : ${CONFIG_STATUS=./config.status}
5737     ac_clean_files_save=$ac_clean_files
5738     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5739     { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5740     echo "$as_me: creating $CONFIG_STATUS" >&6;}
5741     cat >$CONFIG_STATUS <<_ACEOF
5742     #! $SHELL
5743     # Generated by $as_me.
5744     # Run this file to recreate the current configuration.
5745     # Compiler output produced by configure, useful for debugging
5746     # configure, is in config.log if it exists.
5747    
5748     debug=false
5749     ac_cs_recheck=false
5750     ac_cs_silent=false
5751     SHELL=\${CONFIG_SHELL-$SHELL}
5752     _ACEOF
5753    
5754     cat >>$CONFIG_STATUS <<\_ACEOF
5755     ## --------------------- ##
5756     ## M4sh Initialization. ##
5757     ## --------------------- ##
5758    
5759     # Be Bourne compatible
5760     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5761     emulate sh
5762     NULLCMD=:
5763     # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5764     # is contrary to our usage. Disable this feature.
5765     alias -g '${1+"$@"}'='"$@"'
5766     elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5767     set -o posix
5768     fi
5769 sysadm 1.2 DUALCASE=1; export DUALCASE # for MKS sh
5770 sysadm 1.1
5771     # Support unset when possible.
5772 sysadm 1.2 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5773 sysadm 1.1 as_unset=unset
5774     else
5775     as_unset=false
5776     fi
5777    
5778    
5779     # Work around bugs in pre-3.0 UWIN ksh.
5780     $as_unset ENV MAIL MAILPATH
5781     PS1='$ '
5782     PS2='> '
5783     PS4='+ '
5784    
5785     # NLS nuisances.
5786     for as_var in \
5787     LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5788     LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5789     LC_TELEPHONE LC_TIME
5790     do
5791 sysadm 1.2 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5792 sysadm 1.1 eval $as_var=C; export $as_var
5793     else
5794     $as_unset $as_var
5795     fi
5796     done
5797    
5798     # Required to use basename.
5799     if expr a : '\(a\)' >/dev/null 2>&1; then
5800     as_expr=expr
5801     else
5802     as_expr=false
5803     fi
5804    
5805     if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5806     as_basename=basename
5807     else
5808     as_basename=false
5809     fi
5810    
5811    
5812     # Name of the executable.
5813     as_me=`$as_basename "$0" ||
5814     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5815     X"$0" : 'X\(//\)$' \| \
5816     X"$0" : 'X\(/\)$' \| \
5817     . : '\(.\)' 2>/dev/null ||
5818     echo X/"$0" |
5819     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5820     /^X\/\(\/\/\)$/{ s//\1/; q; }
5821     /^X\/\(\/\).*/{ s//\1/; q; }
5822     s/.*/./; q'`
5823    
5824    
5825     # PATH needs CR, and LINENO needs CR and PATH.
5826     # Avoid depending upon Character Ranges.
5827     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5828     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5829     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5830     as_cr_digits='0123456789'
5831     as_cr_alnum=$as_cr_Letters$as_cr_digits
5832    
5833     # The user is always right.
5834     if test "${PATH_SEPARATOR+set}" != set; then
5835     echo "#! /bin/sh" >conf$$.sh
5836     echo "exit 0" >>conf$$.sh
5837     chmod +x conf$$.sh
5838     if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5839     PATH_SEPARATOR=';'
5840     else
5841     PATH_SEPARATOR=:
5842     fi
5843     rm -f conf$$.sh
5844     fi
5845    
5846    
5847     as_lineno_1=$LINENO
5848     as_lineno_2=$LINENO
5849     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5850     test "x$as_lineno_1" != "x$as_lineno_2" &&
5851     test "x$as_lineno_3" = "x$as_lineno_2" || {
5852     # Find who we are. Look in the path if we contain no path at all
5853     # relative or not.
5854     case $0 in
5855     *[\\/]* ) as_myself=$0 ;;
5856     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857     for as_dir in $PATH
5858     do
5859     IFS=$as_save_IFS
5860     test -z "$as_dir" && as_dir=.
5861     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5862     done
5863    
5864     ;;
5865     esac
5866     # We did not find ourselves, most probably we were run as `sh COMMAND'
5867     # in which case we are not to be found in the path.
5868     if test "x$as_myself" = x; then
5869     as_myself=$0
5870     fi
5871     if test ! -f "$as_myself"; then
5872     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5873     echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5874     { (exit 1); exit 1; }; }
5875     fi
5876     case $CONFIG_SHELL in
5877     '')
5878     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879     for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5880     do
5881     IFS=$as_save_IFS
5882     test -z "$as_dir" && as_dir=.
5883     for as_base in sh bash ksh sh5; do
5884     case $as_dir in
5885     /*)
5886     if ("$as_dir/$as_base" -c '
5887     as_lineno_1=$LINENO
5888     as_lineno_2=$LINENO
5889     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5890     test "x$as_lineno_1" != "x$as_lineno_2" &&
5891     test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5892     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5893     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5894     CONFIG_SHELL=$as_dir/$as_base
5895     export CONFIG_SHELL
5896     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5897     fi;;
5898     esac
5899     done
5900     done
5901     ;;
5902     esac
5903    
5904     # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5905     # uniformly replaced by the line number. The first 'sed' inserts a
5906     # line-number line before each line; the second 'sed' does the real
5907     # work. The second script uses 'N' to pair each line-number line
5908     # with the numbered line, and appends trailing '-' during
5909     # substitution so that $LINENO is not a special case at line end.
5910     # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5911     # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5912     sed '=' <$as_myself |
5913     sed '
5914     N
5915     s,$,-,
5916     : loop
5917     s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5918     t loop
5919     s,-$,,
5920     s,^['$as_cr_digits']*\n,,
5921     ' >$as_me.lineno &&
5922     chmod +x $as_me.lineno ||
5923     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5924     echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5925     { (exit 1); exit 1; }; }
5926    
5927     # Don't try to exec as it changes $[0], causing all sort of problems
5928     # (the dirname of $[0] is not the place where we might find the
5929     # original and so on. Autoconf is especially sensible to this).
5930     . ./$as_me.lineno
5931     # Exit status is that of the last command.
5932     exit
5933     }
5934    
5935    
5936     case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5937     *c*,-n*) ECHO_N= ECHO_C='
5938     ' ECHO_T=' ' ;;
5939     *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5940     *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5941     esac
5942    
5943     if expr a : '\(a\)' >/dev/null 2>&1; then
5944     as_expr=expr
5945     else
5946     as_expr=false
5947     fi
5948    
5949     rm -f conf$$ conf$$.exe conf$$.file
5950     echo >conf$$.file
5951     if ln -s conf$$.file conf$$ 2>/dev/null; then
5952     # We could just check for DJGPP; but this test a) works b) is more generic
5953     # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5954     if test -f conf$$.exe; then
5955     # Don't use ln at all; we don't have any links
5956     as_ln_s='cp -p'
5957     else
5958     as_ln_s='ln -s'
5959     fi
5960     elif ln conf$$.file conf$$ 2>/dev/null; then
5961     as_ln_s=ln
5962     else
5963     as_ln_s='cp -p'
5964     fi
5965     rm -f conf$$ conf$$.exe conf$$.file
5966    
5967     if mkdir -p . 2>/dev/null; then
5968     as_mkdir_p=:
5969     else
5970 sysadm 1.2 test -d ./-p && rmdir ./-p
5971 sysadm 1.1 as_mkdir_p=false
5972     fi
5973    
5974     as_executable_p="test -f"
5975    
5976     # Sed expression to map a string onto a valid CPP name.
5977 sysadm 1.2 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5978 sysadm 1.1
5979     # Sed expression to map a string onto a valid variable name.
5980 sysadm 1.2 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5981 sysadm 1.1
5982    
5983     # IFS
5984     # We need space, tab and new line, in precisely that order.
5985     as_nl='
5986     '
5987     IFS=" $as_nl"
5988    
5989     # CDPATH.
5990     $as_unset CDPATH
5991    
5992     exec 6>&1
5993    
5994     # Open the log real soon, to keep \$[0] and so on meaningful, and to
5995     # report actual input values of CONFIG_FILES etc. instead of their
5996     # values after options handling. Logging --version etc. is OK.
5997     exec 5>>config.log
5998     {
5999     echo
6000     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6001     ## Running $as_me. ##
6002     _ASBOX
6003     } >&5
6004     cat >&5 <<_CSEOF
6005    
6006     This file was extended by bbsd $as_me 1.0, which was
6007 sysadm 1.2 generated by GNU Autoconf 2.59. Invocation command line was
6008 sysadm 1.1
6009     CONFIG_FILES = $CONFIG_FILES
6010     CONFIG_HEADERS = $CONFIG_HEADERS
6011     CONFIG_LINKS = $CONFIG_LINKS
6012     CONFIG_COMMANDS = $CONFIG_COMMANDS
6013     $ $0 $@
6014    
6015     _CSEOF
6016     echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6017     echo >&5
6018     _ACEOF
6019    
6020     # Files that config.status was made for.
6021     if test -n "$ac_config_files"; then
6022     echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6023     fi
6024    
6025     if test -n "$ac_config_headers"; then
6026     echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6027     fi
6028    
6029     if test -n "$ac_config_links"; then
6030     echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6031     fi
6032    
6033     if test -n "$ac_config_commands"; then
6034     echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6035     fi
6036    
6037     cat >>$CONFIG_STATUS <<\_ACEOF
6038    
6039     ac_cs_usage="\
6040     \`$as_me' instantiates files from templates according to the
6041     current configuration.
6042    
6043     Usage: $0 [OPTIONS] [FILE]...
6044    
6045     -h, --help print this help, then exit
6046     -V, --version print version number, then exit
6047     -q, --quiet do not print progress messages
6048     -d, --debug don't remove temporary files
6049     --recheck update $as_me by reconfiguring in the same conditions
6050     --file=FILE[:TEMPLATE]
6051 sysadm 1.2 instantiate the configuration file FILE
6052 sysadm 1.1
6053     Configuration files:
6054     $config_files
6055    
6056     Configuration commands:
6057     $config_commands
6058    
6059     Report bugs to <bug-autoconf@gnu.org>."
6060     _ACEOF
6061    
6062     cat >>$CONFIG_STATUS <<_ACEOF
6063     ac_cs_version="\\
6064     bbsd config.status 1.0
6065 sysadm 1.2 configured by $0, generated by GNU Autoconf 2.59,
6066 sysadm 1.1 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6067    
6068 sysadm 1.2 Copyright (C) 2003 Free Software Foundation, Inc.
6069 sysadm 1.1 This config.status script is free software; the Free Software Foundation
6070     gives unlimited permission to copy, distribute and modify it."
6071     srcdir=$srcdir
6072     INSTALL="$INSTALL"
6073     _ACEOF
6074    
6075     cat >>$CONFIG_STATUS <<\_ACEOF
6076     # If no file are specified by the user, then we need to provide default
6077     # value. By we need to know if files were specified by the user.
6078     ac_need_defaults=:
6079     while test $# != 0
6080     do
6081     case $1 in
6082     --*=*)
6083     ac_option=`expr "x$1" : 'x\([^=]*\)='`
6084     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6085     ac_shift=:
6086     ;;
6087     -*)
6088     ac_option=$1
6089     ac_optarg=$2
6090     ac_shift=shift
6091     ;;
6092     *) # This is not an option, so the user has probably given explicit
6093     # arguments.
6094     ac_option=$1
6095     ac_need_defaults=false;;
6096     esac
6097    
6098     case $ac_option in
6099     # Handling of the options.
6100     _ACEOF
6101     cat >>$CONFIG_STATUS <<\_ACEOF
6102     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6103     ac_cs_recheck=: ;;
6104     --version | --vers* | -V )
6105     echo "$ac_cs_version"; exit 0 ;;
6106     --he | --h)
6107     # Conflict between --help and --header
6108     { { echo "$as_me:$LINENO: error: ambiguous option: $1
6109     Try \`$0 --help' for more information." >&5
6110     echo "$as_me: error: ambiguous option: $1
6111     Try \`$0 --help' for more information." >&2;}
6112     { (exit 1); exit 1; }; };;
6113     --help | --hel | -h )
6114     echo "$ac_cs_usage"; exit 0 ;;
6115     --debug | --d* | -d )
6116     debug=: ;;
6117     --file | --fil | --fi | --f )
6118     $ac_shift
6119     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6120     ac_need_defaults=false;;
6121     --header | --heade | --head | --hea )
6122     $ac_shift
6123     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6124     ac_need_defaults=false;;
6125     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6126     | -silent | --silent | --silen | --sile | --sil | --si | --s)
6127     ac_cs_silent=: ;;
6128    
6129     # This is an error.
6130     -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6131     Try \`$0 --help' for more information." >&5
6132     echo "$as_me: error: unrecognized option: $1
6133     Try \`$0 --help' for more information." >&2;}
6134     { (exit 1); exit 1; }; } ;;
6135    
6136     *) ac_config_targets="$ac_config_targets $1" ;;
6137    
6138     esac
6139     shift
6140     done
6141    
6142     ac_configure_extra_args=
6143    
6144     if $ac_cs_silent; then
6145     exec 6>/dev/null
6146     ac_configure_extra_args="$ac_configure_extra_args --silent"
6147     fi
6148    
6149     _ACEOF
6150     cat >>$CONFIG_STATUS <<_ACEOF
6151     if \$ac_cs_recheck; then
6152     echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6153     exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6154     fi
6155    
6156     _ACEOF
6157    
6158     cat >>$CONFIG_STATUS <<_ACEOF
6159     #
6160     # INIT-COMMANDS section.
6161     #
6162    
6163     AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6164    
6165     _ACEOF
6166    
6167    
6168    
6169     cat >>$CONFIG_STATUS <<\_ACEOF
6170     for ac_config_target in $ac_config_targets
6171     do
6172     case "$ac_config_target" in
6173     # Handling of arguments.
6174     "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6175     "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6176 sysadm 1.10 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
6177 sysadm 1.1 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6178     *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6179     echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6180     { (exit 1); exit 1; }; };;
6181     esac
6182     done
6183    
6184     # If the user did not use the arguments to specify the items to instantiate,
6185     # then the envvar interface is used. Set only those that are not.
6186     # We use the long form for the default assignment because of an extremely
6187     # bizarre bug on SunOS 4.1.3.
6188     if $ac_need_defaults; then
6189     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6190     test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6191     fi
6192    
6193     # Have a temporary directory for convenience. Make it in the build tree
6194     # simply because there is no reason to put it here, and in addition,
6195     # creating and moving files from /tmp can sometimes cause problems.
6196     # Create a temporary directory, and hook for its removal unless debugging.
6197     $debug ||
6198     {
6199     trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6200     trap '{ (exit 1); exit 1; }' 1 2 13 15
6201     }
6202    
6203     # Create a (secure) tmp directory for tmp files.
6204    
6205     {
6206     tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6207     test -n "$tmp" && test -d "$tmp"
6208     } ||
6209     {
6210     tmp=./confstat$$-$RANDOM
6211     (umask 077 && mkdir $tmp)
6212     } ||
6213     {
6214     echo "$me: cannot create a temporary directory in ." >&2
6215     { (exit 1); exit 1; }
6216     }
6217    
6218     _ACEOF
6219    
6220     cat >>$CONFIG_STATUS <<_ACEOF
6221    
6222     #
6223     # CONFIG_FILES section.
6224     #
6225    
6226     # No need to generate the scripts if there are no CONFIG_FILES.
6227     # This happens for instance when ./config.status config.h
6228     if test -n "\$CONFIG_FILES"; then
6229     # Protect against being on the right side of a sed subst in config.status.
6230     sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6231     s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6232     s,@SHELL@,$SHELL,;t t
6233     s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6234     s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6235     s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6236     s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6237     s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6238     s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6239     s,@exec_prefix@,$exec_prefix,;t t
6240     s,@prefix@,$prefix,;t t
6241     s,@program_transform_name@,$program_transform_name,;t t
6242     s,@bindir@,$bindir,;t t
6243     s,@sbindir@,$sbindir,;t t
6244     s,@libexecdir@,$libexecdir,;t t
6245     s,@datadir@,$datadir,;t t
6246     s,@sysconfdir@,$sysconfdir,;t t
6247     s,@sharedstatedir@,$sharedstatedir,;t t
6248     s,@localstatedir@,$localstatedir,;t t
6249     s,@libdir@,$libdir,;t t
6250     s,@includedir@,$includedir,;t t
6251     s,@oldincludedir@,$oldincludedir,;t t
6252     s,@infodir@,$infodir,;t t
6253     s,@mandir@,$mandir,;t t
6254     s,@build_alias@,$build_alias,;t t
6255     s,@host_alias@,$host_alias,;t t
6256     s,@target_alias@,$target_alias,;t t
6257     s,@DEFS@,$DEFS,;t t
6258     s,@ECHO_C@,$ECHO_C,;t t
6259     s,@ECHO_N@,$ECHO_N,;t t
6260     s,@ECHO_T@,$ECHO_T,;t t
6261     s,@LIBS@,$LIBS,;t t
6262     s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6263     s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6264     s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6265 sysadm 1.2 s,@CYGPATH_W@,$CYGPATH_W,;t t
6266 sysadm 1.1 s,@PACKAGE@,$PACKAGE,;t t
6267     s,@VERSION@,$VERSION,;t t
6268     s,@ACLOCAL@,$ACLOCAL,;t t
6269     s,@AUTOCONF@,$AUTOCONF,;t t
6270     s,@AUTOMAKE@,$AUTOMAKE,;t t
6271     s,@AUTOHEADER@,$AUTOHEADER,;t t
6272     s,@MAKEINFO@,$MAKEINFO,;t t
6273     s,@install_sh@,$install_sh,;t t
6274     s,@STRIP@,$STRIP,;t t
6275     s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6276     s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
6277 sysadm 1.2 s,@mkdir_p@,$mkdir_p,;t t
6278 sysadm 1.1 s,@AWK@,$AWK,;t t
6279     s,@SET_MAKE@,$SET_MAKE,;t t
6280 sysadm 1.2 s,@am__leading_dot@,$am__leading_dot,;t t
6281 sysadm 1.9 s,@AMTAR@,$AMTAR,;t t
6282     s,@am__tar@,$am__tar,;t t
6283     s,@am__untar@,$am__untar,;t t
6284 sysadm 1.1 s,@CC@,$CC,;t t
6285     s,@CFLAGS@,$CFLAGS,;t t
6286     s,@LDFLAGS@,$LDFLAGS,;t t
6287     s,@CPPFLAGS@,$CPPFLAGS,;t t
6288     s,@ac_ct_CC@,$ac_ct_CC,;t t
6289     s,@EXEEXT@,$EXEEXT,;t t
6290     s,@OBJEXT@,$OBJEXT,;t t
6291     s,@DEPDIR@,$DEPDIR,;t t
6292     s,@am__include@,$am__include,;t t
6293     s,@am__quote@,$am__quote,;t t
6294     s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
6295     s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
6296     s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
6297     s,@CCDEPMODE@,$CCDEPMODE,;t t
6298 sysadm 1.2 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
6299     s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
6300 sysadm 1.4 s,@CPP@,$CPP,;t t
6301     s,@EGREP@,$EGREP,;t t
6302 sysadm 1.1 s,@LIBOBJS@,$LIBOBJS,;t t
6303     s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6304     CEOF
6305    
6306     _ACEOF
6307    
6308     cat >>$CONFIG_STATUS <<\_ACEOF
6309     # Split the substitutions into bite-sized pieces for seds with
6310     # small command number limits, like on Digital OSF/1 and HP-UX.
6311     ac_max_sed_lines=48
6312     ac_sed_frag=1 # Number of current file.
6313     ac_beg=1 # First line for current file.
6314     ac_end=$ac_max_sed_lines # Line after last line for current file.
6315     ac_more_lines=:
6316     ac_sed_cmds=
6317     while $ac_more_lines; do
6318     if test $ac_beg -gt 1; then
6319     sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6320     else
6321     sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6322     fi
6323     if test ! -s $tmp/subs.frag; then
6324     ac_more_lines=false
6325     else
6326     # The purpose of the label and of the branching condition is to
6327     # speed up the sed processing (if there are no `@' at all, there
6328     # is no need to browse any of the substitutions).
6329     # These are the two extra sed commands mentioned above.
6330     (echo ':t
6331     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6332     if test -z "$ac_sed_cmds"; then
6333 sysadm 1.2 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6334 sysadm 1.1 else
6335 sysadm 1.2 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6336 sysadm 1.1 fi
6337     ac_sed_frag=`expr $ac_sed_frag + 1`
6338     ac_beg=$ac_end
6339     ac_end=`expr $ac_end + $ac_max_sed_lines`
6340     fi
6341     done
6342     if test -z "$ac_sed_cmds"; then
6343     ac_sed_cmds=cat
6344     fi
6345     fi # test -n "$CONFIG_FILES"
6346    
6347     _ACEOF
6348     cat >>$CONFIG_STATUS <<\_ACEOF
6349     for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6350     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6351     case $ac_file in
6352     - | *:- | *:-:* ) # input from stdin
6353 sysadm 1.2 cat >$tmp/stdin
6354     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6355     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6356 sysadm 1.1 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6357 sysadm 1.2 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6358 sysadm 1.1 * ) ac_file_in=$ac_file.in ;;
6359     esac
6360    
6361     # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6362     ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6363     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6364 sysadm 1.2 X"$ac_file" : 'X\(//\)[^/]' \| \
6365     X"$ac_file" : 'X\(//\)$' \| \
6366     X"$ac_file" : 'X\(/\)' \| \
6367     . : '\(.\)' 2>/dev/null ||
6368 sysadm 1.1 echo X"$ac_file" |
6369     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6370     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6371     /^X\(\/\/\)$/{ s//\1/; q; }
6372     /^X\(\/\).*/{ s//\1/; q; }
6373     s/.*/./; q'`
6374     { if $as_mkdir_p; then
6375     mkdir -p "$ac_dir"
6376     else
6377     as_dir="$ac_dir"
6378     as_dirs=
6379     while test ! -d "$as_dir"; do
6380     as_dirs="$as_dir $as_dirs"
6381     as_dir=`(dirname "$as_dir") 2>/dev/null ||
6382     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6383 sysadm 1.2 X"$as_dir" : 'X\(//\)[^/]' \| \
6384     X"$as_dir" : 'X\(//\)$' \| \
6385     X"$as_dir" : 'X\(/\)' \| \
6386     . : '\(.\)' 2>/dev/null ||
6387 sysadm 1.1 echo X"$as_dir" |
6388     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6389     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6390     /^X\(\/\/\)$/{ s//\1/; q; }
6391     /^X\(\/\).*/{ s//\1/; q; }
6392     s/.*/./; q'`
6393     done
6394     test ! -n "$as_dirs" || mkdir $as_dirs
6395     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6396     echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6397     { (exit 1); exit 1; }; }; }
6398    
6399     ac_builddir=.
6400    
6401     if test "$ac_dir" != .; then
6402     ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6403     # A "../" for each directory in $ac_dir_suffix.
6404     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6405     else
6406     ac_dir_suffix= ac_top_builddir=
6407     fi
6408    
6409     case $srcdir in
6410     .) # No --srcdir option. We are building in place.
6411     ac_srcdir=.
6412     if test -z "$ac_top_builddir"; then
6413     ac_top_srcdir=.
6414     else
6415     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6416     fi ;;
6417     [\\/]* | ?:[\\/]* ) # Absolute path.
6418     ac_srcdir=$srcdir$ac_dir_suffix;
6419     ac_top_srcdir=$srcdir ;;
6420     *) # Relative path.
6421     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6422     ac_top_srcdir=$ac_top_builddir$srcdir ;;
6423     esac
6424 sysadm 1.2
6425     # Do not use `cd foo && pwd` to compute absolute paths, because
6426     # the directories may not exist.
6427     case `pwd` in
6428     .) ac_abs_builddir="$ac_dir";;
6429     *)
6430     case "$ac_dir" in
6431     .) ac_abs_builddir=`pwd`;;
6432     [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6433     *) ac_abs_builddir=`pwd`/"$ac_dir";;
6434     esac;;
6435     esac
6436     case $ac_abs_builddir in
6437     .) ac_abs_top_builddir=${ac_top_builddir}.;;
6438     *)
6439     case ${ac_top_builddir}. in
6440     .) ac_abs_top_builddir=$ac_abs_builddir;;
6441     [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6442     *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6443     esac;;
6444     esac
6445     case $ac_abs_builddir in
6446     .) ac_abs_srcdir=$ac_srcdir;;
6447     *)
6448     case $ac_srcdir in
6449     .) ac_abs_srcdir=$ac_abs_builddir;;
6450     [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6451     *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6452     esac;;
6453     esac
6454     case $ac_abs_builddir in
6455     .) ac_abs_top_srcdir=$ac_top_srcdir;;
6456     *)
6457     case $ac_top_srcdir in
6458     .) ac_abs_top_srcdir=$ac_abs_builddir;;
6459     [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6460     *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6461     esac;;
6462     esac
6463 sysadm 1.1
6464    
6465     case $INSTALL in
6466     [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6467     *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6468     esac
6469    
6470     if test x"$ac_file" != x-; then
6471     { echo "$as_me:$LINENO: creating $ac_file" >&5
6472     echo "$as_me: creating $ac_file" >&6;}
6473     rm -f "$ac_file"
6474     fi
6475     # Let's still pretend it is `configure' which instantiates (i.e., don't
6476     # use $as_me), people would be surprised to read:
6477     # /* config.h. Generated by config.status. */
6478     if test x"$ac_file" = x-; then
6479     configure_input=
6480     else
6481     configure_input="$ac_file. "
6482     fi
6483     configure_input=$configure_input"Generated from `echo $ac_file_in |
6484 sysadm 1.2 sed 's,.*/,,'` by configure."
6485 sysadm 1.1
6486     # First look for the input files in the build tree, otherwise in the
6487     # src tree.
6488     ac_file_inputs=`IFS=:
6489     for f in $ac_file_in; do
6490     case $f in
6491     -) echo $tmp/stdin ;;
6492     [\\/$]*)
6493 sysadm 1.2 # Absolute (can't be DOS-style, as IFS=:)
6494     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6495 sysadm 1.1 echo "$as_me: error: cannot find input file: $f" >&2;}
6496     { (exit 1); exit 1; }; }
6497 sysadm 1.2 echo "$f";;
6498 sysadm 1.1 *) # Relative
6499 sysadm 1.2 if test -f "$f"; then
6500     # Build tree
6501     echo "$f"
6502     elif test -f "$srcdir/$f"; then
6503     # Source tree
6504     echo "$srcdir/$f"
6505     else
6506     # /dev/null tree
6507     { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6508 sysadm 1.1 echo "$as_me: error: cannot find input file: $f" >&2;}
6509     { (exit 1); exit 1; }; }
6510 sysadm 1.2 fi;;
6511 sysadm 1.1 esac
6512     done` || { (exit 1); exit 1; }
6513     _ACEOF
6514     cat >>$CONFIG_STATUS <<_ACEOF
6515     sed "$ac_vpsub
6516     $extrasub
6517     _ACEOF
6518     cat >>$CONFIG_STATUS <<\_ACEOF
6519     :t
6520     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6521     s,@configure_input@,$configure_input,;t t
6522     s,@srcdir@,$ac_srcdir,;t t
6523     s,@abs_srcdir@,$ac_abs_srcdir,;t t
6524     s,@top_srcdir@,$ac_top_srcdir,;t t
6525     s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6526     s,@builddir@,$ac_builddir,;t t
6527     s,@abs_builddir@,$ac_abs_builddir,;t t
6528     s,@top_builddir@,$ac_top_builddir,;t t
6529     s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6530     s,@INSTALL@,$ac_INSTALL,;t t
6531     " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6532     rm -f $tmp/stdin
6533     if test x"$ac_file" != x-; then
6534     mv $tmp/out $ac_file
6535     else
6536     cat $tmp/out
6537     rm -f $tmp/out
6538     fi
6539    
6540     done
6541     _ACEOF
6542     cat >>$CONFIG_STATUS <<\_ACEOF
6543    
6544     #
6545     # CONFIG_COMMANDS section.
6546     #
6547     for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6548     ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6549     ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6550     ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6551     $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6552 sysadm 1.2 X"$ac_dest" : 'X\(//\)[^/]' \| \
6553     X"$ac_dest" : 'X\(//\)$' \| \
6554     X"$ac_dest" : 'X\(/\)' \| \
6555     . : '\(.\)' 2>/dev/null ||
6556 sysadm 1.1 echo X"$ac_dest" |
6557     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6558     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6559     /^X\(\/\/\)$/{ s//\1/; q; }
6560     /^X\(\/\).*/{ s//\1/; q; }
6561     s/.*/./; q'`
6562 sysadm 1.2 { if $as_mkdir_p; then
6563     mkdir -p "$ac_dir"
6564     else
6565     as_dir="$ac_dir"
6566     as_dirs=
6567     while test ! -d "$as_dir"; do
6568     as_dirs="$as_dir $as_dirs"
6569     as_dir=`(dirname "$as_dir") 2>/dev/null ||
6570     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6571     X"$as_dir" : 'X\(//\)[^/]' \| \
6572     X"$as_dir" : 'X\(//\)$' \| \
6573     X"$as_dir" : 'X\(/\)' \| \
6574     . : '\(.\)' 2>/dev/null ||
6575     echo X"$as_dir" |
6576     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6577     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6578     /^X\(\/\/\)$/{ s//\1/; q; }
6579     /^X\(\/\).*/{ s//\1/; q; }
6580     s/.*/./; q'`
6581     done
6582     test ! -n "$as_dirs" || mkdir $as_dirs
6583     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6584     echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6585     { (exit 1); exit 1; }; }; }
6586    
6587 sysadm 1.1 ac_builddir=.
6588    
6589     if test "$ac_dir" != .; then
6590     ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6591     # A "../" for each directory in $ac_dir_suffix.
6592     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6593     else
6594     ac_dir_suffix= ac_top_builddir=
6595     fi
6596    
6597     case $srcdir in
6598     .) # No --srcdir option. We are building in place.
6599     ac_srcdir=.
6600     if test -z "$ac_top_builddir"; then
6601     ac_top_srcdir=.
6602     else
6603     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6604     fi ;;
6605     [\\/]* | ?:[\\/]* ) # Absolute path.
6606     ac_srcdir=$srcdir$ac_dir_suffix;
6607     ac_top_srcdir=$srcdir ;;
6608     *) # Relative path.
6609     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6610     ac_top_srcdir=$ac_top_builddir$srcdir ;;
6611     esac
6612 sysadm 1.2
6613     # Do not use `cd foo && pwd` to compute absolute paths, because
6614     # the directories may not exist.
6615     case `pwd` in
6616     .) ac_abs_builddir="$ac_dir";;
6617     *)
6618     case "$ac_dir" in
6619     .) ac_abs_builddir=`pwd`;;
6620     [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6621     *) ac_abs_builddir=`pwd`/"$ac_dir";;
6622     esac;;
6623     esac
6624     case $ac_abs_builddir in
6625     .) ac_abs_top_builddir=${ac_top_builddir}.;;
6626     *)
6627     case ${ac_top_builddir}. in
6628     .) ac_abs_top_builddir=$ac_abs_builddir;;
6629     [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6630     *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6631     esac;;
6632     esac
6633     case $ac_abs_builddir in
6634     .) ac_abs_srcdir=$ac_srcdir;;
6635     *)
6636     case $ac_srcdir in
6637     .) ac_abs_srcdir=$ac_abs_builddir;;
6638     [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6639     *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6640     esac;;
6641     esac
6642     case $ac_abs_builddir in
6643     .) ac_abs_top_srcdir=$ac_top_srcdir;;
6644     *)
6645     case $ac_top_srcdir in
6646     .) ac_abs_top_srcdir=$ac_abs_builddir;;
6647     [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6648     *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6649     esac;;
6650     esac
6651 sysadm 1.1
6652    
6653     { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6654     echo "$as_me: executing $ac_dest commands" >&6;}
6655     case $ac_dest in
6656     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6657     # Strip MF so we end up with the name of the file.
6658     mf=`echo "$mf" | sed -e 's/:.*$//'`
6659     # Check whether this is an Automake generated Makefile or not.
6660     # We used to match only the files named `Makefile.in', but
6661     # some people rename them; so instead we look at the file content.
6662     # Grep'ing the first line is not enough: some people post-process
6663     # each Makefile.in and add a new line on top of each file to say so.
6664     # So let's grep whole file.
6665     if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6666     dirpart=`(dirname "$mf") 2>/dev/null ||
6667     $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6668 sysadm 1.2 X"$mf" : 'X\(//\)[^/]' \| \
6669     X"$mf" : 'X\(//\)$' \| \
6670     X"$mf" : 'X\(/\)' \| \
6671     . : '\(.\)' 2>/dev/null ||
6672 sysadm 1.1 echo X"$mf" |
6673     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6674     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6675     /^X\(\/\/\)$/{ s//\1/; q; }
6676     /^X\(\/\).*/{ s//\1/; q; }
6677     s/.*/./; q'`
6678     else
6679     continue
6680     fi
6681 sysadm 1.9 # Extract the definition of DEPDIR, am__include, and am__quote
6682     # from the Makefile without running `make'.
6683 sysadm 1.2 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6684 sysadm 1.1 test -z "$DEPDIR" && continue
6685 sysadm 1.9 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6686     test -z "am__include" && continue
6687     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6688 sysadm 1.1 # When using ansi2knr, U may be empty or an underscore; expand it
6689 sysadm 1.2 U=`sed -n 's/^U = //p' < "$mf"`
6690 sysadm 1.9 # Find all dependency output files, they are included files with
6691     # $(DEPDIR) in their names. We invoke sed twice because it is the
6692     # simplest approach to changing $(DEPDIR) to its actual value in the
6693     # expansion.
6694     for file in `sed -n "
6695     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6696 sysadm 1.1 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6697     # Make sure the directory exists.
6698     test -f "$dirpart/$file" && continue
6699     fdir=`(dirname "$file") 2>/dev/null ||
6700     $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6701 sysadm 1.2 X"$file" : 'X\(//\)[^/]' \| \
6702     X"$file" : 'X\(//\)$' \| \
6703     X"$file" : 'X\(/\)' \| \
6704     . : '\(.\)' 2>/dev/null ||
6705 sysadm 1.1 echo X"$file" |
6706     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6707     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6708     /^X\(\/\/\)$/{ s//\1/; q; }
6709     /^X\(\/\).*/{ s//\1/; q; }
6710     s/.*/./; q'`
6711     { if $as_mkdir_p; then
6712     mkdir -p $dirpart/$fdir
6713     else
6714     as_dir=$dirpart/$fdir
6715     as_dirs=
6716     while test ! -d "$as_dir"; do
6717     as_dirs="$as_dir $as_dirs"
6718     as_dir=`(dirname "$as_dir") 2>/dev/null ||
6719     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6720 sysadm 1.2 X"$as_dir" : 'X\(//\)[^/]' \| \
6721     X"$as_dir" : 'X\(//\)$' \| \
6722     X"$as_dir" : 'X\(/\)' \| \
6723     . : '\(.\)' 2>/dev/null ||
6724 sysadm 1.1 echo X"$as_dir" |
6725     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6726     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6727     /^X\(\/\/\)$/{ s//\1/; q; }
6728     /^X\(\/\).*/{ s//\1/; q; }
6729     s/.*/./; q'`
6730     done
6731     test ! -n "$as_dirs" || mkdir $as_dirs
6732     fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
6733     echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
6734     { (exit 1); exit 1; }; }; }
6735    
6736     # echo "creating $dirpart/$file"
6737     echo '# dummy' > "$dirpart/$file"
6738     done
6739     done
6740     ;;
6741     esac
6742     done
6743     _ACEOF
6744    
6745     cat >>$CONFIG_STATUS <<\_ACEOF
6746    
6747     { (exit 0); exit 0; }
6748     _ACEOF
6749     chmod +x $CONFIG_STATUS
6750     ac_clean_files=$ac_clean_files_save
6751    
6752    
6753     # configure is writing to config.log, and then calls config.status.
6754     # config.status does its own redirection, appending to config.log.
6755     # Unfortunately, on DOS this fails, as config.log is still kept open
6756     # by configure, so config.status won't be able to write to it; its
6757     # output is simply discarded. So we exec the FD to /dev/null,
6758     # effectively closing config.log, so it can be properly (re)opened and
6759     # appended to by config.status. When coming back to configure, we
6760     # need to make the FD available again.
6761     if test "$no_create" != yes; then
6762     ac_cs_success=:
6763     ac_config_status_args=
6764     test "$silent" = yes &&
6765     ac_config_status_args="$ac_config_status_args --quiet"
6766     exec 5>/dev/null
6767     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6768     exec 5>>config.log
6769     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6770     # would make configure fail if this is the last instruction.
6771     $ac_cs_success || { (exit 1); exit 1; }
6772     fi
6773    

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