Okay, third try (makefile)
[vhostgen.git] / configure
blob5058335aee2bd16b30e9e5c292ece595a220dae8
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for vhostgen 1.0.
5 # Report bugs to <sjk@ankeborg.nu>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
98 rm -f conf$$.sh
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
156 esac
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251 exec 6>&1
254 # Initializations.
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='vhostgen'
271 PACKAGE_TARNAME='vhostgen'
272 PACKAGE_VERSION='1.0'
273 PACKAGE_STRING='vhostgen 1.0'
274 PACKAGE_BUGREPORT='sjk@ankeborg.nu'
276 ac_unique_file="vhostgen.c"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 # include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 # include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 # include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
314 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MYSQL_CFLAGS MYSQL_LIBS mysqlconfig CPP EGREP LIBOBJS LTLIBOBJS'
315 ac_subst_files=''
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
355 ac_prev=
356 for ac_option
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
369 case $ac_option in
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
388 --config-cache | -C)
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 *) ac_optarg=yes ;;
416 esac
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
588 -with-* | --with-*)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 *) ac_optarg=yes ;;
598 esac
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 esac
652 done
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669 done
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
680 esac
681 done
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
727 else
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
734 else
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
777 # Report the --help message.
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
782 cat <<_ACEOF
783 \`configure' configures vhostgen 1.0 to adapt to many kinds of systems.
785 Usage: $0 [OPTION]... [VAR=VALUE]...
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
790 Defaults for the options are specified in brackets.
792 Configuration:
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803 _ACEOF
805 cat <<_ACEOF
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
808 [$ac_default_prefix]
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 [PREFIX]
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
817 For better control, use the options below.
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
832 _ACEOF
834 cat <<\_ACEOF
835 _ACEOF
838 if test -n "$ac_init_help"; then
839 case $ac_init_help in
840 short | recursive ) echo "Configuration of vhostgen 1.0:";;
841 esac
842 cat <<\_ACEOF
844 Some influential environment variables:
845 CC C compiler command
846 CFLAGS C compiler flags
847 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
848 nonstandard directory <lib dir>
849 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
850 headers in a nonstandard directory <include dir>
851 CPP C preprocessor
853 Use these variables to override the choices made by `configure' or to help
854 it to find libraries and programs with nonstandard names/locations.
856 Report bugs to <sjk@ankeborg.nu>.
857 _ACEOF
860 if test "$ac_init_help" = "recursive"; then
861 # If there are subdirs, report their specific --help.
862 ac_popdir=`pwd`
863 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
864 test -d $ac_dir || continue
865 ac_builddir=.
867 if test "$ac_dir" != .; then
868 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
869 # A "../" for each directory in $ac_dir_suffix.
870 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
871 else
872 ac_dir_suffix= ac_top_builddir=
875 case $srcdir in
876 .) # No --srcdir option. We are building in place.
877 ac_srcdir=.
878 if test -z "$ac_top_builddir"; then
879 ac_top_srcdir=.
880 else
881 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
882 fi ;;
883 [\\/]* | ?:[\\/]* ) # Absolute path.
884 ac_srcdir=$srcdir$ac_dir_suffix;
885 ac_top_srcdir=$srcdir ;;
886 *) # Relative path.
887 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
888 ac_top_srcdir=$ac_top_builddir$srcdir ;;
889 esac
891 # Do not use `cd foo && pwd` to compute absolute paths, because
892 # the directories may not exist.
893 case `pwd` in
894 .) ac_abs_builddir="$ac_dir";;
896 case "$ac_dir" in
897 .) ac_abs_builddir=`pwd`;;
898 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
899 *) ac_abs_builddir=`pwd`/"$ac_dir";;
900 esac;;
901 esac
902 case $ac_abs_builddir in
903 .) ac_abs_top_builddir=${ac_top_builddir}.;;
905 case ${ac_top_builddir}. in
906 .) ac_abs_top_builddir=$ac_abs_builddir;;
907 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
908 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
909 esac;;
910 esac
911 case $ac_abs_builddir in
912 .) ac_abs_srcdir=$ac_srcdir;;
914 case $ac_srcdir in
915 .) ac_abs_srcdir=$ac_abs_builddir;;
916 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
917 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
918 esac;;
919 esac
920 case $ac_abs_builddir in
921 .) ac_abs_top_srcdir=$ac_top_srcdir;;
923 case $ac_top_srcdir in
924 .) ac_abs_top_srcdir=$ac_abs_builddir;;
925 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
926 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
927 esac;;
928 esac
930 cd $ac_dir
931 # Check for guested configure; otherwise get Cygnus style configure.
932 if test -f $ac_srcdir/configure.gnu; then
933 echo
934 $SHELL $ac_srcdir/configure.gnu --help=recursive
935 elif test -f $ac_srcdir/configure; then
936 echo
937 $SHELL $ac_srcdir/configure --help=recursive
938 elif test -f $ac_srcdir/configure.ac ||
939 test -f $ac_srcdir/configure.in; then
940 echo
941 $ac_configure --help
942 else
943 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
945 cd $ac_popdir
946 done
949 test -n "$ac_init_help" && exit 0
950 if $ac_init_version; then
951 cat <<\_ACEOF
952 vhostgen configure 1.0
953 generated by GNU Autoconf 2.59
955 Copyright (C) 2003 Free Software Foundation, Inc.
956 This configure script is free software; the Free Software Foundation
957 gives unlimited permission to copy, distribute and modify it.
958 _ACEOF
959 exit 0
961 exec 5>config.log
962 cat >&5 <<_ACEOF
963 This file contains any messages produced by compilers while
964 running configure, to aid debugging if configure makes a mistake.
966 It was created by vhostgen $as_me 1.0, which was
967 generated by GNU Autoconf 2.59. Invocation command line was
969 $ $0 $@
971 _ACEOF
973 cat <<_ASUNAME
974 ## --------- ##
975 ## Platform. ##
976 ## --------- ##
978 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
979 uname -m = `(uname -m) 2>/dev/null || echo unknown`
980 uname -r = `(uname -r) 2>/dev/null || echo unknown`
981 uname -s = `(uname -s) 2>/dev/null || echo unknown`
982 uname -v = `(uname -v) 2>/dev/null || echo unknown`
984 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
985 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
987 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
988 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
989 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
990 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
991 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
992 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
993 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
995 _ASUNAME
997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
998 for as_dir in $PATH
1000 IFS=$as_save_IFS
1001 test -z "$as_dir" && as_dir=.
1002 echo "PATH: $as_dir"
1003 done
1005 } >&5
1007 cat >&5 <<_ACEOF
1010 ## ----------- ##
1011 ## Core tests. ##
1012 ## ----------- ##
1014 _ACEOF
1017 # Keep a trace of the command line.
1018 # Strip out --no-create and --no-recursion so they do not pile up.
1019 # Strip out --silent because we don't want to record it for future runs.
1020 # Also quote any args containing shell meta-characters.
1021 # Make two passes to allow for proper duplicate-argument suppression.
1022 ac_configure_args=
1023 ac_configure_args0=
1024 ac_configure_args1=
1025 ac_sep=
1026 ac_must_keep_next=false
1027 for ac_pass in 1 2
1029 for ac_arg
1031 case $ac_arg in
1032 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1033 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1034 | -silent | --silent | --silen | --sile | --sil)
1035 continue ;;
1036 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1037 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1038 esac
1039 case $ac_pass in
1040 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1042 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1043 if test $ac_must_keep_next = true; then
1044 ac_must_keep_next=false # Got value, back to normal.
1045 else
1046 case $ac_arg in
1047 *=* | --config-cache | -C | -disable-* | --disable-* \
1048 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1049 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1050 | -with-* | --with-* | -without-* | --without-* | --x)
1051 case "$ac_configure_args0 " in
1052 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1053 esac
1055 -* ) ac_must_keep_next=true ;;
1056 esac
1058 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1059 # Get rid of the leading space.
1060 ac_sep=" "
1062 esac
1063 done
1064 done
1065 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1066 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1068 # When interrupted or exit'd, cleanup temporary files, and complete
1069 # config.log. We remove comments because anyway the quotes in there
1070 # would cause problems or look ugly.
1071 # WARNING: Be sure not to use single quotes in there, as some shells,
1072 # such as our DU 5.0 friend, will then `close' the trap.
1073 trap 'exit_status=$?
1074 # Save into config.log some information that might help in debugging.
1076 echo
1078 cat <<\_ASBOX
1079 ## ---------------- ##
1080 ## Cache variables. ##
1081 ## ---------------- ##
1082 _ASBOX
1083 echo
1084 # The following way of writing the cache mishandles newlines in values,
1086 (set) 2>&1 |
1087 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1088 *ac_space=\ *)
1089 sed -n \
1090 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1091 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1094 sed -n \
1095 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1097 esac;
1099 echo
1101 cat <<\_ASBOX
1102 ## ----------------- ##
1103 ## Output variables. ##
1104 ## ----------------- ##
1105 _ASBOX
1106 echo
1107 for ac_var in $ac_subst_vars
1109 eval ac_val=$`echo $ac_var`
1110 echo "$ac_var='"'"'$ac_val'"'"'"
1111 done | sort
1112 echo
1114 if test -n "$ac_subst_files"; then
1115 cat <<\_ASBOX
1116 ## ------------- ##
1117 ## Output files. ##
1118 ## ------------- ##
1119 _ASBOX
1120 echo
1121 for ac_var in $ac_subst_files
1123 eval ac_val=$`echo $ac_var`
1124 echo "$ac_var='"'"'$ac_val'"'"'"
1125 done | sort
1126 echo
1129 if test -s confdefs.h; then
1130 cat <<\_ASBOX
1131 ## ----------- ##
1132 ## confdefs.h. ##
1133 ## ----------- ##
1134 _ASBOX
1135 echo
1136 sed "/^$/d" confdefs.h | sort
1137 echo
1139 test "$ac_signal" != 0 &&
1140 echo "$as_me: caught signal $ac_signal"
1141 echo "$as_me: exit $exit_status"
1142 } >&5
1143 rm -f core *.core &&
1144 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1145 exit $exit_status
1147 for ac_signal in 1 2 13 15; do
1148 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1149 done
1150 ac_signal=0
1152 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1153 rm -rf conftest* confdefs.h
1154 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1155 echo >confdefs.h
1157 # Predefined preprocessor variables.
1159 cat >>confdefs.h <<_ACEOF
1160 #define PACKAGE_NAME "$PACKAGE_NAME"
1161 _ACEOF
1164 cat >>confdefs.h <<_ACEOF
1165 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1166 _ACEOF
1169 cat >>confdefs.h <<_ACEOF
1170 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1171 _ACEOF
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_STRING "$PACKAGE_STRING"
1176 _ACEOF
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1181 _ACEOF
1184 # Let the site file select an alternate cache file if it wants to.
1185 # Prefer explicitly selected file to automatically selected ones.
1186 if test -z "$CONFIG_SITE"; then
1187 if test "x$prefix" != xNONE; then
1188 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1189 else
1190 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1193 for ac_site_file in $CONFIG_SITE; do
1194 if test -r "$ac_site_file"; then
1195 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1196 echo "$as_me: loading site script $ac_site_file" >&6;}
1197 sed 's/^/| /' "$ac_site_file" >&5
1198 . "$ac_site_file"
1200 done
1202 if test -r "$cache_file"; then
1203 # Some versions of bash will fail to source /dev/null (special
1204 # files actually), so we avoid doing that.
1205 if test -f "$cache_file"; then
1206 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1207 echo "$as_me: loading cache $cache_file" >&6;}
1208 case $cache_file in
1209 [\\/]* | ?:[\\/]* ) . $cache_file;;
1210 *) . ./$cache_file;;
1211 esac
1213 else
1214 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1215 echo "$as_me: creating cache $cache_file" >&6;}
1216 >$cache_file
1219 # Check that the precious variables saved in the cache have kept the same
1220 # value.
1221 ac_cache_corrupted=false
1222 for ac_var in `(set) 2>&1 |
1223 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1224 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1225 eval ac_new_set=\$ac_env_${ac_var}_set
1226 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1227 eval ac_new_val="\$ac_env_${ac_var}_value"
1228 case $ac_old_set,$ac_new_set in
1229 set,)
1230 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1231 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1232 ac_cache_corrupted=: ;;
1233 ,set)
1234 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1235 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1236 ac_cache_corrupted=: ;;
1237 ,);;
1239 if test "x$ac_old_val" != "x$ac_new_val"; then
1240 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1241 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1242 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1243 echo "$as_me: former value: $ac_old_val" >&2;}
1244 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1245 echo "$as_me: current value: $ac_new_val" >&2;}
1246 ac_cache_corrupted=:
1247 fi;;
1248 esac
1249 # Pass precious variables to config.status.
1250 if test "$ac_new_set" = set; then
1251 case $ac_new_val in
1252 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1254 *) ac_arg=$ac_var=$ac_new_val ;;
1255 esac
1256 case " $ac_configure_args " in
1257 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1258 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1259 esac
1261 done
1262 if $ac_cache_corrupted; then
1263 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1264 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1265 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1266 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1267 { (exit 1); exit 1; }; }
1270 ac_ext=c
1271 ac_cpp='$CPP $CPPFLAGS'
1272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1303 ac_config_headers="$ac_config_headers config.h"
1306 # Checks for programs.
1307 ac_ext=c
1308 ac_cpp='$CPP $CPPFLAGS'
1309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1312 if test -n "$ac_tool_prefix"; then
1313 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1314 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1315 echo "$as_me:$LINENO: checking for $ac_word" >&5
1316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1317 if test "${ac_cv_prog_CC+set}" = set; then
1318 echo $ECHO_N "(cached) $ECHO_C" >&6
1319 else
1320 if test -n "$CC"; then
1321 ac_cv_prog_CC="$CC" # Let the user override the test.
1322 else
1323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1324 for as_dir in $PATH
1326 IFS=$as_save_IFS
1327 test -z "$as_dir" && as_dir=.
1328 for ac_exec_ext in '' $ac_executable_extensions; do
1329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1330 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1332 break 2
1334 done
1335 done
1339 CC=$ac_cv_prog_CC
1340 if test -n "$CC"; then
1341 echo "$as_me:$LINENO: result: $CC" >&5
1342 echo "${ECHO_T}$CC" >&6
1343 else
1344 echo "$as_me:$LINENO: result: no" >&5
1345 echo "${ECHO_T}no" >&6
1349 if test -z "$ac_cv_prog_CC"; then
1350 ac_ct_CC=$CC
1351 # Extract the first word of "gcc", so it can be a program name with args.
1352 set dummy gcc; ac_word=$2
1353 echo "$as_me:$LINENO: checking for $ac_word" >&5
1354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1355 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1356 echo $ECHO_N "(cached) $ECHO_C" >&6
1357 else
1358 if test -n "$ac_ct_CC"; then
1359 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1360 else
1361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1362 for as_dir in $PATH
1364 IFS=$as_save_IFS
1365 test -z "$as_dir" && as_dir=.
1366 for ac_exec_ext in '' $ac_executable_extensions; do
1367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1368 ac_cv_prog_ac_ct_CC="gcc"
1369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1370 break 2
1372 done
1373 done
1377 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1378 if test -n "$ac_ct_CC"; then
1379 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1380 echo "${ECHO_T}$ac_ct_CC" >&6
1381 else
1382 echo "$as_me:$LINENO: result: no" >&5
1383 echo "${ECHO_T}no" >&6
1386 CC=$ac_ct_CC
1387 else
1388 CC="$ac_cv_prog_CC"
1391 if test -z "$CC"; then
1392 if test -n "$ac_tool_prefix"; then
1393 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1394 set dummy ${ac_tool_prefix}cc; ac_word=$2
1395 echo "$as_me:$LINENO: checking for $ac_word" >&5
1396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1397 if test "${ac_cv_prog_CC+set}" = set; then
1398 echo $ECHO_N "(cached) $ECHO_C" >&6
1399 else
1400 if test -n "$CC"; then
1401 ac_cv_prog_CC="$CC" # Let the user override the test.
1402 else
1403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1404 for as_dir in $PATH
1406 IFS=$as_save_IFS
1407 test -z "$as_dir" && as_dir=.
1408 for ac_exec_ext in '' $ac_executable_extensions; do
1409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1410 ac_cv_prog_CC="${ac_tool_prefix}cc"
1411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1412 break 2
1414 done
1415 done
1419 CC=$ac_cv_prog_CC
1420 if test -n "$CC"; then
1421 echo "$as_me:$LINENO: result: $CC" >&5
1422 echo "${ECHO_T}$CC" >&6
1423 else
1424 echo "$as_me:$LINENO: result: no" >&5
1425 echo "${ECHO_T}no" >&6
1429 if test -z "$ac_cv_prog_CC"; then
1430 ac_ct_CC=$CC
1431 # Extract the first word of "cc", so it can be a program name with args.
1432 set dummy cc; ac_word=$2
1433 echo "$as_me:$LINENO: checking for $ac_word" >&5
1434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1435 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1436 echo $ECHO_N "(cached) $ECHO_C" >&6
1437 else
1438 if test -n "$ac_ct_CC"; then
1439 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1440 else
1441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1442 for as_dir in $PATH
1444 IFS=$as_save_IFS
1445 test -z "$as_dir" && as_dir=.
1446 for ac_exec_ext in '' $ac_executable_extensions; do
1447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1448 ac_cv_prog_ac_ct_CC="cc"
1449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1450 break 2
1452 done
1453 done
1457 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1458 if test -n "$ac_ct_CC"; then
1459 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1460 echo "${ECHO_T}$ac_ct_CC" >&6
1461 else
1462 echo "$as_me:$LINENO: result: no" >&5
1463 echo "${ECHO_T}no" >&6
1466 CC=$ac_ct_CC
1467 else
1468 CC="$ac_cv_prog_CC"
1472 if test -z "$CC"; then
1473 # Extract the first word of "cc", so it can be a program name with args.
1474 set dummy cc; ac_word=$2
1475 echo "$as_me:$LINENO: checking for $ac_word" >&5
1476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1477 if test "${ac_cv_prog_CC+set}" = set; then
1478 echo $ECHO_N "(cached) $ECHO_C" >&6
1479 else
1480 if test -n "$CC"; then
1481 ac_cv_prog_CC="$CC" # Let the user override the test.
1482 else
1483 ac_prog_rejected=no
1484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 for as_dir in $PATH
1487 IFS=$as_save_IFS
1488 test -z "$as_dir" && as_dir=.
1489 for ac_exec_ext in '' $ac_executable_extensions; do
1490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1491 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1492 ac_prog_rejected=yes
1493 continue
1495 ac_cv_prog_CC="cc"
1496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1497 break 2
1499 done
1500 done
1502 if test $ac_prog_rejected = yes; then
1503 # We found a bogon in the path, so make sure we never use it.
1504 set dummy $ac_cv_prog_CC
1505 shift
1506 if test $# != 0; then
1507 # We chose a different compiler from the bogus one.
1508 # However, it has the same basename, so the bogon will be chosen
1509 # first if we set CC to just the basename; use the full file name.
1510 shift
1511 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1516 CC=$ac_cv_prog_CC
1517 if test -n "$CC"; then
1518 echo "$as_me:$LINENO: result: $CC" >&5
1519 echo "${ECHO_T}$CC" >&6
1520 else
1521 echo "$as_me:$LINENO: result: no" >&5
1522 echo "${ECHO_T}no" >&6
1526 if test -z "$CC"; then
1527 if test -n "$ac_tool_prefix"; then
1528 for ac_prog in cl
1530 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1531 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1532 echo "$as_me:$LINENO: checking for $ac_word" >&5
1533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1534 if test "${ac_cv_prog_CC+set}" = set; then
1535 echo $ECHO_N "(cached) $ECHO_C" >&6
1536 else
1537 if test -n "$CC"; then
1538 ac_cv_prog_CC="$CC" # Let the user override the test.
1539 else
1540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1541 for as_dir in $PATH
1543 IFS=$as_save_IFS
1544 test -z "$as_dir" && as_dir=.
1545 for ac_exec_ext in '' $ac_executable_extensions; do
1546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1547 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1549 break 2
1551 done
1552 done
1556 CC=$ac_cv_prog_CC
1557 if test -n "$CC"; then
1558 echo "$as_me:$LINENO: result: $CC" >&5
1559 echo "${ECHO_T}$CC" >&6
1560 else
1561 echo "$as_me:$LINENO: result: no" >&5
1562 echo "${ECHO_T}no" >&6
1565 test -n "$CC" && break
1566 done
1568 if test -z "$CC"; then
1569 ac_ct_CC=$CC
1570 for ac_prog in cl
1572 # Extract the first word of "$ac_prog", so it can be a program name with args.
1573 set dummy $ac_prog; ac_word=$2
1574 echo "$as_me:$LINENO: checking for $ac_word" >&5
1575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1576 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1578 else
1579 if test -n "$ac_ct_CC"; then
1580 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1581 else
1582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583 for as_dir in $PATH
1585 IFS=$as_save_IFS
1586 test -z "$as_dir" && as_dir=.
1587 for ac_exec_ext in '' $ac_executable_extensions; do
1588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1589 ac_cv_prog_ac_ct_CC="$ac_prog"
1590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1591 break 2
1593 done
1594 done
1598 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1599 if test -n "$ac_ct_CC"; then
1600 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1601 echo "${ECHO_T}$ac_ct_CC" >&6
1602 else
1603 echo "$as_me:$LINENO: result: no" >&5
1604 echo "${ECHO_T}no" >&6
1607 test -n "$ac_ct_CC" && break
1608 done
1610 CC=$ac_ct_CC
1616 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1617 See \`config.log' for more details." >&5
1618 echo "$as_me: error: no acceptable C compiler found in \$PATH
1619 See \`config.log' for more details." >&2;}
1620 { (exit 1); exit 1; }; }
1622 # Provide some information about the compiler.
1623 echo "$as_me:$LINENO:" \
1624 "checking for C compiler version" >&5
1625 ac_compiler=`set X $ac_compile; echo $2`
1626 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1627 (eval $ac_compiler --version </dev/null >&5) 2>&5
1628 ac_status=$?
1629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1630 (exit $ac_status); }
1631 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1632 (eval $ac_compiler -v </dev/null >&5) 2>&5
1633 ac_status=$?
1634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1635 (exit $ac_status); }
1636 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1637 (eval $ac_compiler -V </dev/null >&5) 2>&5
1638 ac_status=$?
1639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1640 (exit $ac_status); }
1642 cat >conftest.$ac_ext <<_ACEOF
1643 /* confdefs.h. */
1644 _ACEOF
1645 cat confdefs.h >>conftest.$ac_ext
1646 cat >>conftest.$ac_ext <<_ACEOF
1647 /* end confdefs.h. */
1650 main ()
1654 return 0;
1656 _ACEOF
1657 ac_clean_files_save=$ac_clean_files
1658 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1659 # Try to create an executable without -o first, disregard a.out.
1660 # It will help us diagnose broken compilers, and finding out an intuition
1661 # of exeext.
1662 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1663 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1664 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1665 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1666 (eval $ac_link_default) 2>&5
1667 ac_status=$?
1668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1669 (exit $ac_status); }; then
1670 # Find the output, starting from the most likely. This scheme is
1671 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1672 # resort.
1674 # Be careful to initialize this variable, since it used to be cached.
1675 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1676 ac_cv_exeext=
1677 # b.out is created by i960 compilers.
1678 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1680 test -f "$ac_file" || continue
1681 case $ac_file in
1682 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1684 conftest.$ac_ext )
1685 # This is the source file.
1687 [ab].out )
1688 # We found the default executable, but exeext='' is most
1689 # certainly right.
1690 break;;
1691 *.* )
1692 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1693 # FIXME: I believe we export ac_cv_exeext for Libtool,
1694 # but it would be cool to find out if it's true. Does anybody
1695 # maintain Libtool? --akim.
1696 export ac_cv_exeext
1697 break;;
1699 break;;
1700 esac
1701 done
1702 else
1703 echo "$as_me: failed program was:" >&5
1704 sed 's/^/| /' conftest.$ac_ext >&5
1706 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1707 See \`config.log' for more details." >&5
1708 echo "$as_me: error: C compiler cannot create executables
1709 See \`config.log' for more details." >&2;}
1710 { (exit 77); exit 77; }; }
1713 ac_exeext=$ac_cv_exeext
1714 echo "$as_me:$LINENO: result: $ac_file" >&5
1715 echo "${ECHO_T}$ac_file" >&6
1717 # Check the compiler produces executables we can run. If not, either
1718 # the compiler is broken, or we cross compile.
1719 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1720 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1721 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1722 # If not cross compiling, check that we can run a simple program.
1723 if test "$cross_compiling" != yes; then
1724 if { ac_try='./$ac_file'
1725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1726 (eval $ac_try) 2>&5
1727 ac_status=$?
1728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1729 (exit $ac_status); }; }; then
1730 cross_compiling=no
1731 else
1732 if test "$cross_compiling" = maybe; then
1733 cross_compiling=yes
1734 else
1735 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1736 If you meant to cross compile, use \`--host'.
1737 See \`config.log' for more details." >&5
1738 echo "$as_me: error: cannot run C compiled programs.
1739 If you meant to cross compile, use \`--host'.
1740 See \`config.log' for more details." >&2;}
1741 { (exit 1); exit 1; }; }
1745 echo "$as_me:$LINENO: result: yes" >&5
1746 echo "${ECHO_T}yes" >&6
1748 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1749 ac_clean_files=$ac_clean_files_save
1750 # Check the compiler produces executables we can run. If not, either
1751 # the compiler is broken, or we cross compile.
1752 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1753 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1754 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1755 echo "${ECHO_T}$cross_compiling" >&6
1757 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1758 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1760 (eval $ac_link) 2>&5
1761 ac_status=$?
1762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1763 (exit $ac_status); }; then
1764 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1765 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1766 # work properly (i.e., refer to `conftest.exe'), while it won't with
1767 # `rm'.
1768 for ac_file in conftest.exe conftest conftest.*; do
1769 test -f "$ac_file" || continue
1770 case $ac_file in
1771 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1772 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1773 export ac_cv_exeext
1774 break;;
1775 * ) break;;
1776 esac
1777 done
1778 else
1779 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1780 See \`config.log' for more details." >&5
1781 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1782 See \`config.log' for more details." >&2;}
1783 { (exit 1); exit 1; }; }
1786 rm -f conftest$ac_cv_exeext
1787 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1788 echo "${ECHO_T}$ac_cv_exeext" >&6
1790 rm -f conftest.$ac_ext
1791 EXEEXT=$ac_cv_exeext
1792 ac_exeext=$EXEEXT
1793 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1794 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1795 if test "${ac_cv_objext+set}" = set; then
1796 echo $ECHO_N "(cached) $ECHO_C" >&6
1797 else
1798 cat >conftest.$ac_ext <<_ACEOF
1799 /* confdefs.h. */
1800 _ACEOF
1801 cat confdefs.h >>conftest.$ac_ext
1802 cat >>conftest.$ac_ext <<_ACEOF
1803 /* end confdefs.h. */
1806 main ()
1810 return 0;
1812 _ACEOF
1813 rm -f conftest.o conftest.obj
1814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1815 (eval $ac_compile) 2>&5
1816 ac_status=$?
1817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1818 (exit $ac_status); }; then
1819 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1820 case $ac_file in
1821 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1822 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1823 break;;
1824 esac
1825 done
1826 else
1827 echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1830 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1831 See \`config.log' for more details." >&5
1832 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1833 See \`config.log' for more details." >&2;}
1834 { (exit 1); exit 1; }; }
1837 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1839 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1840 echo "${ECHO_T}$ac_cv_objext" >&6
1841 OBJEXT=$ac_cv_objext
1842 ac_objext=$OBJEXT
1843 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1844 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1845 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1846 echo $ECHO_N "(cached) $ECHO_C" >&6
1847 else
1848 cat >conftest.$ac_ext <<_ACEOF
1849 /* confdefs.h. */
1850 _ACEOF
1851 cat confdefs.h >>conftest.$ac_ext
1852 cat >>conftest.$ac_ext <<_ACEOF
1853 /* end confdefs.h. */
1856 main ()
1858 #ifndef __GNUC__
1859 choke me
1860 #endif
1863 return 0;
1865 _ACEOF
1866 rm -f conftest.$ac_objext
1867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1868 (eval $ac_compile) 2>conftest.er1
1869 ac_status=$?
1870 grep -v '^ *+' conftest.er1 >conftest.err
1871 rm -f conftest.er1
1872 cat conftest.err >&5
1873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1874 (exit $ac_status); } &&
1875 { ac_try='test -z "$ac_c_werror_flag"
1876 || test ! -s conftest.err'
1877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1878 (eval $ac_try) 2>&5
1879 ac_status=$?
1880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1881 (exit $ac_status); }; } &&
1882 { ac_try='test -s conftest.$ac_objext'
1883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1884 (eval $ac_try) 2>&5
1885 ac_status=$?
1886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1887 (exit $ac_status); }; }; then
1888 ac_compiler_gnu=yes
1889 else
1890 echo "$as_me: failed program was:" >&5
1891 sed 's/^/| /' conftest.$ac_ext >&5
1893 ac_compiler_gnu=no
1895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1896 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1899 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1900 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1901 GCC=`test $ac_compiler_gnu = yes && echo yes`
1902 ac_test_CFLAGS=${CFLAGS+set}
1903 ac_save_CFLAGS=$CFLAGS
1904 CFLAGS="-g"
1905 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1906 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1907 if test "${ac_cv_prog_cc_g+set}" = set; then
1908 echo $ECHO_N "(cached) $ECHO_C" >&6
1909 else
1910 cat >conftest.$ac_ext <<_ACEOF
1911 /* confdefs.h. */
1912 _ACEOF
1913 cat confdefs.h >>conftest.$ac_ext
1914 cat >>conftest.$ac_ext <<_ACEOF
1915 /* end confdefs.h. */
1918 main ()
1922 return 0;
1924 _ACEOF
1925 rm -f conftest.$ac_objext
1926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1927 (eval $ac_compile) 2>conftest.er1
1928 ac_status=$?
1929 grep -v '^ *+' conftest.er1 >conftest.err
1930 rm -f conftest.er1
1931 cat conftest.err >&5
1932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933 (exit $ac_status); } &&
1934 { ac_try='test -z "$ac_c_werror_flag"
1935 || test ! -s conftest.err'
1936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1937 (eval $ac_try) 2>&5
1938 ac_status=$?
1939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940 (exit $ac_status); }; } &&
1941 { ac_try='test -s conftest.$ac_objext'
1942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1943 (eval $ac_try) 2>&5
1944 ac_status=$?
1945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946 (exit $ac_status); }; }; then
1947 ac_cv_prog_cc_g=yes
1948 else
1949 echo "$as_me: failed program was:" >&5
1950 sed 's/^/| /' conftest.$ac_ext >&5
1952 ac_cv_prog_cc_g=no
1954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1956 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1957 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1958 if test "$ac_test_CFLAGS" = set; then
1959 CFLAGS=$ac_save_CFLAGS
1960 elif test $ac_cv_prog_cc_g = yes; then
1961 if test "$GCC" = yes; then
1962 CFLAGS="-g -O2"
1963 else
1964 CFLAGS="-g"
1966 else
1967 if test "$GCC" = yes; then
1968 CFLAGS="-O2"
1969 else
1970 CFLAGS=
1973 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1974 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1975 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1976 echo $ECHO_N "(cached) $ECHO_C" >&6
1977 else
1978 ac_cv_prog_cc_stdc=no
1979 ac_save_CC=$CC
1980 cat >conftest.$ac_ext <<_ACEOF
1981 /* confdefs.h. */
1982 _ACEOF
1983 cat confdefs.h >>conftest.$ac_ext
1984 cat >>conftest.$ac_ext <<_ACEOF
1985 /* end confdefs.h. */
1986 #include <stdarg.h>
1987 #include <stdio.h>
1988 #include <sys/types.h>
1989 #include <sys/stat.h>
1990 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1991 struct buf { int x; };
1992 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1993 static char *e (p, i)
1994 char **p;
1995 int i;
1997 return p[i];
1999 static char *f (char * (*g) (char **, int), char **p, ...)
2001 char *s;
2002 va_list v;
2003 va_start (v,p);
2004 s = g (p, va_arg (v,int));
2005 va_end (v);
2006 return s;
2009 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2010 function prototypes and stuff, but not '\xHH' hex character constants.
2011 These don't provoke an error unfortunately, instead are silently treated
2012 as 'x'. The following induces an error, until -std1 is added to get
2013 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2014 array size at least. It's necessary to write '\x00'==0 to get something
2015 that's true only with -std1. */
2016 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2018 int test (int i, double x);
2019 struct s1 {int (*f) (int a);};
2020 struct s2 {int (*f) (double a);};
2021 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2022 int argc;
2023 char **argv;
2025 main ()
2027 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2029 return 0;
2031 _ACEOF
2032 # Don't try gcc -ansi; that turns off useful extensions and
2033 # breaks some systems' header files.
2034 # AIX -qlanglvl=ansi
2035 # Ultrix and OSF/1 -std1
2036 # HP-UX 10.20 and later -Ae
2037 # HP-UX older versions -Aa -D_HPUX_SOURCE
2038 # SVR4 -Xc -D__EXTENSIONS__
2039 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2041 CC="$ac_save_CC $ac_arg"
2042 rm -f conftest.$ac_objext
2043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2044 (eval $ac_compile) 2>conftest.er1
2045 ac_status=$?
2046 grep -v '^ *+' conftest.er1 >conftest.err
2047 rm -f conftest.er1
2048 cat conftest.err >&5
2049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2050 (exit $ac_status); } &&
2051 { ac_try='test -z "$ac_c_werror_flag"
2052 || test ! -s conftest.err'
2053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2054 (eval $ac_try) 2>&5
2055 ac_status=$?
2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057 (exit $ac_status); }; } &&
2058 { ac_try='test -s conftest.$ac_objext'
2059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060 (eval $ac_try) 2>&5
2061 ac_status=$?
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }; }; then
2064 ac_cv_prog_cc_stdc=$ac_arg
2065 break
2066 else
2067 echo "$as_me: failed program was:" >&5
2068 sed 's/^/| /' conftest.$ac_ext >&5
2071 rm -f conftest.err conftest.$ac_objext
2072 done
2073 rm -f conftest.$ac_ext conftest.$ac_objext
2074 CC=$ac_save_CC
2078 case "x$ac_cv_prog_cc_stdc" in
2079 x|xno)
2080 echo "$as_me:$LINENO: result: none needed" >&5
2081 echo "${ECHO_T}none needed" >&6 ;;
2083 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2084 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2085 CC="$CC $ac_cv_prog_cc_stdc" ;;
2086 esac
2088 # Some people use a C++ compiler to compile C. Since we use `exit',
2089 # in C++ we need to declare it. In case someone uses the same compiler
2090 # for both compiling C and C++ we need to have the C++ compiler decide
2091 # the declaration of exit, since it's the most demanding environment.
2092 cat >conftest.$ac_ext <<_ACEOF
2093 #ifndef __cplusplus
2094 choke me
2095 #endif
2096 _ACEOF
2097 rm -f conftest.$ac_objext
2098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2099 (eval $ac_compile) 2>conftest.er1
2100 ac_status=$?
2101 grep -v '^ *+' conftest.er1 >conftest.err
2102 rm -f conftest.er1
2103 cat conftest.err >&5
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); } &&
2106 { ac_try='test -z "$ac_c_werror_flag"
2107 || test ! -s conftest.err'
2108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2109 (eval $ac_try) 2>&5
2110 ac_status=$?
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); }; } &&
2113 { ac_try='test -s conftest.$ac_objext'
2114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2115 (eval $ac_try) 2>&5
2116 ac_status=$?
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }; }; then
2119 for ac_declaration in \
2120 '' \
2121 'extern "C" void std::exit (int) throw (); using std::exit;' \
2122 'extern "C" void std::exit (int); using std::exit;' \
2123 'extern "C" void exit (int) throw ();' \
2124 'extern "C" void exit (int);' \
2125 'void exit (int);'
2127 cat >conftest.$ac_ext <<_ACEOF
2128 /* confdefs.h. */
2129 _ACEOF
2130 cat confdefs.h >>conftest.$ac_ext
2131 cat >>conftest.$ac_ext <<_ACEOF
2132 /* end confdefs.h. */
2133 $ac_declaration
2134 #include <stdlib.h>
2136 main ()
2138 exit (42);
2140 return 0;
2142 _ACEOF
2143 rm -f conftest.$ac_objext
2144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2145 (eval $ac_compile) 2>conftest.er1
2146 ac_status=$?
2147 grep -v '^ *+' conftest.er1 >conftest.err
2148 rm -f conftest.er1
2149 cat conftest.err >&5
2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); } &&
2152 { ac_try='test -z "$ac_c_werror_flag"
2153 || test ! -s conftest.err'
2154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2155 (eval $ac_try) 2>&5
2156 ac_status=$?
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }; } &&
2159 { ac_try='test -s conftest.$ac_objext'
2160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2161 (eval $ac_try) 2>&5
2162 ac_status=$?
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); }; }; then
2166 else
2167 echo "$as_me: failed program was:" >&5
2168 sed 's/^/| /' conftest.$ac_ext >&5
2170 continue
2172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2173 cat >conftest.$ac_ext <<_ACEOF
2174 /* confdefs.h. */
2175 _ACEOF
2176 cat confdefs.h >>conftest.$ac_ext
2177 cat >>conftest.$ac_ext <<_ACEOF
2178 /* end confdefs.h. */
2179 $ac_declaration
2181 main ()
2183 exit (42);
2185 return 0;
2187 _ACEOF
2188 rm -f conftest.$ac_objext
2189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2190 (eval $ac_compile) 2>conftest.er1
2191 ac_status=$?
2192 grep -v '^ *+' conftest.er1 >conftest.err
2193 rm -f conftest.er1
2194 cat conftest.err >&5
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); } &&
2197 { ac_try='test -z "$ac_c_werror_flag"
2198 || test ! -s conftest.err'
2199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2200 (eval $ac_try) 2>&5
2201 ac_status=$?
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; } &&
2204 { ac_try='test -s conftest.$ac_objext'
2205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2206 (eval $ac_try) 2>&5
2207 ac_status=$?
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }; }; then
2210 break
2211 else
2212 echo "$as_me: failed program was:" >&5
2213 sed 's/^/| /' conftest.$ac_ext >&5
2216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2217 done
2218 rm -f conftest*
2219 if test -n "$ac_declaration"; then
2220 echo '#ifdef __cplusplus' >>confdefs.h
2221 echo $ac_declaration >>confdefs.h
2222 echo '#endif' >>confdefs.h
2225 else
2226 echo "$as_me: failed program was:" >&5
2227 sed 's/^/| /' conftest.$ac_ext >&5
2230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2231 ac_ext=c
2232 ac_cpp='$CPP $CPPFLAGS'
2233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2238 # We use the following function to check for mysql libs
2239 # I believe this function was written by Michiel van Baak.
2242 # Checks for libraries.
2246 # Extract the first word of "mysql_config", so it can be a program name with args.
2247 set dummy mysql_config; ac_word=$2
2248 echo "$as_me:$LINENO: checking for $ac_word" >&5
2249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2250 if test "${ac_cv_path_mysqlconfig+set}" = set; then
2251 echo $ECHO_N "(cached) $ECHO_C" >&6
2252 else
2253 case $mysqlconfig in
2254 [\\/]* | ?:[\\/]*)
2255 ac_cv_path_mysqlconfig="$mysqlconfig" # Let the user override the test with a path.
2258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2259 for as_dir in $PATH
2261 IFS=$as_save_IFS
2262 test -z "$as_dir" && as_dir=.
2263 for ac_exec_ext in '' $ac_executable_extensions; do
2264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2265 ac_cv_path_mysqlconfig="$as_dir/$ac_word$ac_exec_ext"
2266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2267 break 2
2269 done
2270 done
2273 esac
2275 mysqlconfig=$ac_cv_path_mysqlconfig
2277 if test -n "$mysqlconfig"; then
2278 echo "$as_me:$LINENO: result: $mysqlconfig" >&5
2279 echo "${ECHO_T}$mysqlconfig" >&6
2280 else
2281 echo "$as_me:$LINENO: result: no" >&5
2282 echo "${ECHO_T}no" >&6
2285 if test -z "$mysqlconfig"
2286 then
2287 { { echo "$as_me:$LINENO: error: mysql_config executable not found" >&5
2288 echo "$as_me: error: mysql_config executable not found" >&2;}
2289 { (exit 1); exit 1; }; }
2290 else
2291 echo "$as_me:$LINENO: checking mysql libraries" >&5
2292 echo $ECHO_N "checking mysql libraries... $ECHO_C" >&6
2293 MYSQL_LIBS=`${mysqlconfig} --libs`
2294 echo "$as_me:$LINENO: result: $MYSQL_LIBS" >&5
2295 echo "${ECHO_T}$MYSQL_LIBS" >&6
2296 echo "$as_me:$LINENO: checking mysql includes" >&5
2297 echo $ECHO_N "checking mysql includes... $ECHO_C" >&6
2298 MYSQL_CFLAGS=`${mysqlconfig} --cflags`
2299 echo "$as_me:$LINENO: result: $MYSQL_CFLAGS" >&5
2300 echo "${ECHO_T}$MYSQL_CFLAGS" >&6
2303 # FIXME: Replace `main' with a function in `-lcrypto':
2306 echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
2307 echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6
2308 if test "${ac_cv_lib_crypto_main+set}" = set; then
2309 echo $ECHO_N "(cached) $ECHO_C" >&6
2310 else
2311 ac_check_lib_save_LIBS=$LIBS
2312 LIBS="-lcrypto $LIBS"
2313 cat >conftest.$ac_ext <<_ACEOF
2314 /* confdefs.h. */
2315 _ACEOF
2316 cat confdefs.h >>conftest.$ac_ext
2317 cat >>conftest.$ac_ext <<_ACEOF
2318 /* end confdefs.h. */
2322 main ()
2324 main ();
2326 return 0;
2328 _ACEOF
2329 rm -f conftest.$ac_objext conftest$ac_exeext
2330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2331 (eval $ac_link) 2>conftest.er1
2332 ac_status=$?
2333 grep -v '^ *+' conftest.er1 >conftest.err
2334 rm -f conftest.er1
2335 cat conftest.err >&5
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); } &&
2338 { ac_try='test -z "$ac_c_werror_flag"
2339 || test ! -s conftest.err'
2340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2341 (eval $ac_try) 2>&5
2342 ac_status=$?
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); }; } &&
2345 { ac_try='test -s conftest$ac_exeext'
2346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2347 (eval $ac_try) 2>&5
2348 ac_status=$?
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); }; }; then
2351 ac_cv_lib_crypto_main=yes
2352 else
2353 echo "$as_me: failed program was:" >&5
2354 sed 's/^/| /' conftest.$ac_ext >&5
2356 ac_cv_lib_crypto_main=no
2358 rm -f conftest.err conftest.$ac_objext \
2359 conftest$ac_exeext conftest.$ac_ext
2360 LIBS=$ac_check_lib_save_LIBS
2362 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
2363 echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6
2364 if test $ac_cv_lib_crypto_main = yes; then
2365 cat >>confdefs.h <<_ACEOF
2366 #define HAVE_LIBCRYPTO 1
2367 _ACEOF
2369 LIBS="-lcrypto $LIBS"
2373 # FIXME: Replace `main' with a function in `-lm':
2375 echo "$as_me:$LINENO: checking for main in -lm" >&5
2376 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
2377 if test "${ac_cv_lib_m_main+set}" = set; then
2378 echo $ECHO_N "(cached) $ECHO_C" >&6
2379 else
2380 ac_check_lib_save_LIBS=$LIBS
2381 LIBS="-lm $LIBS"
2382 cat >conftest.$ac_ext <<_ACEOF
2383 /* confdefs.h. */
2384 _ACEOF
2385 cat confdefs.h >>conftest.$ac_ext
2386 cat >>conftest.$ac_ext <<_ACEOF
2387 /* end confdefs.h. */
2391 main ()
2393 main ();
2395 return 0;
2397 _ACEOF
2398 rm -f conftest.$ac_objext conftest$ac_exeext
2399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2400 (eval $ac_link) 2>conftest.er1
2401 ac_status=$?
2402 grep -v '^ *+' conftest.er1 >conftest.err
2403 rm -f conftest.er1
2404 cat conftest.err >&5
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); } &&
2407 { ac_try='test -z "$ac_c_werror_flag"
2408 || test ! -s conftest.err'
2409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410 (eval $ac_try) 2>&5
2411 ac_status=$?
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; } &&
2414 { ac_try='test -s conftest$ac_exeext'
2415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416 (eval $ac_try) 2>&5
2417 ac_status=$?
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; }; then
2420 ac_cv_lib_m_main=yes
2421 else
2422 echo "$as_me: failed program was:" >&5
2423 sed 's/^/| /' conftest.$ac_ext >&5
2425 ac_cv_lib_m_main=no
2427 rm -f conftest.err conftest.$ac_objext \
2428 conftest$ac_exeext conftest.$ac_ext
2429 LIBS=$ac_check_lib_save_LIBS
2431 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
2432 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
2433 if test $ac_cv_lib_m_main = yes; then
2434 cat >>confdefs.h <<_ACEOF
2435 #define HAVE_LIBM 1
2436 _ACEOF
2438 LIBS="-lm $LIBS"
2442 # FIXME: Replace `main' with a function in `-lmysqlclient':
2444 echo "$as_me:$LINENO: checking for main in -lmysqlclient" >&5
2445 echo $ECHO_N "checking for main in -lmysqlclient... $ECHO_C" >&6
2446 if test "${ac_cv_lib_mysqlclient_main+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
2448 else
2449 ac_check_lib_save_LIBS=$LIBS
2450 LIBS="-lmysqlclient $LIBS"
2451 cat >conftest.$ac_ext <<_ACEOF
2452 /* confdefs.h. */
2453 _ACEOF
2454 cat confdefs.h >>conftest.$ac_ext
2455 cat >>conftest.$ac_ext <<_ACEOF
2456 /* end confdefs.h. */
2460 main ()
2462 main ();
2464 return 0;
2466 _ACEOF
2467 rm -f conftest.$ac_objext conftest$ac_exeext
2468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2469 (eval $ac_link) 2>conftest.er1
2470 ac_status=$?
2471 grep -v '^ *+' conftest.er1 >conftest.err
2472 rm -f conftest.er1
2473 cat conftest.err >&5
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); } &&
2476 { ac_try='test -z "$ac_c_werror_flag"
2477 || test ! -s conftest.err'
2478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2479 (eval $ac_try) 2>&5
2480 ac_status=$?
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); }; } &&
2483 { ac_try='test -s conftest$ac_exeext'
2484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485 (eval $ac_try) 2>&5
2486 ac_status=$?
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); }; }; then
2489 ac_cv_lib_mysqlclient_main=yes
2490 else
2491 echo "$as_me: failed program was:" >&5
2492 sed 's/^/| /' conftest.$ac_ext >&5
2494 ac_cv_lib_mysqlclient_main=no
2496 rm -f conftest.err conftest.$ac_objext \
2497 conftest$ac_exeext conftest.$ac_ext
2498 LIBS=$ac_check_lib_save_LIBS
2500 echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_main" >&5
2501 echo "${ECHO_T}$ac_cv_lib_mysqlclient_main" >&6
2502 if test $ac_cv_lib_mysqlclient_main = yes; then
2503 cat >>confdefs.h <<_ACEOF
2504 #define HAVE_LIBMYSQLCLIENT 1
2505 _ACEOF
2507 LIBS="-lmysqlclient $LIBS"
2511 # FIXME: Replace `main' with a function in `-lssl':
2513 echo "$as_me:$LINENO: checking for main in -lssl" >&5
2514 echo $ECHO_N "checking for main in -lssl... $ECHO_C" >&6
2515 if test "${ac_cv_lib_ssl_main+set}" = set; then
2516 echo $ECHO_N "(cached) $ECHO_C" >&6
2517 else
2518 ac_check_lib_save_LIBS=$LIBS
2519 LIBS="-lssl $LIBS"
2520 cat >conftest.$ac_ext <<_ACEOF
2521 /* confdefs.h. */
2522 _ACEOF
2523 cat confdefs.h >>conftest.$ac_ext
2524 cat >>conftest.$ac_ext <<_ACEOF
2525 /* end confdefs.h. */
2529 main ()
2531 main ();
2533 return 0;
2535 _ACEOF
2536 rm -f conftest.$ac_objext conftest$ac_exeext
2537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2538 (eval $ac_link) 2>conftest.er1
2539 ac_status=$?
2540 grep -v '^ *+' conftest.er1 >conftest.err
2541 rm -f conftest.er1
2542 cat conftest.err >&5
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); } &&
2545 { ac_try='test -z "$ac_c_werror_flag"
2546 || test ! -s conftest.err'
2547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2548 (eval $ac_try) 2>&5
2549 ac_status=$?
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); }; } &&
2552 { ac_try='test -s conftest$ac_exeext'
2553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554 (eval $ac_try) 2>&5
2555 ac_status=$?
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }; }; then
2558 ac_cv_lib_ssl_main=yes
2559 else
2560 echo "$as_me: failed program was:" >&5
2561 sed 's/^/| /' conftest.$ac_ext >&5
2563 ac_cv_lib_ssl_main=no
2565 rm -f conftest.err conftest.$ac_objext \
2566 conftest$ac_exeext conftest.$ac_ext
2567 LIBS=$ac_check_lib_save_LIBS
2569 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_main" >&5
2570 echo "${ECHO_T}$ac_cv_lib_ssl_main" >&6
2571 if test $ac_cv_lib_ssl_main = yes; then
2572 cat >>confdefs.h <<_ACEOF
2573 #define HAVE_LIBSSL 1
2574 _ACEOF
2576 LIBS="-lssl $LIBS"
2580 # FIXME: Replace `main' with a function in `-lz':
2582 echo "$as_me:$LINENO: checking for main in -lz" >&5
2583 echo $ECHO_N "checking for main in -lz... $ECHO_C" >&6
2584 if test "${ac_cv_lib_z_main+set}" = set; then
2585 echo $ECHO_N "(cached) $ECHO_C" >&6
2586 else
2587 ac_check_lib_save_LIBS=$LIBS
2588 LIBS="-lz $LIBS"
2589 cat >conftest.$ac_ext <<_ACEOF
2590 /* confdefs.h. */
2591 _ACEOF
2592 cat confdefs.h >>conftest.$ac_ext
2593 cat >>conftest.$ac_ext <<_ACEOF
2594 /* end confdefs.h. */
2598 main ()
2600 main ();
2602 return 0;
2604 _ACEOF
2605 rm -f conftest.$ac_objext conftest$ac_exeext
2606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2607 (eval $ac_link) 2>conftest.er1
2608 ac_status=$?
2609 grep -v '^ *+' conftest.er1 >conftest.err
2610 rm -f conftest.er1
2611 cat conftest.err >&5
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); } &&
2614 { ac_try='test -z "$ac_c_werror_flag"
2615 || test ! -s conftest.err'
2616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617 (eval $ac_try) 2>&5
2618 ac_status=$?
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; } &&
2621 { ac_try='test -s conftest$ac_exeext'
2622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623 (eval $ac_try) 2>&5
2624 ac_status=$?
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; }; then
2627 ac_cv_lib_z_main=yes
2628 else
2629 echo "$as_me: failed program was:" >&5
2630 sed 's/^/| /' conftest.$ac_ext >&5
2632 ac_cv_lib_z_main=no
2634 rm -f conftest.err conftest.$ac_objext \
2635 conftest$ac_exeext conftest.$ac_ext
2636 LIBS=$ac_check_lib_save_LIBS
2638 echo "$as_me:$LINENO: result: $ac_cv_lib_z_main" >&5
2639 echo "${ECHO_T}$ac_cv_lib_z_main" >&6
2640 if test $ac_cv_lib_z_main = yes; then
2641 cat >>confdefs.h <<_ACEOF
2642 #define HAVE_LIBZ 1
2643 _ACEOF
2645 LIBS="-lz $LIBS"
2650 # Checks for header files.
2651 ac_ext=c
2652 ac_cpp='$CPP $CPPFLAGS'
2653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2656 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2657 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2658 # On Suns, sometimes $CPP names a directory.
2659 if test -n "$CPP" && test -d "$CPP"; then
2660 CPP=
2662 if test -z "$CPP"; then
2663 if test "${ac_cv_prog_CPP+set}" = set; then
2664 echo $ECHO_N "(cached) $ECHO_C" >&6
2665 else
2666 # Double quotes because CPP needs to be expanded
2667 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2669 ac_preproc_ok=false
2670 for ac_c_preproc_warn_flag in '' yes
2672 # Use a header file that comes with gcc, so configuring glibc
2673 # with a fresh cross-compiler works.
2674 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2675 # <limits.h> exists even on freestanding compilers.
2676 # On the NeXT, cc -E runs the code through the compiler's parser,
2677 # not just through cpp. "Syntax error" is here to catch this case.
2678 cat >conftest.$ac_ext <<_ACEOF
2679 /* confdefs.h. */
2680 _ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h. */
2684 #ifdef __STDC__
2685 # include <limits.h>
2686 #else
2687 # include <assert.h>
2688 #endif
2689 Syntax error
2690 _ACEOF
2691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2692 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2693 ac_status=$?
2694 grep -v '^ *+' conftest.er1 >conftest.err
2695 rm -f conftest.er1
2696 cat conftest.err >&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); } >/dev/null; then
2699 if test -s conftest.err; then
2700 ac_cpp_err=$ac_c_preproc_warn_flag
2701 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2702 else
2703 ac_cpp_err=
2705 else
2706 ac_cpp_err=yes
2708 if test -z "$ac_cpp_err"; then
2710 else
2711 echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.$ac_ext >&5
2714 # Broken: fails on valid input.
2715 continue
2717 rm -f conftest.err conftest.$ac_ext
2719 # OK, works on sane cases. Now check whether non-existent headers
2720 # can be detected and how.
2721 cat >conftest.$ac_ext <<_ACEOF
2722 /* confdefs.h. */
2723 _ACEOF
2724 cat confdefs.h >>conftest.$ac_ext
2725 cat >>conftest.$ac_ext <<_ACEOF
2726 /* end confdefs.h. */
2727 #include <ac_nonexistent.h>
2728 _ACEOF
2729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2731 ac_status=$?
2732 grep -v '^ *+' conftest.er1 >conftest.err
2733 rm -f conftest.er1
2734 cat conftest.err >&5
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); } >/dev/null; then
2737 if test -s conftest.err; then
2738 ac_cpp_err=$ac_c_preproc_warn_flag
2739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2740 else
2741 ac_cpp_err=
2743 else
2744 ac_cpp_err=yes
2746 if test -z "$ac_cpp_err"; then
2747 # Broken: success on invalid input.
2748 continue
2749 else
2750 echo "$as_me: failed program was:" >&5
2751 sed 's/^/| /' conftest.$ac_ext >&5
2753 # Passes both tests.
2754 ac_preproc_ok=:
2755 break
2757 rm -f conftest.err conftest.$ac_ext
2759 done
2760 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2761 rm -f conftest.err conftest.$ac_ext
2762 if $ac_preproc_ok; then
2763 break
2766 done
2767 ac_cv_prog_CPP=$CPP
2770 CPP=$ac_cv_prog_CPP
2771 else
2772 ac_cv_prog_CPP=$CPP
2774 echo "$as_me:$LINENO: result: $CPP" >&5
2775 echo "${ECHO_T}$CPP" >&6
2776 ac_preproc_ok=false
2777 for ac_c_preproc_warn_flag in '' yes
2779 # Use a header file that comes with gcc, so configuring glibc
2780 # with a fresh cross-compiler works.
2781 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2782 # <limits.h> exists even on freestanding compilers.
2783 # On the NeXT, cc -E runs the code through the compiler's parser,
2784 # not just through cpp. "Syntax error" is here to catch this case.
2785 cat >conftest.$ac_ext <<_ACEOF
2786 /* confdefs.h. */
2787 _ACEOF
2788 cat confdefs.h >>conftest.$ac_ext
2789 cat >>conftest.$ac_ext <<_ACEOF
2790 /* end confdefs.h. */
2791 #ifdef __STDC__
2792 # include <limits.h>
2793 #else
2794 # include <assert.h>
2795 #endif
2796 Syntax error
2797 _ACEOF
2798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2800 ac_status=$?
2801 grep -v '^ *+' conftest.er1 >conftest.err
2802 rm -f conftest.er1
2803 cat conftest.err >&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); } >/dev/null; then
2806 if test -s conftest.err; then
2807 ac_cpp_err=$ac_c_preproc_warn_flag
2808 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2809 else
2810 ac_cpp_err=
2812 else
2813 ac_cpp_err=yes
2815 if test -z "$ac_cpp_err"; then
2817 else
2818 echo "$as_me: failed program was:" >&5
2819 sed 's/^/| /' conftest.$ac_ext >&5
2821 # Broken: fails on valid input.
2822 continue
2824 rm -f conftest.err conftest.$ac_ext
2826 # OK, works on sane cases. Now check whether non-existent headers
2827 # can be detected and how.
2828 cat >conftest.$ac_ext <<_ACEOF
2829 /* confdefs.h. */
2830 _ACEOF
2831 cat confdefs.h >>conftest.$ac_ext
2832 cat >>conftest.$ac_ext <<_ACEOF
2833 /* end confdefs.h. */
2834 #include <ac_nonexistent.h>
2835 _ACEOF
2836 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2837 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2838 ac_status=$?
2839 grep -v '^ *+' conftest.er1 >conftest.err
2840 rm -f conftest.er1
2841 cat conftest.err >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } >/dev/null; then
2844 if test -s conftest.err; then
2845 ac_cpp_err=$ac_c_preproc_warn_flag
2846 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2847 else
2848 ac_cpp_err=
2850 else
2851 ac_cpp_err=yes
2853 if test -z "$ac_cpp_err"; then
2854 # Broken: success on invalid input.
2855 continue
2856 else
2857 echo "$as_me: failed program was:" >&5
2858 sed 's/^/| /' conftest.$ac_ext >&5
2860 # Passes both tests.
2861 ac_preproc_ok=:
2862 break
2864 rm -f conftest.err conftest.$ac_ext
2866 done
2867 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2868 rm -f conftest.err conftest.$ac_ext
2869 if $ac_preproc_ok; then
2871 else
2872 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2873 See \`config.log' for more details." >&5
2874 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2875 See \`config.log' for more details." >&2;}
2876 { (exit 1); exit 1; }; }
2879 ac_ext=c
2880 ac_cpp='$CPP $CPPFLAGS'
2881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2886 echo "$as_me:$LINENO: checking for egrep" >&5
2887 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2888 if test "${ac_cv_prog_egrep+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2890 else
2891 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2892 then ac_cv_prog_egrep='grep -E'
2893 else ac_cv_prog_egrep='egrep'
2896 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2897 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2898 EGREP=$ac_cv_prog_egrep
2901 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2902 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2903 if test "${ac_cv_header_stdc+set}" = set; then
2904 echo $ECHO_N "(cached) $ECHO_C" >&6
2905 else
2906 cat >conftest.$ac_ext <<_ACEOF
2907 /* confdefs.h. */
2908 _ACEOF
2909 cat confdefs.h >>conftest.$ac_ext
2910 cat >>conftest.$ac_ext <<_ACEOF
2911 /* end confdefs.h. */
2912 #include <stdlib.h>
2913 #include <stdarg.h>
2914 #include <string.h>
2915 #include <float.h>
2918 main ()
2922 return 0;
2924 _ACEOF
2925 rm -f conftest.$ac_objext
2926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2927 (eval $ac_compile) 2>conftest.er1
2928 ac_status=$?
2929 grep -v '^ *+' conftest.er1 >conftest.err
2930 rm -f conftest.er1
2931 cat conftest.err >&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); } &&
2934 { ac_try='test -z "$ac_c_werror_flag"
2935 || test ! -s conftest.err'
2936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2937 (eval $ac_try) 2>&5
2938 ac_status=$?
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); }; } &&
2941 { ac_try='test -s conftest.$ac_objext'
2942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2943 (eval $ac_try) 2>&5
2944 ac_status=$?
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }; }; then
2947 ac_cv_header_stdc=yes
2948 else
2949 echo "$as_me: failed program was:" >&5
2950 sed 's/^/| /' conftest.$ac_ext >&5
2952 ac_cv_header_stdc=no
2954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2956 if test $ac_cv_header_stdc = yes; then
2957 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2958 cat >conftest.$ac_ext <<_ACEOF
2959 /* confdefs.h. */
2960 _ACEOF
2961 cat confdefs.h >>conftest.$ac_ext
2962 cat >>conftest.$ac_ext <<_ACEOF
2963 /* end confdefs.h. */
2964 #include <string.h>
2966 _ACEOF
2967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2968 $EGREP "memchr" >/dev/null 2>&1; then
2970 else
2971 ac_cv_header_stdc=no
2973 rm -f conftest*
2977 if test $ac_cv_header_stdc = yes; then
2978 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2979 cat >conftest.$ac_ext <<_ACEOF
2980 /* confdefs.h. */
2981 _ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h. */
2985 #include <stdlib.h>
2987 _ACEOF
2988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2989 $EGREP "free" >/dev/null 2>&1; then
2991 else
2992 ac_cv_header_stdc=no
2994 rm -f conftest*
2998 if test $ac_cv_header_stdc = yes; then
2999 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3000 if test "$cross_compiling" = yes; then
3002 else
3003 cat >conftest.$ac_ext <<_ACEOF
3004 /* confdefs.h. */
3005 _ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h. */
3009 #include <ctype.h>
3010 #if ((' ' & 0x0FF) == 0x020)
3011 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3012 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3013 #else
3014 # define ISLOWER(c) \
3015 (('a' <= (c) && (c) <= 'i') \
3016 || ('j' <= (c) && (c) <= 'r') \
3017 || ('s' <= (c) && (c) <= 'z'))
3018 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3019 #endif
3021 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3023 main ()
3025 int i;
3026 for (i = 0; i < 256; i++)
3027 if (XOR (islower (i), ISLOWER (i))
3028 || toupper (i) != TOUPPER (i))
3029 exit(2);
3030 exit (0);
3032 _ACEOF
3033 rm -f conftest$ac_exeext
3034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3035 (eval $ac_link) 2>&5
3036 ac_status=$?
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3040 (eval $ac_try) 2>&5
3041 ac_status=$?
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; }; then
3045 else
3046 echo "$as_me: program exited with status $ac_status" >&5
3047 echo "$as_me: failed program was:" >&5
3048 sed 's/^/| /' conftest.$ac_ext >&5
3050 ( exit $ac_status )
3051 ac_cv_header_stdc=no
3053 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3057 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3058 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3059 if test $ac_cv_header_stdc = yes; then
3061 cat >>confdefs.h <<\_ACEOF
3062 #define STDC_HEADERS 1
3063 _ACEOF
3067 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3077 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3078 inttypes.h stdint.h unistd.h
3080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3081 echo "$as_me:$LINENO: checking for $ac_header" >&5
3082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
3085 else
3086 cat >conftest.$ac_ext <<_ACEOF
3087 /* confdefs.h. */
3088 _ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h. */
3092 $ac_includes_default
3094 #include <$ac_header>
3095 _ACEOF
3096 rm -f conftest.$ac_objext
3097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3098 (eval $ac_compile) 2>conftest.er1
3099 ac_status=$?
3100 grep -v '^ *+' conftest.er1 >conftest.err
3101 rm -f conftest.er1
3102 cat conftest.err >&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); } &&
3105 { ac_try='test -z "$ac_c_werror_flag"
3106 || test ! -s conftest.err'
3107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3108 (eval $ac_try) 2>&5
3109 ac_status=$?
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); }; } &&
3112 { ac_try='test -s conftest.$ac_objext'
3113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3114 (eval $ac_try) 2>&5
3115 ac_status=$?
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); }; }; then
3118 eval "$as_ac_Header=yes"
3119 else
3120 echo "$as_me: failed program was:" >&5
3121 sed 's/^/| /' conftest.$ac_ext >&5
3123 eval "$as_ac_Header=no"
3125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3129 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3130 cat >>confdefs.h <<_ACEOF
3131 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3132 _ACEOF
3136 done
3140 for ac_header in stdlib.h
3142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3144 echo "$as_me:$LINENO: checking for $ac_header" >&5
3145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3147 echo $ECHO_N "(cached) $ECHO_C" >&6
3149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3151 else
3152 # Is the header compilable?
3153 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3154 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3155 cat >conftest.$ac_ext <<_ACEOF
3156 /* confdefs.h. */
3157 _ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h. */
3161 $ac_includes_default
3162 #include <$ac_header>
3163 _ACEOF
3164 rm -f conftest.$ac_objext
3165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3166 (eval $ac_compile) 2>conftest.er1
3167 ac_status=$?
3168 grep -v '^ *+' conftest.er1 >conftest.err
3169 rm -f conftest.er1
3170 cat conftest.err >&5
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); } &&
3173 { ac_try='test -z "$ac_c_werror_flag"
3174 || test ! -s conftest.err'
3175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3176 (eval $ac_try) 2>&5
3177 ac_status=$?
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }; } &&
3180 { ac_try='test -s conftest.$ac_objext'
3181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3182 (eval $ac_try) 2>&5
3183 ac_status=$?
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }; }; then
3186 ac_header_compiler=yes
3187 else
3188 echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3191 ac_header_compiler=no
3193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3194 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3195 echo "${ECHO_T}$ac_header_compiler" >&6
3197 # Is the header present?
3198 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3199 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3200 cat >conftest.$ac_ext <<_ACEOF
3201 /* confdefs.h. */
3202 _ACEOF
3203 cat confdefs.h >>conftest.$ac_ext
3204 cat >>conftest.$ac_ext <<_ACEOF
3205 /* end confdefs.h. */
3206 #include <$ac_header>
3207 _ACEOF
3208 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3209 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3210 ac_status=$?
3211 grep -v '^ *+' conftest.er1 >conftest.err
3212 rm -f conftest.er1
3213 cat conftest.err >&5
3214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215 (exit $ac_status); } >/dev/null; then
3216 if test -s conftest.err; then
3217 ac_cpp_err=$ac_c_preproc_warn_flag
3218 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3219 else
3220 ac_cpp_err=
3222 else
3223 ac_cpp_err=yes
3225 if test -z "$ac_cpp_err"; then
3226 ac_header_preproc=yes
3227 else
3228 echo "$as_me: failed program was:" >&5
3229 sed 's/^/| /' conftest.$ac_ext >&5
3231 ac_header_preproc=no
3233 rm -f conftest.err conftest.$ac_ext
3234 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3235 echo "${ECHO_T}$ac_header_preproc" >&6
3237 # So? What about this header?
3238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3239 yes:no: )
3240 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3241 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3243 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3244 ac_header_preproc=yes
3246 no:yes:* )
3247 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3248 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3249 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3250 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3251 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3252 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3253 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3254 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3257 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3258 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3260 cat <<\_ASBOX
3261 ## ------------------------------ ##
3262 ## Report this to sjk@ankeborg.nu ##
3263 ## ------------------------------ ##
3264 _ASBOX
3266 sed "s/^/$as_me: WARNING: /" >&2
3268 esac
3269 echo "$as_me:$LINENO: checking for $ac_header" >&5
3270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3272 echo $ECHO_N "(cached) $ECHO_C" >&6
3273 else
3274 eval "$as_ac_Header=\$ac_header_preproc"
3276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3277 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3281 cat >>confdefs.h <<_ACEOF
3282 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3283 _ACEOF
3287 done
3290 # Checks for typedefs, structures, and compiler characteristics.
3291 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3292 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3293 if test "${ac_cv_c_const+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3295 else
3296 cat >conftest.$ac_ext <<_ACEOF
3297 /* confdefs.h. */
3298 _ACEOF
3299 cat confdefs.h >>conftest.$ac_ext
3300 cat >>conftest.$ac_ext <<_ACEOF
3301 /* end confdefs.h. */
3304 main ()
3306 /* FIXME: Include the comments suggested by Paul. */
3307 #ifndef __cplusplus
3308 /* Ultrix mips cc rejects this. */
3309 typedef int charset[2];
3310 const charset x;
3311 /* SunOS 4.1.1 cc rejects this. */
3312 char const *const *ccp;
3313 char **p;
3314 /* NEC SVR4.0.2 mips cc rejects this. */
3315 struct point {int x, y;};
3316 static struct point const zero = {0,0};
3317 /* AIX XL C 1.02.0.0 rejects this.
3318 It does not let you subtract one const X* pointer from another in
3319 an arm of an if-expression whose if-part is not a constant
3320 expression */
3321 const char *g = "string";
3322 ccp = &g + (g ? g-g : 0);
3323 /* HPUX 7.0 cc rejects these. */
3324 ++ccp;
3325 p = (char**) ccp;
3326 ccp = (char const *const *) p;
3327 { /* SCO 3.2v4 cc rejects this. */
3328 char *t;
3329 char const *s = 0 ? (char *) 0 : (char const *) 0;
3331 *t++ = 0;
3333 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3334 int x[] = {25, 17};
3335 const int *foo = &x[0];
3336 ++foo;
3338 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3339 typedef const int *iptr;
3340 iptr p = 0;
3341 ++p;
3343 { /* AIX XL C 1.02.0.0 rejects this saying
3344 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3345 struct s { int j; const int *ap[3]; };
3346 struct s *b; b->j = 5;
3348 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3349 const int foo = 10;
3351 #endif
3354 return 0;
3356 _ACEOF
3357 rm -f conftest.$ac_objext
3358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3359 (eval $ac_compile) 2>conftest.er1
3360 ac_status=$?
3361 grep -v '^ *+' conftest.er1 >conftest.err
3362 rm -f conftest.er1
3363 cat conftest.err >&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } &&
3366 { ac_try='test -z "$ac_c_werror_flag"
3367 || test ! -s conftest.err'
3368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3369 (eval $ac_try) 2>&5
3370 ac_status=$?
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); }; } &&
3373 { ac_try='test -s conftest.$ac_objext'
3374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375 (eval $ac_try) 2>&5
3376 ac_status=$?
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; }; then
3379 ac_cv_c_const=yes
3380 else
3381 echo "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.$ac_ext >&5
3384 ac_cv_c_const=no
3386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3388 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3389 echo "${ECHO_T}$ac_cv_c_const" >&6
3390 if test $ac_cv_c_const = no; then
3392 cat >>confdefs.h <<\_ACEOF
3393 #define const
3394 _ACEOF
3398 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
3399 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
3400 if test "${ac_cv_struct_tm+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 else
3403 cat >conftest.$ac_ext <<_ACEOF
3404 /* confdefs.h. */
3405 _ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h. */
3409 #include <sys/types.h>
3410 #include <time.h>
3413 main ()
3415 struct tm *tp; tp->tm_sec;
3417 return 0;
3419 _ACEOF
3420 rm -f conftest.$ac_objext
3421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3422 (eval $ac_compile) 2>conftest.er1
3423 ac_status=$?
3424 grep -v '^ *+' conftest.er1 >conftest.err
3425 rm -f conftest.er1
3426 cat conftest.err >&5
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); } &&
3429 { ac_try='test -z "$ac_c_werror_flag"
3430 || test ! -s conftest.err'
3431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3432 (eval $ac_try) 2>&5
3433 ac_status=$?
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); }; } &&
3436 { ac_try='test -s conftest.$ac_objext'
3437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438 (eval $ac_try) 2>&5
3439 ac_status=$?
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; }; then
3442 ac_cv_struct_tm=time.h
3443 else
3444 echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3447 ac_cv_struct_tm=sys/time.h
3449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3451 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
3452 echo "${ECHO_T}$ac_cv_struct_tm" >&6
3453 if test $ac_cv_struct_tm = sys/time.h; then
3455 cat >>confdefs.h <<\_ACEOF
3456 #define TM_IN_SYS_TIME 1
3457 _ACEOF
3462 # Checks for library functions.
3464 for ac_header in stdlib.h
3466 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3468 echo "$as_me:$LINENO: checking for $ac_header" >&5
3469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
3473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3475 else
3476 # Is the header compilable?
3477 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3478 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3479 cat >conftest.$ac_ext <<_ACEOF
3480 /* confdefs.h. */
3481 _ACEOF
3482 cat confdefs.h >>conftest.$ac_ext
3483 cat >>conftest.$ac_ext <<_ACEOF
3484 /* end confdefs.h. */
3485 $ac_includes_default
3486 #include <$ac_header>
3487 _ACEOF
3488 rm -f conftest.$ac_objext
3489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3490 (eval $ac_compile) 2>conftest.er1
3491 ac_status=$?
3492 grep -v '^ *+' conftest.er1 >conftest.err
3493 rm -f conftest.er1
3494 cat conftest.err >&5
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); } &&
3497 { ac_try='test -z "$ac_c_werror_flag"
3498 || test ! -s conftest.err'
3499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3500 (eval $ac_try) 2>&5
3501 ac_status=$?
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); }; } &&
3504 { ac_try='test -s conftest.$ac_objext'
3505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3506 (eval $ac_try) 2>&5
3507 ac_status=$?
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; }; then
3510 ac_header_compiler=yes
3511 else
3512 echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.$ac_ext >&5
3515 ac_header_compiler=no
3517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3518 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3519 echo "${ECHO_T}$ac_header_compiler" >&6
3521 # Is the header present?
3522 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3524 cat >conftest.$ac_ext <<_ACEOF
3525 /* confdefs.h. */
3526 _ACEOF
3527 cat confdefs.h >>conftest.$ac_ext
3528 cat >>conftest.$ac_ext <<_ACEOF
3529 /* end confdefs.h. */
3530 #include <$ac_header>
3531 _ACEOF
3532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3534 ac_status=$?
3535 grep -v '^ *+' conftest.er1 >conftest.err
3536 rm -f conftest.er1
3537 cat conftest.err >&5
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); } >/dev/null; then
3540 if test -s conftest.err; then
3541 ac_cpp_err=$ac_c_preproc_warn_flag
3542 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3543 else
3544 ac_cpp_err=
3546 else
3547 ac_cpp_err=yes
3549 if test -z "$ac_cpp_err"; then
3550 ac_header_preproc=yes
3551 else
3552 echo "$as_me: failed program was:" >&5
3553 sed 's/^/| /' conftest.$ac_ext >&5
3555 ac_header_preproc=no
3557 rm -f conftest.err conftest.$ac_ext
3558 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3559 echo "${ECHO_T}$ac_header_preproc" >&6
3561 # So? What about this header?
3562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3563 yes:no: )
3564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3568 ac_header_preproc=yes
3570 no:yes:* )
3571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3574 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3578 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3584 cat <<\_ASBOX
3585 ## ------------------------------ ##
3586 ## Report this to sjk@ankeborg.nu ##
3587 ## ------------------------------ ##
3588 _ASBOX
3590 sed "s/^/$as_me: WARNING: /" >&2
3592 esac
3593 echo "$as_me:$LINENO: checking for $ac_header" >&5
3594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3596 echo $ECHO_N "(cached) $ECHO_C" >&6
3597 else
3598 eval "$as_ac_Header=\$ac_header_preproc"
3600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3605 cat >>confdefs.h <<_ACEOF
3606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3607 _ACEOF
3611 done
3613 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
3614 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
3615 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
3616 echo $ECHO_N "(cached) $ECHO_C" >&6
3617 else
3618 if test "$cross_compiling" = yes; then
3619 ac_cv_func_malloc_0_nonnull=no
3620 else
3621 cat >conftest.$ac_ext <<_ACEOF
3622 /* confdefs.h. */
3623 _ACEOF
3624 cat confdefs.h >>conftest.$ac_ext
3625 cat >>conftest.$ac_ext <<_ACEOF
3626 /* end confdefs.h. */
3627 #if STDC_HEADERS || HAVE_STDLIB_H
3628 # include <stdlib.h>
3629 #else
3630 char *malloc ();
3631 #endif
3634 main ()
3636 exit (malloc (0) ? 0 : 1);
3638 return 0;
3640 _ACEOF
3641 rm -f conftest$ac_exeext
3642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3643 (eval $ac_link) 2>&5
3644 ac_status=$?
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3648 (eval $ac_try) 2>&5
3649 ac_status=$?
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); }; }; then
3652 ac_cv_func_malloc_0_nonnull=yes
3653 else
3654 echo "$as_me: program exited with status $ac_status" >&5
3655 echo "$as_me: failed program was:" >&5
3656 sed 's/^/| /' conftest.$ac_ext >&5
3658 ( exit $ac_status )
3659 ac_cv_func_malloc_0_nonnull=no
3661 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3664 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
3665 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
3666 if test $ac_cv_func_malloc_0_nonnull = yes; then
3668 cat >>confdefs.h <<\_ACEOF
3669 #define HAVE_MALLOC 1
3670 _ACEOF
3672 else
3673 cat >>confdefs.h <<\_ACEOF
3674 #define HAVE_MALLOC 0
3675 _ACEOF
3677 case $LIBOBJS in
3678 "malloc.$ac_objext" | \
3679 *" malloc.$ac_objext" | \
3680 "malloc.$ac_objext "* | \
3681 *" malloc.$ac_objext "* ) ;;
3682 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
3683 esac
3686 cat >>confdefs.h <<\_ACEOF
3687 #define malloc rpl_malloc
3688 _ACEOF
3695 for ac_func in strftime
3697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3698 echo "$as_me:$LINENO: checking for $ac_func" >&5
3699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3700 if eval "test \"\${$as_ac_var+set}\" = set"; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
3702 else
3703 cat >conftest.$ac_ext <<_ACEOF
3704 /* confdefs.h. */
3705 _ACEOF
3706 cat confdefs.h >>conftest.$ac_ext
3707 cat >>conftest.$ac_ext <<_ACEOF
3708 /* end confdefs.h. */
3709 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3711 #define $ac_func innocuous_$ac_func
3713 /* System header to define __stub macros and hopefully few prototypes,
3714 which can conflict with char $ac_func (); below.
3715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3716 <limits.h> exists even on freestanding compilers. */
3718 #ifdef __STDC__
3719 # include <limits.h>
3720 #else
3721 # include <assert.h>
3722 #endif
3724 #undef $ac_func
3726 /* Override any gcc2 internal prototype to avoid an error. */
3727 #ifdef __cplusplus
3728 extern "C"
3730 #endif
3731 /* We use char because int might match the return type of a gcc2
3732 builtin and then its argument prototype would still apply. */
3733 char $ac_func ();
3734 /* The GNU C library defines this for functions which it implements
3735 to always fail with ENOSYS. Some functions are actually named
3736 something starting with __ and the normal name is an alias. */
3737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3738 choke me
3739 #else
3740 char (*f) () = $ac_func;
3741 #endif
3742 #ifdef __cplusplus
3744 #endif
3747 main ()
3749 return f != $ac_func;
3751 return 0;
3753 _ACEOF
3754 rm -f conftest.$ac_objext conftest$ac_exeext
3755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3756 (eval $ac_link) 2>conftest.er1
3757 ac_status=$?
3758 grep -v '^ *+' conftest.er1 >conftest.err
3759 rm -f conftest.er1
3760 cat conftest.err >&5
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); } &&
3763 { ac_try='test -z "$ac_c_werror_flag"
3764 || test ! -s conftest.err'
3765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3766 (eval $ac_try) 2>&5
3767 ac_status=$?
3768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); }; } &&
3770 { ac_try='test -s conftest$ac_exeext'
3771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3772 (eval $ac_try) 2>&5
3773 ac_status=$?
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); }; }; then
3776 eval "$as_ac_var=yes"
3777 else
3778 echo "$as_me: failed program was:" >&5
3779 sed 's/^/| /' conftest.$ac_ext >&5
3781 eval "$as_ac_var=no"
3783 rm -f conftest.err conftest.$ac_objext \
3784 conftest$ac_exeext conftest.$ac_ext
3786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3787 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3788 if test `eval echo '${'$as_ac_var'}'` = yes; then
3789 cat >>confdefs.h <<_ACEOF
3790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3791 _ACEOF
3793 else
3794 # strftime is in -lintl on SCO UNIX.
3795 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
3796 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
3797 if test "${ac_cv_lib_intl_strftime+set}" = set; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3799 else
3800 ac_check_lib_save_LIBS=$LIBS
3801 LIBS="-lintl $LIBS"
3802 cat >conftest.$ac_ext <<_ACEOF
3803 /* confdefs.h. */
3804 _ACEOF
3805 cat confdefs.h >>conftest.$ac_ext
3806 cat >>conftest.$ac_ext <<_ACEOF
3807 /* end confdefs.h. */
3809 /* Override any gcc2 internal prototype to avoid an error. */
3810 #ifdef __cplusplus
3811 extern "C"
3812 #endif
3813 /* We use char because int might match the return type of a gcc2
3814 builtin and then its argument prototype would still apply. */
3815 char strftime ();
3817 main ()
3819 strftime ();
3821 return 0;
3823 _ACEOF
3824 rm -f conftest.$ac_objext conftest$ac_exeext
3825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3826 (eval $ac_link) 2>conftest.er1
3827 ac_status=$?
3828 grep -v '^ *+' conftest.er1 >conftest.err
3829 rm -f conftest.er1
3830 cat conftest.err >&5
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); } &&
3833 { ac_try='test -z "$ac_c_werror_flag"
3834 || test ! -s conftest.err'
3835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3836 (eval $ac_try) 2>&5
3837 ac_status=$?
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); }; } &&
3840 { ac_try='test -s conftest$ac_exeext'
3841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842 (eval $ac_try) 2>&5
3843 ac_status=$?
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); }; }; then
3846 ac_cv_lib_intl_strftime=yes
3847 else
3848 echo "$as_me: failed program was:" >&5
3849 sed 's/^/| /' conftest.$ac_ext >&5
3851 ac_cv_lib_intl_strftime=no
3853 rm -f conftest.err conftest.$ac_objext \
3854 conftest$ac_exeext conftest.$ac_ext
3855 LIBS=$ac_check_lib_save_LIBS
3857 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
3858 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
3859 if test $ac_cv_lib_intl_strftime = yes; then
3860 cat >>confdefs.h <<\_ACEOF
3861 #define HAVE_STRFTIME 1
3862 _ACEOF
3864 LIBS="-lintl $LIBS"
3868 done
3871 for ac_func in strchr
3873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3874 echo "$as_me:$LINENO: checking for $ac_func" >&5
3875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3876 if eval "test \"\${$as_ac_var+set}\" = set"; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3878 else
3879 cat >conftest.$ac_ext <<_ACEOF
3880 /* confdefs.h. */
3881 _ACEOF
3882 cat confdefs.h >>conftest.$ac_ext
3883 cat >>conftest.$ac_ext <<_ACEOF
3884 /* end confdefs.h. */
3885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3887 #define $ac_func innocuous_$ac_func
3889 /* System header to define __stub macros and hopefully few prototypes,
3890 which can conflict with char $ac_func (); below.
3891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3892 <limits.h> exists even on freestanding compilers. */
3894 #ifdef __STDC__
3895 # include <limits.h>
3896 #else
3897 # include <assert.h>
3898 #endif
3900 #undef $ac_func
3902 /* Override any gcc2 internal prototype to avoid an error. */
3903 #ifdef __cplusplus
3904 extern "C"
3906 #endif
3907 /* We use char because int might match the return type of a gcc2
3908 builtin and then its argument prototype would still apply. */
3909 char $ac_func ();
3910 /* The GNU C library defines this for functions which it implements
3911 to always fail with ENOSYS. Some functions are actually named
3912 something starting with __ and the normal name is an alias. */
3913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3914 choke me
3915 #else
3916 char (*f) () = $ac_func;
3917 #endif
3918 #ifdef __cplusplus
3920 #endif
3923 main ()
3925 return f != $ac_func;
3927 return 0;
3929 _ACEOF
3930 rm -f conftest.$ac_objext conftest$ac_exeext
3931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3932 (eval $ac_link) 2>conftest.er1
3933 ac_status=$?
3934 grep -v '^ *+' conftest.er1 >conftest.err
3935 rm -f conftest.er1
3936 cat conftest.err >&5
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); } &&
3939 { ac_try='test -z "$ac_c_werror_flag"
3940 || test ! -s conftest.err'
3941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3942 (eval $ac_try) 2>&5
3943 ac_status=$?
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); }; } &&
3946 { ac_try='test -s conftest$ac_exeext'
3947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3948 (eval $ac_try) 2>&5
3949 ac_status=$?
3950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); }; }; then
3952 eval "$as_ac_var=yes"
3953 else
3954 echo "$as_me: failed program was:" >&5
3955 sed 's/^/| /' conftest.$ac_ext >&5
3957 eval "$as_ac_var=no"
3959 rm -f conftest.err conftest.$ac_objext \
3960 conftest$ac_exeext conftest.$ac_ext
3962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3963 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3964 if test `eval echo '${'$as_ac_var'}'` = yes; then
3965 cat >>confdefs.h <<_ACEOF
3966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3967 _ACEOF
3970 done
3973 ac_config_files="$ac_config_files Makefile"
3975 cat >confcache <<\_ACEOF
3976 # This file is a shell script that caches the results of configure
3977 # tests run on this system so they can be shared between configure
3978 # scripts and configure runs, see configure's option --config-cache.
3979 # It is not useful on other systems. If it contains results you don't
3980 # want to keep, you may remove or edit it.
3982 # config.status only pays attention to the cache file if you give it
3983 # the --recheck option to rerun configure.
3985 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3986 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3987 # following values.
3989 _ACEOF
3991 # The following way of writing the cache mishandles newlines in values,
3992 # but we know of no workaround that is simple, portable, and efficient.
3993 # So, don't put newlines in cache variables' values.
3994 # Ultrix sh set writes to stderr and can't be redirected directly,
3995 # and sets the high bit in the cache file unless we assign to the vars.
3997 (set) 2>&1 |
3998 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3999 *ac_space=\ *)
4000 # `set' does not quote correctly, so add quotes (double-quote
4001 # substitution turns \\\\ into \\, and sed turns \\ into \).
4002 sed -n \
4003 "s/'/'\\\\''/g;
4004 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4007 # `set' quotes correctly as required by POSIX, so do not add quotes.
4008 sed -n \
4009 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4011 esac;
4013 sed '
4014 t clear
4015 : clear
4016 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4017 t end
4018 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4019 : end' >>confcache
4020 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4021 if test -w $cache_file; then
4022 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4023 cat confcache >$cache_file
4024 else
4025 echo "not updating unwritable cache $cache_file"
4028 rm -f confcache
4030 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4031 # Let make expand exec_prefix.
4032 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4034 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4035 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4036 # trailing colons and then remove the whole line if VPATH becomes empty
4037 # (actually we leave an empty line to preserve line numbers).
4038 if test "x$srcdir" = x.; then
4039 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4040 s/:*\$(srcdir):*/:/;
4041 s/:*\${srcdir}:*/:/;
4042 s/:*@srcdir@:*/:/;
4043 s/^\([^=]*=[ ]*\):*/\1/;
4044 s/:*$//;
4045 s/^[^=]*=[ ]*$//;
4049 DEFS=-DHAVE_CONFIG_H
4051 ac_libobjs=
4052 ac_ltlibobjs=
4053 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4054 # 1. Remove the extension, and $U if already installed.
4055 ac_i=`echo "$ac_i" |
4056 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4057 # 2. Add them.
4058 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4059 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4060 done
4061 LIBOBJS=$ac_libobjs
4063 LTLIBOBJS=$ac_ltlibobjs
4067 : ${CONFIG_STATUS=./config.status}
4068 ac_clean_files_save=$ac_clean_files
4069 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4070 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4071 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4072 cat >$CONFIG_STATUS <<_ACEOF
4073 #! $SHELL
4074 # Generated by $as_me.
4075 # Run this file to recreate the current configuration.
4076 # Compiler output produced by configure, useful for debugging
4077 # configure, is in config.log if it exists.
4079 debug=false
4080 ac_cs_recheck=false
4081 ac_cs_silent=false
4082 SHELL=\${CONFIG_SHELL-$SHELL}
4083 _ACEOF
4085 cat >>$CONFIG_STATUS <<\_ACEOF
4086 ## --------------------- ##
4087 ## M4sh Initialization. ##
4088 ## --------------------- ##
4090 # Be Bourne compatible
4091 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4092 emulate sh
4093 NULLCMD=:
4094 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4095 # is contrary to our usage. Disable this feature.
4096 alias -g '${1+"$@"}'='"$@"'
4097 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4098 set -o posix
4100 DUALCASE=1; export DUALCASE # for MKS sh
4102 # Support unset when possible.
4103 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4104 as_unset=unset
4105 else
4106 as_unset=false
4110 # Work around bugs in pre-3.0 UWIN ksh.
4111 $as_unset ENV MAIL MAILPATH
4112 PS1='$ '
4113 PS2='> '
4114 PS4='+ '
4116 # NLS nuisances.
4117 for as_var in \
4118 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4119 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4120 LC_TELEPHONE LC_TIME
4122 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4123 eval $as_var=C; export $as_var
4124 else
4125 $as_unset $as_var
4127 done
4129 # Required to use basename.
4130 if expr a : '\(a\)' >/dev/null 2>&1; then
4131 as_expr=expr
4132 else
4133 as_expr=false
4136 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4137 as_basename=basename
4138 else
4139 as_basename=false
4143 # Name of the executable.
4144 as_me=`$as_basename "$0" ||
4145 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4146 X"$0" : 'X\(//\)$' \| \
4147 X"$0" : 'X\(/\)$' \| \
4148 . : '\(.\)' 2>/dev/null ||
4149 echo X/"$0" |
4150 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4151 /^X\/\(\/\/\)$/{ s//\1/; q; }
4152 /^X\/\(\/\).*/{ s//\1/; q; }
4153 s/.*/./; q'`
4156 # PATH needs CR, and LINENO needs CR and PATH.
4157 # Avoid depending upon Character Ranges.
4158 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4159 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4160 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4161 as_cr_digits='0123456789'
4162 as_cr_alnum=$as_cr_Letters$as_cr_digits
4164 # The user is always right.
4165 if test "${PATH_SEPARATOR+set}" != set; then
4166 echo "#! /bin/sh" >conf$$.sh
4167 echo "exit 0" >>conf$$.sh
4168 chmod +x conf$$.sh
4169 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4170 PATH_SEPARATOR=';'
4171 else
4172 PATH_SEPARATOR=:
4174 rm -f conf$$.sh
4178 as_lineno_1=$LINENO
4179 as_lineno_2=$LINENO
4180 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4181 test "x$as_lineno_1" != "x$as_lineno_2" &&
4182 test "x$as_lineno_3" = "x$as_lineno_2" || {
4183 # Find who we are. Look in the path if we contain no path at all
4184 # relative or not.
4185 case $0 in
4186 *[\\/]* ) as_myself=$0 ;;
4187 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188 for as_dir in $PATH
4190 IFS=$as_save_IFS
4191 test -z "$as_dir" && as_dir=.
4192 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4193 done
4196 esac
4197 # We did not find ourselves, most probably we were run as `sh COMMAND'
4198 # in which case we are not to be found in the path.
4199 if test "x$as_myself" = x; then
4200 as_myself=$0
4202 if test ! -f "$as_myself"; then
4203 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4204 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4205 { (exit 1); exit 1; }; }
4207 case $CONFIG_SHELL in
4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4212 IFS=$as_save_IFS
4213 test -z "$as_dir" && as_dir=.
4214 for as_base in sh bash ksh sh5; do
4215 case $as_dir in
4217 if ("$as_dir/$as_base" -c '
4218 as_lineno_1=$LINENO
4219 as_lineno_2=$LINENO
4220 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4221 test "x$as_lineno_1" != "x$as_lineno_2" &&
4222 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4223 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4224 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4225 CONFIG_SHELL=$as_dir/$as_base
4226 export CONFIG_SHELL
4227 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4228 fi;;
4229 esac
4230 done
4231 done
4233 esac
4235 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4236 # uniformly replaced by the line number. The first 'sed' inserts a
4237 # line-number line before each line; the second 'sed' does the real
4238 # work. The second script uses 'N' to pair each line-number line
4239 # with the numbered line, and appends trailing '-' during
4240 # substitution so that $LINENO is not a special case at line end.
4241 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4242 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4243 sed '=' <$as_myself |
4244 sed '
4246 s,$,-,
4247 : loop
4248 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4249 t loop
4250 s,-$,,
4251 s,^['$as_cr_digits']*\n,,
4252 ' >$as_me.lineno &&
4253 chmod +x $as_me.lineno ||
4254 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4255 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4256 { (exit 1); exit 1; }; }
4258 # Don't try to exec as it changes $[0], causing all sort of problems
4259 # (the dirname of $[0] is not the place where we might find the
4260 # original and so on. Autoconf is especially sensible to this).
4261 . ./$as_me.lineno
4262 # Exit status is that of the last command.
4263 exit
4267 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4268 *c*,-n*) ECHO_N= ECHO_C='
4269 ' ECHO_T=' ' ;;
4270 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4271 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4272 esac
4274 if expr a : '\(a\)' >/dev/null 2>&1; then
4275 as_expr=expr
4276 else
4277 as_expr=false
4280 rm -f conf$$ conf$$.exe conf$$.file
4281 echo >conf$$.file
4282 if ln -s conf$$.file conf$$ 2>/dev/null; then
4283 # We could just check for DJGPP; but this test a) works b) is more generic
4284 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4285 if test -f conf$$.exe; then
4286 # Don't use ln at all; we don't have any links
4287 as_ln_s='cp -p'
4288 else
4289 as_ln_s='ln -s'
4291 elif ln conf$$.file conf$$ 2>/dev/null; then
4292 as_ln_s=ln
4293 else
4294 as_ln_s='cp -p'
4296 rm -f conf$$ conf$$.exe conf$$.file
4298 if mkdir -p . 2>/dev/null; then
4299 as_mkdir_p=:
4300 else
4301 test -d ./-p && rmdir ./-p
4302 as_mkdir_p=false
4305 as_executable_p="test -f"
4307 # Sed expression to map a string onto a valid CPP name.
4308 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4310 # Sed expression to map a string onto a valid variable name.
4311 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4314 # IFS
4315 # We need space, tab and new line, in precisely that order.
4316 as_nl='
4318 IFS=" $as_nl"
4320 # CDPATH.
4321 $as_unset CDPATH
4323 exec 6>&1
4325 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4326 # report actual input values of CONFIG_FILES etc. instead of their
4327 # values after options handling. Logging --version etc. is OK.
4328 exec 5>>config.log
4330 echo
4331 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4332 ## Running $as_me. ##
4333 _ASBOX
4334 } >&5
4335 cat >&5 <<_CSEOF
4337 This file was extended by vhostgen $as_me 1.0, which was
4338 generated by GNU Autoconf 2.59. Invocation command line was
4340 CONFIG_FILES = $CONFIG_FILES
4341 CONFIG_HEADERS = $CONFIG_HEADERS
4342 CONFIG_LINKS = $CONFIG_LINKS
4343 CONFIG_COMMANDS = $CONFIG_COMMANDS
4344 $ $0 $@
4346 _CSEOF
4347 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4348 echo >&5
4349 _ACEOF
4351 # Files that config.status was made for.
4352 if test -n "$ac_config_files"; then
4353 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4356 if test -n "$ac_config_headers"; then
4357 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4360 if test -n "$ac_config_links"; then
4361 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4364 if test -n "$ac_config_commands"; then
4365 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4368 cat >>$CONFIG_STATUS <<\_ACEOF
4370 ac_cs_usage="\
4371 \`$as_me' instantiates files from templates according to the
4372 current configuration.
4374 Usage: $0 [OPTIONS] [FILE]...
4376 -h, --help print this help, then exit
4377 -V, --version print version number, then exit
4378 -q, --quiet do not print progress messages
4379 -d, --debug don't remove temporary files
4380 --recheck update $as_me by reconfiguring in the same conditions
4381 --file=FILE[:TEMPLATE]
4382 instantiate the configuration file FILE
4383 --header=FILE[:TEMPLATE]
4384 instantiate the configuration header FILE
4386 Configuration files:
4387 $config_files
4389 Configuration headers:
4390 $config_headers
4392 Report bugs to <bug-autoconf@gnu.org>."
4393 _ACEOF
4395 cat >>$CONFIG_STATUS <<_ACEOF
4396 ac_cs_version="\\
4397 vhostgen config.status 1.0
4398 configured by $0, generated by GNU Autoconf 2.59,
4399 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4401 Copyright (C) 2003 Free Software Foundation, Inc.
4402 This config.status script is free software; the Free Software Foundation
4403 gives unlimited permission to copy, distribute and modify it."
4404 srcdir=$srcdir
4405 _ACEOF
4407 cat >>$CONFIG_STATUS <<\_ACEOF
4408 # If no file are specified by the user, then we need to provide default
4409 # value. By we need to know if files were specified by the user.
4410 ac_need_defaults=:
4411 while test $# != 0
4413 case $1 in
4414 --*=*)
4415 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4416 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4417 ac_shift=:
4420 ac_option=$1
4421 ac_optarg=$2
4422 ac_shift=shift
4424 *) # This is not an option, so the user has probably given explicit
4425 # arguments.
4426 ac_option=$1
4427 ac_need_defaults=false;;
4428 esac
4430 case $ac_option in
4431 # Handling of the options.
4432 _ACEOF
4433 cat >>$CONFIG_STATUS <<\_ACEOF
4434 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4435 ac_cs_recheck=: ;;
4436 --version | --vers* | -V )
4437 echo "$ac_cs_version"; exit 0 ;;
4438 --he | --h)
4439 # Conflict between --help and --header
4440 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4441 Try \`$0 --help' for more information." >&5
4442 echo "$as_me: error: ambiguous option: $1
4443 Try \`$0 --help' for more information." >&2;}
4444 { (exit 1); exit 1; }; };;
4445 --help | --hel | -h )
4446 echo "$ac_cs_usage"; exit 0 ;;
4447 --debug | --d* | -d )
4448 debug=: ;;
4449 --file | --fil | --fi | --f )
4450 $ac_shift
4451 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4452 ac_need_defaults=false;;
4453 --header | --heade | --head | --hea )
4454 $ac_shift
4455 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4456 ac_need_defaults=false;;
4457 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4458 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4459 ac_cs_silent=: ;;
4461 # This is an error.
4462 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4463 Try \`$0 --help' for more information." >&5
4464 echo "$as_me: error: unrecognized option: $1
4465 Try \`$0 --help' for more information." >&2;}
4466 { (exit 1); exit 1; }; } ;;
4468 *) ac_config_targets="$ac_config_targets $1" ;;
4470 esac
4471 shift
4472 done
4474 ac_configure_extra_args=
4476 if $ac_cs_silent; then
4477 exec 6>/dev/null
4478 ac_configure_extra_args="$ac_configure_extra_args --silent"
4481 _ACEOF
4482 cat >>$CONFIG_STATUS <<_ACEOF
4483 if \$ac_cs_recheck; then
4484 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4485 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4488 _ACEOF
4494 cat >>$CONFIG_STATUS <<\_ACEOF
4495 for ac_config_target in $ac_config_targets
4497 case "$ac_config_target" in
4498 # Handling of arguments.
4499 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4500 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4501 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4502 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4503 { (exit 1); exit 1; }; };;
4504 esac
4505 done
4507 # If the user did not use the arguments to specify the items to instantiate,
4508 # then the envvar interface is used. Set only those that are not.
4509 # We use the long form for the default assignment because of an extremely
4510 # bizarre bug on SunOS 4.1.3.
4511 if $ac_need_defaults; then
4512 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4513 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4516 # Have a temporary directory for convenience. Make it in the build tree
4517 # simply because there is no reason to put it here, and in addition,
4518 # creating and moving files from /tmp can sometimes cause problems.
4519 # Create a temporary directory, and hook for its removal unless debugging.
4520 $debug ||
4522 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4523 trap '{ (exit 1); exit 1; }' 1 2 13 15
4526 # Create a (secure) tmp directory for tmp files.
4529 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4530 test -n "$tmp" && test -d "$tmp"
4531 } ||
4533 tmp=./confstat$$-$RANDOM
4534 (umask 077 && mkdir $tmp)
4535 } ||
4537 echo "$me: cannot create a temporary directory in ." >&2
4538 { (exit 1); exit 1; }
4541 _ACEOF
4543 cat >>$CONFIG_STATUS <<_ACEOF
4546 # CONFIG_FILES section.
4549 # No need to generate the scripts if there are no CONFIG_FILES.
4550 # This happens for instance when ./config.status config.h
4551 if test -n "\$CONFIG_FILES"; then
4552 # Protect against being on the right side of a sed subst in config.status.
4553 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4554 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4555 s,@SHELL@,$SHELL,;t t
4556 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4557 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4558 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4559 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4560 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4561 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4562 s,@exec_prefix@,$exec_prefix,;t t
4563 s,@prefix@,$prefix,;t t
4564 s,@program_transform_name@,$program_transform_name,;t t
4565 s,@bindir@,$bindir,;t t
4566 s,@sbindir@,$sbindir,;t t
4567 s,@libexecdir@,$libexecdir,;t t
4568 s,@datadir@,$datadir,;t t
4569 s,@sysconfdir@,$sysconfdir,;t t
4570 s,@sharedstatedir@,$sharedstatedir,;t t
4571 s,@localstatedir@,$localstatedir,;t t
4572 s,@libdir@,$libdir,;t t
4573 s,@includedir@,$includedir,;t t
4574 s,@oldincludedir@,$oldincludedir,;t t
4575 s,@infodir@,$infodir,;t t
4576 s,@mandir@,$mandir,;t t
4577 s,@build_alias@,$build_alias,;t t
4578 s,@host_alias@,$host_alias,;t t
4579 s,@target_alias@,$target_alias,;t t
4580 s,@DEFS@,$DEFS,;t t
4581 s,@ECHO_C@,$ECHO_C,;t t
4582 s,@ECHO_N@,$ECHO_N,;t t
4583 s,@ECHO_T@,$ECHO_T,;t t
4584 s,@LIBS@,$LIBS,;t t
4585 s,@CC@,$CC,;t t
4586 s,@CFLAGS@,$CFLAGS,;t t
4587 s,@LDFLAGS@,$LDFLAGS,;t t
4588 s,@CPPFLAGS@,$CPPFLAGS,;t t
4589 s,@ac_ct_CC@,$ac_ct_CC,;t t
4590 s,@EXEEXT@,$EXEEXT,;t t
4591 s,@OBJEXT@,$OBJEXT,;t t
4592 s,@MYSQL_CFLAGS@,$MYSQL_CFLAGS,;t t
4593 s,@MYSQL_LIBS@,$MYSQL_LIBS,;t t
4594 s,@mysqlconfig@,$mysqlconfig,;t t
4595 s,@CPP@,$CPP,;t t
4596 s,@EGREP@,$EGREP,;t t
4597 s,@LIBOBJS@,$LIBOBJS,;t t
4598 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4599 CEOF
4601 _ACEOF
4603 cat >>$CONFIG_STATUS <<\_ACEOF
4604 # Split the substitutions into bite-sized pieces for seds with
4605 # small command number limits, like on Digital OSF/1 and HP-UX.
4606 ac_max_sed_lines=48
4607 ac_sed_frag=1 # Number of current file.
4608 ac_beg=1 # First line for current file.
4609 ac_end=$ac_max_sed_lines # Line after last line for current file.
4610 ac_more_lines=:
4611 ac_sed_cmds=
4612 while $ac_more_lines; do
4613 if test $ac_beg -gt 1; then
4614 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4615 else
4616 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4618 if test ! -s $tmp/subs.frag; then
4619 ac_more_lines=false
4620 else
4621 # The purpose of the label and of the branching condition is to
4622 # speed up the sed processing (if there are no `@' at all, there
4623 # is no need to browse any of the substitutions).
4624 # These are the two extra sed commands mentioned above.
4625 (echo ':t
4626 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4627 if test -z "$ac_sed_cmds"; then
4628 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4629 else
4630 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4632 ac_sed_frag=`expr $ac_sed_frag + 1`
4633 ac_beg=$ac_end
4634 ac_end=`expr $ac_end + $ac_max_sed_lines`
4636 done
4637 if test -z "$ac_sed_cmds"; then
4638 ac_sed_cmds=cat
4640 fi # test -n "$CONFIG_FILES"
4642 _ACEOF
4643 cat >>$CONFIG_STATUS <<\_ACEOF
4644 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4645 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4646 case $ac_file in
4647 - | *:- | *:-:* ) # input from stdin
4648 cat >$tmp/stdin
4649 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4650 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4651 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4652 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4653 * ) ac_file_in=$ac_file.in ;;
4654 esac
4656 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4657 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4658 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4659 X"$ac_file" : 'X\(//\)[^/]' \| \
4660 X"$ac_file" : 'X\(//\)$' \| \
4661 X"$ac_file" : 'X\(/\)' \| \
4662 . : '\(.\)' 2>/dev/null ||
4663 echo X"$ac_file" |
4664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4665 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4666 /^X\(\/\/\)$/{ s//\1/; q; }
4667 /^X\(\/\).*/{ s//\1/; q; }
4668 s/.*/./; q'`
4669 { if $as_mkdir_p; then
4670 mkdir -p "$ac_dir"
4671 else
4672 as_dir="$ac_dir"
4673 as_dirs=
4674 while test ! -d "$as_dir"; do
4675 as_dirs="$as_dir $as_dirs"
4676 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4677 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4678 X"$as_dir" : 'X\(//\)[^/]' \| \
4679 X"$as_dir" : 'X\(//\)$' \| \
4680 X"$as_dir" : 'X\(/\)' \| \
4681 . : '\(.\)' 2>/dev/null ||
4682 echo X"$as_dir" |
4683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4684 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4685 /^X\(\/\/\)$/{ s//\1/; q; }
4686 /^X\(\/\).*/{ s//\1/; q; }
4687 s/.*/./; q'`
4688 done
4689 test ! -n "$as_dirs" || mkdir $as_dirs
4690 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4691 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4692 { (exit 1); exit 1; }; }; }
4694 ac_builddir=.
4696 if test "$ac_dir" != .; then
4697 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4698 # A "../" for each directory in $ac_dir_suffix.
4699 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4700 else
4701 ac_dir_suffix= ac_top_builddir=
4704 case $srcdir in
4705 .) # No --srcdir option. We are building in place.
4706 ac_srcdir=.
4707 if test -z "$ac_top_builddir"; then
4708 ac_top_srcdir=.
4709 else
4710 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4711 fi ;;
4712 [\\/]* | ?:[\\/]* ) # Absolute path.
4713 ac_srcdir=$srcdir$ac_dir_suffix;
4714 ac_top_srcdir=$srcdir ;;
4715 *) # Relative path.
4716 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4717 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4718 esac
4720 # Do not use `cd foo && pwd` to compute absolute paths, because
4721 # the directories may not exist.
4722 case `pwd` in
4723 .) ac_abs_builddir="$ac_dir";;
4725 case "$ac_dir" in
4726 .) ac_abs_builddir=`pwd`;;
4727 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4728 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4729 esac;;
4730 esac
4731 case $ac_abs_builddir in
4732 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4734 case ${ac_top_builddir}. in
4735 .) ac_abs_top_builddir=$ac_abs_builddir;;
4736 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4737 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4738 esac;;
4739 esac
4740 case $ac_abs_builddir in
4741 .) ac_abs_srcdir=$ac_srcdir;;
4743 case $ac_srcdir in
4744 .) ac_abs_srcdir=$ac_abs_builddir;;
4745 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4746 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4747 esac;;
4748 esac
4749 case $ac_abs_builddir in
4750 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4752 case $ac_top_srcdir in
4753 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4754 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4755 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4756 esac;;
4757 esac
4761 if test x"$ac_file" != x-; then
4762 { echo "$as_me:$LINENO: creating $ac_file" >&5
4763 echo "$as_me: creating $ac_file" >&6;}
4764 rm -f "$ac_file"
4766 # Let's still pretend it is `configure' which instantiates (i.e., don't
4767 # use $as_me), people would be surprised to read:
4768 # /* config.h. Generated by config.status. */
4769 if test x"$ac_file" = x-; then
4770 configure_input=
4771 else
4772 configure_input="$ac_file. "
4774 configure_input=$configure_input"Generated from `echo $ac_file_in |
4775 sed 's,.*/,,'` by configure."
4777 # First look for the input files in the build tree, otherwise in the
4778 # src tree.
4779 ac_file_inputs=`IFS=:
4780 for f in $ac_file_in; do
4781 case $f in
4782 -) echo $tmp/stdin ;;
4783 [\\/$]*)
4784 # Absolute (can't be DOS-style, as IFS=:)
4785 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4786 echo "$as_me: error: cannot find input file: $f" >&2;}
4787 { (exit 1); exit 1; }; }
4788 echo "$f";;
4789 *) # Relative
4790 if test -f "$f"; then
4791 # Build tree
4792 echo "$f"
4793 elif test -f "$srcdir/$f"; then
4794 # Source tree
4795 echo "$srcdir/$f"
4796 else
4797 # /dev/null tree
4798 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4799 echo "$as_me: error: cannot find input file: $f" >&2;}
4800 { (exit 1); exit 1; }; }
4801 fi;;
4802 esac
4803 done` || { (exit 1); exit 1; }
4804 _ACEOF
4805 cat >>$CONFIG_STATUS <<_ACEOF
4806 sed "$ac_vpsub
4807 $extrasub
4808 _ACEOF
4809 cat >>$CONFIG_STATUS <<\_ACEOF
4811 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4812 s,@configure_input@,$configure_input,;t t
4813 s,@srcdir@,$ac_srcdir,;t t
4814 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4815 s,@top_srcdir@,$ac_top_srcdir,;t t
4816 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4817 s,@builddir@,$ac_builddir,;t t
4818 s,@abs_builddir@,$ac_abs_builddir,;t t
4819 s,@top_builddir@,$ac_top_builddir,;t t
4820 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4821 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4822 rm -f $tmp/stdin
4823 if test x"$ac_file" != x-; then
4824 mv $tmp/out $ac_file
4825 else
4826 cat $tmp/out
4827 rm -f $tmp/out
4830 done
4831 _ACEOF
4832 cat >>$CONFIG_STATUS <<\_ACEOF
4835 # CONFIG_HEADER section.
4838 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4839 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4841 # ac_d sets the value in "#define NAME VALUE" lines.
4842 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4843 ac_dB='[ ].*$,\1#\2'
4844 ac_dC=' '
4845 ac_dD=',;t'
4846 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4847 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4848 ac_uB='$,\1#\2define\3'
4849 ac_uC=' '
4850 ac_uD=',;t'
4852 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4853 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4854 case $ac_file in
4855 - | *:- | *:-:* ) # input from stdin
4856 cat >$tmp/stdin
4857 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4858 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4859 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4860 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4861 * ) ac_file_in=$ac_file.in ;;
4862 esac
4864 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4865 echo "$as_me: creating $ac_file" >&6;}
4867 # First look for the input files in the build tree, otherwise in the
4868 # src tree.
4869 ac_file_inputs=`IFS=:
4870 for f in $ac_file_in; do
4871 case $f in
4872 -) echo $tmp/stdin ;;
4873 [\\/$]*)
4874 # Absolute (can't be DOS-style, as IFS=:)
4875 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4876 echo "$as_me: error: cannot find input file: $f" >&2;}
4877 { (exit 1); exit 1; }; }
4878 # Do quote $f, to prevent DOS paths from being IFS'd.
4879 echo "$f";;
4880 *) # Relative
4881 if test -f "$f"; then
4882 # Build tree
4883 echo "$f"
4884 elif test -f "$srcdir/$f"; then
4885 # Source tree
4886 echo "$srcdir/$f"
4887 else
4888 # /dev/null tree
4889 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4890 echo "$as_me: error: cannot find input file: $f" >&2;}
4891 { (exit 1); exit 1; }; }
4892 fi;;
4893 esac
4894 done` || { (exit 1); exit 1; }
4895 # Remove the trailing spaces.
4896 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4898 _ACEOF
4900 # Transform confdefs.h into two sed scripts, `conftest.defines' and
4901 # `conftest.undefs', that substitutes the proper values into
4902 # config.h.in to produce config.h. The first handles `#define'
4903 # templates, and the second `#undef' templates.
4904 # And first: Protect against being on the right side of a sed subst in
4905 # config.status. Protect against being in an unquoted here document
4906 # in config.status.
4907 rm -f conftest.defines conftest.undefs
4908 # Using a here document instead of a string reduces the quoting nightmare.
4909 # Putting comments in sed scripts is not portable.
4911 # `end' is used to avoid that the second main sed command (meant for
4912 # 0-ary CPP macros) applies to n-ary macro definitions.
4913 # See the Autoconf documentation for `clear'.
4914 cat >confdef2sed.sed <<\_ACEOF
4915 s/[\\&,]/\\&/g
4916 s,[\\$`],\\&,g
4917 t clear
4918 : clear
4919 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4920 t end
4921 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4922 : end
4923 _ACEOF
4924 # If some macros were called several times there might be several times
4925 # the same #defines, which is useless. Nevertheless, we may not want to
4926 # sort them, since we want the *last* AC-DEFINE to be honored.
4927 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4928 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4929 rm -f confdef2sed.sed
4931 # This sed command replaces #undef with comments. This is necessary, for
4932 # example, in the case of _POSIX_SOURCE, which is predefined and required
4933 # on some systems where configure will not decide to define it.
4934 cat >>conftest.undefs <<\_ACEOF
4935 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4936 _ACEOF
4938 # Break up conftest.defines because some shells have a limit on the size
4939 # of here documents, and old seds have small limits too (100 cmds).
4940 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4941 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4942 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4943 echo ' :' >>$CONFIG_STATUS
4944 rm -f conftest.tail
4945 while grep . conftest.defines >/dev/null
4947 # Write a limited-size here document to $tmp/defines.sed.
4948 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4949 # Speed up: don't consider the non `#define' lines.
4950 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
4951 # Work around the forget-to-reset-the-flag bug.
4952 echo 't clr' >>$CONFIG_STATUS
4953 echo ': clr' >>$CONFIG_STATUS
4954 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4955 echo 'CEOF
4956 sed -f $tmp/defines.sed $tmp/in >$tmp/out
4957 rm -f $tmp/in
4958 mv $tmp/out $tmp/in
4959 ' >>$CONFIG_STATUS
4960 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4961 rm -f conftest.defines
4962 mv conftest.tail conftest.defines
4963 done
4964 rm -f conftest.defines
4965 echo ' fi # grep' >>$CONFIG_STATUS
4966 echo >>$CONFIG_STATUS
4968 # Break up conftest.undefs because some shells have a limit on the size
4969 # of here documents, and old seds have small limits too (100 cmds).
4970 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
4971 rm -f conftest.tail
4972 while grep . conftest.undefs >/dev/null
4974 # Write a limited-size here document to $tmp/undefs.sed.
4975 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4976 # Speed up: don't consider the non `#undef'
4977 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
4978 # Work around the forget-to-reset-the-flag bug.
4979 echo 't clr' >>$CONFIG_STATUS
4980 echo ': clr' >>$CONFIG_STATUS
4981 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4982 echo 'CEOF
4983 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4984 rm -f $tmp/in
4985 mv $tmp/out $tmp/in
4986 ' >>$CONFIG_STATUS
4987 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4988 rm -f conftest.undefs
4989 mv conftest.tail conftest.undefs
4990 done
4991 rm -f conftest.undefs
4993 cat >>$CONFIG_STATUS <<\_ACEOF
4994 # Let's still pretend it is `configure' which instantiates (i.e., don't
4995 # use $as_me), people would be surprised to read:
4996 # /* config.h. Generated by config.status. */
4997 if test x"$ac_file" = x-; then
4998 echo "/* Generated by configure. */" >$tmp/config.h
4999 else
5000 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5002 cat $tmp/in >>$tmp/config.h
5003 rm -f $tmp/in
5004 if test x"$ac_file" != x-; then
5005 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5006 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5007 echo "$as_me: $ac_file is unchanged" >&6;}
5008 else
5009 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5010 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5011 X"$ac_file" : 'X\(//\)[^/]' \| \
5012 X"$ac_file" : 'X\(//\)$' \| \
5013 X"$ac_file" : 'X\(/\)' \| \
5014 . : '\(.\)' 2>/dev/null ||
5015 echo X"$ac_file" |
5016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5017 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5018 /^X\(\/\/\)$/{ s//\1/; q; }
5019 /^X\(\/\).*/{ s//\1/; q; }
5020 s/.*/./; q'`
5021 { if $as_mkdir_p; then
5022 mkdir -p "$ac_dir"
5023 else
5024 as_dir="$ac_dir"
5025 as_dirs=
5026 while test ! -d "$as_dir"; do
5027 as_dirs="$as_dir $as_dirs"
5028 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5029 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5030 X"$as_dir" : 'X\(//\)[^/]' \| \
5031 X"$as_dir" : 'X\(//\)$' \| \
5032 X"$as_dir" : 'X\(/\)' \| \
5033 . : '\(.\)' 2>/dev/null ||
5034 echo X"$as_dir" |
5035 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5036 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5037 /^X\(\/\/\)$/{ s//\1/; q; }
5038 /^X\(\/\).*/{ s//\1/; q; }
5039 s/.*/./; q'`
5040 done
5041 test ! -n "$as_dirs" || mkdir $as_dirs
5042 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5043 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5044 { (exit 1); exit 1; }; }; }
5046 rm -f $ac_file
5047 mv $tmp/config.h $ac_file
5049 else
5050 cat $tmp/config.h
5051 rm -f $tmp/config.h
5053 done
5054 _ACEOF
5056 cat >>$CONFIG_STATUS <<\_ACEOF
5058 { (exit 0); exit 0; }
5059 _ACEOF
5060 chmod +x $CONFIG_STATUS
5061 ac_clean_files=$ac_clean_files_save
5064 # configure is writing to config.log, and then calls config.status.
5065 # config.status does its own redirection, appending to config.log.
5066 # Unfortunately, on DOS this fails, as config.log is still kept open
5067 # by configure, so config.status won't be able to write to it; its
5068 # output is simply discarded. So we exec the FD to /dev/null,
5069 # effectively closing config.log, so it can be properly (re)opened and
5070 # appended to by config.status. When coming back to configure, we
5071 # need to make the FD available again.
5072 if test "$no_create" != yes; then
5073 ac_cs_success=:
5074 ac_config_status_args=
5075 test "$silent" = yes &&
5076 ac_config_status_args="$ac_config_status_args --quiet"
5077 exec 5>/dev/null
5078 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5079 exec 5>>config.log
5080 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5081 # would make configure fail if this is the last instruction.
5082 $ac_cs_success || { (exit 1); exit 1; }