/[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.80 - (show annotations) (download)
Thu Aug 15 01:45:45 2002 UTC (17 years, 6 months ago) by wcc
Branch: MAIN
Changes since 1.79: +1081 -1588 lines
Forgot to run autoconf.

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