/[cvs]/eggdrop1.6/configure
ViewVC logotype

Contents of /eggdrop1.6/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.92 - (show annotations) (download)
Tue Apr 1 05:33:40 2003 UTC (18 years ago) by wcc
Branch: MAIN
CVS Tags: eggdrop_1_6_15
Changes since 1.91: +311 -3 lines
* Added the IPv6 patch to CVS. This is not 100% complete yet. Please test
  and improve! :P

1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.54.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
40 do
41 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
42 eval $as_var=C; export $as_var
43 else
44 $as_unset $as_var
45 fi
46 done
47
48 # Required to use basename.
49 if expr a : '\(a\)' >/dev/null 2>&1; then
50 as_expr=expr
51 else
52 as_expr=false
53 fi
54
55 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
56 as_basename=basename
57 else
58 as_basename=false
59 fi
60
61
62 # Name of the executable.
63 as_me=`$as_basename "$0" ||
64 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
65 X"$0" : 'X\(//\)$' \| \
66 X"$0" : 'X\(/\)$' \| \
67 . : '\(.\)' 2>/dev/null ||
68 echo X/"$0" |
69 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
70 /^X\/\(\/\/\)$/{ s//\1/; q; }
71 /^X\/\(\/\).*/{ s//\1/; q; }
72 s/.*/./; q'`
73
74
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
87 chmod +x conftest.sh
88 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
89 PATH_SEPARATOR=';'
90 else
91 PATH_SEPARATOR=:
92 fi
93 rm -f conftest.sh
94 fi
95
96
97 as_lineno_1=$LINENO
98 as_lineno_2=$LINENO
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
103 # relative or not.
104 case $0 in
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 for as_dir in $PATH
108 do
109 IFS=$as_save_IFS
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
113
114 ;;
115 esac
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
119 as_myself=$0
120 fi
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
124 fi
125 case $CONFIG_SHELL in
126 '')
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129 do
130 IFS=$as_save_IFS
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
133 case $as_dir in
134 /*)
135 if ("$as_dir/$as_base" -c '
136 as_lineno_1=$LINENO
137 as_lineno_2=$LINENO
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
142 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
143 CONFIG_SHELL=$as_dir/$as_base
144 export CONFIG_SHELL
145 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
146 fi;;
147 esac
148 done
149 done
150 ;;
151 esac
152
153 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154 # uniformly replaced by the line number. The first 'sed' inserts a
155 # line-number line before each line; the second 'sed' does the real
156 # work. The second script uses 'N' to pair each line-number line
157 # with the numbered line, and appends trailing '-' during
158 # substitution so that $LINENO is not a special case at line end.
159 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
161 sed '=' <$as_myself |
162 sed '
163 N
164 s,$,-,
165 : loop
166 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167 t loop
168 s,-$,,
169 s,^['$as_cr_digits']*\n,,
170 ' >$as_me.lineno &&
171 chmod +x $as_me.lineno ||
172 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173 { (exit 1); exit 1; }; }
174
175 # Don't try to exec as it changes $[0], causing all sort of problems
176 # (the dirname of $[0] is not the place where we might find the
177 # original and so on. Autoconf is especially sensible to this).
178 . ./$as_me.lineno
179 # Exit status is that of the last command.
180 exit
181 }
182
183
184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185 *c*,-n*) ECHO_N= ECHO_C='
186 ' ECHO_T=' ' ;;
187 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
189 esac
190
191 if expr a : '\(a\)' >/dev/null 2>&1; then
192 as_expr=expr
193 else
194 as_expr=false
195 fi
196
197 rm -f conf$$ conf$$.exe conf$$.file
198 echo >conf$$.file
199 if ln -s conf$$.file conf$$ 2>/dev/null; then
200 # We could just check for DJGPP; but this test a) works b) is more generic
201 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202 if test -f conf$$.exe; then
203 # Don't use ln at all; we don't have any links
204 as_ln_s='cp -p'
205 else
206 as_ln_s='ln -s'
207 fi
208 elif ln conf$$.file conf$$ 2>/dev/null; then
209 as_ln_s=ln
210 else
211 as_ln_s='cp -p'
212 fi
213 rm -f conf$$ conf$$.exe conf$$.file
214
215 if mkdir -p . 2>/dev/null; then
216 as_mkdir_p=:
217 else
218 as_mkdir_p=false
219 fi
220
221 as_executable_p="test -f"
222
223 # Sed expression to map a string onto a valid CPP name.
224 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
225
226 # Sed expression to map a string onto a valid variable name.
227 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
228
229
230 # IFS
231 # We need space, tab and new line, in precisely that order.
232 as_nl='
233 '
234 IFS=" $as_nl"
235
236 # CDPATH.
237 $as_unset CDPATH
238
239
240 # Name of the host.
241 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
242 # so uname gets run too.
243 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
244
245 exec 6>&1
246
247 #
248 # Initializations.
249 #
250 ac_default_prefix=/usr/local
251 ac_config_libobj_dir=.
252 cross_compiling=no
253 subdirs=
254 MFLAGS=
255 MAKEFLAGS=
256 SHELL=${CONFIG_SHELL-/bin/sh}
257
258 # Maximum number of lines to put in a shell here document.
259 # This variable seems obsolete. It should probably be removed, and
260 # only ac_max_sed_lines should be used.
261 : ${ac_max_here_lines=38}
262
263 # Identity of this package.
264 PACKAGE_NAME=
265 PACKAGE_TARNAME=
266 PACKAGE_VERSION=
267 PACKAGE_STRING=
268 PACKAGE_BUGREPORT=
269
270 ac_unique_file="src/eggdrop.h"
271 ac_default_prefix=\${HOME}/eggdrop
272 # Factoring default headers for most tests.
273 ac_includes_default="\
274 #include <stdio.h>
275 #if HAVE_SYS_TYPES_H
276 # include <sys/types.h>
277 #endif
278 #if HAVE_SYS_STAT_H
279 # include <sys/stat.h>
280 #endif
281 #if STDC_HEADERS
282 # include <stdlib.h>
283 # include <stddef.h>
284 #else
285 # if HAVE_STDLIB_H
286 # include <stdlib.h>
287 # endif
288 #endif
289 #if HAVE_STRING_H
290 # if !STDC_HEADERS && HAVE_MEMORY_H
291 # include <memory.h>
292 # endif
293 # include <string.h>
294 #endif
295 #if HAVE_STRINGS_H
296 # include <strings.h>
297 #endif
298 #if HAVE_INTTYPES_H
299 # include <inttypes.h>
300 #else
301 # if HAVE_STDINT_H
302 # include <stdint.h>
303 # endif
304 #endif
305 #if HAVE_UNISTD_H
306 # include <unistd.h>
307 #endif"
308
309 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS egg_ac_parameters CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP SET_MAKE RANLIB ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S STRIP AWK BASENAME UNAME MOD_LD MOD_CC MOD_STRIP SHLIB_LD SHLIB_CC SHLIB_STRIP DEFAULT_MAKE MOD_EXT ENABLEIPV6 EGGEXEC TCLLIB TCLLIBFN TCLINC TCLINCFN TCL_REQS TCL_LIBS EGGVERSION DEST MOD_UPDIR LIBOBJS LTLIBOBJS'
310 ac_subst_files=''
311
312 # Initialize some variables set by options.
313 ac_init_help=
314 ac_init_version=false
315 # The variables have the same names as the options, with
316 # dashes changed to underlines.
317 cache_file=/dev/null
318 exec_prefix=NONE
319 no_create=
320 no_recursion=
321 prefix=NONE
322 program_prefix=NONE
323 program_suffix=NONE
324 program_transform_name=s,x,x,
325 silent=
326 site=
327 srcdir=
328 verbose=
329 x_includes=NONE
330 x_libraries=NONE
331
332 # Installation directory options.
333 # These are left unexpanded so users can "make install exec_prefix=/foo"
334 # and all the variables that are supposed to be based on exec_prefix
335 # by default will actually change.
336 # Use braces instead of parens because sh, perl, etc. also accept them.
337 bindir='${exec_prefix}/bin'
338 sbindir='${exec_prefix}/sbin'
339 libexecdir='${exec_prefix}/libexec'
340 datadir='${prefix}/share'
341 sysconfdir='${prefix}/etc'
342 sharedstatedir='${prefix}/com'
343 localstatedir='${prefix}/var'
344 libdir='${exec_prefix}/lib'
345 includedir='${prefix}/include'
346 oldincludedir='/usr/include'
347 infodir='${prefix}/info'
348 mandir='${prefix}/man'
349
350 ac_prev=
351 for ac_option
352 do
353 # If the previous option needs an argument, assign it.
354 if test -n "$ac_prev"; then
355 eval "$ac_prev=\$ac_option"
356 ac_prev=
357 continue
358 fi
359
360 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
361
362 # Accept the important Cygnus configure options, so we can diagnose typos.
363
364 case $ac_option in
365
366 -bindir | --bindir | --bindi | --bind | --bin | --bi)
367 ac_prev=bindir ;;
368 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
369 bindir=$ac_optarg ;;
370
371 -build | --build | --buil | --bui | --bu)
372 ac_prev=build_alias ;;
373 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
374 build_alias=$ac_optarg ;;
375
376 -cache-file | --cache-file | --cache-fil | --cache-fi \
377 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
378 ac_prev=cache_file ;;
379 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
380 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
381 cache_file=$ac_optarg ;;
382
383 --config-cache | -C)
384 cache_file=config.cache ;;
385
386 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
387 ac_prev=datadir ;;
388 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
389 | --da=*)
390 datadir=$ac_optarg ;;
391
392 -disable-* | --disable-*)
393 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
394 # Reject names that are not valid shell variable names.
395 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
396 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
397 { (exit 1); exit 1; }; }
398 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
399 eval "enable_$ac_feature=no" ;;
400
401 -enable-* | --enable-*)
402 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
403 # Reject names that are not valid shell variable names.
404 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
405 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
406 { (exit 1); exit 1; }; }
407 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
408 case $ac_option in
409 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
410 *) ac_optarg=yes ;;
411 esac
412 eval "enable_$ac_feature='$ac_optarg'" ;;
413
414 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
415 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
416 | --exec | --exe | --ex)
417 ac_prev=exec_prefix ;;
418 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
419 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
420 | --exec=* | --exe=* | --ex=*)
421 exec_prefix=$ac_optarg ;;
422
423 -gas | --gas | --ga | --g)
424 # Obsolete; use --with-gas.
425 with_gas=yes ;;
426
427 -help | --help | --hel | --he | -h)
428 ac_init_help=long ;;
429 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
430 ac_init_help=recursive ;;
431 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
432 ac_init_help=short ;;
433
434 -host | --host | --hos | --ho)
435 ac_prev=host_alias ;;
436 -host=* | --host=* | --hos=* | --ho=*)
437 host_alias=$ac_optarg ;;
438
439 -includedir | --includedir | --includedi | --included | --include \
440 | --includ | --inclu | --incl | --inc)
441 ac_prev=includedir ;;
442 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
443 | --includ=* | --inclu=* | --incl=* | --inc=*)
444 includedir=$ac_optarg ;;
445
446 -infodir | --infodir | --infodi | --infod | --info | --inf)
447 ac_prev=infodir ;;
448 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
449 infodir=$ac_optarg ;;
450
451 -libdir | --libdir | --libdi | --libd)
452 ac_prev=libdir ;;
453 -libdir=* | --libdir=* | --libdi=* | --libd=*)
454 libdir=$ac_optarg ;;
455
456 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
457 | --libexe | --libex | --libe)
458 ac_prev=libexecdir ;;
459 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
460 | --libexe=* | --libex=* | --libe=*)
461 libexecdir=$ac_optarg ;;
462
463 -localstatedir | --localstatedir | --localstatedi | --localstated \
464 | --localstate | --localstat | --localsta | --localst \
465 | --locals | --local | --loca | --loc | --lo)
466 ac_prev=localstatedir ;;
467 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
468 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
469 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
470 localstatedir=$ac_optarg ;;
471
472 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
473 ac_prev=mandir ;;
474 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
475 mandir=$ac_optarg ;;
476
477 -nfp | --nfp | --nf)
478 # Obsolete; use --without-fp.
479 with_fp=no ;;
480
481 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
482 | --no-cr | --no-c | -n)
483 no_create=yes ;;
484
485 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
486 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
487 no_recursion=yes ;;
488
489 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
490 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
491 | --oldin | --oldi | --old | --ol | --o)
492 ac_prev=oldincludedir ;;
493 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
494 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
495 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
496 oldincludedir=$ac_optarg ;;
497
498 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
499 ac_prev=prefix ;;
500 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
501 prefix=$ac_optarg ;;
502
503 -program-prefix | --program-prefix | --program-prefi | --program-pref \
504 | --program-pre | --program-pr | --program-p)
505 ac_prev=program_prefix ;;
506 -program-prefix=* | --program-prefix=* | --program-prefi=* \
507 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
508 program_prefix=$ac_optarg ;;
509
510 -program-suffix | --program-suffix | --program-suffi | --program-suff \
511 | --program-suf | --program-su | --program-s)
512 ac_prev=program_suffix ;;
513 -program-suffix=* | --program-suffix=* | --program-suffi=* \
514 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
515 program_suffix=$ac_optarg ;;
516
517 -program-transform-name | --program-transform-name \
518 | --program-transform-nam | --program-transform-na \
519 | --program-transform-n | --program-transform- \
520 | --program-transform | --program-transfor \
521 | --program-transfo | --program-transf \
522 | --program-trans | --program-tran \
523 | --progr-tra | --program-tr | --program-t)
524 ac_prev=program_transform_name ;;
525 -program-transform-name=* | --program-transform-name=* \
526 | --program-transform-nam=* | --program-transform-na=* \
527 | --program-transform-n=* | --program-transform-=* \
528 | --program-transform=* | --program-transfor=* \
529 | --program-transfo=* | --program-transf=* \
530 | --program-trans=* | --program-tran=* \
531 | --progr-tra=* | --program-tr=* | --program-t=*)
532 program_transform_name=$ac_optarg ;;
533
534 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
535 | -silent | --silent | --silen | --sile | --sil)
536 silent=yes ;;
537
538 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
539 ac_prev=sbindir ;;
540 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
541 | --sbi=* | --sb=*)
542 sbindir=$ac_optarg ;;
543
544 -sharedstatedir | --sharedstatedir | --sharedstatedi \
545 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
546 | --sharedst | --shareds | --shared | --share | --shar \
547 | --sha | --sh)
548 ac_prev=sharedstatedir ;;
549 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
550 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
551 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
552 | --sha=* | --sh=*)
553 sharedstatedir=$ac_optarg ;;
554
555 -site | --site | --sit)
556 ac_prev=site ;;
557 -site=* | --site=* | --sit=*)
558 site=$ac_optarg ;;
559
560 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
561 ac_prev=srcdir ;;
562 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
563 srcdir=$ac_optarg ;;
564
565 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
566 | --syscon | --sysco | --sysc | --sys | --sy)
567 ac_prev=sysconfdir ;;
568 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
569 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
570 sysconfdir=$ac_optarg ;;
571
572 -target | --target | --targe | --targ | --tar | --ta | --t)
573 ac_prev=target_alias ;;
574 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
575 target_alias=$ac_optarg ;;
576
577 -v | -verbose | --verbose | --verbos | --verbo | --verb)
578 verbose=yes ;;
579
580 -version | --version | --versio | --versi | --vers | -V)
581 ac_init_version=: ;;
582
583 -with-* | --with-*)
584 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
585 # Reject names that are not valid shell variable names.
586 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
587 { echo "$as_me: error: invalid package name: $ac_package" >&2
588 { (exit 1); exit 1; }; }
589 ac_package=`echo $ac_package| sed 's/-/_/g'`
590 case $ac_option in
591 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
592 *) ac_optarg=yes ;;
593 esac
594 eval "with_$ac_package='$ac_optarg'" ;;
595
596 -without-* | --without-*)
597 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
598 # Reject names that are not valid shell variable names.
599 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
600 { echo "$as_me: error: invalid package name: $ac_package" >&2
601 { (exit 1); exit 1; }; }
602 ac_package=`echo $ac_package | sed 's/-/_/g'`
603 eval "with_$ac_package=no" ;;
604
605 --x)
606 # Obsolete; use --with-x.
607 with_x=yes ;;
608
609 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
610 | --x-incl | --x-inc | --x-in | --x-i)
611 ac_prev=x_includes ;;
612 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
613 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
614 x_includes=$ac_optarg ;;
615
616 -x-libraries | --x-libraries | --x-librarie | --x-librari \
617 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
618 ac_prev=x_libraries ;;
619 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
620 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
621 x_libraries=$ac_optarg ;;
622
623 -*) { echo "$as_me: error: unrecognized option: $ac_option
624 Try \`$0 --help' for more information." >&2
625 { (exit 1); exit 1; }; }
626 ;;
627
628 *=*)
629 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
630 # Reject names that are not valid shell variable names.
631 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
632 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
633 { (exit 1); exit 1; }; }
634 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
635 eval "$ac_envvar='$ac_optarg'"
636 export $ac_envvar ;;
637
638 *)
639 # FIXME: should be removed in autoconf 3.0.
640 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
641 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
642 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
643 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
644 ;;
645
646 esac
647 done
648
649 if test -n "$ac_prev"; then
650 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
651 { echo "$as_me: error: missing argument to $ac_option" >&2
652 { (exit 1); exit 1; }; }
653 fi
654
655 # Be sure to have absolute paths.
656 for ac_var in exec_prefix prefix
657 do
658 eval ac_val=$`echo $ac_var`
659 case $ac_val in
660 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
663 esac
664 done
665
666 # Be sure to have absolute paths.
667 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
668 localstatedir libdir includedir oldincludedir infodir mandir
669 do
670 eval ac_val=$`echo $ac_var`
671 case $ac_val in
672 [\\/$]* | ?:[\\/]* ) ;;
673 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
674 { (exit 1); exit 1; }; };;
675 esac
676 done
677
678 # There might be people who depend on the old broken behavior: `$host'
679 # used to hold the argument of --host etc.
680 # FIXME: To remove some day.
681 build=$build_alias
682 host=$host_alias
683 target=$target_alias
684
685 # FIXME: To remove some day.
686 if test "x$host_alias" != x; then
687 if test "x$build_alias" = x; then
688 cross_compiling=maybe
689 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
690 If a cross compiler is detected then cross compile mode will be used." >&2
691 elif test "x$build_alias" != "x$host_alias"; then
692 cross_compiling=yes
693 fi
694 fi
695
696 ac_tool_prefix=
697 test -n "$host_alias" && ac_tool_prefix=$host_alias-
698
699 test "$silent" = yes && exec 6>/dev/null
700
701
702 # Find the source files, if location was not specified.
703 if test -z "$srcdir"; then
704 ac_srcdir_defaulted=yes
705 # Try the directory containing this script, then its parent.
706 ac_confdir=`(dirname "$0") 2>/dev/null ||
707 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
708 X"$0" : 'X\(//\)[^/]' \| \
709 X"$0" : 'X\(//\)$' \| \
710 X"$0" : 'X\(/\)' \| \
711 . : '\(.\)' 2>/dev/null ||
712 echo X"$0" |
713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
714 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
715 /^X\(\/\/\)$/{ s//\1/; q; }
716 /^X\(\/\).*/{ s//\1/; q; }
717 s/.*/./; q'`
718 srcdir=$ac_confdir
719 if test ! -r $srcdir/$ac_unique_file; then
720 srcdir=..
721 fi
722 else
723 ac_srcdir_defaulted=no
724 fi
725 if test ! -r $srcdir/$ac_unique_file; then
726 if test "$ac_srcdir_defaulted" = yes; then
727 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
728 { (exit 1); exit 1; }; }
729 else
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
731 { (exit 1); exit 1; }; }
732 fi
733 fi
734 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
735 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
736 { (exit 1); exit 1; }; }
737 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
738 ac_env_build_alias_set=${build_alias+set}
739 ac_env_build_alias_value=$build_alias
740 ac_cv_env_build_alias_set=${build_alias+set}
741 ac_cv_env_build_alias_value=$build_alias
742 ac_env_host_alias_set=${host_alias+set}
743 ac_env_host_alias_value=$host_alias
744 ac_cv_env_host_alias_set=${host_alias+set}
745 ac_cv_env_host_alias_value=$host_alias
746 ac_env_target_alias_set=${target_alias+set}
747 ac_env_target_alias_value=$target_alias
748 ac_cv_env_target_alias_set=${target_alias+set}
749 ac_cv_env_target_alias_value=$target_alias
750 ac_env_CC_set=${CC+set}
751 ac_env_CC_value=$CC
752 ac_cv_env_CC_set=${CC+set}
753 ac_cv_env_CC_value=$CC
754 ac_env_CFLAGS_set=${CFLAGS+set}
755 ac_env_CFLAGS_value=$CFLAGS
756 ac_cv_env_CFLAGS_set=${CFLAGS+set}
757 ac_cv_env_CFLAGS_value=$CFLAGS
758 ac_env_LDFLAGS_set=${LDFLAGS+set}
759 ac_env_LDFLAGS_value=$LDFLAGS
760 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_cv_env_LDFLAGS_value=$LDFLAGS
762 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
763 ac_env_CPPFLAGS_value=$CPPFLAGS
764 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
766 ac_env_CPP_set=${CPP+set}
767 ac_env_CPP_value=$CPP
768 ac_cv_env_CPP_set=${CPP+set}
769 ac_cv_env_CPP_value=$CPP
770
771 #
772 # Report the --help message.
773 #
774 if test "$ac_init_help" = "long"; then
775 # Omit some internal or obsolete options to make the list less imposing.
776 # This message is too long to be a string in the A/UX 3.1 sh.
777 cat <<_ACEOF
778 \`configure' configures this package to adapt to many kinds of systems.
779
780 Usage: $0 [OPTION]... [VAR=VALUE]...
781
782 To assign environment variables (e.g., CC, CFLAGS...), specify them as
783 VAR=VALUE. See below for descriptions of some of the useful variables.
784
785 Defaults for the options are specified in brackets.
786
787 Configuration:
788 -h, --help display this help and exit
789 --help=short display options specific to this package
790 --help=recursive display the short help of all the included packages
791 -V, --version display version information and exit
792 -q, --quiet, --silent do not print \`checking...' messages
793 --cache-file=FILE cache test results in FILE [disabled]
794 -C, --config-cache alias for \`--cache-file=config.cache'
795 -n, --no-create do not create output files
796 --srcdir=DIR find the sources in DIR [configure dir or \`..']
797
798 _ACEOF
799
800 cat <<_ACEOF
801 Installation directories:
802 --prefix=PREFIX install architecture-independent files in PREFIX
803 [$ac_default_prefix]
804 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
805 [PREFIX]
806
807 By default, \`make install' will install all the files in
808 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
809 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
810 for instance \`--prefix=\$HOME'.
811
812 For better control, use the options below.
813
814 Fine tuning of the installation directories:
815 --bindir=DIR user executables [EPREFIX/bin]
816 --sbindir=DIR system admin executables [EPREFIX/sbin]
817 --libexecdir=DIR program executables [EPREFIX/libexec]
818 --datadir=DIR read-only architecture-independent data [PREFIX/share]
819 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
820 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
821 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
822 --libdir=DIR object code libraries [EPREFIX/lib]
823 --includedir=DIR C header files [PREFIX/include]
824 --oldincludedir=DIR C header files for non-gcc [/usr/include]
825 --infodir=DIR info documentation [PREFIX/info]
826 --mandir=DIR man documentation [PREFIX/man]
827 _ACEOF
828
829 cat <<\_ACEOF
830 _ACEOF
831 fi
832
833 if test -n "$ac_init_help"; then
834
835 cat <<\_ACEOF
836
837 Optional Features:
838 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
839 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
840 --disable-cc-optimization disable -O2 cflag
841 --enable-ipv6 enable IPv6 support
842 --disable-tcl-threads Disable threaded Tcl support if detected. (Ignore this
843 option unless you know what you are doing)
844
845 Optional Packages:
846 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
847 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
848 --with-tcllib=PATH full path to Tcl library
849 --with-tclinc=PATH full path to Tcl header
850
851 Some influential environment variables:
852 CC C compiler command
853 CFLAGS C compiler flags
854 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
855 nonstandard directory <lib dir>
856 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
857 headers in a nonstandard directory <include dir>
858 CPP C preprocessor
859
860 Use these variables to override the choices made by `configure' or to help
861 it to find libraries and programs with nonstandard names/locations.
862
863 _ACEOF
864 fi
865
866 if test "$ac_init_help" = "recursive"; then
867 # If there are subdirs, report their specific --help.
868 ac_popdir=`pwd`
869 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
870 test -d $ac_dir || continue
871 ac_builddir=.
872
873 if test "$ac_dir" != .; then
874 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
875 # A "../" for each directory in $ac_dir_suffix.
876 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
877 else
878 ac_dir_suffix= ac_top_builddir=
879 fi
880
881 case $srcdir in
882 .) # No --srcdir option. We are building in place.
883 ac_srcdir=.
884 if test -z "$ac_top_builddir"; then
885 ac_top_srcdir=.
886 else
887 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
888 fi ;;
889 [\\/]* | ?:[\\/]* ) # Absolute path.
890 ac_srcdir=$srcdir$ac_dir_suffix;
891 ac_top_srcdir=$srcdir ;;
892 *) # Relative path.
893 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
894 ac_top_srcdir=$ac_top_builddir$srcdir ;;
895 esac
896 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
897 # absolute.
898 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
899 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
900 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
901 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
902
903 cd $ac_dir
904 # Check for guested configure; otherwise get Cygnus style configure.
905 if test -f $ac_srcdir/configure.gnu; then
906 echo
907 $SHELL $ac_srcdir/configure.gnu --help=recursive
908 elif test -f $ac_srcdir/configure; then
909 echo
910 $SHELL $ac_srcdir/configure --help=recursive
911 elif test -f $ac_srcdir/configure.ac ||
912 test -f $ac_srcdir/configure.in; then
913 echo
914 $ac_configure --help
915 else
916 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
917 fi
918 cd $ac_popdir
919 done
920 fi
921
922 test -n "$ac_init_help" && exit 0
923 if $ac_init_version; then
924 cat <<\_ACEOF
925
926 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
927 Free Software Foundation, Inc.
928 This configure script is free software; the Free Software Foundation
929 gives unlimited permission to copy, distribute and modify it.
930 _ACEOF
931 exit 0
932 fi
933 exec 5>config.log
934 cat >&5 <<_ACEOF
935 This file contains any messages produced by compilers while
936 running configure, to aid debugging if configure makes a mistake.
937
938 It was created by $as_me, which was
939 generated by GNU Autoconf 2.54. Invocation command line was
940
941 $ $0 $@
942
943 _ACEOF
944 {
945 cat <<_ASUNAME
946 ## --------- ##
947 ## Platform. ##
948 ## --------- ##
949
950 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
951 uname -m = `(uname -m) 2>/dev/null || echo unknown`
952 uname -r = `(uname -r) 2>/dev/null || echo unknown`
953 uname -s = `(uname -s) 2>/dev/null || echo unknown`
954 uname -v = `(uname -v) 2>/dev/null || echo unknown`
955
956 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
957 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
958
959 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
960 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
961 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
962 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
963 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
964 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
965 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
966
967 _ASUNAME
968
969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
970 for as_dir in $PATH
971 do
972 IFS=$as_save_IFS
973 test -z "$as_dir" && as_dir=.
974 echo "PATH: $as_dir"
975 done
976
977 } >&5
978
979 cat >&5 <<_ACEOF
980
981
982 ## ----------- ##
983 ## Core tests. ##
984 ## ----------- ##
985
986 _ACEOF
987
988
989 # Keep a trace of the command line.
990 # Strip out --no-create and --no-recursion so they do not pile up.
991 # Also quote any args containing shell meta-characters.
992 ac_configure_args=
993 ac_sep=
994 for ac_arg
995 do
996 case $ac_arg in
997 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
998 | --no-cr | --no-c | -n ) continue ;;
999 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1000 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1001 continue ;;
1002 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1003 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1004 esac
1005 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1006 # Get rid of the leading space.
1007 ac_sep=" "
1008 done
1009
1010 # When interrupted or exit'd, cleanup temporary files, and complete
1011 # config.log. We remove comments because anyway the quotes in there
1012 # would cause problems or look ugly.
1013 # WARNING: Be sure not to use single quotes in there, as some shells,
1014 # such as our DU 5.0 friend, will then `close' the trap.
1015 trap 'exit_status=$?
1016 # Save into config.log some information that might help in debugging.
1017 {
1018 echo
1019
1020 cat <<\_ASBOX
1021 ## ---------------- ##
1022 ## Cache variables. ##
1023 ## ---------------- ##
1024 _ASBOX
1025 echo
1026 # The following way of writing the cache mishandles newlines in values,
1027 {
1028 (set) 2>&1 |
1029 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1030 *ac_space=\ *)
1031 sed -n \
1032 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1033 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1034 ;;
1035 *)
1036 sed -n \
1037 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1038 ;;
1039 esac;
1040 }
1041 echo
1042
1043 cat <<\_ASBOX
1044 ## ----------------- ##
1045 ## Output variables. ##
1046 ## ----------------- ##
1047 _ASBOX
1048 echo
1049 for ac_var in $ac_subst_vars
1050 do
1051 eval ac_val=$`echo $ac_var`
1052 echo "$ac_var='"'"'$ac_val'"'"'"
1053 done | sort
1054 echo
1055
1056 if test -n "$ac_subst_files"; then
1057 cat <<\_ASBOX
1058 ## ------------- ##
1059 ## Output files. ##
1060 ## ------------- ##
1061 _ASBOX
1062 echo
1063 for ac_var in $ac_subst_files
1064 do
1065 eval ac_val=$`echo $ac_var`
1066 echo "$ac_var='"'"'$ac_val'"'"'"
1067 done | sort
1068 echo
1069 fi
1070
1071 if test -s confdefs.h; then
1072 cat <<\_ASBOX
1073 ## ----------- ##
1074 ## confdefs.h. ##
1075 ## ----------- ##
1076 _ASBOX
1077 echo
1078 sed "/^$/d" confdefs.h | sort
1079 echo
1080 fi
1081 test "$ac_signal" != 0 &&
1082 echo "$as_me: caught signal $ac_signal"
1083 echo "$as_me: exit $exit_status"
1084 } >&5
1085 rm -f core core.* *.core &&
1086 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1087 exit $exit_status
1088 ' 0
1089 for ac_signal in 1 2 13 15; do
1090 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1091 done
1092 ac_signal=0
1093
1094 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1095 rm -rf conftest* confdefs.h
1096 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1097 echo >confdefs.h
1098
1099 # Predefined preprocessor variables.
1100
1101 cat >>confdefs.h <<_ACEOF
1102 #define PACKAGE_NAME "$PACKAGE_NAME"
1103 _ACEOF
1104
1105
1106 cat >>confdefs.h <<_ACEOF
1107 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1108 _ACEOF
1109
1110
1111 cat >>confdefs.h <<_ACEOF
1112 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1113 _ACEOF
1114
1115
1116 cat >>confdefs.h <<_ACEOF
1117 #define PACKAGE_STRING "$PACKAGE_STRING"
1118 _ACEOF
1119
1120
1121 cat >>confdefs.h <<_ACEOF
1122 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1123 _ACEOF
1124
1125
1126 # Let the site file select an alternate cache file if it wants to.
1127 # Prefer explicitly selected file to automatically selected ones.
1128 if test -z "$CONFIG_SITE"; then
1129 if test "x$prefix" != xNONE; then
1130 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1131 else
1132 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1133 fi
1134 fi
1135 for ac_site_file in $CONFIG_SITE; do
1136 if test -r "$ac_site_file"; then
1137 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1138 echo "$as_me: loading site script $ac_site_file" >&6;}
1139 sed 's/^/| /' "$ac_site_file" >&5
1140 . "$ac_site_file"
1141 fi
1142 done
1143
1144 if test -r "$cache_file"; then
1145 # Some versions of bash will fail to source /dev/null (special
1146 # files actually), so we avoid doing that.
1147 if test -f "$cache_file"; then
1148 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1149 echo "$as_me: loading cache $cache_file" >&6;}
1150 case $cache_file in
1151 [\\/]* | ?:[\\/]* ) . $cache_file;;
1152 *) . ./$cache_file;;
1153 esac
1154 fi
1155 else
1156 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1157 echo "$as_me: creating cache $cache_file" >&6;}
1158 >$cache_file
1159 fi
1160
1161 # Check that the precious variables saved in the cache have kept the same
1162 # value.
1163 ac_cache_corrupted=false
1164 for ac_var in `(set) 2>&1 |
1165 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1166 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1167 eval ac_new_set=\$ac_env_${ac_var}_set
1168 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1169 eval ac_new_val="\$ac_env_${ac_var}_value"
1170 case $ac_old_set,$ac_new_set in
1171 set,)
1172 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1173 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1174 ac_cache_corrupted=: ;;
1175 ,set)
1176 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1177 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1178 ac_cache_corrupted=: ;;
1179 ,);;
1180 *)
1181 if test "x$ac_old_val" != "x$ac_new_val"; then
1182 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1183 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1184 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1185 echo "$as_me: former value: $ac_old_val" >&2;}
1186 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1187 echo "$as_me: current value: $ac_new_val" >&2;}
1188 ac_cache_corrupted=:
1189 fi;;
1190 esac
1191 # Pass precious variables to config.status.
1192 if test "$ac_new_set" = set; then
1193 case $ac_new_val in
1194 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1195 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1196 *) ac_arg=$ac_var=$ac_new_val ;;
1197 esac
1198 case " $ac_configure_args " in
1199 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1200 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1201 esac
1202 fi
1203 done
1204 if $ac_cache_corrupted; then
1205 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1206 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1207 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1208 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1209 { (exit 1); exit 1; }; }
1210 fi
1211
1212 ac_ext=c
1213 ac_cpp='$CPP $CPPFLAGS'
1214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236 ac_aux_dir=
1237 for ac_dir in misc $srcdir/misc; do
1238 if test -f $ac_dir/install-sh; then
1239 ac_aux_dir=$ac_dir
1240 ac_install_sh="$ac_aux_dir/install-sh -c"
1241 break
1242 elif test -f $ac_dir/install.sh; then
1243 ac_aux_dir=$ac_dir
1244 ac_install_sh="$ac_aux_dir/install.sh -c"
1245 break
1246 elif test -f $ac_dir/shtool; then
1247 ac_aux_dir=$ac_dir
1248 ac_install_sh="$ac_aux_dir/shtool install -c"
1249 break
1250 fi
1251 done
1252 if test -z "$ac_aux_dir"; then
1253 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in misc $srcdir/misc" >&5
1254 echo "$as_me: error: cannot find install-sh or install.sh in misc $srcdir/misc" >&2;}
1255 { (exit 1); exit 1; }; }
1256 fi
1257 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1258 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1259 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1260
1261
1262 ac_config_headers="$ac_config_headers config.h"
1263
1264
1265 echo "$as_me:$LINENO: result: " >&5
1266 echo "${ECHO_T}" >&6
1267 echo "$as_me:$LINENO: result: This is Eggdrop's GNU configure script." >&5
1268 echo "${ECHO_T}This is Eggdrop's GNU configure script." >&6
1269 echo "$as_me:$LINENO: result: It's going to run a bunch of strange tests to hopefully" >&5
1270 echo "${ECHO_T}It's going to run a bunch of strange tests to hopefully" >&6
1271 echo "$as_me:$LINENO: result: make your compile work without much twiddling." >&5
1272 echo "${ECHO_T}make your compile work without much twiddling." >&6
1273 echo "$as_me:$LINENO: result: " >&5
1274 echo "${ECHO_T}" >&6
1275
1276 # Remove --cache-file and --srcdir arguments so they do not pile up.
1277 egg_ac_parameters=
1278 ac_prev=
1279 for ac_arg in $ac_configure_args; do
1280 if test -n "$ac_prev"; then
1281 ac_prev=
1282 continue
1283 fi
1284 case $ac_arg in
1285 -cache-file | --cache-file | --cache-fil | --cache-fi \
1286 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1287 ac_prev=cache_file ;;
1288 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1289 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
1290 | --c=*)
1291 ;;
1292 --config-cache | -C)
1293 ;;
1294 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1295 ac_prev=srcdir ;;
1296 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1297 ;;
1298 *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
1299 esac
1300 done
1301
1302
1303
1304 # Setup build environment
1305 ac_ext=c
1306 ac_cpp='$CPP $CPPFLAGS'
1307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1310 if test -n "$ac_tool_prefix"; then
1311 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1312 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1313 echo "$as_me:$LINENO: checking for $ac_word" >&5
1314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1315 if test "${ac_cv_prog_CC+set}" = set; then
1316 echo $ECHO_N "(cached) $ECHO_C" >&6
1317 else
1318 if test -n "$CC"; then
1319 ac_cv_prog_CC="$CC" # Let the user override the test.
1320 else
1321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1322 for as_dir in $PATH
1323 do
1324 IFS=$as_save_IFS
1325 test -z "$as_dir" && as_dir=.
1326 for ac_exec_ext in '' $ac_executable_extensions; do
1327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1328 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1330 break 2
1331 fi
1332 done
1333 done
1334
1335 fi
1336 fi
1337 CC=$ac_cv_prog_CC
1338 if test -n "$CC"; then
1339 echo "$as_me:$LINENO: result: $CC" >&5
1340 echo "${ECHO_T}$CC" >&6
1341 else
1342 echo "$as_me:$LINENO: result: no" >&5
1343 echo "${ECHO_T}no" >&6
1344 fi
1345
1346 fi
1347 if test -z "$ac_cv_prog_CC"; then
1348 ac_ct_CC=$CC
1349 # Extract the first word of "gcc", so it can be a program name with args.
1350 set dummy gcc; ac_word=$2
1351 echo "$as_me:$LINENO: checking for $ac_word" >&5
1352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1353 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1354 echo $ECHO_N "(cached) $ECHO_C" >&6
1355 else
1356 if test -n "$ac_ct_CC"; then
1357 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1358 else
1359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1360 for as_dir in $PATH
1361 do
1362 IFS=$as_save_IFS
1363 test -z "$as_dir" && as_dir=.
1364 for ac_exec_ext in '' $ac_executable_extensions; do
1365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1366 ac_cv_prog_ac_ct_CC="gcc"
1367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1368 break 2
1369 fi
1370 done
1371 done
1372
1373 fi
1374 fi
1375 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1376 if test -n "$ac_ct_CC"; then
1377 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1378 echo "${ECHO_T}$ac_ct_CC" >&6
1379 else
1380 echo "$as_me:$LINENO: result: no" >&5
1381 echo "${ECHO_T}no" >&6
1382 fi
1383
1384 CC=$ac_ct_CC
1385 else
1386 CC="$ac_cv_prog_CC"
1387 fi
1388
1389 if test -z "$CC"; then
1390 if test -n "$ac_tool_prefix"; then
1391 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1392 set dummy ${ac_tool_prefix}cc; ac_word=$2
1393 echo "$as_me:$LINENO: checking for $ac_word" >&5
1394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1395 if test "${ac_cv_prog_CC+set}" = set; then
1396 echo $ECHO_N "(cached) $ECHO_C" >&6
1397 else
1398 if test -n "$CC"; then
1399 ac_cv_prog_CC="$CC" # Let the user override the test.
1400 else
1401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1402 for as_dir in $PATH
1403 do
1404 IFS=$as_save_IFS
1405 test -z "$as_dir" && as_dir=.
1406 for ac_exec_ext in '' $ac_executable_extensions; do
1407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1408 ac_cv_prog_CC="${ac_tool_prefix}cc"
1409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1410 break 2
1411 fi
1412 done
1413 done
1414
1415 fi
1416 fi
1417 CC=$ac_cv_prog_CC
1418 if test -n "$CC"; then
1419 echo "$as_me:$LINENO: result: $CC" >&5
1420 echo "${ECHO_T}$CC" >&6
1421 else
1422 echo "$as_me:$LINENO: result: no" >&5
1423 echo "${ECHO_T}no" >&6
1424 fi
1425
1426 fi
1427 if test -z "$ac_cv_prog_CC"; then
1428 ac_ct_CC=$CC
1429 # Extract the first word of "cc", so it can be a program name with args.
1430 set dummy cc; ac_word=$2
1431 echo "$as_me:$LINENO: checking for $ac_word" >&5
1432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1433 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1434 echo $ECHO_N "(cached) $ECHO_C" >&6
1435 else
1436 if test -n "$ac_ct_CC"; then
1437 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1438 else
1439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1440 for as_dir in $PATH
1441 do
1442 IFS=$as_save_IFS
1443 test -z "$as_dir" && as_dir=.
1444 for ac_exec_ext in '' $ac_executable_extensions; do
1445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1446 ac_cv_prog_ac_ct_CC="cc"
1447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1448 break 2
1449 fi
1450 done
1451 done
1452
1453 fi
1454 fi
1455 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1456 if test -n "$ac_ct_CC"; then
1457 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1458 echo "${ECHO_T}$ac_ct_CC" >&6
1459 else
1460 echo "$as_me:$LINENO: result: no" >&5
1461 echo "${ECHO_T}no" >&6
1462 fi
1463
1464 CC=$ac_ct_CC
1465 else
1466 CC="$ac_cv_prog_CC"
1467 fi
1468
1469 fi
1470 if test -z "$CC"; then
1471 # Extract the first word of "cc", so it can be a program name with args.
1472 set dummy cc; ac_word=$2
1473 echo "$as_me:$LINENO: checking for $ac_word" >&5
1474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1475 if test "${ac_cv_prog_CC+set}" = set; then
1476 echo $ECHO_N "(cached) $ECHO_C" >&6
1477 else
1478 if test -n "$CC"; then
1479 ac_cv_prog_CC="$CC" # Let the user override the test.
1480 else
1481 ac_prog_rejected=no
1482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1483 for as_dir in $PATH
1484 do
1485 IFS=$as_save_IFS
1486 test -z "$as_dir" && as_dir=.
1487 for ac_exec_ext in '' $ac_executable_extensions; do
1488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1489 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1490 ac_prog_rejected=yes
1491 continue
1492 fi
1493 ac_cv_prog_CC="cc"
1494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1495 break 2
1496 fi
1497 done
1498 done
1499
1500 if test $ac_prog_rejected = yes; then
1501 # We found a bogon in the path, so make sure we never use it.
1502 set dummy $ac_cv_prog_CC
1503 shift
1504 if test $# != 0; then
1505 # We chose a different compiler from the bogus one.
1506 # However, it has the same basename, so the bogon will be chosen
1507 # first if we set CC to just the basename; use the full file name.
1508 shift
1509 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1510 fi
1511 fi
1512 fi
1513 fi
1514 CC=$ac_cv_prog_CC
1515 if test -n "$CC"; then
1516 echo "$as_me:$LINENO: result: $CC" >&5
1517 echo "${ECHO_T}$CC" >&6
1518 else
1519 echo "$as_me:$LINENO: result: no" >&5
1520 echo "${ECHO_T}no" >&6
1521 fi
1522
1523 fi
1524 if test -z "$CC"; then
1525 if test -n "$ac_tool_prefix"; then
1526 for ac_prog in cl
1527 do
1528 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1529 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1530 echo "$as_me:$LINENO: checking for $ac_word" >&5
1531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1532 if test "${ac_cv_prog_CC+set}" = set; then
1533 echo $ECHO_N "(cached) $ECHO_C" >&6
1534 else
1535 if test -n "$CC"; then
1536 ac_cv_prog_CC="$CC" # Let the user override the test.
1537 else
1538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1539 for as_dir in $PATH
1540 do
1541 IFS=$as_save_IFS
1542 test -z "$as_dir" && as_dir=.
1543 for ac_exec_ext in '' $ac_executable_extensions; do
1544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1545 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1547 break 2
1548 fi
1549 done
1550 done
1551
1552 fi
1553 fi
1554 CC=$ac_cv_prog_CC
1555 if test -n "$CC"; then
1556 echo "$as_me:$LINENO: result: $CC" >&5
1557 echo "${ECHO_T}$CC" >&6
1558 else
1559 echo "$as_me:$LINENO: result: no" >&5
1560 echo "${ECHO_T}no" >&6
1561 fi
1562
1563 test -n "$CC" && break
1564 done
1565 fi
1566 if test -z "$CC"; then
1567 ac_ct_CC=$CC
1568 for ac_prog in cl
1569 do
1570 # Extract the first word of "$ac_prog", so it can be a program name with args.
1571 set dummy $ac_prog; ac_word=$2
1572 echo "$as_me:$LINENO: checking for $ac_word" >&5
1573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1574 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1575 echo $ECHO_N "(cached) $ECHO_C" >&6
1576 else
1577 if test -n "$ac_ct_CC"; then
1578 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1579 else
1580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1581 for as_dir in $PATH
1582 do
1583 IFS=$as_save_IFS
1584 test -z "$as_dir" && as_dir=.
1585 for ac_exec_ext in '' $ac_executable_extensions; do
1586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1587 ac_cv_prog_ac_ct_CC="$ac_prog"
1588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1589 break 2
1590 fi
1591 done
1592 done
1593
1594 fi
1595 fi
1596 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1597 if test -n "$ac_ct_CC"; then
1598 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1599 echo "${ECHO_T}$ac_ct_CC" >&6
1600 else
1601 echo "$as_me:$LINENO: result: no" >&5
1602 echo "${ECHO_T}no" >&6
1603 fi
1604
1605 test -n "$ac_ct_CC" && break
1606 done
1607
1608 CC=$ac_ct_CC
1609 fi
1610
1611 fi
1612
1613
1614 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1615 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1616 { (exit 1); exit 1; }; }
1617
1618 # Provide some information about the compiler.
1619 echo "$as_me:$LINENO:" \
1620 "checking for C compiler version" >&5
1621 ac_compiler=`set X $ac_compile; echo $2`
1622 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1623 (eval $ac_compiler --version </dev/null >&5) 2>&5
1624 ac_status=$?
1625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1626 (exit $ac_status); }
1627 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1628 (eval $ac_compiler -v </dev/null >&5) 2>&5
1629 ac_status=$?
1630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1631 (exit $ac_status); }
1632 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1633 (eval $ac_compiler -V </dev/null >&5) 2>&5
1634 ac_status=$?
1635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1636 (exit $ac_status); }
1637
1638 cat >conftest.$ac_ext <<_ACEOF
1639 #line $LINENO "configure"
1640 #include "confdefs.h"
1641
1642 int
1643 main ()
1644 {
1645
1646 ;
1647 return 0;
1648 }
1649 _ACEOF
1650 ac_clean_files_save=$ac_clean_files
1651 ac_clean_files="$ac_clean_files a.out a.exe"
1652 # Try to create an executable without -o first, disregard a.out.
1653 # It will help us diagnose broken compilers, and finding out an intuition
1654 # of exeext.
1655 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1656 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1657 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1658 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1659 (eval $ac_link_default) 2>&5
1660 ac_status=$?
1661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1662 (exit $ac_status); }; then
1663 # Find the output, starting from the most likely. This scheme is
1664 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1665 # resort.
1666
1667 # Be careful to initialize this variable, since it used to be cached.
1668 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1669 ac_cv_exeext=
1670 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
1671 test -f "$ac_file" || continue
1672 case $ac_file in
1673 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1674 a.out ) # We found the default executable, but exeext='' is most
1675 # certainly right.
1676 break;;
1677 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1678 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1679 export ac_cv_exeext
1680 break;;
1681 * ) break;;
1682 esac
1683 done
1684 else
1685 echo "$as_me: failed program was:" >&5
1686 cat conftest.$ac_ext >&5
1687 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1688 check \`config.log' for details." >&5
1689 echo "$as_me: error: C compiler cannot create executables
1690 check \`config.log' for details." >&2;}
1691 { (exit 77); exit 77; }; }
1692 fi
1693
1694 ac_exeext=$ac_cv_exeext
1695 echo "$as_me:$LINENO: result: $ac_file" >&5
1696 echo "${ECHO_T}$ac_file" >&6
1697
1698 # Check the compiler produces executables we can run. If not, either
1699 # the compiler is broken, or we cross compile.
1700 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1701 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1702 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1703 # If not cross compiling, check that we can run a simple program.
1704 if test "$cross_compiling" != yes; then
1705 if { ac_try='./$ac_file'
1706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1707 (eval $ac_try) 2>&5
1708 ac_status=$?
1709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1710 (exit $ac_status); }; }; then
1711 cross_compiling=no
1712 else
1713 if test "$cross_compiling" = maybe; then
1714 cross_compiling=yes
1715 else
1716 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1717 If you meant to cross compile, use \`--host'." >&5
1718 echo "$as_me: error: cannot run C compiled programs.
1719 If you meant to cross compile, use \`--host'." >&2;}
1720 { (exit 1); exit 1; }; }
1721 fi
1722 fi
1723 fi
1724 echo "$as_me:$LINENO: result: yes" >&5
1725 echo "${ECHO_T}yes" >&6
1726
1727 rm -f a.out a.exe conftest$ac_cv_exeext
1728 ac_clean_files=$ac_clean_files_save
1729 # Check the compiler produces executables we can run. If not, either
1730 # the compiler is broken, or we cross compile.
1731 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1732 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1733 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1734 echo "${ECHO_T}$cross_compiling" >&6
1735
1736 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1737 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1739 (eval $ac_link) 2>&5
1740 ac_status=$?
1741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1742 (exit $ac_status); }; then
1743 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1744 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1745 # work properly (i.e., refer to `conftest.exe'), while it won't with
1746 # `rm'.
1747 for ac_file in conftest.exe conftest conftest.*; do
1748 test -f "$ac_file" || continue
1749 case $ac_file in
1750 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1751 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1752 export ac_cv_exeext
1753 break;;
1754 * ) break;;
1755 esac
1756 done
1757 else
1758 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1759 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1760 { (exit 1); exit 1; }; }
1761 fi
1762
1763 rm -f conftest$ac_cv_exeext
1764 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1765 echo "${ECHO_T}$ac_cv_exeext" >&6
1766
1767 rm -f conftest.$ac_ext
1768 EXEEXT=$ac_cv_exeext
1769 ac_exeext=$EXEEXT
1770 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1771 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1772 if test "${ac_cv_objext+set}" = set; then
1773 echo $ECHO_N "(cached) $ECHO_C" >&6
1774 else
1775 cat >conftest.$ac_ext <<_ACEOF
1776 #line $LINENO "configure"
1777 #include "confdefs.h"
1778
1779 int
1780 main ()
1781 {
1782
1783 ;
1784 return 0;
1785 }
1786 _ACEOF
1787 rm -f conftest.o conftest.obj
1788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1789 (eval $ac_compile) 2>&5
1790 ac_status=$?
1791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792 (exit $ac_status); }; then
1793 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1794 case $ac_file in
1795 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1796 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1797 break;;
1798 esac
1799 done
1800 else
1801 echo "$as_me: failed program was:" >&5
1802 cat conftest.$ac_ext >&5
1803 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1804 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1805 { (exit 1); exit 1; }; }
1806 fi
1807
1808 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1809 fi
1810 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1811 echo "${ECHO_T}$ac_cv_objext" >&6
1812 OBJEXT=$ac_cv_objext
1813 ac_objext=$OBJEXT
1814 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1815 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1816 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1817 echo $ECHO_N "(cached) $ECHO_C" >&6
1818 else
1819 cat >conftest.$ac_ext <<_ACEOF
1820 #line $LINENO "configure"
1821 #include "confdefs.h"
1822
1823 int
1824 main ()
1825 {
1826 #ifndef __GNUC__
1827 choke me
1828 #endif
1829
1830 ;
1831 return 0;
1832 }
1833 _ACEOF
1834 rm -f conftest.$ac_objext
1835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1836 (eval $ac_compile) 2>&5
1837 ac_status=$?
1838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1839 (exit $ac_status); } &&
1840 { ac_try='test -s conftest.$ac_objext'
1841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1842 (eval $ac_try) 2>&5
1843 ac_status=$?
1844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1845 (exit $ac_status); }; }; then
1846 ac_compiler_gnu=yes
1847 else
1848 echo "$as_me: failed program was:" >&5
1849 cat conftest.$ac_ext >&5
1850 ac_compiler_gnu=no
1851 fi
1852 rm -f conftest.$ac_objext conftest.$ac_ext
1853 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1854
1855 fi
1856 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1857 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1858 GCC=`test $ac_compiler_gnu = yes && echo yes`
1859 ac_test_CFLAGS=${CFLAGS+set}
1860 ac_save_CFLAGS=$CFLAGS
1861 CFLAGS="-g"
1862 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1863 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1864 if test "${ac_cv_prog_cc_g+set}" = set; then
1865 echo $ECHO_N "(cached) $ECHO_C" >&6
1866 else
1867 cat >conftest.$ac_ext <<_ACEOF
1868 #line $LINENO "configure"
1869 #include "confdefs.h"
1870
1871 int
1872 main ()
1873 {
1874
1875 ;
1876 return 0;
1877 }
1878 _ACEOF
1879 rm -f conftest.$ac_objext
1880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1881 (eval $ac_compile) 2>&5
1882 ac_status=$?
1883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1884 (exit $ac_status); } &&
1885 { ac_try='test -s conftest.$ac_objext'
1886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1887 (eval $ac_try) 2>&5
1888 ac_status=$?
1889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1890 (exit $ac_status); }; }; then
1891 ac_cv_prog_cc_g=yes
1892 else
1893 echo "$as_me: failed program was:" >&5
1894 cat conftest.$ac_ext >&5
1895 ac_cv_prog_cc_g=no
1896 fi
1897 rm -f conftest.$ac_objext conftest.$ac_ext
1898 fi
1899 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1900 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1901 if test "$ac_test_CFLAGS" = set; then
1902 CFLAGS=$ac_save_CFLAGS
1903 elif test $ac_cv_prog_cc_g = yes; then
1904 if test "$GCC" = yes; then
1905 CFLAGS="-g -O2"
1906 else
1907 CFLAGS="-g"
1908 fi
1909 else
1910 if test "$GCC" = yes; then
1911 CFLAGS="-O2"
1912 else
1913 CFLAGS=
1914 fi
1915 fi
1916 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1917 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1918 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921 ac_cv_prog_cc_stdc=no
1922 ac_save_CC=$CC
1923 cat >conftest.$ac_ext <<_ACEOF
1924 #line $LINENO "configure"
1925 #include "confdefs.h"
1926 #include <stdarg.h>
1927 #include <stdio.h>
1928 #include <sys/types.h>
1929 #include <sys/stat.h>
1930 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1931 struct buf { int x; };
1932 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1933 static char *e (p, i)
1934 char **p;
1935 int i;
1936 {
1937 return p[i];
1938 }
1939 static char *f (char * (*g) (char **, int), char **p, ...)
1940 {
1941 char *s;
1942 va_list v;
1943 va_start (v,p);
1944 s = g (p, va_arg (v,int));
1945 va_end (v);
1946 return s;
1947 }
1948 int test (int i, double x);
1949 struct s1 {int (*f) (int a);};
1950 struct s2 {int (*f) (double a);};
1951 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1952 int argc;
1953 char **argv;
1954 int
1955 main ()
1956 {
1957 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1958 ;
1959 return 0;
1960 }
1961 _ACEOF
1962 # Don't try gcc -ansi; that turns off useful extensions and
1963 # breaks some systems' header files.
1964 # AIX -qlanglvl=ansi
1965 # Ultrix and OSF/1 -std1
1966 # HP-UX 10.20 and later -Ae
1967 # HP-UX older versions -Aa -D_HPUX_SOURCE
1968 # SVR4 -Xc -D__EXTENSIONS__
1969 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1970 do
1971 CC="$ac_save_CC $ac_arg"
1972 rm -f conftest.$ac_objext
1973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1974 (eval $ac_compile) 2>&5
1975 ac_status=$?
1976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977 (exit $ac_status); } &&
1978 { ac_try='test -s conftest.$ac_objext'
1979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1980 (eval $ac_try) 2>&5
1981 ac_status=$?
1982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983 (exit $ac_status); }; }; then
1984 ac_cv_prog_cc_stdc=$ac_arg
1985 break
1986 else
1987 echo "$as_me: failed program was:" >&5
1988 cat conftest.$ac_ext >&5
1989 fi
1990 rm -f conftest.$ac_objext
1991 done
1992 rm -f conftest.$ac_ext conftest.$ac_objext
1993 CC=$ac_save_CC
1994
1995 fi
1996
1997 case "x$ac_cv_prog_cc_stdc" in
1998 x|xno)
1999 echo "$as_me:$LINENO: result: none needed" >&5
2000 echo "${ECHO_T}none needed" >&6 ;;
2001 *)
2002 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2003 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2004 CC="$CC $ac_cv_prog_cc_stdc" ;;
2005 esac
2006
2007 # Some people use a C++ compiler to compile C. Since we use `exit',
2008 # in C++ we need to declare it. In case someone uses the same compiler
2009 # for both compiling C and C++ we need to have the C++ compiler decide
2010 # the declaration of exit, since it's the most demanding environment.
2011 cat >conftest.$ac_ext <<_ACEOF
2012 #ifndef __cplusplus
2013 choke me
2014 #endif
2015 _ACEOF
2016 rm -f conftest.$ac_objext
2017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2018 (eval $ac_compile) 2>&5
2019 ac_status=$?
2020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2021 (exit $ac_status); } &&
2022 { ac_try='test -s conftest.$ac_objext'
2023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2024 (eval $ac_try) 2>&5
2025 ac_status=$?
2026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027 (exit $ac_status); }; }; then
2028 for ac_declaration in \
2029 ''\
2030 '#include <stdlib.h>' \
2031 'extern "C" void std::exit (int) throw (); using std::exit;' \
2032 'extern "C" void std::exit (int); using std::exit;' \
2033 'extern "C" void exit (int) throw ();' \
2034 'extern "C" void exit (int);' \
2035 'void exit (int);'
2036 do
2037 cat >conftest.$ac_ext <<_ACEOF
2038 #line $LINENO "configure"
2039 #include "confdefs.h"
2040 #include <stdlib.h>
2041 $ac_declaration
2042 int
2043 main ()
2044 {
2045 exit (42);
2046 ;
2047 return 0;
2048 }
2049 _ACEOF
2050 rm -f conftest.$ac_objext
2051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2052 (eval $ac_compile) 2>&5
2053 ac_status=$?
2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055 (exit $ac_status); } &&
2056 { ac_try='test -s conftest.$ac_objext'
2057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2058 (eval $ac_try) 2>&5
2059 ac_status=$?
2060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061 (exit $ac_status); }; }; then
2062 :
2063 else
2064 echo "$as_me: failed program was:" >&5
2065 cat conftest.$ac_ext >&5
2066 continue
2067 fi
2068 rm -f conftest.$ac_objext conftest.$ac_ext
2069 cat >conftest.$ac_ext <<_ACEOF
2070 #line $LINENO "configure"
2071 #include "confdefs.h"
2072 $ac_declaration
2073 int
2074 main ()
2075 {
2076 exit (42);
2077 ;
2078 return 0;
2079 }
2080 _ACEOF
2081 rm -f conftest.$ac_objext
2082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2083 (eval $ac_compile) 2>&5
2084 ac_status=$?
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); } &&
2087 { ac_try='test -s conftest.$ac_objext'
2088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2089 (eval $ac_try) 2>&5
2090 ac_status=$?
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }; }; then
2093 break
2094 else
2095 echo "$as_me: failed program was:" >&5
2096 cat conftest.$ac_ext >&5
2097 fi
2098 rm -f conftest.$ac_objext conftest.$ac_ext
2099 done
2100 rm -f conftest*
2101 if test -n "$ac_declaration"; then
2102 echo '#ifdef __cplusplus' >>confdefs.h
2103 echo $ac_declaration >>confdefs.h
2104 echo '#endif' >>confdefs.h
2105 fi
2106
2107 else
2108 echo "$as_me: failed program was:" >&5
2109 cat conftest.$ac_ext >&5
2110 fi
2111 rm -f conftest.$ac_objext conftest.$ac_ext
2112 ac_ext=c
2113 ac_cpp='$CPP $CPPFLAGS'
2114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2117
2118 if test "${cross_compiling-x}" = "x"
2119 then
2120 cat << 'EOF' >&2
2121 configure: error:
2122
2123 This system does not appear to have a working C compiler.
2124 A working C compiler is required to compile Eggdrop.
2125
2126 EOF
2127 exit 1
2128 fi
2129
2130
2131 # Crazy machines
2132
2133 ac_ext=c
2134 ac_cpp='$CPP $CPPFLAGS'
2135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2138 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2139 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2140 # On Suns, sometimes $CPP names a directory.
2141 if test -n "$CPP" && test -d "$CPP"; then
2142 CPP=
2143 fi
2144 if test -z "$CPP"; then
2145 if test "${ac_cv_prog_CPP+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
2147 else
2148 # Double quotes because CPP needs to be expanded
2149 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2150 do
2151 ac_preproc_ok=false
2152 for ac_c_preproc_warn_flag in '' yes
2153 do
2154 # Use a header file that comes with gcc, so configuring glibc
2155 # with a fresh cross-compiler works.
2156 # On the NeXT, cc -E runs the code through the compiler's parser,
2157 # not just through cpp. "Syntax error" is here to catch this case.
2158 cat >conftest.$ac_ext <<_ACEOF
2159 #line $LINENO "configure"
2160 #include "confdefs.h"
2161 #include <assert.h>
2162 Syntax error
2163 _ACEOF
2164 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2166 ac_status=$?
2167 grep -v '^ *+' conftest.er1 >conftest.err
2168 rm -f conftest.er1
2169 cat conftest.err >&5
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); } >/dev/null; then
2172 if test -s conftest.err; then
2173 ac_cpp_err=$ac_c_preproc_warn_flag
2174 else
2175 ac_cpp_err=
2176 fi
2177 else
2178 ac_cpp_err=yes
2179 fi
2180 if test -z "$ac_cpp_err"; then
2181 :
2182 else
2183 echo "$as_me: failed program was:" >&5
2184 cat conftest.$ac_ext >&5
2185 # Broken: fails on valid input.
2186 continue
2187 fi
2188 rm -f conftest.err conftest.$ac_ext
2189
2190 # OK, works on sane cases. Now check whether non-existent headers
2191 # can be detected and how.
2192 cat >conftest.$ac_ext <<_ACEOF
2193 #line $LINENO "configure"
2194 #include "confdefs.h"
2195 #include <ac_nonexistent.h>
2196 _ACEOF
2197 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2198 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2199 ac_status=$?
2200 grep -v '^ *+' conftest.er1 >conftest.err
2201 rm -f conftest.er1
2202 cat conftest.err >&5
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); } >/dev/null; then
2205 if test -s conftest.err; then
2206 ac_cpp_err=$ac_c_preproc_warn_flag
2207 else
2208 ac_cpp_err=
2209 fi
2210 else
2211 ac_cpp_err=yes
2212 fi
2213 if test -z "$ac_cpp_err"; then
2214 # Broken: success on invalid input.
2215 continue
2216 else
2217 echo "$as_me: failed program was:" >&5
2218 cat conftest.$ac_ext >&5
2219 # Passes both tests.
2220 ac_preproc_ok=:
2221 break
2222 fi
2223 rm -f conftest.err conftest.$ac_ext
2224
2225 done
2226 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2227 rm -f conftest.err conftest.$ac_ext
2228 if $ac_preproc_ok; then
2229 break
2230 fi
2231
2232 done
2233 ac_cv_prog_CPP=$CPP
2234
2235 fi
2236 CPP=$ac_cv_prog_CPP
2237 else
2238 ac_cv_prog_CPP=$CPP
2239 fi
2240 echo "$as_me:$LINENO: result: $CPP" >&5
2241 echo "${ECHO_T}$CPP" >&6
2242 ac_preproc_ok=false
2243 for ac_c_preproc_warn_flag in '' yes
2244 do
2245 # Use a header file that comes with gcc, so configuring glibc
2246 # with a fresh cross-compiler works.
2247 # On the NeXT, cc -E runs the code through the compiler's parser,
2248 # not just through cpp. "Syntax error" is here to catch this case.
2249 cat >conftest.$ac_ext <<_ACEOF
2250 #line $LINENO "configure"
2251 #include "confdefs.h"
2252 #include <assert.h>
2253 Syntax error
2254 _ACEOF
2255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2256 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2257 ac_status=$?
2258 grep -v '^ *+' conftest.er1 >conftest.err
2259 rm -f conftest.er1
2260 cat conftest.err >&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); } >/dev/null; then
2263 if test -s conftest.err; then
2264 ac_cpp_err=$ac_c_preproc_warn_flag
2265 else
2266 ac_cpp_err=
2267 fi
2268 else
2269 ac_cpp_err=yes
2270 fi
2271 if test -z "$ac_cpp_err"; then
2272 :
2273 else
2274 echo "$as_me: failed program was:" >&5
2275 cat conftest.$ac_ext >&5
2276 # Broken: fails on valid input.
2277 continue
2278 fi
2279 rm -f conftest.err conftest.$ac_ext
2280
2281 # OK, works on sane cases. Now check whether non-existent headers
2282 # can be detected and how.
2283 cat >conftest.$ac_ext <<_ACEOF
2284 #line $LINENO "configure"
2285 #include "confdefs.h"
2286 #include <ac_nonexistent.h>
2287 _ACEOF
2288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2290 ac_status=$?
2291 grep -v '^ *+' conftest.er1 >conftest.err
2292 rm -f conftest.er1
2293 cat conftest.err >&5
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); } >/dev/null; then
2296 if test -s conftest.err; then
2297 ac_cpp_err=$ac_c_preproc_warn_flag
2298 else
2299 ac_cpp_err=
2300 fi
2301 else
2302 ac_cpp_err=yes
2303 fi
2304 if test -z "$ac_cpp_err"; then
2305 # Broken: success on invalid input.
2306 continue
2307 else
2308 echo "$as_me: failed program was:" >&5
2309 cat conftest.$ac_ext >&5
2310 # Passes both tests.
2311 ac_preproc_ok=:
2312 break
2313 fi
2314 rm -f conftest.err conftest.$ac_ext
2315
2316 done
2317 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2318 rm -f conftest.err conftest.$ac_ext
2319 if $ac_preproc_ok; then
2320 :
2321 else
2322 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2323 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2324 { (exit 1); exit 1; }; }
2325 fi
2326
2327 ac_ext=c
2328 ac_cpp='$CPP $CPPFLAGS'
2329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2332
2333
2334 echo "$as_me:$LINENO: checking for egrep" >&5
2335 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2336 if test "${ac_cv_prog_egrep+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
2338 else
2339 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2340 then ac_cv_prog_egrep='grep -E'
2341 else ac_cv_prog_egrep='egrep'
2342 fi
2343 fi
2344 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2345 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2346 EGREP=$ac_cv_prog_egrep
2347
2348
2349
2350 echo "$as_me:$LINENO: checking for AIX" >&5
2351 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2352 cat >conftest.$ac_ext <<_ACEOF
2353 #line $LINENO "configure"
2354 #include "confdefs.h"
2355 #ifdef _AIX
2356 yes
2357 #endif
2358
2359 _ACEOF
2360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2361 $EGREP "yes" >/dev/null 2>&1; then
2362 echo "$as_me:$LINENO: result: yes" >&5
2363 echo "${ECHO_T}yes" >&6
2364 cat >>confdefs.h <<\_ACEOF
2365 #define _ALL_SOURCE 1
2366 _ACEOF
2367
2368 else
2369 echo "$as_me:$LINENO: result: no" >&5
2370 echo "${ECHO_T}no" >&6
2371 fi
2372 rm -f conftest*
2373
2374
2375 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2376 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2377 if test "${ac_cv_search_strerror+set}" = set; then
2378 echo $ECHO_N "(cached) $ECHO_C" >&6
2379 else
2380 ac_func_search_save_LIBS=$LIBS
2381 ac_cv_search_strerror=no
2382 cat >conftest.$ac_ext <<_ACEOF
2383 #line $LINENO "configure"
2384 #include "confdefs.h"
2385
2386 /* Override any gcc2 internal prototype to avoid an error. */
2387 #ifdef __cplusplus
2388 extern "C"
2389 #endif
2390 /* We use char because int might match the return type of a gcc2
2391 builtin and then its argument prototype would still apply. */
2392 char strerror ();
2393 int
2394 main ()
2395 {
2396 strerror ();
2397 ;
2398 return 0;
2399 }
2400 _ACEOF
2401 rm -f conftest.$ac_objext conftest$ac_exeext
2402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2403 (eval $ac_link) 2>&5
2404 ac_status=$?
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); } &&
2407 { ac_try='test -s conftest$ac_exeext'
2408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409 (eval $ac_try) 2>&5
2410 ac_status=$?
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; }; then
2413 ac_cv_search_strerror="none required"
2414 else
2415 echo "$as_me: failed program was:" >&5
2416 cat conftest.$ac_ext >&5
2417 fi
2418 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2419 if test "$ac_cv_search_strerror" = no; then
2420 for ac_lib in cposix; do
2421 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2422 cat >conftest.$ac_ext <<_ACEOF
2423 #line $LINENO "configure"
2424 #include "confdefs.h"
2425
2426 /* Override any gcc2 internal prototype to avoid an error. */
2427 #ifdef __cplusplus
2428 extern "C"
2429 #endif
2430 /* We use char because int might match the return type of a gcc2
2431 builtin and then its argument prototype would still apply. */
2432 char strerror ();
2433 int
2434 main ()
2435 {
2436 strerror ();
2437 ;
2438 return 0;
2439 }
2440 _ACEOF
2441 rm -f conftest.$ac_objext conftest$ac_exeext
2442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2443 (eval $ac_link) 2>&5
2444 ac_status=$?
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); } &&
2447 { ac_try='test -s conftest$ac_exeext'
2448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449 (eval $ac_try) 2>&5
2450 ac_status=$?
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); }; }; then
2453 ac_cv_search_strerror="-l$ac_lib"
2454 break
2455 else
2456 echo "$as_me: failed program was:" >&5
2457 cat conftest.$ac_ext >&5
2458 fi
2459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2460 done
2461 fi
2462 LIBS=$ac_func_search_save_LIBS
2463 fi
2464 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2465 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2466 if test "$ac_cv_search_strerror" != no; then
2467 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2468
2469 fi
2470
2471 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2472 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2473 if test "${ac_cv_header_stdc+set}" = set; then
2474 echo $ECHO_N "(cached) $ECHO_C" >&6
2475 else
2476 cat >conftest.$ac_ext <<_ACEOF
2477 #line $LINENO "configure"
2478 #include "confdefs.h"
2479 #include <stdlib.h>
2480 #include <stdarg.h>
2481 #include <string.h>
2482 #include <float.h>
2483
2484 _ACEOF
2485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2487 ac_status=$?
2488 grep -v '^ *+' conftest.er1 >conftest.err
2489 rm -f conftest.er1
2490 cat conftest.err >&5
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); } >/dev/null; then
2493 if test -s conftest.err; then
2494 ac_cpp_err=$ac_c_preproc_warn_flag
2495 else
2496 ac_cpp_err=
2497 fi
2498 else
2499 ac_cpp_err=yes
2500 fi
2501 if test -z "$ac_cpp_err"; then
2502 ac_cv_header_stdc=yes
2503 else
2504 echo "$as_me: failed program was:" >&5
2505 cat conftest.$ac_ext >&5
2506 ac_cv_header_stdc=no
2507 fi
2508 rm -f conftest.err conftest.$ac_ext
2509
2510 if test $ac_cv_header_stdc = yes; then
2511 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2512 cat >conftest.$ac_ext <<_ACEOF
2513 #line $LINENO "configure"
2514 #include "confdefs.h"
2515 #include <string.h>
2516
2517 _ACEOF
2518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2519 $EGREP "memchr" >/dev/null 2>&1; then
2520 :
2521 else
2522 ac_cv_header_stdc=no
2523 fi
2524 rm -f conftest*
2525
2526 fi
2527
2528 if test $ac_cv_header_stdc = yes; then
2529 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2530 cat >conftest.$ac_ext <<_ACEOF
2531 #line $LINENO "configure"
2532 #include "confdefs.h"
2533 #include <stdlib.h>
2534
2535 _ACEOF
2536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2537 $EGREP "free" >/dev/null 2>&1; then
2538 :
2539 else
2540 ac_cv_header_stdc=no
2541 fi
2542 rm -f conftest*
2543
2544 fi
2545
2546 if test $ac_cv_header_stdc = yes; then
2547 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2548 if test "$cross_compiling" = yes; then
2549 :
2550 else
2551 cat >conftest.$ac_ext <<_ACEOF
2552 #line $LINENO "configure"
2553 #include "confdefs.h"
2554 #include <ctype.h>
2555 #if ((' ' & 0x0FF) == 0x020)
2556 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2557 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2558 #else
2559 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2560 || ('j' <= (c) && (c) <= 'r') \
2561 || ('s' <= (c) && (c) <= 'z'))
2562 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2563 #endif
2564
2565 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2566 int
2567 main ()
2568 {
2569 int i;
2570 for (i = 0; i < 256; i++)
2571 if (XOR (islower (i), ISLOWER (i))
2572 || toupper (i) != TOUPPER (i))
2573 exit(2);
2574 exit (0);
2575 }
2576 _ACEOF
2577 rm -f conftest$ac_exeext
2578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2579 (eval $ac_link) 2>&5
2580 ac_status=$?
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584 (eval $ac_try) 2>&5
2585 ac_status=$?
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; }; then
2588 :
2589 else
2590 echo "$as_me: program exited with status $ac_status" >&5
2591 echo "$as_me: failed program was:" >&5
2592 cat conftest.$ac_ext >&5
2593 ( exit $ac_status )
2594 ac_cv_header_stdc=no
2595 fi
2596 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2597 fi
2598 fi
2599 fi
2600 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2601 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2602 if test $ac_cv_header_stdc = yes; then
2603
2604 cat >>confdefs.h <<\_ACEOF
2605 #define STDC_HEADERS 1
2606 _ACEOF
2607
2608 fi
2609
2610 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2621 inttypes.h stdint.h unistd.h
2622 do
2623 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2624 echo "$as_me:$LINENO: checking for $ac_header" >&5
2625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2627 echo $ECHO_N "(cached) $ECHO_C" >&6
2628 else
2629 cat >conftest.$ac_ext <<_ACEOF
2630 #line $LINENO "configure"
2631 #include "confdefs.h"
2632 $ac_includes_default
2633
2634 #include <$ac_header>
2635 _ACEOF
2636 rm -f conftest.$ac_objext
2637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2638 (eval $ac_compile) 2>&5
2639 ac_status=$?
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); } &&
2642 { ac_try='test -s conftest.$ac_objext'
2643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644 (eval $ac_try) 2>&5
2645 ac_status=$?
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); }; }; then
2648 eval "$as_ac_Header=yes"
2649 else
2650 echo "$as_me: failed program was:" >&5
2651 cat conftest.$ac_ext >&5
2652 eval "$as_ac_Header=no"
2653 fi
2654 rm -f conftest.$ac_objext conftest.$ac_ext
2655 fi
2656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2658 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2659 cat >>confdefs.h <<_ACEOF
2660 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2661 _ACEOF
2662
2663 fi
2664
2665 done
2666
2667
2668 if test "${ac_cv_header_minix_config_h+set}" = set; then
2669 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2670 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2671 if test "${ac_cv_header_minix_config_h+set}" = set; then
2672 echo