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

Contents of /eggdrop1.9/configure

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


Revision 1.41 - (show annotations) (download)
Mon Aug 7 10:09:16 2000 UTC (19 years, 2 months ago) by fabian
Branch: MAIN
CVS Tags: eggdrop105040
Changes since 1.40: +130 -90 lines
1.4 reync, Aug7 965641446

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