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

Contents of /eggdrop1.4/configure

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


Revision 1.57 - (show annotations) (download)
Mon Aug 7 16:23:43 2000 UTC (18 years, 4 months ago) by guppy
Branch: MAIN
CVS Tags: HEAD
Changes since 1.56: +142 -101 lines
fabian's patches

1 #! /bin/sh
2
3 # From configure.in Revision
4 # Guess values for system-dependent variables and create Makefiles.
5 # Generated automatically using autoconf version 2.13
6 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 #
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10
11 # Defaults:
12 ac_help=
13 ac_default_prefix=/usr/local
14 # Any additions from configure.in:
15 ac_default_prefix=\${HOME}/eggdrop
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=eggdrop.conf.dist
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
531
532
533 echo "$ac_t""" 1>&6
534 echo "$ac_t""This is eggdrop's GNU configure script." 1>&6
535 echo "$ac_t""It's going to run a bunch of strange tests to hopefully" 1>&6
536 echo "$ac_t""make your compile work without much twiddling." 1>&6
537 echo "$ac_t""" 1>&6
538
539
540 # Setup build environment
541 # Extract the first word of "gcc", so it can be a program name with args.
542 set dummy gcc; ac_word=$2
543 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
544 echo "configure:545: checking for $ac_word" >&5
545 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
546 echo $ac_n "(cached) $ac_c" 1>&6
547 else
548 if test -n "$CC"; then
549 ac_cv_prog_CC="$CC" # Let the user override the test.
550 else
551 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
552 ac_dummy="$PATH"
553 for ac_dir in $ac_dummy; do
554 test -z "$ac_dir" && ac_dir=.
555 if test -f $ac_dir/$ac_word; then
556 ac_cv_prog_CC="gcc"
557 break
558 fi
559 done
560 IFS="$ac_save_ifs"
561 fi
562 fi
563 CC="$ac_cv_prog_CC"
564 if test -n "$CC"; then
565 echo "$ac_t""$CC" 1>&6
566 else
567 echo "$ac_t""no" 1>&6
568 fi
569
570 if test -z "$CC"; then
571 # Extract the first word of "cc", so it can be a program name with args.
572 set dummy cc; ac_word=$2
573 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
574 echo "configure:575: checking for $ac_word" >&5
575 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
576 echo $ac_n "(cached) $ac_c" 1>&6
577 else
578 if test -n "$CC"; then
579 ac_cv_prog_CC="$CC" # Let the user override the test.
580 else
581 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
582 ac_prog_rejected=no
583 ac_dummy="$PATH"
584 for ac_dir in $ac_dummy; do
585 test -z "$ac_dir" && ac_dir=.
586 if test -f $ac_dir/$ac_word; then
587 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
588 ac_prog_rejected=yes
589 continue
590 fi
591 ac_cv_prog_CC="cc"
592 break
593 fi
594 done
595 IFS="$ac_save_ifs"
596 if test $ac_prog_rejected = yes; then
597 # We found a bogon in the path, so make sure we never use it.
598 set dummy $ac_cv_prog_CC
599 shift
600 if test $# -gt 0; then
601 # We chose a different compiler from the bogus one.
602 # However, it has the same basename, so the bogon will be chosen
603 # first if we set CC to just the basename; use the full file name.
604 shift
605 set dummy "$ac_dir/$ac_word" "$@"
606 shift
607 ac_cv_prog_CC="$@"
608 fi
609 fi
610 fi
611 fi
612 CC="$ac_cv_prog_CC"
613 if test -n "$CC"; then
614 echo "$ac_t""$CC" 1>&6
615 else
616 echo "$ac_t""no" 1>&6
617 fi
618
619 if test -z "$CC"; then
620 case "`uname -s`" in
621 *win32* | *WIN32*)
622 # Extract the first word of "cl", so it can be a program name with args.
623 set dummy cl; ac_word=$2
624 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
625 echo "configure:626: checking for $ac_word" >&5
626 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
627 echo $ac_n "(cached) $ac_c" 1>&6
628 else
629 if test -n "$CC"; then
630 ac_cv_prog_CC="$CC" # Let the user override the test.
631 else
632 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
633 ac_dummy="$PATH"
634 for ac_dir in $ac_dummy; do
635 test -z "$ac_dir" && ac_dir=.
636 if test -f $ac_dir/$ac_word; then
637 ac_cv_prog_CC="cl"
638 break
639 fi
640 done
641 IFS="$ac_save_ifs"
642 fi
643 fi
644 CC="$ac_cv_prog_CC"
645 if test -n "$CC"; then
646 echo "$ac_t""$CC" 1>&6
647 else
648 echo "$ac_t""no" 1>&6
649 fi
650 ;;
651 esac
652 fi
653 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
654 fi
655
656 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
657 echo "configure:658: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
658
659 ac_ext=c
660 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
661 ac_cpp='$CPP $CPPFLAGS'
662 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
663 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
664 cross_compiling=$ac_cv_prog_cc_cross
665
666 cat > conftest.$ac_ext << EOF
667
668 #line 669 "configure"
669 #include "confdefs.h"
670
671 main(){return(0);}
672 EOF
673 if { (eval echo configure:674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
674 ac_cv_prog_cc_works=yes
675 # If we can't run a trivial program, we are probably using a cross compiler.
676 if (./conftest; exit) 2>/dev/null; then
677 ac_cv_prog_cc_cross=no
678 else
679 ac_cv_prog_cc_cross=yes
680 fi
681 else
682 echo "configure: failed program was:" >&5
683 cat conftest.$ac_ext >&5
684 ac_cv_prog_cc_works=no
685 fi
686 rm -fr conftest*
687 ac_ext=c
688 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
689 ac_cpp='$CPP $CPPFLAGS'
690 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
691 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
692 cross_compiling=$ac_cv_prog_cc_cross
693
694 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
695 if test $ac_cv_prog_cc_works = no; then
696 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
697 fi
698 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
699 echo "configure:700: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
700 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
701 cross_compiling=$ac_cv_prog_cc_cross
702
703 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
704 echo "configure:705: checking whether we are using GNU C" >&5
705 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
706 echo $ac_n "(cached) $ac_c" 1>&6
707 else
708 cat > conftest.c <<EOF
709 #ifdef __GNUC__
710 yes;
711 #endif
712 EOF
713 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
714 ac_cv_prog_gcc=yes
715 else
716 ac_cv_prog_gcc=no
717 fi
718 fi
719
720 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
721
722 if test $ac_cv_prog_gcc = yes; then
723 GCC=yes
724 else
725 GCC=
726 fi
727
728 ac_test_CFLAGS="${CFLAGS+set}"
729 ac_save_CFLAGS="$CFLAGS"
730 CFLAGS=
731 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
732 echo "configure:733: checking whether ${CC-cc} accepts -g" >&5
733 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
734 echo $ac_n "(cached) $ac_c" 1>&6
735 else
736 echo 'void f(){}' > conftest.c
737 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
738 ac_cv_prog_cc_g=yes
739 else
740 ac_cv_prog_cc_g=no
741 fi
742 rm -f conftest*
743
744 fi
745
746 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
747 if test "$ac_test_CFLAGS" = set; then
748 CFLAGS="$ac_save_CFLAGS"
749 elif test $ac_cv_prog_cc_g = yes; then
750 if test "$GCC" = yes; then
751 CFLAGS="-g -O2"
752 else
753 CFLAGS="-g"
754 fi
755 else
756 if test "$GCC" = yes; then
757 CFLAGS="-O2"
758 else
759 CFLAGS=
760 fi
761 fi
762
763 if test "x${cross_compiling}" = "x"
764 then
765 cat << 'EOF' >&2
766 configure: error:
767
768 This system does not appear to have a working C compiler.
769 A working C compiler is required to compile eggdrop.
770
771 EOF
772 exit 1
773 fi
774
775
776 # Crazy machines
777 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
778 echo "configure:779: checking how to run the C preprocessor" >&5
779 # On Suns, sometimes $CPP names a directory.
780 if test -n "$CPP" && test -d "$CPP"; then
781 CPP=
782 fi
783 if test -z "$CPP"; then
784 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
785 echo $ac_n "(cached) $ac_c" 1>&6
786 else
787 # This must be in double quotes, not single quotes, because CPP may get
788 # substituted into the Makefile and "${CC-cc}" will confuse make.
789 CPP="${CC-cc} -E"
790 # On the NeXT, cc -E runs the code through the compiler's parser,
791 # not just through cpp.
792 cat > conftest.$ac_ext <<EOF
793 #line 794 "configure"
794 #include "confdefs.h"
795 #include <assert.h>
796 Syntax Error
797 EOF
798 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
799 { (eval echo configure:800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
800 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
801 if test -z "$ac_err"; then
802 :
803 else
804 echo "$ac_err" >&5
805 echo "configure: failed program was:" >&5
806 cat conftest.$ac_ext >&5
807 rm -rf conftest*
808 CPP="${CC-cc} -E -traditional-cpp"
809 cat > conftest.$ac_ext <<EOF
810 #line 811 "configure"
811 #include "confdefs.h"
812 #include <assert.h>
813 Syntax Error
814 EOF
815 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
816 { (eval echo configure:817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
817 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
818 if test -z "$ac_err"; then
819 :
820 else
821 echo "$ac_err" >&5
822 echo "configure: failed program was:" >&5
823 cat conftest.$ac_ext >&5
824 rm -rf conftest*
825 CPP="${CC-cc} -nologo -E"
826 cat > conftest.$ac_ext <<EOF
827 #line 828 "configure"
828 #include "confdefs.h"
829 #include <assert.h>
830 Syntax Error
831 EOF
832 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
833 { (eval echo configure:834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
834 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
835 if test -z "$ac_err"; then
836 :
837 else
838 echo "$ac_err" >&5
839 echo "configure: failed program was:" >&5
840 cat conftest.$ac_ext >&5
841 rm -rf conftest*
842 CPP=/lib/cpp
843 fi
844 rm -f conftest*
845 fi
846 rm -f conftest*
847 fi
848 rm -f conftest*
849 ac_cv_prog_CPP="$CPP"
850 fi
851 CPP="$ac_cv_prog_CPP"
852 else
853 ac_cv_prog_CPP="$CPP"
854 fi
855 echo "$ac_t""$CPP" 1>&6
856
857 echo $ac_n "checking for AIX""... $ac_c" 1>&6
858 echo "configure:859: checking for AIX" >&5
859 cat > conftest.$ac_ext <<EOF
860 #line 861 "configure"
861 #include "confdefs.h"
862 #ifdef _AIX
863 yes
864 #endif
865
866 EOF
867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
868 egrep "yes" >/dev/null 2>&1; then
869 rm -rf conftest*
870 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
871 #define _ALL_SOURCE 1
872 EOF
873
874 else
875 rm -rf conftest*
876 echo "$ac_t""no" 1>&6
877 fi
878 rm -f conftest*
879
880
881 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
882 echo "configure:883: checking for POSIXized ISC" >&5
883 if test -d /etc/conf/kconfig.d &&
884 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
885 then
886 echo "$ac_t""yes" 1>&6
887 ISC=yes # If later tests want to check for ISC.
888 cat >> confdefs.h <<\EOF
889 #define _POSIX_SOURCE 1
890 EOF
891
892 if test "$GCC" = yes; then
893 CC="$CC -posix"
894 else
895 CC="$CC -Xp"
896 fi
897 else
898 echo "$ac_t""no" 1>&6
899 ISC=
900 fi
901
902 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
903 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
904 echo "configure:905: checking for minix/config.h" >&5
905 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
906 echo $ac_n "(cached) $ac_c" 1>&6
907 else
908 cat > conftest.$ac_ext <<EOF
909 #line 910 "configure"
910 #include "confdefs.h"
911 #include <minix/config.h>
912 EOF
913 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
914 { (eval echo configure:915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
915 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
916 if test -z "$ac_err"; then
917 rm -rf conftest*
918 eval "ac_cv_header_$ac_safe=yes"
919 else
920 echo "$ac_err" >&5
921 echo "configure: failed program was:" >&5
922 cat conftest.$ac_ext >&5
923 rm -rf conftest*
924 eval "ac_cv_header_$ac_safe=no"
925 fi
926 rm -f conftest*
927 fi
928 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
929 echo "$ac_t""yes" 1>&6
930 MINIX=yes
931 else
932 echo "$ac_t""no" 1>&6
933 MINIX=
934 fi
935
936 if test "$MINIX" = yes; then
937 cat >> confdefs.h <<\EOF
938 #define _POSIX_SOURCE 1
939 EOF
940
941 cat >> confdefs.h <<\EOF
942 #define _POSIX_1_SOURCE 2
943 EOF
944
945 cat >> confdefs.h <<\EOF
946 #define _MINIX 1
947 EOF
948
949 fi
950
951
952 # Checks for programs
953 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
954 echo "configure:955: checking whether ${MAKE-make} sets \${MAKE}" >&5
955 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
956 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
957 echo $ac_n "(cached) $ac_c" 1>&6
958 else
959 cat > conftestmake <<\EOF
960 all:
961 @echo 'ac_maketemp="${MAKE}"'
962 EOF
963 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
964 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
965 if test -n "$ac_maketemp"; then
966 eval ac_cv_prog_make_${ac_make}_set=yes
967 else
968 eval ac_cv_prog_make_${ac_make}_set=no
969 fi
970 rm -f conftestmake
971 fi
972 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
973 echo "$ac_t""yes" 1>&6
974 SET_MAKE=
975 else
976 echo "$ac_t""no" 1>&6
977 SET_MAKE="MAKE=${MAKE-make}"
978 fi
979
980 # Extract the first word of "ranlib", so it can be a program name with args.
981 set dummy ranlib; ac_word=$2
982 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
983 echo "configure:984: checking for $ac_word" >&5
984 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
985 echo $ac_n "(cached) $ac_c" 1>&6
986 else
987 if test -n "$RANLIB"; then
988 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
989 else
990 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
991 ac_dummy="$PATH"
992 for ac_dir in $ac_dummy; do
993 test -z "$ac_dir" && ac_dir=.
994 if test -f $ac_dir/$ac_word; then
995 ac_cv_prog_RANLIB="ranlib"
996 break
997 fi
998 done
999 IFS="$ac_save_ifs"
1000 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1001 fi
1002 fi
1003 RANLIB="$ac_cv_prog_RANLIB"
1004 if test -n "$RANLIB"; then
1005 echo "$ac_t""$RANLIB" 1>&6
1006 else
1007 echo "$ac_t""no" 1>&6
1008 fi
1009
1010 ac_aux_dir=
1011 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1012 if test -f $ac_dir/install-sh; then
1013 ac_aux_dir=$ac_dir
1014 ac_install_sh="$ac_aux_dir/install-sh -c"
1015 break
1016 elif test -f $ac_dir/install.sh; then
1017 ac_aux_dir=$ac_dir
1018 ac_install_sh="$ac_aux_dir/install.sh -c"
1019 break
1020 fi
1021 done
1022 if test -z "$ac_aux_dir"; then
1023 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1024 fi
1025 ac_config_guess=$ac_aux_dir/config.guess
1026 ac_config_sub=$ac_aux_dir/config.sub
1027 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1028
1029 # Find a good install program. We prefer a C program (faster),
1030 # so one script is as good as another. But avoid the broken or
1031 # incompatible versions:
1032 # SysV /etc/install, /usr/sbin/install
1033 # SunOS /usr/etc/install
1034 # IRIX /sbin/install
1035 # AIX /bin/install
1036 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1037 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1038 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1039 # ./install, which can be erroneously created by make from ./install.sh.
1040 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1041 echo "configure:1042: checking for a BSD compatible install" >&5
1042 if test -z "$INSTALL"; then
1043 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1044 echo $ac_n "(cached) $ac_c" 1>&6
1045 else
1046 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1047 for ac_dir in $PATH; do
1048 # Account for people who put trailing slashes in PATH elements.
1049 case "$ac_dir/" in
1050 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1051 *)
1052 # OSF1 and SCO ODT 3.0 have their own names for install.
1053 # Don't use installbsd from OSF since it installs stuff as root
1054 # by default.
1055 for ac_prog in ginstall scoinst install; do
1056 if test -f $ac_dir/$ac_prog; then
1057 if test $ac_prog = install &&
1058 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1059 # AIX install. It has an incompatible calling convention.
1060 :
1061 else
1062 ac_cv_path_install="$ac_dir/$ac_prog -c"
1063 break 2
1064 fi
1065 fi
1066 done
1067 ;;
1068 esac
1069 done
1070 IFS="$ac_save_IFS"
1071
1072 fi
1073 if test "${ac_cv_path_install+set}" = set; then
1074 INSTALL="$ac_cv_path_install"
1075 else
1076 # As a last resort, use the slow shell script. We don't cache a
1077 # path for INSTALL within a source directory, because that will
1078 # break other packages using the cache if that directory is
1079 # removed, or if the path is relative.
1080 INSTALL="$ac_install_sh"
1081 fi
1082 fi
1083 echo "$ac_t""$INSTALL" 1>&6
1084
1085 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1086 # It thinks the first close brace ends the variable substitution.
1087 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1088
1089 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1090
1091 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1092
1093 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1094 echo "configure:1095: checking whether ln -s works" >&5
1095 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1096 echo $ac_n "(cached) $ac_c" 1>&6
1097 else
1098 rm -f conftestdata
1099 if ln -s X conftestdata 2>/dev/null
1100 then
1101 rm -f conftestdata
1102 ac_cv_prog_LN_S="ln -s"
1103 else
1104 ac_cv_prog_LN_S=ln
1105 fi
1106 fi
1107 LN_S="$ac_cv_prog_LN_S"
1108 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1109 echo "$ac_t""yes" 1>&6
1110 else
1111 echo "$ac_t""no" 1>&6
1112 fi
1113
1114 # Extract the first word of "strip", so it can be a program name with args.
1115 set dummy strip; ac_word=$2
1116 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1117 echo "configure:1118: checking for $ac_word" >&5
1118 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1119 echo $ac_n "(cached) $ac_c" 1>&6
1120 else
1121 if test -n "$STRIP"; then
1122 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1123 else
1124 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1125 ac_dummy="$PATH"
1126 for ac_dir in $ac_dummy; do
1127 test -z "$ac_dir" && ac_dir=.
1128 if test -f $ac_dir/$ac_word; then
1129 ac_cv_prog_STRIP="strip"
1130 break
1131 fi
1132 done
1133 IFS="$ac_save_ifs"
1134 fi
1135 fi
1136 STRIP="$ac_cv_prog_STRIP"
1137 if test -n "$STRIP"; then
1138 echo "$ac_t""$STRIP" 1>&6
1139 else
1140 echo "$ac_t""no" 1>&6
1141 fi
1142
1143 if test "x${STRIP}" = "x"
1144 then
1145 STRIP=touch
1146 fi
1147
1148 # awk is needed for Tcl library and header checks, and eggdrop version subst
1149 for ac_prog in gawk mawk nawk awk
1150 do
1151 # Extract the first word of "$ac_prog", so it can be a program name with args.
1152 set dummy $ac_prog; ac_word=$2
1153 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1154 echo "configure:1155: checking for $ac_word" >&5
1155 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1156 echo $ac_n "(cached) $ac_c" 1>&6
1157 else
1158 if test -n "$AWK"; then
1159 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1160 else
1161 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1162 ac_dummy="$PATH"
1163 for ac_dir in $ac_dummy; do
1164 test -z "$ac_dir" && ac_dir=.
1165 if test -f $ac_dir/$ac_word; then
1166 ac_cv_prog_AWK="$ac_prog"
1167 break
1168 fi
1169 done
1170 IFS="$ac_save_ifs"
1171 fi
1172 fi
1173 AWK="$ac_cv_prog_AWK"
1174 if test -n "$AWK"; then
1175 echo "$ac_t""$AWK" 1>&6
1176 else
1177 echo "$ac_t""no" 1>&6
1178 fi
1179
1180 test -n "$AWK" && break
1181 done
1182
1183 if test "x${AWK}" = "x"
1184 then
1185 cat << 'EOF' >&2
1186 configure: error:
1187
1188 This system seems to lack a working 'awk' command.
1189 A working 'awk' command is required to compile eggdrop.
1190
1191 EOF
1192 exit 1
1193 fi
1194
1195 # basename is needed for Tcl library and header checks
1196 # Extract the first word of "basename", so it can be a program name with args.
1197 set dummy basename; ac_word=$2
1198 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1199 echo "configure:1200: checking for $ac_word" >&5
1200 if eval "test \"`echo '$''{'ac_cv_prog_BASENAME'+set}'`\" = set"; then
1201 echo $ac_n "(cached) $ac_c" 1>&6
1202 else
1203 if test -n "$BASENAME"; then
1204 ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
1205 else
1206 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1207 ac_dummy="$PATH"
1208 for ac_dir in $ac_dummy; do
1209 test -z "$ac_dir" && ac_dir=.
1210 if test -f $ac_dir/$ac_word; then
1211 ac_cv_prog_BASENAME="basename"
1212 break
1213 fi
1214 done
1215 IFS="$ac_save_ifs"
1216 fi
1217 fi
1218 BASENAME="$ac_cv_prog_BASENAME"
1219 if test -n "$BASENAME"; then
1220 echo "$ac_t""$BASENAME" 1>&6
1221 else
1222 echo "$ac_t""no" 1>&6
1223 fi
1224
1225 if test "x${BASENAME}" = "x"
1226 then
1227 cat << 'EOF' >&2
1228 configure: error:
1229
1230 This system seems to lack a working 'basename' command.
1231 A working 'basename' command is required to compile eggdrop.
1232
1233 EOF
1234 exit 1
1235 fi
1236
1237 # Extract the first word of "uname", so it can be a program name with args.
1238 set dummy uname; ac_word=$2
1239 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1240 echo "configure:1241: checking for $ac_word" >&5
1241 if eval "test \"`echo '$''{'ac_cv_prog_UNAME'+set}'`\" = set"; then
1242 echo $ac_n "(cached) $ac_c" 1>&6
1243 else
1244 if test -n "$UNAME"; then
1245 ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
1246 else
1247 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1248 ac_dummy="$PATH"
1249 for ac_dir in $ac_dummy; do
1250 test -z "$ac_dir" && ac_dir=.
1251 if test -f $ac_dir/$ac_word; then
1252 ac_cv_prog_UNAME="uname"
1253 break
1254 fi
1255 done
1256 IFS="$ac_save_ifs"
1257 fi
1258 fi
1259 UNAME="$ac_cv_prog_UNAME"
1260 if test -n "$UNAME"; then
1261 echo "$ac_t""$UNAME" 1>&6
1262 else
1263 echo "$ac_t""no" 1>&6
1264 fi
1265
1266
1267 # Test the os and set the module linking settings
1268 LINUX=no
1269 IRIX=no
1270 SUNOS=no
1271 HPUX=no
1272 MOD_CC="${CC}"
1273 MOD_LD="${CC}"
1274 MOD_STRIP="${STRIP}"
1275 SHLIB_CC="${CC}"
1276 SHLIB_LD="${CC}"
1277 SHLIB_STRIP="${STRIP}"
1278 NEED_DL=1
1279 DEFAULT_MAKE=eggdrop
1280
1281 echo $ac_n "checking your OS""... $ac_c" 1>&6
1282 echo "configure:1283: checking your OS" >&5
1283 if eval "test \"`echo '$''{'egg_cv_var_system'+set}'`\" = set"
1284 then
1285 echo $ac_n "(cached) $ac_c" 1>&6
1286 else
1287 eval "egg_cv_var_system=`${UNAME}`"
1288 fi
1289
1290 case "$egg_cv_var_system" in
1291 BSD/OS)
1292 bsd_version=`${UNAME} -r | cut -d . -f 1`
1293 case "$bsd_version" in
1294 2)
1295 echo "$ac_t""BSD/OS 2 statically linked modules are the only choice" 1>&6
1296 NEED_DL=0
1297 DEFAULT_MAKE=static
1298 ;;
1299 3)
1300 echo "$ac_t""BSD/OS 3 stuck with an old OS ..." 1>&6
1301 MOD_CC=shlicc
1302 MOD_LD=shlicc
1303 MOD_STRIP="${STRIP} -d"
1304 SHLIB_LD="shlicc -r"
1305 SHLIB_STRIP=touch
1306 cat >> confdefs.h <<\EOF
1307 #define MODULES_OK 1
1308 EOF
1309 ;;
1310 *)
1311 echo "$ac_t""BSD/OS 4+ Eat your heart out Linux!" 1>&6
1312 CFLAGS="$CFLAGS -Wall"
1313 MOD_LD="${CC} "
1314 MOD_STRIP="${STRIP} -d"
1315 SHLIB_LD="${CC} -shared -nostartfiles"
1316 cat >> confdefs.h <<\EOF
1317 #define MODULES_OK 1
1318 EOF
1319 ;;
1320 esac
1321 ;;
1322 CYGWIN*)
1323 echo "$ac_t""Cygwin" 1>&6
1324 NEED_DL=0
1325 DEFAULT_MAKE=static
1326 ;;
1327 HP-UX)
1328 echo "$ac_t""HP-UX, just shoot yourself now" 1>&6
1329 HPUX=yes
1330 MOD_LD="gcc -fPIC -shared"
1331 SHLIB_CC="gcc -fPIC"
1332 SHLIB_LD="ld -b"
1333 NEED_DL=0
1334 cat >> confdefs.h <<\EOF
1335 #define MODULES_OK 1
1336 EOF
1337 cat >> confdefs.h <<\EOF
1338 #define HPUX_HACKS 1
1339 EOF
1340 if test "x`${UNAME} -r | cut -d . -f 2`" = "x10"
1341 then
1342 cat >> confdefs.h <<\EOF
1343 #define HPUX10_HACKS 1
1344 EOF
1345 fi
1346 ;;
1347 IRIX)
1348 echo "$ac_t""you are cursed with IRIX" 1>&6
1349 IRIX=yes
1350 SHLIB_STRIP=touch
1351 NEED_DL=0
1352 DEFAULT_MAKE=static
1353 ;;
1354 IRIX64)
1355 echo "$ac_t""IRIX64" 1>&6
1356 IRIX=yes
1357 SHLIB_STRIP=strip
1358 NEED_DL=0
1359 DEFAULT_MAKE=static
1360 ;;
1361 Ultrix)
1362 echo "$ac_t""Ultrix" 1>&6
1363 NEED_DL=0
1364 SHLIB_STRIP=touch
1365 DEFUALT_MAKE=static
1366 SHELL=/bin/sh5
1367 ;;
1368 BeOS)
1369 echo "$ac_t""BeOS" 1>&6
1370 NEED_DL=0
1371 SHLIB_STRIP=strip
1372 DEFUALT_MAKE=static
1373 ;;
1374 Linux)
1375 echo "$ac_t""Linux! The choice of the GNU generation" 1>&6
1376 LINUX=yes
1377 CFLAGS="$CFLAGS -Wall"
1378 MOD_LD="${CC}"
1379 SHLIB_LD="${CC} -shared -nostartfiles"
1380 cat >> confdefs.h <<\EOF
1381 #define MODULES_OK 1
1382 EOF
1383 ;;
1384 Lynx)
1385 SHLIB_STRIP=touch
1386 echo "$ac_t""Lynx OS" 1>&6
1387 ;;
1388 OSF1)
1389 echo "$ac_t""OSF..." 1>&6
1390 case `${UNAME} -r | cut -d . -f 1` in
1391 V*)
1392 echo "$ac_t"" Digital OSF" 1>&6
1393 if test "x$AWK" = "xgawk"
1394 then
1395 AWK=awk
1396 fi
1397 MOD_CC=cc
1398 MOD_LD=cc
1399 SHLIB_CC=cc
1400 SHLIB_LD="ld -shared -expect_unresolved \"'*'\""
1401 SHLIB_STRIP=touch
1402 cat >> confdefs.h <<\EOF
1403 #define MODULES_OK 1
1404 EOF
1405 ;;
1406 1.0|1.1|1.2)
1407 echo "$ac_t"" pre 1.3" 1>&6
1408 SHLIB_LD="ld -R -export :"
1409 cat >> confdefs.h <<\EOF
1410 #define MODULES_OK 1
1411 EOF
1412 cat >> confdefs.h <<\EOF
1413 #define OSF1_HACKS 1
1414 EOF
1415 ;;
1416 1.*)
1417 echo "$ac_t"" 1.3+" 1>&6
1418 SHLIB_CC="${CC} -fpic"
1419 SHLIB_LD="ld -shared"
1420 cat >> confdefs.h <<\EOF
1421 #define MODULES_OK 1
1422 EOF
1423 cat >> confdefs.h <<\EOF
1424 #define OSF1_HACKS 1
1425 EOF
1426 ;;
1427 *)
1428 echo "$ac_t"" Some other weird OSF! No modules for you..." 1>&6
1429 NEED_DL=0
1430 DEFAULT_MAKE=static
1431 ;;
1432 esac
1433 cat >> confdefs.h <<\EOF
1434 #define STOP_UAC 1
1435 EOF
1436 ;;
1437 SunOS)
1438 if test "x`${UNAME} -r | cut -d . -f 1`" = "x5"
1439 then
1440 echo "$ac_t""Solaris -- yay" 1>&6
1441 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
1442 else
1443 echo "$ac_t""SunOS -- sigh" 1>&6
1444 SUNOS=yes
1445 SHLIB_LD=ld
1446 SHLIB_STRIP=touch
1447 cat >> confdefs.h <<\EOF
1448 #define DLOPEN_1 1
1449 EOF
1450 fi
1451 MOD_CC="${CC} -fPIC"
1452 SHLIB_CC="${CC} -fPIC"
1453 cat >> confdefs.h <<\EOF
1454 #define MODULES_OK 1
1455 EOF
1456 ;;
1457 *BSD)
1458 echo "$ac_t""FreeBSD/NetBSD/OpenBSD - choose your poison" 1>&6
1459 SHLIB_CC="${CC} -fpic"
1460 SHLIB_LD="ld -Bshareable -x"
1461 cat >> confdefs.h <<\EOF
1462 #define MODULES_OK 1
1463 EOF
1464 ;;
1465 *)
1466 if test -r "/mach"
1467 then
1468 echo "$ac_t""NeXT...We are borg, you will be assimilated" 1>&6
1469 echo "$ac_t""break out the static modules, it's all you'll ever get :P" 1>&6
1470 echo "$ac_t""Hiya DK :P" 1>&6
1471 NEED_DL=0
1472 DEFAULT_MAKE=static
1473 cat >> confdefs.h <<\EOF
1474 #define BORGCUBES 1
1475 EOF
1476 else
1477 if test -r "/cmds"
1478 then
1479 echo "$ac_t""QNX" 1>&6
1480 SHLIB_STRIP=touch
1481 NEED_DL=0
1482 DEFAULT_MAKE=static
1483 else
1484 echo "$ac_t""Something unknown!" 1>&6
1485 echo "$ac_t""If you get dynamic modules to work, be sure to let the devel team know HOW :)" 1>&6
1486 NEED_DL=0
1487 DEFAULT_MAKE=static
1488 fi
1489 fi
1490 ;;
1491 esac
1492
1493
1494 # Checks for system libraries
1495 if test "$IRIX" = "yes"
1496 then
1497 echo "configure: warning: Skipping library tests because they CONFUSE Irix." 1>&2
1498 else
1499 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1500 echo "configure:1501: checking for socket in -lsocket" >&5
1501 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1502 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1503 echo $ac_n "(cached) $ac_c" 1>&6
1504 else
1505 ac_save_LIBS="$LIBS"
1506 LIBS="-lsocket $LIBS"
1507 cat > conftest.$ac_ext <<EOF
1508 #line 1509 "configure"
1509 #include "confdefs.h"
1510 /* Override any gcc2 internal prototype to avoid an error. */
1511 /* We use char because int might match the return type of a gcc2
1512 builtin and then its argument prototype would still apply. */
1513 char socket();
1514
1515 int main() {
1516 socket()
1517 ; return 0; }
1518 EOF
1519 if { (eval echo configure:1520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1520 rm -rf conftest*
1521 eval "ac_cv_lib_$ac_lib_var=yes"
1522 else
1523 echo "configure: failed program was:" >&5
1524 cat conftest.$ac_ext >&5
1525 rm -rf conftest*
1526 eval "ac_cv_lib_$ac_lib_var=no"
1527 fi
1528 rm -f conftest*
1529 LIBS="$ac_save_LIBS"
1530
1531 fi
1532 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1533 echo "$ac_t""yes" 1>&6
1534 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1535 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1536 cat >> confdefs.h <<EOF
1537 #define $ac_tr_lib 1
1538 EOF
1539
1540 LIBS="-lsocket $LIBS"
1541
1542 else
1543 echo "$ac_t""no" 1>&6
1544 fi
1545
1546 echo $ac_n "checking for connect in -lnsl""... $ac_c" 1>&6
1547 echo "configure:1548: checking for connect in -lnsl" >&5
1548 ac_lib_var=`echo nsl'_'connect | sed 'y%./+-%__p_%'`
1549 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1550 echo $ac_n "(cached) $ac_c" 1>&6
1551 else
1552 ac_save_LIBS="$LIBS"
1553 LIBS="-lnsl $LIBS"
1554 cat > conftest.$ac_ext <<EOF
1555 #line 1556 "configure"
1556 #include "confdefs.h"
1557 /* Override any gcc2 internal prototype to avoid an error. */
1558 /* We use char because int might match the return type of a gcc2
1559 builtin and then its argument prototype would still apply. */
1560 char connect();
1561
1562 int main() {
1563 connect()
1564 ; return 0; }
1565 EOF
1566 if { (eval echo configure:1567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1567 rm -rf conftest*
1568 eval "ac_cv_lib_$ac_lib_var=yes"
1569 else
1570 echo "configure: failed program was:" >&5
1571 cat conftest.$ac_ext >&5
1572 rm -rf conftest*
1573 eval "ac_cv_lib_$ac_lib_var=no"
1574 fi
1575 rm -f conftest*
1576 LIBS="$ac_save_LIBS"
1577
1578 fi
1579 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1580 echo "$ac_t""yes" 1>&6
1581 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1582 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1583 cat >> confdefs.h <<EOF
1584 #define $ac_tr_lib 1
1585 EOF
1586
1587 LIBS="-lnsl $LIBS"
1588
1589 else
1590 echo "$ac_t""no" 1>&6
1591 fi
1592
1593 echo $ac_n "checking for gethostbyname in -ldns""... $ac_c" 1>&6
1594 echo "configure:1595: checking for gethostbyname in -ldns" >&5
1595 ac_lib_var=`echo dns'_'gethostbyname | sed 'y%./+-%__p_%'`
1596 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1597 echo $ac_n "(cached) $ac_c" 1>&6
1598 else
1599 ac_save_LIBS="$LIBS"
1600 LIBS="-ldns $LIBS"
1601 cat > conftest.$ac_ext <<EOF
1602 #line 1603 "configure"
1603 #include "confdefs.h"
1604 /* Override any gcc2 internal prototype to avoid an error. */
1605 /* We use char because int might match the return type of a gcc2
1606 builtin and then its argument prototype would still apply. */
1607 char gethostbyname();
1608
1609 int main() {
1610 gethostbyname()
1611 ; return 0; }
1612 EOF
1613 if { (eval echo configure:1614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1614 rm -rf conftest*
1615 eval "ac_cv_lib_$ac_lib_var=yes"
1616 else
1617 echo "configure: failed program was:" >&5
1618 cat conftest.$ac_ext >&5
1619 rm -rf conftest*
1620 eval "ac_cv_lib_$ac_lib_var=no"
1621 fi
1622 rm -f conftest*
1623 LIBS="$ac_save_LIBS"
1624
1625 fi
1626 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1627 echo "$ac_t""yes" 1>&6
1628 ac_tr_lib=HAVE_LIB`echo dns | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1629 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1630 cat >> confdefs.h <<EOF
1631 #define $ac_tr_lib 1
1632 EOF
1633
1634 LIBS="-ldns $LIBS"
1635
1636 else
1637 echo "$ac_t""no" 1>&6
1638 fi
1639
1640 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
1641 echo "configure:1642: checking for dlopen in -ldl" >&5
1642 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
1643 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1644 echo $ac_n "(cached) $ac_c" 1>&6
1645 else
1646 ac_save_LIBS="$LIBS"
1647 LIBS="-ldl $LIBS"
1648 cat > conftest.$ac_ext <<EOF
1649 #line 1650 "configure"
1650 #include "confdefs.h"
1651 /* Override any gcc2 internal prototype to avoid an error. */
1652 /* We use char because int might match the return type of a gcc2
1653 builtin and then its argument prototype would still apply. */
1654 char dlopen();
1655
1656 int main() {
1657 dlopen()
1658 ; return 0; }
1659 EOF
1660 if { (eval echo configure:1661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1661 rm -rf conftest*
1662 eval "ac_cv_lib_$ac_lib_var=yes"
1663 else
1664 echo "configure: failed program was:" >&5
1665 cat conftest.$ac_ext >&5
1666 rm -rf conftest*
1667 eval "ac_cv_lib_$ac_lib_var=no"
1668 fi
1669 rm -f conftest*
1670 LIBS="$ac_save_LIBS"
1671
1672 fi
1673 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1674 echo "$ac_t""yes" 1>&6
1675 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1676 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1677 cat >> confdefs.h <<EOF
1678 #define $ac_tr_lib 1
1679 EOF
1680
1681 LIBS="-ldl $LIBS"
1682
1683 else
1684 echo "$ac_t""no" 1>&6
1685 fi
1686
1687 echo $ac_n "checking for tan in -lm""... $ac_c" 1>&6
1688 echo "configure:1689: checking for tan in -lm" >&5
1689 ac_lib_var=`echo m'_'tan | sed 'y%./+-%__p_%'`
1690 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1691 echo $ac_n "(cached) $ac_c" 1>&6
1692 else
1693 ac_save_LIBS="$LIBS"
1694 LIBS="-lm $LIBS"
1695 cat > conftest.$ac_ext <<EOF
1696 #line 1697 "configure"
1697 #include "confdefs.h"
1698 /* Override any gcc2 internal prototype to avoid an error. */
1699 /* We use char because int might match the return type of a gcc2
1700 builtin and then its argument prototype would still apply. */
1701 char tan();
1702
1703 int main() {
1704 tan()
1705 ; return 0; }
1706 EOF
1707 if { (eval echo configure:1708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1708 rm -rf conftest*
1709 eval "ac_cv_lib_$ac_lib_var=yes"
1710 else
1711 echo "configure: failed program was:" >&5
1712 cat conftest.$ac_ext >&5
1713 rm -rf conftest*
1714 eval "ac_cv_lib_$ac_lib_var=no"
1715 fi
1716 rm -f conftest*
1717 LIBS="$ac_save_LIBS"
1718
1719 fi
1720 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1721 echo "$ac_t""yes" 1>&6
1722 EGG_MATH_LIB="-lm"
1723 else
1724 echo "$ac_t""no" 1>&6
1725 fi
1726
1727 # This is needed for Tcl libraries compiled with thread support
1728 echo $ac_n "checking for pthread_mutex_init in -lpthread""... $ac_c" 1>&6
1729 echo "configure:1730: checking for pthread_mutex_init in -lpthread" >&5
1730 ac_lib_var=`echo pthread'_'pthread_mutex_init | sed 'y%./+-%__p_%'`
1731 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1732 echo $ac_n "(cached) $ac_c" 1>&6
1733 else
1734 ac_save_LIBS="$LIBS"
1735 LIBS="-lpthread $LIBS"
1736 cat > conftest.$ac_ext <<EOF
1737 #line 1738 "configure"
1738 #include "confdefs.h"
1739 /* Override any gcc2 internal prototype to avoid an error. */
1740 /* We use char because int might match the return type of a gcc2
1741 builtin and then its argument prototype would still apply. */
1742 char pthread_mutex_init();
1743
1744 int main() {
1745 pthread_mutex_init()
1746 ; return 0; }
1747 EOF
1748 if { (eval echo configure:1749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1749 rm -rf conftest*
1750 eval "ac_cv_lib_$ac_lib_var=yes"
1751 else
1752 echo "configure: failed program was:" >&5
1753 cat conftest.$ac_ext >&5
1754 rm -rf conftest*
1755 eval "ac_cv_lib_$ac_lib_var=no"
1756 fi
1757 rm -f conftest*
1758 LIBS="$ac_save_LIBS"
1759
1760 fi
1761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1762 echo "$ac_t""yes" 1>&6
1763 ac_cv_lib_pthread_pthread_mutex_init=yes
1764 else
1765 echo "$ac_t""no" 1>&6
1766 ac_cv_lib_pthread_pthread_mutex_init=no
1767 fi
1768
1769 if test "$SUNOS" = "yes"
1770 then
1771 # For suns without yp or something like that
1772 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
1773 echo "configure:1774: checking for main in -ldl" >&5
1774 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
1775 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1776 echo $ac_n "(cached) $ac_c" 1>&6
1777 else
1778 ac_save_LIBS="$LIBS"
1779 LIBS="-ldl $LIBS"
1780 cat > conftest.$ac_ext <<EOF
1781 #line 1782 "configure"
1782 #include "confdefs.h"
1783
1784 int main() {
1785 main()
1786 ; return 0; }
1787 EOF
1788 if { (eval echo configure:1789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1789 rm -rf conftest*
1790 eval "ac_cv_lib_$ac_lib_var=yes"
1791 else
1792 echo "configure: failed program was:" >&5
1793 cat conftest.$ac_ext >&5
1794 rm -rf conftest*
1795 eval "ac_cv_lib_$ac_lib_var=no"
1796 fi
1797 rm -f conftest*
1798 LIBS="$ac_save_LIBS"
1799
1800 fi
1801 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1802 echo "$ac_t""yes" 1>&6
1803 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1804 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1805 cat >> confdefs.h <<EOF
1806 #define $ac_tr_lib 1
1807 EOF
1808
1809 LIBS="-ldl $LIBS"
1810
1811 else
1812 echo "$ac_t""no" 1>&6
1813 fi
1814
1815 else
1816 if test "$HPUX" = "yes"
1817 then
1818 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
1819 echo "configure:1820: checking for shl_load in -ldld" >&5
1820 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
1821 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1822 echo $ac_n "(cached) $ac_c" 1>&6
1823 else
1824 ac_save_LIBS="$LIBS"
1825 LIBS="-ldld $LIBS"
1826 cat > conftest.$ac_ext <<EOF
1827 #line 1828 "configure"
1828 #include "confdefs.h"
1829 /* Override any gcc2 internal prototype to avoid an error. */
1830 /* We use char because int might match the return type of a gcc2
1831 builtin and then its argument prototype would still apply. */
1832 char shl_load();
1833
1834 int main() {
1835 shl_load()
1836 ; return 0; }
1837 EOF
1838 if { (eval echo configure:1839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1839 rm -rf conftest*
1840 eval "ac_cv_lib_$ac_lib_var=yes"
1841 else
1842 echo "configure: failed program was:" >&5
1843 cat conftest.$ac_ext >&5
1844 rm -rf conftest*
1845 eval "ac_cv_lib_$ac_lib_var=no"
1846 fi
1847 rm -f conftest*
1848 LIBS="$ac_save_LIBS"
1849
1850 fi
1851 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1852 echo "$ac_t""yes" 1>&6
1853 ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1854 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1855 cat >> confdefs.h <<EOF
1856 #define $ac_tr_lib 1
1857 EOF
1858
1859 LIBS="-ldld $LIBS"
1860
1861 else
1862 echo "$ac_t""no" 1>&6
1863 fi
1864
1865 fi
1866 fi
1867 fi
1868
1869
1870 # Checks for header files
1871 ac_header_dirent=no
1872 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1873 do
1874 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1875 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1876 echo "configure:1877: checking for $ac_hdr that defines DIR" >&5
1877 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1878 echo $ac_n "(cached) $ac_c" 1>&6
1879 else
1880 cat > conftest.$ac_ext <<EOF
1881 #line 1882 "configure"
1882 #include "confdefs.h"
1883 #include <sys/types.h>
1884 #include <$ac_hdr>
1885 int main() {
1886 DIR *dirp = 0;
1887 ; return 0; }
1888 EOF
1889 if { (eval echo configure:1890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1890 rm -rf conftest*
1891 eval "ac_cv_header_dirent_$ac_safe=yes"
1892 else
1893 echo "configure: failed program was:" >&5
1894 cat conftest.$ac_ext >&5
1895 rm -rf conftest*
1896 eval "ac_cv_header_dirent_$ac_safe=no"
1897 fi
1898 rm -f conftest*
1899 fi
1900 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1901 echo "$ac_t""yes" 1>&6
1902 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1903 cat >> confdefs.h <<EOF
1904 #define $ac_tr_hdr 1
1905 EOF
1906 ac_header_dirent=$ac_hdr; break
1907 else
1908 echo "$ac_t""no" 1>&6
1909 fi
1910 done
1911 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1912 if test $ac_header_dirent = dirent.h; then
1913 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1914 echo "configure:1915: checking for opendir in -ldir" >&5
1915 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1916 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1917 echo $ac_n "(cached) $ac_c" 1>&6
1918 else
1919 ac_save_LIBS="$LIBS"
1920 LIBS="-ldir $LIBS"
1921 cat > conftest.$ac_ext <<EOF
1922 #line 1923 "configure"
1923 #include "confdefs.h"
1924 /* Override any gcc2 internal prototype to avoid an error. */
1925 /* We use char because int might match the return type of a gcc2
1926 builtin and then its argument prototype would still apply. */
1927 char opendir();
1928
1929 int main() {
1930 opendir()
1931 ; return 0; }
1932 EOF
1933 if { (eval echo configure:1934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1934 rm -rf conftest*
1935 eval "ac_cv_lib_$ac_lib_var=yes"
1936 else
1937 echo "configure: failed program was:" >&5
1938 cat conftest.$ac_ext >&5
1939 rm -rf conftest*
1940 eval "ac_cv_lib_$ac_lib_var=no"
1941 fi
1942 rm -f conftest*
1943 LIBS="$ac_save_LIBS"
1944
1945 fi
1946 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1947 echo "$ac_t""yes" 1>&6
1948 LIBS="$LIBS -ldir"
1949 else
1950 echo "$ac_t""no" 1>&6
1951 fi
1952
1953 else
1954 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1955 echo "configure:1956: checking for opendir in -lx" >&5
1956 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1957 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1958 echo $ac_n "(cached) $ac_c" 1>&6
1959 else
1960 ac_save_LIBS="$LIBS"
1961 LIBS="-lx $LIBS"
1962 cat > conftest.$ac_ext <<EOF
1963 #line 1964 "configure"
1964 #include "confdefs.h"
1965 /* Override any gcc2 internal prototype to avoid an error. */
1966 /* We use char because int might match the return type of a gcc2
1967 builtin and then its argument prototype would still apply. */
1968 char opendir();
1969
1970 int main() {
1971 opendir()
1972 ; return 0; }
1973 EOF
1974 if { (eval echo configure:1975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1975 rm -rf conftest*
1976 eval "ac_cv_lib_$ac_lib_var=yes"
1977 else
1978 echo "configure: failed program was:" >&5
1979 cat conftest.$ac_ext >&5
1980 rm -rf conftest*
1981 eval "ac_cv_lib_$ac_lib_var=no"
1982 fi
1983 rm -f conftest*
1984 LIBS="$ac_save_LIBS"
1985
1986 fi
1987 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1988 echo "$ac_t""yes" 1>&6
1989 LIBS="$LIBS -lx"
1990 else
1991 echo "$ac_t""no" 1>&6
1992 fi
1993
1994 fi
1995
1996 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1997 echo "configure:1998: checking for sys/wait.h that is POSIX.1 compatible" >&5
1998 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1999 echo $ac_n "(cached) $ac_c" 1>&6
2000 else
2001 cat > conftest.$ac_ext <<EOF
2002 #line 2003 "configure"
2003 #include "confdefs.h"
2004 #include <sys/types.h>
2005 #include <sys/wait.h>
2006 #ifndef WEXITSTATUS
2007 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2008 #endif
2009 #ifndef WIFEXITED
2010 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2011 #endif
2012 int main() {
2013 int s;
2014 wait (&s);
2015 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2016 ; return 0; }
2017 EOF
2018 if { (eval echo configure:2019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2019 rm -rf conftest*
2020 ac_cv_header_sys_wait_h=yes
2021 else
2022 echo "configure: failed program was:" >&5
2023 cat conftest.$ac_ext >&5
2024 rm -rf conftest*
2025 ac_cv_header_sys_wait_h=no
2026 fi
2027 rm -f conftest*
2028 fi
2029
2030 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2031 if test $ac_cv_header_sys_wait_h = yes; then
2032 cat >> confdefs.h <<\EOF
2033 #define HAVE_SYS_WAIT_H 1
2034 EOF
2035
2036 fi
2037
2038 for ac_hdr in sys/time.h
2039 do
2040 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2041 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2042 echo "configure:2043: checking for $ac_hdr" >&5
2043 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2044 echo $ac_n "(cached) $ac_c" 1>&6
2045 else
2046 cat > conftest.$ac_ext <<EOF
2047 #line 2048 "configure"
2048 #include "confdefs.h"
2049 #include <$ac_hdr>
2050 EOF
2051 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2052 { (eval echo configure:2053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2053 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2054 if test -z "$ac_err"; then
2055 rm -rf conftest*
2056 eval "ac_cv_header_$ac_safe=yes"
2057 else
2058 echo "$ac_err" >&5
2059 echo "configure: failed program was:" >&5
2060 cat conftest.$ac_ext >&5
2061 rm -rf conftest*
2062 eval "ac_cv_header_$ac_safe=no"
2063 fi
2064 rm -f conftest*
2065 fi
2066 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2067 echo "$ac_t""yes" 1>&6
2068 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2069 cat >> confdefs.h <<EOF
2070 #define $ac_tr_hdr 1
2071 EOF
2072
2073 else
2074 echo "$ac_t""no" 1>&6
2075 fi
2076 done
2077
2078 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2079 echo "configure:2080: checking whether time.h and sys/time.h may both be included" >&5
2080 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2081 echo $ac_n "(cached) $ac_c" 1>&6
2082 else
2083 cat > conftest.$ac_ext <<EOF
2084 #line 2085 "configure"
2085 #include "confdefs.h"
2086 #include <sys/types.h>
2087 #include <sys/time.h>
2088 #include <time.h>
2089 int main() {
2090 struct tm *tp;
2091 ; return 0; }
2092 EOF
2093 if { (eval echo configure:2094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2094 rm -rf conftest*
2095 ac_cv_header_time=yes
2096 else
2097 echo "configure: failed program was:" >&5
2098 cat conftest.$ac_ext >&5
2099 rm -rf conftest*
2100 ac_cv_header_time=no
2101 fi
2102 rm -f conftest*
2103 fi
2104
2105 echo "$ac_t""$ac_cv_header_time" 1>&6
2106 if test $ac_cv_header_time = yes; then
2107 cat >> confdefs.h <<\EOF
2108 #define TIME_WITH_SYS_TIME 1
2109 EOF
2110
2111 fi
2112
2113 for ac_hdr in sys/select.h sys/rusage.h unistd.h dlfcn.h stdarg.h std_args.h strings.h
2114 do
2115 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2116 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2117 echo "configure:2118: checking for $ac_hdr" >&5
2118 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2119 echo $ac_n "(cached) $ac_c" 1>&6
2120 else
2121 cat > conftest.$ac_ext <<EOF
2122 #line 2123 "configure"
2123 #include "confdefs.h"
2124 #include <$ac_hdr>
2125 EOF
2126 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2127 { (eval echo configure:2128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2128 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2129 if test -z "$ac_err"; then
2130 rm -rf conftest*
2131 eval "ac_cv_header_$ac_safe=yes"
2132 else
2133 echo "$ac_err" >&5
2134 echo "configure: failed program was:" >&5
2135 cat conftest.$ac_ext >&5
2136 rm -rf conftest*
2137 eval "ac_cv_header_$ac_safe=no"
2138 fi
2139 rm -f conftest*
2140 fi
2141 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2142 echo "$ac_t""yes" 1>&6
2143 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2144 cat >> confdefs.h <<EOF
2145 #define $ac_tr_hdr 1
2146 EOF
2147
2148 else
2149 echo "$ac_t""no" 1>&6
2150 fi
2151 done
2152
2153
2154 # Checks for typedefs, structures, and compiler characteristics
2155 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2156 echo "configure:2157: checking for ANSI C header files" >&5
2157 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2158 echo $ac_n "(cached) $ac_c" 1>&6
2159 else
2160 cat > conftest.$ac_ext <<EOF
2161 #line 2162 "configure"
2162 #include "confdefs.h"
2163 #include <stdlib.h>
2164 #include <stdarg.h>
2165 #include <string.h>
2166 #include <float.h>
2167 EOF
2168 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2169 { (eval echo configure:2170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2170 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2171 if test -z "$ac_err"; then
2172 rm -rf conftest*
2173 ac_cv_header_stdc=yes
2174 else
2175 echo "$ac_err" >&5
2176 echo "configure: failed program was:" >&5
2177 cat conftest.$ac_ext >&5
2178 rm -rf conftest*
2179 ac_cv_header_stdc=no
2180 fi
2181 rm -f conftest*
2182
2183 if test $ac_cv_header_stdc = yes; then
2184 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2185 cat > conftest.$ac_ext <<EOF
2186 #line 2187 "configure"
2187 #include "confdefs.h"
2188 #include <string.h>
2189 EOF
2190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2191 egrep "memchr" >/dev/null 2>&1; then
2192 :
2193 else
2194 rm -rf conftest*
2195 ac_cv_header_stdc=no
2196 fi
2197 rm -f conftest*
2198
2199 fi
2200
2201 if test $ac_cv_header_stdc = yes; then
2202 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2203 cat > conftest.$ac_ext <<EOF
2204 #line 2205 "configure"
2205 #include "confdefs.h"
2206 #include <stdlib.h>
2207 EOF
2208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2209 egrep "free" >/dev/null 2>&1; then
2210 :
2211 else
2212 rm -rf conftest*
2213 ac_cv_header_stdc=no
2214 fi
2215 rm -f conftest*
2216
2217 fi
2218
2219 if test $ac_cv_header_stdc = yes; then
2220 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2221 if test "$cross_compiling" = yes; then
2222 :
2223 else
2224 cat > conftest.$ac_ext <<EOF
2225 #line 2226 "configure"
2226 #include "confdefs.h"
2227 #include <ctype.h>
2228 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2229 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2230 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2231 int main () { int i; for (i = 0; i < 256; i++)
2232 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2233 exit (0); }
2234
2235 EOF
2236 if { (eval echo configure:2237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2237 then
2238 :
2239 else
2240 echo "configure: failed program was:" >&5
2241 cat conftest.$ac_ext >&5
2242 rm -fr conftest*
2243 ac_cv_header_stdc=no
2244 fi
2245 rm -fr conftest*
2246 fi
2247
2248 fi
2249 fi
2250
2251 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2252 if test $ac_cv_header_stdc = yes; then
2253 cat >> confdefs.h <<\EOF
2254 #define STDC_HEADERS 1
2255 EOF
2256
2257 fi
2258
2259 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2260 echo "configure:2261: checking for pid_t" >&5
2261 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2262 echo $ac_n "(cached) $ac_c" 1>&6
2263 else
2264 cat > conftest.$ac_ext <<EOF
2265 #line 2266 "configure"
2266 #include "confdefs.h"
2267 #include <sys/types.h>
2268 #if STDC_HEADERS
2269 #include <stdlib.h>
2270 #include <stddef.h>
2271 #endif
2272 EOF
2273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2274 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2275 rm -rf conftest*
2276 ac_cv_type_pid_t=yes
2277 else
2278 rm -rf conftest*
2279 ac_cv_type_pid_t=no
2280 fi
2281 rm -f conftest*
2282
2283 fi
2284 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2285 if test $ac_cv_type_pid_t = no; then
2286 cat >> confdefs.h <<\EOF
2287 #define pid_t int
2288 EOF
2289
2290 fi
2291
2292 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2293 echo "configure:2294: checking whether byte ordering is bigendian" >&5
2294 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2295 echo $ac_n "(cached) $ac_c" 1>&6
2296 else
2297 ac_cv_c_bigendian=unknown
2298 # See if sys/param.h defines the BYTE_ORDER macro.
2299 cat > conftest.$ac_ext <<EOF
2300 #line 2301 "configure"
2301 #include "confdefs.h"
2302 #include <sys/types.h>
2303 #include <sys/param.h>
2304 int main() {
2305
2306 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2307 bogus endian macros
2308 #endif
2309 ; return 0; }
2310 EOF
2311 if { (eval echo configure:2312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2312 rm -rf conftest*
2313 # It does; now see whether it defined to BIG_ENDIAN or not.
2314 cat > conftest.$ac_ext <<EOF
2315 #line 2316 "configure"
2316 #include "confdefs.h"
2317 #include <sys/types.h>
2318 #include <sys/param.h>
2319 int main() {
2320
2321 #if BYTE_ORDER != BIG_ENDIAN
2322 not big endian
2323 #endif
2324 ; return 0; }
2325 EOF
2326 if { (eval echo configure:2327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2327 rm -rf conftest*
2328 ac_cv_c_bigendian=yes
2329 else
2330 echo "configure: failed program was:" >&5
2331 cat conftest.$ac_ext >&5
2332 rm -rf conftest*
2333 ac_cv_c_bigendian=no
2334 fi
2335 rm -f conftest*
2336 else
2337 echo "configure: failed program was:" >&5
2338 cat conftest.$ac_ext >&5
2339 fi
2340 rm -f conftest*
2341 if test $ac_cv_c_bigendian = unknown; then
2342 if test "$cross_compiling" = yes; then
2343 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2344 else
2345 cat > conftest.$ac_ext <<EOF
2346 #line 2347 "configure"
2347 #include "confdefs.h"
2348 main () {
2349 /* Are we little or big endian? From Harbison&Steele. */
2350 union
2351 {
2352 long l;
2353 char c[sizeof (long)];
2354 } u;
2355 u.l = 1;
2356 exit (u.c[sizeof (long) - 1] == 1);
2357 }
2358 EOF
2359 if { (eval echo configure:2360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2360 then
2361 ac_cv_c_bigendian=no
2362 else
2363 echo "configure: failed program was:" >&5
2364 cat conftest.$ac_ext >&5
2365 rm -fr conftest*
2366 ac_cv_c_bigendian=yes
2367 fi
2368 rm -fr conftest*
2369 fi
2370
2371 fi
2372 fi
2373
2374 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2375 if test $ac_cv_c_bigendian = yes; then
2376 cat >> confdefs.h <<\EOF
2377 #define WORDS_BIGENDIAN 1
2378 EOF
2379
2380 fi
2381
2382 echo $ac_n "checking for inline""... $ac_c" 1>&6
2383 echo "configure:2384: checking for inline" >&5
2384 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2385 echo $ac_n "(cached) $ac_c" 1>&6
2386 else
2387 ac_cv_c_inline=no
2388 for ac_kw in inline __inline__ __inline; do
2389 cat > conftest.$ac_ext <<EOF
2390 #line 2391 "configure"
2391 #include "confdefs.h"
2392
2393 int main() {
2394 } $ac_kw foo() {
2395 ; return 0; }
2396 EOF
2397 if { (eval echo configure:2398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2398 rm -rf conftest*
2399 ac_cv_c_inline=$ac_kw; break
2400 else
2401 echo "configure: failed program was:" >&5
2402 cat conftest.$ac_ext >&5
2403 fi
2404 rm -f conftest*
2405 done
2406
2407 fi
2408
2409 echo "$ac_t""$ac_cv_c_inline" 1>&6
2410 case "$ac_cv_c_inline" in
2411 inline | yes) ;;
2412 no) cat >> confdefs.h <<\EOF
2413 #define inline
2414 EOF
2415 ;;
2416 *) cat >> confdefs.h <<EOF
2417 #define inline $ac_cv_c_inline
2418 EOF
2419 ;;
2420 esac
2421
2422 echo $ac_n "checking size of long""... $ac_c" 1>&6
2423 echo "configure:2424: checking size of long" >&5
2424 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2425 echo $ac_n "(cached) $ac_c" 1>&6
2426 else
2427 if test "$cross_compiling" = yes; then
2428 ac_cv_sizeof_long=0
2429 else
2430 cat > conftest.$ac_ext <<EOF
2431 #line 2432 "configure"
2432 #include "confdefs.h"
2433 #include <stdio.h>
2434 main()
2435 {
2436 FILE *f=fopen("conftestval", "w");
2437 if (!f) exit(1);
2438 fprintf(f, "%d\n", sizeof(long));
2439 exit(0);
2440 }
2441 EOF
2442 if { (eval echo configure:2443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2443 then
2444 ac_cv_sizeof_long=`cat conftestval`
2445 else
2446 echo "configure: failed program was:" >&5
2447 cat conftest.$ac_ext >&5
2448 rm -fr conftest*
2449 ac_cv_sizeof_long=0
2450 fi
2451 rm -fr conftest*
2452 fi
2453
2454 fi
2455 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2456 cat >> confdefs.h <<EOF
2457 #define SIZEOF_LONG $ac_cv_sizeof_long
2458 EOF
2459
2460
2461 echo $ac_n "checking size of int""... $ac_c" 1>&6
2462 echo "configure:2463: checking size of int" >&5
2463 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2464 echo $ac_n "(cached) $ac_c" 1>&6
2465 else
2466 if test "$cross_compiling" = yes; then
2467 ac_cv_sizeof_int=0
2468 else
2469 cat > conftest.$ac_ext <<EOF
2470 #line 2471 "configure"
2471 #include "confdefs.h"
2472 #include <stdio.h>
2473 main()
2474 {
2475 FILE *f=fopen("conftestval", "w");
2476 if (!f) exit(1);
2477 fprintf(f, "%d\n", sizeof(int));
2478 exit(0);
2479 }
2480 EOF
2481 if { (eval echo configure:2482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2482 then
2483 ac_cv_sizeof_int=`cat conftestval`
2484 else
2485 echo "configure: failed program was:" >&5
2486 cat conftest.$ac_ext >&5
2487 rm -fr conftest*
2488 ac_cv_sizeof_int=0
2489 fi
2490 rm -fr conftest*
2491 fi
2492
2493 fi
2494 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2495 cat >> confdefs.h <<EOF
2496 #define SIZEOF_INT $ac_cv_sizeof_int
2497 EOF
2498
2499
2500 echo $ac_n "checking size of char""... $ac_c" 1>&6
2501 echo "configure:2502: checking size of char" >&5
2502 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
2503 echo $ac_n "(cached) $ac_c" 1>&6
2504 else
2505 if test "$cross_compiling" = yes; then
2506 ac_cv_sizeof_char=0
2507 else
2508 cat > conftest.$ac_ext <<EOF
2509 #line 2510 "configure"
2510 #include "confdefs.h"
2511 #include <stdio.h>
2512 main()
2513 {
2514 FILE *f=fopen("conftestval", "w");
2515 if (!f) exit(1);
2516 fprintf(f, "%d\n", sizeof(char));
2517 exit(0);
2518 }
2519 EOF
2520 if { (eval echo configure:2521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2521 then
2522 ac_cv_sizeof_char=`cat conftestval`
2523 else
2524 echo "configure: failed program was:" >&5
2525 cat conftest.$ac_ext >&5
2526 rm -fr conftest*
2527 ac_cv_sizeof_char=0
2528 fi
2529 rm -fr conftest*
2530 fi
2531
2532 fi
2533 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
2534 cat >> confdefs.h <<EOF
2535 #define SIZEOF_CHAR $ac_cv_sizeof_char
2536 EOF
2537
2538
2539 echo $ac_n "checking size of short int""... $ac_c" 1>&6
2540 echo "configure:2541: checking size of short int" >&5
2541 if eval "test \"`echo '$''{'ac_cv_sizeof_short_int'+set}'`\" = set"; then
2542 echo $ac_n "(cached) $ac_c" 1>&6
2543 else
2544 if test "$cross_compiling" = yes; then
2545 ac_cv_sizeof_short_int=0
2546 else
2547 cat > conftest.$ac_ext <<EOF
2548 #line 2549 "configure"
2549 #include "confdefs.h"
2550 #include <stdio.h>
2551 main()
2552 {
2553 FILE *f=fopen("conftestval", "w");
2554 if (!f) exit(1);
2555 fprintf(f, "%d\n", sizeof(short int));
2556 exit(0);
2557 }
2558 EOF
2559 if { (eval echo configure:2560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2560 then
2561 ac_cv_sizeof_short_int=`cat conftestval`
2562 else
2563 echo "configure: failed program was:" >&5
2564 cat conftest.$ac_ext >&5
2565 rm -fr conftest*
2566 ac_cv_sizeof_short_int=0
2567 fi
2568 rm -fr conftest*
2569 fi
2570
2571 fi
2572 echo "$ac_t""$ac_cv_sizeof_short_int" 1>&6
2573 cat >> confdefs.h <<EOF
2574 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
2575 EOF
2576
2577
2578
2579 # Checks for library functions
2580 for ac_func in clock getrusage setpgid uname sigaction sigemptyset rename strcasecmp getdtablesize bzero random srandom dlopen dprintf snprintf vsnprintf
2581 do
2582 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2583 echo "configure:2584: checking for $ac_func" >&5
2584 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2585 echo $ac_n "(cached) $ac_c" 1>&6
2586 else
2587 cat > conftest.$ac_ext <<EOF
2588 #line 2589 "configure"
2589 #include "confdefs.h"
2590 /* System header to define __stub macros and hopefully few prototypes,
2591 which can conflict with char $ac_func(); below. */
2592 #include <assert.h>
2593 /* Override any gcc2 internal prototype to avoid an error. */
2594 /* We use char because int might match the return type of a gcc2
2595 builtin and then its argument prototype would still apply. */
2596 char $ac_func();
2597
2598 int main() {
2599
2600 /* The GNU C library defines this for functions which it implements
2601 to always fail with ENOSYS. Some functions are actually named
2602 something starting with __ and the normal name is an alias. */
2603 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2604 choke me
2605 #else
2606 $ac_func();
2607 #endif
2608
2609 ; return 0; }
2610 EOF
2611 if { (eval echo configure:2612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2612 rm -rf conftest*
2613 eval "ac_cv_func_$ac_func=yes"
2614 else
2615 echo "configure: failed program was:" >&5
2616 cat conftest.$ac_ext >&5
2617 rm -rf conftest*
2618 eval "ac_cv_func_$ac_func=no"
2619 fi
2620 rm -f conftest*
2621 fi
2622
2623 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2624 echo "$ac_t""yes" 1>&6
2625 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2626 cat >> confdefs.h <<EOF
2627 #define $ac_tr_func 1
2628 EOF
2629
2630 else
2631 echo "$ac_t""no" 1>&6
2632 fi
2633 done
2634
2635 for ac_func in vsprintf
2636 do
2637 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2638 echo "configure:2639: checking for $ac_func" >&5
2639 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set&qu