]> jfr.im git - irc/thales.git/blame - configure
Fixed NOQUIT negociation for UnrealIrcd
[irc/thales.git] / configure
CommitLineData
2ace9480 1#! /bin/sh
2ace9480 2# Guess values for system-dependent variables and create Makefiles.
7f9838a7 3# Generated by GNU Autoconf 2.59.
2ace9480 4#
7f9838a7 5# Copyright (C) 2003 Free Software Foundation, Inc.
2ace9480 6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
7f9838a7 8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
2ace9480 185
7f9838a7 186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
2ace9480 254ac_default_prefix=/usr/local
7f9838a7 255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="src/main.c"
2ace9480 275ac_default_prefix=\${HOME}/thales
7f9838a7 276# Factoring default headers for most tests.
277ac_includes_default="\
278#include <stdio.h>
279#if HAVE_SYS_TYPES_H
280# include <sys/types.h>
281#endif
282#if HAVE_SYS_STAT_H
283# include <sys/stat.h>
284#endif
285#if STDC_HEADERS
286# include <stdlib.h>
287# include <stddef.h>
288#else
289# if HAVE_STDLIB_H
290# include <stdlib.h>
291# endif
292#endif
293#if HAVE_STRING_H
294# if !STDC_HEADERS && HAVE_MEMORY_H
295# include <memory.h>
296# endif
297# include <string.h>
298#endif
299#if HAVE_STRINGS_H
300# include <strings.h>
301#endif
302#if HAVE_INTTYPES_H
303# include <inttypes.h>
304#else
305# if HAVE_STDINT_H
306# include <stdint.h>
307# endif
308#endif
309#if HAVE_UNISTD_H
310# include <unistd.h>
311#endif"
312
313ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE AWK CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP EGREP LIBOBJS LTLIBOBJS'
314ac_subst_files=''
2ace9480 315
316# Initialize some variables set by options.
7f9838a7 317ac_init_help=
318ac_init_version=false
2ace9480 319# The variables have the same names as the options, with
320# dashes changed to underlines.
7f9838a7 321cache_file=/dev/null
2ace9480 322exec_prefix=NONE
2ace9480 323no_create=
2ace9480 324no_recursion=
325prefix=NONE
326program_prefix=NONE
327program_suffix=NONE
328program_transform_name=s,x,x,
329silent=
330site=
331srcdir=
2ace9480 332verbose=
333x_includes=NONE
334x_libraries=NONE
7f9838a7 335
336# Installation directory options.
337# These are left unexpanded so users can "make install exec_prefix=/foo"
338# and all the variables that are supposed to be based on exec_prefix
339# by default will actually change.
340# Use braces instead of parens because sh, perl, etc. also accept them.
2ace9480 341bindir='${exec_prefix}/bin'
342sbindir='${exec_prefix}/sbin'
343libexecdir='${exec_prefix}/libexec'
344datadir='${prefix}/share'
345sysconfdir='${prefix}/etc'
346sharedstatedir='${prefix}/com'
347localstatedir='${prefix}/var'
348libdir='${exec_prefix}/lib'
349includedir='${prefix}/include'
350oldincludedir='/usr/include'
351infodir='${prefix}/info'
352mandir='${prefix}/man'
353
2ace9480 354ac_prev=
355for ac_option
356do
2ace9480 357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
362 fi
363
7f9838a7 364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
2ace9480 365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
7f9838a7 368 case $ac_option in
2ace9480 369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
7f9838a7 373 bindir=$ac_optarg ;;
2ace9480 374
375 -build | --build | --buil | --bui | --bu)
7f9838a7 376 ac_prev=build_alias ;;
2ace9480 377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
7f9838a7 378 build_alias=$ac_optarg ;;
2ace9480 379
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
7f9838a7 385 cache_file=$ac_optarg ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
2ace9480 389
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
7f9838a7 394 datadir=$ac_optarg ;;
2ace9480 395
396 -disable-* | --disable-*)
7f9838a7 397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
2ace9480 398 # Reject names that are not valid shell variable names.
7f9838a7 399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
2ace9480 404
405 -enable-* | --enable-*)
7f9838a7 406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
2ace9480 407 # Reject names that are not valid shell variable names.
7f9838a7 408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
2ace9480 414 *) ac_optarg=yes ;;
415 esac
7f9838a7 416 eval "enable_$ac_feature='$ac_optarg'" ;;
2ace9480 417
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
7f9838a7 425 exec_prefix=$ac_optarg ;;
2ace9480 426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
7f9838a7 431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
2ace9480 437
438 -host | --host | --hos | --ho)
7f9838a7 439 ac_prev=host_alias ;;
2ace9480 440 -host=* | --host=* | --hos=* | --ho=*)
7f9838a7 441 host_alias=$ac_optarg ;;
2ace9480 442
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
7f9838a7 448 includedir=$ac_optarg ;;
2ace9480 449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
7f9838a7 453 infodir=$ac_optarg ;;
2ace9480 454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
7f9838a7 458 libdir=$ac_optarg ;;
2ace9480 459
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
7f9838a7 465 libexecdir=$ac_optarg ;;
2ace9480 466
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
7f9838a7 474 localstatedir=$ac_optarg ;;
2ace9480 475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
7f9838a7 479 mandir=$ac_optarg ;;
2ace9480 480
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
484
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
7f9838a7 486 | --no-cr | --no-c | -n)
2ace9480 487 no_create=yes ;;
488
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
492
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
7f9838a7 500 oldincludedir=$ac_optarg ;;
2ace9480 501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
7f9838a7 505 prefix=$ac_optarg ;;
2ace9480 506
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
7f9838a7 512 program_prefix=$ac_optarg ;;
2ace9480 513
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
7f9838a7 519 program_suffix=$ac_optarg ;;
2ace9480 520
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
7f9838a7 536 program_transform_name=$ac_optarg ;;
2ace9480 537
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
541
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
7f9838a7 546 sbindir=$ac_optarg ;;
2ace9480 547
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
7f9838a7 557 sharedstatedir=$ac_optarg ;;
2ace9480 558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
7f9838a7 562 site=$ac_optarg ;;
2ace9480 563
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7f9838a7 567 srcdir=$ac_optarg ;;
2ace9480 568
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
7f9838a7 574 sysconfdir=$ac_optarg ;;
2ace9480 575
576 -target | --target | --targe | --targ | --tar | --ta | --t)
7f9838a7 577 ac_prev=target_alias ;;
2ace9480 578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
7f9838a7 579 target_alias=$ac_optarg ;;
2ace9480 580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
7f9838a7 584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
2ace9480 586
587 -with-* | --with-*)
7f9838a7 588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2ace9480 589 # Reject names that are not valid shell variable names.
7f9838a7 590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
2ace9480 593 ac_package=`echo $ac_package| sed 's/-/_/g'`
7f9838a7 594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
2ace9480 596 *) ac_optarg=yes ;;
597 esac
7f9838a7 598 eval "with_$ac_package='$ac_optarg'" ;;
2ace9480 599
600 -without-* | --without-*)
7f9838a7 601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2ace9480 602 # Reject names that are not valid shell variable names.
7f9838a7 603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
2ace9480 608
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
612
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
7f9838a7 618 x_includes=$ac_optarg ;;
2ace9480 619
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
7f9838a7 625 x_libraries=$ac_optarg ;;
2ace9480 626
7f9838a7 627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
2ace9480 630 ;;
631
7f9838a7 632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
641
2ace9480 642 *)
7f9838a7 643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
2ace9480 648 ;;
649
650 esac
651done
652
653if test -n "$ac_prev"; then
7f9838a7 654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
2ace9480 657fi
2ace9480 658
7f9838a7 659# Be sure to have absolute paths.
660for ac_var in exec_prefix prefix
661do
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668done
2ace9480 669
7f9838a7 670# Be sure to have absolute paths.
671for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
2ace9480 673do
7f9838a7 674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
2ace9480 679 esac
680done
681
7f9838a7 682# There might be people who depend on the old broken behavior: `$host'
683# used to hold the argument of --host etc.
684# FIXME: To remove some day.
685build=$build_alias
686host=$host_alias
687target=$target_alias
688
689# FIXME: To remove some day.
690if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
697 fi
698fi
2ace9480 699
7f9838a7 700ac_tool_prefix=
701test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703test "$silent" = yes && exec 6>/dev/null
2ace9480 704
2ace9480 705
706# Find the source files, if location was not specified.
707if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
7f9838a7 710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
2ace9480 722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
725 fi
726else
727 ac_srcdir_defaulted=no
728fi
729if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
7f9838a7 731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
2ace9480 733 else
7f9838a7 734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
2ace9480 736 fi
737fi
7f9838a7 738(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742ac_env_build_alias_set=${build_alias+set}
743ac_env_build_alias_value=$build_alias
744ac_cv_env_build_alias_set=${build_alias+set}
745ac_cv_env_build_alias_value=$build_alias
746ac_env_host_alias_set=${host_alias+set}
747ac_env_host_alias_value=$host_alias
748ac_cv_env_host_alias_set=${host_alias+set}
749ac_cv_env_host_alias_value=$host_alias
750ac_env_target_alias_set=${target_alias+set}
751ac_env_target_alias_value=$target_alias
752ac_cv_env_target_alias_set=${target_alias+set}
753ac_cv_env_target_alias_value=$target_alias
754ac_env_CC_set=${CC+set}
755ac_env_CC_value=$CC
756ac_cv_env_CC_set=${CC+set}
757ac_cv_env_CC_value=$CC
758ac_env_CFLAGS_set=${CFLAGS+set}
759ac_env_CFLAGS_value=$CFLAGS
760ac_cv_env_CFLAGS_set=${CFLAGS+set}
761ac_cv_env_CFLAGS_value=$CFLAGS
762ac_env_LDFLAGS_set=${LDFLAGS+set}
763ac_env_LDFLAGS_value=$LDFLAGS
764ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765ac_cv_env_LDFLAGS_value=$LDFLAGS
766ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767ac_env_CPPFLAGS_value=$CPPFLAGS
768ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770ac_env_CPP_set=${CPP+set}
771ac_env_CPP_value=$CPP
772ac_cv_env_CPP_set=${CPP+set}
773ac_cv_env_CPP_value=$CPP
774
775#
776# Report the --help message.
777#
778if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782\`configure' configures this package to adapt to many kinds of systems.
783
784Usage: $0 [OPTION]... [VAR=VALUE]...
785
786To assign environment variables (e.g., CC, CFLAGS...), specify them as
787VAR=VALUE. See below for descriptions of some of the useful variables.
788
789Defaults for the options are specified in brackets.
790
791Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801
802_ACEOF
803
804 cat <<_ACEOF
805Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
810
811By default, \`make install' will install all the files in
812\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814for instance \`--prefix=\$HOME'.
815
816For better control, use the options below.
817
818Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831_ACEOF
832
833 cat <<\_ACEOF
834
835Program names:
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839_ACEOF
840fi
841
842if test -n "$ac_init_help"; then
843
844 cat <<\_ACEOF
845
846Optional Features:
847 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
848 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
849 --enable-noreportusage Forget about the Usage Survey
850 --enable-static links statically
851 --enable-no-modes Disables modes in the database (modes are enabled by default)
852
853Optional Packages:
854 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
855 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
856 --with-ircd=ircdtype type of the ircd used with thales (bahamut, hybrid, ircdru, unreal, ultimate28 or ultimate30)
857 --tableprefix=string prefix to add to all SQL tables names. database creation scripts need to be modified accordingly.)
858 --with-hashlist=YES/NO Use an internal hashlist to store some data ? (that makes Thales run faster)
859 --with-mysql=PFX Prefix where MySQL is installed (usually /usr/local)
860 --with-mysql-includes=PFX Prefix where MySQL includes are found (usually
861 /usr/local/include/mysql)
862 --with-mysql-libraries=PFX Prefix where MySQL libraries are found (usually
863 /usr/local/lib/mysql)
864
865Some influential environment variables:
866 CC C compiler command
867 CFLAGS C compiler flags
868 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
869 nonstandard directory <lib dir>
870 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
871 headers in a nonstandard directory <include dir>
872 CPP C preprocessor
873
874Use these variables to override the choices made by `configure' or to help
875it to find libraries and programs with nonstandard names/locations.
876
877_ACEOF
878fi
879
880if test "$ac_init_help" = "recursive"; then
881 # If there are subdirs, report their specific --help.
882 ac_popdir=`pwd`
883 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
884 test -d $ac_dir || continue
885 ac_builddir=.
886
887if test "$ac_dir" != .; then
888 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
889 # A "../" for each directory in $ac_dir_suffix.
890 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
891else
892 ac_dir_suffix= ac_top_builddir=
893fi
894
895case $srcdir in
896 .) # No --srcdir option. We are building in place.
897 ac_srcdir=.
898 if test -z "$ac_top_builddir"; then
899 ac_top_srcdir=.
900 else
901 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
902 fi ;;
903 [\\/]* | ?:[\\/]* ) # Absolute path.
904 ac_srcdir=$srcdir$ac_dir_suffix;
905 ac_top_srcdir=$srcdir ;;
906 *) # Relative path.
907 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
908 ac_top_srcdir=$ac_top_builddir$srcdir ;;
909esac
910
911# Do not use `cd foo && pwd` to compute absolute paths, because
912# the directories may not exist.
913case `pwd` in
914.) ac_abs_builddir="$ac_dir";;
915*)
916 case "$ac_dir" in
917 .) ac_abs_builddir=`pwd`;;
918 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
919 *) ac_abs_builddir=`pwd`/"$ac_dir";;
920 esac;;
921esac
922case $ac_abs_builddir in
923.) ac_abs_top_builddir=${ac_top_builddir}.;;
924*)
925 case ${ac_top_builddir}. in
926 .) ac_abs_top_builddir=$ac_abs_builddir;;
927 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
928 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
929 esac;;
930esac
931case $ac_abs_builddir in
932.) ac_abs_srcdir=$ac_srcdir;;
933*)
934 case $ac_srcdir in
935 .) ac_abs_srcdir=$ac_abs_builddir;;
936 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
937 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
938 esac;;
939esac
940case $ac_abs_builddir in
941.) ac_abs_top_srcdir=$ac_top_srcdir;;
942*)
943 case $ac_top_srcdir in
944 .) ac_abs_top_srcdir=$ac_abs_builddir;;
945 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
946 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
947 esac;;
948esac
949
950 cd $ac_dir
951 # Check for guested configure; otherwise get Cygnus style configure.
952 if test -f $ac_srcdir/configure.gnu; then
953 echo
954 $SHELL $ac_srcdir/configure.gnu --help=recursive
955 elif test -f $ac_srcdir/configure; then
956 echo
957 $SHELL $ac_srcdir/configure --help=recursive
958 elif test -f $ac_srcdir/configure.ac ||
959 test -f $ac_srcdir/configure.in; then
960 echo
961 $ac_configure --help
962 else
963 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
964 fi
965 cd "$ac_popdir"
966 done
967fi
968
969test -n "$ac_init_help" && exit 0
970if $ac_init_version; then
971 cat <<\_ACEOF
972
973Copyright (C) 2003 Free Software Foundation, Inc.
974This configure script is free software; the Free Software Foundation
975gives unlimited permission to copy, distribute and modify it.
976_ACEOF
977 exit 0
978fi
979exec 5>config.log
980cat >&5 <<_ACEOF
981This file contains any messages produced by compilers while
982running configure, to aid debugging if configure makes a mistake.
983
984It was created by $as_me, which was
985generated by GNU Autoconf 2.59. Invocation command line was
986
987 $ $0 $@
988
989_ACEOF
990{
991cat <<_ASUNAME
992## --------- ##
993## Platform. ##
994## --------- ##
995
996hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
997uname -m = `(uname -m) 2>/dev/null || echo unknown`
998uname -r = `(uname -r) 2>/dev/null || echo unknown`
999uname -s = `(uname -s) 2>/dev/null || echo unknown`
1000uname -v = `(uname -v) 2>/dev/null || echo unknown`
1001
1002/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1003/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1004
1005/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1006/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1007/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1008hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1009/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1010/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1011/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1012
1013_ASUNAME
1014
1015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1016for as_dir in $PATH
1017do
1018 IFS=$as_save_IFS
1019 test -z "$as_dir" && as_dir=.
1020 echo "PATH: $as_dir"
1021done
1022
1023} >&5
1024
1025cat >&5 <<_ACEOF
1026
1027
1028## ----------- ##
1029## Core tests. ##
1030## ----------- ##
1031
1032_ACEOF
1033
1034
1035# Keep a trace of the command line.
1036# Strip out --no-create and --no-recursion so they do not pile up.
1037# Strip out --silent because we don't want to record it for future runs.
1038# Also quote any args containing shell meta-characters.
1039# Make two passes to allow for proper duplicate-argument suppression.
1040ac_configure_args=
1041ac_configure_args0=
1042ac_configure_args1=
1043ac_sep=
1044ac_must_keep_next=false
1045for ac_pass in 1 2
1046do
1047 for ac_arg
1048 do
1049 case $ac_arg in
1050 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1051 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1052 | -silent | --silent | --silen | --sile | --sil)
1053 continue ;;
1054 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1055 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1056 esac
1057 case $ac_pass in
1058 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1059 2)
1060 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1061 if test $ac_must_keep_next = true; then
1062 ac_must_keep_next=false # Got value, back to normal.
1063 else
1064 case $ac_arg in
1065 *=* | --config-cache | -C | -disable-* | --disable-* \
1066 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1067 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1068 | -with-* | --with-* | -without-* | --without-* | --x)
1069 case "$ac_configure_args0 " in
1070 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1071 esac
1072 ;;
1073 -* ) ac_must_keep_next=true ;;
1074 esac
1075 fi
1076 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1077 # Get rid of the leading space.
1078 ac_sep=" "
1079 ;;
1080 esac
1081 done
1082done
1083$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1084$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1085
1086# When interrupted or exit'd, cleanup temporary files, and complete
1087# config.log. We remove comments because anyway the quotes in there
1088# would cause problems or look ugly.
1089# WARNING: Be sure not to use single quotes in there, as some shells,
1090# such as our DU 5.0 friend, will then `close' the trap.
1091trap 'exit_status=$?
1092 # Save into config.log some information that might help in debugging.
1093 {
1094 echo
1095
1096 cat <<\_ASBOX
1097## ---------------- ##
1098## Cache variables. ##
1099## ---------------- ##
1100_ASBOX
1101 echo
1102 # The following way of writing the cache mishandles newlines in values,
1103{
1104 (set) 2>&1 |
1105 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1106 *ac_space=\ *)
1107 sed -n \
1108 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1109 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1110 ;;
1111 *)
1112 sed -n \
1113 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1114 ;;
1115 esac;
1116}
1117 echo
1118
1119 cat <<\_ASBOX
1120## ----------------- ##
1121## Output variables. ##
1122## ----------------- ##
1123_ASBOX
1124 echo
1125 for ac_var in $ac_subst_vars
1126 do
1127 eval ac_val=$`echo $ac_var`
1128 echo "$ac_var='"'"'$ac_val'"'"'"
1129 done | sort
1130 echo
1131
1132 if test -n "$ac_subst_files"; then
1133 cat <<\_ASBOX
1134## ------------- ##
1135## Output files. ##
1136## ------------- ##
1137_ASBOX
1138 echo
1139 for ac_var in $ac_subst_files
1140 do
1141 eval ac_val=$`echo $ac_var`
1142 echo "$ac_var='"'"'$ac_val'"'"'"
1143 done | sort
1144 echo
1145 fi
1146
1147 if test -s confdefs.h; then
1148 cat <<\_ASBOX
1149## ----------- ##
1150## confdefs.h. ##
1151## ----------- ##
1152_ASBOX
1153 echo
1154 sed "/^$/d" confdefs.h | sort
1155 echo
1156 fi
1157 test "$ac_signal" != 0 &&
1158 echo "$as_me: caught signal $ac_signal"
1159 echo "$as_me: exit $exit_status"
1160 } >&5
1161 rm -f core *.core &&
1162 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1163 exit $exit_status
1164 ' 0
1165for ac_signal in 1 2 13 15; do
1166 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1167done
1168ac_signal=0
1169
1170# confdefs.h avoids OS command line length limits that DEFS can exceed.
1171rm -rf conftest* confdefs.h
1172# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1173echo >confdefs.h
1174
1175# Predefined preprocessor variables.
1176
1177cat >>confdefs.h <<_ACEOF
1178#define PACKAGE_NAME "$PACKAGE_NAME"
1179_ACEOF
1180
1181
1182cat >>confdefs.h <<_ACEOF
1183#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1184_ACEOF
1185
1186
1187cat >>confdefs.h <<_ACEOF
1188#define PACKAGE_VERSION "$PACKAGE_VERSION"
1189_ACEOF
1190
1191
1192cat >>confdefs.h <<_ACEOF
1193#define PACKAGE_STRING "$PACKAGE_STRING"
1194_ACEOF
1195
1196
1197cat >>confdefs.h <<_ACEOF
1198#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1199_ACEOF
1200
2ace9480 1201
7f9838a7 1202# Let the site file select an alternate cache file if it wants to.
2ace9480 1203# Prefer explicitly selected file to automatically selected ones.
1204if test -z "$CONFIG_SITE"; then
1205 if test "x$prefix" != xNONE; then
1206 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1207 else
1208 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1209 fi
1210fi
1211for ac_site_file in $CONFIG_SITE; do
1212 if test -r "$ac_site_file"; then
7f9838a7 1213 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1214echo "$as_me: loading site script $ac_site_file" >&6;}
1215 sed 's/^/| /' "$ac_site_file" >&5
2ace9480 1216 . "$ac_site_file"
1217 fi
1218done
1219
1220if test -r "$cache_file"; then
7f9838a7 1221 # Some versions of bash will fail to source /dev/null (special
1222 # files actually), so we avoid doing that.
1223 if test -f "$cache_file"; then
1224 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1225echo "$as_me: loading cache $cache_file" >&6;}
1226 case $cache_file in
1227 [\\/]* | ?:[\\/]* ) . $cache_file;;
1228 *) . ./$cache_file;;
1229 esac
1230 fi
2ace9480 1231else
7f9838a7 1232 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1233echo "$as_me: creating cache $cache_file" >&6;}
1234 >$cache_file
1235fi
1236
1237# Check that the precious variables saved in the cache have kept the same
1238# value.
1239ac_cache_corrupted=false
1240for ac_var in `(set) 2>&1 |
1241 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1242 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1243 eval ac_new_set=\$ac_env_${ac_var}_set
1244 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1245 eval ac_new_val="\$ac_env_${ac_var}_value"
1246 case $ac_old_set,$ac_new_set in
1247 set,)
1248 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1249echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1250 ac_cache_corrupted=: ;;
1251 ,set)
1252 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1253echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1254 ac_cache_corrupted=: ;;
1255 ,);;
1256 *)
1257 if test "x$ac_old_val" != "x$ac_new_val"; then
1258 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1259echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1260 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1261echo "$as_me: former value: $ac_old_val" >&2;}
1262 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1263echo "$as_me: current value: $ac_new_val" >&2;}
1264 ac_cache_corrupted=:
1265 fi;;
1266 esac
1267 # Pass precious variables to config.status.
1268 if test "$ac_new_set" = set; then
1269 case $ac_new_val in
1270 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1271 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1272 *) ac_arg=$ac_var=$ac_new_val ;;
1273 esac
1274 case " $ac_configure_args " in
1275 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1276 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1277 esac
1278 fi
1279done
1280if $ac_cache_corrupted; then
1281 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1282echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1283 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1284echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1285 { (exit 1); exit 1; }; }
2ace9480 1286fi
1287
1288ac_ext=c
2ace9480 1289ac_cpp='$CPP $CPPFLAGS'
7f9838a7 1290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1292ac_compiler_gnu=$ac_cv_c_compiler_gnu
1293
1294
1295
1296
2ace9480 1297
1298
1299
1300
1301
7f9838a7 1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313 ac_config_headers="$ac_config_headers src/config.h"
1314
1315 ac_config_commands="$ac_config_commands default-1"
1316
1317am__api_version="1.4"
2ace9480 1318ac_aux_dir=
1319for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1320 if test -f $ac_dir/install-sh; then
1321 ac_aux_dir=$ac_dir
1322 ac_install_sh="$ac_aux_dir/install-sh -c"
1323 break
1324 elif test -f $ac_dir/install.sh; then
1325 ac_aux_dir=$ac_dir
1326 ac_install_sh="$ac_aux_dir/install.sh -c"
1327 break
7f9838a7 1328 elif test -f $ac_dir/shtool; then
1329 ac_aux_dir=$ac_dir
1330 ac_install_sh="$ac_aux_dir/shtool install -c"
1331 break
2ace9480 1332 fi
1333done
1334if test -z "$ac_aux_dir"; then
7f9838a7 1335 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1336echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1337 { (exit 1); exit 1; }; }
2ace9480 1338fi
7f9838a7 1339ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1340ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1341ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2ace9480 1342
2ace9480 1343# Find a good install program. We prefer a C program (faster),
1344# so one script is as good as another. But avoid the broken or
1345# incompatible versions:
1346# SysV /etc/install, /usr/sbin/install
1347# SunOS /usr/etc/install
1348# IRIX /sbin/install
1349# AIX /bin/install
7f9838a7 1350# AmigaOS /C/install, which installs bootblocks on floppy discs
2ace9480 1351# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1352# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1353# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7f9838a7 1354# OS/2's system install, which has a completely different semantic
2ace9480 1355# ./install, which can be erroneously created by make from ./install.sh.
7f9838a7 1356echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1357echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2ace9480 1358if test -z "$INSTALL"; then
7f9838a7 1359if test "${ac_cv_path_install+set}" = set; then
1360 echo $ECHO_N "(cached) $ECHO_C" >&6
1361else
1362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1363for as_dir in $PATH
1364do
1365 IFS=$as_save_IFS
1366 test -z "$as_dir" && as_dir=.
1367 # Account for people who put trailing slashes in PATH elements.
1368case $as_dir/ in
1369 ./ | .// | /cC/* | \
1370 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1371 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1372 /usr/ucb/* ) ;;
1373 *)
1374 # OSF1 and SCO ODT 3.0 have their own names for install.
1375 # Don't use installbsd from OSF since it installs stuff as root
1376 # by default.
1377 for ac_prog in ginstall scoinst install; do
1378 for ac_exec_ext in '' $ac_executable_extensions; do
1379 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2ace9480 1380 if test $ac_prog = install &&
7f9838a7 1381 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2ace9480 1382 # AIX install. It has an incompatible calling convention.
1383 :
7f9838a7 1384 elif test $ac_prog = install &&
1385 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1386 # program-specific install script used by HP pwplus--don't use.
1387 :
2ace9480 1388 else
7f9838a7 1389 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1390 break 3
2ace9480 1391 fi
1392 fi
1393 done
7f9838a7 1394 done
1395 ;;
1396esac
1397done
1398
2ace9480 1399
1400fi
1401 if test "${ac_cv_path_install+set}" = set; then
7f9838a7 1402 INSTALL=$ac_cv_path_install
2ace9480 1403 else
1404 # As a last resort, use the slow shell script. We don't cache a
1405 # path for INSTALL within a source directory, because that will
1406 # break other packages using the cache if that directory is
1407 # removed, or if the path is relative.
7f9838a7 1408 INSTALL=$ac_install_sh
2ace9480 1409 fi
1410fi
7f9838a7 1411echo "$as_me:$LINENO: result: $INSTALL" >&5
1412echo "${ECHO_T}$INSTALL" >&6
2ace9480 1413
1414# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1415# It thinks the first close brace ends the variable substitution.
1416test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1417
7f9838a7 1418test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2ace9480 1419
1420test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1421
7f9838a7 1422echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1423echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2ace9480 1424# Just in case
1425sleep 1
1426echo timestamp > conftestfile
1427# Do `set' in a subshell so we don't clobber the current shell's
1428# arguments. Must try -L first in case configure is actually a
1429# symlink; some systems play weird games with the mod time of symlinks
1430# (eg FreeBSD returns the mod time of the symlink's containing
1431# directory).
1432if (
1433 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1434 if test "$*" = "X"; then
1435 # -L didn't work.
1436 set X `ls -t $srcdir/configure conftestfile`
1437 fi
1438 if test "$*" != "X $srcdir/configure conftestfile" \
1439 && test "$*" != "X conftestfile $srcdir/configure"; then
1440
1441 # If neither matched, then we have a broken ls. This can happen
1442 # if, for instance, CONFIG_SHELL is bash and it inherits a
1443 # broken ls alias from the environment. This has actually
1444 # happened. Such a system could not be considered "sane".
7f9838a7 1445 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1446alias in your environment" >&5
1447echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1448alias in your environment" >&2;}
1449 { (exit 1); exit 1; }; }
2ace9480 1450 fi
1451
1452 test "$2" = conftestfile
1453 )
1454then
1455 # Ok.
1456 :
1457else
7f9838a7 1458 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1459Check your system clock" >&5
1460echo "$as_me: error: newly created file is older than distributed files!
1461Check your system clock" >&2;}
1462 { (exit 1); exit 1; }; }
2ace9480 1463fi
1464rm -f conftest*
7f9838a7 1465echo "$as_me:$LINENO: result: yes" >&5
1466echo "${ECHO_T}yes" >&6
2ace9480 1467test "$program_prefix" != NONE &&
7f9838a7 1468 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2ace9480 1469# Use a double $ so make ignores it.
1470test "$program_suffix" != NONE &&
7f9838a7 1471 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1472# Double any \ or $. echo might interpret backslashes.
1473# By default was `s,x,x', remove it if useless.
1474cat <<\_ACEOF >conftest.sed
1475s/[\\$]/&&/g;s/;s,x,x,$//
1476_ACEOF
1477program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1478rm conftest.sed
1479
1480echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1481echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1482set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1483if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1484 echo $ECHO_N "(cached) $ECHO_C" >&6
2ace9480 1485else
7f9838a7 1486 cat >conftest.make <<\_ACEOF
2ace9480 1487all:
7f9838a7 1488 @echo 'ac_maketemp="$(MAKE)"'
1489_ACEOF
2ace9480 1490# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7f9838a7 1491eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2ace9480 1492if test -n "$ac_maketemp"; then
1493 eval ac_cv_prog_make_${ac_make}_set=yes
1494else
1495 eval ac_cv_prog_make_${ac_make}_set=no
1496fi
7f9838a7 1497rm -f conftest.make
2ace9480 1498fi
1499if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7f9838a7 1500 echo "$as_me:$LINENO: result: yes" >&5
1501echo "${ECHO_T}yes" >&6
2ace9480 1502 SET_MAKE=
1503else
7f9838a7 1504 echo "$as_me:$LINENO: result: no" >&5
1505echo "${ECHO_T}no" >&6
2ace9480 1506 SET_MAKE="MAKE=${MAKE-make}"
1507fi
1508
1509
1510PACKAGE=thales
1511
abc8fbe5 1512VERSION=1.0
2ace9480 1513
1514if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
7f9838a7 1515 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1516echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1517 { (exit 1); exit 1; }; }
2ace9480 1518fi
7f9838a7 1519
1520cat >>confdefs.h <<_ACEOF
2ace9480 1521#define PACKAGE "$PACKAGE"
7f9838a7 1522_ACEOF
1523
2ace9480 1524
7f9838a7 1525cat >>confdefs.h <<_ACEOF
2ace9480 1526#define VERSION "$VERSION"
7f9838a7 1527_ACEOF
2ace9480 1528
1529
1530
1531missing_dir=`cd $ac_aux_dir && pwd`
7f9838a7 1532echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1533echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
2ace9480 1534# Run test in a subshell; some versions of sh will print an error if
1535# an executable is not found, even if stderr is redirected.
1536# Redirect stdin to placate older versions of autoconf. Sigh.
1537if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1538 ACLOCAL=aclocal-${am__api_version}
7f9838a7 1539 echo "$as_me:$LINENO: result: found" >&5
1540echo "${ECHO_T}found" >&6
2ace9480 1541else
1542 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
7f9838a7 1543 echo "$as_me:$LINENO: result: missing" >&5
1544echo "${ECHO_T}missing" >&6
2ace9480 1545fi
1546
7f9838a7 1547echo "$as_me:$LINENO: checking for working autoconf" >&5
1548echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
2ace9480 1549# Run test in a subshell; some versions of sh will print an error if
1550# an executable is not found, even if stderr is redirected.
1551# Redirect stdin to placate older versions of autoconf. Sigh.
1552if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1553 AUTOCONF=autoconf
7f9838a7 1554 echo "$as_me:$LINENO: result: found" >&5
1555echo "${ECHO_T}found" >&6
2ace9480 1556else
1557 AUTOCONF="$missing_dir/missing autoconf"
7f9838a7 1558 echo "$as_me:$LINENO: result: missing" >&5
1559echo "${ECHO_T}missing" >&6
2ace9480 1560fi
1561
7f9838a7 1562echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1563echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
2ace9480 1564# Run test in a subshell; some versions of sh will print an error if
1565# an executable is not found, even if stderr is redirected.
1566# Redirect stdin to placate older versions of autoconf. Sigh.
1567if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1568 AUTOMAKE=automake-${am__api_version}
7f9838a7 1569 echo "$as_me:$LINENO: result: found" >&5
1570echo "${ECHO_T}found" >&6
2ace9480 1571else
1572 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
7f9838a7 1573 echo "$as_me:$LINENO: result: missing" >&5
1574echo "${ECHO_T}missing" >&6
2ace9480 1575fi
1576
7f9838a7 1577echo "$as_me:$LINENO: checking for working autoheader" >&5
1578echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
2ace9480 1579# Run test in a subshell; some versions of sh will print an error if
1580# an executable is not found, even if stderr is redirected.
1581# Redirect stdin to placate older versions of autoconf. Sigh.
1582if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1583 AUTOHEADER=autoheader
7f9838a7 1584 echo "$as_me:$LINENO: result: found" >&5
1585echo "${ECHO_T}found" >&6
2ace9480 1586else
1587 AUTOHEADER="$missing_dir/missing autoheader"
7f9838a7 1588 echo "$as_me:$LINENO: result: missing" >&5
1589echo "${ECHO_T}missing" >&6
2ace9480 1590fi
1591
7f9838a7 1592echo "$as_me:$LINENO: checking for working makeinfo" >&5
1593echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
2ace9480 1594# Run test in a subshell; some versions of sh will print an error if
1595# an executable is not found, even if stderr is redirected.
1596# Redirect stdin to placate older versions of autoconf. Sigh.
1597if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1598 MAKEINFO=makeinfo
7f9838a7 1599 echo "$as_me:$LINENO: result: found" >&5
1600echo "${ECHO_T}found" >&6
2ace9480 1601else
1602 MAKEINFO="$missing_dir/missing makeinfo"
7f9838a7 1603 echo "$as_me:$LINENO: result: missing" >&5
1604echo "${ECHO_T}missing" >&6
2ace9480 1605fi
1606
1607
1608
7f9838a7 1609for ac_prog in gawk mawk nawk awk
2ace9480 1610do
7f9838a7 1611 # Extract the first word of "$ac_prog", so it can be a program name with args.
2ace9480 1612set dummy $ac_prog; ac_word=$2
7f9838a7 1613echo "$as_me:$LINENO: checking for $ac_word" >&5
1614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1615if test "${ac_cv_prog_AWK+set}" = set; then
1616 echo $ECHO_N "(cached) $ECHO_C" >&6
2ace9480 1617else
1618 if test -n "$AWK"; then
1619 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1620else
7f9838a7 1621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1622for as_dir in $PATH
1623do
1624 IFS=$as_save_IFS
1625 test -z "$as_dir" && as_dir=.
1626 for ac_exec_ext in '' $ac_executable_extensions; do
1627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1628 ac_cv_prog_AWK="$ac_prog"
1629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1630 break 2
1631 fi
1632done
1633done
1634
2ace9480 1635fi
1636fi
7f9838a7 1637AWK=$ac_cv_prog_AWK
2ace9480 1638if test -n "$AWK"; then
7f9838a7 1639 echo "$as_me:$LINENO: result: $AWK" >&5
1640echo "${ECHO_T}$AWK" >&6
2ace9480 1641else
7f9838a7 1642 echo "$as_me:$LINENO: result: no" >&5
1643echo "${ECHO_T}no" >&6
2ace9480 1644fi
1645
7f9838a7 1646 test -n "$AWK" && break
1647done
1648
1649ac_ext=c
1650ac_cpp='$CPP $CPPFLAGS'
1651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1653ac_compiler_gnu=$ac_cv_c_compiler_gnu
1654if test -n "$ac_tool_prefix"; then
1655 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1656set dummy ${ac_tool_prefix}gcc; ac_word=$2
1657echo "$as_me:$LINENO: checking for $ac_word" >&5
1658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1659if test "${ac_cv_prog_CC+set}" = set; then
1660 echo $ECHO_N "(cached) $ECHO_C" >&6
1661else
1662 if test -n "$CC"; then
1663 ac_cv_prog_CC="$CC" # Let the user override the test.
1664else
1665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666for as_dir in $PATH
1667do
1668 IFS=$as_save_IFS
1669 test -z "$as_dir" && as_dir=.
1670 for ac_exec_ext in '' $ac_executable_extensions; do
1671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1672 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1674 break 2
1675 fi
1676done
2ace9480 1677done
1678
7f9838a7 1679fi
1680fi
1681CC=$ac_cv_prog_CC
1682if test -n "$CC"; then
1683 echo "$as_me:$LINENO: result: $CC" >&5
1684echo "${ECHO_T}$CC" >&6
1685else
1686 echo "$as_me:$LINENO: result: no" >&5
1687echo "${ECHO_T}no" >&6
1688fi
1689
1690fi
1691if test -z "$ac_cv_prog_CC"; then
1692 ac_ct_CC=$CC
1693 # Extract the first word of "gcc", so it can be a program name with args.
2ace9480 1694set dummy gcc; ac_word=$2
7f9838a7 1695echo "$as_me:$LINENO: checking for $ac_word" >&5
1696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1697if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1698 echo $ECHO_N "(cached) $ECHO_C" >&6
1699else
1700 if test -n "$ac_ct_CC"; then
1701 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1702else
1703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1704for as_dir in $PATH
1705do
1706 IFS=$as_save_IFS
1707 test -z "$as_dir" && as_dir=.
1708 for ac_exec_ext in '' $ac_executable_extensions; do
1709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1710 ac_cv_prog_ac_ct_CC="gcc"
1711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1712 break 2
1713 fi
1714done
1715done
1716
1717fi
1718fi
1719ac_ct_CC=$ac_cv_prog_ac_ct_CC
1720if test -n "$ac_ct_CC"; then
1721 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1722echo "${ECHO_T}$ac_ct_CC" >&6
1723else
1724 echo "$as_me:$LINENO: result: no" >&5
1725echo "${ECHO_T}no" >&6
1726fi
1727
1728 CC=$ac_ct_CC
1729else
1730 CC="$ac_cv_prog_CC"
1731fi
1732
1733if test -z "$CC"; then
1734 if test -n "$ac_tool_prefix"; then
1735 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1736set dummy ${ac_tool_prefix}cc; ac_word=$2
1737echo "$as_me:$LINENO: checking for $ac_word" >&5
1738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1739if test "${ac_cv_prog_CC+set}" = set; then
1740 echo $ECHO_N "(cached) $ECHO_C" >&6
2ace9480 1741else
1742 if test -n "$CC"; then
1743 ac_cv_prog_CC="$CC" # Let the user override the test.
1744else
7f9838a7 1745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1746for as_dir in $PATH
1747do
1748 IFS=$as_save_IFS
1749 test -z "$as_dir" && as_dir=.
1750 for ac_exec_ext in '' $ac_executable_extensions; do
1751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1752 ac_cv_prog_CC="${ac_tool_prefix}cc"
1753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1754 break 2
1755 fi
1756done
1757done
1758
2ace9480 1759fi
1760fi
7f9838a7 1761CC=$ac_cv_prog_CC
2ace9480 1762if test -n "$CC"; then
7f9838a7 1763 echo "$as_me:$LINENO: result: $CC" >&5
1764echo "${ECHO_T}$CC" >&6
2ace9480 1765else
7f9838a7 1766 echo "$as_me:$LINENO: result: no" >&5
1767echo "${ECHO_T}no" >&6
2ace9480 1768fi
1769
7f9838a7 1770fi
1771if test -z "$ac_cv_prog_CC"; then
1772 ac_ct_CC=$CC
1773 # Extract the first word of "cc", so it can be a program name with args.
1774set dummy cc; ac_word=$2
1775echo "$as_me:$LINENO: checking for $ac_word" >&5
1776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1777if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1778 echo $ECHO_N "(cached) $ECHO_C" >&6
1779else
1780 if test -n "$ac_ct_CC"; then
1781 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1782else
1783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1784for as_dir in $PATH
1785do
1786 IFS=$as_save_IFS
1787 test -z "$as_dir" && as_dir=.
1788 for ac_exec_ext in '' $ac_executable_extensions; do
1789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1790 ac_cv_prog_ac_ct_CC="cc"
1791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1792 break 2
1793 fi
1794done
1795done
1796
1797fi
1798fi
1799ac_ct_CC=$ac_cv_prog_ac_ct_CC
1800if test -n "$ac_ct_CC"; then
1801 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1802echo "${ECHO_T}$ac_ct_CC" >&6
1803else
1804 echo "$as_me:$LINENO: result: no" >&5
1805echo "${ECHO_T}no" >&6
1806fi
1807
1808 CC=$ac_ct_CC
1809else
1810 CC="$ac_cv_prog_CC"
1811fi
1812
1813fi
2ace9480 1814if test -z "$CC"; then
1815 # Extract the first word of "cc", so it can be a program name with args.
1816set dummy cc; ac_word=$2
7f9838a7 1817echo "$as_me:$LINENO: checking for $ac_word" >&5
1818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1819if test "${ac_cv_prog_CC+set}" = set; then
1820 echo $ECHO_N "(cached) $ECHO_C" >&6
2ace9480 1821else
1822 if test -n "$CC"; then
1823 ac_cv_prog_CC="$CC" # Let the user override the test.
1824else
2ace9480 1825 ac_prog_rejected=no
7f9838a7 1826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1827for as_dir in $PATH
1828do
1829 IFS=$as_save_IFS
1830 test -z "$as_dir" && as_dir=.
1831 for ac_exec_ext in '' $ac_executable_extensions; do
1832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1833 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1834 ac_prog_rejected=yes
1835 continue
1836 fi
1837 ac_cv_prog_CC="cc"
1838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1839 break 2
1840 fi
1841done
1842done
1843
2ace9480 1844if test $ac_prog_rejected = yes; then
1845 # We found a bogon in the path, so make sure we never use it.
1846 set dummy $ac_cv_prog_CC
1847 shift
7f9838a7 1848 if test $# != 0; then
2ace9480 1849 # We chose a different compiler from the bogus one.
1850 # However, it has the same basename, so the bogon will be chosen
1851 # first if we set CC to just the basename; use the full file name.
1852 shift
7f9838a7 1853 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2ace9480 1854 fi
1855fi
1856fi
1857fi
7f9838a7 1858CC=$ac_cv_prog_CC
2ace9480 1859if test -n "$CC"; then
7f9838a7 1860 echo "$as_me:$LINENO: result: $CC" >&5
1861echo "${ECHO_T}$CC" >&6
2ace9480 1862else
7f9838a7 1863 echo "$as_me:$LINENO: result: no" >&5
1864echo "${ECHO_T}no" >&6
2ace9480 1865fi
1866
7f9838a7 1867fi
1868if test -z "$CC"; then
1869 if test -n "$ac_tool_prefix"; then
1870 for ac_prog in cl
1871 do
1872 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1873set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1874echo "$as_me:$LINENO: checking for $ac_word" >&5
1875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1876if test "${ac_cv_prog_CC+set}" = set; then
1877 echo $ECHO_N "(cached) $ECHO_C" >&6
2ace9480 1878else
1879 if test -n "$CC"; then
1880 ac_cv_prog_CC="$CC" # Let the user override the test.
1881else
7f9838a7 1882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1883for as_dir in $PATH
1884do
1885 IFS=$as_save_IFS
1886 test -z "$as_dir" && as_dir=.
1887 for ac_exec_ext in '' $ac_executable_extensions; do
1888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1889 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1891 break 2
1892 fi
1893done
1894done
1895
2ace9480 1896fi
1897fi
7f9838a7 1898CC=$ac_cv_prog_CC
2ace9480 1899if test -n "$CC"; then
7f9838a7 1900 echo "$as_me:$LINENO: result: $CC" >&5
1901echo "${ECHO_T}$CC" >&6
2ace9480 1902else
7f9838a7 1903 echo "$as_me:$LINENO: result: no" >&5
1904echo "${ECHO_T}no" >&6
2ace9480 1905fi
7f9838a7 1906
1907 test -n "$CC" && break
1908 done
1909fi
1910if test -z "$CC"; then
1911 ac_ct_CC=$CC
1912 for ac_prog in cl
1913do
1914 # Extract the first word of "$ac_prog", so it can be a program name with args.
1915set dummy $ac_prog; ac_word=$2
1916echo "$as_me:$LINENO: checking for $ac_word" >&5
1917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1918if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1920else
1921 if test -n "$ac_ct_CC"; then
1922 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1923else
1924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925for as_dir in $PATH
1926do
1927 IFS=$as_save_IFS
1928 test -z "$as_dir" && as_dir=.
1929 for ac_exec_ext in '' $ac_executable_extensions; do
1930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1931 ac_cv_prog_ac_ct_CC="$ac_prog"
1932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933 break 2
2ace9480 1934 fi
7f9838a7 1935done
1936done
1937
1938fi
1939fi
1940ac_ct_CC=$ac_cv_prog_ac_ct_CC
1941if test -n "$ac_ct_CC"; then
1942 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1943echo "${ECHO_T}$ac_ct_CC" >&6
1944else
1945 echo "$as_me:$LINENO: result: no" >&5
1946echo "${ECHO_T}no" >&6
2ace9480 1947fi
1948
7f9838a7 1949 test -n "$ac_ct_CC" && break
1950done
2ace9480 1951
7f9838a7 1952 CC=$ac_ct_CC
1953fi
1954
1955fi
1956
1957
1958test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1959See \`config.log' for more details." >&5
1960echo "$as_me: error: no acceptable C compiler found in \$PATH
1961See \`config.log' for more details." >&2;}
1962 { (exit 1); exit 1; }; }
1963
1964# Provide some information about the compiler.
1965echo "$as_me:$LINENO:" \
1966 "checking for C compiler version" >&5
1967ac_compiler=`set X $ac_compile; echo $2`
1968{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1969 (eval $ac_compiler --version </dev/null >&5) 2>&5
1970 ac_status=$?
1971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972 (exit $ac_status); }
1973{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1974 (eval $ac_compiler -v </dev/null >&5) 2>&5
1975 ac_status=$?
1976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977 (exit $ac_status); }
1978{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1979 (eval $ac_compiler -V </dev/null >&5) 2>&5
1980 ac_status=$?
1981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982 (exit $ac_status); }
1983
1984cat >conftest.$ac_ext <<_ACEOF
1985/* confdefs.h. */
1986_ACEOF
1987cat confdefs.h >>conftest.$ac_ext
1988cat >>conftest.$ac_ext <<_ACEOF
1989/* end confdefs.h. */
1990
1991int
1992main ()
1993{
1994
1995 ;
1996 return 0;
1997}
1998_ACEOF
1999ac_clean_files_save=$ac_clean_files
2000ac_clean_files="$ac_clean_files a.out a.exe b.out"
2001# Try to create an executable without -o first, disregard a.out.
2002# It will help us diagnose broken compilers, and finding out an intuition
2003# of exeext.
2004echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2005echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2006ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2007if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2008 (eval $ac_link_default) 2>&5
2009 ac_status=$?
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011 (exit $ac_status); }; then
2012 # Find the output, starting from the most likely. This scheme is
2013# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2014# resort.
2015
2016# Be careful to initialize this variable, since it used to be cached.
2017# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2018ac_cv_exeext=
2019# b.out is created by i960 compilers.
2020for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2021do
2022 test -f "$ac_file" || continue
2023 case $ac_file in
2024 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2025 ;;
2026 conftest.$ac_ext )
2027 # This is the source file.
2028 ;;
2029 [ab].out )
2030 # We found the default executable, but exeext='' is most
2031 # certainly right.
2032 break;;
2033 *.* )
2034 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2035 # FIXME: I believe we export ac_cv_exeext for Libtool,
2036 # but it would be cool to find out if it's true. Does anybody
2037 # maintain Libtool? --akim.
2038 export ac_cv_exeext
2039 break;;
2040 * )
2041 break;;
2042 esac
2043done
2044else
2045 echo "$as_me: failed program was:" >&5
2046sed 's/^/| /' conftest.$ac_ext >&5
2047
2048{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2049See \`config.log' for more details." >&5
2050echo "$as_me: error: C compiler cannot create executables
2051See \`config.log' for more details." >&2;}
2052 { (exit 77); exit 77; }; }
2053fi
2054
2055ac_exeext=$ac_cv_exeext
2056echo "$as_me:$LINENO: result: $ac_file" >&5
2057echo "${ECHO_T}$ac_file" >&6
2058
2059# Check the compiler produces executables we can run. If not, either
2060# the compiler is broken, or we cross compile.
2061echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2062echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2063# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2064# If not cross compiling, check that we can run a simple program.
2065if test "$cross_compiling" != yes; then
2066 if { ac_try='./$ac_file'
2067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2068 (eval $ac_try) 2>&5
2069 ac_status=$?
2070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071 (exit $ac_status); }; }; then
2072 cross_compiling=no
2ace9480 2073 else
7f9838a7 2074 if test "$cross_compiling" = maybe; then
2075 cross_compiling=yes
2076 else
2077 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2078If you meant to cross compile, use \`--host'.
2079See \`config.log' for more details." >&5
2080echo "$as_me: error: cannot run C compiled programs.
2081If you meant to cross compile, use \`--host'.
2082See \`config.log' for more details." >&2;}
2083 { (exit 1); exit 1; }; }
2084 fi
2ace9480 2085 fi
2ace9480 2086fi
7f9838a7 2087echo "$as_me:$LINENO: result: yes" >&5
2088echo "${ECHO_T}yes" >&6
2089
2090rm -f a.out a.exe conftest$ac_cv_exeext b.out
2091ac_clean_files=$ac_clean_files_save
2092# Check the compiler produces executables we can run. If not, either
2093# the compiler is broken, or we cross compile.
2094echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2095echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2096echo "$as_me:$LINENO: result: $cross_compiling" >&5
2097echo "${ECHO_T}$cross_compiling" >&6
2098
2099echo "$as_me:$LINENO: checking for suffix of executables" >&5
2100echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2102 (eval $ac_link) 2>&5
2103 ac_status=$?
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); }; then
2106 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2107# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2108# work properly (i.e., refer to `conftest.exe'), while it won't with
2109# `rm'.
2110for ac_file in conftest.exe conftest conftest.*; do
2111 test -f "$ac_file" || continue
2112 case $ac_file in
2113 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2114 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2115 export ac_cv_exeext
2116 break;;
2117 * ) break;;
2118 esac
2119done
2ace9480 2120else
7f9838a7 2121 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2122See \`config.log' for more details." >&5
2123echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2124See \`config.log' for more details." >&2;}
2125 { (exit 1); exit 1; }; }
2126fi
2127
2128rm -f conftest$ac_cv_exeext
2129echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2130echo "${ECHO_T}$ac_cv_exeext" >&6
2131
2132rm -f conftest.$ac_ext
2133EXEEXT=$ac_cv_exeext
2134ac_exeext=$EXEEXT
2135echo "$as_me:$LINENO: checking for suffix of object files" >&5
2136echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2137if test "${ac_cv_objext+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2139else
2140 cat >conftest.$ac_ext <<_ACEOF
2141/* confdefs.h. */
2142_ACEOF
2143cat confdefs.h >>conftest.$ac_ext
2144cat >>conftest.$ac_ext <<_ACEOF
2145/* end confdefs.h. */
2146
2147int
2148main ()
2149{
2150
2151 ;
2152 return 0;
2153}
2154_ACEOF
2155rm -f conftest.o conftest.obj
2156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2157 (eval $ac_compile) 2>&5
2158 ac_status=$?
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; then
2161 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2162 case $ac_file in
2163 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2164 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2165 break;;
2166 esac
2167done
2168else
2169 echo "$as_me: failed program was:" >&5
2170sed 's/^/| /' conftest.$ac_ext >&5
2171
2172{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2173See \`config.log' for more details." >&5
2174echo "$as_me: error: cannot compute suffix of object files: cannot compile
2175See \`config.log' for more details." >&2;}
2176 { (exit 1); exit 1; }; }
2177fi
2178
2179rm -f conftest.$ac_cv_objext conftest.$ac_ext
2180fi
2181echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2182echo "${ECHO_T}$ac_cv_objext" >&6
2183OBJEXT=$ac_cv_objext
2184ac_objext=$OBJEXT
2185echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2186echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2187if test "${ac_cv_c_compiler_gnu+set}" = set; then
2188 echo $ECHO_N "(cached) $ECHO_C" >&6
2189else
2190 cat >conftest.$ac_ext <<_ACEOF
2191/* confdefs.h. */
2192_ACEOF
2193cat confdefs.h >>conftest.$ac_ext
2194cat >>conftest.$ac_ext <<_ACEOF
2195/* end confdefs.h. */
2196
2197int
2198main ()
2199{
2200#ifndef __GNUC__
2201 choke me
2202#endif
2ace9480 2203
7f9838a7 2204 ;
2205 return 0;
2206}
2207_ACEOF
2208rm -f conftest.$ac_objext
2209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2210 (eval $ac_compile) 2>conftest.er1
2211 ac_status=$?
2212 grep -v '^ *+' conftest.er1 >conftest.err
2213 rm -f conftest.er1
2214 cat conftest.err >&5
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); } &&
2217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2219 (eval $ac_try) 2>&5
2220 ac_status=$?
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); }; } &&
2223 { ac_try='test -s conftest.$ac_objext'
2224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2225 (eval $ac_try) 2>&5
2226 ac_status=$?
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); }; }; then
2229 ac_compiler_gnu=yes
2ace9480 2230else
7f9838a7 2231 echo "$as_me: failed program was:" >&5
2232sed 's/^/| /' conftest.$ac_ext >&5
2233
2234ac_compiler_gnu=no
2ace9480 2235fi
7f9838a7 2236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2237ac_cv_c_compiler_gnu=$ac_compiler_gnu
2ace9480 2238
7f9838a7 2239fi
2240echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2241echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2242GCC=`test $ac_compiler_gnu = yes && echo yes`
2243ac_test_CFLAGS=${CFLAGS+set}
2244ac_save_CFLAGS=$CFLAGS
2245CFLAGS="-g"
2246echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2247echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2248if test "${ac_cv_prog_cc_g+set}" = set; then
2249 echo $ECHO_N "(cached) $ECHO_C" >&6
2ace9480 2250else
7f9838a7 2251 cat >conftest.$ac_ext <<_ACEOF
2252/* confdefs.h. */
2253_ACEOF
2254cat confdefs.h >>conftest.$ac_ext
2255cat >>conftest.$ac_ext <<_ACEOF
2256/* end confdefs.h. */
2257
2258int
2259main ()
2260{
2261
2262 ;
2263 return 0;
2264}
2265_ACEOF
2266rm -f conftest.$ac_objext
2267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2268 (eval $ac_compile) 2>conftest.er1
2269 ac_status=$?
2270 grep -v '^ *+' conftest.er1 >conftest.err
2271 rm -f conftest.er1
2272 cat conftest.err >&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); } &&
2275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277 (eval $ac_try) 2>&5
2278 ac_status=$?
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; } &&
2281 { ac_try='test -s conftest.$ac_objext'
2282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283 (eval $ac_try) 2>&5
2284 ac_status=$?
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }; }; then
2ace9480 2287 ac_cv_prog_cc_g=yes
2288else
7f9838a7 2289 echo "$as_me: failed program was:" >&5
2290sed 's/^/| /' conftest.$ac_ext >&5
2ace9480 2291
7f9838a7 2292ac_cv_prog_cc_g=no
2ace9480 2293fi
7f9838a7 2294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2295fi
2296echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2297echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2ace9480 2298if test "$ac_test_CFLAGS" = set; then
7f9838a7 2299 CFLAGS=$ac_save_CFLAGS
2ace9480 2300elif test $ac_cv_prog_cc_g = yes; then
2301 if test "$GCC" = yes; then
2302 CFLAGS="-g -O2"
2303 else
2304 CFLAGS="-g"
2305 fi
2306else
2307 if test "$GCC" = yes; then
2308 CFLAGS="-O2"
2309 else
2310 CFLAGS=
2311 fi
2312fi
7f9838a7 2313echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2314echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2315if test "${ac_cv_prog_cc_stdc+set}" = set; then
2316 echo $ECHO_N "(cached) $ECHO_C" >&6
2317else
2318 ac_cv_prog_cc_stdc=no
2319ac_save_CC=$CC
2320cat >conftest.$ac_ext <<_ACEOF
2321/* confdefs.h. */
2322_ACEOF
2323cat confdefs.h >>conftest.$ac_ext
2324cat >>conftest.$ac_ext <<_ACEOF
2325/* end confdefs.h. */
2326#include <stdarg.h>
2327#include <stdio.h>
2328#include <sys/types.h>
2329#include <sys/stat.h>
2330/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2331struct buf { int x; };
2332FILE * (*rcsopen) (struct buf *, struct stat *, int);
2333static char *e (p, i)
2334 char **p;
2335 int i;
2336{
2337 return p[i];
2338}
2339static char *f (char * (*g) (char **, int), char **p, ...)
2340{
2341 char *s;
2342 va_list v;
2343 va_start (v,p);
2344 s = g (p, va_arg (v,int));
2345 va_end (v);
2346 return s;
2347}
2348
2349/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2350 function prototypes and stuff, but not '\xHH' hex character constants.
2351 These don't provoke an error unfortunately, instead are silently treated
2352 as 'x'. The following induces an error, until -std1 is added to get
2353 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2354 array size at least. It's necessary to write '\x00'==0 to get something
2355 that's true only with -std1. */
2356int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2357
2358int test (int i, double x);
2359struct s1 {int (*f) (int a);};
2360struct s2 {int (*f) (double a);};
2361int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2362int argc;
2363char **argv;
2364int
2365main ()
2366{
2367return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2368 ;
2369 return 0;
2370}
2371_ACEOF
2372# Don't try gcc -ansi; that turns off useful extensions and
2373# breaks some systems' header files.
2374# AIX -qlanglvl=ansi
2375# Ultrix and OSF/1 -std1
2376# HP-UX 10.20 and later -Ae
2377# HP-UX older versions -Aa -D_HPUX_SOURCE
2378# SVR4 -Xc -D__EXTENSIONS__
2379for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2380do
2381 CC="$ac_save_CC $ac_arg"
2382 rm -f conftest.$ac_objext
2383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2384 (eval $ac_compile) 2>conftest.er1
2385 ac_status=$?
2386 grep -v '^ *+' conftest.er1 >conftest.err
2387 rm -f conftest.er1
2388 cat conftest.err >&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); } &&
2391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393 (eval $ac_try) 2>&5
2394 ac_status=$?
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; } &&
2397 { ac_try='test -s conftest.$ac_objext'
2398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399 (eval $ac_try) 2>&5
2400 ac_status=$?
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; }; then
2403 ac_cv_prog_cc_stdc=$ac_arg
2404break
2405else
2406 echo "$as_me: failed program was:" >&5
2407sed 's/^/| /' conftest.$ac_ext >&5
2408
2409fi
2410rm -f conftest.err conftest.$ac_objext
2411done
2412rm -f conftest.$ac_ext conftest.$ac_objext
2413CC=$ac_save_CC
2414
2415fi
2416
2417case "x$ac_cv_prog_cc_stdc" in
2418 x|xno)
2419 echo "$as_me:$LINENO: result: none needed" >&5
2420echo "${ECHO_T}none needed" >&6 ;;
2421 *)
2422 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2423echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2424 CC="$CC $ac_cv_prog_cc_stdc" ;;
2425esac
2426
2427# Some people use a C++ compiler to compile C. Since we use `exit',
2428# in C++ we need to declare it. In case someone uses the same compiler
2429# for both compiling C and C++ we need to have the C++ compiler decide
2430# the declaration of exit, since it's the most demanding environment.
2431cat >conftest.$ac_ext <<_ACEOF
2432#ifndef __cplusplus
2433 choke me
2434#endif
2435_ACEOF
2436rm -f conftest.$ac_objext
2437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2438 (eval $ac_compile) 2>conftest.er1
2439 ac_status=$?
2440 grep -v '^ *+' conftest.er1 >conftest.err
2441 rm -f conftest.er1
2442 cat conftest.err >&5
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); } &&
2445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447 (eval $ac_try) 2>&5
2448 ac_status=$?
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; } &&
2451 { ac_try='test -s conftest.$ac_objext'
2452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2453 (eval $ac_try) 2>&5
2454 ac_status=$?
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }; }; then
2457 for ac_declaration in \
2458 '' \
2459 'extern "C" void std::exit (int) throw (); using std::exit;' \
2460 'extern "C" void std::exit (int); using std::exit;' \
2461 'extern "C" void exit (int) throw ();' \
2462 'extern "C" void exit (int);' \
2463 'void exit (int);'
2464do
2465 cat >conftest.$ac_ext <<_ACEOF
2466/* confdefs.h. */
2467_ACEOF
2468cat confdefs.h >>conftest.$ac_ext
2469cat >>conftest.$ac_ext <<_ACEOF
2470/* end confdefs.h. */
2471$ac_declaration
2472#include <stdlib.h>
2473int
2474main ()
2475{
2476exit (42);
2477 ;
2478 return 0;
2479}
2480_ACEOF
2481rm -f conftest.$ac_objext
2482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2483 (eval $ac_compile) 2>conftest.er1
2484 ac_status=$?
2485 grep -v '^ *+' conftest.er1 >conftest.err
2486 rm -f conftest.er1
2487 cat conftest.err >&5
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); } &&
2490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2492 (eval $ac_try) 2>&5
2493 ac_status=$?
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); }; } &&
2496 { ac_try='test -s conftest.$ac_objext'
2497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2498 (eval $ac_try) 2>&5
2499 ac_status=$?
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }; }; then
2502 :
2503else
2504 echo "$as_me: failed program was:" >&5
2505sed 's/^/| /' conftest.$ac_ext >&5
2506
2507continue
2508fi
2509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2510 cat >conftest.$ac_ext <<_ACEOF
2511/* confdefs.h. */
2512_ACEOF
2513cat confdefs.h >>conftest.$ac_ext
2514cat >>conftest.$ac_ext <<_ACEOF
2515/* end confdefs.h. */
2516$ac_declaration
2517int
2518main ()
2519{
2520exit (42);
2521 ;
2522 return 0;
2523}
2524_ACEOF
2525rm -f conftest.$ac_objext
2526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2527 (eval $ac_compile) 2>conftest.er1
2528 ac_status=$?
2529 grep -v '^ *+' conftest.er1 >conftest.err
2530 rm -f conftest.er1
2531 cat conftest.err >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); } &&
2534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536 (eval $ac_try) 2>&5
2537 ac_status=$?
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; } &&
2540 { ac_try='test -s conftest.$ac_objext'
2541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2542 (eval $ac_try) 2>&5
2543 ac_status=$?
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); }; }; then
2546 break
2547else
2548 echo "$as_me: failed program was:" >&5
2549sed 's/^/| /' conftest.$ac_ext >&5
2550
2551fi
2552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2553done
2554rm -f conftest*
2555if test -n "$ac_declaration"; then
2556 echo '#ifdef __cplusplus' >>confdefs.h
2557 echo $ac_declaration >>confdefs.h
2558 echo '#endif' >>confdefs.h
2559fi
2560
2561else
2562 echo "$as_me: failed program was:" >&5
2563sed 's/^/| /' conftest.$ac_ext >&5
2564
2565fi
2566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2567ac_ext=c
2568ac_cpp='$CPP $CPPFLAGS'
2569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2571ac_compiler_gnu=$ac_cv_c_compiler_gnu
2ace9480 2572
2573# Find a good install program. We prefer a C program (faster),
2574# so one script is as good as another. But avoid the broken or
2575# incompatible versions:
2576# SysV /etc/install, /usr/sbin/install
2577# SunOS /usr/etc/install
2578# IRIX /sbin/install
2579# AIX /bin/install
7f9838a7 2580# AmigaOS /C/install, which installs bootblocks on floppy discs
2ace9480 2581# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2582# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2583# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7f9838a7 2584# OS/2's system install, which has a completely different semantic
2ace9480 2585# ./install, which can be erroneously created by make from ./install.sh.
7f9838a7 2586echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2587echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2ace9480 2588if test -z "$INSTALL"; then
7f9838a7 2589if test "${ac_cv_path_install+set}" = set; then
2590 echo $ECHO_N "(cached) $ECHO_C" >&6
2591else
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593for as_dir in $PATH
2594do
2595 IFS=$as_save_IFS
2596 test -z "$as_dir" && as_dir=.
2597 # Account for people who put trailing slashes in PATH elements.
2598case $as_dir/ in
2599 ./ | .// | /cC/* | \
2600 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2601 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2602 /usr/ucb/* ) ;;
2603 *)
2604 # OSF1 and SCO ODT 3.0 have their own names for install.
2605 # Don't use installbsd from OSF since it installs stuff as root
2606 # by default.
2607 for ac_prog in ginstall scoinst install; do
2608 for ac_exec_ext in '' $ac_executable_extensions; do
2609 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2ace9480 2610 if test $ac_prog = install &&
7f9838a7 2611 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2ace9480 2612 # AIX install. It has an incompatible calling convention.
2613 :
7f9838a7 2614 elif test $ac_prog = install &&
2615 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2616 # program-specific install script used by HP pwplus--don't use.
2617 :
2ace9480 2618 else
7f9838a7 2619 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2620 break 3
2ace9480 2621 fi
2622 fi
2623 done
7f9838a7 2624 done
2625 ;;
2626esac
2627done
2628
2ace9480 2629
2630fi
2631 if test "${ac_cv_path_install+set}" = set; then
7f9838a7 2632 INSTALL=$ac_cv_path_install
2ace9480 2633 else
2634 # As a last resort, use the slow shell script. We don't cache a
2635 # path for INSTALL within a source directory, because that will
2636 # break other packages using the cache if that directory is
2637 # removed, or if the path is relative.
7f9838a7 2638 INSTALL=$ac_install_sh
2ace9480 2639 fi
2640fi
7f9838a7 2641echo "$as_me:$LINENO: result: $INSTALL" >&5
2642echo "${ECHO_T}$INSTALL" >&6
2ace9480 2643
2644# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2645# It thinks the first close brace ends the variable substitution.
2646test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2647
7f9838a7 2648test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2ace9480 2649
2650test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2651
7f9838a7 2652echo "$as_me:$LINENO: checking whether ln -s works" >&5
2653echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2654LN_S=$as_ln_s
2655if test "$LN_S" = "ln -s"; then
2656 echo "$as_me:$LINENO: result: yes" >&5
2657echo "${ECHO_T}yes" >&6
2ace9480 2658else
7f9838a7 2659 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2660echo "${ECHO_T}no, using $LN_S" >&6
2ace9480 2661fi
2662
2663
7f9838a7 2664
2665echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
2666echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
2667if test "${ac_cv_lib_socket_connect+set}" = set; then
2668 echo $ECHO_N "(cached) $ECHO_C" >&6
2ace9480 2669else
7f9838a7 2670 ac_check_lib_save_LIBS=$LIBS
2ace9480 2671LIBS="-lsocket $LIBS"
7f9838a7 2672cat >conftest.$ac_ext <<_ACEOF
2673/* confdefs.h. */
2674_ACEOF
2675cat confdefs.h >>conftest.$ac_ext
2676cat >>conftest.$ac_ext <<_ACEOF
2677/* end confdefs.h. */
2678
2ace9480 2679/* Override any gcc2 internal prototype to avoid an error. */
7f9838a7 2680#ifdef __cplusplus
2681extern "C"
2682#endif
2ace9480 2683/* We use char because int might match the return type of a gcc2
7f9838a7 2684 builtin and then its argument prototype would still apply. */
2685char connect ();
2686int
2687main ()
2688{
2689connect ();
2690 ;
2691 return 0;
2692}
2693_ACEOF
2694rm -f conftest.$ac_objext conftest$ac_exeext
2695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2696 (eval $ac_link) 2>conftest.er1
2697 ac_status=$?
2698 grep -v '^ *+' conftest.er1 >conftest.err
2699 rm -f conftest.er1
2700 cat conftest.err >&5
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); } &&
2703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705 (eval $ac_try) 2>&5
2706 ac_status=$?
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; } &&
2709 { ac_try='test -s conftest$ac_exeext'
2710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711 (eval $ac_try) 2>&5
2712 ac_status=$?
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }; }; then
2715 ac_cv_lib_socket_connect=yes
2ace9480 2716else
7f9838a7 2717 echo "$as_me: failed program was:" >&5
2718sed 's/^/| /' conftest.$ac_ext >&5
2ace9480 2719
7f9838a7 2720ac_cv_lib_socket_connect=no
2721fi
2722rm -f conftest.err conftest.$ac_objext \
2723 conftest$ac_exeext conftest.$ac_ext
2724LIBS=$ac_check_lib_save_LIBS
2ace9480 2725fi
7f9838a7 2726echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
2727echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
2728if test $ac_cv_lib_socket_connect = yes; then
2ace9480 2729 gethostbyname
2ace9480 2730fi
2731
7f9838a7 2732
2733echo "$as_me:$LINENO: checking for compress in -lz" >&5
2734echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6
2735if test "${ac_cv_lib_z_compress+set}" = set; then
2736 echo $ECHO_N "(cached) $ECHO_C" >&6
2ace9480 2737else
7f9838a7 2738 ac_check_lib_save_LIBS=$LIBS
2ace9480 2739LIBS="-lz $LIBS"
7f9838a7 2740cat >conftest.$ac_ext <<_ACEOF
2741/* confdefs.h. */
2742_ACEOF
2743cat confdefs.h >>conftest.$ac_ext
2744cat >>conftest.$ac_ext <<_ACEOF
2745/* end confdefs.h. */
2746
2ace9480 2747/* Override any gcc2 internal prototype to avoid an error. */
7f9838a7 2748#ifdef __cplusplus
2749extern "C"
2750#endif
2ace9480 2751/* We use char because int might match the return type of a gcc2
7f9838a7 2752 builtin and then its argument prototype would still apply. */
2753char compress ();
2754int
2755main ()
2756{
2757compress ();
2758 ;
2759 return 0;
2760}
2761_ACEOF
2762rm -f conftest.$ac_objext conftest$ac_exeext
2763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2764 (eval $ac_link) 2>conftest.er1
2765 ac_status=$?
2766 grep -v '^ *+' conftest.er1 >conftest.err
2767 rm -f conftest.er1
2768 cat conftest.err >&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); } &&
2771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773 (eval $ac_try) 2>&5
2774 ac_status=$?
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }; } &&
2777 { ac_try='test -s conftest$ac_exeext'
2778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779 (eval $ac_try) 2>&5
2780 ac_status=$?
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }; }; then
2783 ac_cv_lib_z_compress=yes
2ace9480 2784else
7f9838a7 2785 echo "$as_me: failed program was:" >&5
2786sed 's/^/| /' conftest.$ac_ext >&5
2ace9480 2787
7f9838a7 2788ac_cv_lib_z_compress=no
2789fi
2790rm -f conftest.err conftest.$ac_objext \
2791 conftest$ac_exeext conftest.$ac_ext
2792LIBS=$ac_check_lib_save_LIBS
2ace9480 2793fi
7f9838a7 2794echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
2795echo "${ECHO_T}$ac_cv_lib_z_compress" >&6
2796if test $ac_cv_lib_z_compress = yes; then
2797 cat >>confdefs.h <<_ACEOF
2798#define HAVE_LIBZ 1
2799_ACEOF
2ace9480 2800
2801 LIBS="-lz $LIBS"
2802
2ace9480 2803fi
2804
7f9838a7 2805
2806echo "$as_me:$LINENO: checking for floor in -lm" >&5
2807echo $ECHO_N "checking for floor in -lm... $ECHO_C" >&6
2808if test "${ac_cv_lib_m_floor+set}" = set; then
2809 echo $ECHO_N "(cached) $ECHO_C" >&6
2ace9480 2810else
7f9838a7 2811 ac_check_lib_save_LIBS=$LIBS
2ace9480 2812LIBS="-lm $LIBS"
7f9838a7 2813cat >conftest.$ac_ext <<_ACEOF
2814/* confdefs.h. */
2815_ACEOF
2816cat confdefs.h >>conftest.$ac_ext
2817cat >>conftest.$ac_ext <<_ACEOF
2818/* end confdefs.h. */
2819
2ace9480 2820/* Override any gcc2 internal prototype to avoid an error. */
7f9838a7 2821#ifdef __cplusplus
2822extern "C"
2823#endif
2ace9480 2824/* We use char because int might match the return type of a gcc2
7f9838a7 2825 builtin and then its argument prototype would still apply. */
2826char floor ();
2827int
2828main ()
2829{
2830floor ();
2831 ;
2832 return 0;
2833}
2834_ACEOF
2835rm -f conftest.$ac_objext conftest$ac_exeext
2836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2837 (eval $ac_link) 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); } &&
2844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846 (eval $ac_try) 2>&5
2847 ac_status=$?
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); }; } &&
2850 { ac_try='test -s conftest$ac_exeext'
2851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852 (eval $ac_try) 2>&5
2853 ac_status=$?
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); }; }; then
2856 ac_cv_lib_m_floor=yes
2ace9480 2857else
7f9838a7 2858 echo "$as_me: failed program was:" >&5
2859sed 's/^/| /' conftest.$ac_ext >&5
2ace9480 2860
7f9838a7 2861ac_cv_lib_m_floor=no
2862fi
2863rm -f conftest.err conftest.$ac_objext \
2864 conftest$ac_exeext conftest.$ac_ext
2865LIBS=$ac_check_lib_save_LIBS
2ace9480 2866fi
7f9838a7 2867echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5
2868echo "${ECHO_T}$ac_cv_lib_m_floor" >&6
2869if test $ac_cv_lib_m_floor = yes; then
2870 cat >>confdefs.h <<_ACEOF
2871#define HAVE_LIBM 1
2872_ACEOF
2ace9480 2873
2874 LIBS="-lm $LIBS"
2875
2ace9480 2876fi
2877
2878
7f9838a7 2879ac_ext=c
2880ac_cpp='$CPP $CPPFLAGS'
2881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2883ac_compiler_gnu=$ac_cv_c_compiler_gnu
2884echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2885echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2ace9480 2886# On Suns, sometimes $CPP names a directory.
2887if test -n "$CPP" && test -d "$CPP"; then
2888 CPP=
2889fi
2890if test -z "$CPP"; then
7f9838a7 2891 if test "${ac_cv_prog_CPP+set}" = set; then
2892 echo $ECHO_N "(cached) $ECHO_C" >&6
2ace9480 2893else
7f9838a7 2894 # Double quotes because CPP needs to be expanded
2895 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2896 do
2897 ac_preproc_ok=false
2898for ac_c_preproc_warn_flag in '' yes
2899do
2900 # Use a header file that comes with gcc, so configuring glibc
2901 # with a fresh cross-compiler works.
2902 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2903 # <limits.h> exists even on freestanding compilers.
2ace9480 2904 # On the NeXT, cc -E runs the code through the compiler's parser,
7f9838a7 2905 # not just through cpp. "Syntax error" is here to catch this case.
2906 cat >conftest.$ac_ext <<_ACEOF
2907/* confdefs.h. */
2908_ACEOF
2909cat confdefs.h >>conftest.$ac_ext
2910cat >>conftest.$ac_ext <<_ACEOF
2911/* end confdefs.h. */
2912#ifdef __STDC__
2913# include <limits.h>
2914#else
2915# include <assert.h>
2916#endif
2917 Syntax error
2918_ACEOF
2919if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2921 ac_status=$?
2922 grep -v '^ *+' conftest.er1 >conftest.err
2923 rm -f conftest.er1
2924 cat conftest.err >&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); } >/dev/null; then
2927 if test -s conftest.err; then
2928 ac_cpp_err=$ac_c_preproc_warn_flag
2929 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2930 else
2931 ac_cpp_err=
2932 fi
2ace9480 2933else
7f9838a7 2934 ac_cpp_err=yes
2935fi
2936if test -z "$ac_cpp_err"; then
2ace9480 2937 :
2938else
7f9838a7 2939 echo "$as_me: failed program was:" >&5
2940sed 's/^/| /' conftest.$ac_ext >&5
2941
2942 # Broken: fails on valid input.
2943continue
2944fi
2945rm -f conftest.err conftest.$ac_ext
2946
2947 # OK, works on sane cases. Now check whether non-existent headers
2948 # can be detected and how.
2949 cat >conftest.$ac_ext <<_ACEOF
2950/* confdefs.h. */
2951_ACEOF
2952cat confdefs.h >>conftest.$ac_ext
2953cat >>conftest.$ac_ext <<_ACEOF
2954/* end confdefs.h. */
2955#include <ac_nonexistent.h>
2956_ACEOF
2957if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2958 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2959 ac_status=$?
2960 grep -v '^ *+' conftest.er1 >conftest.err
2961 rm -f conftest.er1
2962 cat conftest.err >&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); } >/dev/null; then
2965 if test -s conftest.err; then
2966 ac_cpp_err=$ac_c_preproc_warn_flag
2967 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2968 else
2969 ac_cpp_err=
2970 fi
2ace9480 2971else
7f9838a7 2972 ac_cpp_err=yes
2ace9480 2973fi
7f9838a7 2974if test -z "$ac_cpp_err"; then
2975 # Broken: success on invalid input.
2976continue
2977else
2978 echo "$as_me: failed program was:" >&5
2979sed 's/^/| /' conftest.$ac_ext >&5
2980
2981 # Passes both tests.
2982ac_preproc_ok=:
2983break
2ace9480 2984fi
7f9838a7 2985rm -f conftest.err conftest.$ac_ext
2986
2987done
2988# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2989rm -f conftest.err conftest.$ac_ext
2990if $ac_preproc_ok; then
2991 break
2ace9480 2992fi
7f9838a7 2993
2994 done
2995 ac_cv_prog_CPP=$CPP
2996
2ace9480 2997fi
7f9838a7 2998 CPP=$ac_cv_prog_CPP
2ace9480 2999else
7f9838a7 3000 ac_cv_prog_CPP=$CPP
2ace9480 3001fi
7f9838a7 3002echo "$as_me:$LINENO: result: $CPP" >&5
3003echo "${ECHO_T}$CPP" >&6
3004ac_preproc_ok=false
3005for ac_c_preproc_warn_flag in '' yes
3006do
3007 # Use a header file that comes with gcc, so configuring glibc
3008 # with a fresh cross-compiler works.
3009 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3010 # <limits.h> exists even on freestanding compilers.
3011 # On the NeXT, cc -E runs the code through the compiler's parser,
3012 # not just through cpp. "Syntax error" is here to catch this case.
3013 cat >conftest.$ac_ext <<_ACEOF
3014/* confdefs.h. */
3015_ACEOF
3016cat confdefs.h >>conftest.$ac_ext
3017cat >>conftest.$ac_ext <<_ACEOF
3018/* end confdefs.h. */
3019#ifdef __STDC__
3020# include <limits.h>
3021#else
3022# include <assert.h>
3023#endif
3024 Syntax error
3025_ACEOF
3026if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3028 ac_status=$?
3029 grep -v '^ *+' conftest.er1 >conftest.err
3030 rm -f conftest.er1
3031 cat conftest.err >&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); } >/dev/null; then
3034 if test -s conftest.err; then
3035 ac_cpp_err=$ac_c_preproc_warn_flag
3036 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3037 else
3038 ac_cpp_err=
3039 fi
3040else
3041 ac_cpp_err=yes
3042fi
3043if test -z "$ac_cpp_err"; then
3044 :
3045else
3046 echo "$as_me: failed program was:" >&5
3047sed 's/^/| /' conftest.$ac_ext >&5
3048
3049 # Broken: fails on valid input.
3050continue
3051fi
3052rm -f conftest.err conftest.$ac_ext
3053
3054 # OK, works on sane cases. Now check whether non-existent headers
3055 # can be detected and how.
3056 cat >conftest.$ac_ext <<_ACEOF
3057/* confdefs.h. */
3058_ACEOF
3059cat confdefs.h >>conftest.$ac_ext
3060cat >>conftest.$ac_ext <<_ACEOF
3061/* end confdefs.h. */
3062#include <ac_nonexistent.h>
3063_ACEOF
3064if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3066 ac_status=$?
3067 grep -v '^ *+' conftest.er1 >conftest.err
3068 rm -f conftest.er1
3069 cat conftest.err >&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); } >/dev/null; then
3072 if test -s conftest.err; then
3073 ac_cpp_err=$ac_c_preproc_warn_flag
3074 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3075 else
3076 ac_cpp_err=
3077 fi
3078else
3079 ac_cpp_err=yes
3080fi
3081if test -z "$ac_cpp_err"; then
3082 # Broken: success on invalid input.
3083continue
3084else
3085 echo "$as_me: failed program was:" >&5
3086sed 's/^/| /' conftest.$ac_ext >&5
3087
3088 # Passes both tests.
3089ac_preproc_ok=:
3090break
3091fi
3092rm -f conftest.err conftest.$ac_ext
3093
3094done
3095# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3096rm -f conftest.err conftest.$ac_ext
3097if $ac_preproc_ok; then
3098 :
3099else
3100 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3101See \`config.log' for more details." >&5
3102echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3103See \`config.log' for more details." >&2;}
3104 { (exit 1); exit 1; }; }
3105fi
3106
3107ac_ext=c
3108ac_cpp='$CPP $CPPFLAGS'
3109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3111ac_compiler_gnu=$ac_cv_c_compiler_gnu
3112
2ace9480 3113
7f9838a7 3114echo "$as_me:$LINENO: checking for egrep" >&5
3115echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3116if test "${ac_cv_prog_egrep+set}" = set; then
3117 echo $ECHO_N "(cached) $ECHO_C" >&6
2ace9480 3118else
7f9838a7 3119 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3120 then ac_cv_prog_egrep='grep -E'
3121 else ac_cv_prog_egrep='egrep'
3122 fi
3123fi
3124echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3125echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3126 EGREP=$ac_cv_prog_egrep
3127
3128
3129echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3130echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3131if test "${ac_cv_header_stdc+set}" = set; then
3132 echo $ECHO_N "(cached) $ECHO_C" >&6
3133else
3134 cat >conftest.$ac_ext <<_ACEOF
3135/* confdefs.h. */
3136_ACEOF
3137cat confdefs.h >>conftest.$ac_ext
3138cat >>conftest.$ac_ext <<_ACEOF
3139/* end confdefs.h. */
2ace9480 3140#include <stdlib.h>
3141#include <stdarg.h>
3142#include <string.h>
3143#include <float.h>
7f9838a7 3144
3145int
3146main ()
3147{
3148
3149 ;
3150 return 0;
3151}
3152_ACEOF
3153rm -f conftest.$ac_objext
3154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3155 (eval $ac_compile) 2>conftest.er1
3156 ac_status=$?
3157 grep -v '^ *+' conftest.er1 >conftest.err
3158 rm -f conftest.er1
3159 cat conftest.err >&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); } &&
3162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3164 (eval $ac_try) 2>&5
3165 ac_status=$?
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); }; } &&
3168 { ac_try='test -s conftest.$ac_objext'
3169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3170 (eval $ac_try) 2>&5
3171 ac_status=$?
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); }; }; then
2ace9480 3174 ac_cv_header_stdc=yes
3175else
7f9838a7 3176 echo "$as_me: failed program was:" >&5
3177sed 's/^/| /' conftest.$ac_ext >&5
3178
3179ac_cv_header_stdc=no
2ace9480 3180fi
7f9838a7 3181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ace9480 3182
3183if test $ac_cv_header_stdc = yes; then
3184 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7f9838a7 3185 cat >conftest.$ac_ext <<_ACEOF
3186/* confdefs.h. */
3187_ACEOF
3188cat confdefs.h >>conftest.$ac_ext
3189cat >>conftest.$ac_ext <<_ACEOF
3190/* end confdefs.h. */
2ace9480 3191#include <string.h>
7f9838a7 3192
3193_ACEOF
2ace9480 3194if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7f9838a7 3195 $EGREP "memchr" >/dev/null 2>&1; then
2ace9480 3196 :
3197else
2ace9480 3198 ac_cv_header_stdc=no
3199fi
3200rm -f conftest*
3201
3202fi
3203
3204if test $ac_cv_header_stdc = yes; then
3205 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7f9838a7 3206 cat >conftest.$ac_ext <<_ACEOF
3207/* confdefs.h. */
3208_ACEOF
3209cat confdefs.h >>conftest.$ac_ext
3210cat >>conftest.$ac_ext <<_ACEOF
3211/* end confdefs.h. */
2ace9480 3212#include <stdlib.h>
7f9838a7 3213
3214_ACEOF
2ace9480 3215if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7f9838a7 3216 $EGREP "free" >/dev/null 2>&1; then
2ace9480 3217 :
3218else
2ace9480 3219 ac_cv_header_stdc=no
3220fi
3221rm -f conftest*
3222
3223fi
3224
3225if test $ac_cv_header_stdc = yes; then
3226 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7f9838a7 3227 if test "$cross_compiling" = yes; then
2ace9480 3228 :
3229else
7f9838a7 3230 cat >conftest.$ac_ext <<_ACEOF
3231/* confdefs.h. */
3232_ACEOF
3233cat confdefs.h >>conftest.$ac_ext
3234cat >>conftest.$ac_ext <<_ACEOF
3235/* end confdefs.h. */
2ace9480 3236#include <ctype.h>
7f9838a7 3237#if ((' ' & 0x0FF) == 0x020)
3238# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3239# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3240#else
3241# define ISLOWER(c) \
3242 (('a' <= (c) && (c) <= 'i') \
3243 || ('j' <= (c) && (c) <= 'r') \
3244 || ('s' <= (c) && (c) <= 'z'))
3245# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3246#endif
3247
2ace9480 3248#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7f9838a7 3249int
3250main ()
3251{
3252 int i;
3253 for (i = 0; i < 256; i++)
3254 if (XOR (islower (i), ISLOWER (i))
3255 || toupper (i) != TOUPPER (i))
3256 exit(2);
3257 exit (0);
3258}
3259_ACEOF
3260rm -f conftest$ac_exeext
3261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3262 (eval $ac_link) 2>&5
3263 ac_status=$?
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267 (eval $ac_try) 2>&5
3268 ac_status=$?
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); }; }; then
3271 :
3272else
3273 echo "$as_me: program exited with status $ac_status" >&5
3274echo "$as_me: failed program was:" >&5
3275sed 's/^/| /' conftest.$ac_ext >&5
3276
3277( exit $ac_status )
3278ac_cv_header_stdc=no
3279fi
3280rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3281fi
3282fi
3283fi
3284echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3285echo "${ECHO_T}$ac_cv_header_stdc" >&6
3286if test $ac_cv_header_stdc = yes; then
3287
3288cat >>confdefs.h <<\_ACEOF
3289#define STDC_HEADERS 1
3290_ACEOF
3291
3292fi
3293
3294# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3295
3296
3297
3298
3299
3300
3301
3302
2ace9480 3303
7f9838a7 3304for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3305 inttypes.h stdint.h unistd.h
3306do
3307as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3308echo "$as_me:$LINENO: checking for $ac_header" >&5
3309echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3310if eval "test \"\${$as_ac_Header+set}\" = set"; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
2ace9480 3312else
7f9838a7 3313 cat >conftest.$ac_ext <<_ACEOF
3314/* confdefs.h. */
3315_ACEOF
3316cat confdefs.h >>conftest.$ac_ext
3317cat >>conftest.$ac_ext <<_ACEOF
3318/* end confdefs.h. */
3319$ac_includes_default
3320
3321#include <$ac_header>
3322_ACEOF
3323rm -f conftest.$ac_objext
3324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3325 (eval $ac_compile) 2>conftest.er1
3326 ac_status=$?
3327 grep -v '^ *+' conftest.er1 >conftest.err
3328 rm -f conftest.er1
3329 cat conftest.err >&5
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); } &&
3332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3334 (eval $ac_try) 2>&5
3335 ac_status=$?
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); }; } &&
3338 { ac_try='test -s conftest.$ac_objext'
3339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3340 (eval $ac_try) 2>&5
3341 ac_status=$?
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); }; }; then
3344 eval "$as_ac_Header=yes"
3345else
3346 echo "$as_me: failed program was:" >&5
3347sed 's/^/| /' conftest.$ac_ext >&5
3348
3349eval "$as_ac_Header=no"
2ace9480 3350fi
7f9838a7 3351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ace9480 3352fi
7f9838a7 3353echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3354echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3355if test `eval echo '${'$as_ac_Header'}'` = yes; then
3356 cat >>confdefs.h <<_ACEOF
3357#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3358_ACEOF
2ace9480 3359
2ace9480 3360fi
3361
7f9838a7 3362done
3363
2ace9480 3364
2ace9480 3365
7f9838a7 3366
3367
158b79ea 3368
3369
3370
3371for ac_header in limits.h sys/time.h unistd.h netdb.h netinet/in.h sys/socket.h
2ace9480 3372do
7f9838a7 3373as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3374if eval "test \"\${$as_ac_Header+set}\" = set"; then
3375 echo "$as_me:$LINENO: checking for $ac_header" >&5
3376echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3377if eval "test \"\${$as_ac_Header+set}\" = set"; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3379fi
3380echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3381echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3382else
3383 # Is the header compilable?
3384echo "$as_me:$LINENO: checking $ac_header usability" >&5
3385echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3386cat >conftest.$ac_ext <<_ACEOF
3387/* confdefs.h. */
3388_ACEOF
3389cat confdefs.h >>conftest.$ac_ext
3390cat >>conftest.$ac_ext <<_ACEOF
3391/* end confdefs.h. */
3392$ac_includes_default
3393#include <$ac_header>
3394_ACEOF
3395rm -f conftest.$ac_objext
3396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3397 (eval $ac_compile) 2>conftest.er1
3398 ac_status=$?
3399 grep -v '^ *+' conftest.er1 >conftest.err
3400 rm -f conftest.er1
3401 cat conftest.err >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } &&
3404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3406 (eval $ac_try) 2>&5
3407 ac_status=$?
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); }; } &&
3410 { ac_try='test -s conftest.$ac_objext'
3411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3412 (eval $ac_try) 2>&5
3413 ac_status=$?
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); }; }; then
3416 ac_header_compiler=yes
3417else
3418 echo "$as_me: failed program was:" >&5
3419sed 's/^/| /' conftest.$ac_ext >&5
3420
3421ac_header_compiler=no
3422fi
3423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3424echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3425echo "${ECHO_T}$ac_header_compiler" >&6
3426
3427# Is the header present?
3428echo "$as_me:$LINENO: checking $ac_header presence" >&5
3429echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3430cat >conftest.$ac_ext <<_ACEOF
3431/* confdefs.h. */
3432_ACEOF
3433cat confdefs.h >>conftest.$ac_ext
3434cat >>conftest.$ac_ext <<_ACEOF
3435/* end confdefs.h. */
3436#include <$ac_header>
3437_ACEOF
3438if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3440 ac_status=$?
3441 grep -v '^ *+' conftest.er1 >conftest.err
3442 rm -f conftest.er1
3443 cat conftest.err >&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); } >/dev/null; then
3446 if test -s conftest.err; then
3447 ac_cpp_err=$ac_c_preproc_warn_flag
3448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3449 else
3450 ac_cpp_err=
3451 fi
3452else
3453 ac_cpp_err=yes
2ace9480 3454fi
7f9838a7 3455if test -z "$ac_cpp_err"; then
3456 ac_header_preproc=yes
3457else
3458 echo "$as_me: failed program was:" >&5
3459sed 's/^/| /' conftest.$ac_ext >&5
3460
3461 ac_header_preproc=no
3462fi
3463rm -f conftest.err conftest.$ac_ext
3464echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3465echo "${ECHO_T}$ac_header_preproc" >&6
3466
3467# So? What about this header?
3468case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3469 yes:no: )
3470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3471echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3473echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3474 ac_header_preproc=yes
3475 ;;
3476 no:yes:* )
3477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3478echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3480echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3482echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3484echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3486echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3488echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3489 (
3490 cat <<\_ASBOX
3491## ------------------------------------------ ##
3492## Report this to the AC_PACKAGE_NAME lists. ##
3493## ------------------------------------------ ##
3494_ASBOX
3495 ) |
3496 sed "s/^/$as_me: WARNING: /" >&2
3497 ;;
3498esac
3499echo "$as_me:$LINENO: checking for $ac_header" >&5
3500echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3501if eval "test \"\${$as_ac_Header+set}\" = set"; then
3502 echo $ECHO_N "(cached) $ECHO_C" >&6
2ace9480 3503else
7f9838a7 3504 eval "$as_ac_Header=\$ac_header_preproc"
2ace9480 3505fi
7f9838a7 3506echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3507echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3508
3509fi
3510if test `eval echo '${'$as_ac_Header'}'` = yes; then
3511 cat >>confdefs.h <<_ACEOF
3512#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3513_ACEOF
3514
3515fi
3516
2ace9480 3517done
3518
3519
7f9838a7 3520echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3521echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3522if test "${ac_cv_c_const+set}" = set; then
3523 echo $ECHO_N "(cached) $ECHO_C" >&6
3524else
3525 cat >conftest.$ac_ext <<_ACEOF
3526/* confdefs.h. */
3527_ACEOF
3528cat confdefs.h >>conftest.$ac_ext
3529cat >>conftest.$ac_ext <<_ACEOF
3530/* end confdefs.h. */
3531
3532int
3533main ()
3534{
3535/* FIXME: Include the comments suggested by Paul. */
3536#ifndef __cplusplus
3537 /* Ultrix mips cc rejects this. */
3538 typedef int charset[2];
3539 const charset x;
3540 /* SunOS 4.1.1 cc rejects this. */
3541 char const *const *ccp;
3542 char **p;
3543 /* NEC SVR4.0.2 mips cc rejects this. */
3544 struct point {int x, y;};
3545 static struct point const zero = {0,0};
3546 /* AIX XL C 1.02.0.0 rejects this.
3547 It does not let you subtract one const X* pointer from another in
3548 an arm of an if-expression whose if-part is not a constant
3549 expression */
3550 const char *g = "string";
3551 ccp = &g + (g ? g-g : 0);
3552 /* HPUX 7.0 cc rejects these. */
3553 ++ccp;
3554 p = (char**) ccp;
3555 ccp = (char const *const *) p;
3556 { /* SCO 3.2v4 cc rejects this. */
3557 char *t;
3558 char const *s = 0 ? (char *) 0 : (char const *) 0;
3559
3560 *t++ = 0;
3561 }
3562 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3563 int x[] = {25, 17};
3564 const int *foo = &x[0];
3565 ++foo;
3566 }
3567 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3568 typedef const int *iptr;
3569 iptr p = 0;
3570 ++p;
3571 }
3572 { /* AIX XL C 1.02.0.0 rejects this saying
3573 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3574 struct s { int j; const int *ap[3]; };
3575 struct s *b; b->j = 5;
3576 }
3577 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3578 const int foo = 10;
3579 }
3580#endif
2ace9480 3581
7f9838a7 3582 ;
3583 return 0;
3584}
3585_ACEOF
3586rm -f conftest.$ac_objext
3587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3588 (eval $ac_compile) 2>conftest.er1
3589 ac_status=$?
3590 grep -v '^ *+' conftest.er1 >conftest.err
3591 rm -f conftest.er1
3592 cat conftest.err >&5
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); } &&
3595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3597 (eval $ac_try) 2>&5
3598 ac_status=$?
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); }; } &&
3601 { ac_try='test -s conftest.$ac_objext'
3602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3603 (eval $ac_try) 2>&5
3604 ac_status=$?
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); }; }; then
2ace9480 3607 ac_cv_c_const=yes
3608else
7f9838a7 3609 echo "$as_me: failed program was:" >&5
3610sed 's/^/| /' conftest.$ac_ext >&5
3611
3612ac_cv_c_const=no
2ace9480 3613fi
7f9838a7 3614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ace9480 3615fi
7f9838a7 3616echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3617echo "${ECHO_T}$ac_cv_c_const" >&6
2ace9480 3618if test $ac_cv_c_const = no; then
7f9838a7 3619
3620cat >>confdefs.h <<\_ACEOF
3621#define const
3622_ACEOF
2ace9480 3623
3624fi
3625
7f9838a7 3626echo "$as_me:$LINENO: checking for size_t" >&5
3627echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3628if test "${ac_cv_type_size_t+set}" = set; then
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
2ace9480 3630else
7f9838a7 3631 cat >conftest.$ac_ext <<_ACEOF
3632/* confdefs.h. */
3633_ACEOF
3634cat confdefs.h >>conftest.$ac_ext
3635cat >>conftest.$ac_ext <<_ACEOF
3636/* end confdefs.h. */
3637$ac_includes_default
3638int
3639main ()
3640{
3641if ((size_t *) 0)
3642 return 0;
3643if (sizeof (size_t))
3644 return 0;
3645 ;
3646 return 0;
3647}
3648_ACEOF
3649rm -f conftest.$ac_objext
3650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3651 (eval $ac_compile) 2>conftest.er1
3652 ac_status=$?
3653 grep -v '^ *+' conftest.er1 >conftest.err
3654 rm -f conftest.er1
3655 cat conftest.err >&5
3656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657 (exit $ac_status); } &&
3658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3660 (eval $ac_try) 2>&5
3661 ac_status=$?
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); }; } &&
3664 { ac_try='test -s conftest.$ac_objext'
3665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3666 (eval $ac_try) 2>&5
3667 ac_status=$?
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); }; }; then
2ace9480 3670 ac_cv_type_size_t=yes
3671else
7f9838a7 3672 echo "$as_me: failed program was:" >&5
3673sed 's/^/| /' conftest.$ac_ext >&5
2ace9480 3674
7f9838a7 3675ac_cv_type_size_t=no
3676fi
3677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ace9480 3678fi
7f9838a7 3679echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3680echo "${ECHO_T}$ac_cv_type_size_t" >&6
3681if test $ac_cv_type_size_t = yes; then
3682 :
3683else
3684
3685cat >>confdefs.h <<_ACEOF
2ace9480 3686#define size_t unsigned
7f9838a7 3687_ACEOF
2ace9480 3688
3689fi
3690
7f9838a7 3691echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3692echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3693if test "${ac_cv_header_time+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
2ace9480 3695else
7f9838a7 3696 cat >conftest.$ac_ext <<_ACEOF
3697/* confdefs.h. */
3698_ACEOF
3699cat confdefs.h >>conftest.$ac_ext
3700cat >>conftest.$ac_ext <<_ACEOF
3701/* end confdefs.h. */
2ace9480 3702#include <sys/types.h>
3703#include <sys/time.h>
3704#include <time.h>
7f9838a7 3705
3706int
3707main ()
3708{
3709if ((struct tm *) 0)
3710return 0;
3711 ;
3712 return 0;
3713}
3714_ACEOF
3715rm -f conftest.$ac_objext
3716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3717 (eval $ac_compile) 2>conftest.er1
3718 ac_status=$?
3719 grep -v '^ *+' conftest.er1 >conftest.err
3720 rm -f conftest.er1
3721 cat conftest.err >&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); } &&
3724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726 (eval $ac_try) 2>&5
3727 ac_status=$?
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); }; } &&
3730 { ac_try='test -s conftest.$ac_objext'
3731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3732 (eval $ac_try) 2>&5
3733 ac_status=$?
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); }; }; then
2ace9480 3736 ac_cv_header_time=yes
3737else
7f9838a7 3738 echo "$as_me: failed program was:" >&5
3739sed 's/^/| /' conftest.$ac_ext >&5
3740
3741ac_cv_header_time=no
2ace9480 3742fi
7f9838a7 3743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ace9480 3744fi
7f9838a7 3745echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3746echo "${ECHO_T}$ac_cv_header_time" >&6
2ace9480 3747if test $ac_cv_header_time = yes; then
7f9838a7 3748
3749cat >>confdefs.h <<\_ACEOF
2ace9480 3750#define TIME_WITH_SYS_TIME 1
7f9838a7 3751_ACEOF
2ace9480 3752
3753fi
3754
7f9838a7 3755echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
3756echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
3757if test "${ac_cv_struct_tm+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
2ace9480 3759else
7f9838a7 3760 cat >conftest.$ac_ext <<_ACEOF
3761/* confdefs.h. */
3762_ACEOF
3763cat confdefs.h >>conftest.$ac_ext
3764cat >>conftest.$ac_ext <<_ACEOF
3765/* end confdefs.h. */
2ace9480 3766#include <sys/types.h>
3767#include <time.h>
7f9838a7 3768
3769int
3770main ()
3771{
2ace9480 3772struct tm *tp; tp->tm_sec;
7f9838a7 3773 ;
3774 return 0;
3775}
3776_ACEOF
3777rm -f conftest.$ac_objext
3778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3779 (eval $ac_compile) 2>conftest.er1
3780 ac_status=$?
3781 grep -v '^ *+' conftest.er1 >conftest.err
3782 rm -f conftest.er1
3783 cat conftest.err >&5
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); } &&
3786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3788 (eval $ac_try) 2>&5
3789 ac_status=$?
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }; } &&
3792 { ac_try='test -s conftest.$ac_objext'
3793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3794 (eval $ac_try) 2>&5
3795 ac_status=$?
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); }; }; then
2ace9480 3798 ac_cv_struct_tm=time.h
3799else
7f9838a7 3800 echo "$as_me: failed program was:" >&5
3801sed 's/^/| /' conftest.$ac_ext >&5
3802
3803ac_cv_struct_tm=sys/time.h
2ace9480 3804fi
7f9838a7 3805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ace9480 3806fi
7f9838a7 3807echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
3808echo "${ECHO_T}$ac_cv_struct_tm" >&6
2ace9480 3809if test $ac_cv_struct_tm = sys/time.h; then
7f9838a7 3810
3811cat >>confdefs.h <<\_ACEOF
2ace9480 3812#define TM_IN_SYS_TIME 1
7f9838a7 3813_ACEOF
2ace9480 3814
3815fi
3816
3817
7f9838a7 3818
3819for ac_func in strftime
3820do
3821as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3822echo "$as_me:$LINENO: checking for $ac_func" >&5
3823echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3824if eval "test \"\${$as_ac_var+set}\" = set"; then
3825 echo $ECHO_N "(cached) $ECHO_C" >&6
2ace9480 3826else
7f9838a7 3827 cat >conftest.$ac_ext <<_ACEOF
3828/* confdefs.h. */
3829_ACEOF
3830cat confdefs.h >>conftest.$ac_ext
3831cat >>conftest.$ac_ext <<_ACEOF
3832/* end confdefs.h. */
3833/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3835#define $ac_func innocuous_$ac_func
3836
2ace9480 3837/* System header to define __stub macros and hopefully few prototypes,
7f9838a7 3838 which can conflict with char $ac_func (); below.
3839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3840 <limits.h> exists even on freestanding compilers. */
3841
3842#ifdef __STDC__
3843# include <limits.h>
3844#else
3845# include <assert.h>
3846#endif
2ace9480 3847
7f9838a7 3848#undef $ac_func
2ace9480 3849
7f9838a7 3850/* Override any gcc2 internal prototype to avoid an error. */
3851#ifdef __cplusplus
3852extern "C"
3853{
3854#endif
3855/* We use char because int might match the return type of a gcc2
3856 builtin and then its argument prototype would still apply. */
3857char $ac_func ();
2ace9480 3858/* The GNU C library defines this for functions which it implements
3859 to always fail with ENOSYS. Some functions are actually named
3860 something starting with __ and the normal name is an alias. */
7f9838a7 3861#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2ace9480 3862choke me
3863#else
7f9838a7 3864char (*f) () = $ac_func;
3865#endif
3866#ifdef __cplusplus
3867}
2ace9480 3868#endif
3869
7f9838a7 3870int
3871main ()
3872{
3873return f != $ac_func;
3874 ;
3875 return 0;
3876}
3877_ACEOF
3878rm -f conftest.$ac_objext conftest$ac_exeext
3879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3880 (eval $ac_link) 2>conftest.er1
3881 ac_status=$?
3882 grep -v '^ *+' conftest.er1 >conftest.err
3883 rm -f conftest.er1
3884 cat conftest.err >&5
3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886 (exit $ac_status); } &&
3887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3889 (eval $ac_try) 2>&5
3890 ac_status=$?
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); }; } &&
3893 { ac_try='test -s conftest$ac_exeext'
3894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3895 (eval $ac_try) 2>&5
3896 ac_status=$?
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); }; }; then
3899 eval "$as_ac_var=yes"
2ace9480 3900else
7f9838a7 3901 echo "$as_me: failed program was:" >&5
3902sed 's/^/| /' conftest.$ac_ext >&5
3903
3904eval "$as_ac_var=no"
2ace9480 3905fi
7f9838a7 3906rm -f conftest.err conftest.$ac_objext \
3907 conftest$ac_exeext conftest.$ac_ext
2ace9480 3908fi
7f9838a7 3909echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3910echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3911if test `eval echo '${'$as_ac_var'}'` = yes; then
3912 cat >>confdefs.h <<_ACEOF
3913#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3914_ACEOF
2ace9480 3915
3916else
7f9838a7 3917 # strftime is in -lintl on SCO UNIX.
3918echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
3919echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
3920if test "${ac_cv_lib_intl_strftime+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
2ace9480 3922else
7f9838a7 3923 ac_check_lib_save_LIBS=$LIBS
2ace9480 3924LIBS="-lintl $LIBS"
7f9838a7 3925cat >conftest.$ac_ext <<_ACEOF
3926/* confdefs.h. */
3927_ACEOF
3928cat confdefs.h >>conftest.$ac_ext
3929cat >>conftest.$ac_ext <<_ACEOF
3930/* end confdefs.h. */
3931
2ace9480 3932/* Override any gcc2 internal prototype to avoid an error. */
7f9838a7 3933#ifdef __cplusplus
3934extern "C"
3935#endif
2ace9480 3936/* We use char because int might match the return type of a gcc2
7f9838a7 3937 builtin and then its argument prototype would still apply. */
3938char strftime ();
3939int
3940main ()
3941{
3942strftime ();
3943 ;
3944 return 0;
3945}
3946_ACEOF
3947rm -f conftest.$ac_objext conftest$ac_exeext
3948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3949 (eval $ac_link) 2>conftest.er1
3950 ac_status=$?
3951 grep -v '^ *+' conftest.er1 >conftest.err
3952 rm -f conftest.er1
3953 cat conftest.err >&5
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); } &&
3956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3958 (eval $ac_try) 2>&5
3959 ac_status=$?
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); }; } &&
3962 { ac_try='test -s conftest$ac_exeext'
3963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3964 (eval $ac_try) 2>&5
3965 ac_status=$?
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); }; }; then
3968 ac_cv_lib_intl_strftime=yes
2ace9480 3969else
7f9838a7 3970 echo "$as_me: failed program was:" >&5
3971sed 's/^/| /' conftest.$ac_ext >&5
2ace9480 3972
7f9838a7 3973ac_cv_lib_intl_strftime=no
2ace9480 3974fi
7f9838a7 3975rm -f conftest.err conftest.$ac_objext \
3976 conftest$ac_exeext conftest.$ac_ext
3977LIBS=$ac_check_lib_save_LIBS
3978fi
3979echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
3980echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
3981if test $ac_cv_lib_intl_strftime = yes; then
3982 cat >>confdefs.h <<\_ACEOF
2ace9480 3983#define HAVE_STRFTIME 1
7f9838a7 3984_ACEOF
2ace9480 3985
3986LIBS="-lintl $LIBS"
2ace9480 3987fi
3988
3989fi
7f9838a7 3990done
3991
2ace9480 3992
7f9838a7 3993for ac_func in vprintf
3994do
3995as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3996echo "$as_me:$LINENO: checking for $ac_func" >&5
3997echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3998if eval "test \"\${$as_ac_var+set}\" = set"; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
2ace9480 4000else
7f9838a7 4001 cat >conftest.$ac_ext <<_ACEOF
4002/* confdefs.h. */
4003_ACEOF
4004cat confdefs.h >>conftest.$ac_ext
4005cat >>conftest.$ac_ext <<_ACEOF
4006/* end confdefs.h. */
4007/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4009#define $ac_func innocuous_$ac_func
4010
2ace9480 4011/* System header to define __stub macros and hopefully few prototypes,
7f9838a7 4012 which can conflict with char $ac_func (); below.
4013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4014 <limits.h> exists even on freestanding compilers. */
4015
4016#ifdef __STDC__
4017# include <limits.h>
4018#else
4019# include <assert.h>
4020#endif
2ace9480 4021
7f9838a7 4022#undef $ac_func
2ace9480 4023
7f9838a7 4024/* Override any gcc2 internal prototype to avoid an error. */
4025#ifdef __cplusplus
4026extern "C"
4027{
4028#endif
4029/* We use char because int might match the return type of a gcc2
4030 builtin and then its argument prototype would still apply. */
4031char $ac_func ();
2ace9480 4032/* The GNU C library defines this for functions which it implements
4033 to always fail with ENOSYS. Some functions are actually named
4034 something starting with __ and the normal name is an alias. */
7f9838a7 4035#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2ace9480 4036choke me
4037#else
7f9838a7 4038char (*f) () = $ac_func;
4039#endif
4040#ifdef __cplusplus
4041}
2ace9480 4042#endif
4043
7f9838a7 4044int
4045main ()
4046{
4047return f != $ac_func;
4048 ;
4049 return 0;
4050}
4051_ACEOF
4052rm -f conftest.$ac_objext conftest$ac_exeext
4053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4054 (eval $ac_link) 2>conftest.er1
4055 ac_status=$?
4056 grep -v '^ *+' conftest.er1 >conftest.err
4057 rm -f conftest.er1
4058 cat conftest.err >&5
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); } &&
4061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4063 (eval $ac_try) 2>&5
4064 ac_status=$?
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); }; } &&
4067 { ac_try='test -s conftest$ac_exeext'
4068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4069 (eval $ac_try) 2>&5
4070 ac_status=$?
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); }; }; then
4073 eval "$as_ac_var=yes"
2ace9480 4074else
7f9838a7 4075 echo "$as_me: failed program was:" >&5
4076sed 's/^/| /' conftest.$ac_ext >&5
4077
4078eval "$as_ac_var=no"
2ace9480 4079fi
7f9838a7 4080rm -f conftest.err conftest.$ac_objext \
4081 conftest$ac_exeext conftest.$ac_ext
2ace9480 4082fi
7f9838a7 4083echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4084echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4085if test `eval echo '${'$as_ac_var'}'` = yes; then
4086 cat >>confdefs.h <<_ACEOF
4087#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4088_ACEOF
2ace9480 4089
7f9838a7 4090echo "$as_me:$LINENO: checking for _doprnt" >&5
4091echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
4092if test "${ac_cv_func__doprnt+set}" = set; then
4093 echo $ECHO_N "(cached) $ECHO_C" >&6
2ace9480 4094else
7f9838a7 4095 cat >conftest.$ac_ext <<_ACEOF
4096/* confdefs.h. */
4097_ACEOF
4098cat confdefs.h >>conftest.$ac_ext
4099cat >>conftest.$ac_ext <<_ACEOF
4100/* end confdefs.h. */
4101/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
4102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4103#define _doprnt innocuous__doprnt
2ace9480 4104
2ace9480 4105/* System header to define __stub macros and hopefully few prototypes,
7f9838a7 4106 which can conflict with char _doprnt (); below.
4107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4108 <limits.h> exists even on freestanding compilers. */
4109
4110#ifdef __STDC__
4111# include <limits.h>
4112#else
4113# include <assert.h>
4114#endif
2ace9480 4115
7f9838a7 4116#undef _doprnt
2ace9480 4117
7f9838a7 4118/* Override any gcc2 internal prototype to avoid an error. */
4119#ifdef __cplusplus
4120extern "C"
4121{
4122#endif
4123/* We use char because int might match the return type of a gcc2
4124 builtin and then its argument prototype would still apply. */
4125char _doprnt ();
2ace9480 4126/* The GNU C library defines this for functions which it implements
4127 to always fail with ENOSYS. Some functions are actually named
4128 something starting with __ and the normal name is an alias. */
4129#if defined (__stub__doprnt) || defined (__stub____doprnt)
4130choke me
4131#else
7f9838a7 4132char (*f) () = _doprnt;
4133#endif
4134#ifdef __cplusplus
4135}
2ace9480 4136#endif
4137
7f9838a7 4138int
4139main ()
4140{
4141return f != _doprnt;
4142 ;
4143 return 0;
4144}
4145_ACEOF
4146rm -f conftest.$ac_objext conftest$ac_exeext
4147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4148 (eval $ac_link) 2>conftest.er1
4149 ac_status=$?
4150 grep -v '^ *+' conftest.er1 >conftest.err
4151 rm -f conftest.er1
4152 cat conftest.err >&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } &&
4155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4157 (eval $ac_try) 2>&5
4158 ac_status=$?
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); }; } &&
4161 { ac_try='test -s conftest$ac_exeext'
4162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4163 (eval $ac_try) 2>&5
4164 ac_status=$?
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); }; }; then
4167 ac_cv_func__doprnt=yes
2ace9480 4168else
7f9838a7 4169 echo "$as_me: failed program was:" >&5
4170sed 's/^/| /' conftest.$ac_ext >&5
4171
4172ac_cv_func__doprnt=no
2ace9480 4173fi
7f9838a7 4174rm -f conftest.err conftest.$ac_objext \
4175 conftest$ac_exeext conftest.$ac_ext
2ace9480 4176fi
7f9838a7 4177echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
4178echo "${ECHO_T}$ac_cv_func__doprnt" >&6
4179if test $ac_cv_func__doprnt = yes; then
2ace9480 4180
7f9838a7 4181cat >>confdefs.h <<\_ACEOF
2ace9480 4182#define HAVE_DOPRNT 1
7f9838a7 4183_ACEOF
2ace9480 4184
2ace9480 4185fi
4186
4187fi
7f9838a7 4188done
4189
4190
4191
4192
4193
4194
4195
4196
4197
2ace9480 4198
158b79ea 4199
4200
4201
4202
4203
4204
4205
4206for ac_func in gettimeofday select socket strcspn strdup strerror strspn strtol gethostbyname memmove memset strcasecmp strchr strpbrk strtoul
2ace9480 4207do
7f9838a7 4208as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4209echo "$as_me:$LINENO: checking for $ac_func" >&5
4210echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4211if eval "test \"\${$as_ac_var+set}\" = set"; then
4212 echo $ECHO_N "(cached) $ECHO_C" >&6
4213else
4214 cat >conftest.$ac_ext <<_ACEOF
4215/* confdefs.h. */
4216_ACEOF
4217cat confdefs.h >>conftest.$ac_ext
4218cat >>conftest.$ac_ext <<_ACEOF
4219/* end confdefs.h. */
4220/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4222#define $ac_func innocuous_$ac_func
4223
2ace9480 4224/* System header to define __stub macros and hopefully few prototypes,
7f9838a7 4225 which can conflict with char $ac_func (); below.
4226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4227 <limits.h> exists even on freestanding compilers. */
2ace9480 4228
7f9838a7 4229#ifdef __STDC__
4230# include <limits.h>
4231#else
4232# include <assert.h>
4233#endif
2ace9480 4234
7f9838a7 4235#undef $ac_func
4236
4237/* Override any gcc2 internal prototype to avoid an error. */
4238#ifdef __cplusplus
4239extern "C"
4240{
4241#endif
4242/* We use char because int might match the return type of a gcc2
4243 builtin and then its argument prototype would still apply. */
4244char $ac_func ();
2ace9480 4245/* The GNU C library defines this for functions which it implements
4246 to always fail with ENOSYS. Some functions are actually named
4247 something starting with __ and the normal name is an alias. */
4248#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4249choke me
4250#else
7f9838a7 4251char (*f) () = $ac_func;
4252#endif
4253#ifdef __cplusplus
4254}
2ace9480 4255#endif
4256
7f9838a7 4257int
4258main ()
4259{
4260return f != $ac_func;
4261 ;
4262 return 0;
4263}
4264_ACEOF
4265rm -f conftest.$ac_objext conftest$ac_exeext
4266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4267 (eval $ac_link) 2>conftest.er1
4268 ac_status=$?
4269 grep -v '^ *+' conftest.er1 >conftest.err
4270 rm -f conftest.er1
4271 cat conftest.err >&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); } &&
4274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4276 (eval $ac_try) 2>&5
4277 ac_status=$?
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); }; } &&
4280 { ac_try='test -s conftest$ac_exeext'
4281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282 (eval $ac_try) 2>&5
4283 ac_status=$?
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); }; }; then
4286 eval "$as_ac_var=yes"
2ace9480 4287else
7f9838a7 4288 echo "$as_me: failed program was:" >&5
4289sed 's/^/| /' conftest.$ac_ext >&5
4290
4291eval "$as_ac_var=no"
2ace9480 4292fi
7f9838a7 4293rm -f conftest.err conftest.$ac_objext \
4294 conftest$ac_exeext conftest.$ac_ext
2ace9480 4295fi
7f9838a7 4296echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4297echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4298if test `eval echo '${'$as_ac_var'}'` = yes; then
4299 cat >>confdefs.h <<_ACEOF
4300#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4301_ACEOF
2ace9480 4302
2ace9480 4303fi
4304done
4305
158b79ea 4306echo "$as_me:$LINENO: checking for error_at_line" >&5
4307echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
4308if test "${ac_cv_lib_error_at_line+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4310else
4311 cat >conftest.$ac_ext <<_ACEOF
4312/* confdefs.h. */
4313_ACEOF
4314cat confdefs.h >>conftest.$ac_ext
4315cat >>conftest.$ac_ext <<_ACEOF
4316/* end confdefs.h. */
4317$ac_includes_default
4318int
4319main ()
4320{
4321error_at_line (0, 0, "", 0, "");
4322 ;
4323 return 0;
4324}
4325_ACEOF
4326rm -f conftest.$ac_objext conftest$ac_exeext
4327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4328 (eval $ac_link) 2>conftest.er1
4329 ac_status=$?
4330 grep -v '^ *+' conftest.er1 >conftest.err
4331 rm -f conftest.er1
4332 cat conftest.err >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); } &&
4335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337 (eval $ac_try) 2>&5
4338 ac_status=$?
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; } &&
4341 { ac_try='test -s conftest$ac_exeext'
4342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4343 (eval $ac_try) 2>&5
4344 ac_status=$?
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; }; then
4347 ac_cv_lib_error_at_line=yes
4348else
4349 echo "$as_me: failed program was:" >&5
4350sed 's/^/| /' conftest.$ac_ext >&5
4351
4352ac_cv_lib_error_at_line=no
4353fi
4354rm -f conftest.err conftest.$ac_objext \
4355 conftest$ac_exeext conftest.$ac_ext
4356fi
4357echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
4358echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
4359if test $ac_cv_lib_error_at_line = no; then
4360 case $LIBOBJS in
4361 "error.$ac_objext" | \
4362 *" error.$ac_objext" | \
4363 "error.$ac_objext "* | \
4364 *" error.$ac_objext "* ) ;;
4365 *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
4366esac
4367
4368fi
4369
4370echo "$as_me:$LINENO: checking for pid_t" >&5
4371echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4372if test "${ac_cv_type_pid_t+set}" = set; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4374else
4375 cat >conftest.$ac_ext <<_ACEOF
4376/* confdefs.h. */
4377_ACEOF
4378cat confdefs.h >>conftest.$ac_ext
4379cat >>conftest.$ac_ext <<_ACEOF
4380/* end confdefs.h. */
4381$ac_includes_default
4382int
4383main ()
4384{
4385if ((pid_t *) 0)
4386 return 0;
4387if (sizeof (pid_t))
4388 return 0;
4389 ;
4390 return 0;
4391}
4392_ACEOF
4393rm -f conftest.$ac_objext
4394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4395 (eval $ac_compile) 2>conftest.er1
4396 ac_status=$?
4397 grep -v '^ *+' conftest.er1 >conftest.err
4398 rm -f conftest.er1
4399 cat conftest.err >&5
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); } &&
4402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404 (eval $ac_try) 2>&5
4405 ac_status=$?
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); }; } &&
4408 { ac_try='test -s conftest.$ac_objext'
4409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4410 (eval $ac_try) 2>&5
4411 ac_status=$?
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); }; }; then
4414 ac_cv_type_pid_t=yes
4415else
4416 echo "$as_me: failed program was:" >&5
4417sed 's/^/| /' conftest.$ac_ext >&5
4418
4419ac_cv_type_pid_t=no
4420fi
4421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4422fi
4423echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4424echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4425if test $ac_cv_type_pid_t = yes; then
4426 :
4427else
4428
4429cat >>confdefs.h <<_ACEOF
4430#define pid_t int
4431_ACEOF
4432
4433fi
4434
4435
4436
4437for ac_header in unistd.h vfork.h
4438do
4439as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4440if eval "test \"\${$as_ac_Header+set}\" = set"; then
4441 echo "$as_me:$LINENO: checking for $ac_header" >&5
4442echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4443if eval "test \"\${$as_ac_Header+set}\" = set"; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4445fi
4446echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4447echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4448else
4449 # Is the header compilable?
4450echo "$as_me:$LINENO: checking $ac_header usability" >&5
4451echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4452cat >conftest.$ac_ext <<_ACEOF
4453/* confdefs.h. */
4454_ACEOF
4455cat confdefs.h >>conftest.$ac_ext
4456cat >>conftest.$ac_ext <<_ACEOF
4457/* end confdefs.h. */
4458$ac_includes_default
4459#include <$ac_header>
4460_ACEOF
4461rm -f conftest.$ac_objext
4462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4463 (eval $ac_compile) 2>conftest.er1
4464 ac_status=$?
4465 grep -v '^ *+' conftest.er1 >conftest.err
4466 rm -f conftest.er1
4467 cat conftest.err >&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } &&
4470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4472 (eval $ac_try) 2>&5
4473 ac_status=$?
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); }; } &&
4476 { ac_try='test -s conftest.$ac_objext'
4477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4478 (eval $ac_try) 2>&5
4479 ac_status=$?
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); }; }; then
4482 ac_header_compiler=yes
4483else
4484 echo "$as_me: failed program was:" >&5
4485sed 's/^/| /' conftest.$ac_ext >&5
4486
4487ac_header_compiler=no
4488fi
4489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4490echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4491echo "${ECHO_T}$ac_header_compiler" >&6
4492
4493# Is the header present?
4494echo "$as_me:$LINENO: checking $ac_header presence" >&5
4495echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4496cat >conftest.$ac_ext <<_ACEOF
4497/* confdefs.h. */
4498_ACEOF
4499cat confdefs.h >>conftest.$ac_ext
4500cat >>conftest.$ac_ext <<_ACEOF
4501/* end confdefs.h. */
4502#include <$ac_header>
4503_ACEOF
4504if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4505 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4506 ac_status=$?
4507 grep -v '^ *+' conftest.er1 >conftest.err
4508 rm -f conftest.er1
4509 cat conftest.err >&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); } >/dev/null; then
4512 if test -s conftest.err; then
4513 ac_cpp_err=$ac_c_preproc_warn_flag
4514 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4515 else
4516 ac_cpp_err=
4517 fi
4518else
4519 ac_cpp_err=yes
4520fi
4521if test -z "$ac_cpp_err"; then
4522 ac_header_preproc=yes
4523else
4524 echo "$as_me: failed program was:" >&5
4525sed 's/^/| /' conftest.$ac_ext >&5
4526
4527 ac_header_preproc=no
4528fi
4529rm -f conftest.err conftest.$ac_ext
4530echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4531echo "${ECHO_T}$ac_header_preproc" >&6
4532
4533# So? What about this header?
4534case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4535 yes:no: )
4536 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4537echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4539echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4540 ac_header_preproc=yes
4541 ;;
4542 no:yes:* )
4543 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4544echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4545 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4546echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4547 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4548echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4549 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4550echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4552echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4553 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4554echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4555 (
4556 cat <<\_ASBOX
4557## ------------------------------------------ ##
4558## Report this to the AC_PACKAGE_NAME lists. ##
4559## ------------------------------------------ ##
4560_ASBOX
4561 ) |
4562 sed "s/^/$as_me: WARNING: /" >&2
4563 ;;
4564esac
4565echo "$as_me:$LINENO: checking for $ac_header" >&5
4566echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4567if eval "test \"\${$as_ac_Header+set}\" = set"; then
4568 echo $ECHO_N "(cached) $ECHO_C" >&6
4569else
4570 eval "$as_ac_Header=\$ac_header_preproc"
4571fi
4572echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4573echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4574
4575fi
4576if test `eval echo '${'$as_ac_Header'}'` = yes; then
4577 cat >>confdefs.h <<_ACEOF
4578#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4579_ACEOF
4580
4581fi
4582
4583done
4584
4585
4586
4587for ac_func in fork vfork
4588do
4589as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4590echo "$as_me:$LINENO: checking for $ac_func" >&5
4591echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4592if eval "test \"\${$as_ac_var+set}\" = set"; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
4594else
4595 cat >conftest.$ac_ext <<_ACEOF
4596/* confdefs.h. */
4597_ACEOF
4598cat confdefs.h >>conftest.$ac_ext
4599cat >>conftest.$ac_ext <<_ACEOF
4600/* end confdefs.h. */
4601/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4603#define $ac_func innocuous_$ac_func
4604
4605/* System header to define __stub macros and hopefully few prototypes,
4606 which can conflict with char $ac_func (); below.
4607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4608 <limits.h> exists even on freestanding compilers. */
4609
4610#ifdef __STDC__
4611# include <limits.h>
4612#else
4613# include <assert.h>
4614#endif
4615
4616#undef $ac_func
4617
4618/* Override any gcc2 internal prototype to avoid an error. */
4619#ifdef __cplusplus
4620extern "C"
4621{
4622#endif
4623/* We use char because int might match the return type of a gcc2
4624 builtin and then its argument prototype would still apply. */
4625char $ac_func ();
4626/* The GNU C library defines this for functions which it implements
4627 to always fail with ENOSYS. Some functions are actually named
4628 something starting with __ and the normal name is an alias. */
4629#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4630choke me
4631#else
4632char (*f) () = $ac_func;
4633#endif
4634#ifdef __cplusplus
4635}
4636#endif
4637
4638int
4639main ()
4640{
4641return f != $ac_func;
4642 ;
4643 return 0;
4644}
4645_ACEOF
4646rm -f conftest.$ac_objext conftest$ac_exeext
4647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4648 (eval $ac_link) 2>conftest.er1
4649 ac_status=$?
4650 grep -v '^ *+' conftest.er1 >conftest.err
4651 rm -f conftest.er1
4652 cat conftest.err >&5
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); } &&
4655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657 (eval $ac_try) 2>&5
4658 ac_status=$?
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); }; } &&
4661 { ac_try='test -s conftest$ac_exeext'
4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663 (eval $ac_try) 2>&5
4664 ac_status=$?
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); }; }; then
4667 eval "$as_ac_var=yes"
4668else
4669 echo "$as_me: failed program was:" >&5
4670sed 's/^/| /' conftest.$ac_ext >&5
4671
4672eval "$as_ac_var=no"
4673fi
4674rm -f conftest.err conftest.$ac_objext \
4675 conftest$ac_exeext conftest.$ac_ext
4676fi
4677echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4678echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4679if test `eval echo '${'$as_ac_var'}'` = yes; then
4680 cat >>confdefs.h <<_ACEOF
4681#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4682_ACEOF
4683
4684fi
4685done
4686
4687if test "x$ac_cv_func_fork" = xyes; then
4688 echo "$as_me:$LINENO: checking for working fork" >&5
4689echo $ECHO_N "checking for working fork... $ECHO_C" >&6
4690if test "${ac_cv_func_fork_works+set}" = set; then
4691 echo $ECHO_N "(cached) $ECHO_C" >&6
4692else
4693 if test "$cross_compiling" = yes; then
4694 ac_cv_func_fork_works=cross
4695else
4696 cat >conftest.$ac_ext <<_ACEOF
4697/* By Ruediger Kuhlmann. */
4698 #include <sys/types.h>
4699 #if HAVE_UNISTD_H
4700 # include <unistd.h>
4701 #endif
4702 /* Some systems only have a dummy stub for fork() */
4703 int main ()
4704 {
4705 if (fork() < 0)
4706 exit (1);
4707 exit (0);
4708 }
4709_ACEOF
4710rm -f conftest$ac_exeext
4711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4712 (eval $ac_link) 2>&5
4713 ac_status=$?
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717 (eval $ac_try) 2>&5
4718 ac_status=$?
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; }; then
4721 ac_cv_func_fork_works=yes
4722else
4723 echo "$as_me: program exited with status $ac_status" >&5
4724echo "$as_me: failed program was:" >&5
4725sed 's/^/| /' conftest.$ac_ext >&5
4726
4727( exit $ac_status )
4728ac_cv_func_fork_works=no
4729fi
4730rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4731fi
4732fi
4733echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
4734echo "${ECHO_T}$ac_cv_func_fork_works" >&6
4735
4736else
4737 ac_cv_func_fork_works=$ac_cv_func_fork
4738fi
4739if test "x$ac_cv_func_fork_works" = xcross; then
4740 case $host in
4741 *-*-amigaos* | *-*-msdosdjgpp*)
4742 # Override, as these systems have only a dummy fork() stub
4743 ac_cv_func_fork_works=no
4744 ;;
4745 *)
4746 ac_cv_func_fork_works=yes
4747 ;;
4748 esac
4749 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
4750echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
4751fi
4752ac_cv_func_vfork_works=$ac_cv_func_vfork
4753if test "x$ac_cv_func_vfork" = xyes; then
4754 echo "$as_me:$LINENO: checking for working vfork" >&5
4755echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
4756if test "${ac_cv_func_vfork_works+set}" = set; then
4757 echo $ECHO_N "(cached) $ECHO_C" >&6
4758else
4759 if test "$cross_compiling" = yes; then
4760 ac_cv_func_vfork_works=cross
4761else
4762 cat >conftest.$ac_ext <<_ACEOF
4763/* confdefs.h. */
4764_ACEOF
4765cat confdefs.h >>conftest.$ac_ext
4766cat >>conftest.$ac_ext <<_ACEOF
4767/* end confdefs.h. */
4768/* Thanks to Paul Eggert for this test. */
4769#include <stdio.h>
4770#include <stdlib.h>
4771#include <sys/types.h>
4772#include <sys/stat.h>
4773#include <sys/wait.h>
4774#if HAVE_UNISTD_H
4775# include <unistd.h>
4776#endif
4777#if HAVE_VFORK_H
4778# include <vfork.h>
4779#endif
4780/* On some sparc systems, changes by the child to local and incoming
4781 argument registers are propagated back to the parent. The compiler
4782 is told about this with #include <vfork.h>, but some compilers
4783 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
4784 static variable whose address is put into a register that is
4785 clobbered by the vfork. */
4786static void
4787#ifdef __cplusplus
4788sparc_address_test (int arg)
4789# else
4790sparc_address_test (arg) int arg;
4791#endif
4792{
4793 static pid_t child;
4794 if (!child) {
4795 child = vfork ();
4796 if (child < 0) {
4797 perror ("vfork");
4798 _exit(2);
4799 }
4800 if (!child) {
4801 arg = getpid();
4802 write(-1, "", 0);
4803 _exit (arg);
4804 }
4805 }
4806}
4807
4808int
4809main ()
4810{
4811 pid_t parent = getpid ();
4812 pid_t child;
4813
4814 sparc_address_test (0);
4815
4816 child = vfork ();
4817
4818 if (child == 0) {
4819 /* Here is another test for sparc vfork register problems. This
4820 test uses lots of local variables, at least as many local
4821 variables as main has allocated so far including compiler
4822 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
4823 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
4824 reuse the register of parent for one of the local variables,
4825 since it will think that parent can't possibly be used any more
4826 in this routine. Assigning to the local variable will thus
4827 munge parent in the parent process. */
4828 pid_t
4829 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
4830 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
4831 /* Convince the compiler that p..p7 are live; otherwise, it might
4832 use the same hardware register for all 8 local variables. */
4833 if (p != p1 || p != p2 || p != p3 || p != p4
4834 || p != p5 || p != p6 || p != p7)
4835 _exit(1);
4836
4837 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
4838 from child file descriptors. If the child closes a descriptor
4839 before it execs or exits, this munges the parent's descriptor
4840 as well. Test for this by closing stdout in the child. */
4841 _exit(close(fileno(stdout)) != 0);
4842 } else {
4843 int status;
4844 struct stat st;
4845
4846 while (wait(&status) != child)
4847 ;
4848 exit(
4849 /* Was there some problem with vforking? */
4850 child < 0
4851
4852 /* Did the child fail? (This shouldn't happen.) */
4853 || status
4854
4855 /* Did the vfork/compiler bug occur? */
4856 || parent != getpid()
4857
4858 /* Did the file descriptor bug occur? */
4859 || fstat(fileno(stdout), &st) != 0
4860 );
4861 }
4862}
4863_ACEOF
4864rm -f conftest$ac_exeext
4865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4866 (eval $ac_link) 2>&5
4867 ac_status=$?
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4871 (eval $ac_try) 2>&5
4872 ac_status=$?
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); }; }; then
4875 ac_cv_func_vfork_works=yes
4876else
4877 echo "$as_me: program exited with status $ac_status" >&5
4878echo "$as_me: failed program was:" >&5
4879sed 's/^/| /' conftest.$ac_ext >&5
4880
4881( exit $ac_status )
4882ac_cv_func_vfork_works=no
4883fi
4884rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4885fi
4886fi
4887echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
4888echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
4889
4890fi;
4891if test "x$ac_cv_func_fork_works" = xcross; then
4892 ac_cv_func_vfork_works=$ac_cv_func_vfork
4893 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
4894echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
4895fi
4896
4897if test "x$ac_cv_func_vfork_works" = xyes; then
4898
4899cat >>confdefs.h <<\_ACEOF
4900#define HAVE_WORKING_VFORK 1
4901_ACEOF
4902
4903else
4904
4905cat >>confdefs.h <<\_ACEOF
4906#define vfork fork
4907_ACEOF
4908
4909fi
4910if test "x$ac_cv_func_fork_works" = xyes; then
4911
4912cat >>confdefs.h <<\_ACEOF
4913#define HAVE_WORKING_FORK 1
4914_ACEOF
4915
4916fi
4917
4918
4919for ac_header in stdlib.h
4920do
4921as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4922if eval "test \"\${$as_ac_Header+set}\" = set"; then
4923 echo "$as_me:$LINENO: checking for $ac_header" >&5
4924echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4925if eval "test \"\${$as_ac_Header+set}\" = set"; then
4926 echo $ECHO_N "(cached) $ECHO_C" >&6
4927fi
4928echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4929echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4930else
4931 # Is the header compilable?
4932echo "$as_me:$LINENO: checking $ac_header usability" >&5
4933echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4934cat >conftest.$ac_ext <<_ACEOF
4935/* confdefs.h. */
4936_ACEOF
4937cat confdefs.h >>conftest.$ac_ext
4938cat >>conftest.$ac_ext <<_ACEOF
4939/* end confdefs.h. */
4940$ac_includes_default
4941#include <$ac_header>
4942_ACEOF
4943rm -f conftest.$ac_objext
4944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4945 (eval $ac_compile) 2>conftest.er1
4946 ac_status=$?
4947 grep -v '^ *+' conftest.er1 >conftest.err
4948 rm -f conftest.er1
4949 cat conftest.err >&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); } &&
4952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4954 (eval $ac_try) 2>&5
4955 ac_status=$?
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); }; } &&
4958 { ac_try='test -s conftest.$ac_objext'
4959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4960 (eval $ac_try) 2>&5
4961 ac_status=$?
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); }; }; then
4964 ac_header_compiler=yes
4965else
4966 echo "$as_me: failed program was:" >&5
4967sed 's/^/| /' conftest.$ac_ext >&5
4968
4969ac_header_compiler=no
4970fi
4971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4972echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4973echo "${ECHO_T}$ac_header_compiler" >&6
4974
4975# Is the header present?
4976echo "$as_me:$LINENO: checking $ac_header presence" >&5
4977echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4978cat >conftest.$ac_ext <<_ACEOF
4979/* confdefs.h. */
4980_ACEOF
4981cat confdefs.h >>conftest.$ac_ext
4982cat >>conftest.$ac_ext <<_ACEOF
4983/* end confdefs.h. */
4984#include <$ac_header>
4985_ACEOF
4986if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4988 ac_status=$?
4989 grep -v '^ *+' conftest.er1 >conftest.err
4990 rm -f conftest.er1
4991 cat conftest.err >&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); } >/dev/null; then
4994 if test -s conftest.err; then
4995 ac_cpp_err=$ac_c_preproc_warn_flag
4996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4997 else
4998 ac_cpp_err=
4999 fi
5000else
5001 ac_cpp_err=yes
5002fi
5003if test -z "$ac_cpp_err"; then
5004 ac_header_preproc=yes
5005else
5006 echo "$as_me: failed program was:" >&5
5007sed 's/^/| /' conftest.$ac_ext >&5
5008
5009 ac_header_preproc=no
5010fi
5011rm -f conftest.err conftest.$ac_ext
5012echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5013echo "${ECHO_T}$ac_header_preproc" >&6
5014
5015# So? What about this header?
5016case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5017 yes:no: )
5018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5019echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5021echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5022 ac_header_preproc=yes
5023 ;;
5024 no:yes:* )
5025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5026echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5028echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5029 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5030echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5031 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5032echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5034echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5035 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5036echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5037 (
5038 cat <<\_ASBOX
5039## ------------------------------------------ ##
5040## Report this to the AC_PACKAGE_NAME lists. ##
5041## ------------------------------------------ ##
5042_ASBOX
5043 ) |
5044 sed "s/^/$as_me: WARNING: /" >&2
5045 ;;
5046esac
5047echo "$as_me:$LINENO: checking for $ac_header" >&5
5048echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5049if eval "test \"\${$as_ac_Header+set}\" = set"; then
5050 echo $ECHO_N "(cached) $ECHO_C" >&6
5051else
5052 eval "$as_ac_Header=\$ac_header_preproc"
5053fi
5054echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5055echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5056
5057fi
5058if test `eval echo '${'$as_ac_Header'}'` = yes; then
5059 cat >>confdefs.h <<_ACEOF
5060#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5061_ACEOF
5062
5063fi
5064
5065done
5066
5067echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
5068echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
5069if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5071else
5072 if test "$cross_compiling" = yes; then
5073 ac_cv_func_malloc_0_nonnull=no
5074else
5075 cat >conftest.$ac_ext <<_ACEOF
5076/* confdefs.h. */
5077_ACEOF
5078cat confdefs.h >>conftest.$ac_ext
5079cat >>conftest.$ac_ext <<_ACEOF
5080/* end confdefs.h. */
5081#if STDC_HEADERS || HAVE_STDLIB_H
5082# include <stdlib.h>
5083#else
5084char *malloc ();
5085#endif
5086
5087int
5088main ()
5089{
5090exit (malloc (0) ? 0 : 1);
5091 ;
5092 return 0;
5093}
5094_ACEOF
5095rm -f conftest$ac_exeext
5096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5097 (eval $ac_link) 2>&5
5098 ac_status=$?
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5102 (eval $ac_try) 2>&5
5103 ac_status=$?
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); }; }; then
5106 ac_cv_func_malloc_0_nonnull=yes
5107else
5108 echo "$as_me: program exited with status $ac_status" >&5
5109echo "$as_me: failed program was:" >&5
5110sed 's/^/| /' conftest.$ac_ext >&5
5111
5112( exit $ac_status )
5113ac_cv_func_malloc_0_nonnull=no
5114fi
5115rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5116fi
5117fi
5118echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
5119echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
5120if test $ac_cv_func_malloc_0_nonnull = yes; then
5121
5122cat >>confdefs.h <<\_ACEOF
5123#define HAVE_MALLOC 1
5124_ACEOF
5125
5126else
5127 cat >>confdefs.h <<\_ACEOF
5128#define HAVE_MALLOC 0
5129_ACEOF
5130
5131 case $LIBOBJS in
5132 "malloc.$ac_objext" | \
5133 *" malloc.$ac_objext" | \
5134 "malloc.$ac_objext "* | \
5135 *" malloc.$ac_objext "* ) ;;
5136 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
5137esac
5138
5139
5140cat >>confdefs.h <<\_ACEOF
5141#define malloc rpl_malloc
5142_ACEOF
5143
5144fi
5145
5146
5147
5148
5149for ac_header in stdlib.h
5150do
5151as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5152if eval "test \"\${$as_ac_Header+set}\" = set"; then
5153 echo "$as_me:$LINENO: checking for $ac_header" >&5
5154echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5155if eval "test \"\${$as_ac_Header+set}\" = set"; then
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5157fi
5158echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5159echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5160else
5161 # Is the header compilable?
5162echo "$as_me:$LINENO: checking $ac_header usability" >&5
5163echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5164cat >conftest.$ac_ext <<_ACEOF
5165/* confdefs.h. */
5166_ACEOF
5167cat confdefs.h >>conftest.$ac_ext
5168cat >>conftest.$ac_ext <<_ACEOF
5169/* end confdefs.h. */
5170$ac_includes_default
5171#include <$ac_header>
5172_ACEOF
5173rm -f conftest.$ac_objext
5174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5175 (eval $ac_compile) 2>conftest.er1
5176 ac_status=$?
5177 grep -v '^ *+' conftest.er1 >conftest.err
5178 rm -f conftest.er1
5179 cat conftest.err >&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); } &&
5182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5184 (eval $ac_try) 2>&5
5185 ac_status=$?
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); }; } &&
5188 { ac_try='test -s conftest.$ac_objext'
5189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5190 (eval $ac_try) 2>&5
5191 ac_status=$?
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); }; }; then
5194 ac_header_compiler=yes
5195else
5196 echo "$as_me: failed program was:" >&5
5197sed 's/^/| /' conftest.$ac_ext >&5
5198
5199ac_header_compiler=no
5200fi
5201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5202echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5203echo "${ECHO_T}$ac_header_compiler" >&6
5204
5205# Is the header present?
5206echo "$as_me:$LINENO: checking $ac_header presence" >&5
5207echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5208cat >conftest.$ac_ext <<_ACEOF
5209/* confdefs.h. */
5210_ACEOF
5211cat confdefs.h >>conftest.$ac_ext
5212cat >>conftest.$ac_ext <<_ACEOF
5213/* end confdefs.h. */
5214#include <$ac_header>
5215_ACEOF
5216if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5217 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5218 ac_status=$?
5219 grep -v '^ *+' conftest.er1 >conftest.err
5220 rm -f conftest.er1
5221 cat conftest.err >&5
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); } >/dev/null; then
5224 if test -s conftest.err; then
5225 ac_cpp_err=$ac_c_preproc_warn_flag
5226 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5227 else
5228 ac_cpp_err=
5229 fi
5230else
5231 ac_cpp_err=yes
5232fi
5233if test -z "$ac_cpp_err"; then
5234 ac_header_preproc=yes
5235else
5236 echo "$as_me: failed program was:" >&5
5237sed 's/^/| /' conftest.$ac_ext >&5
5238
5239 ac_header_preproc=no
5240fi
5241rm -f conftest.err conftest.$ac_ext
5242echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5243echo "${ECHO_T}$ac_header_preproc" >&6
5244
5245# So? What about this header?
5246case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5247 yes:no: )
5248 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5249echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5251echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5252 ac_header_preproc=yes
5253 ;;
5254 no:yes:* )
5255 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5256echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5257 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5258echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5259 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5260echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5261 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5262echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5264echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5265 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5266echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5267 (
5268 cat <<\_ASBOX
5269## ------------------------------------------ ##
5270## Report this to the AC_PACKAGE_NAME lists. ##
5271## ------------------------------------------ ##
5272_ASBOX
5273 ) |
5274 sed "s/^/$as_me: WARNING: /" >&2
5275 ;;
5276esac
5277echo "$as_me:$LINENO: checking for $ac_header" >&5
5278echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5279if eval "test \"\${$as_ac_Header+set}\" = set"; then
5280 echo $ECHO_N "(cached) $ECHO_C" >&6
5281else
5282 eval "$as_ac_Header=\$ac_header_preproc"
5283fi
5284echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5285echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5286
5287fi
5288if test `eval echo '${'$as_ac_Header'}'` = yes; then
5289 cat >>confdefs.h <<_ACEOF
5290#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5291_ACEOF
5292
5293fi
5294
5295done
5296
5297echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
5298echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
5299if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
5300 echo $ECHO_N "(cached) $ECHO_C" >&6
5301else
5302 if test "$cross_compiling" = yes; then
5303 ac_cv_func_realloc_0_nonnull=no
5304else
5305 cat >conftest.$ac_ext <<_ACEOF
5306/* confdefs.h. */
5307_ACEOF
5308cat confdefs.h >>conftest.$ac_ext
5309cat >>conftest.$ac_ext <<_ACEOF
5310/* end confdefs.h. */
5311#if STDC_HEADERS || HAVE_STDLIB_H
5312# include <stdlib.h>
5313#else
5314char *realloc ();
5315#endif
5316
5317int
5318main ()
5319{
5320exit (realloc (0, 0) ? 0 : 1);
5321 ;
5322 return 0;
5323}
5324_ACEOF
5325rm -f conftest$ac_exeext
5326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5327 (eval $ac_link) 2>&5
5328 ac_status=$?
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5332 (eval $ac_try) 2>&5
5333 ac_status=$?
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); }; }; then
5336 ac_cv_func_realloc_0_nonnull=yes
5337else
5338 echo "$as_me: program exited with status $ac_status" >&5
5339echo "$as_me: failed program was:" >&5
5340sed 's/^/| /' conftest.$ac_ext >&5
5341
5342( exit $ac_status )
5343ac_cv_func_realloc_0_nonnull=no
5344fi
5345rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5346fi
5347fi
5348echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
5349echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
5350if test $ac_cv_func_realloc_0_nonnull = yes; then
5351
5352cat >>confdefs.h <<\_ACEOF
5353#define HAVE_REALLOC 1
5354_ACEOF
5355
5356else
5357 cat >>confdefs.h <<\_ACEOF
5358#define HAVE_REALLOC 0
5359_ACEOF
5360
5361 case $LIBOBJS in
5362 "realloc.$ac_objext" | \
5363 *" realloc.$ac_objext" | \
5364 "realloc.$ac_objext "* | \
5365 *" realloc.$ac_objext "* ) ;;
5366 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
5367esac
5368
5369
5370cat >>confdefs.h <<\_ACEOF
5371#define realloc rpl_realloc
5372_ACEOF
5373
5374fi
5375
5376
5377
5378
5379
5380for ac_header in sys/select.h sys/socket.h
5381do
5382as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5383if eval "test \"\${$as_ac_Header+set}\" = set"; then
5384 echo "$as_me:$LINENO: checking for $ac_header" >&5
5385echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5386if eval "test \"\${$as_ac_Header+set}\" = set"; then
5387 echo $ECHO_N "(cached) $ECHO_C" >&6
5388fi
5389echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5390echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5391else
5392 # Is the header compilable?
5393echo "$as_me:$LINENO: checking $ac_header usability" >&5
5394echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5395cat >conftest.$ac_ext <<_ACEOF
5396/* confdefs.h. */
5397_ACEOF
5398cat confdefs.h >>conftest.$ac_ext
5399cat >>conftest.$ac_ext <<_ACEOF
5400/* end confdefs.h. */
5401$ac_includes_default
5402#include <$ac_header>
5403_ACEOF
5404rm -f conftest.$ac_objext
5405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5406 (eval $ac_compile) 2>conftest.er1
5407 ac_status=$?
5408 grep -v '^ *+' conftest.er1 >conftest.err
5409 rm -f conftest.er1
5410 cat conftest.err >&5
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); } &&
5413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5415 (eval $ac_try) 2>&5
5416 ac_status=$?
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); }; } &&
5419 { ac_try='test -s conftest.$ac_objext'
5420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5421 (eval $ac_try) 2>&5
5422 ac_status=$?
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); }; }; then
5425 ac_header_compiler=yes
5426else
5427 echo "$as_me: failed program was:" >&5
5428sed 's/^/| /' conftest.$ac_ext >&5
5429
5430ac_header_compiler=no
5431fi
5432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5433echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5434echo "${ECHO_T}$ac_header_compiler" >&6
5435
5436# Is the header present?
5437echo "$as_me:$LINENO: checking $ac_header presence" >&5
5438echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5439cat >conftest.$ac_ext <<_ACEOF
5440/* confdefs.h. */
5441_ACEOF
5442cat confdefs.h >>conftest.$ac_ext
5443cat >>conftest.$ac_ext <<_ACEOF
5444/* end confdefs.h. */
5445#include <$ac_header>
5446_ACEOF
5447if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5448 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5449 ac_status=$?
5450 grep -v '^ *+' conftest.er1 >conftest.err
5451 rm -f conftest.er1
5452 cat conftest.err >&5
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); } >/dev/null; then
5455 if test -s conftest.err; then
5456 ac_cpp_err=$ac_c_preproc_warn_flag
5457 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5458 else
5459 ac_cpp_err=
5460 fi
5461else
5462 ac_cpp_err=yes
5463fi
5464if test -z "$ac_cpp_err"; then
5465 ac_header_preproc=yes
5466else
5467 echo "$as_me: failed program was:" >&5
5468sed 's/^/| /' conftest.$ac_ext >&5
5469
5470 ac_header_preproc=no
5471fi
5472rm -f conftest.err conftest.$ac_ext
5473echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5474echo "${ECHO_T}$ac_header_preproc" >&6
5475
5476# So? What about this header?
5477case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5478 yes:no: )
5479 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5480echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5482echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5483 ac_header_preproc=yes
5484 ;;
5485 no:yes:* )
5486 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5487echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5488 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5489echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5490 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5491echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5492 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5493echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5495echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5496 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5497echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5498 (
5499 cat <<\_ASBOX
5500## ------------------------------------------ ##
5501## Report this to the AC_PACKAGE_NAME lists. ##
5502## ------------------------------------------ ##
5503_ASBOX
5504 ) |
5505 sed "s/^/$as_me: WARNING: /" >&2
5506 ;;
5507esac
5508echo "$as_me:$LINENO: checking for $ac_header" >&5
5509echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5510if eval "test \"\${$as_ac_Header+set}\" = set"; then
5511 echo $ECHO_N "(cached) $ECHO_C" >&6
5512else
5513 eval "$as_ac_Header=\$ac_header_preproc"
5514fi
5515echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5516echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5517
5518fi
5519if test `eval echo '${'$as_ac_Header'}'` = yes; then
5520 cat >>confdefs.h <<_ACEOF
5521#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5522_ACEOF
5523
5524fi
5525
5526done
5527
5528echo "$as_me:$LINENO: checking types of arguments for select" >&5
5529echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
5530if test "${ac_cv_func_select_args+set}" = set; then
5531 echo $ECHO_N "(cached) $ECHO_C" >&6
5532else
5533 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
5534 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5535 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
5536 cat >conftest.$ac_ext <<_ACEOF
5537/* confdefs.h. */
5538_ACEOF
5539cat confdefs.h >>conftest.$ac_ext
5540cat >>conftest.$ac_ext <<_ACEOF
5541/* end confdefs.h. */
5542$ac_includes_default
5543#if HAVE_SYS_SELECT_H
5544# include <sys/select.h>
5545#endif
5546#if HAVE_SYS_SOCKET_H
5547# include <sys/socket.h>
5548#endif
5549
5550int
5551main ()
5552{
5553extern int select ($ac_arg1,
5554 $ac_arg234, $ac_arg234, $ac_arg234,
5555 $ac_arg5);
5556 ;
5557 return 0;
5558}
5559_ACEOF
5560rm -f conftest.$ac_objext
5561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5562 (eval $ac_compile) 2>conftest.er1
5563 ac_status=$?
5564 grep -v '^ *+' conftest.er1 >conftest.err
5565 rm -f conftest.er1
5566 cat conftest.err >&5
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); } &&
5569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5571 (eval $ac_try) 2>&5
5572 ac_status=$?
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); }; } &&
5575 { ac_try='test -s conftest.$ac_objext'
5576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5577 (eval $ac_try) 2>&5
5578 ac_status=$?
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); }; }; then
5581 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
5582else
5583 echo "$as_me: failed program was:" >&5
5584sed 's/^/| /' conftest.$ac_ext >&5
5585
5586fi
5587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5588 done
5589 done
5590done
5591# Provide a safe default value.
5592: ${ac_cv_func_select_args='int,int *,struct timeval *'}
5593
5594fi
5595echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
5596echo "${ECHO_T}$ac_cv_func_select_args" >&6
5597ac_save_IFS=$IFS; IFS=','
5598set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
5599IFS=$ac_save_IFS
5600shift
5601
5602cat >>confdefs.h <<_ACEOF
5603#define SELECT_TYPE_ARG1 $1
5604_ACEOF
5605
5606
5607cat >>confdefs.h <<_ACEOF
5608#define SELECT_TYPE_ARG234 ($2)
5609_ACEOF
5610
5611
5612cat >>confdefs.h <<_ACEOF
5613#define SELECT_TYPE_ARG5 ($3)
5614_ACEOF
5615
5616rm -f conftest*
5617
2ace9480 5618
7f9838a7 5619
2ace9480 5620# Check whether --with-ircd or --without-ircd was given.
5621if test "${with_ircd+set}" = set; then
5622 withval="$with_ircd"
7f9838a7 5623
5624fi;
2ace9480 5625
5626# Check whether --with-tableprefix or --without-tableprefix was given.
5627if test "${with_tableprefix+set}" = set; then
5628 withval="$with_tableprefix"
7f9838a7 5629
5630fi;
2ace9480 5631
5632# Check whether --with-hashlist or --without-hashlist was given.
5633if test "${with_hashlist+set}" = set; then
5634 withval="$with_hashlist"
7f9838a7 5635
5636fi;
2ace9480 5637
5638# Check whether --with-mysql or --without-mysql was given.
5639if test "${with_mysql+set}" = set; then
5640 withval="$with_mysql"
7f9838a7 5641
5642fi;
2ace9480 5643
5644# Check whether --with-mysql-includes or --without-mysql-includes was given.
5645if test "${with_mysql_includes+set}" = set; then
5646 withval="$with_mysql_includes"
7f9838a7 5647
5648fi;
2ace9480 5649
5650# Check whether --with-mysql-libraries or --without-mysql-libraries was given.
5651if test "${with_mysql_libraries+set}" = set; then
5652 withval="$with_mysql_libraries"
2ace9480 5653
7f9838a7 5654fi;
2ace9480 5655# Check whether --enable-noreportusage or --disable-noreportusage was given.
5656if test "${enable_noreportusage+set}" = set; then
5657 enableval="$enable_noreportusage"
5658 REPORT=0
5659else
5660 REPORT=1
7f9838a7 5661fi;
5662
5663
5664mysqlhead=0
5665mysqllib=0
5666
5667echo "$as_me:$LINENO: checking for mysql_real_connect in -lmysqlclient" >&5
5668echo $ECHO_N "checking for mysql_real_connect in -lmysqlclient... $ECHO_C" >&6
5669if test "${ac_cv_lib_mysqlclient_mysql_real_connect+set}" = set; then
5670 echo $ECHO_N "(cached) $ECHO_C" >&6
5671else
5672 ac_check_lib_save_LIBS=$LIBS
5673LIBS="-lmysqlclient $LIBS"
5674cat >conftest.$ac_ext <<_ACEOF
5675/* confdefs.h. */
5676_ACEOF
5677cat confdefs.h >>conftest.$ac_ext
5678cat >>conftest.$ac_ext <<_ACEOF
5679/* end confdefs.h. */
5680
5681/* Override any gcc2 internal prototype to avoid an error. */
5682#ifdef __cplusplus
5683extern "C"
5684#endif
5685/* We use char because int might match the return type of a gcc2
5686 builtin and then its argument prototype would still apply. */
5687char mysql_real_connect ();
5688int
5689main ()
5690{
5691mysql_real_connect ();
5692 ;
5693 return 0;
5694}
5695_ACEOF
5696rm -f conftest.$ac_objext conftest$ac_exeext
5697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5698 (eval $ac_link) 2>conftest.er1
5699 ac_status=$?
5700 grep -v '^ *+' conftest.er1 >conftest.err
5701 rm -f conftest.er1
5702 cat conftest.err >&5
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); } &&
5705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5707 (eval $ac_try) 2>&5
5708 ac_status=$?
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); }; } &&
5711 { ac_try='test -s conftest$ac_exeext'
5712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713 (eval $ac_try) 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; }; then
5717 ac_cv_lib_mysqlclient_mysql_real_connect=yes
5718else
5719 echo "$as_me: failed program was:" >&5
5720sed 's/^/| /' conftest.$ac_ext >&5
2ace9480 5721
7f9838a7 5722ac_cv_lib_mysqlclient_mysql_real_connect=no
5723fi
5724rm -f conftest.err conftest.$ac_objext \
5725 conftest$ac_exeext conftest.$ac_ext
5726LIBS=$ac_check_lib_save_LIBS
5727fi
5728echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_real_connect" >&5
5729echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_real_connect" >&6
5730if test $ac_cv_lib_mysqlclient_mysql_real_connect = yes; then
5731 LIBS="-lmysqlclient $LIBS"; mysqllib=1
5732fi
2ace9480 5733
5734
5735if test "x$with_mysql_includes" != "x"; then
7f9838a7 5736 as_ac_Header=`echo "ac_cv_header_$with_mysql_includes/mysql.h" | $as_tr_sh`
5737if eval "test \"\${$as_ac_Header+set}\" = set"; then
5738 echo "$as_me:$LINENO: checking for $with_mysql_includes/mysql.h" >&5
5739echo $ECHO_N "checking for $with_mysql_includes/mysql.h... $ECHO_C" >&6
5740if eval "test \"\${$as_ac_Header+set}\" = set"; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5742fi
5743echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5744echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5745else
5746 # Is the header compilable?
5747echo "$as_me:$LINENO: checking $with_mysql_includes/mysql.h usability" >&5
5748echo $ECHO_N "checking $with_mysql_includes/mysql.h usability... $ECHO_C" >&6
5749cat >conftest.$ac_ext <<_ACEOF
5750/* confdefs.h. */
5751_ACEOF
5752cat confdefs.h >>conftest.$ac_ext
5753cat >>conftest.$ac_ext <<_ACEOF
5754/* end confdefs.h. */
5755$ac_includes_default
2ace9480 5756#include <$with_mysql_includes/mysql.h>
7f9838a7 5757_ACEOF
5758rm -f conftest.$ac_objext
5759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5760 (eval $ac_compile) 2>conftest.er1
5761 ac_status=$?
5762 grep -v '^ *+' conftest.er1 >conftest.err
5763 rm -f conftest.er1
5764 cat conftest.err >&5
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); } &&
5767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769 (eval $ac_try) 2>&5
5770 ac_status=$?
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; } &&
5773 { ac_try='test -s conftest.$ac_objext'
5774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775 (eval $ac_try) 2>&5
5776 ac_status=$?
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; }; then
5779 ac_header_compiler=yes
5780else
5781 echo "$as_me: failed program was:" >&5
5782sed 's/^/| /' conftest.$ac_ext >&5
5783
5784ac_header_compiler=no
5785fi
5786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5787echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5788echo "${ECHO_T}$ac_header_compiler" >&6
5789
5790# Is the header present?
5791echo "$as_me:$LINENO: checking $with_mysql_includes/mysql.h presence" >&5
5792echo $ECHO_N "checking $with_mysql_includes/mysql.h presence... $ECHO_C" >&6
5793cat >conftest.$ac_ext <<_ACEOF
5794/* confdefs.h. */
5795_ACEOF
5796cat confdefs.h >>conftest.$ac_ext
5797cat >>conftest.$ac_ext <<_ACEOF
5798/* end confdefs.h. */
5799#include <$with_mysql_includes/mysql.h>
5800_ACEOF
5801if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5802 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5803 ac_status=$?
5804 grep -v '^ *+' conftest.er1 >conftest.err
5805 rm -f conftest.er1
5806 cat conftest.err >&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); } >/dev/null; then
5809 if test -s conftest.err; then
5810 ac_cpp_err=$ac_c_preproc_warn_flag
5811 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5812 else
5813 ac_cpp_err=
5814 fi
5815else
5816 ac_cpp_err=yes
2ace9480 5817fi
7f9838a7 5818if test -z "$ac_cpp_err"; then
5819 ac_header_preproc=yes
2ace9480 5820else
7f9838a7 5821 echo "$as_me: failed program was:" >&5
5822sed 's/^/| /' conftest.$ac_ext >&5
5823
5824 ac_header_preproc=no
5825fi
5826rm -f conftest.err conftest.$ac_ext
5827echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5828echo "${ECHO_T}$ac_header_preproc" >&6
5829
5830# So? What about this header?
5831case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5832 yes:no: )
5833 { echo "$as_me:$LINENO: WARNING: $with_mysql_includes/mysql.h: accepted by the compiler, rejected by the preprocessor!" >&5
5834echo "$as_me: WARNING: $with_mysql_includes/mysql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5835 { echo "$as_me:$LINENO: WARNING: $with_mysql_includes/mysql.h: proceeding with the compiler's result" >&5
5836echo "$as_me: WARNING: $with_mysql_includes/mysql.h: proceeding with the compiler's result" >&2;}
5837 ac_header_preproc=yes
5838 ;;
5839 no:yes:* )
5840 { echo "$as_me:$LINENO: WARNING: $with_mysql_includes/mysql.h: present but cannot be compiled" >&5
5841echo "$as_me: WARNING: $with_mysql_includes/mysql.h: present but cannot be compiled" >&2;}
5842 { echo "$as_me:$LINENO: WARNING: $with_mysql_includes/mysql.h: check for missing prerequisite headers?" >&5
5843echo "$as_me: WARNING: $with_mysql_includes/mysql.h: check for missing prerequisite headers?" >&2;}
5844 { echo "$as_me:$LINENO: WARNING: $with_mysql_includes/mysql.h: see the Autoconf documentation" >&5
5845echo "$as_me: WARNING: $with_mysql_includes/mysql.h: see the Autoconf documentation" >&2;}
5846 { echo "$as_me:$LINENO: WARNING: $with_mysql_includes/mysql.h: section \"Present But Cannot Be Compiled\"" >&5
5847echo "$as_me: WARNING: $with_mysql_includes/mysql.h: section \"Present But Cannot Be Compiled\"" >&2;}
5848 { echo "$as_me:$LINENO: WARNING: $with_mysql_includes/mysql.h: proceeding with the preprocessor's result" >&5
5849echo "$as_me: WARNING: $with_mysql_includes/mysql.h: proceeding with the preprocessor's result" >&2;}
5850 { echo "$as_me:$LINENO: WARNING: $with_mysql_includes/mysql.h: in the future, the compiler will take precedence" >&5
5851echo "$as_me: WARNING: $with_mysql_includes/mysql.h: in the future, the compiler will take precedence" >&2;}
5852 (
5853 cat <<\_ASBOX
5854## ------------------------------------------ ##
5855## Report this to the AC_PACKAGE_NAME lists. ##
5856## ------------------------------------------ ##
5857_ASBOX
5858 ) |
5859 sed "s/^/$as_me: WARNING: /" >&2
5860 ;;
5861esac
5862echo "$as_me:$LINENO: checking for $with_mysql_includes/mysql.h" >&5
5863echo $ECHO_N "checking for $with_mysql_includes/mysql.h... $ECHO_C" >&6
5864if eval "test \"\${$as_ac_Header+set}\" = set"; then
5865 echo $ECHO_N "(cached) $ECHO_C" >&6
5866else
5867 eval "$as_ac_Header=\$ac_header_preproc"
5868fi
5869echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5870echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5871
5872fi
5873if test `eval echo '${'$as_ac_Header'}'` = yes; then
5874 CFLAGS="$CFLAGS -I$with_mysql_includes" ; mysqlinc=1
2ace9480 5875fi
5876
7f9838a7 5877
2ace9480 5878fi
5879
5880if test "x$with_mysql_libraries" != "x"; then
7f9838a7 5881 if test $mysqllib -eq 0; then
5882 echo "$as_me:$LINENO: checking for libmysqlclient in $with_mysql_libraries" >&5
5883echo $ECHO_N "checking for libmysqlclient in $with_mysql_libraries... $ECHO_C" >&6
2ace9480 5884ac_lib_var=`echo $with_mysql_libraries'_'mysqlclient | sed 'y%./+-%__p_%'`
7f9838a7 5885if eval "test \"\${ac_cv_lib_loc_$ac_lib_var+set}\" = set"; then
5886 echo $ECHO_N "(cached) $ECHO_C" >&6
2ace9480 5887else
5888 ac_save_LIBS="$LIBS"
5889LIBS="-L$with_mysql_libraries -lmysqlclient $LIBS"
7f9838a7 5890cat >conftest.$ac_ext <<_ACEOF
5891/* confdefs.h. */
5892_ACEOF
5893cat confdefs.h >>conftest.$ac_ext
5894cat >>conftest.$ac_ext <<_ACEOF
5895/* end confdefs.h. */
2ace9480 5896/* We use char because int might match the return type of a gcc2
5897 builtin and then its argument prototype would still apply. */
5898char mysql_real_connect();
5899
7f9838a7 5900int
5901main ()
5902{
2ace9480 5903mysql_real_connect()
7f9838a7 5904 ;
5905 return 0;
5906}
5907_ACEOF
5908rm -f conftest.$ac_objext conftest$ac_exeext
5909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5910 (eval $ac_link) 2>conftest.er1
5911 ac_status=$?
5912 grep -v '^ *+' conftest.er1 >conftest.err
5913 rm -f conftest.er1
5914 cat conftest.err >&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); } &&
5917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919 (eval $ac_try) 2>&5
5920 ac_status=$?
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); }; } &&
5923 { ac_try='test -s conftest$ac_exeext'
5924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5925 (eval $ac_try) 2>&5
5926 ac_status=$?
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }; }; then
2ace9480 5929 eval "ac_cv_lib_loc_$ac_lib_var=yes"
5930else
7f9838a7 5931 echo "$as_me: failed program was:" >&5
5932sed 's/^/| /' conftest.$ac_ext >&5
5933
5934eval "ac_cv_lib_loc_$ac_lib_var=no"
2ace9480 5935fi
7f9838a7 5936rm -f conftest.err conftest.$ac_objext \
5937 conftest$ac_exeext conftest.$ac_ext
2ace9480 5938LIBS="$ac_save_LIBS"
5939
5940fi
5941if eval "test \"`echo '$ac_cv_lib_loc_'$ac_lib_var`\" = yes"; then
7f9838a7 5942 echo "$as_me:$LINENO: result: yes" >&5
5943echo "${ECHO_T}yes" >&6
5944 LIBS="-L$with_mysql_libraries -lmysqlclient $LIBS"; mysqllib=1
2ace9480 5945else
7f9838a7 5946 echo "$as_me:$LINENO: result: no" >&5
5947echo "${ECHO_T}no" >&6
2ace9480 5948fi
5949
7f9838a7 5950 fi
2ace9480 5951fi
5952
5953if test "x$with_mysql" != "x"; then
5954 if test "x$with_mysql_libraries" = "x"; then
7f9838a7 5955 if test $mysqllib -eq 0; then
5956 echo "$as_me:$LINENO: checking for libmysqlclient in $with_mysql/lib/mysql" >&5
5957echo $ECHO_N "checking for libmysqlclient in $with_mysql/lib/mysql... $ECHO_C" >&6
2ace9480 5958ac_lib_var=`echo $with_mysql/lib/mysql'_'mysqlclient | sed 'y%./+-%__p_%'`
7f9838a7 5959if eval "test \"\${ac_cv_lib_loc_$ac_lib_var+set}\" = set"; then
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
2ace9480 5961else
5962 ac_save_LIBS="$LIBS"
5963LIBS="-L$with_mysql/lib/mysql -lmysqlclient $LIBS"
7f9838a7 5964cat >conftest.$ac_ext <<_ACEOF
5965/* confdefs.h. */
5966_ACEOF
5967cat confdefs.h >>conftest.$ac_ext
5968cat >>conftest.$ac_ext <<_ACEOF
5969/* end confdefs.h. */
2ace9480 5970/* We use char because int might match the return type of a gcc2
5971 builtin and then its argument prototype would still apply. */
5972char mysql_real_connect();
5973
7f9838a7 5974int
5975main ()
5976{
2ace9480 5977mysql_real_connect()
7f9838a7 5978 ;
5979 return 0;
5980}
5981_ACEOF
5982rm -f conftest.$ac_objext conftest$ac_exeext
5983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5984 (eval $ac_link) 2>conftest.er1
5985 ac_status=$?
5986 grep -v '^ *+' conftest.er1 >conftest.err
5987 rm -f conftest.er1
5988 cat conftest.err >&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } &&
5991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5993 (eval $ac_try) 2>&5
5994 ac_status=$?
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); }; } &&
5997 { ac_try='test -s conftest$ac_exeext'
5998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999 (eval $ac_try) 2>&5
6000 ac_status=$?
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; }; then
2ace9480 6003 eval "ac_cv_lib_loc_$ac_lib_var=yes"
6004else
7f9838a7 6005 echo "$as_me: failed program was:" >&5
6006sed 's/^/| /' conftest.$ac_ext >&5
6007
6008eval "ac_cv_lib_loc_$ac_lib_var=no"
2ace9480 6009fi
7f9838a7 6010rm -f conftest.err conftest.$ac_objext \
6011 conftest$ac_exeext conftest.$ac_ext
2ace9480 6012LIBS="$ac_save_LIBS"
6013
6014fi
6015if eval "test \"`echo '$ac_cv_lib_loc_'$ac_lib_var`\" = yes"; then
7f9838a7 6016 echo "$as_me:$LINENO: result: yes" >&5
6017echo "${ECHO_T}yes" >&6
6018 LIBS="-L$with_mysql_libraries -lmysqlclient $LIBS"; mysqllib=1
2ace9480 6019else
7f9838a7 6020 echo "$as_me:$LINENO: result: no" >&5
6021echo "${ECHO_T}no" >&6
2ace9480 6022fi
6023
7f9838a7 6024 fi
2ace9480 6025 fi
6026 if test "x$with_mysql_includes" = "x"; then
7f9838a7 6027 as_ac_Header=`echo "ac_cv_header_$with_mysql/include/mysql/mysql.h" | $as_tr_sh`
6028if eval "test \"\${$as_ac_Header+set}\" = set"; then
6029 echo "$as_me:$LINENO: checking for $with_mysql/include/mysql/mysql.h" >&5
6030echo $ECHO_N "checking for $with_mysql/include/mysql/mysql.h... $ECHO_C" >&6
6031if eval "test \"\${$as_ac_Header+set}\" = set"; then
6032 echo $ECHO_N "(cached) $ECHO_C" >&6
6033fi
6034echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6035echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6036else
6037 # Is the header compilable?
6038echo "$as_me:$LINENO: checking $with_mysql/include/mysql/mysql.h usability" >&5
6039echo $ECHO_N "checking $with_mysql/include/mysql/mysql.h usability... $ECHO_C" >&6
6040cat >conftest.$ac_ext <<_ACEOF
6041/* confdefs.h. */
6042_ACEOF
6043cat confdefs.h >>conftest.$ac_ext
6044cat >>conftest.$ac_ext <<_ACEOF
6045/* end confdefs.h. */
6046$ac_includes_default
2ace9480 6047#include <$with_mysql/include/mysql/mysql.h>
7f9838a7 6048_ACEOF
6049rm -f conftest.$ac_objext
6050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6051 (eval $ac_compile) 2>conftest.er1
6052 ac_status=$?
6053 grep -v '^ *+' conftest.er1 >conftest.err
6054 rm -f conftest.er1
6055 cat conftest.err >&5
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); } &&
6058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6060 (eval $ac_try) 2>&5
6061 ac_status=$?
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); }; } &&
6064 { ac_try='test -s conftest.$ac_objext'
6065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6066 (eval $ac_try) 2>&5
6067 ac_status=$?
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); }; }; then
6070 ac_header_compiler=yes
6071else
6072 echo "$as_me: failed program was:" >&5
6073sed 's/^/| /' conftest.$ac_ext >&5
6074
6075ac_header_compiler=no
6076fi
6077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6078echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6079echo "${ECHO_T}$ac_header_compiler" >&6
6080
6081# Is the header present?
6082echo "$as_me:$LINENO: checking $with_mysql/include/mysql/mysql.h presence" >&5
6083echo $ECHO_N "checking $with_mysql/include/mysql/mysql.h presence... $ECHO_C" >&6
6084cat >conftest.$ac_ext <<_ACEOF
6085/* confdefs.h. */
6086_ACEOF
6087cat confdefs.h >>conftest.$ac_ext
6088cat >>conftest.$ac_ext <<_ACEOF
6089/* end confdefs.h. */
6090#include <$with_mysql/include/mysql/mysql.h>
6091_ACEOF
6092if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6094 ac_status=$?
6095 grep -v '^ *+' conftest.er1 >conftest.err
6096 rm -f conftest.er1
6097 cat conftest.err >&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); } >/dev/null; then
6100 if test -s conftest.err; then
6101 ac_cpp_err=$ac_c_preproc_warn_flag
6102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6103 else
6104 ac_cpp_err=
6105 fi
6106else
6107 ac_cpp_err=yes
2ace9480 6108fi
7f9838a7 6109if test -z "$ac_cpp_err"; then
6110 ac_header_preproc=yes
6111else
6112 echo "$as_me: failed program was:" >&5
6113sed 's/^/| /' conftest.$ac_ext >&5
6114
6115 ac_header_preproc=no
6116fi
6117rm -f conftest.err conftest.$ac_ext
6118echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6119echo "${ECHO_T}$ac_header_preproc" >&6
6120
6121# So? What about this header?
6122case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6123 yes:no: )
6124 { echo "$as_me:$LINENO: WARNING: $with_mysql/include/mysql/mysql.h: accepted by the compiler, rejected by the preprocessor!" >&5
6125echo "$as_me: WARNING: $with_mysql/include/mysql/mysql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6126 { echo "$as_me:$LINENO: WARNING: $with_mysql/include/mysql/mysql.h: proceeding with the compiler's result" >&5
6127echo "$as_me: WARNING: $with_mysql/include/mysql/mysql.h: proceeding with the compiler's result" >&2;}
6128 ac_header_preproc=yes
6129 ;;
6130 no:yes:* )
6131 { echo "$as_me:$LINENO: WARNING: $with_mysql/include/mysql/mysql.h: present but cannot be compiled" >&5
6132echo "$as_me: WARNING: $with_mysql/include/mysql/mysql.h: present but cannot be compiled" >&2;}
6133 { echo "$as_me:$LINENO: WARNING: $with_mysql/include/mysql/mysql.h: check for missing prerequisite headers?" >&5
6134echo "$as_me: WARNING: $with_mysql/include/mysql/mysql.h: check for missing prerequisite headers?" >&2;}
6135 { echo "$as_me:$LINENO: WARNING: $with_mysql/include/mysql/mysql.h: see the Autoconf documentation" >&5
6136echo "$as_me: WARNING: $with_mysql/include/mysql/mysql.h: see the Autoconf documentation" >&2;}
6137 { echo "$as_me:$LINENO: WARNING: $with_mysql/include/mysql/mysql.h: section \"Present But Cannot Be Compiled\"" >&5
6138echo "$as_me: WARNING: $with_mysql/include/mysql/mysql.h: section \"Present But Cannot Be Compiled\"" >&2;}
6139 { echo "$as_me:$LINENO: WARNING: $with_mysql/include/mysql/mysql.h: proceeding with the preprocessor's result" >&5
6140echo "$as_me: WARNING: $with_mysql/include/mysql/mysql.h: proceeding with the preprocessor's result" >&2;}
6141 { echo "$as_me:$LINENO: WARNING: $with_mysql/include/mysql/mysql.h: in the future, the compiler will take precedence" >&5
6142echo "$as_me: WARNING: $with_mysql/include/mysql/mysql.h: in the future, the compiler will take precedence" >&2;}
6143 (
6144 cat <<\_ASBOX
6145## ------------------------------------------ ##
6146## Report this to the AC_PACKAGE_NAME lists. ##
6147## ------------------------------------------ ##
6148_ASBOX
6149 ) |
6150 sed "s/^/$as_me: WARNING: /" >&2
6151 ;;
6152esac
6153echo "$as_me:$LINENO: checking for $with_mysql/include/mysql/mysql.h" >&5
6154echo $ECHO_N "checking for $with_mysql/include/mysql/mysql.h... $ECHO_C" >&6
6155if eval "test \"\${$as_ac_Header+set}\" = set"; then
6156 echo $ECHO_N "(cached) $ECHO_C" >&6
2ace9480 6157else
7f9838a7 6158 eval "$as_ac_Header=\$ac_header_preproc"
6159fi
6160echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6161echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6162
2ace9480 6163fi
7f9838a7 6164if test `eval echo '${'$as_ac_Header'}'` = yes; then
6165 CFLAGS="$CFLAGS -I$with_mysql/include/mysql" ; mysqlhead=1
6166fi
6167
2ace9480 6168
6169 fi
6170else
6171 if test "x$with_mysql_libraries" = "x"; then
7f9838a7 6172 if test $mysqllib -eq 0; then
6173 echo "$as_me:$LINENO: checking for libmysqlclient in /opt/lib/mysql" >&5
6174echo $ECHO_N "checking for libmysqlclient in /opt/lib/mysql... $ECHO_C" >&6
2ace9480 6175ac_lib_var=`echo /opt/lib/mysql'_'mysqlclient | sed 'y%./+-%__p_%'`
7f9838a7 6176if eval "test \"\${ac_cv_lib_loc_$ac_lib_var+set}\" = set"; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
2ace9480 6178else
6179 ac_save_LIBS="$LIBS"
6180LIBS="-L/opt/lib/mysql -lmysqlclient $LIBS"
7f9838a7 6181cat >conftest.$ac_ext <<_ACEOF
6182/* confdefs.h. */
6183_ACEOF
6184cat confdefs.h >>conftest.$ac_ext
6185cat >>conftest.$ac_ext <<_ACEOF
6186/* end confdefs.h. */
2ace9480 6187/* We use char because int might match the return type of a gcc2
6188 builtin and then its argument prototype would still apply. */
6189char mysql_real_connect();
6190
7f9838a7 6191int
6192main ()
6193{
2ace9480 6194mysql_real_connect()
7f9838a7 6195 ;
6196 return 0;
6197}
6198_ACEOF
6199rm -f conftest.$ac_objext conftest$ac_exeext
6200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6201 (eval $ac_link) 2>conftest.er1
6202 ac_status=$?
6203 grep -v '^ *+' conftest.er1 >conftest.err
6204 rm -f conftest.er1
6205 cat conftest.err >&5
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); } &&
6208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6210 (eval $ac_try) 2>&5
6211 ac_status=$?
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); }; } &&
6214 { ac_try='test -s conftest$ac_exeext'
6215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6216 (eval $ac_try) 2>&5
6217 ac_status=$?
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); }; }; then
2ace9480 6220 eval "ac_cv_lib_loc_$ac_lib_var=yes"
6221else
7f9838a7 6222 echo "$as_me: failed program was:" >&5
6223sed 's/^/| /' conftest.$ac_ext >&5
6224
6225eval "ac_cv_lib_loc_$ac_lib_var=no"
2ace9480 6226fi
7f9838a7 6227rm -f conftest.err conftest.$ac_objext \
6228 conftest$ac_exeext conftest.$ac_ext
2ace9480 6229LIBS="$ac_save_LIBS"
6230
6231fi
6232if eval "test \"`echo '$ac_cv_lib_loc_'$ac_lib_var`\" = yes"; then
7f9838a7 6233 echo "$as_me:$LINENO: result: yes" >&5
6234echo "${ECHO_T}yes" >&6
6235 LIBS="-L/opt/lib/mysql -lmysqlclient $LIBS"; mysqllib=1
2ace9480 6236else
7f9838a7 6237 echo "$as_me:$LINENO: result: no" >&5
6238echo "${ECHO_T}no" >&6
6239fi
6240
6241 fi
6242 if test $mysqllib -eq 0; then
6243 echo "$as_me:$LINENO: checking for libmysqlclient in /usr/local/lib/mysql" >&5
6244echo $ECHO_N "checking for libmysqlclient in /usr/local/lib/mysql... $ECHO_C" >&6
2ace9480 6245ac_lib_var=`echo /usr/local/lib/mysql'_'mysqlclient | sed 'y%./+-%__p_%'`
7f9838a7 6246if eval "test \"\${ac_cv_lib_loc_$ac_lib_var+set}\" = set"; then
6247 echo $ECHO_N "(cached) $ECHO_C" >&6
2ace9480 6248else
6249 ac_save_LIBS="$LIBS"
6250LIBS="-L/usr/local/lib/mysql -lmysqlclient $LIBS"
7f9838a7 6251cat >conftest.$ac_ext <<_ACEOF
6252/* confdefs.h. */
6253_ACEOF
6254cat confdefs.h >>conftest.$ac_ext
6255cat >>conftest.$ac_ext <<_ACEOF
6256/* end confdefs.h. */
2ace9480 6257/* We use char because int might match the return type of a gcc2
6258 builtin and then its argument prototype would still apply. */
6259char mysql_real_connect();
6260
7f9838a7 6261int
6262main ()
6263{
2ace9480 6264mysql_real_connect()
7f9838a7 6265 ;
6266 return 0;
6267}
6268_ACEOF
6269rm -f conftest.$ac_objext conftest$ac_exeext
6270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6271 (eval $ac_link) 2>conftest.er1
6272 ac_status=$?
6273 grep -v '^ *+' conftest.er1 >conftest.err
6274 rm -f conftest.er1
6275 cat conftest.err >&5
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); } &&
6278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6280 (eval $ac_try) 2>&5
6281 ac_status=$?
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); }; } &&
6284 { ac_try='test -s conftest$ac_exeext'
6285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6286 (eval $ac_try) 2>&5
6287 ac_status=$?
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); }; }; then
2ace9480 6290 eval "ac_cv_lib_loc_$ac_lib_var=yes"
6291else
7f9838a7 6292 echo "$as_me: failed program was:" >&5
6293sed 's/^/| /' conftest.$ac_ext >&5
6294
6295eval "ac_cv_lib_loc_$ac_lib_var=no"
2ace9480 6296fi
7f9838a7 6297rm -f conftest.err conftest.$ac_objext \
6298 conftest$ac_exeext conftest.$ac_ext
2ace9480 6299LIBS="$ac_save_LIBS"
6300
6301fi
6302if eval "test \"`echo '$ac_cv_lib_loc_'$ac_lib_var`\" = yes"; then
7f9838a7 6303 echo "$as_me:$LINENO: result: yes" >&5
6304echo "${ECHO_T}yes" >&6
6305 LIBS="-L/usr/local/lib/mysql -lmysqlclient $LIBS"; mysqllib=1
2ace9480 6306else
7f9838a7 6307 echo "$as_me:$LINENO: result: no" >&5
6308echo "${ECHO_T}no" >&6
6309fi
6310
6311 fi
6312 if test $mysqllib -eq 0; then
6313 echo "$as_me:$LINENO: checking for libmysqlclient in /usr/lib/mysql" >&5
6314echo $ECHO_N "checking for libmysqlclient in /usr/lib/mysql... $ECHO_C" >&6
2ace9480 6315ac_lib_var=`echo /usr/lib/mysql'_'mysqlclient | sed 'y%./+-%__p_%'`
7f9838a7 6316if eval "test \"\${ac_cv_lib_loc_$ac_lib_var+set}\" = set"; then
6317 echo $ECHO_N "(cached) $ECHO_C" >&6
2ace9480 6318else
6319 ac_save_LIBS="$LIBS"
6320LIBS="-L/usr/lib/mysql -lmysqlclient $LIBS"
7f9838a7 6321cat >conftest.$ac_ext <<_ACEOF
6322/* confdefs.h. */
6323_ACEOF
6324cat confdefs.h >>conftest.$ac_ext
6325cat >>conftest.$ac_ext <<_ACEOF
6326/* end confdefs.h. */
2ace9480 6327/* We use char because int might match the return type of a gcc2
6328 builtin and then its argument prototype would still apply. */
6329char mysql_real_connect();
6330
7f9838a7 6331int
6332main ()
6333{
2ace9480 6334mysql_real_connect()
7f9838a7 6335 ;
6336 return 0;
6337}
6338_ACEOF
6339rm -f conftest.$ac_objext conftest$ac_exeext
6340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6341 (eval $ac_link) 2>conftest.er1
6342 ac_status=$?
6343 grep -v '^ *+' conftest.er1 >conftest.err
6344 rm -f conftest.er1
6345 cat conftest.err >&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); } &&
6348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6350 (eval $ac_try) 2>&5
6351 ac_status=$?
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; } &&
6354 { ac_try='test -s conftest$ac_exeext'
6355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356 (eval $ac_try) 2>&5
6357 ac_status=$?
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }; }; then
2ace9480 6360 eval "ac_cv_lib_loc_$ac_lib_var=yes"
6361else
7f9838a7 6362 echo "$as_me: failed program was:" >&5
6363sed 's/^/| /' conftest.$ac_ext >&5
6364
6365eval "ac_cv_lib_loc_$ac_lib_var=no"
2ace9480 6366fi
7f9838a7 6367rm -f conftest.err conftest.$ac_objext \
6368 conftest$ac_exeext conftest.$ac_ext
2ace9480 6369LIBS="$ac_save_LIBS"
6370
6371fi
6372if eval "test \"`echo '$ac_cv_lib_loc_'$ac_lib_var`\" = yes"; then
7f9838a7 6373 echo "$as_me:$LINENO: result: yes" >&5
6374echo "${ECHO_T}yes" >&6
6375 LIBS="-L/usr/lib/mysql -lmysqlclient $LIBS"; mysqllib=1
2ace9480 6376else
7f9838a7 6377 echo "$as_me:$LINENO: result: no" >&5
6378echo "${ECHO_T}no" >&6
6379fi
6380
6381 fi
6382 if test $mysqllib -eq 0; then
6383 echo "$as_me:$LINENO: checking for libmysqlclient in /usr/local/lib" >&5
6384echo $ECHO_N "checking for libmysqlclient in /usr/local/lib... $ECHO_C" >&6
2ace9480 6385ac_lib_var=`echo /usr/local/lib'_'mysqlclient | sed 'y%./+-%__p_%'`
7f9838a7 6386if eval "test \"\${ac_cv_lib_loc_$ac_lib_var+set}\" = set"; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
2ace9480 6388else
6389 ac_save_LIBS="$LIBS"
6390LIBS="-L/usr/local/lib -lmysqlclient $LIBS"
7f9838a7 6391cat >conftest.$ac_ext <<_ACEOF
6392/* confdefs.h. */
6393_ACEOF
6394cat confdefs.h >>conftest.$ac_ext
6395cat >>conftest.$ac_ext <<_ACEOF
6396/* end confdefs.h. */
2ace9480 6397/* We use char because int might match the return type of a gcc2
6398 builtin and then its argument prototype would still apply. */
6399char mysql_real_connect();
6400
7f9838a7 6401int
6402main ()
6403{
2ace9480 6404mysql_real_connect()
7f9838a7 6405 ;
6406 return 0;
6407}
6408_ACEOF
6409rm -f conftest.$ac_objext conftest$ac_exeext
6410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6411 (eval $ac_link) 2>conftest.er1
6412 ac_status=$?
6413 grep -v '^ *+' conftest.er1 >conftest.err
6414 rm -f conftest.er1
6415 cat conftest.err >&5
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); } &&
6418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420 (eval $ac_try) 2>&5
6421 ac_status=$?
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); }; } &&
6424 { ac_try='test -s conftest$ac_exeext'
6425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426 (eval $ac_try) 2>&5
6427 ac_status=$?
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); }; }; then
2ace9480 6430 eval "ac_cv_lib_loc_$ac_lib_var=yes"
6431else
7f9838a7 6432 echo "$as_me: failed program was:" >&5
6433sed 's/^/| /' conftest.$ac_ext >&5
6434
6435eval "ac_cv_lib_loc_$ac_lib_var=no"
2ace9480 6436fi
7f9838a7 6437rm -f conftest.err conftest.$ac_objext \
6438 conftest$ac_exeext conftest.$ac_ext
2ace9480 6439LIBS="$ac_save_LIBS"
6440
6441fi
6442if eval "test \"`echo '$ac_cv_lib_loc_'$ac_lib_var`\" = yes"; then
7f9838a7 6443 echo "$as_me:$LINENO: result: yes" >&5
6444echo "${ECHO_T}yes" >&6
6445 LIBS="-L/usr/local/lib -lmysqlclient $LIBS"; mysqllib=1
2ace9480 6446else
7f9838a7 6447 echo "$as_me:$LINENO: result: no" >&5
6448echo "${ECHO_T}no" >&6
6449fi
6450
6451 fi
6452 if test $mysqllib -eq 0; then
6453 echo "$as_me:$LINENO: checking for libmysqlclient in /opt/lib" >&5
6454echo $ECHO_N "checking for libmysqlclient in /opt/lib... $ECHO_C" >&6
2ace9480 6455ac_lib_var=`echo /opt/lib'_'mysqlclient | sed 'y%./+-%__p_%'`
7f9838a7 6456if eval "test \"\${ac_cv_lib_loc_$ac_lib_var+set}\" = set"; then
6457 echo $ECHO_N "(cached) $ECHO_C" >&6
2ace9480 6458else
6459 ac_save_LIBS="$LIBS"
6460LIBS="-L/opt/lib -lmysqlclient $LIBS"
7f9838a7 6461cat >conftest.$ac_ext <<_ACEOF
6462/* confdefs.h. */
6463_ACEOF
6464cat confdefs.h >>conftest.$ac_ext
6465cat >>conftest.$ac_ext <<_ACEOF
6466/* end confdefs.h. */
2ace9480 6467/* We use char because int might match the return type of a gcc2
6468 builtin and then its argument prototype would still apply. */
6469char mysql_real_connect();
6470
7f9838a7 6471int
6472main ()
6473{
2ace9480 6474mysql_real_connect()
7f9838a7 6475 ;
6476 return 0;
6477}
6478_ACEOF
6479rm -f conftest.$ac_objext conftest$ac_exeext
6480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6481 (eval $ac_link) 2>conftest.er1
6482 ac_status=$?
6483 grep -v '^ *+' conftest.er1 >conftest.err
6484 rm -f conftest.er1
6485 cat conftest.err >&5
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } &&
6488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6490 (eval $ac_try) 2>&5
6491 ac_status=$?
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); }; } &&
6494 { ac_try='test -s conftest$ac_exeext'
6495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6496 (eval $ac_try) 2>&5
6497 ac_status=$?
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); }; }; then
2ace9480 6500 eval "ac_cv_lib_loc_$ac_lib_var=yes"
6501else
7f9838a7 6502 echo "$as_me: failed program was:" >&5
6503sed 's/^/| /' conftest.$ac_ext >&5
6504
6505eval "ac_cv_lib_loc_$ac_lib_var=no"
2ace9480 6506fi
7f9838a7 6507rm -f conftest.err conftest.$ac_objext \
6508 conftest$ac_exeext conftest.$ac_ext
2ace9480 6509LIBS="$ac_save_LIBS"
6510
6511fi
6512if eval "test \"`echo '$ac_cv_lib_loc_'$ac_lib_var`\" = yes"; then
7f9838a7 6513 echo "$as_me:$LINENO: result: yes" >&5
6514echo "${ECHO_T}yes" >&6
6515 LIBS="-L/opt/lib -lmysqlclient $LIBS"; mysqllib=1
2ace9480 6516else
7f9838a7 6517 echo "$as_me:$LINENO: result: no" >&5
6518echo "${ECHO_T}no" >&6
6519fi
6520
6521 fi
6522 if test $mysqllib -eq 0; then
6523 echo "$as_me:$LINENO: checking for libmysqlclient in /usr/lib" >&5
6524echo $ECHO_N "checking for libmysqlclient in /usr/lib... $ECHO_C" >&6
2ace9480 6525ac_lib_var=`echo /usr/lib'_'mysqlclient | sed 'y%./+-%__p_%'`
7f9838a7 6526if eval "test \"\${ac_cv_lib_loc_$ac_lib_var+set}\" = set"; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
2ace9480 6528else
6529 ac_save_LIBS="$LIBS"
6530LIBS="-L/usr/lib -lmysqlclient $LIBS"
7f9838a7 6531cat >conftest.$ac_ext <<_ACEOF
6532/* confdefs.h. */
6533_ACEOF
6534cat confdefs.h >>conftest.$ac_ext
6535cat >>conftest.$ac_ext <<_ACEOF
6536/* end confdefs.h. */
2ace9480 6537/* We use char because int might match the return type of a gcc2
6538 builtin and then its argument prototype would still apply. */
6539char mysql_real_connect();
6540
7f9838a7 6541int
6542main ()
6543{
2ace9480 6544mysql_real_connect()
7f9838a7 6545 ;
6546 return 0;
6547}
6548_ACEOF
6549rm -f conftest.$ac_objext conftest$ac_exeext
6550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6551 (eval $ac_link) 2>conftest.er1
6552 ac_status=$?
6553 grep -v '^ *+' conftest.er1 >conftest.err
6554 rm -f conftest.er1
6555 cat conftest.err >&5
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); } &&
6558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6560 (eval $ac_try) 2>&5
6561 ac_status=$?
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); }; } &&
6564 { ac_try='test -s conftest$ac_exeext'
6565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6566 (eval $ac_try) 2>&5
6567 ac_status=$?
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); }; }; then
2ace9480 6570 eval "ac_cv_lib_loc_$ac_lib_var=yes"
6571else
7f9838a7 6572 echo "$as_me: failed program was:" >&5
6573sed 's/^/| /' conftest.$ac_ext >&5
6574
6575eval "ac_cv_lib_loc_$ac_lib_var=no"
2ace9480 6576fi
7f9838a7 6577rm -f conftest.err conftest.$ac_objext \
6578 conftest$ac_exeext conftest.$ac_ext
2ace9480 6579LIBS="$ac_save_LIBS"
6580
6581fi
6582if eval "test \"`echo '$ac_cv_lib_loc_'$ac_lib_var`\" = yes"; then
7f9838a7 6583 echo "$as_me:$LINENO: result: yes" >&5
6584echo "${ECHO_T}yes" >&6
6585 LIBS="-L/usr/lib -lmysqlclient $LIBS"; mysqllib=1
2ace9480 6586else
7f9838a7 6587 echo "$as_me:$LINENO: result: no" >&5
6588echo "${ECHO_T}no" >&6
2ace9480 6589fi
6590
7f9838a7 6591 fi
6592 fi
6593 if test "x$with_mysql_includes" = "x"; then
6594 if test "${ac_cv_header__opt_include_mysql_mysql_h+set}" = set; then
6595 echo "$as_me:$LINENO: checking for /opt/include/mysql/mysql.h" >&5
6596echo $ECHO_N "checking for /opt/include/mysql/mysql.h... $ECHO_C" >&6
6597if test "${ac_cv_header__opt_include_mysql_mysql_h+set}" = set; then
6598 echo $ECHO_N "(cached) $ECHO_C" >&6
6599fi
6600echo "$as_me:$LINENO: result: $ac_cv_header__opt_include_mysql_mysql_h" >&5
6601echo "${ECHO_T}$ac_cv_header__opt_include_mysql_mysql_h" >&6
6602else
6603 # Is the header compilable?
6604echo "$as_me:$LINENO: checking /opt/include/mysql/mysql.h usability" >&5
6605echo $ECHO_N "checking /opt/include/mysql/mysql.h usability... $ECHO_C" >&6
6606cat >conftest.$ac_ext <<_ACEOF
6607/* confdefs.h. */
6608_ACEOF
6609cat confdefs.h >>conftest.$ac_ext
6610cat >>conftest.$ac_ext <<_ACEOF
6611/* end confdefs.h. */
6612$ac_includes_default
6613#include </opt/include/mysql/mysql.h>
6614_ACEOF
6615rm -f conftest.$ac_objext
6616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6617 (eval $ac_compile) 2>conftest.er1
6618 ac_status=$?
6619 grep -v '^ *+' conftest.er1 >conftest.err
6620 rm -f conftest.er1
6621 cat conftest.err >&5
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); } &&
6624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6626 (eval $ac_try) 2>&5
6627 ac_status=$?
6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); }; } &&
6630 { ac_try='test -s conftest.$ac_objext'
6631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6632 (eval $ac_try) 2>&5
6633 ac_status=$?
6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635 (exit $ac_status); }; }; then
6636 ac_header_compiler=yes
6637else
6638 echo "$as_me: failed program was:" >&5
6639sed 's/^/| /' conftest.$ac_ext >&5
6640
6641ac_header_compiler=no
6642fi
6643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6644echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6645echo "${ECHO_T}$ac_header_compiler" >&6
6646
6647# Is the header present?
6648echo "$as_me:$LINENO: checking /opt/include/mysql/mysql.h presence" >&5
6649echo $ECHO_N "checking /opt/include/mysql/mysql.h presence... $ECHO_C" >&6
6650cat >conftest.$ac_ext <<_ACEOF
6651/* confdefs.h. */
6652_ACEOF
6653cat confdefs.h >>conftest.$ac_ext
6654cat >>conftest.$ac_ext <<_ACEOF
6655/* end confdefs.h. */
6656#include </opt/include/mysql/mysql.h>
6657_ACEOF
6658if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6659 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6660 ac_status=$?
6661 grep -v '^ *+' conftest.er1 >conftest.err
6662 rm -f conftest.er1
6663 cat conftest.err >&5
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); } >/dev/null; then
6666 if test -s conftest.err; then
6667 ac_cpp_err=$ac_c_preproc_warn_flag
6668 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6669 else
6670 ac_cpp_err=
6671 fi
6672else
6673 ac_cpp_err=yes
2ace9480 6674fi
7f9838a7 6675if test -z "$ac_cpp_err"; then
6676 ac_header_preproc=yes
6677else
6678 echo "$as_me: failed program was:" >&5
6679sed 's/^/| /' conftest.$ac_ext >&5
6680
6681 ac_header_preproc=no
6682fi
6683rm -f conftest.err conftest.$ac_ext
6684echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6685echo "${ECHO_T}$ac_header_preproc" >&6
6686
6687# So? What about this header?
6688case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6689 yes:no: )
6690 { echo "$as_me:$LINENO: WARNING: /opt/include/mysql/mysql.h: accepted by the compiler, rejected by the preprocessor!" >&5
6691echo "$as_me: WARNING: /opt/include/mysql/mysql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6692 { echo "$as_me:$LINENO: WARNING: /opt/include/mysql/mysql.h: proceeding with the compiler's result" >&5
6693echo "$as_me: WARNING: /opt/include/mysql/mysql.h: proceeding with the compiler's result" >&2;}
6694 ac_header_preproc=yes
6695 ;;
6696 no:yes:* )
6697 { echo "$as_me:$LINENO: WARNING: /opt/include/mysql/mysql.h: present but cannot be compiled" >&5
6698echo "$as_me: WARNING: /opt/include/mysql/mysql.h: present but cannot be compiled" >&2;}
6699 { echo "$as_me:$LINENO: WARNING: /opt/include/mysql/mysql.h: check for missing prerequisite headers?" >&5
6700echo "$as_me: WARNING: /opt/include/mysql/mysql.h: check for missing prerequisite headers?" >&2;}
6701 { echo "$as_me:$LINENO: WARNING: /opt/include/mysql/mysql.h: see the Autoconf documentation" >&5
6702echo "$as_me: WARNING: /opt/include/mysql/mysql.h: see the Autoconf documentation" >&2;}
6703 { echo "$as_me:$LINENO: WARNING: /opt/include/mysql/mysql.h: section \"Present But Cannot Be Compiled\"" >&5
6704echo "$as_me: WARNING: /opt/include/mysql/mysql.h: section \"Present But Cannot Be Compiled\"" >&2;}
6705 { echo "$as_me:$LINENO: WARNING: /opt/include/mysql/mysql.h: proceeding with the preprocessor's result" >&5
6706echo "$as_me: WARNING: /opt/include/mysql/mysql.h: proceeding with the preprocessor's result" >&2;}
6707 { echo "$as_me:$LINENO: WARNING: /opt/include/mysql/mysql.h: in the future, the compiler will take precedence" >&5
6708echo "$as_me: WARNING: /opt/include/mysql/mysql.h: in the future, the compiler will take precedence" >&2;}
6709 (
6710 cat <<\_ASBOX
6711## ------------------------------------------ ##
6712## Report this to the AC_PACKAGE_NAME lists. ##
6713## ------------------------------------------ ##
6714_ASBOX
6715 ) |
6716 sed "s/^/$as_me: WARNING: /" >&2
6717 ;;
6718esac
6719echo "$as_me:$LINENO: checking for /opt/include/mysql/mysql.h" >&5
6720echo $ECHO_N "checking for /opt/include/mysql/mysql.h... $ECHO_C" >&6
6721if test "${ac_cv_header__opt_include_mysql_mysql_h+set}" = set; then
6722 echo $ECHO_N "(cached) $ECHO_C" >&6
6723else
6724 ac_cv_header__opt_include_mysql_mysql_h=$ac_header_preproc
2ace9480 6725fi
7f9838a7 6726echo "$as_me:$LINENO: result: $ac_cv_header__opt_include_mysql_mysql_h" >&5
6727echo "${ECHO_T}$ac_cv_header__opt_include_mysql_mysql_h" >&6
2ace9480 6728
6729fi
7f9838a7 6730if test $ac_cv_header__opt_include_mysql_mysql_h = yes; then
6731 CFLAGS="$CFLAGS -I/opt/include/mysql" ; mysqlhead=1
2ace9480 6732fi
6733
2ace9480 6734
7f9838a7 6735 if test "${ac_cv_header__usr_local_include_mysql_mysql_h+set}" = set; then
6736 echo "$as_me:$LINENO: checking for /usr/local/include/mysql/mysql.h" >&5
6737echo $ECHO_N "checking for /usr/local/include/mysql/mysql.h... $ECHO_C" >&6
6738if test "${ac_cv_header__usr_local_include_mysql_mysql_h+set}" = set; then
6739 echo $ECHO_N "(cached) $ECHO_C" >&6
2ace9480 6740fi
7f9838a7 6741echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_mysql_mysql_h" >&5
6742echo "${ECHO_T}$ac_cv_header__usr_local_include_mysql_mysql_h" >&6
2ace9480 6743else
7f9838a7 6744 # Is the header compilable?
6745echo "$as_me:$LINENO: checking /usr/local/include/mysql/mysql.h usability" >&5
6746echo $ECHO_N "checking /usr/local/include/mysql/mysql.h usability... $ECHO_C" >&6
6747cat >conftest.$ac_ext <<_ACEOF
6748/* confdefs.h. */
6749_ACEOF
6750cat confdefs.h >>conftest.$ac_ext
6751cat >>conftest.$ac_ext <<_ACEOF
6752/* end confdefs.h. */
6753$ac_includes_default
6754#include </usr/local/include/mysql/mysql.h>
6755_ACEOF
6756rm -f conftest.$ac_objext
6757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6758 (eval $ac_compile) 2>conftest.er1
6759 ac_status=$?
6760 grep -v '^ *+' conftest.er1 >conftest.err
6761 rm -f conftest.er1
6762 cat conftest.err >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } &&
6765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6767 (eval $ac_try) 2>&5
6768 ac_status=$?
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); }; } &&
6771 { ac_try='test -s conftest.$ac_objext'
6772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6773 (eval $ac_try) 2>&5
6774 ac_status=$?
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); }; }; then
6777 ac_header_compiler=yes
2ace9480 6778else
7f9838a7 6779 echo "$as_me: failed program was:" >&5
6780sed 's/^/| /' conftest.$ac_ext >&5
6781
6782ac_header_compiler=no
6783fi
6784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6785echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6786echo "${ECHO_T}$ac_header_compiler" >&6
6787
6788# Is the header present?
6789echo "$as_me:$LINENO: checking /usr/local/include/mysql/mysql.h presence" >&5
6790echo $ECHO_N "checking /usr/local/include/mysql/mysql.h presence... $ECHO_C" >&6
6791cat >conftest.$ac_ext <<_ACEOF
6792/* confdefs.h. */
6793_ACEOF
6794cat confdefs.h >>conftest.$ac_ext
6795cat >>conftest.$ac_ext <<_ACEOF
6796/* end confdefs.h. */
2ace9480 6797#include </usr/local/include/mysql/mysql.h>
7f9838a7 6798_ACEOF
6799if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6801 ac_status=$?
6802 grep -v '^ *+' conftest.er1 >conftest.err
6803 rm -f conftest.er1
6804 cat conftest.err >&5
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); } >/dev/null; then
6807 if test -s conftest.err; then
6808 ac_cpp_err=$ac_c_preproc_warn_flag
6809 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6810 else
6811 ac_cpp_err=
6812 fi
6813else
6814 ac_cpp_err=yes
2ace9480 6815fi
7f9838a7 6816if test -z "$ac_cpp_err"; then
6817 ac_header_preproc=yes
6818else
6819 echo "$as_me: failed program was:" >&5
6820sed 's/^/| /' conftest.$ac_ext >&5
6821
6822 ac_header_preproc=no
6823fi
6824rm -f conftest.err conftest.$ac_ext
6825echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6826echo "${ECHO_T}$ac_header_preproc" >&6
6827
6828# So? What about this header?
6829case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6830 yes:no: )
6831 { echo "$as_me:$LINENO: WARNING: /usr/local/include/mysql/mysql.h: accepted by the compiler, rejected by the preprocessor!" >&5
6832echo "$as_me: WARNING: /usr/local/include/mysql/mysql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6833 { echo "$as_me:$LINENO: WARNING: /usr/local/include/mysql/mysql.h: proceeding with the compiler's result" >&5
6834echo "$as_me: WARNING: /usr/local/include/mysql/mysql.h: proceeding with the compiler's result" >&2;}
6835 ac_header_preproc=yes
6836 ;;
6837 no:yes:* )
6838 { echo "$as_me:$LINENO: WARNING: /usr/local/include/mysql/mysql.h: present but cannot be compiled" >&5
6839echo "$as_me: WARNING: /usr/local/include/mysql/mysql.h: present but cannot be compiled" >&2;}
6840 { echo "$as_me:$LINENO: WARNING: /usr/local/include/mysql/mysql.h: check for missing prerequisite headers?" >&5
6841echo "$as_me: WARNING: /usr/local/include/mysql/mysql.h: check for missing prerequisite headers?" >&2;}
6842 { echo "$as_me:$LINENO: WARNING: /usr/local/include/mysql/mysql.h: see the Autoconf documentation" >&5
6843echo "$as_me: WARNING: /usr/local/include/mysql/mysql.h: see the Autoconf documentation" >&2;}
6844 { echo "$as_me:$LINENO: WARNING: /usr/local/include/mysql/mysql.h: section \"Present But Cannot Be Compiled\"" >&5
6845echo "$as_me: WARNING: /usr/local/include/mysql/mysql.h: section \"Present But Cannot Be Compiled\"" >&2;}
6846 { echo "$as_me:$LINENO: WARNING: /usr/local/include/mysql/mysql.h: proceeding with the preprocessor's result" >&5
6847echo "$as_me: WARNING: /usr/local/include/mysql/mysql.h: proceeding with the preprocessor's result" >&2;}
6848 { echo "$as_me:$LINENO: WARNING: /usr/local/include/mysql/mysql.h: in the future, the compiler will take precedence" >&5
6849echo "$as_me: WARNING: /usr/local/include/mysql/mysql.h: in the future, the compiler will take precedence" >&2;}
6850 (
6851 cat <<\_ASBOX
6852## ------------------------------------------ ##
6853## Report this to the AC_PACKAGE_NAME lists. ##
6854## ------------------------------------------ ##
6855_ASBOX
6856 ) |
6857 sed "s/^/$as_me: WARNING: /" >&2
6858 ;;
6859esac
6860echo "$as_me:$LINENO: checking for /usr/local/include/mysql/mysql.h" >&5
6861echo $ECHO_N "checking for /usr/local/include/mysql/mysql.h... $ECHO_C" >&6
6862if test "${ac_cv_header__usr_local_include_mysql_mysql_h+set}" = set; then
6863 echo $ECHO_N "(cached) $ECHO_C" >&6
6864else
6865 ac_cv_header__usr_local_include_mysql_mysql_h=$ac_header_preproc
6866fi
6867echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_mysql_mysql_h" >&5
6868echo "${ECHO_T}$ac_cv_header__usr_local_include_mysql_mysql_h" >&6
6869
2ace9480 6870fi
7f9838a7 6871if test $ac_cv_header__usr_local_include_mysql_mysql_h = yes; then
6872 CFLAGS="$CFLAGS -I/usr/local/include/mysql" ; mysqlhead=1
6873fi
6874
6875
6876 if test "${ac_cv_header__usr_include_mysql_mysql_h+set}" = set; then
6877 echo "$as_me:$LINENO: checking for /usr/include/mysql/mysql.h" >&5
6878echo $ECHO_N "checking for /usr/include/mysql/mysql.h... $ECHO_C" >&6
6879if test "${ac_cv_header__usr_include_mysql_mysql_h+set}" = set; then
6880 echo $ECHO_N "(cached) $ECHO_C" >&6
6881fi
6882echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_mysql_mysql_h" >&5
6883echo "${ECHO_T}$ac_cv_header__usr_include_mysql_mysql_h" >&6
2ace9480 6884else
7f9838a7 6885 # Is the header compilable?
6886echo "$as_me:$LINENO: checking /usr/include/mysql/mysql.h usability" >&5
6887echo $ECHO_N "checking /usr/include/mysql/mysql.h usability... $ECHO_C" >&6
6888cat >conftest.$ac_ext <<_ACEOF
6889/* confdefs.h. */
6890_ACEOF
6891cat confdefs.h >>conftest.$ac_ext
6892cat >>conftest.$ac_ext <<_ACEOF
6893/* end confdefs.h. */
6894$ac_includes_default
6895#include </usr/include/mysql/mysql.h>
6896_ACEOF
6897rm -f conftest.$ac_objext
6898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6899 (eval $ac_compile) 2>conftest.er1
6900 ac_status=$?
6901 grep -v '^ *+' conftest.er1 >conftest.err
6902 rm -f conftest.er1
6903 cat conftest.err >&5
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); } &&
6906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6908 (eval $ac_try) 2>&5
6909 ac_status=$?
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); }; } &&
6912 { ac_try='test -s conftest.$ac_objext'
6913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6914 (eval $ac_try) 2>&5
6915 ac_status=$?
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); }; }; then
6918 ac_header_compiler=yes
2ace9480 6919else
7f9838a7 6920 echo "$as_me: failed program was:" >&5
6921sed 's/^/| /' conftest.$ac_ext >&5
6922
6923ac_header_compiler=no
6924fi
6925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6926echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6927echo "${ECHO_T}$ac_header_compiler" >&6
6928
6929# Is the header present?
6930echo "$as_me:$LINENO: checking /usr/include/mysql/mysql.h presence" >&5
6931echo $ECHO_N "checking /usr/include/mysql/mysql.h presence... $ECHO_C" >&6
6932cat >conftest.$ac_ext <<_ACEOF
6933/* confdefs.h. */
6934_ACEOF
6935cat confdefs.h >>conftest.$ac_ext
6936cat >>conftest.$ac_ext <<_ACEOF
6937/* end confdefs.h. */
2ace9480 6938#include </usr/include/mysql/mysql.h>
7f9838a7 6939_ACEOF
6940if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6942 ac_status=$?
6943 grep -v '^ *+' conftest.er1 >conftest.err
6944 rm -f conftest.er1
6945 cat conftest.err >&5
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); } >/dev/null; then
6948 if test -s conftest.err; then
6949 ac_cpp_err=$ac_c_preproc_warn_flag
6950 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6951 else
6952 ac_cpp_err=
6953 fi
6954else
6955 ac_cpp_err=yes
2ace9480 6956fi
7f9838a7 6957if test -z "$ac_cpp_err"; then
6958 ac_header_preproc=yes
6959else
6960 echo "$as_me: failed program was:" >&5
6961sed 's/^/| /' conftest.$ac_ext >&5
6962
6963 ac_header_preproc=no
6964fi
6965rm -f conftest.err conftest.$ac_ext
6966echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6967echo "${ECHO_T}$ac_header_preproc" >&6
6968
6969# So? What about this header?
6970case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6971 yes:no: )
6972 { echo "$as_me:$LINENO: WARNING: /usr/include/mysql/mysql.h: accepted by the compiler, rejected by the preprocessor!" >&5
6973echo "$as_me: WARNING: /usr/include/mysql/mysql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6974 { echo "$as_me:$LINENO: WARNING: /usr/include/mysql/mysql.h: proceeding with the compiler's result" >&5
6975echo "$as_me: WARNING: /usr/include/mysql/mysql.h: proceeding with the compiler's result" >&2;}
6976 ac_header_preproc=yes
6977 ;;
6978 no:yes:* )
6979 { echo "$as_me:$LINENO: WARNING: /usr/include/mysql/mysql.h: present but cannot be compiled" >&5
6980echo "$as_me: WARNING: /usr/include/mysql/mysql.h: present but cannot be compiled" >&2;}
6981 { echo "$as_me:$LINENO: WARNING: /usr/include/mysql/mysql.h: check for missing prerequisite headers?" >&5
6982echo "$as_me: WARNING: /usr/include/mysql/mysql.h: check for missing prerequisite headers?" >&2;}
6983 { echo "$as_me:$LINENO: WARNING: /usr/include/mysql/mysql.h: see the Autoconf documentation" >&5
6984echo "$as_me: WARNING: /usr/include/mysql/mysql.h: see the Autoconf documentation" >&2;}
6985 { echo "$as_me:$LINENO: WARNING: /usr/include/mysql/mysql.h: section \"Present But Cannot Be Compiled\"" >&5
6986echo "$as_me: WARNING: /usr/include/mysql/mysql.h: section \"Present But Cannot Be Compiled\"" >&2;}
6987 { echo "$as_me:$LINENO: WARNING: /usr/include/mysql/mysql.h: proceeding with the preprocessor's result" >&5
6988echo "$as_me: WARNING: /usr/include/mysql/mysql.h: proceeding with the preprocessor's result" >&2;}
6989 { echo "$as_me:$LINENO: WARNING: /usr/include/mysql/mysql.h: in the future, the compiler will take precedence" >&5
6990echo "$as_me: WARNING: /usr/include/mysql/mysql.h: in the future, the compiler will take precedence" >&2;}
6991 (
6992 cat <<\_ASBOX
6993## ------------------------------------------ ##
6994## Report this to the AC_PACKAGE_NAME lists. ##
6995## ------------------------------------------ ##
6996_ASBOX
6997 ) |
6998 sed "s/^/$as_me: WARNING: /" >&2
6999 ;;
7000esac
7001echo "$as_me:$LINENO: checking for /usr/include/mysql/mysql.h" >&5
7002echo $ECHO_N "checking for /usr/include/mysql/mysql.h... $ECHO_C" >&6
7003if test "${ac_cv_header__usr_include_mysql_mysql_h+set}" = set; then
7004 echo $ECHO_N "(cached) $ECHO_C" >&6
2ace9480 7005else
7f9838a7 7006 ac_cv_header__usr_include_mysql_mysql_h=$ac_header_preproc
2ace9480 7007fi
7f9838a7 7008echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_mysql_mysql_h" >&5
7009echo "${ECHO_T}$ac_cv_header__usr_include_mysql_mysql_h" >&6
2ace9480 7010
7011fi
7f9838a7 7012if test $ac_cv_header__usr_include_mysql_mysql_h = yes; then
7013 CFLAGS="$CFLAGS -I/usr/include/mysql"; mysqlhead=1
2ace9480 7014fi
7015
7f9838a7 7016
2ace9480 7017 fi
7018fi
7f9838a7 7019if test $mysqlhead -eq 0; then
7020 { { echo "$as_me:$LINENO: error: Need MySQL includes! You have to install the libmysqlclient-dev package." >&5
7021echo "$as_me: error: Need MySQL includes! You have to install the libmysqlclient-dev package." >&2;}
7022 { (exit 1); exit 1; }; }
7023fi
7024if test $mysqllib -eq 0; then
7025 { { echo "$as_me:$LINENO: error: Need MySQL library! You have to install the libmysqlclient package." >&5
7026echo "$as_me: error: Need MySQL library! You have to install the libmysqlclient package." >&2;}
7027 { (exit 1); exit 1; }; }
7028fi
7029
2ace9480 7030CFLAGS="$CFLAGS -Wall"
7031
7032# Check whether --enable-static or --disable-static was given.
7033if test "${enable_static+set}" = set; then
7034 enableval="$enable_static"
7035 LDFLAGS="$LDFLAGS -static"
7f9838a7 7036fi;
2ace9480 7037
7038
7039ok=0
7040if test "x$with_tableprefix" != "x"; then
7f9838a7 7041
7042cat >>confdefs.h <<_ACEOF
2ace9480 7043#define TBL_PREFIX "$with_tableprefix"
7f9838a7 7044_ACEOF
2ace9480 7045
7046fi
7047
7048
7049
7050ok=0
7051if test "x$with_hashlist" != "x"; then
7052 case $with_hashlist in
7053 [Nn][Oo])
7054 echo "Hashlist support disabled : Thales will run slower."
7055 ok=1
7056 ;;
7057 esac
7058fi
7059if test $ok -eq 0; then
7f9838a7 7060
7061cat >>confdefs.h <<_ACEOF
2ace9480 7062#define HASHLISTSUPPORT 1
7f9838a7 7063_ACEOF
2ace9480 7064
7065fi
7066
7067
7068ok=0
beff48bb 7069reportusage=1
2ace9480 7070if test "x$with_ircd" != "x"; then
7071 case $with_ircd in
7072 [Bb][Aa][Hh][Aa][Mm][Uu][Tt])
7f9838a7 7073
7074cat >>confdefs.h <<_ACEOF
2ace9480 7075#define IRCD_BAHAMUT 1
7f9838a7 7076_ACEOF
2ace9480 7077
7078 echo "Using Bahamut IRCD"
7079 ok=1
7080 ;;
7081 [Hh][Yy][Bb][Rr][Ii][Dd])
7f9838a7 7082
7083cat >>confdefs.h <<_ACEOF
2ace9480 7084#define IRCD_HYBRID 1
7f9838a7 7085_ACEOF
2ace9480 7086
7087 echo "Using Hybrid IRCD"
7088 ok=1
7089 ;;
7090 [Ii][Rr][Cc][Dd][Rr][Uu])
7f9838a7 7091
7092cat >>confdefs.h <<_ACEOF
2ace9480 7093#define IRCD_IRCDRU 1
7f9838a7 7094_ACEOF
2ace9480 7095
7096 echo "Using IRCD-RU IRCD"
7097 ok=1
7098 ;;
2ace9480 7099 [Uu][Nn][Rr][Ee][Aa][Ll])
7f9838a7 7100
7101cat >>confdefs.h <<_ACEOF
2ace9480 7102#define IRCD_UNREAL 1
7f9838a7 7103_ACEOF
2ace9480 7104
7105 echo "Using Unreal IRCD"
beff48bb 7106 reportusage=0
2ace9480 7107 ok=1
7108 ;;
7109 [Uu][Ll][Tt][Ii][Mm][Aa][Tt][Ee]28)
7f9838a7 7110
7111cat >>confdefs.h <<_ACEOF
2ace9480 7112#define IRCD_ULTI28 1
7f9838a7 7113_ACEOF
2ace9480 7114
7115 echo "Using Ultimate IRCD 2.8"
7116 ok=1
7117 ;;
7118 [Uu][Ll][Tt][Ii][Mm][Aa][Tt][Ee]30)
7f9838a7 7119
7120cat >>confdefs.h <<_ACEOF
2ace9480 7121#define IRCD_ULTIMATE 1
7f9838a7 7122_ACEOF
2ace9480 7123
7124 echo "Using Ultimate IRCD 3.0"
7125 ok=1
7126 ;;
7127 *)
7128 echo "IRCD type unrecognized"
7129 ;;
7130 esac
7131fi
7132if test $ok -eq 0; then
7133 echo
7134 echo "---------------------------------------------------------------"
7135 echo
7136 echo "Which of the following is closest to the type of server used on"
7137 echo "your IRC network ?"
99f3e676 7138 echo " 1) UnrealIRCd 3.1.1 or later"
7139 echo "Support for these servers is still available but might not be"
7140 echo "complete. See the NeedMaintainers file for more info."
7141 echo " 2) Bahamut 1.4.27 or later"
7142 echo " 3) Hybrid 7 or later"
7143 echo " 4) ircd-RU! 1.4.0 or later"
287805aa 7144 echo " 5) UltimateIRCD 2.8 or later (2.8 branch)"
7145 echo " 6) UltimateIRCD 3.0.0 or later"
2ace9480 7146 while `test $ok -eq 0` ; do
7147 echo -n '> '
7148 read KBDINPUT
7149 case $KBDINPUT in
99f3e676 7150 1)
7f9838a7 7151
7152cat >>confdefs.h <<_ACEOF
99f3e676 7153#define IRCD_UNREAL 1
7f9838a7 7154_ACEOF
2ace9480 7155
beff48bb 7156 reportusage=0
2ace9480 7157 ok=1
7158 ;;
7159 2)
7f9838a7 7160
7161cat >>confdefs.h <<_ACEOF
99f3e676 7162#define IRCD_BAHAMUT 1
7f9838a7 7163_ACEOF
2ace9480 7164
7165 ok=1
7166 ;;
7167 3)
7f9838a7 7168
7169cat >>confdefs.h <<_ACEOF
99f3e676 7170#define IRCD_HYBRID 1
7f9838a7 7171_ACEOF
2ace9480 7172
7173 ok=1
7174 ;;
99f3e676 7175 4)
7f9838a7 7176
7177cat >>confdefs.h <<_ACEOF
99f3e676 7178#define IRCD_IRCDRU 1
7f9838a7 7179_ACEOF
2ace9480 7180
7181 ok=1
7182 ;;
287805aa 7183 5)
7f9838a7 7184
7185cat >>confdefs.h <<_ACEOF
2ace9480 7186#define IRCD_ULTI28 1
7f9838a7 7187_ACEOF
2ace9480 7188
7189 ok=1
7190 ;;
287805aa 7191 6)
7f9838a7 7192
7193cat >>confdefs.h <<_ACEOF
2ace9480 7194#define IRCD_ULTIMATE 1
7f9838a7 7195_ACEOF
2ace9480 7196
7197 ok=1
7198 ;;
7199 *)
7200 echo "Please enter a valid option number."
7201 ;;
7202 esac
7203 done
7204fi
7205
7206# Check whether --enable-no-modes or --disable-no-modes was given.
7207if test "${enable_no_modes+set}" = set; then
7208 enableval="$enable_no_modes"
2ace9480 7209
7f9838a7 7210cat >>confdefs.h <<_ACEOF
7211#define NOMODES 1
7212_ACEOF
2ace9480 7213
7f9838a7 7214fi;
2ace9480 7215
7f9838a7 7216 ac_config_files="$ac_config_files src/Makefile data/Makefile Makefile"
7217cat >confcache <<\_ACEOF
2ace9480 7218# This file is a shell script that caches the results of configure
7219# tests run on this system so they can be shared between configure
7f9838a7 7220# scripts and configure runs, see configure's option --config-cache.
7221# It is not useful on other systems. If it contains results you don't
7222# want to keep, you may remove or edit it.
2ace9480 7223#
7f9838a7 7224# config.status only pays attention to the cache file if you give it
7225# the --recheck option to rerun configure.
2ace9480 7226#
7f9838a7 7227# `ac_cv_env_foo' variables (set or unset) will be overridden when
7228# loading this file, other *unset* `ac_cv_foo' will be assigned the
7229# following values.
7230
7231_ACEOF
7232
2ace9480 7233# The following way of writing the cache mishandles newlines in values,
7234# but we know of no workaround that is simple, portable, and efficient.
7235# So, don't put newlines in cache variables' values.
7236# Ultrix sh set writes to stderr and can't be redirected directly,
7237# and sets the high bit in the cache file unless we assign to the vars.
7f9838a7 7238{
7239 (set) 2>&1 |
7240 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7241 *ac_space=\ *)
7242 # `set' does not quote correctly, so add quotes (double-quote
7243 # substitution turns \\\\ into \\, and sed turns \\ into \).
7244 sed -n \
7245 "s/'/'\\\\''/g;
7246 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7247 ;;
7248 *)
7249 # `set' quotes correctly as required by POSIX, so do not add quotes.
7250 sed -n \
7251 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7252 ;;
7253 esac;
7254} |
7255 sed '
7256 t clear
7257 : clear
7258 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7259 t end
7260 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7261 : end' >>confcache
7262if diff $cache_file confcache >/dev/null 2>&1; then :; else
2ace9480 7263 if test -w $cache_file; then
7f9838a7 7264 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7265 cat confcache >$cache_file
2ace9480 7266 else
7267 echo "not updating unwritable cache $cache_file"
7268 fi
7269fi
7270rm -f confcache
7271
2ace9480 7272test "x$prefix" = xNONE && prefix=$ac_default_prefix
7273# Let make expand exec_prefix.
7274test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7275
7f9838a7 7276# VPATH may cause trouble with some makes, so we remove $(srcdir),
7277# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7278# trailing colons and then remove the whole line if VPATH becomes empty
7279# (actually we leave an empty line to preserve line numbers).
2ace9480 7280if test "x$srcdir" = x.; then
7f9838a7 7281 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7282s/:*\$(srcdir):*/:/;
7283s/:*\${srcdir}:*/:/;
7284s/:*@srcdir@:*/:/;
7285s/^\([^=]*=[ ]*\):*/\1/;
7286s/:*$//;
7287s/^[^=]*=[ ]*$//;
7288}'
2ace9480 7289fi
7290
2ace9480 7291DEFS=-DHAVE_CONFIG_H
7292
7f9838a7 7293ac_libobjs=
7294ac_ltlibobjs=
7295for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7296 # 1. Remove the extension, and $U if already installed.
7297 ac_i=`echo "$ac_i" |
7298 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7299 # 2. Add them.
7300 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7301 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7302done
7303LIBOBJS=$ac_libobjs
2ace9480 7304
7f9838a7 7305LTLIBOBJS=$ac_ltlibobjs
7306
7307
7308
7309: ${CONFIG_STATUS=./config.status}
7310ac_clean_files_save=$ac_clean_files
7311ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7312{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7313echo "$as_me: creating $CONFIG_STATUS" >&6;}
7314cat >$CONFIG_STATUS <<_ACEOF
7315#! $SHELL
7316# Generated by $as_me.
2ace9480 7317# Run this file to recreate the current configuration.
2ace9480 7318# Compiler output produced by configure, useful for debugging
7f9838a7 7319# configure, is in config.log if it exists.
7320
7321debug=false
7322ac_cs_recheck=false
7323ac_cs_silent=false
7324SHELL=\${CONFIG_SHELL-$SHELL}
7325_ACEOF
7326
7327cat >>$CONFIG_STATUS <<\_ACEOF
7328## --------------------- ##
7329## M4sh Initialization. ##
7330## --------------------- ##
7331
7332# Be Bourne compatible
7333if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7334 emulate sh
7335 NULLCMD=:
7336 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7337 # is contrary to our usage. Disable this feature.
7338 alias -g '${1+"$@"}'='"$@"'
7339elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7340 set -o posix
7341fi
7342DUALCASE=1; export DUALCASE # for MKS sh
7343
7344# Support unset when possible.
7345if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7346 as_unset=unset
7347else
7348 as_unset=false
7349fi
2ace9480 7350
7f9838a7 7351
7352# Work around bugs in pre-3.0 UWIN ksh.
7353$as_unset ENV MAIL MAILPATH
7354PS1='$ '
7355PS2='> '
7356PS4='+ '
7357
7358# NLS nuisances.
7359for as_var in \
7360 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7361 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7362 LC_TELEPHONE LC_TIME
2ace9480 7363do
7f9838a7 7364 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7365 eval $as_var=C; export $as_var
7366 else
7367 $as_unset $as_var
7368 fi
2ace9480 7369done
7370
7f9838a7 7371# Required to use basename.
7372if expr a : '\(a\)' >/dev/null 2>&1; then
7373 as_expr=expr
7374else
7375 as_expr=false
7376fi
7377
7378if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7379 as_basename=basename
7380else
7381 as_basename=false
7382fi
7383
7384
7385# Name of the executable.
7386as_me=`$as_basename "$0" ||
7387$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7388 X"$0" : 'X\(//\)$' \| \
7389 X"$0" : 'X\(/\)$' \| \
7390 . : '\(.\)' 2>/dev/null ||
7391echo X/"$0" |
7392 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7393 /^X\/\(\/\/\)$/{ s//\1/; q; }
7394 /^X\/\(\/\).*/{ s//\1/; q; }
7395 s/.*/./; q'`
7396
7397
7398# PATH needs CR, and LINENO needs CR and PATH.
7399# Avoid depending upon Character Ranges.
7400as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7401as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7402as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7403as_cr_digits='0123456789'
7404as_cr_alnum=$as_cr_Letters$as_cr_digits
7405
7406# The user is always right.
7407if test "${PATH_SEPARATOR+set}" != set; then
7408 echo "#! /bin/sh" >conf$$.sh
7409 echo "exit 0" >>conf$$.sh
7410 chmod +x conf$$.sh
7411 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7412 PATH_SEPARATOR=';'
7413 else
7414 PATH_SEPARATOR=:
7415 fi
7416 rm -f conf$$.sh
7417fi
2ace9480 7418
2ace9480 7419
7f9838a7 7420 as_lineno_1=$LINENO
7421 as_lineno_2=$LINENO
7422 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7423 test "x$as_lineno_1" != "x$as_lineno_2" &&
7424 test "x$as_lineno_3" = "x$as_lineno_2" || {
7425 # Find who we are. Look in the path if we contain no path at all
7426 # relative or not.
7427 case $0 in
7428 *[\\/]* ) as_myself=$0 ;;
7429 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430for as_dir in $PATH
7431do
7432 IFS=$as_save_IFS
7433 test -z "$as_dir" && as_dir=.
7434 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7435done
2ace9480 7436
7f9838a7 7437 ;;
7438 esac
7439 # We did not find ourselves, most probably we were run as `sh COMMAND'
7440 # in which case we are not to be found in the path.
7441 if test "x$as_myself" = x; then
7442 as_myself=$0
7443 fi
7444 if test ! -f "$as_myself"; then
7445 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7446echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7447 { (exit 1); exit 1; }; }
2ace9480 7448 fi
7f9838a7 7449 case $CONFIG_SHELL in
7450 '')
7451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7453do
7454 IFS=$as_save_IFS
7455 test -z "$as_dir" && as_dir=.
7456 for as_base in sh bash ksh sh5; do
7457 case $as_dir in
7458 /*)
7459 if ("$as_dir/$as_base" -c '
7460 as_lineno_1=$LINENO
7461 as_lineno_2=$LINENO
7462 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7463 test "x$as_lineno_1" != "x$as_lineno_2" &&
7464 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7465 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7466 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7467 CONFIG_SHELL=$as_dir/$as_base
7468 export CONFIG_SHELL
7469 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7470 fi;;
7471 esac
7472 done
7473done
7474;;
7475 esac
7476
7477 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7478 # uniformly replaced by the line number. The first 'sed' inserts a
7479 # line-number line before each line; the second 'sed' does the real
7480 # work. The second script uses 'N' to pair each line-number line
7481 # with the numbered line, and appends trailing '-' during
7482 # substitution so that $LINENO is not a special case at line end.
7483 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7484 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7485 sed '=' <$as_myself |
7486 sed '
7487 N
7488 s,$,-,
7489 : loop
7490 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7491 t loop
7492 s,-$,,
7493 s,^['$as_cr_digits']*\n,,
7494 ' >$as_me.lineno &&
7495 chmod +x $as_me.lineno ||
7496 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7497echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7498 { (exit 1); exit 1; }; }
7499
7500 # Don't try to exec as it changes $[0], causing all sort of problems
7501 # (the dirname of $[0] is not the place where we might find the
7502 # original and so on. Autoconf is especially sensible to this).
7503 . ./$as_me.lineno
7504 # Exit status is that of the last command.
7505 exit
7506}
7507
7508
7509case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7510 *c*,-n*) ECHO_N= ECHO_C='
7511' ECHO_T=' ' ;;
7512 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7513 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7514esac
7515
7516if expr a : '\(a\)' >/dev/null 2>&1; then
7517 as_expr=expr
7518else
7519 as_expr=false
7520fi
7521
7522rm -f conf$$ conf$$.exe conf$$.file
7523echo >conf$$.file
7524if ln -s conf$$.file conf$$ 2>/dev/null; then
7525 # We could just check for DJGPP; but this test a) works b) is more generic
7526 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7527 if test -f conf$$.exe; then
7528 # Don't use ln at all; we don't have any links
7529 as_ln_s='cp -p'
2ace9480 7530 else
7f9838a7 7531 as_ln_s='ln -s'
2ace9480 7532 fi
7f9838a7 7533elif ln conf$$.file conf$$ 2>/dev/null; then
7534 as_ln_s=ln
7535else
7536 as_ln_s='cp -p'
7537fi
7538rm -f conf$$ conf$$.exe conf$$.file
7539
7540if mkdir -p . 2>/dev/null; then
7541 as_mkdir_p=:
7542else
7543 test -d ./-p && rmdir ./-p
7544 as_mkdir_p=false
7545fi
7546
7547as_executable_p="test -f"
7548
7549# Sed expression to map a string onto a valid CPP name.
7550as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7551
7552# Sed expression to map a string onto a valid variable name.
7553as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7554
7555
7556# IFS
7557# We need space, tab and new line, in precisely that order.
7558as_nl='
7559'
7560IFS=" $as_nl"
7561
7562# CDPATH.
7563$as_unset CDPATH
7564
7565exec 6>&1
7566
7567# Open the log real soon, to keep \$[0] and so on meaningful, and to
7568# report actual input values of CONFIG_FILES etc. instead of their
7569# values after options handling. Logging --version etc. is OK.
7570exec 5>>config.log
7571{
7572 echo
7573 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7574## Running $as_me. ##
7575_ASBOX
7576} >&5
7577cat >&5 <<_CSEOF
7578
7579This file was extended by $as_me, which was
7580generated by GNU Autoconf 2.59. Invocation command line was
7581
7582 CONFIG_FILES = $CONFIG_FILES
7583 CONFIG_HEADERS = $CONFIG_HEADERS
7584 CONFIG_LINKS = $CONFIG_LINKS
7585 CONFIG_COMMANDS = $CONFIG_COMMANDS
7586 $ $0 $@
7587
7588_CSEOF
7589echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7590echo >&5
7591_ACEOF
7592
7593# Files that config.status was made for.
7594if test -n "$ac_config_files"; then
7595 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7596fi
7597
7598if test -n "$ac_config_headers"; then
7599 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7600fi
7601
7602if test -n "$ac_config_links"; then
7603 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7604fi
7605
7606if test -n "$ac_config_commands"; then
7607 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7608fi
7609
7610cat >>$CONFIG_STATUS <<\_ACEOF
7611
7612ac_cs_usage="\
7613\`$as_me' instantiates files from templates according to the
7614current configuration.
7615
7616Usage: $0 [OPTIONS] [FILE]...
7617
7618 -h, --help print this help, then exit
7619 -V, --version print version number, then exit
7620 -q, --quiet do not print progress messages
7621 -d, --debug don't remove temporary files
7622 --recheck update $as_me by reconfiguring in the same conditions
7623 --file=FILE[:TEMPLATE]
7624 instantiate the configuration file FILE
7625 --header=FILE[:TEMPLATE]
7626 instantiate the configuration header FILE
7627
7628Configuration files:
7629$config_files
7630
7631Configuration headers:
7632$config_headers
7633
7634Configuration commands:
7635$config_commands
7636
7637Report bugs to <bug-autoconf@gnu.org>."
7638_ACEOF
7639
7640cat >>$CONFIG_STATUS <<_ACEOF
7641ac_cs_version="\\
7642config.status
7643configured by $0, generated by GNU Autoconf 2.59,
7644 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7645
7646Copyright (C) 2003 Free Software Foundation, Inc.
7647This config.status script is free software; the Free Software Foundation
7648gives unlimited permission to copy, distribute and modify it."
7649srcdir=$srcdir
7650INSTALL="$INSTALL"
7651_ACEOF
7652
7653cat >>$CONFIG_STATUS <<\_ACEOF
7654# If no file are specified by the user, then we need to provide default
7655# value. By we need to know if files were specified by the user.
7656ac_need_defaults=:
7657while test $# != 0
7658do
7659 case $1 in
7660 --*=*)
7661 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7662 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7663 ac_shift=:
7664 ;;
7665 -*)
7666 ac_option=$1
7667 ac_optarg=$2
7668 ac_shift=shift
7669 ;;
7670 *) # This is not an option, so the user has probably given explicit
7671 # arguments.
7672 ac_option=$1
7673 ac_need_defaults=false;;
7674 esac
7675
7676 case $ac_option in
7677 # Handling of the options.
7678_ACEOF
7679cat >>$CONFIG_STATUS <<\_ACEOF
7680 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7681 ac_cs_recheck=: ;;
7682 --version | --vers* | -V )
7683 echo "$ac_cs_version"; exit 0 ;;
7684 --he | --h)
7685 # Conflict between --help and --header
7686 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7687Try \`$0 --help' for more information." >&5
7688echo "$as_me: error: ambiguous option: $1
7689Try \`$0 --help' for more information." >&2;}
7690 { (exit 1); exit 1; }; };;
7691 --help | --hel | -h )
7692 echo "$ac_cs_usage"; exit 0 ;;
7693 --debug | --d* | -d )
7694 debug=: ;;
7695 --file | --fil | --fi | --f )
7696 $ac_shift
7697 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7698 ac_need_defaults=false;;
7699 --header | --heade | --head | --hea )
7700 $ac_shift
7701 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7702 ac_need_defaults=false;;
7703 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7704 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7705 ac_cs_silent=: ;;
7706
7707 # This is an error.
7708 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7709Try \`$0 --help' for more information." >&5
7710echo "$as_me: error: unrecognized option: $1
7711Try \`$0 --help' for more information." >&2;}
7712 { (exit 1); exit 1; }; } ;;
7713
7714 *) ac_config_targets="$ac_config_targets $1" ;;
7715
7716 esac
7717 shift
2ace9480 7718done
7f9838a7 7719
7720ac_configure_extra_args=
7721
7722if $ac_cs_silent; then
7723 exec 6>/dev/null
7724 ac_configure_extra_args="$ac_configure_extra_args --silent"
7725fi
7726
7727_ACEOF
7728cat >>$CONFIG_STATUS <<_ACEOF
7729if \$ac_cs_recheck; then
7730 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7731 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
2ace9480 7732fi
2ace9480 7733
7f9838a7 7734_ACEOF
2ace9480 7735
7f9838a7 7736cat >>$CONFIG_STATUS <<_ACEOF
7737#
7738# INIT-COMMANDS section.
7739#
7740
7741
7742
7743_ACEOF
7744
7745
7746
7747cat >>$CONFIG_STATUS <<\_ACEOF
7748for ac_config_target in $ac_config_targets
7749do
7750 case "$ac_config_target" in
7751 # Handling of arguments.
7752 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7753 "data/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
7754 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7755 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
7756 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
7757 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7758echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7759 { (exit 1); exit 1; }; };;
2ace9480 7760 esac
7f9838a7 7761done
2ace9480 7762
7f9838a7 7763# If the user did not use the arguments to specify the items to instantiate,
7764# then the envvar interface is used. Set only those that are not.
7765# We use the long form for the default assignment because of an extremely
7766# bizarre bug on SunOS 4.1.3.
7767if $ac_need_defaults; then
7768 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7769 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7770 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7771fi
7772
7773# Have a temporary directory for convenience. Make it in the build tree
7774# simply because there is no reason to put it here, and in addition,
7775# creating and moving files from /tmp can sometimes cause problems.
7776# Create a temporary directory, and hook for its removal unless debugging.
7777$debug ||
7778{
7779 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7780 trap '{ (exit 1); exit 1; }' 1 2 13 15
7781}
2ace9480 7782
7f9838a7 7783# Create a (secure) tmp directory for tmp files.
7784
7785{
7786 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7787 test -n "$tmp" && test -d "$tmp"
7788} ||
7789{
7790 tmp=./confstat$$-$RANDOM
7791 (umask 077 && mkdir $tmp)
7792} ||
7793{
7794 echo "$me: cannot create a temporary directory in ." >&2
7795 { (exit 1); exit 1; }
7796}
7797
7798_ACEOF
7799
7800cat >>$CONFIG_STATUS <<_ACEOF
7801
7802#
7803# CONFIG_FILES section.
7804#
7805
7806# No need to generate the scripts if there are no CONFIG_FILES.
7807# This happens for instance when ./config.status config.h
7808if test -n "\$CONFIG_FILES"; then
7809 # Protect against being on the right side of a sed subst in config.status.
7810 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7811 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7812s,@SHELL@,$SHELL,;t t
7813s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7814s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7815s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7816s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7817s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7818s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7819s,@exec_prefix@,$exec_prefix,;t t
7820s,@prefix@,$prefix,;t t
7821s,@program_transform_name@,$program_transform_name,;t t
7822s,@bindir@,$bindir,;t t
7823s,@sbindir@,$sbindir,;t t
7824s,@libexecdir@,$libexecdir,;t t
7825s,@datadir@,$datadir,;t t
7826s,@sysconfdir@,$sysconfdir,;t t
7827s,@sharedstatedir@,$sharedstatedir,;t t
7828s,@localstatedir@,$localstatedir,;t t
7829s,@libdir@,$libdir,;t t
7830s,@includedir@,$includedir,;t t
7831s,@oldincludedir@,$oldincludedir,;t t
7832s,@infodir@,$infodir,;t t
7833s,@mandir@,$mandir,;t t
7834s,@build_alias@,$build_alias,;t t
7835s,@host_alias@,$host_alias,;t t
7836s,@target_alias@,$target_alias,;t t
7837s,@DEFS@,$DEFS,;t t
7838s,@ECHO_C@,$ECHO_C,;t t
7839s,@ECHO_N@,$ECHO_N,;t t
7840s,@ECHO_T@,$ECHO_T,;t t
7841s,@LIBS@,$LIBS,;t t
7842s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7843s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7844s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7845s,@PACKAGE@,$PACKAGE,;t t
7846s,@VERSION@,$VERSION,;t t
7847s,@ACLOCAL@,$ACLOCAL,;t t
7848s,@AUTOCONF@,$AUTOCONF,;t t
7849s,@AUTOMAKE@,$AUTOMAKE,;t t
7850s,@AUTOHEADER@,$AUTOHEADER,;t t
7851s,@MAKEINFO@,$MAKEINFO,;t t
7852s,@SET_MAKE@,$SET_MAKE,;t t
7853s,@AWK@,$AWK,;t t
7854s,@CC@,$CC,;t t
7855s,@CFLAGS@,$CFLAGS,;t t
7856s,@LDFLAGS@,$LDFLAGS,;t t
7857s,@CPPFLAGS@,$CPPFLAGS,;t t
7858s,@ac_ct_CC@,$ac_ct_CC,;t t
7859s,@EXEEXT@,$EXEEXT,;t t
7860s,@OBJEXT@,$OBJEXT,;t t
7861s,@LN_S@,$LN_S,;t t
7862s,@CPP@,$CPP,;t t
7863s,@EGREP@,$EGREP,;t t
7864s,@LIBOBJS@,$LIBOBJS,;t t
7865s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7866CEOF
7867
7868_ACEOF
7869
7870 cat >>$CONFIG_STATUS <<\_ACEOF
7871 # Split the substitutions into bite-sized pieces for seds with
7872 # small command number limits, like on Digital OSF/1 and HP-UX.
7873 ac_max_sed_lines=48
7874 ac_sed_frag=1 # Number of current file.
7875 ac_beg=1 # First line for current file.
7876 ac_end=$ac_max_sed_lines # Line after last line for current file.
7877 ac_more_lines=:
7878 ac_sed_cmds=
7879 while $ac_more_lines; do
7880 if test $ac_beg -gt 1; then
7881 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7882 else
7883 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7884 fi
7885 if test ! -s $tmp/subs.frag; then
7886 ac_more_lines=false
7887 else
7888 # The purpose of the label and of the branching condition is to
7889 # speed up the sed processing (if there are no `@' at all, there
7890 # is no need to browse any of the substitutions).
7891 # These are the two extra sed commands mentioned above.
7892 (echo ':t
7893 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7894 if test -z "$ac_sed_cmds"; then
7895 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7896 else
7897 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7898 fi
7899 ac_sed_frag=`expr $ac_sed_frag + 1`
7900 ac_beg=$ac_end
7901 ac_end=`expr $ac_end + $ac_max_sed_lines`
7902 fi
7903 done
7904 if test -z "$ac_sed_cmds"; then
7905 ac_sed_cmds=cat
2ace9480 7906 fi
7f9838a7 7907fi # test -n "$CONFIG_FILES"
2ace9480 7908
7f9838a7 7909_ACEOF
7910cat >>$CONFIG_STATUS <<\_ACEOF
7911for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7912 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7913 case $ac_file in
7914 - | *:- | *:-:* ) # input from stdin
7915 cat >$tmp/stdin
7916 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7917 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7918 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7919 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7920 * ) ac_file_in=$ac_file.in ;;
2ace9480 7921 esac
7922
7f9838a7 7923 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7924 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7925$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7926 X"$ac_file" : 'X\(//\)[^/]' \| \
7927 X"$ac_file" : 'X\(//\)$' \| \
7928 X"$ac_file" : 'X\(/\)' \| \
7929 . : '\(.\)' 2>/dev/null ||
7930echo X"$ac_file" |
7931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7932 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7933 /^X\(\/\/\)$/{ s//\1/; q; }
7934 /^X\(\/\).*/{ s//\1/; q; }
7935 s/.*/./; q'`
7936 { if $as_mkdir_p; then
7937 mkdir -p "$ac_dir"
7938 else
7939 as_dir="$ac_dir"
7940 as_dirs=
7941 while test ! -d "$as_dir"; do
7942 as_dirs="$as_dir $as_dirs"
7943 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7944$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7945 X"$as_dir" : 'X\(//\)[^/]' \| \
7946 X"$as_dir" : 'X\(//\)$' \| \
7947 X"$as_dir" : 'X\(/\)' \| \
7948 . : '\(.\)' 2>/dev/null ||
7949echo X"$as_dir" |
7950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7951 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7952 /^X\(\/\/\)$/{ s//\1/; q; }
7953 /^X\(\/\).*/{ s//\1/; q; }
7954 s/.*/./; q'`
7955 done
7956 test ! -n "$as_dirs" || mkdir $as_dirs
7957 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7958echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7959 { (exit 1); exit 1; }; }; }
7960
7961 ac_builddir=.
7962
7963if test "$ac_dir" != .; then
7964 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7965 # A "../" for each directory in $ac_dir_suffix.
7966 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7967else
7968 ac_dir_suffix= ac_top_builddir=
7969fi
2ace9480 7970
7f9838a7 7971case $srcdir in
7972 .) # No --srcdir option. We are building in place.
7973 ac_srcdir=.
7974 if test -z "$ac_top_builddir"; then
7975 ac_top_srcdir=.
7976 else
7977 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7978 fi ;;
7979 [\\/]* | ?:[\\/]* ) # Absolute path.
7980 ac_srcdir=$srcdir$ac_dir_suffix;
7981 ac_top_srcdir=$srcdir ;;
7982 *) # Relative path.
7983 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7984 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7985esac
7986
7987# Do not use `cd foo && pwd` to compute absolute paths, because
7988# the directories may not exist.
7989case `pwd` in
7990.) ac_abs_builddir="$ac_dir";;
7991*)
7992 case "$ac_dir" in
7993 .) ac_abs_builddir=`pwd`;;
7994 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7995 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7996 esac;;
7997esac
7998case $ac_abs_builddir in
7999.) ac_abs_top_builddir=${ac_top_builddir}.;;
8000*)
8001 case ${ac_top_builddir}. in
8002 .) ac_abs_top_builddir=$ac_abs_builddir;;
8003 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8004 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8005 esac;;
8006esac
8007case $ac_abs_builddir in
8008.) ac_abs_srcdir=$ac_srcdir;;
8009*)
8010 case $ac_srcdir in
8011 .) ac_abs_srcdir=$ac_abs_builddir;;
8012 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8013 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8014 esac;;
8015esac
8016case $ac_abs_builddir in
8017.) ac_abs_top_srcdir=$ac_top_srcdir;;
8018*)
8019 case $ac_top_srcdir in
8020 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8021 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8022 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8023 esac;;
8024esac
8025
8026
8027 case $INSTALL in
8028 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8029 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
2ace9480 8030 esac
8031
7f9838a7 8032 # Let's still pretend it is `configure' which instantiates (i.e., don't
8033 # use $as_me), people would be surprised to read:
8034 # /* config.h. Generated by config.status. */
8035 if test x"$ac_file" = x-; then
8036 configure_input=
8037 else
8038 configure_input="$ac_file. "
8039 fi
8040 configure_input=$configure_input"Generated from `echo $ac_file_in |
8041 sed 's,.*/,,'` by configure."
8042
8043 # First look for the input files in the build tree, otherwise in the
8044 # src tree.
8045 ac_file_inputs=`IFS=:
8046 for f in $ac_file_in; do
8047 case $f in
8048 -) echo $tmp/stdin ;;
8049 [\\/$]*)
8050 # Absolute (can't be DOS-style, as IFS=:)
8051 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8052echo "$as_me: error: cannot find input file: $f" >&2;}
8053 { (exit 1); exit 1; }; }
8054 echo "$f";;
8055 *) # Relative
8056 if test -f "$f"; then
8057 # Build tree
8058 echo "$f"
8059 elif test -f "$srcdir/$f"; then
8060 # Source tree
8061 echo "$srcdir/$f"
8062 else
8063 # /dev/null tree
8064 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8065echo "$as_me: error: cannot find input file: $f" >&2;}
8066 { (exit 1); exit 1; }; }
8067 fi;;
8068 esac
8069 done` || { (exit 1); exit 1; }
8070
8071 if test x"$ac_file" != x-; then
8072 { echo "$as_me:$LINENO: creating $ac_file" >&5
8073echo "$as_me: creating $ac_file" >&6;}
8074 rm -f "$ac_file"
8075 fi
8076_ACEOF
8077cat >>$CONFIG_STATUS <<_ACEOF
8078 sed "$ac_vpsub
8079$extrasub
8080_ACEOF
8081cat >>$CONFIG_STATUS <<\_ACEOF
8082:t
8083/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8084s,@configure_input@,$configure_input,;t t
8085s,@srcdir@,$ac_srcdir,;t t
8086s,@abs_srcdir@,$ac_abs_srcdir,;t t
8087s,@top_srcdir@,$ac_top_srcdir,;t t
8088s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8089s,@builddir@,$ac_builddir,;t t
8090s,@abs_builddir@,$ac_abs_builddir,;t t
8091s,@top_builddir@,$ac_top_builddir,;t t
8092s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8093s,@INSTALL@,$ac_INSTALL,;t t
8094" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8095 rm -f $tmp/stdin
8096 if test x"$ac_file" != x-; then
8097 mv $tmp/out $ac_file
8098 else
8099 cat $tmp/out
8100 rm -f $tmp/out
8101 fi
8102
8103done
8104_ACEOF
8105cat >>$CONFIG_STATUS <<\_ACEOF
8106
8107#
8108# CONFIG_HEADER section.
8109#
2ace9480 8110
8111# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8112# NAME is the cpp macro being defined and VALUE is the value it is being given.
8113#
8114# ac_d sets the value in "#define NAME VALUE" lines.
7f9838a7 8115ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8116ac_dB='[ ].*$,\1#\2'
8117ac_dC=' '
8118ac_dD=',;t'
8119# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8120ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8121ac_uB='$,\1#\2define\3'
2ace9480 8122ac_uC=' '
7f9838a7 8123ac_uD=',;t'
8124
8125for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
2ace9480 8126 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7f9838a7 8127 case $ac_file in
8128 - | *:- | *:-:* ) # input from stdin
8129 cat >$tmp/stdin
8130 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8131 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8132 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8133 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8134 * ) ac_file_in=$ac_file.in ;;
2ace9480 8135 esac
8136
7f9838a7 8137 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8138echo "$as_me: creating $ac_file" >&6;}
8139
8140 # First look for the input files in the build tree, otherwise in the
8141 # src tree.
8142 ac_file_inputs=`IFS=:
8143 for f in $ac_file_in; do
8144 case $f in
8145 -) echo $tmp/stdin ;;
8146 [\\/$]*)
8147 # Absolute (can't be DOS-style, as IFS=:)
8148 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8149echo "$as_me: error: cannot find input file: $f" >&2;}
8150 { (exit 1); exit 1; }; }
8151 # Do quote $f, to prevent DOS paths from being IFS'd.
8152 echo "$f";;
8153 *) # Relative
8154 if test -f "$f"; then
8155 # Build tree
8156 echo "$f"
8157 elif test -f "$srcdir/$f"; then
8158 # Source tree
8159 echo "$srcdir/$f"
8160 else
8161 # /dev/null tree
8162 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8163echo "$as_me: error: cannot find input file: $f" >&2;}
8164 { (exit 1); exit 1; }; }
8165 fi;;
8166 esac
8167 done` || { (exit 1); exit 1; }
8168 # Remove the trailing spaces.
8169 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8170
8171_ACEOF
8172
8173# Transform confdefs.h into two sed scripts, `conftest.defines' and
8174# `conftest.undefs', that substitutes the proper values into
8175# config.h.in to produce config.h. The first handles `#define'
8176# templates, and the second `#undef' templates.
8177# And first: Protect against being on the right side of a sed subst in
8178# config.status. Protect against being in an unquoted here document
8179# in config.status.
8180rm -f conftest.defines conftest.undefs
8181# Using a here document instead of a string reduces the quoting nightmare.
8182# Putting comments in sed scripts is not portable.
8183#
8184# `end' is used to avoid that the second main sed command (meant for
8185# 0-ary CPP macros) applies to n-ary macro definitions.
8186# See the Autoconf documentation for `clear'.
8187cat >confdef2sed.sed <<\_ACEOF
8188s/[\\&,]/\\&/g
8189s,[\\$`],\\&,g
8190t clear
8191: clear
8192s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8193t end
8194s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8195: end
8196_ACEOF
8197# If some macros were called several times there might be several times
8198# the same #defines, which is useless. Nevertheless, we may not want to
8199# sort them, since we want the *last* AC-DEFINE to be honored.
8200uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8201sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8202rm -f confdef2sed.sed
2ace9480 8203
8204# This sed command replaces #undef with comments. This is necessary, for
8205# example, in the case of _POSIX_SOURCE, which is predefined and required
8206# on some systems where configure will not decide to define it.
7f9838a7 8207cat >>conftest.undefs <<\_ACEOF
8208s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8209_ACEOF
8210
8211# Break up conftest.defines because some shells have a limit on the size
8212# of here documents, and old seds have small limits too (100 cmds).
8213echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8214echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8215echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8216echo ' :' >>$CONFIG_STATUS
8217rm -f conftest.tail
8218while grep . conftest.defines >/dev/null
8219do
8220 # Write a limited-size here document to $tmp/defines.sed.
8221 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8222 # Speed up: don't consider the non `#define' lines.
8223 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8224 # Work around the forget-to-reset-the-flag bug.
8225 echo 't clr' >>$CONFIG_STATUS
8226 echo ': clr' >>$CONFIG_STATUS
8227 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8228 echo 'CEOF
8229 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8230 rm -f $tmp/in
8231 mv $tmp/out $tmp/in
8232' >>$CONFIG_STATUS
8233 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8234 rm -f conftest.defines
8235 mv conftest.tail conftest.defines
8236done
8237rm -f conftest.defines
8238echo ' fi # grep' >>$CONFIG_STATUS
8239echo >>$CONFIG_STATUS
2ace9480 8240
7f9838a7 8241# Break up conftest.undefs because some shells have a limit on the size
8242# of here documents, and old seds have small limits too (100 cmds).
8243echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
2ace9480 8244rm -f conftest.tail
7f9838a7 8245while grep . conftest.undefs >/dev/null
2ace9480 8246do
7f9838a7 8247 # Write a limited-size here document to $tmp/undefs.sed.
8248 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8249 # Speed up: don't consider the non `#undef'
8250 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8251 # Work around the forget-to-reset-the-flag bug.
8252 echo 't clr' >>$CONFIG_STATUS
8253 echo ': clr' >>$CONFIG_STATUS
8254 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
2ace9480 8255 echo 'CEOF
7f9838a7 8256 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8257 rm -f $tmp/in
8258 mv $tmp/out $tmp/in
8259' >>$CONFIG_STATUS
8260 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8261 rm -f conftest.undefs
8262 mv conftest.tail conftest.undefs
2ace9480 8263done
7f9838a7 8264rm -f conftest.undefs
8265
8266cat >>$CONFIG_STATUS <<\_ACEOF
8267 # Let's still pretend it is `configure' which instantiates (i.e., don't
8268 # use $as_me), people would be surprised to read:
8269 # /* config.h. Generated by config.status. */
8270 if test x"$ac_file" = x-; then
8271 echo "/* Generated by configure. */" >$tmp/config.h
8272 else
8273 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8274 fi
8275 cat $tmp/in >>$tmp/config.h
8276 rm -f $tmp/in
8277 if test x"$ac_file" != x-; then
8278 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8279 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8280echo "$as_me: $ac_file is unchanged" >&6;}
8281 else
8282 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8283$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8284 X"$ac_file" : 'X\(//\)[^/]' \| \
8285 X"$ac_file" : 'X\(//\)$' \| \
8286 X"$ac_file" : 'X\(/\)' \| \
8287 . : '\(.\)' 2>/dev/null ||
8288echo X"$ac_file" |
8289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8290 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8291 /^X\(\/\/\)$/{ s//\1/; q; }
8292 /^X\(\/\).*/{ s//\1/; q; }
8293 s/.*/./; q'`
8294 { if $as_mkdir_p; then
8295 mkdir -p "$ac_dir"
2ace9480 8296 else
7f9838a7 8297 as_dir="$ac_dir"
8298 as_dirs=
8299 while test ! -d "$as_dir"; do
8300 as_dirs="$as_dir $as_dirs"
8301 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8302$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8303 X"$as_dir" : 'X\(//\)[^/]' \| \
8304 X"$as_dir" : 'X\(//\)$' \| \
8305 X"$as_dir" : 'X\(/\)' \| \
8306 . : '\(.\)' 2>/dev/null ||
8307echo X"$as_dir" |
8308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8309 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8310 /^X\(\/\/\)$/{ s//\1/; q; }
8311 /^X\(\/\).*/{ s//\1/; q; }
8312 s/.*/./; q'`
8313 done
8314 test ! -n "$as_dirs" || mkdir $as_dirs
8315 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8316echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8317 { (exit 1); exit 1; }; }; }
8318
8319 rm -f $ac_file
8320 mv $tmp/config.h $ac_file
2ace9480 8321 fi
7f9838a7 8322 else
8323 cat $tmp/config.h
8324 rm -f $tmp/config.h
2ace9480 8325 fi
7f9838a7 8326done
8327_ACEOF
8328cat >>$CONFIG_STATUS <<\_ACEOF
2ace9480 8329
7f9838a7 8330#
8331# CONFIG_COMMANDS section.
8332#
8333for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8334 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8335 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8336 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8337$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8338 X"$ac_dest" : 'X\(//\)[^/]' \| \
8339 X"$ac_dest" : 'X\(//\)$' \| \
8340 X"$ac_dest" : 'X\(/\)' \| \
8341 . : '\(.\)' 2>/dev/null ||
8342echo X"$ac_dest" |
8343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8344 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8345 /^X\(\/\/\)$/{ s//\1/; q; }
8346 /^X\(\/\).*/{ s//\1/; q; }
8347 s/.*/./; q'`
8348 { if $as_mkdir_p; then
8349 mkdir -p "$ac_dir"
8350 else
8351 as_dir="$ac_dir"
8352 as_dirs=
8353 while test ! -d "$as_dir"; do
8354 as_dirs="$as_dir $as_dirs"
8355 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8356$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8357 X"$as_dir" : 'X\(//\)[^/]' \| \
8358 X"$as_dir" : 'X\(//\)$' \| \
8359 X"$as_dir" : 'X\(/\)' \| \
8360 . : '\(.\)' 2>/dev/null ||
8361echo X"$as_dir" |
8362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8363 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8364 /^X\(\/\/\)$/{ s//\1/; q; }
8365 /^X\(\/\).*/{ s//\1/; q; }
8366 s/.*/./; q'`
8367 done
8368 test ! -n "$as_dirs" || mkdir $as_dirs
8369 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8370echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8371 { (exit 1); exit 1; }; }; }
8372
8373 ac_builddir=.
8374
8375if test "$ac_dir" != .; then
8376 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8377 # A "../" for each directory in $ac_dir_suffix.
8378 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8379else
8380 ac_dir_suffix= ac_top_builddir=
8381fi
2ace9480 8382
7f9838a7 8383case $srcdir in
8384 .) # No --srcdir option. We are building in place.
8385 ac_srcdir=.
8386 if test -z "$ac_top_builddir"; then
8387 ac_top_srcdir=.
8388 else
8389 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8390 fi ;;
8391 [\\/]* | ?:[\\/]* ) # Absolute path.
8392 ac_srcdir=$srcdir$ac_dir_suffix;
8393 ac_top_srcdir=$srcdir ;;
8394 *) # Relative path.
8395 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8396 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8397esac
8398
8399# Do not use `cd foo && pwd` to compute absolute paths, because
8400# the directories may not exist.
8401case `pwd` in
8402.) ac_abs_builddir="$ac_dir";;
8403*)
8404 case "$ac_dir" in
8405 .) ac_abs_builddir=`pwd`;;
8406 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8407 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8408 esac;;
8409esac
8410case $ac_abs_builddir in
8411.) ac_abs_top_builddir=${ac_top_builddir}.;;
8412*)
8413 case ${ac_top_builddir}. in
8414 .) ac_abs_top_builddir=$ac_abs_builddir;;
8415 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8416 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8417 esac;;
8418esac
8419case $ac_abs_builddir in
8420.) ac_abs_srcdir=$ac_srcdir;;
8421*)
8422 case $ac_srcdir in
8423 .) ac_abs_srcdir=$ac_abs_builddir;;
8424 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8425 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8426 esac;;
8427esac
8428case $ac_abs_builddir in
8429.) ac_abs_top_srcdir=$ac_top_srcdir;;
8430*)
8431 case $ac_top_srcdir in
8432 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8433 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8434 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8435 esac;;
8436esac
8437
8438
8439 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8440echo "$as_me: executing $ac_dest commands" >&6;}
8441 case $ac_dest in
8442 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h ;;
8443 esac
8444done
8445_ACEOF
2ace9480 8446
7f9838a7 8447cat >>$CONFIG_STATUS <<\_ACEOF
2ace9480 8448
7f9838a7 8449{ (exit 0); exit 0; }
8450_ACEOF
2ace9480 8451chmod +x $CONFIG_STATUS
7f9838a7 8452ac_clean_files=$ac_clean_files_save
8453
8454
8455# configure is writing to config.log, and then calls config.status.
8456# config.status does its own redirection, appending to config.log.
8457# Unfortunately, on DOS this fails, as config.log is still kept open
8458# by configure, so config.status won't be able to write to it; its
8459# output is simply discarded. So we exec the FD to /dev/null,
8460# effectively closing config.log, so it can be properly (re)opened and
8461# appended to by config.status. When coming back to configure, we
8462# need to make the FD available again.
8463if test "$no_create" != yes; then
8464 ac_cs_success=:
8465 ac_config_status_args=
8466 test "$silent" = yes &&
8467 ac_config_status_args="$ac_config_status_args --quiet"
8468 exec 5>/dev/null
8469 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8470 exec 5>>config.log
8471 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8472 # would make configure fail if this is the last instruction.
8473 $ac_cs_success || { (exit 1); exit 1; }
8474fi
2ace9480 8475
8476
beff48bb 8477if test $REPORT -eq 1 -a $reportusage -eq 1; then
2ace9480 8478 ./ReportUsage.sh
8479fi
8480echo
8481echo "Thales will be installed in ${prefix}. To change this, run :"
8482echo " ./configure --prefix=DIRECTORY"
8483echo "To compile Thales, run make (or gmake on non-GNU systems)"
8484echo "To install Thales, run make install (or gmake install on non-GNU systems)"
8485echo
8486echo "Don't forget to read the README and INSTALL files for more detailed instructions"
8487echo