/[LeafOK_CVS]/lbbs/configure
ViewVC logotype

Contents of /lbbs/configure

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations)
Tue Oct 19 15:22:01 2004 UTC (21 years, 5 months ago) by sysadm
Branch: MAIN
Changes since 1.3: +1975 -245 lines
*** empty log message ***

1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for bbsd 1.0.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME='bbsd'
269 PACKAGE_TARNAME='bbsd'
270 PACKAGE_VERSION='1.0'
271 PACKAGE_STRING='bbsd 1.0'
272 PACKAGE_BUGREPORT=''
273
274 ac_unique_file="src/"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot 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 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650 done
651
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672 do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures 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 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
831
832 cat <<\_ACEOF
833
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
838 _ACEOF
839 fi
840
841 if test -n "$ac_init_help"; then
842 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 --disable-dependency-tracking speeds up one-time build
851 --enable-dependency-tracking do not reject slow dependency extractors
852
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 CPP C preprocessor
861
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
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
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 test -f $ac_srcdir/configure.in; then
948 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 generated by GNU Autoconf 2.59
962
963 Copyright (C) 2003 Free Software Foundation, Inc.
964 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 generated by GNU Autoconf 2.59. Invocation command line was
976
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 ac_must_keep_next=false # Got value, back to normal.
1053 else
1054 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 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 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1099 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1100 ;;
1101 *)
1102 sed -n \
1103 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1104 ;;
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 echo "$ac_var='"'"'$ac_val'"'"'"
1133 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 rm -f core *.core &&
1152 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 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1232 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 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1249 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1250 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1251 echo "$as_me: former value: $ac_old_val" >&2;}
1252 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1253 echo "$as_me: current value: $ac_new_val" >&2;}
1254 ac_cache_corrupted=:
1255 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 am__api_version="1.8"
1311 ac_aux_dir=
1312 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1313 if test -f $ac_dir/install-sh; then
1314 ac_aux_dir=$ac_dir
1315 ac_install_sh="$ac_aux_dir/install-sh -c"
1316 break
1317 elif test -f $ac_dir/install.sh; then
1318 ac_aux_dir=$ac_dir
1319 ac_install_sh="$ac_aux_dir/install.sh -c"
1320 break
1321 elif test -f $ac_dir/shtool; then
1322 ac_aux_dir=$ac_dir
1323 ac_install_sh="$ac_aux_dir/shtool install -c"
1324 break
1325 fi
1326 done
1327 if test -z "$ac_aux_dir"; then
1328 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1329 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1330 { (exit 1); exit 1; }; }
1331 fi
1332 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1333 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1334 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1335
1336 # Find a good install program. We prefer a C program (faster),
1337 # so one script is as good as another. But avoid the broken or
1338 # incompatible versions:
1339 # SysV /etc/install, /usr/sbin/install
1340 # SunOS /usr/etc/install
1341 # IRIX /sbin/install
1342 # AIX /bin/install
1343 # AmigaOS /C/install, which installs bootblocks on floppy discs
1344 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1345 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1346 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1347 # OS/2's system install, which has a completely different semantic
1348 # ./install, which can be erroneously created by make from ./install.sh.
1349 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1350 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1351 if test -z "$INSTALL"; then
1352 if test "${ac_cv_path_install+set}" = set; then
1353 echo $ECHO_N "(cached) $ECHO_C" >&6
1354 else
1355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1356 for as_dir in $PATH
1357 do
1358 IFS=$as_save_IFS
1359 test -z "$as_dir" && as_dir=.
1360 # Account for people who put trailing slashes in PATH elements.
1361 case $as_dir/ in
1362 ./ | .// | /cC/* | \
1363 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1364 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1365 /usr/ucb/* ) ;;
1366 *)
1367 # OSF1 and SCO ODT 3.0 have their own names for install.
1368 # Don't use installbsd from OSF since it installs stuff as root
1369 # by default.
1370 for ac_prog in ginstall scoinst install; do
1371 for ac_exec_ext in '' $ac_executable_extensions; do
1372 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1373 if test $ac_prog = install &&
1374 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1375 # AIX install. It has an incompatible calling convention.
1376 :
1377 elif test $ac_prog = install &&
1378 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1379 # program-specific install script used by HP pwplus--don't use.
1380 :
1381 else
1382 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1383 break 3
1384 fi
1385 fi
1386 done
1387 done
1388 ;;
1389 esac
1390 done
1391
1392
1393 fi
1394 if test "${ac_cv_path_install+set}" = set; then
1395 INSTALL=$ac_cv_path_install
1396 else
1397 # As a last resort, use the slow shell script. We don't cache a
1398 # path for INSTALL within a source directory, because that will
1399 # break other packages using the cache if that directory is
1400 # removed, or if the path is relative.
1401 INSTALL=$ac_install_sh
1402 fi
1403 fi
1404 echo "$as_me:$LINENO: result: $INSTALL" >&5
1405 echo "${ECHO_T}$INSTALL" >&6
1406
1407 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1408 # It thinks the first close brace ends the variable substitution.
1409 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1410
1411 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1412
1413 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1414
1415 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1416 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1417 # Just in case
1418 sleep 1
1419 echo timestamp > conftest.file
1420 # Do `set' in a subshell so we don't clobber the current shell's
1421 # arguments. Must try -L first in case configure is actually a
1422 # symlink; some systems play weird games with the mod time of symlinks
1423 # (eg FreeBSD returns the mod time of the symlink's containing
1424 # directory).
1425 if (
1426 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1427 if test "$*" = "X"; then
1428 # -L didn't work.
1429 set X `ls -t $srcdir/configure conftest.file`
1430 fi
1431 rm -f conftest.file
1432 if test "$*" != "X $srcdir/configure conftest.file" \
1433 && test "$*" != "X conftest.file $srcdir/configure"; then
1434
1435 # If neither matched, then we have a broken ls. This can happen
1436 # if, for instance, CONFIG_SHELL is bash and it inherits a
1437 # broken ls alias from the environment. This has actually
1438 # happened. Such a system could not be considered "sane".
1439 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1440 alias in your environment" >&5
1441 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1442 alias in your environment" >&2;}
1443 { (exit 1); exit 1; }; }
1444 fi
1445
1446 test "$2" = conftest.file
1447 )
1448 then
1449 # Ok.
1450 :
1451 else
1452 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1453 Check your system clock" >&5
1454 echo "$as_me: error: newly created file is older than distributed files!
1455 Check your system clock" >&2;}
1456 { (exit 1); exit 1; }; }
1457 fi
1458 echo "$as_me:$LINENO: result: yes" >&5
1459 echo "${ECHO_T}yes" >&6
1460 test "$program_prefix" != NONE &&
1461 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1462 # Use a double $ so make ignores it.
1463 test "$program_suffix" != NONE &&
1464 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1465 # Double any \ or $. echo might interpret backslashes.
1466 # By default was `s,x,x', remove it if useless.
1467 cat <<\_ACEOF >conftest.sed
1468 s/[\\$]/&&/g;s/;s,x,x,$//
1469 _ACEOF
1470 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1471 rm conftest.sed
1472
1473 # expand $ac_aux_dir to an absolute path
1474 am_aux_dir=`cd $ac_aux_dir && pwd`
1475
1476 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1477 # Use eval to expand $SHELL
1478 if eval "$MISSING --run true"; then
1479 am_missing_run="$MISSING --run "
1480 else
1481 am_missing_run=
1482 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1483 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1484 fi
1485
1486 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1487 # Keeping the `.' argument allows $(mkdir_p) to be used without
1488 # argument. Indeed, we sometimes output rules like
1489 # $(mkdir_p) $(somedir)
1490 # where $(somedir) is conditionally defined.
1491 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1492 # expensive solution, as it forces Make to start a sub-shell.)
1493 mkdir_p='mkdir -p -- .'
1494 else
1495 # On NextStep and OpenStep, the `mkdir' command does not
1496 # recognize any option. It will interpret all options as
1497 # directories to create, and then abort because `.' already
1498 # exists.
1499 for d in ./-p ./--version;
1500 do
1501 test -d $d && rmdir $d
1502 done
1503 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1504 if test -f "$ac_aux_dir/mkinstalldirs"; then
1505 mkdir_p='$(mkinstalldirs)'
1506 else
1507 mkdir_p='$(install_sh) -d'
1508 fi
1509 fi
1510
1511 for ac_prog in gawk mawk nawk awk
1512 do
1513 # Extract the first word of "$ac_prog", so it can be a program name with args.
1514 set dummy $ac_prog; ac_word=$2
1515 echo "$as_me:$LINENO: checking for $ac_word" >&5
1516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1517 if test "${ac_cv_prog_AWK+set}" = set; then
1518 echo $ECHO_N "(cached) $ECHO_C" >&6
1519 else
1520 if test -n "$AWK"; then
1521 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1522 else
1523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1524 for as_dir in $PATH
1525 do
1526 IFS=$as_save_IFS
1527 test -z "$as_dir" && as_dir=.
1528 for ac_exec_ext in '' $ac_executable_extensions; do
1529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1530 ac_cv_prog_AWK="$ac_prog"
1531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1532 break 2
1533 fi
1534 done
1535 done
1536
1537 fi
1538 fi
1539 AWK=$ac_cv_prog_AWK
1540 if test -n "$AWK"; then
1541 echo "$as_me:$LINENO: result: $AWK" >&5
1542 echo "${ECHO_T}$AWK" >&6
1543 else
1544 echo "$as_me:$LINENO: result: no" >&5
1545 echo "${ECHO_T}no" >&6
1546 fi
1547
1548 test -n "$AWK" && break
1549 done
1550
1551 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1552 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1553 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1554 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1555 echo $ECHO_N "(cached) $ECHO_C" >&6
1556 else
1557 cat >conftest.make <<\_ACEOF
1558 all:
1559 @echo 'ac_maketemp="$(MAKE)"'
1560 _ACEOF
1561 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1562 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1563 if test -n "$ac_maketemp"; then
1564 eval ac_cv_prog_make_${ac_make}_set=yes
1565 else
1566 eval ac_cv_prog_make_${ac_make}_set=no
1567 fi
1568 rm -f conftest.make
1569 fi
1570 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1571 echo "$as_me:$LINENO: result: yes" >&5
1572 echo "${ECHO_T}yes" >&6
1573 SET_MAKE=
1574 else
1575 echo "$as_me:$LINENO: result: no" >&5
1576 echo "${ECHO_T}no" >&6
1577 SET_MAKE="MAKE=${MAKE-make}"
1578 fi
1579
1580 rm -rf .tst 2>/dev/null
1581 mkdir .tst 2>/dev/null
1582 if test -d .tst; then
1583 am__leading_dot=.
1584 else
1585 am__leading_dot=_
1586 fi
1587 rmdir .tst 2>/dev/null
1588
1589 # test to see if srcdir already configured
1590 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1591 test -f $srcdir/config.status; then
1592 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1593 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1594 { (exit 1); exit 1; }; }
1595 fi
1596
1597 # test whether we have cygpath
1598 if test -z "$CYGPATH_W"; then
1599 if (cygpath --version) >/dev/null 2>/dev/null; then
1600 CYGPATH_W='cygpath -w'
1601 else
1602 CYGPATH_W=echo
1603 fi
1604 fi
1605
1606
1607 # Define the identity of the package.
1608 PACKAGE=bbsd
1609 VERSION=1.0
1610
1611
1612 cat >>confdefs.h <<_ACEOF
1613 #define PACKAGE "$PACKAGE"
1614 _ACEOF
1615
1616
1617 cat >>confdefs.h <<_ACEOF
1618 #define VERSION "$VERSION"
1619 _ACEOF
1620
1621 # Some tools Automake needs.
1622
1623 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1624
1625
1626 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1627
1628
1629 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1630
1631
1632 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1633
1634
1635 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1636
1637
1638 AMTAR=${AMTAR-"${am_missing_run}tar"}
1639
1640 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1641
1642 # Installed binaries are usually stripped using `strip' when the user
1643 # run `make install-strip'. However `strip' might not be the right
1644 # tool to use in cross-compilation environments, therefore Automake
1645 # will honor the `STRIP' environment variable to overrule this program.
1646 if test "$cross_compiling" != no; then
1647 if test -n "$ac_tool_prefix"; then
1648 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1649 set dummy ${ac_tool_prefix}strip; ac_word=$2
1650 echo "$as_me:$LINENO: checking for $ac_word" >&5
1651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1652 if test "${ac_cv_prog_STRIP+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1654 else
1655 if test -n "$STRIP"; then
1656 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1657 else
1658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659 for as_dir in $PATH
1660 do
1661 IFS=$as_save_IFS
1662 test -z "$as_dir" && as_dir=.
1663 for ac_exec_ext in '' $ac_executable_extensions; do
1664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1665 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1667 break 2
1668 fi
1669 done
1670 done
1671
1672 fi
1673 fi
1674 STRIP=$ac_cv_prog_STRIP
1675 if test -n "$STRIP"; then
1676 echo "$as_me:$LINENO: result: $STRIP" >&5
1677 echo "${ECHO_T}$STRIP" >&6
1678 else
1679 echo "$as_me:$LINENO: result: no" >&5
1680 echo "${ECHO_T}no" >&6
1681 fi
1682
1683 fi
1684 if test -z "$ac_cv_prog_STRIP"; then
1685 ac_ct_STRIP=$STRIP
1686 # Extract the first word of "strip", so it can be a program name with args.
1687 set dummy strip; ac_word=$2
1688 echo "$as_me:$LINENO: checking for $ac_word" >&5
1689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1690 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1691 echo $ECHO_N "(cached) $ECHO_C" >&6
1692 else
1693 if test -n "$ac_ct_STRIP"; then
1694 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1695 else
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697 for as_dir in $PATH
1698 do
1699 IFS=$as_save_IFS
1700 test -z "$as_dir" && as_dir=.
1701 for ac_exec_ext in '' $ac_executable_extensions; do
1702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703 ac_cv_prog_ac_ct_STRIP="strip"
1704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1705 break 2
1706 fi
1707 done
1708 done
1709
1710 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1711 fi
1712 fi
1713 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1714 if test -n "$ac_ct_STRIP"; then
1715 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1716 echo "${ECHO_T}$ac_ct_STRIP" >&6
1717 else
1718 echo "$as_me:$LINENO: result: no" >&5
1719 echo "${ECHO_T}no" >&6
1720 fi
1721
1722 STRIP=$ac_ct_STRIP
1723 else
1724 STRIP="$ac_cv_prog_STRIP"
1725 fi
1726
1727 fi
1728 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1729
1730 # We need awk for the "check" target. The system "awk" is bad on
1731 # some platforms.
1732
1733
1734
1735
1736 # AM_CONFIG_HEADERS(config.h)
1737
1738 # Checks for programs.
1739 ac_ext=c
1740 ac_cpp='$CPP $CPPFLAGS'
1741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1744 if test -n "$ac_tool_prefix"; then
1745 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1746 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1747 echo "$as_me:$LINENO: checking for $ac_word" >&5
1748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1749 if test "${ac_cv_prog_CC+set}" = set; then
1750 echo $ECHO_N "(cached) $ECHO_C" >&6
1751 else
1752 if test -n "$CC"; then
1753 ac_cv_prog_CC="$CC" # Let the user override the test.
1754 else
1755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1756 for as_dir in $PATH
1757 do
1758 IFS=$as_save_IFS
1759 test -z "$as_dir" && as_dir=.
1760 for ac_exec_ext in '' $ac_executable_extensions; do
1761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1762 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1764 break 2
1765 fi
1766 done
1767 done
1768
1769 fi
1770 fi
1771 CC=$ac_cv_prog_CC
1772 if test -n "$CC"; then
1773 echo "$as_me:$LINENO: result: $CC" >&5
1774 echo "${ECHO_T}$CC" >&6
1775 else
1776 echo "$as_me:$LINENO: result: no" >&5
1777 echo "${ECHO_T}no" >&6
1778 fi
1779
1780 fi
1781 if test -z "$ac_cv_prog_CC"; then
1782 ac_ct_CC=$CC
1783 # Extract the first word of "gcc", so it can be a program name with args.
1784 set dummy gcc; ac_word=$2
1785 echo "$as_me:$LINENO: checking for $ac_word" >&5
1786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1787 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1788 echo $ECHO_N "(cached) $ECHO_C" >&6
1789 else
1790 if test -n "$ac_ct_CC"; then
1791 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1792 else
1793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1794 for as_dir in $PATH
1795 do
1796 IFS=$as_save_IFS
1797 test -z "$as_dir" && as_dir=.
1798 for ac_exec_ext in '' $ac_executable_extensions; do
1799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1800 ac_cv_prog_ac_ct_CC="gcc"
1801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1802 break 2
1803 fi
1804 done
1805 done
1806
1807 fi
1808 fi
1809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1810 if test -n "$ac_ct_CC"; then
1811 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1812 echo "${ECHO_T}$ac_ct_CC" >&6
1813 else
1814 echo "$as_me:$LINENO: result: no" >&5
1815 echo "${ECHO_T}no" >&6
1816 fi
1817
1818 CC=$ac_ct_CC
1819 else
1820 CC="$ac_cv_prog_CC"
1821 fi
1822
1823 if test -z "$CC"; then
1824 if test -n "$ac_tool_prefix"; then
1825 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1826 set dummy ${ac_tool_prefix}cc; ac_word=$2
1827 echo "$as_me:$LINENO: checking for $ac_word" >&5
1828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1829 if test "${ac_cv_prog_CC+set}" = set; then
1830 echo $ECHO_N "(cached) $ECHO_C" >&6
1831 else
1832 if test -n "$CC"; then
1833 ac_cv_prog_CC="$CC" # Let the user override the test.
1834 else
1835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1836 for as_dir in $PATH
1837 do
1838 IFS=$as_save_IFS
1839 test -z "$as_dir" && as_dir=.
1840 for ac_exec_ext in '' $ac_executable_extensions; do
1841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1842 ac_cv_prog_CC="${ac_tool_prefix}cc"
1843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1844 break 2
1845 fi
1846 done
1847 done
1848
1849 fi
1850 fi
1851 CC=$ac_cv_prog_CC
1852 if test -n "$CC"; then
1853 echo "$as_me:$LINENO: result: $CC" >&5
1854 echo "${ECHO_T}$CC" >&6
1855 else
1856 echo "$as_me:$LINENO: result: no" >&5
1857 echo "${ECHO_T}no" >&6
1858 fi
1859
1860 fi
1861 if test -z "$ac_cv_prog_CC"; then
1862 ac_ct_CC=$CC
1863 # Extract the first word of "cc", so it can be a program name with args.
1864 set dummy cc; ac_word=$2
1865 echo "$as_me:$LINENO: checking for $ac_word" >&5
1866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1867 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1868 echo $ECHO_N "(cached) $ECHO_C" >&6
1869 else
1870 if test -n "$ac_ct_CC"; then
1871 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1872 else
1873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1874 for as_dir in $PATH
1875 do
1876 IFS=$as_save_IFS
1877 test -z "$as_dir" && as_dir=.
1878 for ac_exec_ext in '' $ac_executable_extensions; do
1879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1880 ac_cv_prog_ac_ct_CC="cc"
1881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1882 break 2
1883 fi
1884 done
1885 done
1886
1887 fi
1888 fi
1889 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1890 if test -n "$ac_ct_CC"; then
1891 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1892 echo "${ECHO_T}$ac_ct_CC" >&6
1893 else
1894 echo "$as_me:$LINENO: result: no" >&5
1895 echo "${ECHO_T}no" >&6
1896 fi
1897
1898 CC=$ac_ct_CC
1899 else
1900 CC="$ac_cv_prog_CC"
1901 fi
1902
1903 fi
1904 if test -z "$CC"; then
1905 # Extract the first word of "cc", so it can be a program name with args.
1906 set dummy cc; ac_word=$2
1907 echo "$as_me:$LINENO: checking for $ac_word" >&5
1908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1909 if test "${ac_cv_prog_CC+set}" = set; then
1910 echo $ECHO_N "(cached) $ECHO_C" >&6
1911 else
1912 if test -n "$CC"; then
1913 ac_cv_prog_CC="$CC" # Let the user override the test.
1914 else
1915 ac_prog_rejected=no
1916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1917 for as_dir in $PATH
1918 do
1919 IFS=$as_save_IFS
1920 test -z "$as_dir" && as_dir=.
1921 for ac_exec_ext in '' $ac_executable_extensions; do
1922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1923 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1924 ac_prog_rejected=yes
1925 continue
1926 fi
1927 ac_cv_prog_CC="cc"
1928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1929 break 2
1930 fi
1931 done
1932 done
1933
1934 if test $ac_prog_rejected = yes; then
1935 # We found a bogon in the path, so make sure we never use it.
1936 set dummy $ac_cv_prog_CC
1937 shift
1938 if test $# != 0; then
1939 # We chose a different compiler from the bogus one.
1940 # However, it has the same basename, so the bogon will be chosen
1941 # first if we set CC to just the basename; use the full file name.
1942 shift
1943 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1944 fi
1945 fi
1946 fi
1947 fi
1948 CC=$ac_cv_prog_CC
1949 if test -n "$CC"; then
1950 echo "$as_me:$LINENO: result: $CC" >&5
1951 echo "${ECHO_T}$CC" >&6
1952 else
1953 echo "$as_me:$LINENO: result: no" >&5
1954 echo "${ECHO_T}no" >&6
1955 fi
1956
1957 fi
1958 if test -z "$CC"; then
1959 if test -n "$ac_tool_prefix"; then
1960 for ac_prog in cl
1961 do
1962 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1963 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1964 echo "$as_me:$LINENO: checking for $ac_word" >&5
1965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1966 if test "${ac_cv_prog_CC+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1968 else
1969 if test -n "$CC"; then
1970 ac_cv_prog_CC="$CC" # Let the user override the test.
1971 else
1972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973 for as_dir in $PATH
1974 do
1975 IFS=$as_save_IFS
1976 test -z "$as_dir" && as_dir=.
1977 for ac_exec_ext in '' $ac_executable_extensions; do
1978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1979 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1981 break 2
1982 fi
1983 done
1984 done
1985
1986 fi
1987 fi
1988 CC=$ac_cv_prog_CC
1989 if test -n "$CC"; then
1990 echo "$as_me:$LINENO: result: $CC" >&5
1991 echo "${ECHO_T}$CC" >&6
1992 else
1993 echo "$as_me:$LINENO: result: no" >&5
1994 echo "${ECHO_T}no" >&6
1995 fi
1996
1997 test -n "$CC" && break
1998 done
1999 fi
2000 if test -z "$CC"; then
2001 ac_ct_CC=$CC
2002 for ac_prog in cl
2003 do
2004 # Extract the first word of "$ac_prog", so it can be a program name with args.
2005 set dummy $ac_prog; ac_word=$2
2006 echo "$as_me:$LINENO: checking for $ac_word" >&5
2007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2008 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
2010 else
2011 if test -n "$ac_ct_CC"; then
2012 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2013 else
2014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015 for as_dir in $PATH
2016 do
2017 IFS=$as_save_IFS
2018 test -z "$as_dir" && as_dir=.
2019 for ac_exec_ext in '' $ac_executable_extensions; do
2020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2021 ac_cv_prog_ac_ct_CC="$ac_prog"
2022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2023 break 2
2024 fi
2025 done
2026 done
2027
2028 fi
2029 fi
2030 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2031 if test -n "$ac_ct_CC"; then
2032 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2033 echo "${ECHO_T}$ac_ct_CC" >&6
2034 else
2035 echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6
2037 fi
2038
2039 test -n "$ac_ct_CC" && break
2040 done
2041
2042 CC=$ac_ct_CC
2043 fi
2044
2045 fi
2046
2047
2048 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2049 See \`config.log' for more details." >&5
2050 echo "$as_me: error: no acceptable C compiler found in \$PATH
2051 See \`config.log' for more details." >&2;}
2052 { (exit 1); exit 1; }; }
2053
2054 # Provide some information about the compiler.
2055 echo "$as_me:$LINENO:" \
2056 "checking for C compiler version" >&5
2057 ac_compiler=`set X $ac_compile; echo $2`
2058 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2059 (eval $ac_compiler --version </dev/null >&5) 2>&5
2060 ac_status=$?
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); }
2063 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2064 (eval $ac_compiler -v </dev/null >&5) 2>&5
2065 ac_status=$?
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); }
2068 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2069 (eval $ac_compiler -V </dev/null >&5) 2>&5
2070 ac_status=$?
2071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072 (exit $ac_status); }
2073
2074 cat >conftest.$ac_ext <<_ACEOF
2075 /* confdefs.h. */
2076 _ACEOF
2077 cat confdefs.h >>conftest.$ac_ext
2078 cat >>conftest.$ac_ext <<_ACEOF
2079 /* end confdefs.h. */
2080
2081 int
2082 main ()
2083 {
2084
2085 ;
2086 return 0;
2087 }
2088 _ACEOF
2089 ac_clean_files_save=$ac_clean_files
2090 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2091 # Try to create an executable without -o first, disregard a.out.
2092 # It will help us diagnose broken compilers, and finding out an intuition
2093 # of exeext.
2094 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2095 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2096 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2097 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2098 (eval $ac_link_default) 2>&5
2099 ac_status=$?
2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 (exit $ac_status); }; then
2102 # Find the output, starting from the most likely. This scheme is
2103 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2104 # resort.
2105
2106 # Be careful to initialize this variable, since it used to be cached.
2107 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2108 ac_cv_exeext=
2109 # b.out is created by i960 compilers.
2110 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2111 do
2112 test -f "$ac_file" || continue
2113 case $ac_file in
2114 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2115 ;;
2116 conftest.$ac_ext )
2117 # This is the source file.
2118 ;;
2119 [ab].out )
2120 # We found the default executable, but exeext='' is most
2121 # certainly right.
2122 break;;
2123 *.* )
2124 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2125 # FIXME: I believe we export ac_cv_exeext for Libtool,
2126 # but it would be cool to find out if it's true. Does anybody
2127 # maintain Libtool? --akim.
2128 export ac_cv_exeext
2129 break;;
2130 * )
2131 break;;
2132 esac
2133 done
2134 else
2135 echo "$as_me: failed program was:" >&5
2136 sed 's/^/| /' conftest.$ac_ext >&5
2137
2138 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2139 See \`config.log' for more details." >&5
2140 echo "$as_me: error: C compiler cannot create executables
2141 See \`config.log' for more details." >&2;}
2142 { (exit 77); exit 77; }; }
2143 fi
2144
2145 ac_exeext=$ac_cv_exeext
2146 echo "$as_me:$LINENO: result: $ac_file" >&5
2147 echo "${ECHO_T}$ac_file" >&6
2148
2149 # Check the compiler produces executables we can run. If not, either
2150 # the compiler is broken, or we cross compile.
2151 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2152 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2153 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2154 # If not cross compiling, check that we can run a simple program.
2155 if test "$cross_compiling" != yes; then
2156 if { ac_try='./$ac_file'
2157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2158 (eval $ac_try) 2>&5
2159 ac_status=$?
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); }; }; then
2162 cross_compiling=no
2163 else
2164 if test "$cross_compiling" = maybe; then
2165 cross_compiling=yes
2166 else
2167 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2168 If you meant to cross compile, use \`--host'.
2169 See \`config.log' for more details." >&5
2170 echo "$as_me: error: cannot run C compiled programs.
2171 If you meant to cross compile, use \`--host'.
2172 See \`config.log' for more details." >&2;}
2173 { (exit 1); exit 1; }; }
2174 fi
2175 fi
2176 fi
2177 echo "$as_me:$LINENO: result: yes" >&5
2178 echo "${ECHO_T}yes" >&6
2179
2180 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2181 ac_clean_files=$ac_clean_files_save
2182 # Check the compiler produces executables we can run. If not, either
2183 # the compiler is broken, or we cross compile.
2184 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2185 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2186 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2187 echo "${ECHO_T}$cross_compiling" >&6
2188
2189 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2190 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2192 (eval $ac_link) 2>&5
2193 ac_status=$?
2194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195 (exit $ac_status); }; then
2196 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2197 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2198 # work properly (i.e., refer to `conftest.exe'), while it won't with
2199 # `rm'.
2200 for ac_file in conftest.exe conftest conftest.*; do
2201 test -f "$ac_file" || continue
2202 case $ac_file in
2203 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2204 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2205 export ac_cv_exeext
2206 break;;
2207 * ) break;;
2208 esac
2209 done
2210 else
2211 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2212 See \`config.log' for more details." >&5
2213 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2214 See \`config.log' for more details." >&2;}
2215 { (exit 1); exit 1; }; }
2216 fi
2217
2218 rm -f conftest$ac_cv_exeext
2219 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2220 echo "${ECHO_T}$ac_cv_exeext" >&6
2221
2222 rm -f conftest.$ac_ext
2223 EXEEXT=$ac_cv_exeext
2224 ac_exeext=$EXEEXT
2225 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2226 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2227 if test "${ac_cv_objext+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2229 else
2230 cat >conftest.$ac_ext <<_ACEOF
2231 /* confdefs.h. */
2232 _ACEOF
2233 cat confdefs.h >>conftest.$ac_ext
2234 cat >>conftest.$ac_ext <<_ACEOF
2235 /* end confdefs.h. */
2236
2237 int
2238 main ()
2239 {
2240
2241 ;
2242 return 0;
2243 }
2244 _ACEOF
2245 rm -f conftest.o conftest.obj
2246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2247 (eval $ac_compile) 2>&5
2248 ac_status=$?
2249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250 (exit $ac_status); }; then
2251 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2252 case $ac_file in
2253 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2254 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2255 break;;
2256 esac
2257 done
2258 else
2259 echo "$as_me: failed program was:" >&5
2260 sed 's/^/| /' conftest.$ac_ext >&5
2261
2262 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2263 See \`config.log' for more details." >&5
2264 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2265 See \`config.log' for more details." >&2;}
2266 { (exit 1); exit 1; }; }
2267 fi
2268
2269 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2270 fi
2271 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2272 echo "${ECHO_T}$ac_cv_objext" >&6
2273 OBJEXT=$ac_cv_objext
2274 ac_objext=$OBJEXT
2275 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2276 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2277 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2279 else
2280 cat >conftest.$ac_ext <<_ACEOF
2281 /* confdefs.h. */
2282 _ACEOF
2283 cat confdefs.h >>conftest.$ac_ext
2284 cat >>conftest.$ac_ext <<_ACEOF
2285 /* end confdefs.h. */
2286
2287 int
2288 main ()
2289 {
2290 #ifndef __GNUC__
2291 choke me
2292 #endif
2293
2294 ;
2295 return 0;
2296 }
2297 _ACEOF
2298 rm -f conftest.$ac_objext
2299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2300 (eval $ac_compile) 2>conftest.er1
2301 ac_status=$?
2302 grep -v '^ *+' conftest.er1 >conftest.err
2303 rm -f conftest.er1
2304 cat conftest.err >&5
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); } &&
2307 { ac_try='test -z "$ac_c_werror_flag"
2308 || test ! -s conftest.err'
2309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310 (eval $ac_try) 2>&5
2311 ac_status=$?
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); }; } &&
2314 { ac_try='test -s conftest.$ac_objext'
2315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316 (eval $ac_try) 2>&5
2317 ac_status=$?
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; }; then
2320 ac_compiler_gnu=yes
2321 else
2322 echo "$as_me: failed program was:" >&5
2323 sed 's/^/| /' conftest.$ac_ext >&5
2324
2325 ac_compiler_gnu=no
2326 fi
2327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2328 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2329
2330 fi
2331 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2332 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2333 GCC=`test $ac_compiler_gnu = yes && echo yes`
2334 ac_test_CFLAGS=${CFLAGS+set}
2335 ac_save_CFLAGS=$CFLAGS
2336 CFLAGS="-g"
2337 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2338 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2339 if test "${ac_cv_prog_cc_g+set}" = set; then
2340 echo $ECHO_N "(cached) $ECHO_C" >&6
2341 else
2342 cat >conftest.$ac_ext <<_ACEOF
2343 /* confdefs.h. */
2344 _ACEOF
2345 cat confdefs.h >>conftest.$ac_ext
2346 cat >>conftest.$ac_ext <<_ACEOF
2347 /* end confdefs.h. */
2348
2349 int
2350 main ()
2351 {
2352
2353 ;
2354 return 0;
2355 }
2356 _ACEOF
2357 rm -f conftest.$ac_objext
2358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2359 (eval $ac_compile) 2>conftest.er1
2360 ac_status=$?
2361 grep -v '^ *+' conftest.er1 >conftest.err
2362 rm -f conftest.er1
2363 cat conftest.err >&5
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); } &&
2366 { ac_try='test -z "$ac_c_werror_flag"
2367 || test ! -s conftest.err'
2368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369 (eval $ac_try) 2>&5
2370 ac_status=$?
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }; } &&
2373 { ac_try='test -s conftest.$ac_objext'
2374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375 (eval $ac_try) 2>&5
2376 ac_status=$?
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); }; }; then
2379 ac_cv_prog_cc_g=yes
2380 else
2381 echo "$as_me: failed program was:" >&5
2382 sed 's/^/| /' conftest.$ac_ext >&5
2383
2384 ac_cv_prog_cc_g=no
2385 fi
2386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2387 fi
2388 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2389 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2390 if test "$ac_test_CFLAGS" = set; then
2391 CFLAGS=$ac_save_CFLAGS
2392 elif test $ac_cv_prog_cc_g = yes; then
2393 if test "$GCC" = yes; then
2394 CFLAGS="-g -O2"
2395 else
2396 CFLAGS="-g"
2397 fi
2398 else
2399 if test "$GCC" = yes; then
2400 CFLAGS="-O2"
2401 else
2402 CFLAGS=
2403 fi
2404 fi
2405 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2406 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2407 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2408 echo $ECHO_N "(cached) $ECHO_C" >&6
2409 else
2410 ac_cv_prog_cc_stdc=no
2411 ac_save_CC=$CC
2412 cat >conftest.$ac_ext <<_ACEOF
2413 /* confdefs.h. */
2414 _ACEOF
2415 cat confdefs.h >>conftest.$ac_ext
2416 cat >>conftest.$ac_ext <<_ACEOF
2417 /* end confdefs.h. */
2418 #include <stdarg.h>
2419 #include <stdio.h>
2420 #include <sys/types.h>
2421 #include <sys/stat.h>
2422 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2423 struct buf { int x; };
2424 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2425 static char *e (p, i)
2426 char **p;
2427 int i;
2428 {
2429 return p[i];
2430 }
2431 static char *f (char * (*g) (char **, int), char **p, ...)
2432 {
2433 char *s;
2434 va_list v;
2435 va_start (v,p);
2436 s = g (p, va_arg (v,int));
2437 va_end (v);
2438 return s;
2439 }
2440
2441 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2442 function prototypes and stuff, but not '\xHH' hex character constants.
2443 These don't provoke an error unfortunately, instead are silently treated
2444 as 'x'. The following induces an error, until -std1 is added to get
2445 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2446 array size at least. It's necessary to write '\x00'==0 to get something
2447 that's true only with -std1. */
2448 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2449
2450 int test (int i, double x);
2451 struct s1 {int (*f) (int a);};
2452 struct s2 {int (*f) (double a);};
2453 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2454 int argc;
2455 char **argv;
2456 int
2457 main ()
2458 {
2459 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2460 ;
2461 return 0;
2462 }
2463 _ACEOF
2464 # Don't try gcc -ansi; that turns off useful extensions and
2465 # breaks some systems' header files.
2466 # AIX -qlanglvl=ansi
2467 # Ultrix and OSF/1 -std1
2468 # HP-UX 10.20 and later -Ae
2469 # HP-UX older versions -Aa -D_HPUX_SOURCE
2470 # SVR4 -Xc -D__EXTENSIONS__
2471 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2472 do
2473 CC="$ac_save_CC $ac_arg"
2474 rm -f conftest.$ac_objext
2475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2476 (eval $ac_compile) 2>conftest.er1
2477 ac_status=$?
2478 grep -v '^ *+' conftest.er1 >conftest.err
2479 rm -f conftest.er1
2480 cat conftest.err >&5
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); } &&
2483 { ac_try='test -z "$ac_c_werror_flag"
2484 || test ! -s conftest.err'
2485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486 (eval $ac_try) 2>&5
2487 ac_status=$?
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; } &&
2490 { ac_try='test -s conftest.$ac_objext'
2491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2492 (eval $ac_try) 2>&5
2493 ac_status=$?
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); }; }; then
2496 ac_cv_prog_cc_stdc=$ac_arg
2497 break
2498 else
2499 echo "$as_me: failed program was:" >&5
2500 sed 's/^/| /' conftest.$ac_ext >&5
2501
2502 fi
2503 rm -f conftest.err conftest.$ac_objext
2504 done
2505 rm -f conftest.$ac_ext conftest.$ac_objext
2506 CC=$ac_save_CC
2507
2508 fi
2509
2510 case "x$ac_cv_prog_cc_stdc" in
2511 x|xno)
2512 echo "$as_me:$LINENO: result: none needed" >&5
2513 echo "${ECHO_T}none needed" >&6 ;;
2514 *)
2515 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2516 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2517 CC="$CC $ac_cv_prog_cc_stdc" ;;
2518 esac
2519
2520 # Some people use a C++ compiler to compile C. Since we use `exit',
2521 # in C++ we need to declare it. In case someone uses the same compiler
2522 # for both compiling C and C++ we need to have the C++ compiler decide
2523 # the declaration of exit, since it's the most demanding environment.
2524 cat >conftest.$ac_ext <<_ACEOF
2525 #ifndef __cplusplus
2526 choke me
2527 #endif
2528 _ACEOF
2529 rm -f conftest.$ac_objext
2530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2531 (eval $ac_compile) 2>conftest.er1
2532 ac_status=$?
2533 grep -v '^ *+' conftest.er1 >conftest.err
2534 rm -f conftest.er1
2535 cat conftest.err >&5
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); } &&
2538 { ac_try='test -z "$ac_c_werror_flag"
2539 || test ! -s conftest.err'
2540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2541 (eval $ac_try) 2>&5
2542 ac_status=$?
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); }; } &&
2545 { ac_try='test -s conftest.$ac_objext'
2546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547 (eval $ac_try) 2>&5
2548 ac_status=$?
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); }; }; then
2551 for ac_declaration in \
2552 '' \
2553 'extern "C" void std::exit (int) throw (); using std::exit;' \
2554 'extern "C" void std::exit (int); using std::exit;' \
2555 'extern "C" void exit (int) throw ();' \
2556 'extern "C" void exit (int);' \
2557 'void exit (int);'
2558 do
2559 cat >conftest.$ac_ext <<_ACEOF
2560 /* confdefs.h. */
2561 _ACEOF
2562 cat confdefs.h >>conftest.$ac_ext
2563 cat >>conftest.$ac_ext <<_ACEOF
2564 /* end confdefs.h. */
2565 $ac_declaration
2566 #include <stdlib.h>
2567 int
2568 main ()
2569 {
2570 exit (42);
2571 ;
2572 return 0;
2573 }
2574 _ACEOF
2575 rm -f conftest.$ac_objext
2576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2577 (eval $ac_compile) 2>conftest.er1
2578 ac_status=$?
2579 grep -v '^ *+' conftest.er1 >conftest.err
2580 rm -f conftest.er1
2581 cat conftest.err >&5
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); } &&
2584 { ac_try='test -z "$ac_c_werror_flag"
2585 || test ! -s conftest.err'
2586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587 (eval $ac_try) 2>&5
2588 ac_status=$?
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; } &&
2591 { ac_try='test -s conftest.$ac_objext'
2592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2593 (eval $ac_try) 2>&5
2594 ac_status=$?
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); }; }; then
2597 :
2598 else
2599 echo "$as_me: failed program was:" >&5
2600 sed 's/^/| /' conftest.$ac_ext >&5
2601
2602 continue
2603 fi
2604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2605 cat >conftest.$ac_ext <<_ACEOF
2606 /* confdefs.h. */
2607 _ACEOF
2608 cat confdefs.h >>conftest.$ac_ext
2609 cat >>conftest.$ac_ext <<_ACEOF
2610 /* end confdefs.h. */
2611 $ac_declaration
2612 int
2613 main ()
2614 {
2615 exit (42);
2616 ;
2617 return 0;
2618 }
2619 _ACEOF
2620 rm -f conftest.$ac_objext
2621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2622 (eval $ac_compile) 2>conftest.er1
2623 ac_status=$?
2624 grep -v '^ *+' conftest.er1 >conftest.err
2625 rm -f conftest.er1
2626 cat conftest.err >&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); } &&
2629 { ac_try='test -z "$ac_c_werror_flag"
2630 || test ! -s conftest.err'
2631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632 (eval $ac_try) 2>&5
2633 ac_status=$?
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); }; } &&
2636 { ac_try='test -s conftest.$ac_objext'
2637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638 (eval $ac_try) 2>&5
2639 ac_status=$?
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); }; }; then
2642 break
2643 else
2644 echo "$as_me: failed program was:" >&5
2645 sed 's/^/| /' conftest.$ac_ext >&5
2646
2647 fi
2648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2649 done
2650 rm -f conftest*
2651 if test -n "$ac_declaration"; then
2652 echo '#ifdef __cplusplus' >>confdefs.h
2653 echo $ac_declaration >>confdefs.h
2654 echo '#endif' >>confdefs.h
2655 fi
2656
2657 else
2658 echo "$as_me: failed program was:" >&5
2659 sed 's/^/| /' conftest.$ac_ext >&5
2660
2661 fi
2662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2663 ac_ext=c
2664 ac_cpp='$CPP $CPPFLAGS'
2665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2668 DEPDIR="${am__leading_dot}deps"
2669
2670 ac_config_commands="$ac_config_commands depfiles"
2671
2672
2673 am_make=${MAKE-make}
2674 cat > confinc << 'END'
2675 am__doit:
2676 @echo done
2677 .PHONY: am__doit
2678 END
2679 # If we don't find an include directive, just comment out the code.
2680 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2681 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2682 am__include="#"
2683 am__quote=
2684 _am_result=none
2685 # First try GNU make style include.
2686 echo "include confinc" > confmf
2687 # We grep out `Entering directory' and `Leaving directory'
2688 # messages which can occur if `w' ends up in MAKEFLAGS.
2689 # In particular we don't look at `^make:' because GNU make might
2690 # be invoked under some other name (usually "gmake"), in which
2691 # case it prints its new name instead of `make'.
2692 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2693 am__include=include
2694 am__quote=
2695 _am_result=GNU
2696 fi
2697 # Now try BSD make style include.
2698 if test "$am__include" = "#"; then
2699 echo '.include "confinc"' > confmf
2700 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2701 am__include=.include
2702 am__quote="\""
2703 _am_result=BSD
2704 fi
2705 fi
2706
2707
2708 echo "$as_me:$LINENO: result: $_am_result" >&5
2709 echo "${ECHO_T}$_am_result" >&6
2710 rm -f confinc confmf
2711
2712 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2713 if test "${enable_dependency_tracking+set}" = set; then
2714 enableval="$enable_dependency_tracking"
2715
2716 fi;
2717 if test "x$enable_dependency_tracking" != xno; then
2718 am_depcomp="$ac_aux_dir/depcomp"
2719 AMDEPBACKSLASH='\'
2720 fi
2721
2722
2723 if test "x$enable_dependency_tracking" != xno; then
2724 AMDEP_TRUE=
2725 AMDEP_FALSE='#'
2726 else
2727 AMDEP_TRUE='#'
2728 AMDEP_FALSE=
2729 fi
2730
2731
2732
2733
2734 depcc="$CC" am_compiler_list=
2735
2736 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2737 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2738 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2739 echo $ECHO_N "(cached) $ECHO_C" >&6
2740 else
2741 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2742 # We make a subdir and do the tests there. Otherwise we can end up
2743 # making bogus files that we don't know about and never remove. For
2744 # instance it was reported that on HP-UX the gcc test will end up
2745 # making a dummy file named `D' -- because `-MD' means `put the output
2746 # in D'.
2747 mkdir conftest.dir
2748 # Copy depcomp to subdir because otherwise we won't find it if we're
2749 # using a relative directory.
2750 cp "$am_depcomp" conftest.dir
2751 cd conftest.dir
2752 # We will build objects and dependencies in a subdirectory because
2753 # it helps to detect inapplicable dependency modes. For instance
2754 # both Tru64's cc and ICC support -MD to output dependencies as a
2755 # side effect of compilation, but ICC will put the dependencies in
2756 # the current directory while Tru64 will put them in the object
2757 # directory.
2758 mkdir sub
2759
2760 am_cv_CC_dependencies_compiler_type=none
2761 if test "$am_compiler_list" = ""; then
2762 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2763 fi
2764 for depmode in $am_compiler_list; do
2765 # Setup a source with many dependencies, because some compilers
2766 # like to wrap large dependency lists on column 80 (with \), and
2767 # we should not choose a depcomp mode which is confused by this.
2768 #
2769 # We need to recreate these files for each test, as the compiler may
2770 # overwrite some of them when testing with obscure command lines.
2771 # This happens at least with the AIX C compiler.
2772 : > sub/conftest.c
2773 for i in 1 2 3 4 5 6; do
2774 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2775 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2776 # Solaris 8's {/usr,}/bin/sh.
2777 touch sub/conftst$i.h
2778 done
2779 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2780
2781 case $depmode in
2782 nosideeffect)
2783 # after this tag, mechanisms are not by side-effect, so they'll
2784 # only be used when explicitly requested
2785 if test "x$enable_dependency_tracking" = xyes; then
2786 continue
2787 else
2788 break
2789 fi
2790 ;;
2791 none) break ;;
2792 esac
2793 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2794 # mode. It turns out that the SunPro C++ compiler does not properly
2795 # handle `-M -o', and we need to detect this.
2796 if depmode=$depmode \
2797 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2798 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2799 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2800 >/dev/null 2>conftest.err &&
2801 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2802 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2803 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2804 # icc doesn't choke on unknown options, it will just issue warnings
2805 # (even with -Werror). So we grep stderr for any message
2806 # that says an option was ignored.
2807 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2808 am_cv_CC_dependencies_compiler_type=$depmode
2809 break
2810 fi
2811 fi
2812 done
2813
2814 cd ..
2815 rm -rf conftest.dir
2816 else
2817 am_cv_CC_dependencies_compiler_type=none
2818 fi
2819
2820 fi
2821 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2822 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2823 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2824
2825
2826
2827 if
2828 test "x$enable_dependency_tracking" != xno \
2829 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2830 am__fastdepCC_TRUE=
2831 am__fastdepCC_FALSE='#'
2832 else
2833 am__fastdepCC_TRUE='#'
2834 am__fastdepCC_FALSE=
2835 fi
2836
2837
2838
2839 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2840 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2841 if test "${ac_cv_search_strerror+set}" = set; then
2842 echo $ECHO_N "(cached) $ECHO_C" >&6
2843 else
2844 ac_func_search_save_LIBS=$LIBS
2845 ac_cv_search_strerror=no
2846 cat >conftest.$ac_ext <<_ACEOF
2847 /* confdefs.h. */
2848 _ACEOF
2849 cat confdefs.h >>conftest.$ac_ext
2850 cat >>conftest.$ac_ext <<_ACEOF
2851 /* end confdefs.h. */
2852
2853 /* Override any gcc2 internal prototype to avoid an error. */
2854 #ifdef __cplusplus
2855 extern "C"
2856 #endif
2857 /* We use char because int might match the return type of a gcc2
2858 builtin and then its argument prototype would still apply. */
2859 char strerror ();
2860 int
2861 main ()
2862 {
2863 strerror ();
2864 ;
2865 return 0;
2866 }
2867 _ACEOF
2868 rm -f conftest.$ac_objext conftest$ac_exeext
2869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2870 (eval $ac_link) 2>conftest.er1
2871 ac_status=$?
2872 grep -v '^ *+' conftest.er1 >conftest.err
2873 rm -f conftest.er1
2874 cat conftest.err >&5
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); } &&
2877 { ac_try='test -z "$ac_c_werror_flag"
2878 || test ! -s conftest.err'
2879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2880 (eval $ac_try) 2>&5
2881 ac_status=$?
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); }; } &&
2884 { ac_try='test -s conftest$ac_exeext'
2885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886 (eval $ac_try) 2>&5
2887 ac_status=$?
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; }; then
2890 ac_cv_search_strerror="none required"
2891 else
2892 echo "$as_me: failed program was:" >&5
2893 sed 's/^/| /' conftest.$ac_ext >&5
2894
2895 fi
2896 rm -f conftest.err conftest.$ac_objext \
2897 conftest$ac_exeext conftest.$ac_ext
2898 if test "$ac_cv_search_strerror" = no; then
2899 for ac_lib in cposix; do
2900 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2901 cat >conftest.$ac_ext <<_ACEOF
2902 /* confdefs.h. */
2903 _ACEOF
2904 cat confdefs.h >>conftest.$ac_ext
2905 cat >>conftest.$ac_ext <<_ACEOF
2906 /* end confdefs.h. */
2907
2908 /* Override any gcc2 internal prototype to avoid an error. */
2909 #ifdef __cplusplus
2910 extern "C"
2911 #endif
2912 /* We use char because int might match the return type of a gcc2
2913 builtin and then its argument prototype would still apply. */
2914 char strerror ();
2915 int
2916 main ()
2917 {
2918 strerror ();
2919 ;
2920 return 0;
2921 }
2922 _ACEOF
2923 rm -f conftest.$ac_objext conftest$ac_exeext
2924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2925 (eval $ac_link) 2>conftest.er1
2926 ac_status=$?
2927 grep -v '^ *+' conftest.er1 >conftest.err
2928 rm -f conftest.er1
2929 cat conftest.err >&5
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); } &&
2932 { ac_try='test -z "$ac_c_werror_flag"
2933 || test ! -s conftest.err'
2934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935 (eval $ac_try) 2>&5
2936 ac_status=$?
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }; } &&
2939 { ac_try='test -s conftest$ac_exeext'
2940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2941 (eval $ac_try) 2>&5
2942 ac_status=$?
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }; }; then
2945 ac_cv_search_strerror="-l$ac_lib"
2946 break
2947 else
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2950
2951 fi
2952 rm -f conftest.err conftest.$ac_objext \
2953 conftest$ac_exeext conftest.$ac_ext
2954 done
2955 fi
2956 LIBS=$ac_func_search_save_LIBS
2957 fi
2958 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2959 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2960 if test "$ac_cv_search_strerror" != no; then
2961 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2962
2963 fi
2964
2965
2966 # Checks for libraries.
2967
2968 # Checks for header files.
2969 ac_ext=c
2970 ac_cpp='$CPP $CPPFLAGS'
2971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2974 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2975 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2976 # On Suns, sometimes $CPP names a directory.
2977 if test -n "$CPP" && test -d "$CPP"; then
2978 CPP=
2979 fi
2980 if test -z "$CPP"; then
2981 if test "${ac_cv_prog_CPP+set}" = set; then
2982 echo $ECHO_N "(cached) $ECHO_C" >&6
2983 else
2984 # Double quotes because CPP needs to be expanded
2985 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2986 do
2987 ac_preproc_ok=false
2988 for ac_c_preproc_warn_flag in '' yes
2989 do
2990 # Use a header file that comes with gcc, so configuring glibc
2991 # with a fresh cross-compiler works.
2992 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2993 # <limits.h> exists even on freestanding compilers.
2994 # On the NeXT, cc -E runs the code through the compiler's parser,
2995 # not just through cpp. "Syntax error" is here to catch this case.
2996 cat >conftest.$ac_ext <<_ACEOF
2997 /* confdefs.h. */
2998 _ACEOF
2999 cat confdefs.h >>conftest.$ac_ext
3000 cat >>conftest.$ac_ext <<_ACEOF
3001 /* end confdefs.h. */
3002 #ifdef __STDC__
3003 # include <limits.h>
3004 #else
3005 # include <assert.h>
3006 #endif
3007 Syntax error
3008 _ACEOF
3009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3011 ac_status=$?
3012 grep -v '^ *+' conftest.er1 >conftest.err
3013 rm -f conftest.er1
3014 cat conftest.err >&5
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); } >/dev/null; then
3017 if test -s conftest.err; then
3018 ac_cpp_err=$ac_c_preproc_warn_flag
3019 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3020 else
3021 ac_cpp_err=
3022 fi
3023 else
3024 ac_cpp_err=yes
3025 fi
3026 if test -z "$ac_cpp_err"; then
3027 :
3028 else
3029 echo "$as_me: failed program was:" >&5
3030 sed 's/^/| /' conftest.$ac_ext >&5
3031
3032 # Broken: fails on valid input.
3033 continue
3034 fi
3035 rm -f conftest.err conftest.$ac_ext
3036
3037 # OK, works on sane cases. Now check whether non-existent headers
3038 # can be detected and how.
3039 cat >conftest.$ac_ext <<_ACEOF
3040 /* confdefs.h. */
3041 _ACEOF
3042 cat confdefs.h >>conftest.$ac_ext
3043 cat >>conftest.$ac_ext <<_ACEOF
3044 /* end confdefs.h. */
3045 #include <ac_nonexistent.h>
3046 _ACEOF
3047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3049 ac_status=$?
3050 grep -v '^ *+' conftest.er1 >conftest.err
3051 rm -f conftest.er1
3052 cat conftest.err >&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); } >/dev/null; then
3055 if test -s conftest.err; then
3056 ac_cpp_err=$ac_c_preproc_warn_flag
3057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3058 else
3059 ac_cpp_err=
3060 fi
3061 else
3062 ac_cpp_err=yes
3063 fi
3064 if test -z "$ac_cpp_err"; then
3065 # Broken: success on invalid input.
3066 continue
3067 else
3068 echo "$as_me: failed program was:" >&5
3069 sed 's/^/| /' conftest.$ac_ext >&5
3070
3071 # Passes both tests.
3072 ac_preproc_ok=:
3073 break
3074 fi
3075 rm -f conftest.err conftest.$ac_ext
3076
3077 done
3078 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3079 rm -f conftest.err conftest.$ac_ext
3080 if $ac_preproc_ok; then
3081 break
3082 fi
3083
3084 done
3085 ac_cv_prog_CPP=$CPP
3086
3087 fi
3088 CPP=$ac_cv_prog_CPP
3089 else
3090 ac_cv_prog_CPP=$CPP
3091 fi
3092 echo "$as_me:$LINENO: result: $CPP" >&5
3093 echo "${ECHO_T}$CPP" >&6
3094 ac_preproc_ok=false
3095 for ac_c_preproc_warn_flag in '' yes
3096 do
3097 # Use a header file that comes with gcc, so configuring glibc
3098 # with a fresh cross-compiler works.
3099 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3100 # <limits.h> exists even on freestanding compilers.
3101 # On the NeXT, cc -E runs the code through the compiler's parser,
3102 # not just through cpp. "Syntax error" is here to catch this case.
3103 cat >conftest.$ac_ext <<_ACEOF
3104 /* confdefs.h. */
3105 _ACEOF
3106 cat confdefs.h >>conftest.$ac_ext
3107 cat >>conftest.$ac_ext <<_ACEOF
3108 /* end confdefs.h. */
3109 #ifdef __STDC__
3110 # include <limits.h>
3111 #else
3112 # include <assert.h>
3113 #endif
3114 Syntax error
3115 _ACEOF
3116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3117 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3118 ac_status=$?
3119 grep -v '^ *+' conftest.er1 >conftest.err
3120 rm -f conftest.er1
3121 cat conftest.err >&5
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); } >/dev/null; then
3124 if test -s conftest.err; then
3125 ac_cpp_err=$ac_c_preproc_warn_flag
3126 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3127 else
3128 ac_cpp_err=
3129 fi
3130 else
3131 ac_cpp_err=yes
3132 fi
3133 if test -z "$ac_cpp_err"; then
3134 :
3135 else
3136 echo "$as_me: failed program was:" >&5
3137 sed 's/^/| /' conftest.$ac_ext >&5
3138
3139 # Broken: fails on valid input.
3140 continue
3141 fi
3142 rm -f conftest.err conftest.$ac_ext
3143
3144 # OK, works on sane cases. Now check whether non-existent headers
3145 # can be detected and how.
3146 cat >conftest.$ac_ext <<_ACEOF
3147 /* confdefs.h. */
3148 _ACEOF
3149 cat confdefs.h >>conftest.$ac_ext
3150 cat >>conftest.$ac_ext <<_ACEOF
3151 /* end confdefs.h. */
3152 #include <ac_nonexistent.h>
3153 _ACEOF
3154 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3156 ac_status=$?
3157 grep -v '^ *+' conftest.er1 >conftest.err
3158 rm -f conftest.er1
3159 cat conftest.err >&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); } >/dev/null; then
3162 if test -s conftest.err; then
3163 ac_cpp_err=$ac_c_preproc_warn_flag
3164 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3165 else
3166 ac_cpp_err=
3167 fi
3168 else
3169 ac_cpp_err=yes
3170 fi
3171 if test -z "$ac_cpp_err"; then
3172 # Broken: success on invalid input.
3173 continue
3174 else
3175 echo "$as_me: failed program was:" >&5
3176 sed 's/^/| /' conftest.$ac_ext >&5
3177
3178 # Passes both tests.
3179 ac_preproc_ok=:
3180 break
3181 fi
3182 rm -f conftest.err conftest.$ac_ext
3183
3184 done
3185 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3186 rm -f conftest.err conftest.$ac_ext
3187 if $ac_preproc_ok; then
3188 :
3189 else
3190 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3191 See \`config.log' for more details." >&5
3192 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3193 See \`config.log' for more details." >&2;}
3194 { (exit 1); exit 1; }; }
3195 fi
3196
3197 ac_ext=c
3198 ac_cpp='$CPP $CPPFLAGS'
3199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3202
3203
3204 echo "$as_me:$LINENO: checking for egrep" >&5
3205 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3206 if test "${ac_cv_prog_egrep+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3208 else
3209 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3210 then ac_cv_prog_egrep='grep -E'
3211 else ac_cv_prog_egrep='egrep'
3212 fi
3213 fi
3214 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3215 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3216 EGREP=$ac_cv_prog_egrep
3217
3218
3219 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3220 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3221 if test "${ac_cv_header_stdc+set}" = set; then
3222 echo $ECHO_N "(cached) $ECHO_C" >&6
3223 else
3224 cat >conftest.$ac_ext <<_ACEOF
3225 /* confdefs.h. */
3226 _ACEOF
3227 cat confdefs.h >>conftest.$ac_ext
3228 cat >>conftest.$ac_ext <<_ACEOF
3229 /* end confdefs.h. */
3230 #include <stdlib.h>
3231 #include <stdarg.h>
3232 #include <string.h>
3233 #include <float.h>
3234
3235 int
3236 main ()
3237 {
3238
3239 ;
3240 return 0;
3241 }
3242 _ACEOF
3243 rm -f conftest.$ac_objext
3244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3245 (eval $ac_compile) 2>conftest.er1
3246 ac_status=$?
3247 grep -v '^ *+' conftest.er1 >conftest.err
3248 rm -f conftest.er1
3249 cat conftest.err >&5
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); } &&
3252 { ac_try='test -z "$ac_c_werror_flag"
3253 || test ! -s conftest.err'
3254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3255 (eval $ac_try) 2>&5
3256 ac_status=$?
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }; } &&
3259 { ac_try='test -s conftest.$ac_objext'
3260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3261 (eval $ac_try) 2>&5
3262 ac_status=$?
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); }; }; then
3265 ac_cv_header_stdc=yes
3266 else
3267 echo "$as_me: failed program was:" >&5
3268 sed 's/^/| /' conftest.$ac_ext >&5
3269
3270 ac_cv_header_stdc=no
3271 fi
3272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3273
3274 if test $ac_cv_header_stdc = yes; then
3275 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3276 cat >conftest.$ac_ext <<_ACEOF
3277 /* confdefs.h. */
3278 _ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h. */
3282 #include <string.h>
3283
3284 _ACEOF
3285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3286 $EGREP "memchr" >/dev/null 2>&1; then
3287 :
3288 else
3289 ac_cv_header_stdc=no
3290 fi
3291 rm -f conftest*
3292
3293 fi
3294
3295 if test $ac_cv_header_stdc = yes; then
3296 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3297 cat >conftest.$ac_ext <<_ACEOF
3298 /* confdefs.h. */
3299 _ACEOF
3300 cat confdefs.h >>conftest.$ac_ext
3301 cat >>conftest.$ac_ext <<_ACEOF
3302 /* end confdefs.h. */
3303 #include <stdlib.h>
3304
3305 _ACEOF
3306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3307 $EGREP "free" >/dev/null 2>&1; then
3308 :
3309 else
3310 ac_cv_header_stdc=no
3311 fi
3312 rm -f conftest*
3313
3314 fi
3315
3316 if test $ac_cv_header_stdc = yes; then
3317 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3318 if test "$cross_compiling" = yes; then
3319 :
3320 else
3321 cat >conftest.$ac_ext <<_ACEOF
3322 /* confdefs.h. */
3323 _ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h. */
3327 #include <ctype.h>
3328 #if ((' ' & 0x0FF) == 0x020)
3329 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3330 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3331 #else
3332 # define ISLOWER(c) \
3333 (('a' <= (c) && (c) <= 'i') \
3334 || ('j' <= (c) && (c) <= 'r') \
3335 || ('s' <= (c) && (c) <= 'z'))
3336 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3337 #endif
3338
3339 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3340 int
3341 main ()
3342 {
3343 int i;
3344 for (i = 0; i < 256; i++)
3345 if (XOR (islower (i), ISLOWER (i))
3346 || toupper (i) != TOUPPER (i))
3347 exit(2);
3348 exit (0);
3349 }
3350 _ACEOF
3351 rm -f conftest$ac_exeext
3352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3353 (eval $ac_link) 2>&5
3354 ac_status=$?
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358 (eval $ac_try) 2>&5
3359 ac_status=$?
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }; }; then
3362 :
3363 else
3364 echo "$as_me: program exited with status $ac_status" >&5
3365 echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.$ac_ext >&5
3367
3368 ( exit $ac_status )
3369 ac_cv_header_stdc=no
3370 fi
3371 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3372 fi
3373 fi
3374 fi
3375 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3376 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3377 if test $ac_cv_header_stdc = yes; then
3378
3379 cat >>confdefs.h <<\_ACEOF
3380 #define STDC_HEADERS 1
3381 _ACEOF
3382
3383 fi
3384
3385 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3396 inttypes.h stdint.h unistd.h
3397 do
3398 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3399 echo "$as_me:$LINENO: checking for $ac_header" >&5
3400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3402 echo $ECHO_N "(cached) $ECHO_C" >&6
3403 else
3404 cat >conftest.$ac_ext <<_ACEOF
3405 /* confdefs.h. */
3406 _ACEOF
3407 cat confdefs.h >>conftest.$ac_ext
3408 cat >>conftest.$ac_ext <<_ACEOF
3409 /* end confdefs.h. */
3410 $ac_includes_default
3411
3412 #include <$ac_header>
3413 _ACEOF
3414 rm -f conftest.$ac_objext
3415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3416 (eval $ac_compile) 2>conftest.er1
3417 ac_status=$?
3418 grep -v '^ *+' conftest.er1 >conftest.err
3419 rm -f conftest.er1
3420 cat conftest.err >&5
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); } &&
3423 { ac_try='test -z "$ac_c_werror_flag"
3424 || test ! -s conftest.err'
3425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3426 (eval $ac_try) 2>&5
3427 ac_status=$?
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); }; } &&
3430 { ac_try='test -s conftest.$ac_objext'
3431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3432 (eval $ac_try) 2>&5
3433 ac_status=$?
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); }; }; then
3436 eval "$as_ac_Header=yes"
3437 else
3438 echo "$as_me: failed program was:" >&5
3439 sed 's/^/| /' conftest.$ac_ext >&5
3440
3441 eval "$as_ac_Header=no"
3442 fi
3443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3444 fi
3445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3448 cat >>confdefs.h <<_ACEOF
3449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3450 _ACEOF
3451
3452 fi
3453
3454 done
3455
3456
3457
3458
3459
3460
3461
3462
3463 for ac_header in netdb.h netinet/in.h sys/param.h sys/socket.h unistd.h mysql/mysql.h
3464 do
3465 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3467 echo "$as_me:$LINENO: checking for $ac_header" >&5
3468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3470 echo $ECHO_N "(cached) $ECHO_C" >&6
3471 fi
3472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3474 else
3475 # Is the header compilable?
3476 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3477 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3478 cat >conftest.$ac_ext <<_ACEOF
3479 /* confdefs.h. */
3480 _ACEOF
3481 cat confdefs.h >>conftest.$ac_ext
3482 cat >>conftest.$ac_ext <<_ACEOF
3483 /* end confdefs.h. */
3484 $ac_includes_default
3485 #include <$ac_header>
3486 _ACEOF
3487 rm -f conftest.$ac_objext
3488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3489 (eval $ac_compile) 2>conftest.er1
3490 ac_status=$?
3491 grep -v '^ *+' conftest.er1 >conftest.err
3492 rm -f conftest.er1
3493 cat conftest.err >&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); } &&
3496 { ac_try='test -z "$ac_c_werror_flag"
3497 || test ! -s conftest.err'
3498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3499 (eval $ac_try) 2>&5
3500 ac_status=$?
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); }; } &&
3503 { ac_try='test -s conftest.$ac_objext'
3504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3505 (eval $ac_try) 2>&5
3506 ac_status=$?
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); }; }; then
3509 ac_header_compiler=yes
3510 else
3511 echo "$as_me: failed program was:" >&5
3512 sed 's/^/| /' conftest.$ac_ext >&5
3513
3514 ac_header_compiler=no
3515 fi
3516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3517 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3518 echo "${ECHO_T}$ac_header_compiler" >&6
3519
3520 # Is the header present?
3521 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3522 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3523 cat >conftest.$ac_ext <<_ACEOF
3524 /* confdefs.h. */
3525 _ACEOF
3526 cat confdefs.h >>conftest.$ac_ext
3527 cat >>conftest.$ac_ext <<_ACEOF
3528 /* end confdefs.h. */
3529 #include <$ac_header>
3530 _ACEOF
3531 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3532 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3533 ac_status=$?
3534 grep -v '^ *+' conftest.er1 >conftest.err
3535 rm -f conftest.er1
3536 cat conftest.err >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } >/dev/null; then
3539 if test -s conftest.err; then
3540 ac_cpp_err=$ac_c_preproc_warn_flag
3541 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3542 else
3543 ac_cpp_err=
3544 fi
3545 else
3546 ac_cpp_err=yes
3547 fi
3548 if test -z "$ac_cpp_err"; then
3549 ac_header_preproc=yes
3550 else
3551 echo "$as_me: failed program was:" >&5
3552 sed 's/^/| /' conftest.$ac_ext >&5
3553
3554 ac_header_preproc=no
3555 fi
3556 rm -f conftest.err conftest.$ac_ext
3557 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3558 echo "${ECHO_T}$ac_header_preproc" >&6
3559
3560 # So? What about this header?
3561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3562 yes:no: )
3563 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3564 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3566 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3567 ac_header_preproc=yes
3568 ;;
3569 no:yes:* )
3570 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3571 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3572 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3573 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3574 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3575 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3576 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3577 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3580 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3581 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3582 (
3583 cat <<\_ASBOX
3584 ## ------------------------------- ##
3585 ## Report this to the bbsd lists. ##
3586 ## ------------------------------- ##
3587 _ASBOX
3588 ) |
3589 sed "s/^/$as_me: WARNING: /" >&2
3590 ;;
3591 esac
3592 echo "$as_me:$LINENO: checking for $ac_header" >&5
3593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3596 else
3597 eval "$as_ac_Header=\$ac_header_preproc"
3598 fi
3599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3600 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3601
3602 fi
3603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3604 cat >>confdefs.h <<_ACEOF
3605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3606 _ACEOF
3607
3608 fi
3609
3610 done
3611
3612
3613 # Checks for typedefs, structures, and compiler characteristics.
3614 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3615 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3616 if test "${ac_cv_c_const+set}" = set; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3618 else
3619 cat >conftest.$ac_ext <<_ACEOF
3620 /* confdefs.h. */
3621 _ACEOF
3622 cat confdefs.h >>conftest.$ac_ext
3623 cat >>conftest.$ac_ext <<_ACEOF
3624 /* end confdefs.h. */
3625
3626 int
3627 main ()
3628 {
3629 /* FIXME: Include the comments suggested by Paul. */
3630 #ifndef __cplusplus
3631 /* Ultrix mips cc rejects this. */
3632 typedef int charset[2];
3633 const charset x;
3634 /* SunOS 4.1.1 cc rejects this. */
3635 char const *const *ccp;
3636 char **p;
3637 /* NEC SVR4.0.2 mips cc rejects this. */
3638 struct point {int x, y;};
3639 static struct point const zero = {0,0};
3640 /* AIX XL C 1.02.0.0 rejects this.
3641 It does not let you subtract one const X* pointer from another in
3642 an arm of an if-expression whose if-part is not a constant
3643 expression */
3644 const char *g = "string";
3645 ccp = &g + (g ? g-g : 0);
3646 /* HPUX 7.0 cc rejects these. */
3647 ++ccp;
3648 p = (char**) ccp;
3649 ccp = (char const *const *) p;
3650 { /* SCO 3.2v4 cc rejects this. */
3651 char *t;
3652 char const *s = 0 ? (char *) 0 : (char const *) 0;
3653
3654 *t++ = 0;
3655 }
3656 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3657 int x[] = {25, 17};
3658 const int *foo = &x[0];
3659 ++foo;
3660 }
3661 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3662 typedef const int *iptr;
3663 iptr p = 0;
3664 ++p;
3665 }
3666 { /* AIX XL C 1.02.0.0 rejects this saying
3667 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3668 struct s { int j; const int *ap[3]; };
3669 struct s *b; b->j = 5;
3670 }
3671 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3672 const int foo = 10;
3673 }
3674 #endif
3675
3676 ;
3677 return 0;
3678 }
3679 _ACEOF
3680 rm -f conftest.$ac_objext
3681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3682 (eval $ac_compile) 2>conftest.er1
3683 ac_status=$?
3684 grep -v '^ *+' conftest.er1 >conftest.err
3685 rm -f conftest.er1
3686 cat conftest.err >&5
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); } &&
3689 { ac_try='test -z "$ac_c_werror_flag"
3690 || test ! -s conftest.err'
3691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3692 (eval $ac_try) 2>&5
3693 ac_status=$?
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); }; } &&
3696 { ac_try='test -s conftest.$ac_objext'
3697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3698 (eval $ac_try) 2>&5
3699 ac_status=$?
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); }; }; then
3702 ac_cv_c_const=yes
3703 else
3704 echo "$as_me: failed program was:" >&5
3705 sed 's/^/| /' conftest.$ac_ext >&5
3706
3707 ac_cv_c_const=no
3708 fi
3709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3710 fi
3711 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3712 echo "${ECHO_T}$ac_cv_c_const" >&6
3713 if test $ac_cv_c_const = no; then
3714
3715 cat >>confdefs.h <<\_ACEOF
3716 #define const
3717 _ACEOF
3718
3719 fi
3720
3721
3722 # Checks for library functions.
3723 echo "$as_me:$LINENO: checking for pid_t" >&5
3724 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
3725 if test "${ac_cv_type_pid_t+set}" = set; then
3726 echo $ECHO_N "(cached) $ECHO_C" >&6
3727 else
3728 cat >conftest.$ac_ext <<_ACEOF
3729 /* confdefs.h. */
3730 _ACEOF
3731 cat confdefs.h >>conftest.$ac_ext
3732 cat >>conftest.$ac_ext <<_ACEOF
3733 /* end confdefs.h. */
3734 $ac_includes_default
3735 int
3736 main ()
3737 {
3738 if ((pid_t *) 0)
3739 return 0;
3740 if (sizeof (pid_t))
3741 return 0;
3742 ;
3743 return 0;
3744 }
3745 _ACEOF
3746 rm -f conftest.$ac_objext
3747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3748 (eval $ac_compile) 2>conftest.er1
3749 ac_status=$?
3750 grep -v '^ *+' conftest.er1 >conftest.err
3751 rm -f conftest.er1
3752 cat conftest.err >&5
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); } &&
3755 { ac_try='test -z "$ac_c_werror_flag"
3756 || test ! -s conftest.err'
3757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3758 (eval $ac_try) 2>&5
3759 ac_status=$?
3760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761 (exit $ac_status); }; } &&
3762 { ac_try='test -s conftest.$ac_objext'
3763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3764 (eval $ac_try) 2>&5
3765 ac_status=$?
3766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767 (exit $ac_status); }; }; then
3768 ac_cv_type_pid_t=yes
3769 else
3770 echo "$as_me: failed program was:" >&5
3771 sed 's/^/| /' conftest.$ac_ext >&5
3772
3773 ac_cv_type_pid_t=no
3774 fi
3775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3776 fi
3777 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
3778 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
3779 if test $ac_cv_type_pid_t = yes; then
3780 :
3781 else
3782
3783 cat >>confdefs.h <<_ACEOF
3784 #define pid_t int
3785 _ACEOF
3786
3787 fi
3788
3789
3790
3791 for ac_header in unistd.h vfork.h
3792 do
3793 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3795 echo "$as_me:$LINENO: checking for $ac_header" >&5
3796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3799 fi
3800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3801 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3802 else
3803 # Is the header compilable?
3804 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3805 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3806 cat >conftest.$ac_ext <<_ACEOF
3807 /* confdefs.h. */
3808 _ACEOF
3809 cat confdefs.h >>conftest.$ac_ext
3810 cat >>conftest.$ac_ext <<_ACEOF
3811 /* end confdefs.h. */
3812 $ac_includes_default
3813 #include <$ac_header>
3814 _ACEOF
3815 rm -f conftest.$ac_objext
3816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3817 (eval $ac_compile) 2>conftest.er1
3818 ac_status=$?
3819 grep -v '^ *+' conftest.er1 >conftest.err
3820 rm -f conftest.er1
3821 cat conftest.err >&5
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); } &&
3824 { ac_try='test -z "$ac_c_werror_flag"
3825 || test ! -s conftest.err'
3826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3827 (eval $ac_try) 2>&5
3828 ac_status=$?
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); }; } &&
3831 { ac_try='test -s conftest.$ac_objext'
3832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3833 (eval $ac_try) 2>&5
3834 ac_status=$?
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); }; }; then
3837 ac_header_compiler=yes
3838 else
3839 echo "$as_me: failed program was:" >&5
3840 sed 's/^/| /' conftest.$ac_ext >&5
3841
3842 ac_header_compiler=no
3843 fi
3844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3845 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3846 echo "${ECHO_T}$ac_header_compiler" >&6
3847
3848 # Is the header present?
3849 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3850 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3851 cat >conftest.$ac_ext <<_ACEOF
3852 /* confdefs.h. */
3853 _ACEOF
3854 cat confdefs.h >>conftest.$ac_ext
3855 cat >>conftest.$ac_ext <<_ACEOF
3856 /* end confdefs.h. */
3857 #include <$ac_header>
3858 _ACEOF
3859 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3860 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3861 ac_status=$?
3862 grep -v '^ *+' conftest.er1 >conftest.err
3863 rm -f conftest.er1
3864 cat conftest.err >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); } >/dev/null; then
3867 if test -s conftest.err; then
3868 ac_cpp_err=$ac_c_preproc_warn_flag
3869 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3870 else
3871 ac_cpp_err=
3872 fi
3873 else
3874 ac_cpp_err=yes
3875 fi
3876 if test -z "$ac_cpp_err"; then
3877 ac_header_preproc=yes
3878 else
3879 echo "$as_me: failed program was:" >&5
3880 sed 's/^/| /' conftest.$ac_ext >&5
3881
3882 ac_header_preproc=no
3883 fi
3884 rm -f conftest.err conftest.$ac_ext
3885 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3886 echo "${ECHO_T}$ac_header_preproc" >&6
3887
3888 # So? What about this header?
3889 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3890 yes:no: )
3891 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3892 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3894 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3895 ac_header_preproc=yes
3896 ;;
3897 no:yes:* )
3898 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3899 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3900 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3901 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3902 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3903 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3904 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3905 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3907 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3908 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3909 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3910 (
3911 cat <<\_ASBOX
3912 ## ------------------------------- ##
3913 ## Report this to the bbsd lists. ##
3914 ## ------------------------------- ##
3915 _ASBOX
3916 ) |
3917 sed "s/^/$as_me: WARNING: /" >&2
3918 ;;
3919 esac
3920 echo "$as_me:$LINENO: checking for $ac_header" >&5
3921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3923 echo $ECHO_N "(cached) $ECHO_C" >&6
3924 else
3925 eval "$as_ac_Header=\$ac_header_preproc"
3926 fi
3927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3929
3930 fi
3931 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3932 cat >>confdefs.h <<_ACEOF
3933 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3934 _ACEOF
3935
3936 fi
3937
3938 done
3939
3940
3941
3942 for ac_func in fork vfork
3943 do
3944 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3945 echo "$as_me:$LINENO: checking for $ac_func" >&5
3946 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3947 if eval "test \"\${$as_ac_var+set}\" = set"; then
3948 echo $ECHO_N "(cached) $ECHO_C" >&6
3949 else
3950 cat >conftest.$ac_ext <<_ACEOF
3951 /* confdefs.h. */
3952 _ACEOF
3953 cat confdefs.h >>conftest.$ac_ext
3954 cat >>conftest.$ac_ext <<_ACEOF
3955 /* end confdefs.h. */
3956 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3958 #define $ac_func innocuous_$ac_func
3959
3960 /* System header to define __stub macros and hopefully few prototypes,
3961 which can conflict with char $ac_func (); below.
3962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3963 <limits.h> exists even on freestanding compilers. */
3964
3965 #ifdef __STDC__
3966 # include <limits.h>
3967 #else
3968 # include <assert.h>
3969 #endif
3970
3971 #undef $ac_func
3972
3973 /* Override any gcc2 internal prototype to avoid an error. */
3974 #ifdef __cplusplus
3975 extern "C"
3976 {
3977 #endif
3978 /* We use char because int might match the return type of a gcc2
3979 builtin and then its argument prototype would still apply. */
3980 char $ac_func ();
3981 /* The GNU C library defines this for functions which it implements
3982 to always fail with ENOSYS. Some functions are actually named
3983 something starting with __ and the normal name is an alias. */
3984 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3985 choke me
3986 #else
3987 char (*f) () = $ac_func;
3988 #endif
3989 #ifdef __cplusplus
3990 }
3991 #endif
3992
3993 int
3994 main ()
3995 {
3996 return f != $ac_func;
3997 ;
3998 return 0;
3999 }
4000 _ACEOF
4001 rm -f conftest.$ac_objext conftest$ac_exeext
4002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4003 (eval $ac_link) 2>conftest.er1
4004 ac_status=$?
4005 grep -v '^ *+' conftest.er1 >conftest.err
4006 rm -f conftest.er1
4007 cat conftest.err >&5
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); } &&
4010 { ac_try='test -z "$ac_c_werror_flag"
4011 || test ! -s conftest.err'
4012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013 (eval $ac_try) 2>&5
4014 ac_status=$?
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; } &&
4017 { ac_try='test -s conftest$ac_exeext'
4018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4019 (eval $ac_try) 2>&5
4020 ac_status=$?
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); }; }; then
4023 eval "$as_ac_var=yes"
4024 else
4025 echo "$as_me: failed program was:" >&5
4026 sed 's/^/| /' conftest.$ac_ext >&5
4027
4028 eval "$as_ac_var=no"
4029 fi
4030 rm -f conftest.err conftest.$ac_objext \
4031 conftest$ac_exeext conftest.$ac_ext
4032 fi
4033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4034 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4035 if test `eval echo '${'$as_ac_var'}'` = yes; then
4036 cat >>confdefs.h <<_ACEOF
4037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4038 _ACEOF
4039
4040 fi
4041 done
4042
4043 if test "x$ac_cv_func_fork" = xyes; then
4044 echo "$as_me:$LINENO: checking for working fork" >&5
4045 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
4046 if test "${ac_cv_func_fork_works+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 else
4049 if test "$cross_compiling" = yes; then
4050 ac_cv_func_fork_works=cross
4051 else
4052 cat >conftest.$ac_ext <<_ACEOF
4053 /* By Ruediger Kuhlmann. */
4054 #include <sys/types.h>
4055 #if HAVE_UNISTD_H
4056 # include <unistd.h>
4057 #endif
4058 /* Some systems only have a dummy stub for fork() */
4059 int main ()
4060 {
4061 if (fork() < 0)
4062 exit (1);
4063 exit (0);
4064 }
4065 _ACEOF
4066 rm -f conftest$ac_exeext
4067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4068 (eval $ac_link) 2>&5
4069 ac_status=$?
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4073 (eval $ac_try) 2>&5
4074 ac_status=$?
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; }; then
4077 ac_cv_func_fork_works=yes
4078 else
4079 echo "$as_me: program exited with status $ac_status" >&5
4080 echo "$as_me: failed program was:" >&5
4081 sed 's/^/| /' conftest.$ac_ext >&5
4082
4083 ( exit $ac_status )
4084 ac_cv_func_fork_works=no
4085 fi
4086 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4087 fi
4088 fi
4089 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
4090 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
4091
4092 else
4093 ac_cv_func_fork_works=$ac_cv_func_fork
4094 fi
4095 if test "x$ac_cv_func_fork_works" = xcross; then
4096 case $host in
4097 *-*-amigaos* | *-*-msdosdjgpp*)
4098 # Override, as these systems have only a dummy fork() stub
4099 ac_cv_func_fork_works=no
4100 ;;
4101 *)
4102 ac_cv_func_fork_works=yes
4103 ;;
4104 esac
4105 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
4106 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
4107 fi
4108 ac_cv_func_vfork_works=$ac_cv_func_vfork
4109 if test "x$ac_cv_func_vfork" = xyes; then
4110 echo "$as_me:$LINENO: checking for working vfork" >&5
4111 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
4112 if test "${ac_cv_func_vfork_works+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4114 else
4115 if test "$cross_compiling" = yes; then
4116 ac_cv_func_vfork_works=cross
4117 else
4118 cat >conftest.$ac_ext <<_ACEOF
4119 /* confdefs.h. */
4120 _ACEOF
4121 cat confdefs.h >>conftest.$ac_ext
4122 cat >>conftest.$ac_ext <<_ACEOF
4123 /* end confdefs.h. */
4124 /* Thanks to Paul Eggert for this test. */
4125 #include <stdio.h>
4126 #include <stdlib.h>
4127 #include <sys/types.h>
4128 #include <sys/stat.h>
4129 #include <sys/wait.h>
4130 #if HAVE_UNISTD_H
4131 # include <unistd.h>
4132 #endif
4133 #if HAVE_VFORK_H
4134 # include <vfork.h>
4135 #endif
4136 /* On some sparc systems, changes by the child to local and incoming
4137 argument registers are propagated back to the parent. The compiler
4138 is told about this with #include <vfork.h>, but some compilers
4139 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
4140 static variable whose address is put into a register that is
4141 clobbered by the vfork. */
4142 static void
4143 #ifdef __cplusplus
4144 sparc_address_test (int arg)
4145 # else
4146 sparc_address_test (arg) int arg;
4147 #endif
4148 {
4149 static pid_t child;
4150 if (!child) {
4151 child = vfork ();
4152 if (child < 0) {
4153 perror ("vfork");
4154 _exit(2);
4155 }
4156 if (!child) {
4157 arg = getpid();
4158 write(-1, "", 0);
4159 _exit (arg);
4160 }
4161 }
4162 }
4163
4164 int
4165 main ()
4166 {
4167 pid_t parent = getpid ();
4168 pid_t child;
4169
4170 sparc_address_test (0);
4171
4172 child = vfork ();
4173
4174 if (child == 0) {
4175 /* Here is another test for sparc vfork register problems. This
4176 test uses lots of local variables, at least as many local
4177 variables as main has allocated so far including compiler
4178 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
4179 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
4180 reuse the register of parent for one of the local variables,
4181 since it will think that parent can't possibly be used any more
4182 in this routine. Assigning to the local variable will thus
4183 munge parent in the parent process. */
4184 pid_t
4185 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
4186 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
4187 /* Convince the compiler that p..p7 are live; otherwise, it might
4188 use the same hardware register for all 8 local variables. */
4189 if (p != p1 || p != p2 || p != p3 || p != p4
4190 || p != p5 || p != p6 || p != p7)
4191 _exit(1);
4192
4193 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
4194 from child file descriptors. If the child closes a descriptor
4195 before it execs or exits, this munges the parent's descriptor
4196 as well. Test for this by closing stdout in the child. */
4197 _exit(close(fileno(stdout)) != 0);
4198 } else {
4199 int status;
4200 struct stat st;
4201
4202 while (wait(&status) != child)
4203 ;
4204 exit(
4205 /* Was there some problem with vforking? */
4206 child < 0
4207
4208 /* Did the child fail? (This shouldn't happen.) */
4209 || status
4210
4211 /* Did the vfork/compiler bug occur? */
4212 || parent != getpid()
4213
4214 /* Did the file descriptor bug occur? */
4215 || fstat(fileno(stdout), &st) != 0
4216 );
4217 }
4218 }
4219 _ACEOF
4220 rm -f conftest$ac_exeext
4221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4222 (eval $ac_link) 2>&5
4223 ac_status=$?
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227 (eval $ac_try) 2>&5
4228 ac_status=$?
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }; }; then
4231 ac_cv_func_vfork_works=yes
4232 else
4233 echo "$as_me: program exited with status $ac_status" >&5
4234 echo "$as_me: failed program was:" >&5
4235 sed 's/^/| /' conftest.$ac_ext >&5
4236
4237 ( exit $ac_status )
4238 ac_cv_func_vfork_works=no
4239 fi
4240 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4241 fi
4242 fi
4243 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
4244 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
4245
4246 fi;
4247 if test "x$ac_cv_func_fork_works" = xcross; then
4248 ac_cv_func_vfork_works=$ac_cv_func_vfork
4249 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
4250 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
4251 fi
4252
4253 if test "x$ac_cv_func_vfork_works" = xyes; then
4254
4255 cat >>confdefs.h <<\_ACEOF
4256 #define HAVE_WORKING_VFORK 1
4257 _ACEOF
4258
4259 else
4260
4261 cat >>confdefs.h <<\_ACEOF
4262 #define vfork fork
4263 _ACEOF
4264
4265 fi
4266 if test "x$ac_cv_func_fork_works" = xyes; then
4267
4268 cat >>confdefs.h <<\_ACEOF
4269 #define HAVE_WORKING_FORK 1
4270 _ACEOF
4271
4272 fi
4273
4274 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4275 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4276 if test "${ac_cv_header_stdc+set}" = set; then
4277 echo $ECHO_N "(cached) $ECHO_C" >&6
4278 else
4279 cat >conftest.$ac_ext <<_ACEOF
4280 /* confdefs.h. */
4281 _ACEOF
4282 cat confdefs.h >>conftest.$ac_ext
4283 cat >>conftest.$ac_ext <<_ACEOF
4284 /* end confdefs.h. */
4285 #include <stdlib.h>
4286 #include <stdarg.h>
4287 #include <string.h>
4288 #include <float.h>
4289
4290 int
4291 main ()
4292 {
4293
4294 ;
4295 return 0;
4296 }
4297 _ACEOF
4298 rm -f conftest.$ac_objext
4299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4300 (eval $ac_compile) 2>conftest.er1
4301 ac_status=$?
4302 grep -v '^ *+' conftest.er1 >conftest.err
4303 rm -f conftest.er1
4304 cat conftest.err >&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); } &&
4307 { ac_try='test -z "$ac_c_werror_flag"
4308 || test ! -s conftest.err'
4309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4310 (eval $ac_try) 2>&5
4311 ac_status=$?
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); }; } &&
4314 { ac_try='test -s conftest.$ac_objext'
4315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4316 (eval $ac_try) 2>&5
4317 ac_status=$?
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); }; }; then
4320 ac_cv_header_stdc=yes
4321 else
4322 echo "$as_me: failed program was:" >&5
4323 sed 's/^/| /' conftest.$ac_ext >&5
4324
4325 ac_cv_header_stdc=no
4326 fi
4327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4328
4329 if test $ac_cv_header_stdc = yes; then
4330 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4331 cat >conftest.$ac_ext <<_ACEOF
4332 /* confdefs.h. */
4333 _ACEOF
4334 cat confdefs.h >>conftest.$ac_ext
4335 cat >>conftest.$ac_ext <<_ACEOF
4336 /* end confdefs.h. */
4337 #include <string.h>
4338
4339 _ACEOF
4340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4341 $EGREP "memchr" >/dev/null 2>&1; then
4342 :
4343 else
4344 ac_cv_header_stdc=no
4345 fi
4346 rm -f conftest*
4347
4348 fi
4349
4350 if test $ac_cv_header_stdc = yes; then
4351 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4352 cat >conftest.$ac_ext <<_ACEOF
4353 /* confdefs.h. */
4354 _ACEOF
4355 cat confdefs.h >>conftest.$ac_ext
4356 cat >>conftest.$ac_ext <<_ACEOF
4357 /* end confdefs.h. */
4358 #include <stdlib.h>
4359
4360 _ACEOF
4361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4362 $EGREP "free" >/dev/null 2>&1; then
4363 :
4364 else
4365 ac_cv_header_stdc=no
4366 fi
4367 rm -f conftest*
4368
4369 fi
4370
4371 if test $ac_cv_header_stdc = yes; then
4372 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4373 if test "$cross_compiling" = yes; then
4374 :
4375 else
4376 cat >conftest.$ac_ext <<_ACEOF
4377 /* confdefs.h. */
4378 _ACEOF
4379 cat confdefs.h >>conftest.$ac_ext
4380 cat >>conftest.$ac_ext <<_ACEOF
4381 /* end confdefs.h. */
4382 #include <ctype.h>
4383 #if ((' ' & 0x0FF) == 0x020)
4384 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4385 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4386 #else
4387 # define ISLOWER(c) \
4388 (('a' <= (c) && (c) <= 'i') \
4389 || ('j' <= (c) && (c) <= 'r') \
4390 || ('s' <= (c) && (c) <= 'z'))
4391 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4392 #endif
4393
4394 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4395 int
4396 main ()
4397 {
4398 int i;
4399 for (i = 0; i < 256; i++)
4400 if (XOR (islower (i), ISLOWER (i))
4401 || toupper (i) != TOUPPER (i))
4402 exit(2);
4403 exit (0);
4404 }
4405 _ACEOF
4406 rm -f conftest$ac_exeext
4407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4408 (eval $ac_link) 2>&5
4409 ac_status=$?
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4413 (eval $ac_try) 2>&5
4414 ac_status=$?
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); }; }; then
4417 :
4418 else
4419 echo "$as_me: program exited with status $ac_status" >&5
4420 echo "$as_me: failed program was:" >&5
4421 sed 's/^/| /' conftest.$ac_ext >&5
4422
4423 ( exit $ac_status )
4424 ac_cv_header_stdc=no
4425 fi
4426 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4427 fi
4428 fi
4429 fi
4430 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4431 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4432 if test $ac_cv_header_stdc = yes; then
4433
4434 cat >>confdefs.h <<\_ACEOF
4435 #define STDC_HEADERS 1
4436 _ACEOF
4437
4438 fi
4439
4440 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4441 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4442 if test "${ac_cv_type_signal+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4444 else
4445 cat >conftest.$ac_ext <<_ACEOF
4446 /* confdefs.h. */
4447 _ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h. */
4451 #include <sys/types.h>
4452 #include <signal.h>
4453 #ifdef signal
4454 # undef signal
4455 #endif
4456 #ifdef __cplusplus
4457 extern "C" void (*signal (int, void (*)(int)))(int);
4458 #else
4459 void (*signal ()) ();
4460 #endif
4461
4462 int
4463 main ()
4464 {
4465 int i;
4466 ;
4467 return 0;
4468 }
4469 _ACEOF
4470 rm -f conftest.$ac_objext
4471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4472 (eval $ac_compile) 2>conftest.er1
4473 ac_status=$?
4474 grep -v '^ *+' conftest.er1 >conftest.err
4475 rm -f conftest.er1
4476 cat conftest.err >&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); } &&
4479 { ac_try='test -z "$ac_c_werror_flag"
4480 || test ! -s conftest.err'
4481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4482 (eval $ac_try) 2>&5
4483 ac_status=$?
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); }; } &&
4486 { ac_try='test -s conftest.$ac_objext'
4487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4488 (eval $ac_try) 2>&5
4489 ac_status=$?
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); }; }; then
4492 ac_cv_type_signal=void
4493 else
4494 echo "$as_me: failed program was:" >&5
4495 sed 's/^/| /' conftest.$ac_ext >&5
4496
4497 ac_cv_type_signal=int
4498 fi
4499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4500 fi
4501 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4502 echo "${ECHO_T}$ac_cv_type_signal" >&6
4503
4504 cat >>confdefs.h <<_ACEOF
4505 #define RETSIGTYPE $ac_cv_type_signal
4506 _ACEOF
4507
4508
4509
4510 for ac_func in strftime
4511 do
4512 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4513 echo "$as_me:$LINENO: checking for $ac_func" >&5
4514 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4515 if eval "test \"\${$as_ac_var+set}\" = set"; then
4516 echo $ECHO_N "(cached) $ECHO_C" >&6
4517 else
4518 cat >conftest.$ac_ext <<_ACEOF
4519 /* confdefs.h. */
4520 _ACEOF
4521 cat confdefs.h >>conftest.$ac_ext
4522 cat >>conftest.$ac_ext <<_ACEOF
4523 /* end confdefs.h. */
4524 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4526 #define $ac_func innocuous_$ac_func
4527
4528 /* System header to define __stub macros and hopefully few prototypes,
4529 which can conflict with char $ac_func (); below.
4530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4531 <limits.h> exists even on freestanding compilers. */
4532
4533 #ifdef __STDC__
4534 # include <limits.h>
4535 #else
4536 # include <assert.h>
4537 #endif
4538
4539 #undef $ac_func
4540
4541 /* Override any gcc2 internal prototype to avoid an error. */
4542 #ifdef __cplusplus
4543 extern "C"
4544 {
4545 #endif
4546 /* We use char because int might match the return type of a gcc2
4547 builtin and then its argument prototype would still apply. */
4548 char $ac_func ();
4549 /* The GNU C library defines this for functions which it implements
4550 to always fail with ENOSYS. Some functions are actually named
4551 something starting with __ and the normal name is an alias. */
4552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4553 choke me
4554 #else
4555 char (*f) () = $ac_func;
4556 #endif
4557 #ifdef __cplusplus
4558 }
4559 #endif
4560
4561 int
4562 main ()
4563 {
4564 return f != $ac_func;
4565 ;
4566 return 0;
4567 }
4568 _ACEOF
4569 rm -f conftest.$ac_objext conftest$ac_exeext
4570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4571 (eval $ac_link) 2>conftest.er1
4572 ac_status=$?
4573 grep -v '^ *+' conftest.er1 >conftest.err
4574 rm -f conftest.er1
4575 cat conftest.err >&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); } &&
4578 { ac_try='test -z "$ac_c_werror_flag"
4579 || test ! -s conftest.err'
4580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4581 (eval $ac_try) 2>&5
4582 ac_status=$?
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; } &&
4585 { ac_try='test -s conftest$ac_exeext'
4586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4587 (eval $ac_try) 2>&5
4588 ac_status=$?
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); }; }; then
4591 eval "$as_ac_var=yes"
4592 else
4593 echo "$as_me: failed program was:" >&5
4594 sed 's/^/| /' conftest.$ac_ext >&5
4595
4596 eval "$as_ac_var=no"
4597 fi
4598 rm -f conftest.err conftest.$ac_objext \
4599 conftest$ac_exeext conftest.$ac_ext
4600 fi
4601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4602 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4603 if test `eval echo '${'$as_ac_var'}'` = yes; then
4604 cat >>confdefs.h <<_ACEOF
4605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4606 _ACEOF
4607
4608 else
4609 # strftime is in -lintl on SCO UNIX.
4610 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
4611 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
4612 if test "${ac_cv_lib_intl_strftime+set}" = set; then
4613 echo $ECHO_N "(cached) $ECHO_C" >&6
4614 else
4615 ac_check_lib_save_LIBS=$LIBS
4616 LIBS="-lintl $LIBS"
4617 cat >conftest.$ac_ext <<_ACEOF
4618 /* confdefs.h. */
4619 _ACEOF
4620 cat confdefs.h >>conftest.$ac_ext
4621 cat >>conftest.$ac_ext <<_ACEOF
4622 /* end confdefs.h. */
4623
4624 /* Override any gcc2 internal prototype to avoid an error. */
4625 #ifdef __cplusplus
4626 extern "C"
4627 #endif
4628 /* We use char because int might match the return type of a gcc2
4629 builtin and then its argument prototype would still apply. */
4630 char strftime ();
4631 int
4632 main ()
4633 {
4634 strftime ();
4635 ;
4636 return 0;
4637 }
4638 _ACEOF
4639 rm -f conftest.$ac_objext conftest$ac_exeext
4640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4641 (eval $ac_link) 2>conftest.er1
4642 ac_status=$?
4643 grep -v '^ *+' conftest.er1 >conftest.err
4644 rm -f conftest.er1
4645 cat conftest.err >&5
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); } &&
4648 { ac_try='test -z "$ac_c_werror_flag"
4649 || test ! -s conftest.err'
4650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4651 (eval $ac_try) 2>&5
4652 ac_status=$?
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); }; } &&
4655 { ac_try='test -s conftest$ac_exeext'
4656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657 (eval $ac_try) 2>&5
4658 ac_status=$?
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); }; }; then
4661 ac_cv_lib_intl_strftime=yes
4662 else
4663 echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4665
4666 ac_cv_lib_intl_strftime=no
4667 fi
4668 rm -f conftest.err conftest.$ac_objext \
4669 conftest$ac_exeext conftest.$ac_ext
4670 LIBS=$ac_check_lib_save_LIBS
4671 fi
4672 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
4673 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
4674 if test $ac_cv_lib_intl_strftime = yes; then
4675 cat >>confdefs.h <<\_ACEOF
4676 #define HAVE_STRFTIME 1
4677 _ACEOF
4678
4679 LIBS="-lintl $LIBS"
4680 fi
4681
4682 fi
4683 done
4684
4685
4686
4687
4688 for ac_func in inet_ntoa mkdir socket
4689 do
4690 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4691 echo "$as_me:$LINENO: checking for $ac_func" >&5
4692 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4693 if eval "test \"\${$as_ac_var+set}\" = set"; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4695 else
4696 cat >conftest.$ac_ext <<_ACEOF
4697 /* confdefs.h. */
4698 _ACEOF
4699 cat confdefs.h >>conftest.$ac_ext
4700 cat >>conftest.$ac_ext <<_ACEOF
4701 /* end confdefs.h. */
4702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4704 #define $ac_func innocuous_$ac_func
4705
4706 /* System header to define __stub macros and hopefully few prototypes,
4707 which can conflict with char $ac_func (); below.
4708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4709 <limits.h> exists even on freestanding compilers. */
4710
4711 #ifdef __STDC__
4712 # include <limits.h>
4713 #else
4714 # include <assert.h>
4715 #endif
4716
4717 #undef $ac_func
4718
4719 /* Override any gcc2 internal prototype to avoid an error. */
4720 #ifdef __cplusplus
4721 extern "C"
4722 {
4723 #endif
4724 /* We use char because int might match the return type of a gcc2
4725 builtin and then its argument prototype would still apply. */
4726 char $ac_func ();
4727 /* The GNU C library defines this for functions which it implements
4728 to always fail with ENOSYS. Some functions are actually named
4729 something starting with __ and the normal name is an alias. */
4730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4731 choke me
4732 #else
4733 char (*f) () = $ac_func;
4734 #endif
4735 #ifdef __cplusplus
4736 }
4737 #endif
4738
4739 int
4740 main ()
4741 {
4742 return f != $ac_func;
4743 ;
4744 return 0;
4745 }
4746 _ACEOF
4747 rm -f conftest.$ac_objext conftest$ac_exeext
4748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4749 (eval $ac_link) 2>conftest.er1
4750 ac_status=$?
4751 grep -v '^ *+' conftest.er1 >conftest.err
4752 rm -f conftest.er1
4753 cat conftest.err >&5
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); } &&
4756 { ac_try='test -z "$ac_c_werror_flag"
4757 || test ! -s conftest.err'
4758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4759 (eval $ac_try) 2>&5
4760 ac_status=$?
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); }; } &&
4763 { ac_try='test -s conftest$ac_exeext'
4764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765 (eval $ac_try) 2>&5
4766 ac_status=$?
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); }; }; then
4769 eval "$as_ac_var=yes"
4770 else
4771 echo "$as_me: failed program was:" >&5
4772 sed 's/^/| /' conftest.$ac_ext >&5
4773
4774 eval "$as_ac_var=no"
4775 fi
4776 rm -f conftest.err conftest.$ac_objext \
4777 conftest$ac_exeext conftest.$ac_ext
4778 fi
4779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4780 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4781 if test `eval echo '${'$as_ac_var'}'` = yes; then
4782 cat >>confdefs.h <<_ACEOF
4783 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4784 _ACEOF
4785
4786 fi
4787 done
4788
4789
4790 ac_config_files="$ac_config_files Makefile src/Makefile"
4791
4792 cat >confcache <<\_ACEOF
4793 # This file is a shell script that caches the results of configure
4794 # tests run on this system so they can be shared between configure
4795 # scripts and configure runs, see configure's option --config-cache.
4796 # It is not useful on other systems. If it contains results you don't
4797 # want to keep, you may remove or edit it.
4798 #
4799 # config.status only pays attention to the cache file if you give it
4800 # the --recheck option to rerun configure.
4801 #
4802 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4803 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4804 # following values.
4805
4806 _ACEOF
4807
4808 # The following way of writing the cache mishandles newlines in values,
4809 # but we know of no workaround that is simple, portable, and efficient.
4810 # So, don't put newlines in cache variables' values.
4811 # Ultrix sh set writes to stderr and can't be redirected directly,
4812 # and sets the high bit in the cache file unless we assign to the vars.
4813 {
4814 (set) 2>&1 |
4815 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4816 *ac_space=\ *)
4817 # `set' does not quote correctly, so add quotes (double-quote
4818 # substitution turns \\\\ into \\, and sed turns \\ into \).
4819 sed -n \
4820 "s/'/'\\\\''/g;
4821 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4822 ;;
4823 *)
4824 # `set' quotes correctly as required by POSIX, so do not add quotes.
4825 sed -n \
4826 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4827 ;;
4828 esac;
4829 } |
4830 sed '
4831 t clear
4832 : clear
4833 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4834 t end
4835 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4836 : end' >>confcache
4837 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4838 if test -w $cache_file; then
4839 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4840 cat confcache >$cache_file
4841 else
4842 echo "not updating unwritable cache $cache_file"
4843 fi
4844 fi
4845 rm -f confcache
4846
4847 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4848 # Let make expand exec_prefix.
4849 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4850
4851 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4852 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4853 # trailing colons and then remove the whole line if VPATH becomes empty
4854 # (actually we leave an empty line to preserve line numbers).
4855 if test "x$srcdir" = x.; then
4856 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4857 s/:*\$(srcdir):*/:/;
4858 s/:*\${srcdir}:*/:/;
4859 s/:*@srcdir@:*/:/;
4860 s/^\([^=]*=[ ]*\):*/\1/;
4861 s/:*$//;
4862 s/^[^=]*=[ ]*$//;
4863 }'
4864 fi
4865
4866 # Transform confdefs.h into DEFS.
4867 # Protect against shell expansion while executing Makefile rules.
4868 # Protect against Makefile macro expansion.
4869 #
4870 # If the first sed substitution is executed (which looks for macros that
4871 # take arguments), then we branch to the quote section. Otherwise,
4872 # look for a macro that doesn't take arguments.
4873 cat >confdef2opt.sed <<\_ACEOF
4874 t clear
4875 : clear
4876 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
4877 t quote
4878 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
4879 t quote
4880 d
4881 : quote
4882 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
4883 s,\[,\\&,g
4884 s,\],\\&,g
4885 s,\$,$$,g
4886 p
4887 _ACEOF
4888 # We use echo to avoid assuming a particular line-breaking character.
4889 # The extra dot is to prevent the shell from consuming trailing
4890 # line-breaks from the sub-command output. A line-break within
4891 # single-quotes doesn't work because, if this script is created in a
4892 # platform that uses two characters for line-breaks (e.g., DOS), tr
4893 # would break.
4894 ac_LF_and_DOT=`echo; echo .`
4895 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
4896 rm -f confdef2opt.sed
4897
4898
4899 ac_libobjs=
4900 ac_ltlibobjs=
4901 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4902 # 1. Remove the extension, and $U if already installed.
4903 ac_i=`echo "$ac_i" |
4904 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4905 # 2. Add them.
4906 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4907 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4908 done
4909 LIBOBJS=$ac_libobjs
4910
4911 LTLIBOBJS=$ac_ltlibobjs
4912
4913
4914 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4915 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
4916 Usually this means the macro was only invoked conditionally." >&5
4917 echo "$as_me: error: conditional \"AMDEP\" was never defined.
4918 Usually this means the macro was only invoked conditionally." >&2;}
4919 { (exit 1); exit 1; }; }
4920 fi
4921 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4922 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
4923 Usually this means the macro was only invoked conditionally." >&5
4924 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
4925 Usually this means the macro was only invoked conditionally." >&2;}
4926 { (exit 1); exit 1; }; }
4927 fi
4928
4929 : ${CONFIG_STATUS=./config.status}
4930 ac_clean_files_save=$ac_clean_files
4931 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4932 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4933 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4934 cat >$CONFIG_STATUS <<_ACEOF
4935 #! $SHELL
4936 # Generated by $as_me.
4937 # Run this file to recreate the current configuration.
4938 # Compiler output produced by configure, useful for debugging
4939 # configure, is in config.log if it exists.
4940
4941 debug=false
4942 ac_cs_recheck=false
4943 ac_cs_silent=false
4944 SHELL=\${CONFIG_SHELL-$SHELL}
4945 _ACEOF
4946
4947 cat >>$CONFIG_STATUS <<\_ACEOF
4948 ## --------------------- ##
4949 ## M4sh Initialization. ##
4950 ## --------------------- ##
4951
4952 # Be Bourne compatible
4953 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4954 emulate sh
4955 NULLCMD=:
4956 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4957 # is contrary to our usage. Disable this feature.
4958 alias -g '${1+"$@"}'='"$@"'
4959 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4960 set -o posix
4961 fi
4962 DUALCASE=1; export DUALCASE # for MKS sh
4963
4964 # Support unset when possible.
4965 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4966 as_unset=unset
4967 else
4968 as_unset=false
4969 fi
4970
4971
4972 # Work around bugs in pre-3.0 UWIN ksh.
4973 $as_unset ENV MAIL MAILPATH
4974 PS1='$ '
4975 PS2='> '
4976 PS4='+ '
4977
4978 # NLS nuisances.
4979 for as_var in \
4980 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4981 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4982 LC_TELEPHONE LC_TIME
4983 do
4984 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4985 eval $as_var=C; export $as_var
4986 else
4987 $as_unset $as_var
4988 fi
4989 done
4990
4991 # Required to use basename.
4992 if expr a : '\(a\)' >/dev/null 2>&1; then
4993 as_expr=expr
4994 else
4995 as_expr=false
4996 fi
4997
4998 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4999 as_basename=basename
5000 else
5001 as_basename=false
5002 fi
5003
5004
5005 # Name of the executable.
5006 as_me=`$as_basename "$0" ||
5007 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5008 X"$0" : 'X\(//\)$' \| \
5009 X"$0" : 'X\(/\)$' \| \
5010 . : '\(.\)' 2>/dev/null ||
5011 echo X/"$0" |
5012 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5013 /^X\/\(\/\/\)$/{ s//\1/; q; }
5014 /^X\/\(\/\).*/{ s//\1/; q; }
5015 s/.*/./; q'`
5016
5017
5018 # PATH needs CR, and LINENO needs CR and PATH.
5019 # Avoid depending upon Character Ranges.
5020 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5021 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5022 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5023 as_cr_digits='0123456789'
5024 as_cr_alnum=$as_cr_Letters$as_cr_digits
5025
5026 # The user is always right.
5027 if test "${PATH_SEPARATOR+set}" != set; then
5028 echo "#! /bin/sh" >conf$$.sh
5029 echo "exit 0" >>conf$$.sh
5030 chmod +x conf$$.sh
5031 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5032 PATH_SEPARATOR=';'
5033 else
5034 PATH_SEPARATOR=:
5035 fi
5036 rm -f conf$$.sh
5037 fi
5038
5039
5040 as_lineno_1=$LINENO
5041 as_lineno_2=$LINENO
5042 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5043 test "x$as_lineno_1" != "x$as_lineno_2" &&
5044 test "x$as_lineno_3" = "x$as_lineno_2" || {
5045 # Find who we are. Look in the path if we contain no path at all
5046 # relative or not.
5047 case $0 in
5048 *[\\/]* ) as_myself=$0 ;;
5049 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050 for as_dir in $PATH
5051 do
5052 IFS=$as_save_IFS
5053 test -z "$as_dir" && as_dir=.
5054 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5055 done
5056
5057 ;;
5058 esac
5059 # We did not find ourselves, most probably we were run as `sh COMMAND'
5060 # in which case we are not to be found in the path.
5061 if test "x$as_myself" = x; then
5062 as_myself=$0
5063 fi
5064 if test ! -f "$as_myself"; then
5065 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5066 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5067 { (exit 1); exit 1; }; }
5068 fi
5069 case $CONFIG_SHELL in
5070 '')
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5073 do
5074 IFS=$as_save_IFS
5075 test -z "$as_dir" && as_dir=.
5076 for as_base in sh bash ksh sh5; do
5077 case $as_dir in
5078 /*)
5079 if ("$as_dir/$as_base" -c '
5080 as_lineno_1=$LINENO
5081 as_lineno_2=$LINENO
5082 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5083 test "x$as_lineno_1" != "x$as_lineno_2" &&
5084 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5085 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5086 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5087 CONFIG_SHELL=$as_dir/$as_base
5088 export CONFIG_SHELL
5089 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5090 fi;;
5091 esac
5092 done
5093 done
5094 ;;
5095 esac
5096
5097 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5098 # uniformly replaced by the line number. The first 'sed' inserts a
5099 # line-number line before each line; the second 'sed' does the real
5100 # work. The second script uses 'N' to pair each line-number line
5101 # with the numbered line, and appends trailing '-' during
5102 # substitution so that $LINENO is not a special case at line end.
5103 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5104 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5105 sed '=' <$as_myself |
5106 sed '
5107 N
5108 s,$,-,
5109 : loop
5110 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5111 t loop
5112 s,-$,,
5113 s,^['$as_cr_digits']*\n,,
5114 ' >$as_me.lineno &&
5115 chmod +x $as_me.lineno ||
5116 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5117 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5118 { (exit 1); exit 1; }; }
5119
5120 # Don't try to exec as it changes $[0], causing all sort of problems
5121 # (the dirname of $[0] is not the place where we might find the
5122 # original and so on. Autoconf is especially sensible to this).
5123 . ./$as_me.lineno
5124 # Exit status is that of the last command.
5125 exit
5126 }
5127
5128
5129 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5130 *c*,-n*) ECHO_N= ECHO_C='
5131 ' ECHO_T=' ' ;;
5132 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5133 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5134 esac
5135
5136 if expr a : '\(a\)' >/dev/null 2>&1; then
5137 as_expr=expr
5138 else
5139 as_expr=false
5140 fi
5141
5142 rm -f conf$$ conf$$.exe conf$$.file
5143 echo >conf$$.file
5144 if ln -s conf$$.file conf$$ 2>/dev/null; then
5145 # We could just check for DJGPP; but this test a) works b) is more generic
5146 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5147 if test -f conf$$.exe; then
5148 # Don't use ln at all; we don't have any links
5149 as_ln_s='cp -p'
5150 else
5151 as_ln_s='ln -s'
5152 fi
5153 elif ln conf$$.file conf$$ 2>/dev/null; then
5154 as_ln_s=ln
5155 else
5156 as_ln_s='cp -p'
5157 fi
5158 rm -f conf$$ conf$$.exe conf$$.file
5159
5160 if mkdir -p . 2>/dev/null; then
5161 as_mkdir_p=:
5162 else
5163 test -d ./-p && rmdir ./-p
5164 as_mkdir_p=false
5165 fi
5166
5167 as_executable_p="test -f"
5168
5169 # Sed expression to map a string onto a valid CPP name.
5170 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5171
5172 # Sed expression to map a string onto a valid variable name.
5173 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5174
5175
5176 # IFS
5177 # We need space, tab and new line, in precisely that order.
5178 as_nl='
5179 '
5180 IFS=" $as_nl"
5181
5182 # CDPATH.
5183 $as_unset CDPATH
5184
5185 exec 6>&1
5186
5187 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5188 # report actual input values of CONFIG_FILES etc. instead of their
5189 # values after options handling. Logging --version etc. is OK.
5190 exec 5>>config.log
5191 {
5192 echo
5193 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5194 ## Running $as_me. ##
5195 _ASBOX
5196 } >&5
5197 cat >&5 <<_CSEOF
5198
5199 This file was extended by bbsd $as_me 1.0, which was
5200 generated by GNU Autoconf 2.59. Invocation command line was
5201
5202 CONFIG_FILES = $CONFIG_FILES
5203 CONFIG_HEADERS = $CONFIG_HEADERS
5204 CONFIG_LINKS = $CONFIG_LINKS
5205 CONFIG_COMMANDS = $CONFIG_COMMANDS
5206 $ $0 $@
5207
5208 _CSEOF
5209 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5210 echo >&5
5211 _ACEOF
5212
5213 # Files that config.status was made for.
5214 if test -n "$ac_config_files"; then
5215 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5216 fi
5217
5218 if test -n "$ac_config_headers"; then
5219 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5220 fi
5221
5222 if test -n "$ac_config_links"; then
5223 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5224 fi
5225
5226 if test -n "$ac_config_commands"; then
5227 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5228 fi
5229
5230 cat >>$CONFIG_STATUS <<\_ACEOF
5231
5232 ac_cs_usage="\
5233 \`$as_me' instantiates files from templates according to the
5234 current configuration.
5235
5236 Usage: $0 [OPTIONS] [FILE]...
5237
5238 -h, --help print this help, then exit
5239 -V, --version print version number, then exit
5240 -q, --quiet do not print progress messages
5241 -d, --debug don't remove temporary files
5242 --recheck update $as_me by reconfiguring in the same conditions
5243 --file=FILE[:TEMPLATE]
5244 instantiate the configuration file FILE
5245
5246 Configuration files:
5247 $config_files
5248
5249 Configuration commands:
5250 $config_commands
5251
5252 Report bugs to <bug-autoconf@gnu.org>."
5253 _ACEOF
5254
5255 cat >>$CONFIG_STATUS <<_ACEOF
5256 ac_cs_version="\\
5257 bbsd config.status 1.0
5258 configured by $0, generated by GNU Autoconf 2.59,
5259 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5260
5261 Copyright (C) 2003 Free Software Foundation, Inc.
5262 This config.status script is free software; the Free Software Foundation
5263 gives unlimited permission to copy, distribute and modify it."
5264 srcdir=$srcdir
5265 INSTALL="$INSTALL"
5266 _ACEOF
5267
5268 cat >>$CONFIG_STATUS <<\_ACEOF
5269 # If no file are specified by the user, then we need to provide default
5270 # value. By we need to know if files were specified by the user.
5271 ac_need_defaults=:
5272 while test $# != 0
5273 do
5274 case $1 in
5275 --*=*)
5276 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5277 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5278 ac_shift=:
5279 ;;
5280 -*)
5281 ac_option=$1
5282 ac_optarg=$2
5283 ac_shift=shift
5284 ;;
5285 *) # This is not an option, so the user has probably given explicit
5286 # arguments.
5287 ac_option=$1
5288 ac_need_defaults=false;;
5289 esac
5290
5291 case $ac_option in
5292 # Handling of the options.
5293 _ACEOF
5294 cat >>$CONFIG_STATUS <<\_ACEOF
5295 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5296 ac_cs_recheck=: ;;
5297 --version | --vers* | -V )
5298 echo "$ac_cs_version"; exit 0 ;;
5299 --he | --h)
5300 # Conflict between --help and --header
5301 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5302 Try \`$0 --help' for more information." >&5
5303 echo "$as_me: error: ambiguous option: $1
5304 Try \`$0 --help' for more information." >&2;}
5305 { (exit 1); exit 1; }; };;
5306 --help | --hel | -h )
5307 echo "$ac_cs_usage"; exit 0 ;;
5308 --debug | --d* | -d )
5309 debug=: ;;
5310 --file | --fil | --fi | --f )
5311 $ac_shift
5312 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5313 ac_need_defaults=false;;
5314 --header | --heade | --head | --hea )
5315 $ac_shift
5316 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5317 ac_need_defaults=false;;
5318 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5319 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5320 ac_cs_silent=: ;;
5321
5322 # This is an error.
5323 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5324 Try \`$0 --help' for more information." >&5
5325 echo "$as_me: error: unrecognized option: $1
5326 Try \`$0 --help' for more information." >&2;}
5327 { (exit 1); exit 1; }; } ;;
5328
5329 *) ac_config_targets="$ac_config_targets $1" ;;
5330
5331 esac
5332 shift
5333 done
5334
5335 ac_configure_extra_args=
5336
5337 if $ac_cs_silent; then
5338 exec 6>/dev/null
5339 ac_configure_extra_args="$ac_configure_extra_args --silent"
5340 fi
5341
5342 _ACEOF
5343 cat >>$CONFIG_STATUS <<_ACEOF
5344 if \$ac_cs_recheck; then
5345 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5346 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5347 fi
5348
5349 _ACEOF
5350
5351 cat >>$CONFIG_STATUS <<_ACEOF
5352 #
5353 # INIT-COMMANDS section.
5354 #
5355
5356 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5357
5358 _ACEOF
5359
5360
5361
5362 cat >>$CONFIG_STATUS <<\_ACEOF
5363 for ac_config_target in $ac_config_targets
5364 do
5365 case "$ac_config_target" in
5366 # Handling of arguments.
5367 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5368 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5369 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5370 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5371 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5372 { (exit 1); exit 1; }; };;
5373 esac
5374 done
5375
5376 # If the user did not use the arguments to specify the items to instantiate,
5377 # then the envvar interface is used. Set only those that are not.
5378 # We use the long form for the default assignment because of an extremely
5379 # bizarre bug on SunOS 4.1.3.
5380 if $ac_need_defaults; then
5381 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5382 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5383 fi
5384
5385 # Have a temporary directory for convenience. Make it in the build tree
5386 # simply because there is no reason to put it here, and in addition,
5387 # creating and moving files from /tmp can sometimes cause problems.
5388 # Create a temporary directory, and hook for its removal unless debugging.
5389 $debug ||
5390 {
5391 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5392 trap '{ (exit 1); exit 1; }' 1 2 13 15
5393 }
5394
5395 # Create a (secure) tmp directory for tmp files.
5396
5397 {
5398 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5399 test -n "$tmp" && test -d "$tmp"
5400 } ||
5401 {
5402 tmp=./confstat$$-$RANDOM
5403 (umask 077 && mkdir $tmp)
5404 } ||
5405 {
5406 echo "$me: cannot create a temporary directory in ." >&2
5407 { (exit 1); exit 1; }
5408 }
5409
5410 _ACEOF
5411
5412 cat >>$CONFIG_STATUS <<_ACEOF
5413
5414 #
5415 # CONFIG_FILES section.
5416 #
5417
5418 # No need to generate the scripts if there are no CONFIG_FILES.
5419 # This happens for instance when ./config.status config.h
5420 if test -n "\$CONFIG_FILES"; then
5421 # Protect against being on the right side of a sed subst in config.status.
5422 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5423 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5424 s,@SHELL@,$SHELL,;t t
5425 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5426 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5427 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5428 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5429 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5430 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5431 s,@exec_prefix@,$exec_prefix,;t t
5432 s,@prefix@,$prefix,;t t
5433 s,@program_transform_name@,$program_transform_name,;t t
5434 s,@bindir@,$bindir,;t t
5435 s,@sbindir@,$sbindir,;t t
5436 s,@libexecdir@,$libexecdir,;t t
5437 s,@datadir@,$datadir,;t t
5438 s,@sysconfdir@,$sysconfdir,;t t
5439 s,@sharedstatedir@,$sharedstatedir,;t t
5440 s,@localstatedir@,$localstatedir,;t t
5441 s,@libdir@,$libdir,;t t
5442 s,@includedir@,$includedir,;t t
5443 s,@oldincludedir@,$oldincludedir,;t t
5444 s,@infodir@,$infodir,;t t
5445 s,@mandir@,$mandir,;t t
5446 s,@build_alias@,$build_alias,;t t
5447 s,@host_alias@,$host_alias,;t t
5448 s,@target_alias@,$target_alias,;t t
5449 s,@DEFS@,$DEFS,;t t
5450 s,@ECHO_C@,$ECHO_C,;t t
5451 s,@ECHO_N@,$ECHO_N,;t t
5452 s,@ECHO_T@,$ECHO_T,;t t
5453 s,@LIBS@,$LIBS,;t t
5454 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5455 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5456 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5457 s,@CYGPATH_W@,$CYGPATH_W,;t t
5458 s,@PACKAGE@,$PACKAGE,;t t
5459 s,@VERSION@,$VERSION,;t t
5460 s,@ACLOCAL@,$ACLOCAL,;t t
5461 s,@AUTOCONF@,$AUTOCONF,;t t
5462 s,@AUTOMAKE@,$AUTOMAKE,;t t
5463 s,@AUTOHEADER@,$AUTOHEADER,;t t
5464 s,@MAKEINFO@,$MAKEINFO,;t t
5465 s,@AMTAR@,$AMTAR,;t t
5466 s,@install_sh@,$install_sh,;t t
5467 s,@STRIP@,$STRIP,;t t
5468 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
5469 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
5470 s,@mkdir_p@,$mkdir_p,;t t
5471 s,@AWK@,$AWK,;t t
5472 s,@SET_MAKE@,$SET_MAKE,;t t
5473 s,@am__leading_dot@,$am__leading_dot,;t t
5474 s,@CC@,$CC,;t t
5475 s,@CFLAGS@,$CFLAGS,;t t
5476 s,@LDFLAGS@,$LDFLAGS,;t t
5477 s,@CPPFLAGS@,$CPPFLAGS,;t t
5478 s,@ac_ct_CC@,$ac_ct_CC,;t t
5479 s,@EXEEXT@,$EXEEXT,;t t
5480 s,@OBJEXT@,$OBJEXT,;t t
5481 s,@DEPDIR@,$DEPDIR,;t t
5482 s,@am__include@,$am__include,;t t
5483 s,@am__quote@,$am__quote,;t t
5484 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
5485 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
5486 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
5487 s,@CCDEPMODE@,$CCDEPMODE,;t t
5488 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
5489 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5490 s,@CPP@,$CPP,;t t
5491 s,@EGREP@,$EGREP,;t t
5492 s,@LIBOBJS@,$LIBOBJS,;t t
5493 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5494 CEOF
5495
5496 _ACEOF
5497
5498 cat >>$CONFIG_STATUS <<\_ACEOF
5499 # Split the substitutions into bite-sized pieces for seds with
5500 # small command number limits, like on Digital OSF/1 and HP-UX.
5501 ac_max_sed_lines=48
5502 ac_sed_frag=1 # Number of current file.
5503 ac_beg=1 # First line for current file.
5504 ac_end=$ac_max_sed_lines # Line after last line for current file.
5505 ac_more_lines=:
5506 ac_sed_cmds=
5507 while $ac_more_lines; do
5508 if test $ac_beg -gt 1; then
5509 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5510 else
5511 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5512 fi
5513 if test ! -s $tmp/subs.frag; then
5514 ac_more_lines=false
5515 else
5516 # The purpose of the label and of the branching condition is to
5517 # speed up the sed processing (if there are no `@' at all, there
5518 # is no need to browse any of the substitutions).
5519 # These are the two extra sed commands mentioned above.
5520 (echo ':t
5521 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5522 if test -z "$ac_sed_cmds"; then
5523 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5524 else
5525 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5526 fi
5527 ac_sed_frag=`expr $ac_sed_frag + 1`
5528 ac_beg=$ac_end
5529 ac_end=`expr $ac_end + $ac_max_sed_lines`
5530 fi
5531 done
5532 if test -z "$ac_sed_cmds"; then
5533 ac_sed_cmds=cat
5534 fi
5535 fi # test -n "$CONFIG_FILES"
5536
5537 _ACEOF
5538 cat >>$CONFIG_STATUS <<\_ACEOF
5539 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5540 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5541 case $ac_file in
5542 - | *:- | *:-:* ) # input from stdin
5543 cat >$tmp/stdin
5544 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5545 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5546 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5547 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5548 * ) ac_file_in=$ac_file.in ;;
5549 esac
5550
5551 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5552 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5553 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5554 X"$ac_file" : 'X\(//\)[^/]' \| \
5555 X"$ac_file" : 'X\(//\)$' \| \
5556 X"$ac_file" : 'X\(/\)' \| \
5557 . : '\(.\)' 2>/dev/null ||
5558 echo X"$ac_file" |
5559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5560 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5561 /^X\(\/\/\)$/{ s//\1/; q; }
5562 /^X\(\/\).*/{ s//\1/; q; }
5563 s/.*/./; q'`
5564 { if $as_mkdir_p; then
5565 mkdir -p "$ac_dir"
5566 else
5567 as_dir="$ac_dir"
5568 as_dirs=
5569 while test ! -d "$as_dir"; do
5570 as_dirs="$as_dir $as_dirs"
5571 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5572 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5573 X"$as_dir" : 'X\(//\)[^/]' \| \
5574 X"$as_dir" : 'X\(//\)$' \| \
5575 X"$as_dir" : 'X\(/\)' \| \
5576 . : '\(.\)' 2>/dev/null ||
5577 echo X"$as_dir" |
5578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5579 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5580 /^X\(\/\/\)$/{ s//\1/; q; }
5581 /^X\(\/\).*/{ s//\1/; q; }
5582 s/.*/./; q'`
5583 done
5584 test ! -n "$as_dirs" || mkdir $as_dirs
5585 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5586 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5587 { (exit 1); exit 1; }; }; }
5588
5589 ac_builddir=.
5590
5591 if test "$ac_dir" != .; then
5592 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5593 # A "../" for each directory in $ac_dir_suffix.
5594 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5595 else
5596 ac_dir_suffix= ac_top_builddir=
5597 fi
5598
5599 case $srcdir in
5600 .) # No --srcdir option. We are building in place.
5601 ac_srcdir=.
5602 if test -z "$ac_top_builddir"; then
5603 ac_top_srcdir=.
5604 else
5605 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5606 fi ;;
5607 [\\/]* | ?:[\\/]* ) # Absolute path.
5608 ac_srcdir=$srcdir$ac_dir_suffix;
5609 ac_top_srcdir=$srcdir ;;
5610 *) # Relative path.
5611 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5612 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5613 esac
5614
5615 # Do not use `cd foo && pwd` to compute absolute paths, because
5616 # the directories may not exist.
5617 case `pwd` in
5618 .) ac_abs_builddir="$ac_dir";;
5619 *)
5620 case "$ac_dir" in
5621 .) ac_abs_builddir=`pwd`;;
5622 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5623 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5624 esac;;
5625 esac
5626 case $ac_abs_builddir in
5627 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5628 *)
5629 case ${ac_top_builddir}. in
5630 .) ac_abs_top_builddir=$ac_abs_builddir;;
5631 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5632 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5633 esac;;
5634 esac
5635 case $ac_abs_builddir in
5636 .) ac_abs_srcdir=$ac_srcdir;;
5637 *)
5638 case $ac_srcdir in
5639 .) ac_abs_srcdir=$ac_abs_builddir;;
5640 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5641 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5642 esac;;
5643 esac
5644 case $ac_abs_builddir in
5645 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5646 *)
5647 case $ac_top_srcdir in
5648 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5649 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5650 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5651 esac;;
5652 esac
5653
5654
5655 case $INSTALL in
5656 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5657 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5658 esac
5659
5660 if test x"$ac_file" != x-; then
5661 { echo "$as_me:$LINENO: creating $ac_file" >&5
5662 echo "$as_me: creating $ac_file" >&6;}
5663 rm -f "$ac_file"
5664 fi
5665 # Let's still pretend it is `configure' which instantiates (i.e., don't
5666 # use $as_me), people would be surprised to read:
5667 # /* config.h. Generated by config.status. */
5668 if test x"$ac_file" = x-; then
5669 configure_input=
5670 else
5671 configure_input="$ac_file. "
5672 fi
5673 configure_input=$configure_input"Generated from `echo $ac_file_in |
5674 sed 's,.*/,,'` by configure."
5675
5676 # First look for the input files in the build tree, otherwise in the
5677 # src tree.
5678 ac_file_inputs=`IFS=:
5679 for f in $ac_file_in; do
5680 case $f in
5681 -) echo $tmp/stdin ;;
5682 [\\/$]*)
5683 # Absolute (can't be DOS-style, as IFS=:)
5684 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5685 echo "$as_me: error: cannot find input file: $f" >&2;}
5686 { (exit 1); exit 1; }; }
5687 echo "$f";;
5688 *) # Relative
5689 if test -f "$f"; then
5690 # Build tree
5691 echo "$f"
5692 elif test -f "$srcdir/$f"; then
5693 # Source tree
5694 echo "$srcdir/$f"
5695 else
5696 # /dev/null tree
5697 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5698 echo "$as_me: error: cannot find input file: $f" >&2;}
5699 { (exit 1); exit 1; }; }
5700 fi;;
5701 esac
5702 done` || { (exit 1); exit 1; }
5703 _ACEOF
5704 cat >>$CONFIG_STATUS <<_ACEOF
5705 sed "$ac_vpsub
5706 $extrasub
5707 _ACEOF
5708 cat >>$CONFIG_STATUS <<\_ACEOF
5709 :t
5710 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5711 s,@configure_input@,$configure_input,;t t
5712 s,@srcdir@,$ac_srcdir,;t t
5713 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5714 s,@top_srcdir@,$ac_top_srcdir,;t t
5715 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5716 s,@builddir@,$ac_builddir,;t t
5717 s,@abs_builddir@,$ac_abs_builddir,;t t
5718 s,@top_builddir@,$ac_top_builddir,;t t
5719 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5720 s,@INSTALL@,$ac_INSTALL,;t t
5721 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5722 rm -f $tmp/stdin
5723 if test x"$ac_file" != x-; then
5724 mv $tmp/out $ac_file
5725 else
5726 cat $tmp/out
5727 rm -f $tmp/out
5728 fi
5729
5730 done
5731 _ACEOF
5732 cat >>$CONFIG_STATUS <<\_ACEOF
5733
5734 #
5735 # CONFIG_COMMANDS section.
5736 #
5737 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5738 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5739 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5740 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5741 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5742 X"$ac_dest" : 'X\(//\)[^/]' \| \
5743 X"$ac_dest" : 'X\(//\)$' \| \
5744 X"$ac_dest" : 'X\(/\)' \| \
5745 . : '\(.\)' 2>/dev/null ||
5746 echo X"$ac_dest" |
5747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5748 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5749 /^X\(\/\/\)$/{ s//\1/; q; }
5750 /^X\(\/\).*/{ s//\1/; q; }
5751 s/.*/./; q'`
5752 { if $as_mkdir_p; then
5753 mkdir -p "$ac_dir"
5754 else
5755 as_dir="$ac_dir"
5756 as_dirs=
5757 while test ! -d "$as_dir"; do
5758 as_dirs="$as_dir $as_dirs"
5759 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5760 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5761 X"$as_dir" : 'X\(//\)[^/]' \| \
5762 X"$as_dir" : 'X\(//\)$' \| \
5763 X"$as_dir" : 'X\(/\)' \| \
5764 . : '\(.\)' 2>/dev/null ||
5765 echo X"$as_dir" |
5766 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5767 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5768 /^X\(\/\/\)$/{ s//\1/; q; }
5769 /^X\(\/\).*/{ s//\1/; q; }
5770 s/.*/./; q'`
5771 done
5772 test ! -n "$as_dirs" || mkdir $as_dirs
5773 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5774 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5775 { (exit 1); exit 1; }; }; }
5776
5777 ac_builddir=.
5778
5779 if test "$ac_dir" != .; then
5780 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5781 # A "../" for each directory in $ac_dir_suffix.
5782 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5783 else
5784 ac_dir_suffix= ac_top_builddir=
5785 fi
5786
5787 case $srcdir in
5788 .) # No --srcdir option. We are building in place.
5789 ac_srcdir=.
5790 if test -z "$ac_top_builddir"; then
5791 ac_top_srcdir=.
5792 else
5793 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5794 fi ;;
5795 [\\/]* | ?:[\\/]* ) # Absolute path.
5796 ac_srcdir=$srcdir$ac_dir_suffix;
5797 ac_top_srcdir=$srcdir ;;
5798 *) # Relative path.
5799 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5800 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5801 esac
5802
5803 # Do not use `cd foo && pwd` to compute absolute paths, because
5804 # the directories may not exist.
5805 case `pwd` in
5806 .) ac_abs_builddir="$ac_dir";;
5807 *)
5808 case "$ac_dir" in
5809 .) ac_abs_builddir=`pwd`;;
5810 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5811 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5812 esac;;
5813 esac
5814 case $ac_abs_builddir in
5815 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5816 *)
5817 case ${ac_top_builddir}. in
5818 .) ac_abs_top_builddir=$ac_abs_builddir;;
5819 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5820 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5821 esac;;
5822 esac
5823 case $ac_abs_builddir in
5824 .) ac_abs_srcdir=$ac_srcdir;;
5825 *)
5826 case $ac_srcdir in
5827 .) ac_abs_srcdir=$ac_abs_builddir;;
5828 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5829 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5830 esac;;
5831 esac
5832 case $ac_abs_builddir in
5833 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5834 *)
5835 case $ac_top_srcdir in
5836 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5837 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5838 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5839 esac;;
5840 esac
5841
5842
5843 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5844 echo "$as_me: executing $ac_dest commands" >&6;}
5845 case $ac_dest in
5846 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
5847 # Strip MF so we end up with the name of the file.
5848 mf=`echo "$mf" | sed -e 's/:.*$//'`
5849 # Check whether this is an Automake generated Makefile or not.
5850 # We used to match only the files named `Makefile.in', but
5851 # some people rename them; so instead we look at the file content.
5852 # Grep'ing the first line is not enough: some people post-process
5853 # each Makefile.in and add a new line on top of each file to say so.
5854 # So let's grep whole file.
5855 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
5856 dirpart=`(dirname "$mf") 2>/dev/null ||
5857 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5858 X"$mf" : 'X\(//\)[^/]' \| \
5859 X"$mf" : 'X\(//\)$' \| \
5860 X"$mf" : 'X\(/\)' \| \
5861 . : '\(.\)' 2>/dev/null ||
5862 echo X"$mf" |
5863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5864 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5865 /^X\(\/\/\)$/{ s//\1/; q; }
5866 /^X\(\/\).*/{ s//\1/; q; }
5867 s/.*/./; q'`
5868 else
5869 continue
5870 fi
5871 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
5872 # Extract the definition of DEP_FILES from the Makefile without
5873 # running `make'.
5874 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
5875 test -z "$DEPDIR" && continue
5876 # When using ansi2knr, U may be empty or an underscore; expand it
5877 U=`sed -n 's/^U = //p' < "$mf"`
5878 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
5879 # We invoke sed twice because it is the simplest approach to
5880 # changing $(DEPDIR) to its actual value in the expansion.
5881 for file in `sed -n '
5882 /^DEP_FILES = .*\\\\$/ {
5883 s/^DEP_FILES = //
5884 :loop
5885 s/\\\\$//
5886 p
5887 n
5888 /\\\\$/ b loop
5889 p
5890 }
5891 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
5892 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
5893 # Make sure the directory exists.
5894 test -f "$dirpart/$file" && continue
5895 fdir=`(dirname "$file") 2>/dev/null ||
5896 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5897 X"$file" : 'X\(//\)[^/]' \| \
5898 X"$file" : 'X\(//\)$' \| \
5899 X"$file" : 'X\(/\)' \| \
5900 . : '\(.\)' 2>/dev/null ||
5901 echo X"$file" |
5902 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5903 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5904 /^X\(\/\/\)$/{ s//\1/; q; }
5905 /^X\(\/\).*/{ s//\1/; q; }
5906 s/.*/./; q'`
5907 { if $as_mkdir_p; then
5908 mkdir -p $dirpart/$fdir
5909 else
5910 as_dir=$dirpart/$fdir
5911 as_dirs=
5912 while test ! -d "$as_dir"; do
5913 as_dirs="$as_dir $as_dirs"
5914 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5915 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5916 X"$as_dir" : 'X\(//\)[^/]' \| \
5917 X"$as_dir" : 'X\(//\)$' \| \
5918 X"$as_dir" : 'X\(/\)' \| \
5919 . : '\(.\)' 2>/dev/null ||
5920 echo X"$as_dir" |
5921 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5922 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5923 /^X\(\/\/\)$/{ s//\1/; q; }
5924 /^X\(\/\).*/{ s//\1/; q; }
5925 s/.*/./; q'`
5926 done
5927 test ! -n "$as_dirs" || mkdir $as_dirs
5928 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
5929 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
5930 { (exit 1); exit 1; }; }; }
5931
5932 # echo "creating $dirpart/$file"
5933 echo '# dummy' > "$dirpart/$file"
5934 done
5935 done
5936 ;;
5937 esac
5938 done
5939 _ACEOF
5940
5941 cat >>$CONFIG_STATUS <<\_ACEOF
5942
5943 { (exit 0); exit 0; }
5944 _ACEOF
5945 chmod +x $CONFIG_STATUS
5946 ac_clean_files=$ac_clean_files_save
5947
5948
5949 # configure is writing to config.log, and then calls config.status.
5950 # config.status does its own redirection, appending to config.log.
5951 # Unfortunately, on DOS this fails, as config.log is still kept open
5952 # by configure, so config.status won't be able to write to it; its
5953 # output is simply discarded. So we exec the FD to /dev/null,
5954 # effectively closing config.log, so it can be properly (re)opened and
5955 # appended to by config.status. When coming back to configure, we
5956 # need to make the FD available again.
5957 if test "$no_create" != yes; then
5958 ac_cs_success=:
5959 ac_config_status_args=
5960 test "$silent" = yes &&
5961 ac_config_status_args="$ac_config_status_args --quiet"
5962 exec 5>/dev/null
5963 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5964 exec 5>>config.log
5965 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5966 # would make configure fail if this is the last instruction.
5967 $ac_cs_success || { (exit 1); exit 1; }
5968 fi
5969

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