/[LeafOK_CVS]/lbbs/configure
ViewVC logotype

Contents of /lbbs/configure

Parent Directory Parent Directory | Revision Log Revision Log


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

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