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

Annotation of /eggdrop1.6/configure

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


Revision 1.29 - (hide annotations) (download)
Sun Mar 19 23:32:08 2000 UTC (19 years, 11 months ago) by fabian
Branch: MAIN
Changes since 1.28: +121 -108 lines
1.4 resync, Mar20

1 segfault 1.1 #! /bin/sh
2    
3 fabian 1.29 # From configure.in Revision: 1.23
4 segfault 1.1 # 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 fabian 1.14 ac_default_prefix=\${HOME}/eggdrop
16 segfault 1.1 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 fabian 1.24 ac_unique_file=src/eggdrop.h
461 segfault 1.1
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 fabian 1.27 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 fabian 1.14
550 segfault 1.1
551    
552 fabian 1.6 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 fabian 1.3
558 fabian 1.14
559     # Setup build environment
560 segfault 1.1 # Extract the first word of "gcc", so it can be a program name with args.
561     set dummy gcc; ac_word=$2
562     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
563 fabian 1.28 echo "configure:630: checking for $ac_word" >&5
564 segfault 1.1 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
565     echo $ac_n "(cached) $ac_c" 1>&6
566     else
567     if test -n "$CC"; then
568     ac_cv_prog_CC="$CC" # Let the user override the test.
569     else
570     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
571     ac_dummy="$PATH"
572     for ac_dir in $ac_dummy; do
573     test -z "$ac_dir" && ac_dir=.
574     if test -f $ac_dir/$ac_word; then
575     ac_cv_prog_CC="gcc"
576     break
577     fi
578     done
579     IFS="$ac_save_ifs"
580     fi
581     fi
582     CC="$ac_cv_prog_CC"
583     if test -n "$CC"; then
584     echo "$ac_t""$CC" 1>&6
585     else
586     echo "$ac_t""no" 1>&6
587     fi
588    
589     if test -z "$CC"; then
590     # Extract the first word of "cc", so it can be a program name with args.
591     set dummy cc; ac_word=$2
592     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
593 fabian 1.28 echo "configure:660: checking for $ac_word" >&5
594 segfault 1.1 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
595     echo $ac_n "(cached) $ac_c" 1>&6
596     else
597     if test -n "$CC"; then
598     ac_cv_prog_CC="$CC" # Let the user override the test.
599     else
600     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
601     ac_prog_rejected=no
602     ac_dummy="$PATH"
603     for ac_dir in $ac_dummy; do
604     test -z "$ac_dir" && ac_dir=.
605     if test -f $ac_dir/$ac_word; then
606     if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
607     ac_prog_rejected=yes
608     continue
609     fi
610     ac_cv_prog_CC="cc"
611     break
612     fi
613     done
614     IFS="$ac_save_ifs"
615     if test $ac_prog_rejected = yes; then
616     # We found a bogon in the path, so make sure we never use it.
617     set dummy $ac_cv_prog_CC
618     shift
619     if test $# -gt 0; then
620     # We chose a different compiler from the bogus one.
621     # However, it has the same basename, so the bogon will be chosen
622     # first if we set CC to just the basename; use the full file name.
623     shift
624     set dummy "$ac_dir/$ac_word" "$@"
625     shift
626     ac_cv_prog_CC="$@"
627     fi
628     fi
629     fi
630     fi
631     CC="$ac_cv_prog_CC"
632     if test -n "$CC"; then
633     echo "$ac_t""$CC" 1>&6
634     else
635     echo "$ac_t""no" 1>&6
636     fi
637    
638     if test -z "$CC"; then
639     case "`uname -s`" in
640     *win32* | *WIN32*)
641     # Extract the first word of "cl", so it can be a program name with args.
642     set dummy cl; ac_word=$2
643     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
644 fabian 1.28 echo "configure:711: checking for $ac_word" >&5
645 segfault 1.1 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
646     echo $ac_n "(cached) $ac_c" 1>&6
647     else
648     if test -n "$CC"; then
649     ac_cv_prog_CC="$CC" # Let the user override the test.
650     else
651     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
652     ac_dummy="$PATH"
653     for ac_dir in $ac_dummy; do
654     test -z "$ac_dir" && ac_dir=.
655     if test -f $ac_dir/$ac_word; then
656     ac_cv_prog_CC="cl"
657     break
658     fi
659     done
660     IFS="$ac_save_ifs"
661     fi
662     fi
663     CC="$ac_cv_prog_CC"
664     if test -n "$CC"; then
665     echo "$ac_t""$CC" 1>&6
666     else
667     echo "$ac_t""no" 1>&6
668     fi
669     ;;
670     esac
671     fi
672     test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
673     fi
674    
675     echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
676 fabian 1.28 echo "configure:743: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
677 segfault 1.1
678     ac_ext=c
679     # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
680     ac_cpp='$CPP $CPPFLAGS'
681     ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
682     ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
683     cross_compiling=$ac_cv_prog_cc_cross
684    
685     cat > conftest.$ac_ext << EOF
686    
687 fabian 1.28 #line 754 "configure"
688 segfault 1.1 #include "confdefs.h"
689    
690     main(){return(0);}
691     EOF
692 fabian 1.28 if { (eval echo configure:759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
693 segfault 1.1 ac_cv_prog_cc_works=yes
694     # If we can't run a trivial program, we are probably using a cross compiler.
695     if (./conftest; exit) 2>/dev/null; then
696     ac_cv_prog_cc_cross=no
697     else
698     ac_cv_prog_cc_cross=yes
699     fi
700     else
701     echo "configure: failed program was:" >&5
702     cat conftest.$ac_ext >&5
703     ac_cv_prog_cc_works=no
704     fi
705     rm -fr conftest*
706     ac_ext=c
707     # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
708     ac_cpp='$CPP $CPPFLAGS'
709     ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
710     ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
711     cross_compiling=$ac_cv_prog_cc_cross
712    
713     echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
714     if test $ac_cv_prog_cc_works = no; then
715     { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
716     fi
717     echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
718 fabian 1.28 echo "configure:785: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
719 segfault 1.1 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
720     cross_compiling=$ac_cv_prog_cc_cross
721    
722     echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
723 fabian 1.28 echo "configure:790: checking whether we are using GNU C" >&5
724 segfault 1.1 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
725     echo $ac_n "(cached) $ac_c" 1>&6
726     else
727     cat > conftest.c <<EOF
728     #ifdef __GNUC__
729     yes;
730     #endif
731     EOF
732 fabian 1.28 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
733 segfault 1.1 ac_cv_prog_gcc=yes
734     else
735     ac_cv_prog_gcc=no
736     fi
737     fi
738    
739     echo "$ac_t""$ac_cv_prog_gcc" 1>&6
740    
741     if test $ac_cv_prog_gcc = yes; then
742     GCC=yes
743     else
744     GCC=
745     fi
746    
747     ac_test_CFLAGS="${CFLAGS+set}"
748     ac_save_CFLAGS="$CFLAGS"
749     CFLAGS=
750     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
751 fabian 1.28 echo "configure:818: checking whether ${CC-cc} accepts -g" >&5
752 segfault 1.1 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
753     echo $ac_n "(cached) $ac_c" 1>&6
754     else
755     echo 'void f(){}' > conftest.c
756     if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
757     ac_cv_prog_cc_g=yes
758     else
759     ac_cv_prog_cc_g=no
760     fi
761     rm -f conftest*
762    
763     fi
764    
765     echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
766     if test "$ac_test_CFLAGS" = set; then
767     CFLAGS="$ac_save_CFLAGS"
768     elif test $ac_cv_prog_cc_g = yes; then
769     if test "$GCC" = yes; then
770     CFLAGS="-g -O2"
771     else
772     CFLAGS="-g"
773     fi
774     else
775     if test "$GCC" = yes; then
776     CFLAGS="-O2"
777     else
778     CFLAGS=
779     fi
780     fi
781    
782 fabian 1.14 if test "x${cross_compiling}" = "x"
783 fabian 1.3 then
784 fabian 1.6 cat << 'EOF' >&2
785     configure: error:
786    
787     This system does not appear to have a working C compiler.
788     A working C compiler is required to compile eggdrop.
789    
790     EOF
791 fabian 1.3 exit 1
792     fi
793    
794 fabian 1.14
795     # Crazy machines
796 segfault 1.1 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
797 fabian 1.28 echo "configure:864: checking how to run the C preprocessor" >&5
798 segfault 1.1 # On Suns, sometimes $CPP names a directory.
799     if test -n "$CPP" && test -d "$CPP"; then
800     CPP=
801     fi
802     if test -z "$CPP"; then
803     if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
804     echo $ac_n "(cached) $ac_c" 1>&6
805     else
806     # This must be in double quotes, not single quotes, because CPP may get
807     # substituted into the Makefile and "${CC-cc}" will confuse make.
808     CPP="${CC-cc} -E"
809     # On the NeXT, cc -E runs the code through the compiler's parser,
810     # not just through cpp.
811     cat > conftest.$ac_ext <<EOF
812 fabian 1.28 #line 879 "configure"
813 segfault 1.1 #include "confdefs.h"
814     #include <assert.h>
815     Syntax Error
816     EOF
817     ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
818 fabian 1.28 { (eval echo configure:885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
819 segfault 1.1 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
820     if test -z "$ac_err"; then
821     :
822     else
823     echo "$ac_err" >&5
824     echo "configure: failed program was:" >&5
825     cat conftest.$ac_ext >&5
826     rm -rf conftest*
827     CPP="${CC-cc} -E -traditional-cpp"
828     cat > conftest.$ac_ext <<EOF
829 fabian 1.28 #line 896 "configure"
830 segfault 1.1 #include "confdefs.h"
831     #include <assert.h>
832     Syntax Error
833     EOF
834     ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
835 fabian 1.28 { (eval echo configure:902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
836 segfault 1.1 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
837     if test -z "$ac_err"; then
838     :
839     else
840     echo "$ac_err" >&5
841     echo "configure: failed program was:" >&5
842     cat conftest.$ac_ext >&5
843     rm -rf conftest*
844     CPP="${CC-cc} -nologo -E"
845     cat > conftest.$ac_ext <<EOF
846 fabian 1.28 #line 913 "configure"
847 segfault 1.1 #include "confdefs.h"
848     #include <assert.h>
849     Syntax Error
850     EOF
851     ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
852 fabian 1.28 { (eval echo configure:919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
853 segfault 1.1 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
854     if test -z "$ac_err"; then
855     :
856     else
857     echo "$ac_err" >&5
858     echo "configure: failed program was:" >&5
859     cat conftest.$ac_ext >&5
860     rm -rf conftest*
861     CPP=/lib/cpp
862     fi
863     rm -f conftest*
864     fi
865     rm -f conftest*
866     fi
867     rm -f conftest*
868     ac_cv_prog_CPP="$CPP"
869     fi
870     CPP="$ac_cv_prog_CPP"
871     else
872     ac_cv_prog_CPP="$CPP"
873     fi
874     echo "$ac_t""$CPP" 1>&6
875    
876     echo $ac_n "checking for AIX""... $ac_c" 1>&6
877 fabian 1.28 echo "configure:944: checking for AIX" >&5
878 segfault 1.1 cat > conftest.$ac_ext <<EOF
879 fabian 1.28 #line 946 "configure"
880 segfault 1.1 #include "confdefs.h"
881     #ifdef _AIX
882     yes
883     #endif
884    
885     EOF
886     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
887     egrep "yes" >/dev/null 2>&1; then
888     rm -rf conftest*
889     echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
890     #define _ALL_SOURCE 1
891     EOF
892    
893     else
894     rm -rf conftest*
895     echo "$ac_t""no" 1>&6
896     fi
897     rm -f conftest*
898    
899    
900     echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
901 fabian 1.28 echo "configure:968: checking for POSIXized ISC" >&5
902 segfault 1.1 if test -d /etc/conf/kconfig.d &&
903     grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
904     then
905     echo "$ac_t""yes" 1>&6
906     ISC=yes # If later tests want to check for ISC.
907     cat >> confdefs.h <<\EOF
908     #define _POSIX_SOURCE 1
909     EOF
910    
911     if test "$GCC" = yes; then
912     CC="$CC -posix"
913     else
914     CC="$CC -Xp"
915     fi
916     else
917     echo "$ac_t""no" 1>&6
918     ISC=
919     fi
920    
921     ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
922     echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
923 fabian 1.28 echo "configure:990: checking for minix/config.h" >&5
924 segfault 1.1 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
925     echo $ac_n "(cached) $ac_c" 1>&6
926     else
927     cat > conftest.$ac_ext <<EOF
928 fabian 1.28 #line 995 "configure"
929 segfault 1.1 #include "confdefs.h"
930     #include <minix/config.h>
931     EOF
932     ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
933 fabian 1.28 { (eval echo configure:1000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
934 segfault 1.1 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
935     if test -z "$ac_err"; then
936     rm -rf conftest*
937     eval "ac_cv_header_$ac_safe=yes"
938     else
939     echo "$ac_err" >&5
940     echo "configure: failed program was:" >&5
941     cat conftest.$ac_ext >&5
942     rm -rf conftest*
943     eval "ac_cv_header_$ac_safe=no"
944     fi
945     rm -f conftest*
946     fi
947     if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
948     echo "$ac_t""yes" 1>&6
949     MINIX=yes
950     else
951     echo "$ac_t""no" 1>&6
952     MINIX=
953     fi
954    
955     if test "$MINIX" = yes; then
956     cat >> confdefs.h <<\EOF
957     #define _POSIX_SOURCE 1
958     EOF
959    
960     cat >> confdefs.h <<\EOF
961     #define _POSIX_1_SOURCE 2
962     EOF
963    
964     cat >> confdefs.h <<\EOF
965     #define _MINIX 1
966     EOF
967    
968     fi
969    
970    
971 fabian 1.14 # Checks for programs
972 fabian 1.6 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
973 fabian 1.28 echo "configure:1040: checking whether ${MAKE-make} sets \${MAKE}" >&5
974 fabian 1.6 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
975     if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
976     echo $ac_n "(cached) $ac_c" 1>&6
977     else
978     cat > conftestmake <<\EOF
979     all:
980     @echo 'ac_maketemp="${MAKE}"'
981     EOF
982     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
983     eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
984     if test -n "$ac_maketemp"; then
985     eval ac_cv_prog_make_${ac_make}_set=yes
986     else
987     eval ac_cv_prog_make_${ac_make}_set=no
988     fi
989     rm -f conftestmake
990     fi
991     if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
992     echo "$ac_t""yes" 1>&6
993     SET_MAKE=
994     else
995     echo "$ac_t""no" 1>&6
996     SET_MAKE="MAKE=${MAKE-make}"
997     fi
998    
999 fabian 1.3 # Extract the first word of "ranlib", so it can be a program name with args.
1000     set dummy ranlib; ac_word=$2
1001     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1002 fabian 1.28 echo "configure:1069: checking for $ac_word" >&5
1003 fabian 1.3 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1004 segfault 1.1 echo $ac_n "(cached) $ac_c" 1>&6
1005     else
1006 fabian 1.3 if test -n "$RANLIB"; then
1007     ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1008 segfault 1.1 else
1009 fabian 1.3 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1010     ac_dummy="$PATH"
1011     for ac_dir in $ac_dummy; do
1012     test -z "$ac_dir" && ac_dir=.
1013     if test -f $ac_dir/$ac_word; then
1014     ac_cv_prog_RANLIB="ranlib"
1015     break
1016     fi
1017     done
1018     IFS="$ac_save_ifs"
1019     test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1020 segfault 1.1 fi
1021     fi
1022 fabian 1.3 RANLIB="$ac_cv_prog_RANLIB"
1023     if test -n "$RANLIB"; then
1024     echo "$ac_t""$RANLIB" 1>&6
1025 segfault 1.1 else
1026     echo "$ac_t""no" 1>&6
1027     fi
1028    
1029 fabian 1.6 # 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 fabian 1.28 echo "configure:1108: checking for a BSD compatible install" >&5
1042 fabian 1.6 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 fabian 1.28 echo "configure:1161: checking whether ln -s works" >&5
1095 fabian 1.6 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 segfault 1.1 # 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 fabian 1.28 echo "configure:1184: checking for $ac_word" >&5
1118 segfault 1.1 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 fabian 1.15 if test "x${STRIP}" = "x"
1144     then
1145     STRIP=touch
1146 segfault 1.1 fi
1147    
1148 fabian 1.14 # awk is needed for Tcl library and header checks, and eggdrop version subst
1149 fabian 1.11 for ac_prog in mawk gawk nawk awk
1150 fabian 1.3 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 fabian 1.28 echo "configure:1221: checking for $ac_word" >&5
1155 fabian 1.3 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 fabian 1.6 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 fabian 1.3 fi
1194    
1195 fabian 1.14 # basename is needed for Tcl library and header checks
1196 fabian 1.3 # 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 fabian 1.28 echo "configure:1266: checking for $ac_word" >&5
1200 fabian 1.3 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 fabian 1.6 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 fabian 1.3 fi
1236    
1237 fabian 1.15 # 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 fabian 1.28 echo "configure:1307: checking for $ac_word" >&5
1241 fabian 1.15 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 fabian 1.6
1267 fabian 1.14 # Test the os and set the module linking settings
1268 fabian 1.6 LINUX=no
1269 segfault 1.1 IRIX=no
1270 fabian 1.6 SUNOS=no
1271     HPUX=no
1272     MOD_CC="${CC}"
1273     MOD_LD="${CC}"
1274     MOD_STRIP="${STRIP}"
1275 segfault 1.1 SHLIB_CC="${CC}"
1276     SHLIB_LD="${CC}"
1277     SHLIB_STRIP="${STRIP}"
1278 fabian 1.6 NEED_DL=1
1279 segfault 1.9 DEFAULT_MAKE=debug
1280 fabian 1.14
1281 segfault 1.1 echo $ac_n "checking your OS""... $ac_c" 1>&6
1282 fabian 1.28 echo "configure:1349: checking your OS" >&5
1283 fabian 1.14 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 segfault 1.1 BSD/OS)
1292 fabian 1.29 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+! ok I spose" 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 segfault 1.1 #define MODULES_OK 1
1318     EOF
1319 fabian 1.29 ;;
1320     esac
1321 segfault 1.1 ;;
1322 fabian 1.6 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 -Wl,-E"
1331     SHLIB_CC="gcc -fPIC"
1332     SHLIB_LD="ld -b"
1333     NEED_DL=0
1334 segfault 1.1 cat >> confdefs.h <<\EOF
1335     #define MODULES_OK 1
1336     EOF
1337 fabian 1.6 cat >> confdefs.h <<\EOF
1338     #define HPUX_HACKS 1
1339     EOF
1340     if test "x`${UNAME} -r | cut -d . -f 2`" = "x10"
1341 segfault 1.1 then
1342 fabian 1.14 cat >> confdefs.h <<\EOF
1343 fabian 1.6 #define HPUX10_HACKS 1
1344     EOF
1345 segfault 1.1 fi
1346 fabian 1.6 ;;
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 fabian 1.26 Ultrix)
1362     echo "$ac_t""Ultrix" 1>&6
1363     NEED_DL=0
1364     SHLIB_STRIP=touch
1365     DEFUALT_MAKE=static
1366     ;;
1367     BeOS)
1368     echo "$ac_t""BeOS" 1>&6
1369     NEED_DL=0
1370     SHLIB_STRIP=strip
1371     DEFUALT_MAKE=static
1372     ;;
1373 fabian 1.6 Linux)
1374     echo "$ac_t""Linux! The choice of the GNU generation" 1>&6
1375     LINUX=yes
1376     CFLAGS="$CFLAGS -Wall"
1377     MOD_LD="${CC}"
1378     SHLIB_LD="${CC} -shared -nostartfiles"
1379 segfault 1.1 cat >> confdefs.h <<\EOF
1380     #define MODULES_OK 1
1381     EOF
1382     ;;
1383 fabian 1.6 Lynx)
1384     SHLIB_STRIP=touch
1385     echo "$ac_t""Lynx OS" 1>&6
1386     ;;
1387 segfault 1.1 OSF1)
1388     echo "$ac_t""OSF..." 1>&6
1389 fabian 1.3 case `${UNAME} -r | cut -d . -f 1` in
1390 segfault 1.1 V*)
1391 fabian 1.14 echo "$ac_t"" Digital OSF" 1>&6
1392     if test "x$AWK" = "xgawk"
1393     then
1394     AWK=awk
1395     fi
1396     MOD_CC=cc
1397     MOD_LD=cc
1398     SHLIB_CC=cc
1399     SHLIB_LD="ld -shared -expect_unresolved '*'"
1400     SHLIB_STRIP=touch
1401     cat >> confdefs.h <<\EOF
1402 segfault 1.1 #define MODULES_OK 1
1403     EOF
1404 fabian 1.14 ;;
1405 fabian 1.5 1.0|1.1|1.2)
1406 fabian 1.14 echo "$ac_t"" pre 1.3" 1>&6
1407     SHLIB_LD="ld -R -export :"
1408     cat >> confdefs.h <<\EOF
1409 fabian 1.6 #define MODULES_OK 1
1410 segfault 1.1 EOF
1411 fabian 1.14 cat >> confdefs.h <<\EOF
1412 fabian 1.6 #define OSF1_HACKS 1
1413 segfault 1.1 EOF
1414 fabian 1.14 ;;
1415 segfault 1.1 1.*)
1416 fabian 1.14 echo "$ac_t"" 1.3+" 1>&6
1417     SHLIB_CC="${CC} -fpic"
1418     SHLIB_LD="ld -shared"
1419     cat >> confdefs.h <<\EOF
1420 fabian 1.6 #define MODULES_OK 1
1421 segfault 1.1 EOF
1422 fabian 1.14 cat >> confdefs.h <<\EOF
1423 fabian 1.6 #define OSF1_HACKS 1
1424 segfault 1.1 EOF
1425 fabian 1.14 ;;
1426 segfault 1.1 *)
1427 fabian 1.14 echo "$ac_t"" Some other weird OSF! No modules for you..." 1>&6
1428     NEED_DL=0
1429     DEFAULT_MAKE=static
1430     ;;
1431 segfault 1.1 esac
1432     cat >> confdefs.h <<\EOF
1433     #define STOP_UAC 1
1434     EOF
1435     ;;
1436 fabian 1.6 SunOS)
1437     if test "x`${UNAME} -r | cut -d . -f 1`" = "x5"
1438     then
1439     echo "$ac_t""Solaris -- yay" 1>&6
1440     SHLIB_LD="/usr/ccs/bin/ld -G -z text"
1441     else
1442     echo "$ac_t""SunOS -- sigh" 1>&6
1443     SUNOS=yes
1444     SHLIB_LD=ld
1445     SHLIB_STRIP=touch
1446     cat >> confdefs.h <<\EOF
1447     #define DLOPEN_1 1
1448     EOF
1449     fi
1450     MOD_CC="${CC} -fPIC"
1451     SHLIB_CC="${CC} -fPIC"
1452     cat >> confdefs.h <<\EOF
1453     #define MODULES_OK 1
1454 segfault 1.1 EOF
1455 fabian 1.6 ;;
1456     *BSD)
1457     echo "$ac_t""FreeBSD/NetBSD/OpenBSD - choose your poison" 1>&6
1458     SHLIB_CC="${CC} -fpic"
1459     SHLIB_LD="ld -Bshareable -x"
1460 fabian 1.3 cat >> confdefs.h <<\EOF
1461     #define MODULES_OK 1
1462     EOF
1463 segfault 1.1 ;;
1464     *)
1465 fabian 1.3 if test -r "/mach"
1466 segfault 1.1 then
1467 fabian 1.3 echo "$ac_t""NeXT...We are borg, you will be assimilated" 1>&6
1468     echo "$ac_t""break out the static modules, it's all you'll ever get :P" 1>&6
1469 segfault 1.1 echo "$ac_t""Hiya DK :P" 1>&6
1470 fabian 1.6 NEED_DL=0
1471     DEFAULT_MAKE=static
1472 segfault 1.1 cat >> confdefs.h <<\EOF
1473     #define BORGCUBES 1
1474     EOF
1475     else
1476 fabian 1.6 if test -r "/cmds"
1477     then
1478 fabian 1.14 echo "$ac_t""QNX" 1>&6
1479     SHLIB_STRIP=touch
1480     NEED_DL=0
1481     DEFAULT_MAKE=static
1482 fabian 1.6 else
1483 fabian 1.14 echo "$ac_t""Something unknown!" 1>&6
1484     echo "$ac_t""If you get dynamic modules to work, be sure to let the devel team know HOW :)" 1>&6
1485     NEED_DL=0
1486     DEFAULT_MAKE=static
1487 fabian 1.6 fi
1488 segfault 1.1 fi
1489     ;;
1490     esac
1491    
1492 fabian 1.14
1493     # Checks for system libraries
1494 fabian 1.3 if test "$IRIX" = "yes"
1495 segfault 1.1 then
1496 fabian 1.6 echo "configure: warning: Skipping library tests because they CONFUSE Irix." 1>&2
1497 segfault 1.1 else
1498     echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1499 fabian 1.29 echo "configure:1566: checking for socket in -lsocket" >&5
1500 segfault 1.1 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1501     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1502     echo $ac_n "(cached) $ac_c" 1>&6
1503     else
1504     ac_save_LIBS="$LIBS"
1505     LIBS="-lsocket $LIBS"
1506     cat > conftest.$ac_ext <<EOF
1507 fabian 1.29 #line 1574 "configure"
1508 segfault 1.1 #include "confdefs.h"
1509     /* Override any gcc2 internal prototype to avoid an error. */
1510     /* We use char because int might match the return type of a gcc2
1511     builtin and then its argument prototype would still apply. */
1512     char socket();
1513    
1514     int main() {
1515     socket()
1516     ; return 0; }
1517     EOF
1518 fabian 1.29 if { (eval echo configure:1585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1519 segfault 1.1 rm -rf conftest*
1520     eval "ac_cv_lib_$ac_lib_var=yes"
1521     else
1522     echo "configure: failed program was:" >&5
1523     cat conftest.$ac_ext >&5
1524     rm -rf conftest*
1525     eval "ac_cv_lib_$ac_lib_var=no"
1526     fi
1527     rm -f conftest*
1528     LIBS="$ac_save_LIBS"
1529    
1530     fi
1531     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1532     echo "$ac_t""yes" 1>&6
1533     ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1534     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1535     cat >> confdefs.h <<EOF
1536     #define $ac_tr_lib 1
1537     EOF
1538    
1539     LIBS="-lsocket $LIBS"
1540    
1541     else
1542     echo "$ac_t""no" 1>&6
1543     fi
1544    
1545     echo $ac_n "checking for connect in -lnsl""... $ac_c" 1>&6
1546 fabian 1.29 echo "configure:1613: checking for connect in -lnsl" >&5
1547 segfault 1.1 ac_lib_var=`echo nsl'_'connect | sed 'y%./+-%__p_%'`
1548     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1549     echo $ac_n "(cached) $ac_c" 1>&6
1550     else
1551     ac_save_LIBS="$LIBS"
1552     LIBS="-lnsl $LIBS"
1553     cat > conftest.$ac_ext <<EOF
1554 fabian 1.29 #line 1621 "configure"
1555 segfault 1.1 #include "confdefs.h"
1556     /* Override any gcc2 internal prototype to avoid an error. */
1557     /* We use char because int might match the return type of a gcc2
1558     builtin and then its argument prototype would still apply. */
1559     char connect();
1560    
1561     int main() {
1562     connect()
1563     ; return 0; }
1564     EOF
1565 fabian 1.29 if { (eval echo configure:1632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1566 segfault 1.1 rm -rf conftest*
1567     eval "ac_cv_lib_$ac_lib_var=yes"
1568     else
1569     echo "configure: failed program was:" >&5
1570     cat conftest.$ac_ext >&5
1571     rm -rf conftest*
1572     eval "ac_cv_lib_$ac_lib_var=no"
1573     fi
1574     rm -f conftest*
1575     LIBS="$ac_save_LIBS"
1576    
1577     fi
1578     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1579     echo "$ac_t""yes" 1>&6
1580     ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1581     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1582     cat >> confdefs.h <<EOF
1583     #define $ac_tr_lib 1
1584     EOF
1585    
1586     LIBS="-lnsl $LIBS"
1587    
1588     else
1589     echo "$ac_t""no" 1>&6
1590     fi
1591    
1592     echo $ac_n "checking for gethostbyname in -ldns""... $ac_c" 1>&6
1593 fabian 1.29 echo "configure:1660: checking for gethostbyname in -ldns" >&5
1594 segfault 1.1 ac_lib_var=`echo dns'_'gethostbyname | sed 'y%./+-%__p_%'`
1595     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1596     echo $ac_n "(cached) $ac_c" 1>&6
1597     else
1598     ac_save_LIBS="$LIBS"
1599     LIBS="-ldns $LIBS"
1600     cat > conftest.$ac_ext <<EOF
1601 fabian 1.29 #line 1668 "configure"
1602 segfault 1.1 #include "confdefs.h"
1603     /* Override any gcc2 internal prototype to avoid an error. */
1604     /* We use char because int might match the return type of a gcc2
1605     builtin and then its argument prototype would still apply. */
1606     char gethostbyname();
1607    
1608     int main() {
1609     gethostbyname()
1610     ; return 0; }
1611     EOF
1612 fabian 1.29 if { (eval echo configure:1679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1613 segfault 1.1 rm -rf conftest*
1614     eval "ac_cv_lib_$ac_lib_var=yes"
1615     else
1616     echo "configure: failed program was:" >&5
1617     cat conftest.$ac_ext >&5
1618     rm -rf conftest*
1619     eval "ac_cv_lib_$ac_lib_var=no"
1620     fi
1621     rm -f conftest*
1622     LIBS="$ac_save_LIBS"
1623    
1624     fi
1625     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1626     echo "$ac_t""yes" 1>&6
1627     ac_tr_lib=HAVE_LIB`echo dns | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1628     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1629     cat >> confdefs.h <<EOF
1630     #define $ac_tr_lib 1
1631     EOF
1632    
1633     LIBS="-ldns $LIBS"
1634    
1635     else
1636     echo "$ac_t""no" 1>&6
1637     fi
1638    
1639     echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
1640 fabian 1.29 echo "configure:1707: checking for dlopen in -ldl" >&5
1641 segfault 1.1 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
1642     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1643     echo $ac_n "(cached) $ac_c" 1>&6
1644     else
1645     ac_save_LIBS="$LIBS"
1646     LIBS="-ldl $LIBS"
1647     cat > conftest.$ac_ext <<EOF
1648 fabian 1.29 #line 1715 "configure"
1649 segfault 1.1 #include "confdefs.h"
1650     /* Override any gcc2 internal prototype to avoid an error. */
1651     /* We use char because int might match the return type of a gcc2
1652     builtin and then its argument prototype would still apply. */
1653     char dlopen();
1654    
1655     int main() {
1656     dlopen()
1657     ; return 0; }
1658     EOF
1659 fabian 1.29 if { (eval echo configure:1726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1660 segfault 1.1 rm -rf conftest*
1661     eval "ac_cv_lib_$ac_lib_var=yes"
1662     else
1663     echo "configure: failed program was:" >&5
1664     cat conftest.$ac_ext >&5
1665     rm -rf conftest*
1666     eval "ac_cv_lib_$ac_lib_var=no"
1667     fi
1668     rm -f conftest*
1669     LIBS="$ac_save_LIBS"
1670    
1671     fi
1672     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1673     echo "$ac_t""yes" 1>&6
1674     ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1675     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1676     cat >> confdefs.h <<EOF
1677     #define $ac_tr_lib 1
1678     EOF
1679    
1680     LIBS="-ldl $LIBS"
1681    
1682     else
1683     echo "$ac_t""no" 1>&6
1684     fi
1685    
1686 fabian 1.14 # This is needed for Tcl libraries compiled with thread support
1687 fabian 1.8 echo $ac_n "checking for pthread_mutex_init in -lpthread""... $ac_c" 1>&6
1688 fabian 1.29 echo "configure:1755: checking for pthread_mutex_init in -lpthread" >&5
1689 fabian 1.8 ac_lib_var=`echo pthread'_'pthread_mutex_init | sed 'y%./+-%__p_%'`
1690 fabian 1.6 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="-lpthread $LIBS"
1695     cat > conftest.$ac_ext <<EOF
1696 fabian 1.29 #line 1763 "configure"
1697 fabian 1.6 #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 fabian 1.8 char pthread_mutex_init();
1702 fabian 1.6
1703     int main() {
1704 fabian 1.8 pthread_mutex_init()
1705 fabian 1.6 ; return 0; }
1706     EOF
1707 fabian 1.29 if { (eval echo configure:1774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1708 fabian 1.6 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 fabian 1.8 ac_cv_lib_pthread_pthread_mutex_init=yes
1723 fabian 1.6 else
1724     echo "$ac_t""no" 1>&6
1725 fabian 1.8 ac_cv_lib_pthread_pthread_mutex_init=no
1726 fabian 1.6 fi
1727    
1728     if test "$SUNOS" = "yes"
1729 segfault 1.1 then
1730 fabian 1.14 # For suns without yp or something like that
1731     echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
1732 fabian 1.29 echo "configure:1799: checking for main in -ldl" >&5
1733 segfault 1.1 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
1734     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1735     echo $ac_n "(cached) $ac_c" 1>&6
1736     else
1737     ac_save_LIBS="$LIBS"
1738     LIBS="-ldl $LIBS"
1739     cat > conftest.$ac_ext <<EOF
1740 fabian 1.29 #line 1807 "configure"
1741 segfault 1.1 #include "confdefs.h"
1742    
1743     int main() {
1744     main()
1745     ; return 0; }
1746     EOF
1747 fabian 1.29 if { (eval echo configure:1814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1748 segfault 1.1 rm -rf conftest*
1749     eval "ac_cv_lib_$ac_lib_var=yes"
1750     else
1751     echo "configure: failed program was:" >&5
1752     cat conftest.$ac_ext >&5
1753     rm -rf conftest*
1754     eval "ac_cv_lib_$ac_lib_var=no"
1755     fi
1756     rm -f conftest*
1757     LIBS="$ac_save_LIBS"
1758    
1759     fi
1760     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1761     echo "$ac_t""yes" 1>&6
1762     ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1763     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1764     cat >> confdefs.h <<EOF
1765     #define $ac_tr_lib 1
1766     EOF
1767    
1768     LIBS="-ldl $LIBS"
1769    
1770     else
1771     echo "$ac_t""no" 1>&6
1772     fi
1773    
1774 fabian 1.6 else
1775     if test "$HPUX" = "yes"
1776     then
1777     echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
1778 fabian 1.29 echo "configure:1845: checking for shl_load in -ldld" >&5
1779 fabian 1.6 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
1780     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1781     echo $ac_n "(cached) $ac_c" 1>&6
1782     else
1783     ac_save_LIBS="$LIBS"
1784     LIBS="-ldld $LIBS"
1785     cat > conftest.$ac_ext <<EOF
1786 fabian 1.29 #line 1853 "configure"
1787 fabian 1.6 #include "confdefs.h"
1788     /* Override any gcc2 internal prototype to avoid an error. */
1789     /* We use char because int might match the return type of a gcc2
1790     builtin and then its argument prototype would still apply. */
1791     char shl_load();
1792    
1793     int main() {
1794     shl_load()
1795     ; return 0; }
1796     EOF
1797 fabian 1.29 if { (eval echo configure:1864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1798 fabian 1.6 rm -rf conftest*
1799     eval "ac_cv_lib_$ac_lib_var=yes"
1800     else
1801     echo "configure: failed program was:" >&5
1802     cat conftest.$ac_ext >&5
1803     rm -rf conftest*
1804     eval "ac_cv_lib_$ac_lib_var=no"
1805     fi
1806     rm -f conftest*
1807     LIBS="$ac_save_LIBS"
1808    
1809     fi
1810     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1811     echo "$ac_t""yes" 1>&6
1812     ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1813     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1814     cat >> confdefs.h <<EOF
1815     #define $ac_tr_lib 1
1816     EOF
1817    
1818     LIBS="-ldld $LIBS"
1819    
1820     else
1821     echo "$ac_t""no" 1>&6
1822     fi
1823    
1824 segfault 1.1 fi
1825     fi
1826     fi
1827    
1828 fabian 1.14
1829     # Checks for header files
1830 fabian 1.6 ac_header_dirent=no
1831     for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1832     do
1833     ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1834     echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1835 fabian 1.29 echo "configure:1902: checking for $ac_hdr that defines DIR" >&5
1836 fabian 1.6 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1837 segfault 1.1 echo $ac_n "(cached) $ac_c" 1>&6
1838     else
1839 fabian 1.6 cat > conftest.$ac_ext <<EOF
1840 fabian 1.29 #line 1907 "configure"
1841 segfault 1.1 #include "confdefs.h"
1842     #include <sys/types.h>
1843 fabian 1.6 #include <$ac_hdr>
1844 segfault 1.1 int main() {
1845 fabian 1.6 DIR *dirp = 0;
1846 segfault 1.1 ; return 0; }
1847     EOF
1848 fabian 1.29 if { (eval echo configure:1915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1849 fabian 1.6 rm -rf conftest*
1850     eval "ac_cv_header_dirent_$ac_safe=yes"
1851     else
1852     echo "configure: failed program was:" >&5
1853     cat conftest.$ac_ext >&5
1854 segfault 1.1 rm -rf conftest*
1855 fabian 1.6 eval "ac_cv_header_dirent_$ac_safe=no"
1856     fi
1857     rm -f conftest*
1858     fi
1859     if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1860     echo "$ac_t""yes" 1>&6
1861     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1862     cat >> confdefs.h <<EOF
1863     #define $ac_tr_hdr 1
1864     EOF
1865     ac_header_dirent=$ac_hdr; break
1866     else
1867     echo "$ac_t""no" 1>&6
1868     fi
1869     done
1870     # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1871     if test $ac_header_dirent = dirent.h; then
1872     echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1873 fabian 1.29 echo "configure:1940: checking for opendir in -ldir" >&5
1874 fabian 1.6 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1875     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1876     echo $ac_n "(cached) $ac_c" 1>&6
1877     else
1878     ac_save_LIBS="$LIBS"
1879     LIBS="-ldir $LIBS"
1880 segfault 1.1 cat > conftest.$ac_ext <<EOF
1881 fabian 1.29 #line 1948 "configure"
1882 segfault 1.1 #include "confdefs.h"
1883 fabian 1.6 /* Override any gcc2 internal prototype to avoid an error. */
1884     /* We use char because int might match the return type of a gcc2
1885     builtin and then its argument prototype would still apply. */
1886     char opendir();
1887    
1888 segfault 1.1 int main() {
1889 fabian 1.6 opendir()
1890 segfault 1.1 ; return 0; }
1891     EOF
1892 fabian 1.29 if { (eval echo configure:1959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1893 segfault 1.1 rm -rf conftest*
1894 fabian 1.6 eval "ac_cv_lib_$ac_lib_var=yes"
1895 segfault 1.1 else
1896     echo "configure: failed program was:" >&5
1897     cat conftest.$ac_ext >&5
1898     rm -rf conftest*
1899 fabian 1.6 eval "ac_cv_lib_$ac_lib_var=no"
1900 segfault 1.1 fi
1901     rm -f conftest*
1902 fabian 1.6 LIBS="$ac_save_LIBS"
1903    
1904     fi
1905     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1906     echo "$ac_t""yes" 1>&6
1907     LIBS="$LIBS -ldir"
1908 segfault 1.1 else
1909 fabian 1.6 echo "$ac_t""no" 1>&6
1910 segfault 1.1 fi
1911 fabian 1.6
1912     else
1913     echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1914 fabian 1.29 echo "configure:1981: checking for opendir in -lx" >&5
1915 fabian 1.6 ac_lib_var=`echo x'_'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 segfault 1.1 else
1919 fabian 1.6 ac_save_LIBS="$LIBS"
1920     LIBS="-lx $LIBS"
1921     cat > conftest.$ac_ext <<EOF
1922 fabian 1.29 #line 1989 "configure"
1923 segfault 1.1 #include "confdefs.h"
1924 fabian 1.6 /* 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 segfault 1.1 EOF
1933 fabian 1.29 if { (eval echo configure:2000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1934 fabian 1.6 rm -rf conftest*
1935     eval "ac_cv_lib_$ac_lib_var=yes"
1936 segfault 1.1 else
1937     echo "configure: failed program was:" >&5
1938     cat conftest.$ac_ext >&5
1939 fabian 1.6 rm -rf conftest*
1940     eval "ac_cv_lib_$ac_lib_var=no"
1941 segfault 1.1 fi
1942 fabian 1.6 rm -f conftest*
1943     LIBS="$ac_save_LIBS"
1944 segfault 1.1
1945     fi
1946 fabian 1.6 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1947     echo "$ac_t""yes" 1>&6
1948     LIBS="$LIBS -lx"
1949     else
1950     echo "$ac_t""no" 1>&6
1951 segfault 1.1 fi
1952    
1953     fi
1954    
1955 fabian 1.6 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1956 fabian 1.29 echo "configure:2023: checking for sys/wait.h that is POSIX.1 compatible" >&5
1957 fabian 1.6 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1958 segfault 1.1 echo $ac_n "(cached) $ac_c" 1>&6
1959     else
1960     cat > conftest.$ac_ext <<EOF
1961 fabian 1.29 #line 2028 "configure"
1962 segfault 1.1 #include "confdefs.h"
1963 fabian 1.6 #include <sys/types.h>
1964     #include <sys/wait.h>
1965     #ifndef WEXITSTATUS
1966     #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1967     #endif
1968     #ifndef WIFEXITED
1969     #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1970     #endif
1971     int main() {
1972     int s;
1973     wait (&s);
1974     s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1975     ; return 0; }
1976 segfault 1.1 EOF
1977 fabian 1.29 if { (eval echo configure:2044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1978 fabian 1.6 rm -rf conftest*
1979     ac_cv_header_sys_wait_h=yes
1980 segfault 1.1 else
1981     echo "configure: failed program was:" >&5
1982     cat conftest.$ac_ext >&5
1983 fabian 1.6 rm -rf conftest*
1984     ac_cv_header_sys_wait_h=no
1985 segfault 1.1 fi
1986 fabian 1.6 rm -f conftest*
1987 segfault 1.1 fi
1988    
1989 fabian 1.6 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1990     if test $ac_cv_header_sys_wait_h = yes; then
1991     cat >> confdefs.h <<\EOF
1992     #define HAVE_SYS_WAIT_H 1
1993 segfault 1.1 EOF
1994    
1995     fi
1996    
1997 fabian 1.6 for ac_hdr in sys/time.h
1998 segfault 1.1 do
1999     ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2000 fabian 1.6 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2001 fabian 1.29 echo "configure:2068: checking for $ac_hdr" >&5
2002 fabian 1.6 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2003 segfault 1.1 echo $ac_n "(cached) $ac_c" 1>&6
2004     else
2005     cat > conftest.$ac_ext <<EOF
2006 fabian 1.29 #line 2073 "configure"
2007 segfault 1.1 #include "confdefs.h"
2008     #include <$ac_hdr>
2009     EOF
2010 fabian 1.6 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2011 fabian 1.29 { (eval echo configure:2078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2012 fabian 1.6 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2013     if test -z "$ac_err"; then
2014 segfault 1.1 rm -rf conftest*
2015 fabian 1.6 eval "ac_cv_header_$ac_safe=yes"
2016 segfault 1.1 else
2017 fabian 1.6 echo "$ac_err" >&5
2018 segfault 1.1 echo "configure: failed program was:" >&5
2019     cat conftest.$ac_ext >&5
2020     rm -rf conftest*
2021 fabian 1.6 eval "ac_cv_header_$ac_safe=no"
2022 segfault 1.1 fi
2023     rm -f conftest*
2024     fi
2025 fabian 1.6 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2026 segfault 1.1 echo "$ac_t""yes" 1>&6
2027     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2028     cat >> confdefs.h <<EOF
2029     #define $ac_tr_hdr 1
2030     EOF
2031 fabian 1.6
2032 segfault 1.1 else
2033     echo "$ac_t""no" 1>&6
2034     fi
2035     done
2036    
2037 fabian 1.6 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2038 fabian 1.29 echo "configure:2105: checking whether time.h and sys/time.h may both be included" >&5
2039 fabian 1.6 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2040 segfault 1.1 echo $ac_n "(cached) $ac_c" 1>&6
2041     else
2042     cat > conftest.$ac_ext <<EOF
2043 fabian 1.29 #line 2110 "configure"
2044 segfault 1.1 #include "confdefs.h"
2045     #include <sys/types.h>
2046 fabian 1.6 #include <sys/time.h>
2047     #include <time.h>
2048 segfault 1.1 int main() {
2049 fabian 1.6 struct tm *tp;
2050 segfault 1.1 ; return 0; }
2051     EOF
2052 fabian 1.29 if { (eval echo configure:2119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2053 segfault 1.1 rm -rf conftest*
2054 fabian 1.6 ac_cv_header_time=yes
2055 segfault 1.1 else
2056     echo "configure: failed program was:" >&5
2057     cat conftest.$ac_ext >&5
2058     rm -rf conftest*
2059 fabian 1.6 ac_cv_header_time=no
2060 segfault 1.1 fi
2061     rm -f conftest*
2062     fi
2063    
2064 fabian 1.6 echo "$ac_t""$ac_cv_header_time" 1>&6
2065     if test $ac_cv_header_time = yes; then
2066 segfault 1.1 cat >> confdefs.h <<\EOF
2067 fabian 1.6 #define TIME_WITH_SYS_TIME 1
2068 segfault 1.1 EOF
2069    
2070     fi
2071    
2072 fabian 1.22 for ac_hdr in sys/select.h sys/rusage.h unistd.h dlfcn.h stdarg.h std_args.h strings.h
2073 segfault 1.1 do
2074     ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2075     echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2076 fabian 1.29 echo "configure:2143: checking for $ac_hdr" >&5
2077 segfault 1.1 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2078     echo $ac_n "(cached) $ac_c" 1>&6
2079     else
2080     cat > conftest.$ac_ext <<EOF
2081 fabian 1.29 #line 2148 "configure"
2082 segfault 1.1 #include "confdefs.h"
2083     #include <$ac_hdr>
2084     EOF
2085     ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2086 fabian 1.29 { (eval echo configure:2153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2087 segfault 1.1 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2088     if test -z "$ac_err"; then
2089     rm -rf conftest*
2090     eval "ac_cv_header_$ac_safe=yes"
2091     else
2092     echo "$ac_err" >&5
2093     echo "configure: failed program was:" >&5
2094     cat conftest.$ac_ext >&5
2095     rm -rf conftest*
2096     eval "ac_cv_header_$ac_safe=no"
2097     fi
2098     rm -f conftest*
2099     fi
2100     if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2101     echo "$ac_t""yes" 1>&6
2102     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2103     cat >> confdefs.h <<EOF
2104     #define $ac_tr_hdr 1
2105     EOF
2106    
2107     else
2108     echo "$ac_t""no" 1>&6
2109     fi
2110     done
2111    
2112    
2113 fabian 1.14 # Checks for typedefs, structures, and compiler characteristics
2114 segfault 1.1 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2115 fabian 1.29